@font-face {
  font-family: "Onest";
  src: url("../fonts/Onest-VariableFont_wght.ttf") format("truetype");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #ececed;
  --panel: #f5f5f6;
  --ink: #16171a;
  --muted: #86888d;
  --text-soft: #4a4d52;
  --line: rgba(22, 23, 26, 0.14);
  --line-dark: rgba(255, 255, 255, 0.12);
  --blue: #2f55d4;
  --blue-soft: #5e82f5;
  --dark: #16171a;
  --light: #edeef0;
  --max: 1440px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #dfe0e2;
  color: var(--ink);
  font-family: Onest, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body > header,
body > main,
body > footer {
  width: min(100%, var(--max));
  margin-inline: auto;
}

body > main {
  background: var(--bg);
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(236, 236, 237, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.nav {
  min-height: 72px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 0 60px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 22px;
  font-weight: 800;
}

.brand-logo {
  width: 36px;
  height: 36px;
  display: block;
  object-fit: contain;
}

.nav-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.nav-menu a,
.nav-cta,
.section-row a,
.contact-links a {
  position: relative;
}

.nav-menu a::after,
.nav-cta::after,
.section-row a::after,
.contact-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.nav-menu a:hover::after,
.nav-cta:hover::after,
.section-row a:hover::after,
.contact-links a:hover::after {
  transform: scaleX(1);
}

.nav-cta {
  justify-self: end;
  border: 1px solid rgba(22, 23, 26, 0.45);
  padding: 13px 24px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
  justify-self: end;
  width: 42px;
  height: 42px;
  padding: 9px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  border-bottom: 1px solid var(--line);
}

.hero-panel {
  min-height: 440px;
  padding: 96px 60px;
}

.hero-title-panel {
  border-right: 1px solid var(--line);
}

.hero-copy-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 48px;
}

.eyebrow,
.section-kicker {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.6;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.eyebrow {
  margin-bottom: 30px;
  color: var(--blue);
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  max-width: 8.5ch;
  font-size: 88px;
  line-height: 0.95;
  font-weight: 800;
  text-wrap: balance;
}

.hero-copy {
  max-width: 42ch;
  color: var(--text-soft);
  font-size: 20px;
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  padding: 0 28px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--blue);
  color: var(--light);
}

.button-secondary {
  border-color: rgba(22, 23, 26, 0.3);
  color: var(--ink);
}

.button-secondary:hover {
  background: var(--ink);
  color: var(--light);
}

.ticker {
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--dark);
  color: var(--light);
}

.ticker-track {
  display: flex;
  width: max-content;
  align-items: center;
  padding: 16px 0;
  animation: scroll-x 30s linear infinite;
}

.ticker span {
  padding: 0 26px;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
}

.ticker b {
  color: var(--blue-soft);
}

@keyframes scroll-x {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.about {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  border-bottom: 1px solid var(--line);
}

.about-aside {
  grid-column: 1 / 4;
  display: flex;
  flex-direction: column;
  gap: 48px;
  padding: 80px 0 80px 60px;
}

.since strong {
  display: block;
  font-size: 64px;
  line-height: 1;
  font-weight: 800;
}

.since span {
  display: block;
  max-width: 18ch;
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.about-body {
  grid-column: 4 / 13;
  padding: 80px 60px 80px 0;
}

.about-lead {
  max-width: 30ch;
  font-size: 30px;
  line-height: 1.35;
  font-weight: 600;
  text-wrap: pretty;
}

.about-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 52px;
  border: 1px solid var(--line);
  background: var(--line);
}

.about-cards article {
  min-height: 134px;
  padding: 28px;
  background: var(--bg);
}

.about-cards span {
  display: block;
  margin-bottom: 12px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
}

.about-cards p {
  color: #3a3c40;
  font-size: 17px;
  line-height: 1.45;
}

.services {
  border-bottom: 1px solid var(--line);
}

.services > .section-kicker {
  padding: 56px 60px 14px;
}

.service-list {
  padding: 0 60px 48px;
}

.service-item {
  border-top: 1px solid var(--line);
}

.service-item:last-child {
  border-bottom: 1px solid var(--line);
}

.service-trigger {
  width: 100%;
  display: grid;
  grid-template-columns: 60px minmax(220px, 1fr) 1.1fr 40px;
  align-items: center;
  gap: 24px;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 30px 0;
  text-align: left;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease, padding 0.3s ease;
}

.service-trigger:hover {
  padding-left: 28px;
  padding-right: 28px;
  background: var(--blue);
  color: var(--light);
}

.service-trigger:hover .service-index,
.service-trigger:hover .service-summary {
  color: var(--light);
  opacity: 0.75;
}

.service-index {
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
}

.service-title {
  font-size: 32px;
  font-weight: 700;
}

.service-summary {
  color: #5a5d62;
  font-size: 16px;
}

.service-plus {
  justify-self: end;
  color: var(--muted);
  font-size: 24px;
  line-height: 1;
  transition: transform 0.25s ease;
}

.service-item.is-open .service-plus {
  transform: rotate(45deg);
}

.service-detail {
  max-width: 760px;
  padding: 0 0 34px 84px;
}

.service-detail p {
  margin-bottom: 18px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.service-detail ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 40px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-detail li {
  position: relative;
  padding-left: 24px;
  color: var(--text-soft);
  font-size: 16px;
  line-height: 1.45;
}

.service-detail li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
}

.service-detail small {
  display: block;
  margin-top: 20px;
  color: var(--muted);
  font-size: 14px;
}

.work {
  padding: 72px 60px 90px;
  border-bottom: 1px solid var(--line);
}

.section-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
}

.section-row a {
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}

.section-row a::after {
  bottom: -6px;
}

.section-row a::before {
  content: "→";
  float: right;
  margin-left: 8px;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.project-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.project-card-tall {
  grid-row: span 2;
}

.project-card-wide {
  grid-column: span 2;
}

.project-media {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  border: 0;
  padding: 0;
  aspect-ratio: 1 / 1;
  background-color: #d9d9dd;
  background-image: repeating-linear-gradient(135deg, transparent 0 13px, rgba(22, 23, 26, 0.05) 13px 26px);
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.project-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s ease;
}

.project-media:hover img,
.project-media:focus-visible img {
  transform: scale(1.04);
}

.project-media:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}

.project-card-tall .project-media {
  aspect-ratio: 3 / 5;
}

.project-card-wide .project-media {
  aspect-ratio: 2 / 1;
}

.project-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(47, 85, 212, 0.92);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.project-media span {
  position: absolute;
  left: 14px;
  top: 12px;
  color: #8a8c91;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
}

.project-media b {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--light);
  font-size: 18px;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.project-media:hover::before,
.project-media:hover b,
.project-media:focus-visible::before,
.project-media:focus-visible b {
  opacity: 1;
}

.project-card h3 {
  margin-top: 6px;
  font-size: 21px;
  line-height: 1.2;
}

.project-card p {
  color: var(--muted);
  font-size: 13px;
}

.lightbox[hidden] {
  display: none !important;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: rgba(16, 17, 20, 0.94);
  animation: lightbox-fade 0.25s ease;
}

.lightbox-panel {
  width: min(1080px, 94vw);
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: lightbox-pop 0.35s ease;
}

.lightbox-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  color: var(--light);
}

