/* ================= Tokens ================= */
:root {
  --paper: #0b0f19;        /* base */
  --paper-2: #11161f;      /* lighter band */
  --ink: #06090f;          /* deeper band */
  --ink-2: #151a26;
  --text: #f3f5f9;
  --muted: #9aa3b5;
  --muted-dark: #9aa3b5;
  --rule: rgba(255,255,255,.12);
  --rule-dark: rgba(255,255,255,.12);
  --accent: #4f7cff;
  --serif: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --sans: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --wrap: 1240px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --ease: cubic-bezier(.2,.7,.2,1);
}

/* ================= Base ================= */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 400; }

h1, h2, .huge, .big, .fact-n, .step-n, .row h3, .case h3, .city-name, blockquote p, .email, .intro-text, .step h3 {
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: -0.025em;
}
h1 { font-size: clamp(2.75rem, 6vw, 5rem); line-height: 1.02; letter-spacing: -0.035em; }
h1 em { font-style: normal; color: var(--accent); }
h2 { font-size: clamp(1.85rem, 3.2vw, 2.75rem); line-height: 1.1; max-width: 24ch; }
h3 { font-weight: 500; font-size: 1.1rem; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }

.label {
  font-size: .75rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.dark .label { color: var(--muted-dark); }

.section { padding: clamp(5rem, 10vw, 9rem) 0; }
.section-title { display: grid; grid-template-columns: 1fr 3fr; gap: 2rem; align-items: start; margin-bottom: clamp(3rem, 6vw, 5rem); }
.section-title h2 { grid-column: 2; }
.section-title .label { padding-top: .6rem; }
.row-title { grid-template-columns: 1fr 3fr; align-items: end; margin-bottom: 3rem; }
.row-title .note { grid-column: 2; color: var(--muted); font-size: .95rem; }

.dark { background: var(--ink); color: var(--text); }

.arrow { display: inline-block; margin-left: .45em; transition: transform .25s var(--ease); }
a:hover .arrow, button:hover .arrow { transform: translateX(4px); }

/* ================= Buttons ================= */
.btn {
  display: inline-flex; align-items: center;
  padding: .95rem 1.5rem;
  font: 500 .95rem/1 var(--sans);
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn-dark, .btn-light { background: #ffffff; color: #0b0f19; }
.btn-dark:hover, .btn-light:hover { background: var(--accent); color: #fff; }
.textlink { font-weight: 500; font-size: .95rem; border-bottom: 1px solid var(--rule); padding-bottom: .15rem; }
.textlink:hover { border-color: var(--text); }

/* ================= Header ================= */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .3s var(--ease), border-color .3s var(--ease), backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.header.solid {
  background: rgba(11,15,25,.8);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border-color: var(--rule);
}
.header.on-dark.solid { background: rgba(6,9,15,.85); border-color: var(--rule-dark); }
.header.on-dark .menu a { color: var(--muted-dark); }
.header.on-dark .menu a:hover, .header.on-dark .menu-cta { color: var(--text) !important; }
.header.on-dark .menu-cta { border-color: var(--rule-dark); }
.header.on-dark .menu-cta:hover { border-color: var(--text); }

.header-row { display: flex; align-items: center; justify-content: space-between; height: 80px; }

.wordmark { font-weight: 600; font-size: 1.15rem; letter-spacing: -.02em; white-space: nowrap; }

.menu { display: flex; align-items: center; gap: 2.25rem; }
.menu a { font-size: .92rem; font-weight: 500; color: var(--muted); transition: color .2s; }
.menu a:hover { color: var(--text); }
.menu-cta { color: var(--text) !important; border-bottom: 1px solid var(--rule); padding-bottom: .1rem; }
.menu-cta:hover { border-color: var(--text); }

.burger { display: none; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; position: relative; padding: 0; }
.burger span { position: absolute; left: 10px; right: 10px; height: 1.5px; background: var(--text); transition: transform .25s var(--ease), top .25s var(--ease); }
.burger span:first-child { top: 18px; } .burger span:last-child { top: 25px; }
.menu-open .burger span:first-child { top: 21.5px; transform: rotate(45deg); }
.menu-open .burger span:last-child { top: 21.5px; transform: rotate(-45deg); }

/* ================= Hero ================= */
.hero { padding-top: 80px; }
.hero-grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: end;
  padding: clamp(3rem, 7vw, 6rem) 0 clamp(2.5rem, 5vw, 4rem);
}
.kicker { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-bottom: 2rem; }
.hero-lede { font-size: 1.2rem; color: var(--muted); max-width: 46ch; margin-top: 2rem; line-height: 1.55; }
.hero-actions { display: flex; gap: 1.75rem; align-items: center; margin-top: 2.5rem; flex-wrap: wrap; }
.hero-media { aspect-ratio: 4 / 5; overflow: hidden; background: var(--paper-2); border-radius: 4px; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.7) brightness(.92); transition: transform 1.2s var(--ease); }
.hero-media:hover img { transform: scale(1.02); }

.facts {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--rule);
  padding: 2rem 0 clamp(3rem, 6vw, 5rem);
  gap: 2rem;
}
.facts li { display: grid; gap: .25rem; padding-right: 2rem; }
.facts li + li { border-left: 1px solid var(--rule); padding-left: 2rem; }
.fact-n { font-size: 2.25rem; line-height: 1; }
.fact-l { color: var(--muted); font-size: .95rem; max-width: 28ch; }

/* ================= Intro ================= */
.intro { background: var(--paper-2); padding: clamp(4rem, 8vw, 7rem) 0; }
.intro-grid { display: grid; grid-template-columns: 1fr 3fr; gap: 2rem; }
.intro-text { font-size: clamp(1.35rem, 2.2vw, 1.9rem); line-height: 1.35; max-width: 34ch; font-weight: 400; letter-spacing: -0.015em; color: var(--text); }

/* ================= Services list ================= */
.list { border-top: 1px solid var(--rule); }
.row {
  display: grid; grid-template-columns: 1fr 3fr 4fr; gap: 2rem;
  padding: 2.25rem 0; border-bottom: 1px solid var(--rule);
  position: relative;
  transition: padding .35s var(--ease);
}
.row::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: var(--text); transform: scaleX(0); transform-origin: left;
  transition: transform .5s var(--ease);
}
.row:hover::after { transform: scaleX(1); }
.row:hover { padding-left: .5rem; }
.row-n { font-size: .8rem; letter-spacing: .1em; color: var(--muted); padding-top: .5rem; font-variant-numeric: tabular-nums; }
.row h3 { font-size: clamp(1.35rem, 2vw, 1.7rem); line-height: 1.15; }
.row p { color: var(--muted); max-width: 52ch; }

