/* ============================================================
   PRODASET — landing
   Fable 5 direction: dark earthy studio, sage/coffee, Fraunces + Hanken
   ============================================================ */

@font-face {
  font-family: "Fraunces";
  src: url("assets/fonts/Fraunces.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Hanken";
  src: url("assets/fonts/HankenGroteskVar.ttf") format("truetype");
  font-weight: 300 800;
  font-display: swap;
}

:root {
  --ink:      #0e0d0b;
  --ink-2:    #141210;
  --ink-3:    #1c1915;
  --ink-4:    #241f19;
  --mist:     #f3efe7;
  --mist-2:   #cabfac;
  --mist-dim: #a49a89;
  --mist-faint:#7c7365;
  --sage:     #6b8f71;
  --sage-lo:  #52735a;
  --forest:   #3f6b4e;
  --coffee:   #c4a484;
  --caramel:  #d8b78d;
  --line:     rgba(243,239,231,0.09);
  --line-2:   rgba(243,239,231,0.14);

  --sans: "Hanken", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --serif:"Fraunces", ui-serif, Georgia, serif;

  --pad: clamp(20px, 5vw, 84px);
  --maxw: 1240px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--ink);
  color: var(--mist);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
::selection { background: rgba(107,143,113,.4); color: var(--mist); }

/* ---------- custom cursor ---------- */
.cursor { position: fixed; top: 0; left: 0; z-index: 90; pointer-events: none; mix-blend-mode: difference; opacity: 0; transition: opacity .3s; }
.cursor__dot { position: fixed; width: 6px; height: 6px; border-radius: 50%; background: var(--mist); transform: translate(-50%,-50%); }
.cursor__ring { position: fixed; width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(243,239,231,.6); transform: translate(-50%,-50%); transition: width .25s var(--ease), height .25s var(--ease), border-color .25s; }
.cursor.is-hover .cursor__ring { width: 58px; height: 58px; border-color: var(--sage); }
.cursor.is-down .cursor__ring { width: 26px; height: 26px; }
@media (pointer:fine) and (prefers-reduced-motion: no-preference) {
  .cursor { opacity: 1; }
  body.prodaset-cursor, body.prodaset-cursor a, body.prodaset-cursor button, body.prodaset-cursor [data-magnetic], body.prodaset-cursor .ba { cursor: none; }
  body.prodaset-cursor input, body.prodaset-cursor textarea { cursor: auto; }
}

/* ---------- film grain ---------- */
.grain::after {
  content: ""; position: fixed; inset: -50%; width: 200%; height: 200%;
  pointer-events: none; z-index: 80; opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 8s steps(6) infinite;
}
@keyframes grain { 0%,100%{transform:translate(0,0)} 20%{transform:translate(-3%,2%)} 40%{transform:translate(2%,-4%)} 60%{transform:translate(-4%,-1%)} 80%{transform:translate(3%,3%)} }

/* ---------- scroll progress ---------- */
.scrollbar { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 70; background: transparent; }
.scrollbar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--forest), var(--sage), var(--coffee)); }