.lightbox-header h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.15;
}

.lightbox-header p {
  margin-top: 5px;
  color: #aeb0b5;
  font-size: 13px;
}

.lightbox-close,
.lightbox-nav {
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(16, 17, 20, 0.44);
  color: var(--light);
  cursor: pointer;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.lightbox-close:hover,
.lightbox-nav:hover,
.lightbox-close:focus-visible,
.lightbox-nav:focus-visible {
  border-color: var(--blue-soft);
  background: rgba(47, 85, 212, 0.7);
  outline: none;
}

.lightbox-close {
  flex: none;
  width: 46px;
  height: 46px;
  font-size: 24px;
  line-height: 1;
}

.lightbox-stage {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #1c1d22;
}

.lightbox-stage > img,
.lightbox-placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.lightbox-stage > img {
  object-fit: cover;
}

.lightbox-placeholder {
  background-color: #26272d;
  background-image: repeating-linear-gradient(135deg, transparent 0 18px, rgba(255, 255, 255, 0.035) 18px 36px);
}

.lightbox-placeholder span {
  position: absolute;
  left: 16px;
  top: 14px;
  color: #8a8c91;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
}

.lightbox-counter {
  position: absolute;
  right: 16px;
  top: 14px;
  z-index: 2;
  padding: 5px 11px;
  background: rgba(16, 17, 20, 0.55);
  color: var(--light);
  font-size: 13px;
}

.lightbox-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 60px 22px 20px;
  background: linear-gradient(to top, rgba(16, 17, 20, 0.72), transparent);
  color: var(--light);
  font-size: 26px;
  font-weight: 700;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 48px;
  height: 48px;
  transform: translateY(-50%);
  font-size: 28px;
  line-height: 1;
}

.lightbox-prev {
  left: 16px;
}

.lightbox-next {
  right: 16px;
}

.lightbox-desc {
  max-width: 62ch;
  color: #aeb0b5;
  font-size: 16px;
  line-height: 1.5;
}

.lightbox-thumbs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.lightbox-thumb {
  flex: none;
  width: 94px;
  height: 62px;
  display: flex;
  align-items: flex-end;
  border: 0;
  padding: 8px;
  background-color: #26272d;
  background-image: repeating-linear-gradient(135deg, transparent 0 9px, rgba(255, 255, 255, 0.04) 9px 18px);
  background-position: center;
  background-size: cover;
  color: #aeb0b5;
  cursor: pointer;
  font-size: 10px;
  line-height: 1.2;
  text-align: left;
  outline: 2px solid transparent;
  outline-offset: -2px;
}

.lightbox-thumb.is-active {
  color: var(--light);
  outline-color: var(--blue);
}

body.lightbox-open {
  overflow: hidden;
}

