/* Hanken Grotesk (SIL Open Font License, fonts/OFL.txt), served from this site
   instead of Google Fonts so visitors' IP addresses don't go to Google. */
@font-face {
  font-family: "Hanken Grotesk"; font-style: normal; font-weight: 300 800; font-display: swap;
  src: url("fonts/hanken-grotesk-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Hanken Grotesk"; font-style: normal; font-weight: 300 800; font-display: swap;
  src: url("fonts/hanken-grotesk-latin.woff2") format("woff2");
  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;
}

:root {
  --bg: #262624;
  --bg-2: #2E2E2B;
  --ink: #F5F4EE;
  --muted: #A9A79E;
  --gray: #888780;
  --line: rgba(245, 244, 238, 0.14);
  --pad: clamp(16px, 4vw, 56px);
  --font: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 999px;
}
.skip:focus { top: 16px; }

/* Header */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px var(--pad);
  transition: color 0.3s, padding 0.4s var(--ease);
}
/* Once the page scrolls, a frosted layer keeps the logo and menu readable over
   content. It is a progressive blur: a strong blur near the top and a light one
   reaching further down, plus a tint that fades out, so there is no visible edge.
   (Two layers, not more: every backdrop blur is costly while scrolling.) */
.header-fade {
  position: absolute; inset: 0 0 -64px 0; z-index: -1; pointer-events: none;
  opacity: 0; transition: opacity 0.4s;
}
.header-fade span { position: absolute; inset: 0; }
.header-fade span:nth-child(1) {
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 50%, rgba(0, 0, 0, 0.5) 75%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 50%, rgba(0, 0, 0, 0.5) 75%, transparent 100%);
}
.header-fade span:nth-child(2) {
  -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 32%, rgba(0, 0, 0, 0.45) 48%, transparent 66%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 32%, rgba(0, 0, 0, 0.45) 48%, transparent 66%);
}
.header-fade::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom,
    rgba(38, 38, 36, 0.78) 0%, rgba(38, 38, 36, 0.66) 35%, rgba(38, 38, 36, 0.4) 58%,
    rgba(38, 38, 36, 0.16) 78%, rgba(38, 38, 36, 0.04) 92%, rgba(38, 38, 36, 0) 100%);
}
.header.is-scrolled { padding-block: 14px; }
.header.is-scrolled .header-fade { opacity: 1; }
/* Over the light menu overlay the header turns dark and drops the frosted layer. */
.header.menu-on { color: var(--bg); }
.header.menu-on .header-fade { opacity: 0; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-size: 18px; letter-spacing: -0.01em; }
.brand-mark { width: 30px; height: 30px; }
.menu-btn {
  background: none; border: 0; padding: 8px 0; font-size: 18px; letter-spacing: -0.01em;
}
.menu-close { display: none; }
.menu-open-state .menu-open { display: none; }
.menu-open-state .menu-close { display: inline; }

/* Menu overlay */
.menu {
  position: fixed; inset: 0; z-index: 40;
  background: var(--ink); color: var(--bg);
  display: flex; flex-direction: column; justify-content: center;
  padding: 100px var(--pad) 40px;
}
.menu[hidden] { display: none; }
.menu ul { list-style: none; margin: 0; padding: 0; }
.menu a {
  display: flex; align-items: baseline; gap: 18px;
  font-size: min(clamp(40px, 8vw, 110px), 11vh); font-weight: 700; line-height: 1.02;
  letter-spacing: -0.04em; text-transform: uppercase; text-decoration: none;
}
.menu a small { font-size: 14px; font-weight: 500; letter-spacing: 0; }
.menu a:hover { color: var(--gray); }
.menu-foot { margin: auto 0 0; font-size: 16px; }

