@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; }

:root {
  --cream: #F3E8D8;
  --cream-hi: #F9F3EA;
  --ink: #2A2723;
  --ink-soft: #4A453E;
  --brown: #3D3A36;
  --sage: #5E6D55;
  --sage-deep: #47533F;
  --gold: #C79A45;
  --gold-ink: #835F1E;        /* gold dark enough for text on cream (5.0:1) */
  --veil: rgba(249, 243, 234, .80);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --display: "Caudex", Georgia, serif;
  --body: "Mulish", system-ui, sans-serif;
  --pad: clamp(20px, 5vw, 72px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
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;
}
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(--sage-deep); outline-offset: 3px; border-radius: 4px; }

/* ---------- scene ---------- */
#field { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; }
.sky-fallback {
  position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 40% at 70% 58%, #FBE3BC 0%, transparent 70%),
    linear-gradient(180deg, #E7E4D6 0%, #F3E8D8 52%, #C9A869 64%, #8E7A4C 100%);
}

/* ---------- intro ---------- */
.intro {
  position: fixed; inset: 0; z-index: 50;
  display: grid; place-items: center;
  background: var(--cream);
  transition: opacity 1.1s var(--ease), visibility 0s linear 1.1s;
}
.intro.is-done { opacity: 0; visibility: hidden; }
.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.3s var(--ease) forwards;
}
.intro__ear .draw:nth-child(2), .intro__ear .draw:nth-child(3) { animation-delay: .25s; }
.intro__ear .draw:nth-child(4), .intro__ear .draw:nth-child(5) { animation-delay: .4s; }
.intro__ear .draw:nth-child(6) { animation-delay: .55s; }
.intro__ear .draw:nth-child(7) { animation-delay: .3s; }
@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 1s var(--ease) .5s forwards; }
.intro__name { font: italic 400 19px/1 var(--display); color: var(--sage-deep); opacity: 0; animation: fade .9s ease .95s 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: rgba(249, 243, 234, .62);
  border: 1px solid rgba(255, 255, 255, .55);
  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);
}
.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, .14); color: var(--ink); }
.detail {
  display: flex; align-items: center; gap: 10px; cursor: pointer;
  padding: 8px 8px 8px 16px; min-height: 44px;
  border: 0; border-radius: 999px; background: var(--brown); color: var(--cream);
  font: 500 13px/1 var(--body);
  transition: transform .3s var(--ease);
}
.detail:hover { transform: translateY(-1px); }
.detail__val {
  padding: 6px 10px; border-radius: 999px; background: var(--gold); color: var(--ink);
  font-weight: 700; font-size: 12px; min-width: 44px; text-align: center;
}
.detail[aria-pressed="false"] .detail__val { background: var(--sage); color: var(--cream-hi); }

/* ---------- 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; }
/* "pool": mist gathering behind text so copy stays readable over the field */
.pool { position: relative; isolation: isolate; }
.pool::before {
  content: ""; position: absolute; z-index: -1; inset: -48px -64px;
  background: radial-gradient(closest-side, rgba(249, 243, 234, .93) 55%, rgba(249, 243, 234, .7) 78%, rgba(249, 243, 234, 0) 100%);
  filter: blur(10px);
  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__copy.pool::before { inset: -70px -90px; background: radial-gradient(closest-side, rgba(249, 243, 234, .55), rgba(249, 243, 234, 0)); }
.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-soft); text-decoration: none; white-space: nowrap;
  text-shadow: 0 0 14px var(--cream-hi), 0 0 4px var(--cream-hi);
}
.cue__line { width: 1px; height: 46px; background: linear-gradient(var(--ink-soft), 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; } }

/* ---------- story ---------- */
.story { padding-top: 22vh; padding-bottom: 18vh; }
.story__grid { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.big { display: block; font: 400 clamp(120px, 17vw, 250px)/.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: 24px; }
.story__copy p + p { margin-top: 16px; }
.story__copy p:not(.kicker) { max-width: 560px; color: var(--ink-soft); }

/* ---------- origins ---------- */
.origins { padding-top: 14vh; padding-bottom: 22vh; max-width: 1180px; margin: 0 auto; box-sizing: content-box; }
.origins__copy { max-width: 720px; margin-bottom: 56px; }
.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: 34px; font: 400 clamp(20px, 2.2vw, 30px)/1 var(--display); }
.routes__lines { width: 100%; height: 200px; overflow: visible; }
.routes__lines path { fill: none; stroke: var(--gold); stroke-width: 1.6; 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); }