/* ================= Outcomes ================= */
.outcomes { padding: clamp(5rem, 9vw, 8rem) 0; }
.outcome-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem; margin-top: 3rem; }
.outcome-grid > div { border-top: 1px solid var(--rule-dark); padding-top: 1.75rem; }
.big { display: block; font-size: clamp(2.2rem, 3.6vw, 3.25rem); line-height: 1; margin-bottom: 1rem; }
.outcome-grid p { color: var(--muted-dark); max-width: 30ch; }

/* ================= Steps ================= */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem; border-top: 1px solid var(--rule); padding-top: 2.5rem; }
.step { display: grid; gap: .75rem; align-content: start; }
.step-n { font-size: 3rem; line-height: 1; color: var(--accent); }
.step h3 { font-size: 1.4rem; }
.step p { color: var(--muted); max-width: 34ch; }
.step-meta { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-top: .5rem; }

/* ================= Work ================= */
.work { background: var(--paper-2); }
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(2rem, 4vw, 4rem); }
.case figure { aspect-ratio: 3 / 2; overflow: hidden; background: var(--ink-2); margin-bottom: 1.5rem; border-radius: 4px; }
.case img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.75) brightness(.9); transition: transform 1s var(--ease), filter .6s; }
.case:hover img { transform: scale(1.03); filter: saturate(.95) brightness(1); }
.case-tag { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-bottom: .75rem; }
.case h3 { font-size: 1.4rem; line-height: 1.2; margin-bottom: .75rem; }
.case p:last-child { color: var(--muted); max-width: 46ch; }

/* ================= Quote ================= */
.quote { padding: clamp(5rem, 10vw, 9rem) 0; }
.quote blockquote { margin: 0; max-width: 980px; }
.quote p { font-size: clamp(1.5rem, 2.8vw, 2.5rem); line-height: 1.25; letter-spacing: -.025em; }
.quote footer { margin-top: 2rem; color: var(--muted-dark); font-size: .95rem; }
.quote footer::before { content: ""; display: inline-block; width: 2rem; height: 1px; background: var(--muted); vertical-align: middle; margin-right: 1rem; }