/* Hero */
.hero {
  /* clip sideways only: the logo's drawing area reaches past the right edge */
  position: relative; min-height: 100vh; min-height: 100svh; overflow-x: clip;
  padding: 120px var(--pad) 40px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.hero-title {
  position: relative; z-index: 2;
  margin: 0; font-weight: 800; text-transform: uppercase;
  font-size: clamp(46px, 10.2vw, 190px); line-height: 0.88; letter-spacing: -0.055em;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.04em; }
.hero-title .word { display: inline-block; }

.hero-layers {
  position: absolute; z-index: 1; right: var(--pad); top: 110px;
  width: min(22vw, 340px);
  color: var(--ink); pointer-events: none;
}
/* The drawing area reaches well past the mark (viewBox -20 -80 136 256 around the
   96x96 logo), so the layers can drift apart and tilt without being clipped. */
.hero-layers { aspect-ratio: 1; will-change: transform; }
/* The SVG gets its own compositing layer: Safari otherwise forgets to repaint the
   spots the moving chevron tips just left, and leaves little dashes behind. */
.hero-layers svg {
  position: absolute; left: -20.833%; top: -83.333%;
  width: 141.667%; height: 266.667%; max-width: none; overflow: visible;
  will-change: transform; transform: translateZ(0);
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
}

.hero-bottom {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px;
  align-items: end; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line);
}
.hero-lead { margin: 0; max-width: 34em; font-size: clamp(18px, 1.6vw, 22px); }
.hero-meta { margin: 0; display: grid; grid-template-columns: repeat(3, auto); gap: 28px; justify-content: end; font-size: 15px; }
.hero-meta dt { color: var(--muted); text-transform: uppercase; font-size: 12px; letter-spacing: 0.08em; margin-bottom: 4px; }
.hero-meta dd { margin: 0; }
.clock-time { font-variant-numeric: tabular-nums; }
.copy {
  margin-left: 6px; padding: 2px 10px; border: 1px solid var(--line); border-radius: 999px;
  background: none; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em;
}
.copy:hover { border-color: var(--ink); }
.copy-done { display: block; color: var(--muted); font-size: 12px; min-height: 1em; }

/* Marquee */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 18px 0; }
.marquee-track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.marquee span {
  font-size: clamp(22px, 3vw, 40px); font-weight: 300; letter-spacing: -0.02em; padding-right: 0.9em; white-space: nowrap;
}
.marquee span::after { content: ""; display: inline-block; width: 0.32em; height: 0.32em; margin-left: 0.9em; background: var(--gray); transform: rotate(45deg) translateY(-0.1em); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Intro */
.intro { padding: clamp(80px, 14vw, 200px) var(--pad); }
.intro-text {
  margin: 0; max-width: 22em;
  font-size: clamp(28px, 4.4vw, 68px); font-weight: 500; line-height: 1.08; letter-spacing: -0.035em;
}
.intro-text .w { opacity: 0.18; transition: opacity 0.2s linear; }
.no-scrub .intro-text .w { opacity: 1; }

/* Sections */
.section { padding: clamp(64px, 9vw, 140px) var(--pad); border-top: 1px solid var(--line); }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: end; margin-bottom: clamp(36px, 5vw, 72px); }
.section-title {
  margin: 0; font-weight: 800; text-transform: uppercase;
  font-size: clamp(48px, 9vw, 150px); line-height: 0.88; letter-spacing: -0.05em;
}
.section-note { margin: 0; max-width: 28em; color: var(--muted); justify-self: end; }

/* Work */
.work-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.work-row {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto 80px; gap: 24px; align-items: center;
  padding: 28px 0; border-bottom: 1px solid var(--line); text-decoration: none;
  transition: padding 0.5s var(--ease), color 0.3s;
}
.work-name { font-size: clamp(28px, 4.6vw, 72px); font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.work-tag { color: var(--muted); font-size: 15px; text-transform: uppercase; letter-spacing: 0.06em; }
.work-year { justify-self: end; color: var(--muted); font-variant-numeric: tabular-nums; }
.work-row-next .work-name { color: var(--gray); }
.work-thumb { display: none; }
.work-preview {
  position: fixed; left: 0; top: 0; z-index: 30; width: 360px; aspect-ratio: 16 / 10;
  border-radius: 14px; overflow: hidden; pointer-events: none; opacity: 0;
  transform: translate(-50%, -50%) scale(0.85);
}
.work-preview img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
@media (hover: hover) {
  .work-list:hover .work-row { color: var(--gray); }
  .work-list .work-row:hover { color: var(--ink); padding-left: 24px; }
}

/* About */
.about-lead {
  margin: 0 0 clamp(40px, 5vw, 72px); max-width: 24em;
  font-size: clamp(24px, 3vw, 44px); font-weight: 500; line-height: 1.15; letter-spacing: -0.03em;
}
.people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.person {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 24px;
  padding: clamp(28px, 3vw, 44px);
}
.person-place { margin: 0 0 28px; color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; }
.person-name {
  margin: 0; font-weight: 800; text-transform: uppercase;
  font-size: clamp(56px, 7vw, 112px); line-height: 0.85; letter-spacing: -0.05em;
}
.person-role { margin: 14px 0 24px; color: var(--gray); font-size: clamp(18px, 1.6vw, 22px); }
.person p:last-child { margin: 0; color: var(--muted); font-size: clamp(17px, 1.3vw, 19px); }
.promises {
  list-style: none; margin: clamp(32px, 4vw, 56px) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line);
}
.promises li { padding: 20px 20px 0 0; font-size: clamp(16px, 1.3vw, 19px); }
.promises span { display: block; margin-bottom: 10px; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }

