/* ============================================================
   Vantage Aerial — landing page styles
   Aesthetic: cinematic premium. Dark ink + warm paper, one
   restrained altitude accent. Editorial serif display + clean
   grotesk body. Image-forward, generous, calm.
   ============================================================ */

:root {
  --ink: #0d0f12;
  --ink-2: #14171c;
  --ink-3: #1c2026;
  --paper: #f2efe9;
  --paper-2: #e7e3da;
  --text-on-dark: #f3f2ee;
  --text-on-dark-dim: #a7aab0;
  --text-on-paper: #1a1c20;
  --text-on-paper-dim: #5e6066;
  --line-dark: rgba(255, 255, 255, 0.12);
  --line-paper: rgba(20, 22, 26, 0.12);

  /* tweakable */
  --accent: oklch(0.74 0.085 236);
  --accent-soft: color-mix(in oklch, var(--accent) 22%, transparent);
  --display: "Instrument Serif", Georgia, serif;

  --ui: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --maxw: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--ui);
  background: var(--ink);
  color: var(--text-on-dark);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

::selection { background: var(--accent); color: #08090b; }

/* ---------- layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }

.section { padding-block: clamp(72px, 11vw, 150px); position: relative; }
.section--paper { background: var(--paper); color: var(--text-on-paper); }
.section--ink { background: var(--ink); }
.section--ink2 { background: var(--ink-2); }

/* ---------- type ---------- */
.display {
  font-family: var(--display);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.01em;
}
.display em { font-style: italic; }
/* when display font is the grotesk, tighten weight + tracking */
:root[data-type="modern"] {
  --display: "Hanken Grotesk", sans-serif;
}
:root[data-type="modern"] .display { font-weight: 600; letter-spacing: -0.03em; line-height: 1.0; }
:root[data-type="modern"] .display em { font-style: normal; color: var(--accent); }

.eyebrow {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1px;
  background: var(--accent);
  display: inline-block;
}
.section--paper .eyebrow { color: color-mix(in oklch, var(--accent) 78%, #2a2c30); }

.lead { font-size: clamp(17px, 1.9vw, 21px); line-height: 1.6; color: var(--text-on-dark-dim); max-width: 56ch; }
.section--paper .lead { color: var(--text-on-paper-dim); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px;
  border-radius: 2px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  transition: transform .25s cubic-bezier(.2,.7,.2,1), background .25s, color .25s, border-color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn--accent { background: var(--accent); color: #08090b; }
.btn--accent:hover { background: color-mix(in oklch, var(--accent) 88%, white); }
.btn--ghost { border-color: var(--line-dark); color: var(--text-on-dark); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.section--paper .btn--ghost { border-color: var(--line-paper); color: var(--text-on-paper); }
.btn--dark { background: var(--ink); color: var(--text-on-dark); }
.btn--dark:hover { background: var(--ink-3); }
.btn .arrow { transition: transform .25s; }
.btn:hover .arrow { transform: translate(3px, -1px); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .35s, backdrop-filter .35s, border-color .35s, padding .35s;
  border-bottom: 1px solid transparent;
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.nav.scrolled {
  background: color-mix(in srgb, var(--ink) 78%, transparent);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: var(--line-dark);
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 600; letter-spacing: -0.01em; }
.brand__mark {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  color: var(--accent);
  flex: none;
}
.brand__mark svg { width: 34px; height: 34px; }
.brand__name { font-size: 18px; }
.brand__name .thin { color: var(--text-on-dark-dim); font-weight: 400; }

.nav__links { display: flex; align-items: center; gap: 34px; }
.nav__links a { font-size: 14.5px; color: var(--text-on-dark-dim); transition: color .2s; position: relative; }
.nav__links a:hover { color: var(--text-on-dark); }
.nav__cta { display: flex; align-items: center; gap: 18px; }
.nav__toggle { display: none; background: none; border: 0; color: var(--text-on-dark); }

/* mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 99;
  background: var(--ink);
  display: flex; flex-direction: column; justify-content: center;
  padding: var(--gutter);
  gap: 8px;
  transform: translateY(-100%);
  transition: transform .45s cubic-bezier(.2,.7,.2,1);
}
.mobile-menu.open { transform: translateY(0); }
.mobile-menu a {
  font-family: var(--display); font-size: clamp(34px, 9vw, 54px);
  padding-block: 6px; border-bottom: 1px solid var(--line-dark);
}

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; }
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,9,11,.55) 0%, rgba(8,9,11,.2) 35%, rgba(8,9,11,.55) 70%, var(--ink) 100%);
}
.hero__inner { position: relative; z-index: 2; width: 100%; padding-bottom: clamp(54px, 8vw, 96px); padding-top: 120px; }
.hero h1 { font-size: clamp(46px, 8.2vw, 116px); margin: 22px 0 0; max-width: 16ch; }
.hero .lead { margin-top: 26px; color: #d9dade; }
.hero__actions { margin-top: 38px; display: flex; gap: 14px; flex-wrap: wrap; }

.hero__scroll {
  position: absolute; bottom: 26px; right: var(--gutter); z-index: 3;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-on-dark-dim); display: flex; align-items: center; gap: 10px;
}
.hero__scroll .line { width: 1px; height: 38px; background: var(--line-dark); position: relative; overflow: hidden; }
.hero__scroll .line::after { content:""; position:absolute; left:0; top:-50%; width:1px; height:50%; background: var(--accent); animation: scrolldot 2.2s infinite; }
@keyframes scrolldot { 0%{top:-50%} 100%{top:100%} }

/* credential strip */
.creds { border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); background: var(--ink); }
.creds__inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.cred {
  padding: 30px clamp(16px, 2.4vw, 34px);
  border-left: 1px solid var(--line-dark);
}
.cred:first-child { border-left: 0; }
.cred__k { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.cred__v { font-family: var(--display); font-size: clamp(22px, 2.6vw, 30px); margin-top: 8px; line-height: 1.05; }
.cred__d { font-size: 13.5px; color: var(--text-on-dark-dim); margin-top: 6px; }

/* ============================================================
   SECTION HEADER
   ============================================================ */
.shead { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; margin-bottom: clamp(40px, 6vw, 72px); }
.shead h2 { font-size: clamp(34px, 5.4vw, 64px); margin: 18px 0 0; max-width: 18ch; }
.shead__intro { max-width: 600px; }

/* ============================================================
   SERVICES
   ============================================================ */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-paper); border: 1px solid var(--line-paper); }
.svc {
  background: var(--paper);
  padding: clamp(26px, 3vw, 40px);
  display: flex; flex-direction: column; gap: 14px;
  min-height: 280px;
  transition: background .3s;
  position: relative;
}
.svc:hover { background: var(--paper-2); }
.svc__num { font-family: var(--mono); font-size: 12px; color: var(--text-on-paper-dim); letter-spacing: .1em; }
.svc__icon { width: 30px; height: 30px; color: var(--text-on-paper); }
.svc h3 { font-family: var(--display); font-size: clamp(23px, 2.4vw, 30px); margin: 6px 0 0; line-height: 1.05; }
.svc p { font-size: 15px; color: var(--text-on-paper-dim); margin: 0; }
.svc__tags { margin-top: auto; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; color: var(--text-on-paper-dim); text-transform: uppercase; }

/* ============================================================
   PLACEHOLDER
   ============================================================ */
.ph {
  position: relative; overflow: hidden;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.035) 0 2px, transparent 2px 11px),
    linear-gradient(160deg, var(--ink-3), var(--ink-2));
  display: grid; place-items: center;
  border: 1px solid var(--line-dark);
}
.ph--paper {
  background:
    repeating-linear-gradient(135deg, rgba(20,22,26,0.05) 0 2px, transparent 2px 11px),
    linear-gradient(160deg, #ddd9d0, #e7e3da);
  border-color: var(--line-paper);
}
.ph__label {
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-on-dark-dim);
  display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 16px;
}
.ph--paper .ph__label { color: var(--text-on-paper-dim); }
.ph__label .dot { width: 22px; height: 22px; border: 1px solid currentColor; border-radius: 50%; display: grid; place-items: center; opacity: .7; }
.ph__label .dot svg { width: 11px; height: 11px; }

/* ============================================================
   WORK
   ============================================================ */
.work-filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 34px; }
.chip {
  font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  padding: 9px 16px; border-radius: 2px; border: 1px solid var(--line-dark); color: var(--text-on-dark-dim);
  background: transparent; transition: all .2s;
}
.chip:hover { color: var(--text-on-dark); border-color: var(--text-on-dark-dim); }
.chip.active { background: var(--accent); color: #08090b; border-color: var(--accent); }

.work-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; grid-auto-flow: dense; }
.work-item { position: relative; overflow: hidden; cursor: pointer; }
.work-item .ph { width: 100%; height: 100%; }
.work-item__cap {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 18px; display: flex; justify-content: space-between; align-items: flex-end; gap: 12px;
  background: linear-gradient(0deg, rgba(8,9,11,.78), transparent);
  opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .3s;
}
.work-item:hover .work-item__cap { opacity: 1; transform: translateY(0); }
.work-item__cap h4 { margin: 0; font-family: var(--display); font-size: 20px; }
.work-item__cap span { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.work-item .ph img { transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.work-item:hover .ph { border-color: var(--accent); }

/* spans */
.w-6 { grid-column: span 6; } .w-4 { grid-column: span 4; } .w-8 { grid-column: span 8; }
.r-1 { aspect-ratio: 16/9; } .r-2 { aspect-ratio: 4/5; } .r-3 { aspect-ratio: 1/1; }

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(36px, 6vw, 88px); align-items: center; }
.about__media { aspect-ratio: 4/5; }
.about h2 { font-size: clamp(32px, 4.6vw, 56px); margin: 18px 0 0; }
.about p { color: var(--text-on-paper-dim); font-size: 17px; }
.about__creds { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 2px; border-top: 1px solid var(--line-paper); }
.about__creds li { display: flex; gap: 16px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--line-paper); }
.about__creds .k { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-on-paper-dim); width: 130px; flex: none; }
.about__creds .v { font-weight: 500; }

/* ============================================================
   PROCESS
   ============================================================ */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line-dark); border-block: 1px solid var(--line-dark); }