/* ---------- products (pinned sequence) ---------- */
.products { padding: 0; }
.products__pin {
  height: 100svh; display: grid; grid-template-columns: 5fr 6fr; align-items: center;
  gap: clamp(28px, 5vw, 90px); padding: 110px var(--pad) 60px; max-width: 1340px; margin: 0 auto;
}
.products__head h2 { margin-bottom: 16px; }
.products__head.pool::before { inset: -70px -90px -100px; }
.products__head > p:not(.kicker) { color: var(--ink-soft); max-width: 420px; }
.products__steps { list-style: none; margin: 34px 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: rgba(42, 39, 35, .68); transition: 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); }
.products__steps li.is-on span { width: 40px; background: var(--gold); }
.products__stage { position: relative; height: min(460px, 56svh); }
.product {
  position: absolute; inset: 0;
  display: grid; align-content: end; gap: 14px;
  padding: clamp(28px, 4vw, 52px);
  border-radius: 32px;
  background: linear-gradient(160deg, rgba(249, 243, 234, .92), rgba(243, 232, 216, .82));
  border: 1px solid rgba(255, 255, 255, .6);
  box-shadow: 0 30px 80px -40px rgba(61, 58, 54, .5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0; visibility: hidden;
}
.product.is-on { opacity: 1; visibility: visible; }
.product__glyph { position: absolute; top: clamp(24px, 4vw, 44px); right: clamp(24px, 4vw, 48px); width: auto; height: clamp(90px, 14vw, 150px); }
.product__glyph path, .product__glyph circle { fill: none; stroke: var(--gold); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.product h3 { font-size: clamp(40px, 5vw, 68px); line-height: 1; }
.product p { max-width: 440px; color: var(--ink-soft); }

/* ---------- services ---------- */
.services { padding-top: 18vh; padding-bottom: 12vh; max-width: 1180px; margin: 0 auto; box-sizing: content-box; }
.services__head { max-width: 640px; margin-bottom: 64px; }
.services__list { display: grid; grid-template-columns: repeat(2, 1fr); align-items: start; gap: 22px 28px; }
.service:nth-child(even) { margin-top: 64px; }
.service {
  position: relative; overflow: hidden;
  padding: 34px 34px 38px;
  border-radius: 28px;
  background: rgba(249, 243, 234, .88);
  border: 1px solid rgba(255, 255, 255, .6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.service::after {
  content: ""; position: absolute; left: 34px; right: 34px; 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:hover::after { transform: scaleX(1); }
.service:hover { box-shadow: 0 30px 60px -36px rgba(61, 58, 54, .55); }
.service h3 { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.1; margin-bottom: 12px; }
.service p { color: var(--ink-soft); max-width: 400px; }

/* ---------- care ---------- */
.care { padding-top: 30vh; padding-bottom: 18vh; }
.care__copy { max-width: 820px; margin: 0 auto; text-align: center; }
.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 { padding-top: 14vh; padding-bottom: 9vh; }
.contact__card {
  max-width: 1040px; margin: 0 auto;
  padding: clamp(34px, 6vw, 80px);
  border-radius: 36px;
  background: rgba(71, 83, 63, .9);
  color: var(--cream-hi);
  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: transform .35s var(--ease), background-color .35s var(--ease), color .35s var(--ease);
}
.btn--solid { background: var(--cream); color: var(--ink); }
.btn--solid:hover { background: #FFF8EE; }
.btn--line { border: 1px solid rgba(249, 243, 234, .55); color: var(--cream-hi); }
.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: var(--brown); 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: var(--cream-hi); }
.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; }
  .story__grid { grid-template-columns: 1fr; }
  .products__pin { grid-template-columns: 1fr; align-content: center; gap: 22px; padding-top: 96px; padding-bottom: 28px; }
  .products__head > p:not(.kicker) { display: none; }
  .products__steps { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 16px; }
  .products__steps li { font-size: 16px; gap: 8px; }
  .products__stage { height: min(400px, 52svh); }
  .services__list { grid-template-columns: 1fr; }
  .service:nth-child(even) { margin-top: 0; }
  .contact__details { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .nav { top: 10px; padding-left: 16px; }
  .wordmark__rest { display: none; }
  .detail__label { font-size: 12px; }
  .hero { padding-top: 100px; }
  .pool::before { inset: -32px -28px; }
  .routes { grid-template-columns: 1fr; gap: 18px; }
  .routes__from { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 21px; }
  .routes__lines { height: 90px; }
  .services__head { margin-bottom: 36px; }
  .service { padding: 26px 24px 30px; }
  .product h3 { font-size: 40px; }
  .product__glyph { height: 76px; }
  .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; }
  .products__pin { height: auto; min-height: 0; }
  .products__stage { height: auto; display: grid; gap: 18px; }
  .product { position: relative; opacity: 1; visibility: visible; min-height: 280px; }
  .products__steps { display: none; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* small screens: text columns get taller, so the mist pool becomes a soft solid veil */
@media (max-width: 560px) {
  .pool::before { background: rgba(249, 243, 234, .86); border-radius: 32px; filter: blur(16px); }
}