/* Services accordion */
.acc { border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-item summary {
  display: grid; grid-template-columns: 64px minmax(0, 1fr) 40px; align-items: center; gap: 16px;
  padding: 26px 0; cursor: pointer; list-style: none;
}
.acc-item summary::-webkit-details-marker { display: none; }
.acc-num { color: var(--muted); font-size: 15px; font-variant-numeric: tabular-nums; }
.acc-title { font-size: clamp(24px, 3.4vw, 48px); font-weight: 600; letter-spacing: -0.035em; line-height: 1.05; }
.acc-icon { position: relative; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; transition: transform 0.4s var(--ease), background 0.3s; }
.acc-icon::before, .acc-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); }
.acc-icon::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform 0.4s var(--ease); }
.acc-item[open] .acc-icon { background: var(--ink); color: var(--bg); }
.acc-item[open] .acc-icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.acc-item summary:hover .acc-title { color: var(--gray); }
.acc-body { padding: 0 56px 30px 80px; max-width: 900px; }
.acc-body p { margin: 0; color: var(--muted); font-size: clamp(17px, 1.4vw, 20px); }

.extras { margin-top: clamp(48px, 6vw, 88px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 32px; }
.extras-title { margin: 0; font-size: 15px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.extras-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; font-size: clamp(17px, 1.5vw, 21px); }
.extras-list span { display: inline-block; width: 44px; color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }

/* Packages */
.pkg-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pkg {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 24px; padding: 32px 28px 36px;
  transition: transform 0.5s var(--ease), border-color 0.3s;
}
.pkg:hover { transform: translateY(-6px); border-color: rgba(245, 244, 238, 0.35); }
.pkg h3 { margin: 0 0 6px; font-size: clamp(32px, 3.4vw, 48px); font-weight: 700; letter-spacing: -0.04em; text-transform: uppercase; }
.pkg-sub { margin: 0 0 24px; color: var(--muted); }
.pkg ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.pkg li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.pkg-feature { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.pkg-feature .pkg-sub { color: #5F5E5A; }
.pkg-feature ul, .pkg-feature li { border-color: rgba(38, 38, 36, 0.16); }
.pkg-note { margin: 28px 0 0; color: var(--muted); }

/* Process */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; position: relative; }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line); }
.steps::after { content: ""; position: absolute; left: 0; top: 0; height: 1px; width: 100%; background: var(--ink); transform-origin: left; transform: scaleX(var(--progress, 1)); }
.step { padding: 28px 24px 0 0; }
.step-num { display: inline-block; font-size: 14px; color: var(--muted); margin-bottom: 40px; font-variant-numeric: tabular-nums; }
.step h3 { margin: 0 0 10px; font-size: clamp(20px, 1.9vw, 26px); font-weight: 600; letter-spacing: -0.02em; }
.step p { margin: 0; color: var(--muted); font-size: 16px; }

/* Contact */
.contact-title {
  margin: 0 0 16px; font-weight: 800; text-transform: uppercase;
  font-size: clamp(64px, 15vw, 260px); line-height: 0.85; letter-spacing: -0.06em;
}
.contact .section-note { justify-self: start; margin-bottom: 32px; }
.chips {
  position: relative; display: flex; flex-wrap: wrap; gap: 10px;
  margin-bottom: 48px;
}
.chips.is-physics { height: 340px; border: 1px solid var(--line); border-radius: 24px; overflow: hidden; touch-action: pan-y; }
.chip {
  border: 1px solid var(--ink); background: transparent; border-radius: 999px;
  padding: 14px 26px; font-size: clamp(17px, 1.7vw, 22px); white-space: nowrap; user-select: none;
  transition: background 0.25s, color 0.25s;
}
.chips.is-physics .chip { position: absolute; left: 0; top: 0; will-change: transform; cursor: grab; padding: 13px 25px; font-size: 20px; }
.chips.is-grabbing, .chips.is-grabbing .chip { cursor: grabbing; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); }

