@font-face { font-family: "Caudex"; src: url("fonts/caudex-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Caudex"; src: url("fonts/caudex-400i.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Caudex"; src: url("fonts/caudex-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Mulish"; src: url("fonts/mulish-var.woff2") format("woff2-variations"); font-weight: 200 1000; font-display: swap; }

/* ---------- tokens: light (dawn) ---------- */
:root {
  --cream: #F3E8D8;
  --cream-hi: #F9F3EA;
  --ink: #2A2723;
  --ink-soft: #4A453E;
  --brown: #3D3A36;
  --sage: #5E6D55;
  --sage-deep: #47533F;
  --gold: #C79A45;
  --gold-ink: #835F1E;
  --veil-bg: rgba(249, 243, 234, .80);
  --veil-line: rgba(255, 255, 255, .6);
  --pool: 249, 243, 234;
  --card-dark: rgba(71, 83, 63, .9);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --display: "Caudex", Georgia, serif;
  --body: "Mulish", system-ui, sans-serif;
  --pad: clamp(20px, 5vw, 72px);
  color-scheme: light;
}
/* dark (dusk): same film, the mist turns to evening umber */
:root[data-theme="dark"] {
  --cream: #231F1A;
  --cream-hi: #2C2721;
  --ink: #F3E8D8;
  --ink-soft: #D9CDBB;
  --sage-deep: #B9C7A9;
  --gold-ink: #E3C78E;
  --veil-bg: rgba(35, 31, 26, .78);
  --veil-line: rgba(243, 232, 216, .12);
  --pool: 35, 31, 26;
  --card-dark: rgba(28, 25, 21, .9);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root[data-theme="system"] {
    --cream: #231F1A;
    --cream-hi: #2C2721;
    --ink: #F3E8D8;
    --ink-soft: #D9CDBB;
    --sage-deep: #B9C7A9;
    --gold-ink: #E3C78E;
    --veil-bg: rgba(35, 31, 26, .78);
    --veil-line: rgba(243, 232, 216, .12);
    --pool: 35, 31, 26;
    --card-dark: rgba(28, 25, 21, .9);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--cream); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 17px/1.65 var(--body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background-color .6s var(--ease), color .6s var(--ease);
}
body.is-loading { overflow: hidden; }
img, svg { display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

/* ---------- stage (fixed film) ---------- */
.stage { position: fixed; inset: 0; z-index: 0; overflow: hidden; background: #CFC3AE; }
.stage__still, .stage__gl { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage__still { object-fit: cover; filter: sepia(.18) saturate(.82) brightness(1.06) contrast(.92); transition: opacity .8s ease; }
.stage__gl { opacity: 0; transition: opacity 1s ease; }
.stage.gl-live .stage__gl { opacity: 1; }
.stage.gl-live .stage__still { opacity: 0; }
.stage__clips { position: absolute; width: 2px; height: 2px; overflow: hidden; opacity: 0; pointer-events: none; }
.stage__clips video { width: 2px; height: 2px; }
/* without WebGL the still gets a soft cream wash so copy stays readable */
.stage:not(.gl-live)::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(var(--pool), .45), rgba(var(--pool), .25) 40%, rgba(var(--pool), .45));
}

/* ---------- intro ---------- */
.intro {
  position: fixed; inset: 0; z-index: 50;
  display: grid; place-items: center;
  background: var(--cream);
}
.intro__inner { display: grid; justify-items: center; gap: 14px; }
.intro__ear .draw {
  fill: none; stroke: var(--gold-ink); stroke-width: 1.6; stroke-linecap: round;
  stroke-dasharray: 220; stroke-dashoffset: 220;
  animation: draw 1.2s var(--ease) forwards;
}
.intro__ear .draw:nth-child(2), .intro__ear .draw:nth-child(3) { animation-delay: .2s; }
.intro__ear .draw:nth-child(4), .intro__ear .draw:nth-child(5) { animation-delay: .32s; }
.intro__ear .draw:nth-child(6) { animation-delay: .44s; }
.intro__ear .draw:nth-child(7) { animation-delay: .26s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.intro__mark { overflow: hidden; font: 400 clamp(56px, 9vw, 96px)/1 var(--display); color: var(--ink); }
.intro__mark span { display: block; transform: translateY(105%); animation: rise .9s var(--ease) .4s forwards; }
.intro__name { font: italic 400 19px/1 var(--display); color: var(--sage-deep); opacity: 0; animation: fade .8s ease .8s forwards; }
@keyframes rise { to { transform: none; } }
@keyframes fade { to { opacity: 1; } }

/* ---------- nav ---------- */
.nav {
  position: fixed; z-index: 20; top: 18px; left: 50%; transform: translateX(-50%);
  width: min(1180px, calc(100% - 28px));
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 8px 8px 8px 20px;
  border-radius: 999px;
  background: var(--veil-bg);
  border: 1px solid var(--veil-line);
  box-shadow: 0 10px 40px -18px rgba(61, 58, 54, .35);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  transition: background-color .6s var(--ease);
}
.wordmark { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.wordmark__mk { font: 700 26px/1 var(--display); letter-spacing: -.02em; }
.wordmark__rest { display: grid; font: italic 400 15px/1.1 var(--display); color: var(--ink-soft); }
.wordmark__rest small { font: 600 10.5px/1.4 var(--body); font-style: normal; color: var(--sage-deep); letter-spacing: .02em; }
.nav__links { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  display: block; padding: 10px 16px; border-radius: 999px;
  font-size: 15px; font-weight: 500; text-decoration: none; color: var(--ink-soft);
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.nav__links a:hover { background: rgba(94, 109, 85, .16); color: var(--ink); }
.theme {
  display: flex; align-items: center; gap: 8px; cursor: pointer;
  padding: 0 16px 0 12px; min-height: 44px;
  border: 0; border-radius: 999px; background: var(--brown); color: #F3E8D8;
  font: 600 13px/1 var(--body);
  transition: transform .3s var(--ease), background-color .3s var(--ease);
}
:root[data-theme="dark"] .theme { background: var(--gold); color: #2A2723; }
.theme:hover { transform: translateY(-1px); }
.theme svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; transition: transform .6s var(--ease); }
.theme:hover svg { transform: rotate(45deg); }
.theme__label { min-width: 34px; text-align: left; }

/* ---------- shared ---------- */
main { position: relative; z-index: 2; overflow-x: clip; }
section { position: relative; padding: 0 var(--pad); }
.kicker { font: italic 400 18px/1.3 var(--display); color: var(--gold-ink); margin-bottom: 14px; }
h2 { font-size: clamp(32px, 4.4vw, 58px); line-height: 1.06; }
/* veil: a pane of morning haze that keeps copy readable over footage */
.veil {
  background: var(--veil-bg);
  border: 1px solid var(--veil-line);
  border-radius: 30px;
  box-shadow: 0 30px 80px -44px rgba(42, 39, 35, .55);
  backdrop-filter: blur(14px) saturate(1.15);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  transition: background-color .6s var(--ease), border-color .6s var(--ease);
}
.pool { position: relative; isolation: isolate; }
.pool::before {
  content: ""; position: absolute; z-index: -1; inset: -70px -90px;
  background: radial-gradient(closest-side, rgba(var(--pool), .78) 40%, rgba(var(--pool), .45) 70%, rgba(var(--pool), 0) 100%);
  filter: blur(14px);
  pointer-events: none;
}
.js [data-reveal] { opacity: 0; transform: translateY(40px); }

/* ---------- hero ---------- */
.hero { min-height: 100svh; display: grid; align-content: center; padding-top: 120px; padding-bottom: 120px; }
.hero__copy { max-width: 1100px; }
.hero__title { font-size: clamp(48px, 8.2vw, 124px); line-height: .98; letter-spacing: -.025em; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__title .line > * { display: inline-block; }
.hero__title em { color: var(--sage-deep); }
.hero__lede { margin-top: 26px; max-width: 470px; font-size: clamp(17px, 1.4vw, 19px); color: var(--ink-soft); }
.cue {
  position: absolute; left: 50%; bottom: 34px; transform: translateX(-50%);
  display: grid; justify-items: center; gap: 10px;
  font: italic 400 16px/1 var(--display); color: var(--ink); text-decoration: none; white-space: nowrap;
  text-shadow: 0 0 14px rgba(var(--pool), 1), 0 0 4px rgba(var(--pool), 1);
}
.cue__line { width: 1px; height: 46px; background: linear-gradient(var(--ink), transparent); transform-origin: top; animation: cue 2.4s var(--ease) infinite; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- flight (scrubbed flyover) ---------- */
.flight { padding: 0; height: 380vh; }
.flight__sticky { position: sticky; top: 0; height: 100svh; display: grid; align-items: center; padding: 100px var(--pad) 60px; }
.flight__panel { grid-area: 1 / 1; max-width: 1180px; width: 100%; margin: 0 auto; padding: clamp(28px, 4.5vw, 60px); }
.flight__panel--story { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(28px, 5vw, 80px); align-items: center; max-width: 1120px; }
.flight__panel--origins { max-width: 980px; }
.js .flight__panel--origins { opacity: 0; visibility: hidden; }
.big { display: block; font: 400 clamp(110px, 15vw, 220px)/.85 var(--display); letter-spacing: -.04em; color: var(--ink); }
.big sup { font-size: .38em; vertical-align: top; position: relative; top: .12em; color: var(--gold-ink); }
.big__cap { display: block; margin-top: 18px; font: italic 400 20px/1.35 var(--display); color: var(--sage-deep); }
.story__copy h2 { margin-bottom: 22px; font-size: clamp(30px, 3.6vw, 48px); }
.story__copy p + p { margin-top: 14px; }
.story__copy p:not(.kicker) { max-width: 560px; color: var(--ink-soft); }
.flight__panel--origins h2 { max-width: 720px; margin-bottom: 44px; }
.routes { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; }
.routes__from { list-style: none; margin: 0; padding: 0; display: grid; gap: 30px; font: 400 clamp(20px, 2.2vw, 30px)/1 var(--display); }
.routes__lines { width: 100%; height: 190px; overflow: visible; }
.routes__lines path { fill: none; stroke: var(--gold); stroke-width: 1.8; vector-effect: non-scaling-stroke; }
.routes__to { font: 400 clamp(40px, 5vw, 72px)/1 var(--display); color: var(--sage-deep); }
.routes__to small { display: block; margin-top: 8px; font: italic 400 17px/1.2 var(--display); color: var(--ink-soft); }
.flight__meter { position: absolute; left: var(--pad); right: var(--pad); bottom: 28px; height: 2px; border-radius: 2px; background: rgba(var(--pool), .55); overflow: hidden; }
.flight__meter span { display: block; height: 100%; width: 100%; background: var(--gold); transform: scaleX(0); transform-origin: left; }

/* ---------- products (pinned sequence) ---------- */
.products { padding: 0; }
.products__pin { position: relative; height: 100svh; max-width: 1340px; margin: 0 auto; }
.products__head { position: absolute; left: var(--pad); top: 118px; width: min(410px, 36vw); padding: clamp(24px, 2.6vw, 36px); }
.products__head h2 { font-size: clamp(30px, 3.1vw, 44px); margin-bottom: 14px; }
.products__head > p:not(.kicker) { color: var(--ink-soft); }
.products__steps { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 12px; }
.products__steps li { display: flex; align-items: center; gap: 14px; font: 400 19px/1 var(--display); color: var(--ink-soft); opacity: .7; transition: opacity .4s var(--ease), color .4s var(--ease); }
.products__steps li span { width: 14px; height: 1px; background: currentColor; transition: width .5s var(--ease), background-color .5s var(--ease); }
.products__steps li.is-on { color: var(--ink); opacity: 1; }
.products__steps li.is-on span { width: 40px; background: var(--gold); }
.products__stage { position: absolute; right: var(--pad); bottom: 7svh; width: min(500px, 40vw); height: 0; }
.product {
  position: absolute; inset: auto 0 0 0;
  display: grid; gap: 12px;
  padding: clamp(26px, 3.6vw, 46px);
  border-radius: 30px;
  background: var(--veil-bg);
  border: 1px solid var(--veil-line);
  box-shadow: 0 30px 80px -40px rgba(61, 58, 54, .5);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0; visibility: hidden;
}
.product.is-on { opacity: 1; visibility: visible; }
.product__shot { font: italic 400 16px/1.2 var(--display); color: var(--gold-ink); }
.product h3 { font-size: clamp(40px, 5vw, 68px); line-height: 1; }
.product p:not(.product__shot) { max-width: 460px; color: var(--ink-soft); }

/* ---------- services (one shot per service) ---------- */
.services { padding-top: 16vh; max-width: 1240px; margin: 0 auto; box-sizing: content-box; }
.services__head { max-width: 640px; padding: clamp(26px, 3.4vw, 44px); }
.service { min-height: 92svh; display: flex; align-items: center; }
.service--right { justify-content: flex-end; }
.service__card { position: relative; overflow: hidden; width: min(480px, 100%); padding: 34px 36px 38px; transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.service__card::after {
  content: ""; position: absolute; left: 36px; right: 36px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease);
}
.service__card:hover::after { transform: scaleX(1); }
.service__card:hover { transform: translateY(-3px); }
.service__tag { font: italic 400 16px/1.2 var(--display); color: var(--gold-ink); margin-bottom: 10px; }
.service h3 { font-size: clamp(30px, 3vw, 42px); line-height: 1.08; margin-bottom: 12px; }
.service p:not(.service__tag) { color: var(--ink-soft); }

/* ---------- care ---------- */
.care { min-height: 110svh; display: grid; align-items: center; padding-top: 10vh; padding-bottom: 10vh; }
.care__copy { max-width: 820px; margin: 0 auto; text-align: center; padding: clamp(30px, 5vw, 64px); }
.care__copy h2 { font-size: clamp(30px, 3.6vw, 48px); line-height: 1.15; }
.care__copy p:not(.kicker) { margin: 22px auto 0; max-width: 560px; color: var(--ink-soft); }

/* ---------- contact ---------- */
.contact { min-height: 100svh; display: grid; align-items: center; padding-top: 12vh; padding-bottom: 9vh; }
.contact__card {
  width: 100%; max-width: 1040px; margin: 0 auto;
  padding: clamp(34px, 6vw, 80px);
  border-radius: 36px;
  background: var(--card-dark);
  color: #F9F3EA;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 40px 100px -50px rgba(42, 39, 35, .7);
}
.contact__card h2 { max-width: 760px; font-size: clamp(32px, 4vw, 54px); }
.contact__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.btn {
  display: inline-flex; align-items: center; min-height: 52px; padding: 0 28px; border-radius: 999px;
  font: 600 16px/1 var(--body); text-decoration: none;
  transition: background-color .35s var(--ease), color .35s var(--ease);
}
.btn span { display: block; }
.btn--solid { background: #F3E8D8; color: #2A2723; }
.btn--solid:hover { background: #FFF8EE; }
.btn--line { border: 1px solid rgba(249, 243, 234, .55); color: #F9F3EA; }
.btn--line:hover { background: rgba(249, 243, 234, .12); }
.contact__details { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; margin: 52px 0 0; padding-top: 30px; border-top: 1px solid rgba(249, 243, 234, .25); }
.contact__details dt { font: italic 400 16px/1 var(--display); color: #E3C78E; margin-bottom: 10px; }
.contact__details dd { margin: 0; }
.contact__details a { text-decoration-color: rgba(249, 243, 234, .4); text-underline-offset: 4px; }

/* ---------- footer ---------- */
.footer { position: relative; z-index: 2; background: #3D3A36; color: rgba(249, 243, 234, .82); padding: 56px var(--pad) 28px; }
.footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 32px; border-bottom: 1px solid rgba(249, 243, 234, .14); }
.footer__mark { font: italic 400 20px/1.2 var(--display); color: #F9F3EA; }
.footer__mark span { font-style: normal; font-weight: 700; }
.footer__line { font: italic 400 17px/1.3 var(--display); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; padding-top: 24px; font-size: 13px; }
.footer-credit { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.footer-credit img { height: 27px; width: auto; }
.footer-credit .svc { opacity: .75; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .nav__links { display: none; }
  .flight__panel--story { grid-template-columns: 1fr; gap: 18px; }
  .big { font-size: clamp(88px, 22vw, 140px); }
  .products__head { left: 14px; right: 14px; top: 84px; width: auto; padding: 20px 22px; }
  .products__head > p:not(.kicker) { display: none; }
  .products__head h2 { font-size: clamp(26px, 6.4vw, 40px); margin-bottom: 0; }
  .products__steps { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 14px; }
  .products__steps li { font-size: 16px; gap: 8px; }
  .products__stage { left: 14px; right: 14px; bottom: 18px; width: auto; }
  .product { padding: 22px 22px 24px; gap: 8px; }
  .service, .service--right { justify-content: center; }
  .contact__details { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .nav { top: 10px; padding-left: 16px; }
  .wordmark__rest { display: none; }
  .hero { padding-top: 100px; }
  .pool::before { inset: -40px -30px; }
  .flight__sticky { padding: 84px 14px 48px; }
  .flight__panel { padding: 24px 22px; border-radius: 24px; }
  .story__copy p:not(.kicker):last-child { display: none; }
  .story__copy h2 { font-size: 27px; margin-bottom: 12px; }
  .big__cap { font-size: 17px; margin-top: 10px; }
  .flight__panel--origins h2 { font-size: 28px; margin-bottom: 26px; }
  .routes { grid-template-columns: 1fr; gap: 14px; }
  .routes__from { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 21px; }
  .routes__lines { height: 80px; }
  .services__head, .service__card { padding: 26px 24px 30px; }
  .product h3 { font-size: 40px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ---------- reduced motion: calm static version ---------- */
@media (prefers-reduced-motion: reduce) {
  .intro { display: none; }
  body.is-loading { overflow: auto; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .cue__line { animation: none; }
  .flight { height: auto; }
  .flight__sticky { position: relative; height: auto; display: grid; gap: 40px; padding-top: 14vh; padding-bottom: 14vh; }
  .flight__panel { grid-area: auto; }
  .js .flight__panel--origins { opacity: 1; visibility: visible; }
  .flight__meter { display: none; }
  .products__pin { height: auto; min-height: 0; display: grid; gap: 18px; padding: 12vh var(--pad); }
  .products__head, .products__stage { position: static; width: auto; }
  .products__stage { height: auto; display: grid; gap: 18px; }
  .product { position: relative; inset: auto; opacity: 1; visibility: visible; }
  .products__steps { display: none; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