.step { background: var(--ink); padding: clamp(26px,3vw,42px) clamp(20px,2.4vw,30px); display: flex; flex-direction: column; gap: 16px; min-height: 260px; }
.step__n { font-family: var(--mono); font-size: 12px; color: var(--accent); letter-spacing: .14em; }
.step h3 { font-family: var(--display); font-size: clamp(22px,2.4vw,28px); margin: 0; line-height: 1.05; }
.step p { font-size: 14.5px; color: var(--text-on-dark-dim); margin: 0; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact { background: var(--ink-2); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 96px); align-items: start; }
.contact h2 { font-size: clamp(38px, 6vw, 76px); margin: 18px 0 0; }
.contact__meta { margin-top: 36px; display: grid; gap: 22px; }
.contact__meta .row .k { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.contact__meta .row .v { font-size: 18px; margin-top: 4px; }

.form { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
.field label { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-on-dark-dim); }
.field input, .field textarea, .field select {
  background: var(--ink); border: 1px solid var(--line-dark); color: var(--text-on-dark);
  padding: 14px 16px; border-radius: 2px; font-family: inherit; font-size: 15px; transition: border-color .2s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); }
.field textarea { resize: vertical; min-height: 110px; }
.field.invalid input, .field.invalid textarea, .field.invalid select { border-color: oklch(0.65 0.18 25); }
.field .err { font-size: 12px; color: oklch(0.72 0.16 25); display: none; }
.field.invalid .err { display: block; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form__success { padding: 18px; border: 1px solid var(--accent); border-radius: 2px; color: var(--accent); font-size: 15px; display: flex; gap: 12px; align-items: center; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--ink); padding-block: clamp(54px, 7vw, 88px) 40px; border-top: 1px solid var(--line-dark); }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 50px; border-bottom: 1px solid var(--line-dark); }
.footer__big { font-family: var(--display); font-size: clamp(30px, 4vw, 48px); line-height: 1.05; max-width: 16ch; }
.footer__col h5 { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-on-dark-dim); margin: 0 0 16px; }
.footer__col a { display: block; padding: 5px 0; color: var(--text-on-dark-dim); transition: color .2s; }
.footer__col a:hover { color: var(--accent); }
.footer__bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 26px; font-size: 13px; color: var(--text-on-dark-dim); }
.footer__bottom .legal { display: flex; gap: 22px; flex-wrap: wrap; }

/* ============================================================
   reveal-on-scroll
   ============================================================ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .nav__links { display: none; }
  .nav__cta .btn { display: none; }
  .nav__toggle { display: grid; place-items: center; }
  .creds__inner { grid-template-columns: 1fr 1fr; }
  .cred:nth-child(3) { border-left: 0; }
  .cred:nth-child(odd) { border-left: 0; }
  .cred { border-top: 1px solid var(--line-dark); }
  .cred:nth-child(-n+2) { border-top: 0; }
  .svc-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .w-4, .w-6, .w-8 { grid-column: span 6; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .svc-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .creds__inner { grid-template-columns: 1fr; }
  .cred { border-left: 0 !important; }
  .form__row { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: 1fr; }
  .w-4, .w-6, .w-8 { grid-column: 1 / -1; }
  .footer__top { grid-template-columns: 1fr; }
}