.form { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 20px; }
.field { display: grid; gap: 6px; }
.field-wide { grid-column: 1 / -1; }
.field label { font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.field input, .field textarea {
  width: 100%; background: transparent; color: var(--ink); font: inherit;
  border: 0; border-bottom: 1px solid var(--line); padding: 10px 0; border-radius: 0;
}
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--ink); }
.field [aria-invalid="true"] { border-bottom-color: #F09595; }
.form-foot { grid-column: 1 / -1; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.form-status { margin: 0; color: var(--muted); }
.form-legal { margin: 0; color: var(--muted); font-size: 14px; }
.form-legal a { color: var(--ink); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cf-turnstile { min-height: 65px; }
.btn:disabled { opacity: 0.6; cursor: progress; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 160px; min-height: 64px; padding: 0 36px;
  background: var(--ink); color: var(--bg); border: 0; border-radius: 999px;
  font-size: 18px; font-weight: 600;
}
.btn span, .to-top span { display: inline-block; pointer-events: none; }

/* Footer */
.footer { padding: clamp(64px, 9vw, 120px) var(--pad) 32px; border-top: 1px solid var(--line); overflow: hidden; }
.footer-word {
  margin: 0 0 40px; font-weight: 800; text-transform: uppercase; white-space: nowrap;
  font-size: clamp(48px, 13.4vw, 250px); line-height: 0.85; letter-spacing: -0.06em;
}
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 32px; color: var(--muted); font-size: 15px; }
.footer-row a { color: var(--ink); }
.to-top { background: none; border: 1px solid var(--line); border-radius: 999px; padding: 12px 20px; font-size: 15px; }
.to-top:hover { border-color: var(--ink); }

/* Reveal helpers (only when JS runs; the content is visible without JS) */
.js .fade { opacity: 0; transform: translateY(24px); }

/* Responsive */
@media (max-width: 1000px) {
  .hero-bottom { grid-template-columns: 1fr; }
  .hero-meta { justify-content: start; grid-template-columns: repeat(2, auto); }
  .hero-layers { position: relative; right: auto; top: auto; align-self: flex-end; width: min(42vw, 260px); margin: 40px 0 0; }
  .section-head { grid-template-columns: 1fr; }
  .section-note { justify-self: start; }
  .pkg-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .steps::before, .steps::after { display: none; }
  .step { padding: 24px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 8px; }
  .step-num { margin: 4px 0 0; grid-row: span 2; }
  .extras { grid-template-columns: 1fr; }
  .people { grid-template-columns: 1fr; }
  .promises { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 8px; }
  .form { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .hero { padding-top: 104px; }
  .hero-meta { grid-template-columns: 1fr 1fr; gap: 20px; }
  .hero-meta > div:last-child { grid-column: 1 / -1; }
  .work-row { grid-template-columns: minmax(0, 1fr) auto; row-gap: 6px; padding: 22px 0; }
  .work-tag { grid-column: 1; grid-row: 2; font-size: 13px; }
  .work-year { grid-row: 1; grid-column: 2; }
  .work-thumb { display: block; grid-column: 1 / -1; width: 100%; height: auto; border-radius: 12px; margin-top: 12px; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
  .work-row-next .work-thumb { display: none; }
  .acc-item summary { grid-template-columns: 40px minmax(0, 1fr) 36px; gap: 10px; padding: 22px 0; }
  .acc-icon { width: 36px; height: 36px; }
  .acc-body { padding: 0 0 24px 50px; }
  .chip { padding: 12px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .fade { opacity: 1; transform: none; }
  .intro-text .w { opacity: 1; }
  .marquee-track { animation: none; }
}

/* Inner pages: Privacy Policy and 404 */
.header-link { font-size: 18px; text-decoration: none; }
.header-link:hover { color: var(--gray); }
.legal { max-width: 760px; padding: 140px var(--pad) 80px; }
.legal-title, .notfound-title {
  margin: 0; font-weight: 800; text-transform: uppercase;
  font-size: clamp(48px, 9vw, 120px); line-height: 0.88; letter-spacing: -0.05em;
}
.legal-updated { margin: 16px 0 48px; color: var(--muted); }
.legal section { padding: 28px 0; border-top: 1px solid var(--line); }
.legal h2 { margin: 0 0 12px; font-size: 24px; font-weight: 600; letter-spacing: -0.02em; }
.legal p, .legal li { color: var(--muted); }
.legal strong { color: var(--ink); font-weight: 600; }
.legal ul { padding-left: 1.2em; }
.legal mark { background: #F09595; color: var(--bg); padding: 0 4px; border-radius: 4px; }
.footer-small { padding-top: 32px; }
.notfound { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; gap: 24px; align-items: flex-start; padding: 120px var(--pad) 60px; }
.notfound p { margin: 0; color: var(--muted); font-size: 20px; }
.notfound .btn { text-decoration: none; }