/* ---------- shared ---------- */
.eyebrow { font-size: 12px; letter-spacing: .28em; text-transform: uppercase; color: var(--sage); font-weight: 600; }
.section__head { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
.section__head--center { text-align: center; }
.section__title {
  font-family: var(--serif); font-weight: 400; line-height: 1.02;
  font-size: clamp(30px, 5vw, 60px); letter-spacing: -0.02em; margin-top: 18px;
  font-variation-settings: "opsz" 40, "SOFT" 0, "WONK" 0;
}
.section__title em { font-style: italic; color: var(--caramel); }
.section__lead { color: var(--mist-dim); max-width: 46ch; margin-top: 18px; font-size: clamp(15px,1.5vw,18px); }
.section__head--center .section__lead { margin-inline: auto; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: .5em; font-weight: 600; font-size: 15px; border-radius: 100px; padding: 13px 22px; transition: transform .3s var(--ease), background .3s, color .3s, border-color .3s; will-change: transform; }
.btn--solid { background: var(--sage); color: #0f140f; }
.btn--solid:hover { background: var(--caramel); }
.btn--ghost { color: var(--mist); border: 1px solid var(--line-2); }
.btn--ghost:hover { border-color: var(--sage); color: var(--caramel); }
.btn--pill { background: transparent; border: 1px solid var(--line-2); padding: 10px 18px; font-size: 13.5px; }
.btn--pill:hover { border-color: var(--sage); background: rgba(107,143,113,.1); }

/* ---------- NAV ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 60; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px var(--pad); transition: background .4s, backdrop-filter .4s, border-color .4s; border-bottom: 1px solid transparent; }
.nav.is-stuck { background: rgba(14,13,11,.72); backdrop-filter: blur(14px); border-bottom-color: var(--line); }
.nav__brand { display: flex; align-items: center; gap: 10px; }
.nav__mark { border-radius: 8px; }
.nav__word { font-family: var(--serif); font-size: 21px; letter-spacing: -.01em; }
.nav__links { display: flex; gap: 26px; font-size: 14.5px; color: var(--mist-dim); }
.nav__links a { position: relative; transition: color .3s; }
.nav__links a:hover { color: var(--mist); }
.nav__links a::after { content: ""; position: absolute; left: 0; bottom: -5px; height: 1px; width: 0; background: var(--sage); transition: width .3s var(--ease); }
.nav__links a:hover::after { width: 100%; }
.nav__right { display: flex; align-items: center; gap: 14px; }
.lang { background: none; border: none; color: var(--mist-dim); font-family: var(--sans); font-size: 13.5px; font-weight: 600; letter-spacing: .04em; display: flex; gap: 5px; }
.lang span[data-lang] { transition: color .3s; }
.lang .is-on { color: var(--mist); }
.lang__sep { color: var(--mist-faint); }

/* ---------- HERO ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: 120px var(--pad) 70px; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background:
  radial-gradient(90% 70% at 78% 20%, rgba(107,143,113,.16), transparent 60%),
  radial-gradient(70% 60% at 12% 90%, rgba(196,164,132,.10), transparent 65%); pointer-events: none; }
.hero__grid { position: relative; width: 100%; max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(30px,5vw,70px); align-items: center; }
.hero__title { font-family: var(--serif); font-weight: 370; font-size: clamp(40px, 6.6vw, 82px); line-height: .98; letter-spacing: -.028em; margin: 22px 0; font-variation-settings: "opsz" 130, "SOFT" 0; }
.hero__title em { font-style: italic; color: var(--caramel); }
.hero__sub { color: var(--mist-dim); font-size: clamp(16px,1.7vw,19px); max-width: 40ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero__ctaNote { margin-top: 14px; font-size: 13px; font-weight: 600; color: var(--sage); letter-spacing: .01em; }
.hero__trust { list-style: none; display: flex; gap: clamp(20px,4vw,44px); margin-top: 46px; }
.hero__trust li { display: flex; flex-direction: column; gap: 2px; }
.hero__trust b { font-family: var(--serif); font-size: 30px; color: var(--mist); font-weight: 420; font-feature-settings: "tnum"; }
.hero__trust span { font-size: 12.5px; color: var(--mist-faint); letter-spacing: .02em; }

/* before/after */
.hero__demo { position: relative; }
.ba { position: relative; aspect-ratio: 1/1; border-radius: 20px; overflow: hidden; border: 1px solid var(--line-2); box-shadow: 0 40px 90px -40px rgba(0,0,0,.8); background: var(--ink-3); }
.ba__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* full-size overlay clipped from the right via clip-path — before img stays pixel-identical to after */
.ba__clip { position: absolute; inset: 0; width: 100%; overflow: hidden; clip-path: inset(0 50% 0 0); will-change: clip-path; }
.ba__clip .ba__before { max-width: none; }
.ba__handle { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: rgba(243,239,231,.85); transform: translateX(-50%); will-change: left; }
.ba__handle span { position: absolute; top: 50%; left: 50%; width: 42px; height: 42px; transform: translate(-50%,-50%); border-radius: 50%; background: var(--mist); box-shadow: 0 6px 20px rgba(0,0,0,.4); display: grid; place-items: center; }
.ba__handle span::before, .ba__handle span::after { content: ""; position: absolute; width: 0; height: 0; border-block: 5px solid transparent; }
.ba__handle span::before { border-right: 7px solid #0f140f; left: 9px; }
.ba__handle span::after { border-left: 7px solid #0f140f; right: 9px; }
.ba__tag { position: absolute; bottom: 14px; z-index: 3; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; padding: 6px 11px; border-radius: 100px; backdrop-filter: blur(6px); font-weight: 600; }
.ba__tag--before { left: 14px; background: rgba(20,18,16,.6); color: var(--mist-2); }
.ba__tag--after { right: 14px; background: rgba(107,143,113,.85); color: #0f140f; }
.hero__demoCap { margin-top: 16px; font-size: 13px; color: var(--mist-faint); display: flex; justify-content: space-between; }
.hero__demoCap em { font-style: normal; color: var(--sage); }

.hero__scroll { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); width: 26px; height: 42px; border: 1px solid var(--line-2); border-radius: 20px; }
.hero__scroll span { position: absolute; top: 8px; left: 50%; width: 4px; height: 8px; border-radius: 3px; background: var(--sage); transform: translateX(-50%); animation: scrolldot 1.8s infinite; }
@keyframes scrolldot { 0%{opacity:0; transform:translate(-50%,0)} 30%{opacity:1} 60%{opacity:1; transform:translate(-50%,14px)} 100%{opacity:0; transform:translate(-50%,18px)} }

/* ---------- TURNTABLE ---------- */
.turn { position: relative; }
.turn__sticky { position: sticky; top: 0; min-height: 100svh; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: var(--pad); padding: 0 var(--pad); }
.turn { height: 300vh; }
.turn__stage { position: relative; justify-self: end; width: min(46vh, 480px); aspect-ratio: 1/1; }
.turn__ring { position: absolute; inset: -6%; border-radius: 50%; border: 1px dashed rgba(107,143,113,.35); animation: spin 26s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.turn__video { width: 100%; height: 100%; object-fit: cover; border-radius: 24px; border: 1px solid var(--line-2); box-shadow: 0 50px 120px -50px rgba(0,0,0,.9); background: var(--ink-2); }
.turn__rail { position: relative; max-width: 460px; }
.turn__rail .eyebrow { margin-bottom: 26px; }
.turn__steps { position: relative; min-height: 230px; }
.turn__step { position: absolute; top: 0; left: 0; right: 0; opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); pointer-events: none; }
.turn__step.is-active { opacity: 1; transform: none; pointer-events: auto; }
.turn__step h2 { font-family: var(--serif); font-size: clamp(34px,5vw,58px); font-weight: 400; letter-spacing: -.02em; line-height: 1; color: var(--caramel); }
.turn__step p { color: var(--mist-dim); margin-top: 16px; font-size: clamp(15px,1.5vw,18px); max-width: 38ch; }
.turn__progress { display: flex; gap: 10px; margin-top: 8px; }
.turn__progress span { width: 26px; height: 3px; border-radius: 3px; background: var(--line-2); transition: background .4s; }
.turn__progress span.is-on { background: var(--sage); }

/* ---------- CAPABILITIES ---------- */
.caps { padding: clamp(90px,12vw,150px) 0; }
.caps__grid { max-width: var(--maxw); margin: 56px auto 0; padding: 0 var(--pad); display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cap { background: var(--ink-2); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; transition: transform .5s var(--ease), border-color .4s; }
.cap:hover { transform: translateY(-5px); border-color: var(--line-2); }
.cap__media { aspect-ratio: 4/3; overflow: hidden; background: var(--ink-3); }
.cap--tall { grid-row: span 2; }
.cap--tall .cap__media { aspect-ratio: auto; flex: 1; min-height: 0; }
.cap__media video, .cap__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.cap:hover .cap__media video, .cap:hover .cap__media img { transform: scale(1.04); }
.cap__body { padding: 22px 22px 26px; }
.cap__body h3 { font-family: var(--serif); font-weight: 460; font-size: 22px; letter-spacing: -.01em; }
.cap__body p { color: var(--mist-dim); font-size: 14.5px; margin-top: 8px; }

/* ---------- CATEGORIES ---------- */
.cats { padding: clamp(60px,8vw,90px) 0 clamp(90px,12vw,140px); }
.marquee { margin-top: 52px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__row { display: flex; gap: 16px; width: max-content; animation: marquee 46s linear infinite; }
.marquee:hover .marquee__row { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.chip { position: relative; width: 220px; aspect-ratio: 4/5; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); flex: 0 0 auto; }
.chip img { width: 100%; height: 100%; object-fit: cover; }
.chip figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 14px 12px; font-size: 13px; font-weight: 600; letter-spacing: .02em; background: linear-gradient(transparent, rgba(14,13,11,.9)); }

/* ---------- HOW ---------- */
.how { max-width: var(--maxw); margin: 0 auto; padding: clamp(40px,6vw,60px) var(--pad) clamp(90px,12vw,150px); }
.steps { list-style: none; display: grid; grid-template-columns: repeat(3,1fr); gap: 26px; margin-top: 56px; counter-reset: s; }
.step { border-top: 1px solid var(--line-2); padding-top: 22px; }
.step__n { font-family: var(--serif); font-size: 15px; color: var(--sage); letter-spacing: .1em; }
.step h3 { font-family: var(--serif); font-weight: 440; font-size: 24px; margin-top: 14px; letter-spacing: -.01em; }
.step p { color: var(--mist-dim); font-size: 15px; margin-top: 10px; }
.how__note { margin-top: 46px; padding: 18px 22px; border: 1px dashed var(--line-2); border-radius: 14px; color: var(--mist-2); font-size: 14.5px; max-width: 720px; }
.how__note::before { content: "✦ "; color: var(--sage); }

/* ---------- WHY ---------- */
.why { background: linear-gradient(180deg, transparent, rgba(28,25,21,.55), transparent); padding: clamp(70px,10vw,120px) 0; }
.why__grid { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(30px,5vw,64px); align-items: start; }
.why__lead { position: sticky; top: 120px; }
.why__cards { display: grid; gap: 16px; }
.why__card { background: var(--ink-2); border: 1px solid var(--line); border-radius: 16px; padding: 26px 28px; transition: border-color .4s, transform .4s var(--ease); }
.why__card:hover { border-color: rgba(107,143,113,.35); transform: translateX(4px); }
.why__card h3 { font-family: var(--serif); font-weight: 460; font-size: 22px; }
.why__card h3::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--sage); margin-right: 11px; vertical-align: middle; }
.why__card p { color: var(--mist-dim); margin-top: 10px; font-size: 15px; }

/* ---------- GET / phone ---------- */
.get { padding: clamp(80px,11vw,140px) 0; }
.get__grid { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(36px,6vw,80px); align-items: center; }
.phone { position: relative; width: min(280px, 72vw); aspect-ratio: 9/19.5; margin: 0 auto; border-radius: 42px; border: 8px solid #1c1915; background: #000; box-shadow: 0 50px 120px -40px rgba(0,0,0,.9), inset 0 0 0 2px rgba(243,239,231,.05); overflow: hidden; }
.phone__notch { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 92px; height: 22px; background: #000; border-radius: 20px; z-index: 3; }
.phone__screen { width: 100%; height: 100%; object-fit: cover; }
.get__icon { border-radius: 18px; box-shadow: 0 20px 50px -20px rgba(0,0,0,.8); }
.get__title { font-family: var(--serif); font-weight: 400; font-size: clamp(28px,4vw,48px); letter-spacing: -.02em; line-height: 1.04; margin-top: 22px; }
.get__sub { color: var(--mist-dim); margin-top: 16px; font-size: clamp(15px,1.6vw,18px); max-width: 42ch; }
.waitlist { display: flex; gap: 10px; margin-top: 30px; flex-wrap: wrap; }
.waitlist input[type=email] { flex: 1; min-width: 220px; background: var(--ink-3); border: 1px solid var(--line-2); border-radius: 100px; padding: 13px 20px; color: var(--mist); font-family: var(--sans); font-size: 15px; transition: border-color .3s; }
.waitlist input[type=email]:focus { outline: none; border-color: var(--sage); }
.waitlist input::placeholder { color: var(--mist-faint); }
.hp { position: absolute; left: -9999px; }
.waitlist__ok { margin-top: 16px; color: var(--sage); font-weight: 600; }
.get__fine { margin-top: 14px; font-size: 12.5px; color: var(--mist-faint); }

/* ---------- FOOTER ---------- */
.foot { border-top: 1px solid var(--line); padding: clamp(40px,6vw,64px) var(--pad); max-width: var(--maxw); margin: 0 auto; }
.foot__top { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-bottom: 30px; }
.foot__brand { display: flex; align-items: center; gap: 12px; font-family: var(--serif); font-size: 24px; }
.foot__brand img { border-radius: 9px; }
.foot__tag { color: var(--mist-dim); font-size: 15px; }
.foot__bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--mist-faint); }
.foot__links { display: flex; gap: 22px; }
.foot__links a:hover { color: var(--mist); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .nav__links { display: none; }
  .hero__grid { grid-template-columns: 1fr; gap: 44px; }
  .hero__demo { max-width: 460px; }
  .turn { height: auto; }
  .turn__sticky { position: relative; grid-template-columns: 1fr; min-height: auto; padding: 90px var(--pad); gap: 40px; text-align: left; }
  .turn__stage { justify-self: center; width: min(70vw, 360px); }
  .turn__steps { min-height: 0; }
  .turn__step { position: relative !important; opacity: 1 !important; transform: none !important; top: 0; margin-bottom: 28px; }
  .turn__progress { display: none; }
  .caps__grid { grid-template-columns: 1fr 1fr; }
  .cap--tall { grid-row: span 1; }
  .cap--tall .cap__media { aspect-ratio: 4/3; }
  .steps { grid-template-columns: 1fr; }
  .why__grid { grid-template-columns: 1fr; }
  .why__lead { position: relative; top: 0; }
  .get__grid { grid-template-columns: 1fr; }
  .get__phone { order: 2; }
}
@media (max-width: 560px) {
  .caps__grid { grid-template-columns: 1fr; }
  .hero__trust b { font-size: 25px; }
  .nav__right .btn--pill { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .grain::after, .turn__ring, .hero__scroll span { animation: none; }
}