/* ================= Cities ================= */
.city-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(2rem, 4vw, 4rem); }
.city { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--ink-2); border-radius: 4px; }
.city img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.75) brightness(.9); transition: transform 1.2s var(--ease), filter .6s; }
.city:hover img { transform: scale(1.03); filter: saturate(.95) brightness(1); }
.city figcaption {
  position: absolute; inset: auto 0 0 0;
  padding: 1.5rem;
  display: grid; grid-template-columns: 1fr auto; align-items: end;
  color: #fff;
  background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.55));
}
.city-name { font-size: 1.6rem; line-height: 1; grid-column: 1; }
.city-sub { grid-column: 1; font-size: .85rem; opacity: .85; margin-top: .35rem; }
.city-time { grid-column: 2; grid-row: 1 / span 2; font-size: .8rem; letter-spacing: .06em; opacity: .9; font-variant-numeric: tabular-nums; }

/* ================= Contact ================= */
.contact { padding: clamp(5rem, 10vw, 9rem) 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(3rem, 6vw, 6rem); align-items: start; }
.huge { font-size: clamp(3.25rem, 7.5vw, 6.5rem); line-height: .98; margin: 1.25rem 0 1.5rem; letter-spacing: -0.04em; }
.contact-lede { color: var(--muted-dark); max-width: 40ch; font-size: 1.1rem; }
.email { display: inline-block; margin-top: 2rem; font-size: clamp(1.2rem, 2vw, 1.5rem); border-bottom: 1px solid var(--rule-dark); padding-bottom: .2rem; transition: border-color .25s; }
.email:hover { border-color: var(--text); }
.addresses { font-style: normal; display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--rule-dark); color: var(--muted-dark); font-size: .95rem; line-height: 1.6; }
.addr-label { display: block; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text); margin-bottom: .5rem; font-weight: 500; }

.form { display: grid; gap: .25rem; padding-top: .5rem; }
.field { position: relative; }
.field input, .field textarea {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--rule-dark);
  color: var(--text); font: inherit; font-size: 1.05rem; padding: 1.6rem 0 .8rem;
  transition: border-color .25s; resize: none;
}
.field label {
  position: absolute; left: 0; top: 1.55rem; color: var(--muted-dark); font-size: 1.05rem;
  pointer-events: none; transition: all .2s var(--ease);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--text); }
.field input:focus + label, .field textarea:focus + label,
.field input:not(:placeholder-shown) + label, .field textarea:not(:placeholder-shown) + label {
  top: .35rem; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
}
.form .btn { justify-self: start; margin-top: 2rem; }

/* ================= Footer ================= */
.footer { background: var(--ink); color: var(--muted); border-top: 1px solid var(--rule); }
.footer .wordmark { color: var(--text); }
.footer-row { display: flex; justify-content: space-between; align-items: center; padding: 2.5rem 0; flex-wrap: wrap; gap: 1.5rem; }
.footer-links { display: flex; gap: 2rem; flex-wrap: wrap; }
.footer-links a { font-size: .92rem; transition: color .2s; }
.footer-links a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; padding: 1.25rem 0 2rem; font-size: .82rem; border-top: 1px solid var(--rule-dark); flex-wrap: wrap; gap: .5rem; }

/* ================= Reveal ================= */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .hero-media img, .case img, .city img { transition: none; }
}

/* ================= Responsive ================= */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; align-items: start; }
  .hero-media { aspect-ratio: 16 / 10; max-height: 520px; }
  .section-title, .row-title, .intro-grid { grid-template-columns: 1fr; gap: 1rem; }
  .section-title h2, .row-title .note { grid-column: 1; }
  .row { grid-template-columns: auto 1fr; }
  .row p { grid-column: 2; }
  .outcome-grid, .steps { grid-template-columns: 1fr; gap: 2.5rem; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 1rem; }
  .header-row { height: 68px; }
  .hero { padding-top: 68px; }
  html { scroll-padding-top: 76px; }
  .burger { display: block; }
  .menu {
    position: fixed; inset: 68px 0 0 0; background: var(--paper);
    flex-direction: column; align-items: flex-start; gap: 0; padding: 1rem var(--gutter);
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity .25s var(--ease), transform .25s var(--ease);
    border-top: 1px solid var(--rule);
  }
  .menu.open { opacity: 1; transform: none; pointer-events: auto; }
  .menu a { font-size: 1.75rem; font-weight: 500; letter-spacing: -.02em; color: var(--ink); padding: 1rem 0; width: 100%; border-bottom: 1px solid var(--rule); }
  .menu-cta { border-bottom: 1px solid var(--rule) !important; }
  .facts { grid-template-columns: 1fr; gap: 1.5rem; }
  .facts li + li { border-left: 0; padding-left: 0; border-top: 1px solid var(--rule); padding-top: 1.5rem; }
  .work-grid, .city-grid { grid-template-columns: 1fr; }
  .row { gap: 1.25rem; padding: 1.75rem 0; }
  .row:hover { padding-left: 0; }
  .huge { font-size: 4rem; }
  .city-name { font-size: 1.6rem; }
}