@keyframes lightbox-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes lightbox-pop {
  from { opacity: 0; transform: translateY(18px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  background: var(--dark);
  color: var(--light);
}

.contact-info,
.contact-form {
  padding: 90px 60px;
}

.contact-info {
  border-right: 1px solid var(--line-dark);
}

.contact .section-kicker {
  color: var(--blue-soft);
  margin-bottom: 28px;
}

.contact h2 {
  max-width: 14ch;
  font-size: 52px;
  line-height: 1.04;
  font-weight: 800;
  text-wrap: balance;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 44px;
  font-style: normal;
  font-size: 18px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-form label {
  display: block;
}

.contact-form label span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #1f2024;
  color: var(--light);
  padding: 16px 18px;
  font-size: 16px;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--blue-soft);
  background: #24262b;
}

.contact-form textarea {
  min-height: 130px;
  resize: vertical;
}

.form-note {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 60px;
  border-top: 1px solid var(--line-dark);
  background: var(--dark);
  color: var(--muted);
  font-size: 14px;
}

.footer .brand {
  color: var(--light);
  font-size: 18px;
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1020px) {
  .nav,
  .hero-panel,
  .work,
  .contact-info,
  .contact-form,
  .footer {
    padding-left: 32px;
    padding-right: 32px;
  }

  .about-aside {
    padding-left: 32px;
  }

  .services > .section-kicker,
  .service-list {
    padding-left: 32px;
    padding-right: 32px;
  }

  h1 {
    font-size: 72px;
  }

  .service-trigger {
    grid-template-columns: 44px minmax(190px, 1fr) 0.85fr 32px;
  }
}

@media (max-width: 860px) {
  .nav {
    min-height: 64px;
    grid-template-columns: 1fr auto;
    padding: 0 20px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-cta {
    display: none;
  }

  .nav-menu {
    position: fixed;
    left: 0;
    right: 0;
    top: 64px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 20px 20px;
    border-bottom: 1px solid var(--line);
    background: rgba(236, 236, 237, 0.98);
  }

  .nav-menu.is-open {
    display: flex;
  }

  .nav-menu a {
    padding: 14px 0;
    border-bottom: 1px solid rgba(22, 23, 26, 0.1);
    font-size: 15px;
  }

  .hero,
  .about,
  .contact {
    display: block;
  }

  .hero-panel {
    min-height: auto;
    padding: 42px 20px;
  }

  .hero-title-panel {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  h1 {
    font-size: 44px;
  }

  .hero-copy {
    font-size: 17px;
  }

  .hero-actions {
    flex-direction: row;
  }

  .button {
    min-height: 48px;
    padding: 0 18px;
    font-size: 14px;
  }

  .ticker-track {
    padding: 13px 0;
  }

  .ticker span {
    padding: 0 18px;
    font-size: 13px;
  }

  .about-aside {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    padding: 48px 20px 0;
  }

  .about-body {
    padding: 28px 20px 48px;
  }

  .since strong {
    font-size: 48px;
    text-align: right;
  }

  .since span {
    max-width: 20ch;
    text-align: right;
  }

  .about-lead {
    max-width: none;
    font-size: 22px;
  }

  .about-cards {
    grid-template-columns: 1fr;
    margin-top: 28px;
  }

  .services > .section-kicker {
    padding: 44px 20px 8px;
  }

  .service-list {
    padding: 0 20px 40px;
  }

  .service-trigger {
    grid-template-columns: 32px minmax(0, 1fr) 28px;
    gap: 14px;
    padding: 22px 0;
  }

  .service-trigger:hover {
    padding-left: 0;
    padding-right: 0;
    background: transparent;
    color: inherit;
  }

  .service-summary {
    display: none;
  }

  .service-title {
    font-size: 21px;
  }

  .service-detail {
    padding: 0 0 26px 46px;
  }

  .service-detail ul {
    grid-template-columns: 1fr;
  }

  .work {
    padding: 52px 20px 64px;
  }

  .section-row {
    margin-bottom: 28px;
  }

  .work-grid {
    grid-template-columns: 1fr;
  }

  .project-card-tall,
  .project-card-wide {
    grid-row: auto;
    grid-column: auto;
  }

  .project-card-tall .project-media,
  .project-card-wide .project-media,
  .project-media {
    aspect-ratio: 1 / 1;
  }

  .lightbox {
    align-items: flex-start;
    overflow-y: auto;
    padding: 14px;
  }

  .lightbox-panel {
    width: 100%;
    gap: 14px;
  }

  .lightbox-stage {
    aspect-ratio: 4 / 3;
  }

  .lightbox-header h2 {
    font-size: 20px;
  }

  .lightbox-caption {
    padding: 46px 16px 16px;
    font-size: 20px;
  }

  .lightbox-nav {
    width: 42px;
    height: 42px;
  }

  .lightbox-prev {
    left: 10px;
  }

  .lightbox-next {
    right: 10px;
  }
  .contact-info,
  .contact-form {
    padding: 56px 20px;
  }

  .contact-info {
    border-right: 0;
    border-bottom: 1px solid var(--line-dark);
  }

  .contact h2 {
    font-size: 36px;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
    padding: 28px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}