@font-face {
  font-family: 'Fraunces';
  src: url('/fonts/fraunces-latin.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Instrument Sans';
  src: url('/fonts/instrument-sans.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

html {
  scroll-padding-top: 88px;
}

body {
  background: #090909;
  color: var(--ink);
  font-weight: 450;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

h1,
h2,
.display {
  font-weight: 460;
  text-wrap: balance;
}

.display {
  font-family: var(--font-display);
  font-size: var(--text-display);
  line-height: 0.9;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}

.display span {
  display: block;
}

h2 {
  max-width: 16ch;
  font-size: var(--text-h2);
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.lede {
  max-width: 36rem;
  margin-top: 22px;
  color: var(--ink-muted);
  font-size: 1.05rem;
  line-height: 1.5;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(9, 9, 9, 0.92);
  border-bottom: 1px solid transparent;
}

.site-header.is-stuck {
  border-bottom-color: var(--line);
}

.header-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  width: min(1360px, calc(100% - 32px));
  min-height: 64px;
  margin-inline: auto;
}

.wordmark {
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-decoration: none;
  text-transform: uppercase;
}

.nav-desktop {
  display: none;
  gap: 22px;
  margin-left: auto;
}

.nav-desktop a {
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-decoration: none;
  text-transform: uppercase;
}

.nav-desktop a[aria-current='true'] {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
}

.header-cta {
  display: none;
  min-height: 44px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

body.menu-open {
  overflow: hidden;
}

.menu-toggle {
  margin-left: auto;
}

.menu-close {
  align-self: flex-end;
  margin: 0 0 12px;
}

.hero {
  position: relative;
  min-height: calc(100svh - 64px);
  padding: 28px 0 120px;
  overflow: hidden;
}

.hero-wave {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: min(28vh, 220px);
  pointer-events: none;
}

.hero-wave svg {
  width: 100%;
  height: 100%;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 100%;
}

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

.hero-actions .btn {
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.standard h2,
.work h2,
.services h2,
.process h2 {
  margin-bottom: 28px;
}

.work-note {
  max-width: 36rem;
  margin: -12px 0 28px;
  color: var(--ink-muted);
}

.case + .case {
  margin-top: 28px;
}

.case h3 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  font-weight: 460;
  letter-spacing: -0.03em;
  line-height: 0.95;
  text-transform: uppercase;
}

.meta {
  margin: 12px 0 20px;
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.case-frames {
  display: grid;
  gap: 16px;
}

.case-frames figcaption {
  margin-bottom: 8px;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.device-browser,
.device-phone {
  background: #0c0c0c;
  border: 1px solid #2a2a2a;
}

.device-chrome {
  padding: 8px 12px;
  border-bottom: 1px solid #2a2a2a;
  color: var(--ink-muted);
  font-size: 0.75rem;
}

.device-screen img,
.mini-shot img {
  width: 100%;
  height: auto;
  filter: grayscale(1) contrast(1.05);
}

.mini-shot {
  position: relative;
}

.mini-shot-copy {
  position: absolute;
  right: 12px;
  bottom: 12px;
  left: 12px;
  padding: 12px;
  background: rgba(9, 9, 9, 0.78);
}

.mini-kicker,
.mini-cta {
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mini-title {
  margin: 4px 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1;
}

.dated {
  min-height: 180px;
  padding: 28px 16px;
  text-align: center;
  color: #9a9a94;
}

.dated-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
}

.dated-btn {
  display: inline-block;
  margin-top: 16px;
  padding: 8px 12px;
  border: 1px solid #555;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.case-phone {
  max-width: 240px;
}

.rationale {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  color: var(--ink-muted);
}

.rationale li + li {
  margin-top: 6px;
}

.ba-toggle {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.ba-toggle input {
  position: absolute;
  opacity: 0;
}

.ba-toggle label {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}

.ba-toggle input:checked + label {
  background: var(--ink);
  color: var(--on-ink);
}

.ba-toggle input:focus-visible + label {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

@media (max-width: 809px) {
  .case-desk,
  .case-before,
  .case-phone {
    display: none;
  }

  .case:has(.ba-before:checked) .case-before,
  .case:has(.ba-after:checked) .case-phone {
    display: block;
    max-width: min(280px, 100%);
  }
}

.founder {
  padding: 80px 0;
}

.founder-grid,
.founder-grid.has-photo {
  display: grid;
  gap: 28px;
  width: min(1360px, calc(100% - 32px));
  margin-inline: auto;
}

.founder-picture,
.founder-photo,
.founder-mark {
  background: #f4f3ef;
}

.founder-photo {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.founder-mark {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 5;
  color: #111;
  font-family: var(--font-display);
  font-size: 4rem;
}

.founder-name {
  max-width: none;
  font-size: clamp(4rem, 12vw, 8rem);
  line-height: 0.85;
}

.contact-section {
  padding-bottom: 80px;
}

.contact-grid {
  display: grid;
  gap: 36px;
}

.contact-section .display {
  max-width: 10ch;
}

.text-link {
  display: inline-block;
  margin-top: 18px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.form-grid {
  display: grid;
  gap: 18px;
}

.field.underline-field input,
.field.underline-field textarea {
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  background: transparent;
  padding-inline: 0;
}

.form-error,
.field-error {
  color: var(--ink);
}

.form-success {
  padding: 20px 0;
  font-family: var(--font-display);
  font-size: 1.8rem;
  line-height: 1.15;
}

.hp {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

.check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.check input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
}

.footer-grid {
  display: grid;
  gap: 10px;
}

.footer-mark {
  font-size: clamp(2rem, 5vw, 3.5rem);
  max-width: 12ch;
}

.footer-links {
  display: flex;
  gap: 16px;
}

.footer-links a {
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 650;
}

.footer-operator {
  color: var(--ink-muted);
}

.draft-banner {
  padding: 12px 0;
  background: #141414;
  border-bottom: 1px solid var(--line);
}

.legal h1 {
  margin-bottom: 20px;
  text-transform: uppercase;
}

.legal .container-prose > * + * {
  margin-top: 14px;
}

.legal h2 {
  margin-top: 28px;
  font-size: 1.4rem;
}

.legal a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (min-width: 810px) {
  .menu-toggle {
    display: none;
  }

  .nav-desktop,
  .header-cta {
    display: inline-flex;
  }

  .header-cta {
    margin-left: 8px;
  }

  .hero {
    display: flex;
    align-items: flex-end;
    min-height: calc(100svh - 64px);
    padding-top: 48px;
    padding-bottom: 140px;
  }

  .hero .display {
    font-size: clamp(3.4rem, 6vw, 7.25rem);
  }

  .ba-toggle {
    display: none;
  }

  .case-before,
  .case-desk,
  .case-phone {
    display: block;
  }

  .case-frames {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr) minmax(0, 0.7fr);
    align-items: end;
  }

  .founder-grid,
  .founder-grid.has-photo {
    grid-template-columns: minmax(220px, 360px) minmax(0, 40rem);
    gap: 64px;
    align-items: end;
  }

  .contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
  }

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

  .field-wide {
    grid-column: 1 / -1;
  }
}

@media (max-width: 809px) {
  .hero .display {
    font-size: clamp(1.22rem, 5.45vw, 1.85rem);
    letter-spacing: -0.04em;
  }

  .hero {
    min-height: 0;
    padding-bottom: 88px;
  }

  .hero-copy {
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .display,
  .reveal,
  .mask-reveal img {
    transition: none;
  }
}
