/* ============================================================
   CREST & CODE — one-page site
   Palette sampled exclusively from the logo:
   forest  #17382C   (wordmark green)
   sage    #8A9C8E   (the "&")
   cream   #E9E3D3   (logo background plate)
   ============================================================ */

:root {
  --forest: #17382C;
  --forest-deep: #102A20;
  --sage: #8A9C8E;
  --sage-soft: #A9B7AC;
  --cream: #E9E3D3;
  --ivory: #F4F0E5;
  --line: rgba(23, 56, 44, 0.16);
  --line-soft: rgba(23, 56, 44, 0.09);

  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Manrope", "Helvetica Neue", sans-serif;
  --mono: "DM Mono", ui-monospace, monospace;

  --pad: clamp(24px, 6vw, 96px);
  --marquee-speed: 28s;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--forest);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.cursor-on, body.cursor-on a, body.cursor-on button,
body.cursor-on summary, body.cursor-on input, body.cursor-on textarea,
body.cursor-on select, body.cursor-on label, body.cursor-on image-slot {
  cursor: none;
}

::selection { background: var(--sage); color: var(--forest-deep); }

section { scroll-margin-top: 84px; position: relative; }

img { max-width: 100%; display: block; }

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.04; letter-spacing: -0.01em; text-wrap: balance; }

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sage);
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}
.eyebrow::before { content: ""; width: 44px; height: 1px; background: var(--sage); flex: none; }

.section-title { font-size: clamp(40px, 5.4vw, 76px); max-width: 14ch; }
.section-head { padding: 0 var(--pad); margin-bottom: clamp(40px, 6vw, 88px); }
.section-head .lede { max-width: 52ch; margin-top: 22px; color: rgba(23,56,44,.78); font-size: clamp(16px, 1.4vw, 19px); }

.serif-i { font-family: var(--serif); font-style: italic; font-weight: 500; }
.amp { color: var(--sage); }

/* ---------- custom cursor ---------- */
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
  will-change: transform;
}
.cursor-dot { width: 8px; height: 8px; background: var(--forest); margin: -4px 0 0 -4px; }
.cursor-ring {
  width: 38px; height: 38px; margin: -19px 0 0 -19px;
  border: 1.5px solid var(--sage);
  transition: width .28s ease, height .28s ease, margin .28s ease,
              background-color .28s ease, border-color .28s ease, opacity .28s ease;
  display: flex; align-items: center; justify-content: center;
}
.cursor-ring .cursor-label {
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--cream); opacity: 0;
  transition: opacity .2s ease;
}
.cursor-hover .cursor-ring { width: 56px; height: 56px; margin: -28px 0 0 -28px; background: rgba(138,156,142,.18); }
.cursor-view .cursor-ring {
  width: 84px; height: 84px; margin: -42px 0 0 -42px;
  background: var(--forest); border-color: var(--forest);
}
.cursor-view .cursor-ring .cursor-label { opacity: 1; }
.cursor-view .cursor-dot { opacity: 0; }
.cursor-down .cursor-ring { transform-origin: center; }
body:not(.cursor-on) .cursor-dot, body:not(.cursor-on) .cursor-ring { display: none; }
@media (pointer: coarse) { .cursor-dot, .cursor-ring { display: none !important; } body.cursor-on, body.cursor-on * { cursor: auto; } }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--pad);
  transition: background-color .35s ease, box-shadow .35s ease, padding .35s ease;
}
.nav.scrolled {
  background: rgba(233, 227, 211, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line-soft);
  padding: 12px var(--pad);
}
.nav-logo img { height: 30px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 34px; list-style: none; }
.nav-links a {
  font-size: 13.5px; font-weight: 600; letter-spacing: .02em;
  color: var(--forest); text-decoration: none; position: relative; padding: 4px 0;
}
.nav-links a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1.5px; width: 100%;
  background: var(--forest); transform: scaleX(0); transform-origin: right;
  transition: transform .35s cubic-bezier(.65,.05,.36,1);
}
.nav-links a:not(.nav-cta):hover::after { transform: scaleX(1); transform-origin: left; }
@media (max-width: 900px) { .nav-links li:not(:last-child) { display: none; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--sans); font-size: 14px; font-weight: 700; letter-spacing: .03em;
  padding: 16px 30px; border-radius: 999px; text-decoration: none;
  border: 1.5px solid var(--forest);
  transition: color .35s ease, transform .3s ease;
  position: relative; overflow: hidden; isolation: isolate;
  background: transparent; color: var(--forest);
}
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: var(--btn-bg, transparent); border-radius: inherit;
}
.btn::before {
  content: ""; position: absolute; z-index: -1;
  left: var(--mx, 50%); top: var(--my, 50%);
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--btn-ripple, var(--forest));
  transform: translate(-50%, -50%) scale(0);
  transition: transform .55s cubic-bezier(.65,.05,.36,1);
}
.btn:hover::before { transform: translate(-50%, -50%) scale(18); }
@media (prefers-reduced-motion: reduce) { .btn::before { transition: none; } }
.btn .btn-arrow { transition: transform .3s cubic-bezier(.65,.05,.36,1); display: inline-flex; }
.btn:hover .btn-arrow { transform: translateX(5px); }
.btn-solid { --btn-bg: var(--forest); --btn-ripple: var(--forest-deep); color: var(--cream); }
.btn-ghost { --btn-ripple: var(--forest); }
.btn-ghost:hover { color: var(--cream); }
.btn-light { border-color: var(--cream); color: var(--cream); --btn-ripple: var(--cream); }
.btn-light:hover { color: var(--forest); }
.nav-cta { font-size: 13px; padding: 11px 22px; }
.nav-links a.nav-cta { color: var(--cream); }
.nav-links a.nav-cta:hover { color: var(--cream); }

/* ---------- hero ---------- */
.hero {
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 140px var(--pad) 80px;
  position: relative; overflow: hidden;
}
.hero-amp {
  position: absolute; right: -4vw; top: 50%;
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(360px, 52vw, 900px); line-height: 1;
  color: var(--sage); opacity: .16; user-select: none; pointer-events: none;
  transform: translateY(-54%) translate3d(var(--mpx, 0px), var(--mpy, 0px), 0);
  transition: transform .9s cubic-bezier(.16,1,.3,1);
}
.hero-eyebrow { margin-bottom: 36px; }
.hero h1 {
  font-size: clamp(54px, 8.6vw, 138px);
  max-width: 11ch;
}
.hero h1 .h-line { display: block; overflow: hidden; }
.hero h1 .h-line > span { display: block; transform: translateY(110%); }
.hero-sub {
  margin-top: 36px; max-width: 46ch;
  font-size: clamp(16px, 1.5vw, 20px); color: rgba(23,56,44,.78);
}
.hero-ctas { display: flex; gap: 18px; margin-top: 48px; flex-wrap: wrap; }
.hero-foot {
  position: absolute; bottom: 34px; left: var(--pad); right: var(--pad);
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .18em;
  text-transform: uppercase; color: rgba(23,56,44,.55);
}
.hero-scroll { display: inline-flex; align-items: center; gap: 10px; }
.hero-scroll .scroll-line { width: 1px; height: 34px; background: var(--forest); overflow: hidden; position: relative; }
.hero-scroll .scroll-line::after {
  content: ""; position: absolute; inset: 0; background: var(--sage);
  animation: scrollHint 1.8s cubic-bezier(.65,.05,.36,1) infinite;
}
@keyframes scrollHint { 0% { transform: translateY(-100%);} 55% { transform: translateY(0);} 100% { transform: translateY(100%);} }

/* hero showcase — stacked work previews */
.hero-showcase {
  position: absolute; top: 50%; right: var(--pad);
  width: clamp(360px, 40vw, 560px); height: clamp(400px, 62vh, 600px);
  transform: translateY(-50%) translate3d(var(--mpx, 0px), var(--mpy, 0px), 0);
  transition: transform .9s cubic-bezier(.16,1,.3,1);
  z-index: 2; pointer-events: none;
}
.hero-showcase .sc { position: absolute; }
.hero-showcase .frame {
  border-radius: 16px; overflow: hidden; background: var(--ivory);
  border: 1px solid var(--line);
  box-shadow: 0 34px 70px -24px rgba(16,42,32,.42), 0 10px 24px -14px rgba(16,42,32,.30);
}
.hero-showcase .bar {
  height: 34px; display: flex; align-items: center; gap: 7px; padding: 0 14px;
  background: linear-gradient(var(--cream), var(--ivory));
  border-bottom: 1px solid var(--line-soft);
}
.hero-showcase .bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--sage); opacity: .55; }
.hero-showcase .bar .url {
  margin-left: 10px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em;
  color: rgba(23,56,44,.5); text-transform: lowercase;
}
.hero-showcase .media { width: 100%; height: auto; display: block; background: var(--cream); }
.hero-showcase .sc-a { width: 60%; top: 0; left: 0; transform: rotate(-4deg); z-index: 1; }
.hero-showcase .sc-b { width: 56%; top: 28%; right: 0; transform: rotate(4deg); z-index: 2; }
.hero-showcase .sc-c { width: 58%; bottom: 0; left: 16%; transform: rotate(-2deg); z-index: 3; }
.hero-showcase .sc-tag {
  position: absolute; top: 0; right: 6%; z-index: 4;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--ivory); background: var(--forest);
  padding: 8px 14px; border-radius: 100px;
  box-shadow: 0 12px 24px -12px rgba(16,42,32,.5);
}
@media (prefers-reduced-motion: no-preference) {
  .hero-showcase .sc-a { animation: scFloat 7s ease-in-out infinite; }
  .hero-showcase .sc-b { animation: scFloat 7s ease-in-out -2.3s infinite; }
  .hero-showcase .sc-c { animation: scFloat 7s ease-in-out -4.6s infinite; }
  .hero-showcase .sc-tag { animation: scFloat 7s ease-in-out -1.5s infinite; }
}
@keyframes scFloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -14px; } }
/* tablet/mobile: drop the floating cluster into normal flow below the hero text */
@media (max-width: 1080px) {
  .hero { min-height: auto; padding-top: 130px; padding-bottom: 90px; }
  .hero-showcase {
    position: static; transform: none; order: 99;
    width: 100%; height: auto; margin-top: 44px;
    display: flex; gap: 14px; align-items: flex-start;
  }
  .hero-showcase .sc, .hero-showcase .sc-a, .hero-showcase .sc-b, .hero-showcase .sc-c {
    position: static; top: auto; left: auto; right: auto; bottom: auto;
    width: calc((100% - 28px) / 3); transform: rotate(0);
  }
}
@media (max-width: 560px) {
  .hero-showcase { gap: 10px; }
}

/* hero entrance */
.hero .hero-eyebrow, .hero .hero-sub, .hero .hero-ctas, .hero-foot { opacity: 0; transform: translateY(24px); }
@media (prefers-reduced-motion: no-preference) {
  body.loaded .hero h1 .h-line > span { animation: lineUp 1s cubic-bezier(.16,1,.3,1) forwards; }
  body.loaded .hero h1 .h-line:nth-child(2) > span { animation-delay: .12s; }
  body.loaded .hero h1 .h-line:nth-child(3) > span { animation-delay: .24s; }
  body.loaded .hero .hero-eyebrow { animation: fadeUp .9s cubic-bezier(.16,1,.3,1) .05s forwards; }
  body.loaded .hero .hero-sub { animation: fadeUp .9s cubic-bezier(.16,1,.3,1) .5s forwards; }
  body.loaded .hero .hero-ctas { animation: fadeUp .9s cubic-bezier(.16,1,.3,1) .65s forwards; }
  body.loaded .hero-foot { animation: fadeUp .9s cubic-bezier(.16,1,.3,1) .9s forwards; }
}
@media (prefers-reduced-motion: reduce) {
  .hero h1 .h-line > span { transform: none; }
  .hero .hero-eyebrow, .hero .hero-sub, .hero .hero-ctas, .hero-foot { opacity: 1; transform: none; }
}
@keyframes lineUp { to { transform: translateY(0); } }
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

/* ---------- marquee ---------- */
.marquee {
  background: var(--forest); color: var(--cream);
  overflow: hidden; padding: 22px 0;
  border-top: 1px solid var(--forest-deep);
}
.marquee-track {
  display: flex; gap: 0; width: max-content;
  animation: marquee var(--marquee-speed) linear infinite;
}
.marquee-track span {
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: clamp(20px, 2.4vw, 32px); white-space: nowrap; padding-right: 26px;
}
.marquee-track .dot { color: var(--sage); font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ---------- scroll reveals ---------- */
[data-reveal] { opacity: 0; transform: translateY(36px); transition: opacity .9s cubic-bezier(.16,1,.3,1), transform .9s cubic-bezier(.16,1,.3,1); }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal-stagger] > * { opacity: 0; transform: translateY(36px); transition: opacity .9s cubic-bezier(.16,1,.3,1), transform .9s cubic-bezier(.16,1,.3,1); }
[data-reveal-stagger].in > * { opacity: 1; transform: none; }
[data-reveal-stagger].in > *:nth-child(2) { transition-delay: .1s; }
[data-reveal-stagger].in > *:nth-child(3) { transition-delay: .2s; }
[data-reveal-stagger].in > *:nth-child(4) { transition-delay: .3s; }
[data-reveal-stagger].in > *:nth-child(5) { transition-delay: .4s; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal], [data-reveal-stagger] > * { opacity: 1; transform: none; transition: none; }
}

/* ---------- services ---------- */
.services { padding: clamp(90px, 11vw, 170px) 0; }
.service-list { border-top: 1px solid var(--line); }
.service-row {
  display: grid;
  grid-template-columns: 80px 1.1fr 1.6fr auto;
  gap: clamp(18px, 3vw, 56px); align-items: center;
  padding: clamp(28px, 3.4vw, 46px) var(--pad);
  border-bottom: 1px solid var(--line);
  position: relative; isolation: isolate;
  text-decoration: none; color: inherit;
}
.service-row::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--forest);
  transform: scaleY(0); transform-origin: bottom;
  transition: transform .45s cubic-bezier(.65,.05,.36,1);
}
.service-row:hover::before { transform: scaleY(1); transform-origin: top; }
.service-row > * { transition: color .35s ease; }
.service-row:hover > * { color: var(--cream); }
.service-num { font-family: var(--mono); font-size: 13px; color: var(--sage); letter-spacing: .1em; }
.service-name { font-family: var(--serif); font-weight: 600; font-size: clamp(26px, 3.2vw, 44px); line-height: 1.05; }
.service-desc { font-size: 15.5px; color: rgba(23,56,44,.74); max-width: 46ch; }
.service-row:hover .service-desc { color: rgba(233,227,211,.82); }
.service-go {
  width: 52px; height: 52px; border-radius: 50%;
  border: 1.5px solid var(--line); display: grid; place-items: center;
  transition: background-color .35s ease, border-color .35s ease, transform .45s cubic-bezier(.65,.05,.36,1);
}
.service-row:hover .service-go { background: var(--sage); border-color: var(--sage); transform: rotate(45deg); }
.service-go svg { width: 18px; height: 18px; }
@media (max-width: 820px) {
  .service-row { grid-template-columns: 48px 1fr auto; }
  .service-desc { grid-column: 2 / 3; grid-row: 2; }
}

/* ---------- process ---------- */
.process { background: var(--ivory); padding: clamp(90px, 11vw, 170px) 0; }
.process-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0; padding: 0 var(--pad);
  border-left: 1px solid var(--line);
}
.process-step { border-right: 1px solid var(--line); padding: clamp(24px, 2.6vw, 44px); position: relative; }
.process-step .p-num {
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: clamp(56px, 6vw, 96px); color: var(--sage); line-height: 1; display: block;
}
.process-step h3 { font-size: clamp(24px, 2.2vw, 34px); margin: 22px 0 14px; }
.process-step p { font-size: 15px; color: rgba(23,56,44,.74); }
.process-step .p-tag { font-family: var(--mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--sage); display: block; margin-top: 22px; }
@media (max-width: 920px) { .process-grid { grid-template-columns: 1fr 1fr; } .process-step { border-bottom: 1px solid var(--line); } }
@media (max-width: 540px) { .process-grid { grid-template-columns: 1fr; } }

/* ---------- work ---------- */
.work { padding: clamp(90px, 11vw, 170px) 0; }
.work-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: clamp(48px, 6vw, 96px) clamp(40px, 5vw, 80px); padding: 0 var(--pad);
}
.work-card { position: relative; }
.work-card .work-meta { display: flex; justify-content: space-between; align-items: baseline; margin-top: 40px; }
.work-card .work-title { font-family: var(--serif); font-weight: 600; font-size: 24px; }
.work-card .work-kind { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--sage); }

/* device-pair: desktop browser + overlapping phone */
.device-pair { position: relative; }
.browser {
  border-radius: 16px; overflow: hidden; background: var(--ivory);
  border: 1px solid var(--line);
  box-shadow: 0 44px 84px -30px rgba(16,42,32,.40), 0 14px 30px -16px rgba(16,42,32,.26);
}
.browser .bar {
  height: 40px; display: flex; align-items: center; gap: 7px; padding: 0 16px;
  background: linear-gradient(var(--cream), var(--ivory)); border-bottom: 1px solid var(--line-soft);
}
.browser .bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--sage); opacity: .55; flex: none; }
.browser .bar .url {
  margin-left: 12px; font-family: var(--mono); font-size: 11px; letter-spacing: .12em;
  color: rgba(23,56,44,.5); text-transform: lowercase;
}
.browser image-slot { display: block; width: 100%; }
.phone {
  position: absolute; right: -2%; bottom: -34px;
  width: clamp(80px, 21%, 132px); padding: 6px;
  border-radius: 22px; background: var(--forest-deep);
  box-shadow: 0 28px 50px -18px rgba(16,42,32,.55);
}
.phone::before {
  content: ""; position: absolute; top: 11px; left: 50%; transform: translateX(-50%);
  width: 32%; height: 4px; border-radius: 4px; background: rgba(255,255,255,.22); z-index: 2;
}
.phone image-slot { display: block; width: 100%; }
@media (max-width: 820px) {
  .work-grid { grid-template-columns: 1fr; }
}

/* stats + language strip inside work */
.work-extra {
  display: grid; grid-template-columns: 1.3fr 1fr;
  gap: clamp(28px, 4vw, 72px);
  padding: clamp(48px, 6vw, 96px) var(--pad) 0;
  align-items: start;
}
.mix-title { font-family: var(--serif); font-size: clamp(24px, 2.4vw, 34px); font-weight: 600; margin-bottom: 30px; }
.mix-row { margin-bottom: 24px; }
.mix-row .mix-label { display: flex; justify-content: space-between; font-size: 14px; font-weight: 600; margin-bottom: 9px; }
.mix-row .mix-label .mix-pct { font-family: var(--mono); font-size: 12px; color: var(--sage); }
.mix-bar { height: 6px; border-radius: 999px; background: rgba(23,56,44,.1); overflow: hidden; }
.mix-bar i {
  display: block; height: 100%; width: 0; border-radius: 999px;
  background: linear-gradient(90deg, var(--sage), var(--forest));
  transition: width 1.4s cubic-bezier(.65,.05,.36,1);
}
.in .mix-bar i { width: var(--w); }

.lang-card {
  background: var(--forest); color: var(--cream);
  border-radius: 18px; padding: clamp(28px, 3vw, 44px);
  position: relative; overflow: hidden;
}
.lang-card .lang-word {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(44px, 5vw, 72px); line-height: 1.15; min-height: 1.3em;
  display: block;
}
.lang-card .lang-word .lang-swap { display: inline-block; }
.lang-card p { margin-top: 16px; font-size: 14.5px; color: rgba(233,227,211,.75); max-width: 30ch; }
.lang-card .lang-tag { font-family: var(--mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--sage-soft); display: block; margin-bottom: 22px; }
.lang-swap.swap-out { animation: swapOut .35s ease forwards; }
.lang-swap.swap-in { animation: swapIn .45s cubic-bezier(.16,1,.3,1); }
@keyframes swapOut { to { opacity: 0; transform: translateY(-60%); } }
@keyframes swapIn { from { opacity: 0; transform: translateY(60%); } }

.stats-band {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px; padding: clamp(48px, 6vw, 80px) var(--pad) 0;
}
.stat .stat-num { font-family: var(--serif); font-weight: 600; font-size: clamp(48px, 5.4vw, 84px); line-height: 1; }
.stat .stat-num sup { font-size: .45em; color: var(--sage); }
.stat .stat-label { font-family: var(--mono); font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase; color: rgba(23,56,44,.6); margin-top: 10px; display: block; }
@media (max-width: 720px) { .work-extra { grid-template-columns: 1fr; } .stats-band { grid-template-columns: 1fr 1fr; } }

/* ---------- why (reversed) ---------- */
.why { background: var(--forest); color: var(--cream); padding: clamp(90px, 11vw, 170px) 0; overflow: hidden; }
.why .eyebrow { color: var(--sage-soft); }
.why .eyebrow::before { background: var(--sage-soft); }
.why .section-head .lede { color: rgba(233,227,211,.72); }
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: rgba(233,227,211,.14); border-top: 1px solid rgba(233,227,211,.14); border-bottom: 1px solid rgba(233,227,211,.14); }
.why-cell { background: var(--forest); padding: clamp(32px, 4vw, 64px) var(--pad); position: relative; transition: background-color .4s ease; }
.why-cell:hover { background: var(--forest-deep); }
.why-cell h3 { font-size: clamp(24px, 2.4vw, 36px); margin-bottom: 14px; }
.why-cell h3 .serif-i { color: var(--sage-soft); }
.why-cell p { font-size: 15.5px; color: rgba(233,227,211,.72); max-width: 44ch; }
.why-cell .why-num { font-family: var(--mono); font-size: 12px; color: var(--sage-soft); letter-spacing: .14em; display: block; margin-bottom: 26px; }
@media (max-width: 760px) { .why-grid { grid-template-columns: 1fr; } }
.why-amp {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  font-family: var(--serif); font-size: clamp(300px, 40vw, 700px);
  color: rgba(233,227,211,.04); pointer-events: none; user-select: none; line-height: 1;
}

/* ---------- testimonials ---------- */
.testimonials { padding: clamp(90px, 11vw, 170px) 0 0; }
.testi-rail-wrap { overflow: hidden; padding: 10px 0 clamp(90px, 11vw, 170px); }
.testi-rail { display: flex; gap: 24px; width: max-content; animation: marquee 46s linear infinite; }
.testi-rail:hover { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .testi-rail { animation: none; } }
.testi-card {
  width: clamp(300px, 36vw, 460px);
  background: var(--ivory); border: 1px solid var(--line-soft);
  border-radius: 18px; padding: 36px;
  display: flex; flex-direction: column; gap: 26px; flex: none;
  transition: transform .4s cubic-bezier(.16,1,.3,1), box-shadow .4s ease;
}
.testi-card:hover { transform: translateY(-6px); box-shadow: 0 24px 48px -24px rgba(23,56,44,.28); }
.testi-card blockquote { font-family: var(--serif); font-size: clamp(19px, 1.8vw, 24px); line-height: 1.4; font-weight: 500; }
.testi-card blockquote::before { content: "“"; color: var(--sage); font-size: 1.6em; line-height: 0; vertical-align: -0.32em; margin-right: 2px; }
.testi-who { display: flex; align-items: center; gap: 14px; margin-top: auto; }
.testi-who .t-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--sage); color: var(--cream); display: grid; place-items: center; font-family: var(--serif); font-weight: 600; font-size: 18px; flex: none; }
.testi-who .t-name { font-weight: 700; font-size: 14.5px; }
.testi-who .t-role { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: rgba(23,56,44,.55); }

/* ---------- pricing ---------- */
.pricing { background: var(--ivory); padding: clamp(90px, 11vw, 170px) 0; }
.price-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 0 var(--pad); align-items: stretch; }
.price-card {
  background: var(--cream); border: 1px solid var(--line-soft); border-radius: 20px;
  padding: clamp(26px, 2.4vw, 40px);
  display: flex; flex-direction: column; gap: 0;
  transition: transform .45s cubic-bezier(.16,1,.3,1), box-shadow .45s ease, border-color .3s ease;
  position: relative;
}
.price-card:hover { transform: translateY(-10px); box-shadow: 0 30px 60px -30px rgba(23,56,44,.35); border-color: var(--sage); }
.price-card.featured { background: var(--forest); color: var(--cream); border-color: var(--forest); }
.price-card.featured:hover { box-shadow: 0 34px 70px -28px rgba(16,42,32,.55); }
.price-kind { font-family: var(--mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--sage); margin-bottom: 20px; display: flex; justify-content: space-between; align-items: center; }
.price-flag { background: var(--sage); color: var(--forest-deep); font-size: 10px; padding: 4px 10px; border-radius: 999px; letter-spacing: .12em; font-weight: 500; }
.price-name { font-family: var(--serif); font-weight: 600; font-size: clamp(24px, 2vw, 30px); line-height: 1.1; }
.price-amount { margin: 24px 0 6px; font-family: var(--serif); font-weight: 600; font-size: clamp(40px, 3.4vw, 54px); line-height: 1; }
.price-amount .price-from { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; display: block; margin-bottom: 10px; color: var(--sage); }
.price-amount .price-per { font-family: var(--sans); font-size: 14px; font-weight: 600; color: var(--sage); }
.price-amount .price-cur { font-family: var(--mono); font-size: 12px; font-weight: 400; letter-spacing: .14em; color: var(--sage); vertical-align: middle; margin-left: 4px; }
.price-desc { font-size: 14px; color: rgba(23,56,44,.7); margin-bottom: 22px; }
.price-card.featured .price-desc { color: rgba(233,227,211,.75); }
.price-feats { list-style: none; display: flex; flex-direction: column; gap: 11px; font-size: 14px; padding-bottom: 30px; }
.price-feats li { display: flex; gap: 10px; align-items: baseline; }
.price-feats li::before { content: "—"; color: var(--sage); flex: none; }
.price-card .price-actions { margin-top: auto; display: flex; flex-direction: column; gap: 12px; }
.price-card .btn { justify-content: center; }
.btn-cart { --btn-bg: var(--forest); --btn-ripple: var(--forest-deep); color: var(--cream); border-color: var(--forest); gap: 9px; }
.btn-cart .cart-i { flex: none; }
.price-card.featured .btn-cart { --btn-bg: var(--cream); --btn-ripple: var(--sage); color: var(--forest); border-color: var(--cream); }
@media (max-width: 1080px) { .price-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .price-grid { grid-template-columns: 1fr; } }
.price-note { padding: 28px var(--pad) 0; font-size: 13.5px; color: rgba(23,56,44,.6); font-family: var(--mono); letter-spacing: .04em; }

/* brief-to-payment funnel banner */
.brief-cta {
  margin: 0 var(--pad) 34px; padding: clamp(24px, 2.6vw, 36px) clamp(24px, 3vw, 44px);
  background: var(--forest); color: var(--cream); border-radius: 20px;
  display: flex; align-items: center; justify-content: space-between; gap: clamp(20px, 3vw, 44px); flex-wrap: wrap;
}
.brief-cta .bc-title { font-family: var(--serif); font-weight: 600; font-size: clamp(20px, 2vw, 27px); line-height: 1.25; margin-bottom: 12px; max-width: 640px; }
.brief-cta .bc-steps { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 13px; color: rgba(233,227,211,.8); }
.brief-cta .bc-step { display: inline-flex; align-items: center; gap: 8px; }
.brief-cta .bc-step em {
  font-style: normal; font-family: var(--mono); font-size: 11px; width: 20px; height: 20px; flex: none;
  border: 1px solid var(--sage); border-radius: 50%; display: inline-grid; place-items: center; color: var(--sage);
}
.brief-cta .bc-sep { color: var(--sage); }
.brief-cta .bc-btn { --btn-bg: var(--cream); --btn-ripple: var(--sage); color: var(--forest); border-color: var(--cream); flex: none; }
@media (max-width: 720px) { .brief-cta { flex-direction: column; align-items: flex-start; } }

/* ---------- faq ---------- */
.faq { padding: clamp(90px, 11vw, 170px) 0; }
.faq-wrap { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(32px, 5vw, 90px); padding: 0 var(--pad); }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none; display: flex; justify-content: space-between; align-items: center;
  gap: 24px; padding: 26px 0;
  font-family: var(--serif); font-weight: 600; font-size: clamp(19px, 1.8vw, 26px);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item .faq-x { width: 34px; height: 34px; flex: none; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; position: relative; transition: transform .4s cubic-bezier(.65,.05,.36,1), background-color .3s ease; }
.faq-item .faq-x::before, .faq-item .faq-x::after { content: ""; position: absolute; background: var(--forest); transition: background-color .3s ease; }
.faq-item .faq-x::before { width: 12px; height: 1.5px; }
.faq-item .faq-x::after { width: 1.5px; height: 12px; }
.faq-item[open] .faq-x { transform: rotate(45deg); background: var(--forest); border-color: var(--forest); }
.faq-item[open] .faq-x::before, .faq-item[open] .faq-x::after { background: var(--cream); }
.faq-a { overflow: hidden; }
.faq-a p { padding: 0 0 28px; max-width: 56ch; color: rgba(23,56,44,.75); font-size: 15.5px; }
@media (max-width: 820px) { .faq-wrap { grid-template-columns: 1fr; } }

/* ---------- contact ---------- */
.contact { background: var(--forest); color: var(--cream); padding: clamp(90px, 11vw, 170px) 0 0; overflow: hidden; }
.contact .eyebrow { color: var(--sage-soft); }
.contact .eyebrow::before { background: var(--sage-soft); }
.contact-wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 6vw, 110px); padding: 0 var(--pad); }
.contact h2 { font-size: clamp(44px, 6vw, 96px); }
.contact h2 .serif-i { color: var(--sage-soft); }
.contact-side p { color: rgba(233,227,211,.72); max-width: 40ch; margin-top: 26px; }
.contact-mail {
  display: inline-block; margin-top: 36px;
  font-family: var(--serif); font-size: clamp(20px, 2vw, 28px); font-weight: 500;
  color: var(--cream); text-decoration: none; border-bottom: 1px solid var(--sage);
  padding-bottom: 4px; transition: color .3s ease, border-color .3s ease;
}
.contact-mail:hover { color: var(--sage-soft); }
.c-form { display: flex; flex-direction: column; gap: 0; }
.c-field { border-bottom: 1px solid rgba(233,227,211,.22); padding: 22px 0 14px; position: relative; }
.c-field label { font-family: var(--mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--sage-soft); display: block; margin-bottom: 8px; }
.c-field input, .c-field textarea, .c-field select {
  width: 100%; background: transparent; border: none; outline: none;
  color: var(--cream); font-family: var(--sans); font-size: 17px; resize: none;
}
.c-field input::placeholder, .c-field textarea::placeholder { color: rgba(233,227,211,.32); }
.c-field select { appearance: none; }
.c-field select option { color: var(--forest); }
.c-field::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%; background: var(--sage); transform: scaleX(0); transform-origin: left; transition: transform .5s cubic-bezier(.65,.05,.36,1); }
.c-field:focus-within::after { transform: scaleX(1); }
.c-form .btn { margin-top: 38px; align-self: flex-start; }
.c-sent { font-family: var(--mono); font-size: 13px; letter-spacing: .1em; color: var(--sage-soft); margin-top: 18px; opacity: 0; transition: opacity .4s ease; }
.c-sent.show { opacity: 1; }
@media (max-width: 880px) { .contact-wrap { grid-template-columns: 1fr; } }

/* contact — call + whatsapp CTAs (form removed) */
.contact-wrap--cta { grid-template-columns: 1fr; max-width: 880px; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 40px; }
.btn .btn-ico { flex: none; }
.btn-wa { --btn-bg: #25D366; --btn-ripple: #1aa851; color: #fff; border-color: #25D366; }
.btn-wa:hover { color: #fff; }

/* floating one-click WhatsApp button */
.wa-float {
  position: fixed; right: clamp(16px, 2vw, 26px); bottom: clamp(16px, 2vw, 26px);
  width: 60px; height: 60px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #25D366; color: #fff; z-index: 9500;
  box-shadow: 0 16px 30px -8px rgba(37,211,102,.55), 0 6px 14px -6px rgba(0,0,0,.30);
  transition: transform .3s cubic-bezier(.16,1,.3,1);
}
.wa-float:hover { transform: scale(1.08); }
@media (prefers-reduced-motion: no-preference) {
  .wa-float { animation: waPulse 2.6s ease-in-out infinite; }
}
@keyframes waPulse {
  0%, 100% { box-shadow: 0 16px 30px -8px rgba(37,211,102,.55), 0 0 0 0 rgba(37,211,102,.45); }
  50% { box-shadow: 0 16px 30px -8px rgba(37,211,102,.55), 0 0 0 14px rgba(37,211,102,0); }
}
@media (max-width: 600px) { .wa-float { width: 54px; height: 54px; } }

/* ---------- header cart button ---------- */
.nav-actions { display: flex; align-items: center; gap: 14px; }
.cart-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%; flex: none;
  border: 1.5px solid var(--forest); color: var(--forest); text-decoration: none;
  transition: background-color .3s ease, color .3s ease;
}
.cart-btn:hover, .cart-btn.is-active { background: var(--forest); color: var(--cream); }
.cart-count {
  position: absolute; top: -5px; right: -5px; min-width: 19px; height: 19px; padding: 0 5px;
  border-radius: 999px; background: var(--forest); color: var(--cream);
  font-family: var(--mono); font-size: 11px; line-height: 19px; text-align: center;
  box-shadow: 0 0 0 2px var(--cream); display: none;
}
.cart-count.has { display: block; }
.btn-cart.is-added { --btn-bg: #2f7d4f; --btn-ripple: #2f7d4f; color: #fff; border-color: #2f7d4f; }

/* ---------- cart page ---------- */
.cart-page { max-width: 1120px; margin: 0 auto; padding: 150px var(--pad) 110px; min-height: 100vh; }
.cart-title { font-family: var(--serif); font-weight: 600; font-size: clamp(44px, 6vw, 84px); line-height: 1.02; margin-top: 10px; }
.cart-title .serif-i { color: var(--sage); }
.cart-empty { padding: 70px 0; }
.cart-empty p { font-size: 18px; color: rgba(23,56,44,.7); margin-bottom: 26px; }

.cart-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: clamp(32px, 5vw, 70px); align-items: start; margin-top: 48px; }
@media (max-width: 860px) { .cart-grid { grid-template-columns: 1fr; } }

.cart-line {
  display: grid; grid-template-columns: 1fr auto auto 28px; gap: clamp(14px, 2.4vw, 30px);
  align-items: center; padding: 24px 0; border-bottom: 1px solid var(--line);
}
.cart-line:first-child { border-top: 1px solid var(--line); }
.cl-name { font-family: var(--serif); font-size: clamp(19px, 2vw, 23px); font-weight: 600; }
.cl-price { font-family: var(--mono); font-size: 12px; letter-spacing: .04em; color: rgba(23,56,44,.6); margin-top: 5px; }
.cl-per { margin-left: 2px; }
.cl-qty { display: flex; align-items: center; gap: 12px; }
.qty-btn {
  width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line);
  background: transparent; color: var(--forest); font-size: 17px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: border-color .25s ease, background-color .25s ease;
}
.qty-btn:hover { border-color: var(--forest); background: rgba(23,56,44,.05); }
.qty-n { min-width: 20px; text-align: center; font-weight: 700; }
.cl-total { font-family: var(--serif); font-size: clamp(19px, 2vw, 23px); font-weight: 600; text-align: right; min-width: 84px; }
.cl-remove { background: none; border: none; color: var(--sage); font-size: 24px; line-height: 1; cursor: pointer; transition: color .25s ease; }
.cl-remove:hover { color: var(--forest); }
.cart-clear { margin-top: 26px; background: none; border: none; color: rgba(23,56,44,.55); font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; cursor: pointer; }
.cart-clear:hover { color: var(--forest); }
.cart-continue { display: inline-block; margin-top: 16px; margin-left: 26px; font-size: 14px; font-weight: 600; color: var(--forest); text-decoration: none; }
.cart-continue:hover { color: var(--sage); }

.cart-summary {
  background: var(--ivory); border: 1px solid var(--line-soft); border-radius: 20px;
  padding: clamp(26px, 2.4vw, 38px); position: sticky; top: 100px;
}
.cart-summary h3 { font-family: var(--serif); font-weight: 600; font-size: 26px; margin-bottom: 18px; }
.sum-row { display: flex; justify-content: space-between; align-items: baseline; padding: 9px 0; font-size: 15px; color: rgba(23,56,44,.85); }
.sum-disc span:last-child { color: #2f7d4f; }
.sum-total { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 18px; font-family: var(--serif); font-weight: 600; font-size: 26px; color: var(--forest); }
.coupon-label { display: block; margin-top: 20px; font-family: var(--mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--sage); }
.coupon { display: flex; gap: 10px; margin-top: 10px; }
.coupon input {
  flex: 1; min-width: 0; padding: 13px 16px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--cream); color: var(--forest); font-family: var(--mono); font-size: 13px;
  letter-spacing: .1em; text-transform: uppercase;
}
.coupon input::placeholder { color: rgba(23,56,44,.4); letter-spacing: .06em; }
.coupon input:focus { outline: none; border-color: var(--forest); }
.coupon-apply { padding: 13px 22px; font-size: 13px; }
.coupon-msg { min-height: 18px; margin-top: 9px; font-family: var(--mono); font-size: 12px; letter-spacing: .03em; }
.coupon-msg.ok { color: #2f7d4f; }
.coupon-msg.err { color: #9a3b2f; }
.cart-note { margin-top: 6px; font-family: var(--mono); font-size: 12px; letter-spacing: .02em; color: rgba(23,56,44,.6); }
.cart-checkout { width: 100%; justify-content: center; margin-top: 22px; }
.cart-subnote { margin-top: 12px; font-size: 12.5px; color: rgba(23,56,44,.55); text-align: center; }

/* ---------- footer ---------- */
.footer { background: var(--forest); color: var(--cream); margin-top: clamp(80px, 10vw, 150px); border-top: 1px solid rgba(233,227,211,.14); }
.footer-mark { padding: clamp(40px, 6vw, 80px) var(--pad) 0; overflow: hidden; }
.footer-mark .big-word {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(56px, 11.4vw, 196px); line-height: .95; letter-spacing: -.01em;
  white-space: nowrap; color: var(--cream);
}
.footer-mark .big-word .amp { color: var(--sage); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
  padding: 38px var(--pad) 42px;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(233,227,211,.55);
}
.footer-bottom .f-links { display: flex; gap: 26px; list-style: none; }
.footer-bottom a { color: rgba(233,227,211,.75); text-decoration: none; transition: color .3s ease; }
.footer-bottom a:hover { color: var(--sage-soft); }

/* parallax helper */
[data-parallax] { will-change: transform; }

/* ============================================================
   HEAVY MOTION LAYER
   ============================================================ */

/* ---------- preloader ---------- */
body.pre-lock { overflow: hidden; }
.preloader {
  position: fixed; inset: 0; z-index: 9000;
  background: var(--forest); color: var(--cream);
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; padding: clamp(28px, 5vw, 64px) var(--pad);
  transition: transform 1s cubic-bezier(.76, 0, .24, 1);
  border-radius: 0;
}
.preloader.pre-done { transform: translateY(-100%); border-radius: 0 0 4vw 4vw; }
.preloader .pre-word {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(36px, 6vw, 92px); line-height: 1.05; overflow: hidden;
}
.preloader .pre-word .pwi { display: inline-block; transform: translateY(110%); }
.preloader .pre-count {
  font-family: var(--mono); font-size: clamp(48px, 8vw, 120px);
  line-height: 1; color: var(--sage-soft); font-variant-numeric: tabular-nums;
}
@media (prefers-reduced-motion: no-preference) {
  .preloader .pre-word .pwi { animation: lineUp .9s cubic-bezier(.16,1,.3,1) .15s forwards; }
}

/* ---------- scroll progress ---------- */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 9600; pointer-events: none; }
.scroll-progress i { display: block; height: 100%; background: var(--sage); transform: scaleX(0); transform-origin: left; }

/* ---------- split-word title reveals ---------- */
.section-title .w {
  display: inline-block; overflow: hidden; vertical-align: top;
  padding-bottom: .14em; margin-bottom: -.14em;
}
.section-title .wi {
  display: inline-block;
  transform: translateY(115%) rotate(4deg); transform-origin: left bottom;
  transition: transform 1.1s cubic-bezier(.16,1,.3,1);
  will-change: transform;
}
.in .section-title .wi, [data-reveal].in .section-title .wi { transform: none; }
@media (prefers-reduced-motion: reduce) { .section-title .wi { transform: none; transition: none; } }

/* ---------- work mockup cinematic reveal ---------- */
.work-card .browser {
  clip-path: inset(8% 5% 8% 5% round 26px);
  transform: scale(1.04);
  transition: clip-path 1.2s cubic-bezier(.16,1,.3,1), transform 1.2s cubic-bezier(.16,1,.3,1);
  will-change: clip-path, transform;
}
.work-card.in .browser { clip-path: inset(0% 0% 0% 0% round 16px); transform: none; }
.work-card .phone {
  opacity: 0; transform: translateY(26px) scale(.95);
  transition: opacity .9s cubic-bezier(.16,1,.3,1) .18s, transform .9s cubic-bezier(.16,1,.3,1) .18s;
}
.work-card.in .phone { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .work-card .browser, .work-card .phone { clip-path: none; transform: none; opacity: 1; transition: none; }
}

/* ---------- velocity skew targets ---------- */
.marquee, .testi-rail-wrap, .work-grid, .footer-mark { will-change: transform; }

/* ---------- footer marquee ---------- */
.footer-mark { overflow: hidden; }
.footer-track { display: flex; width: max-content; }
.footer-track span { white-space: nowrap; }
@media (prefers-reduced-motion: no-preference) {
  .footer-track { animation: marquee 26s linear infinite; }
}

/* ---------- tilt targets ---------- */
.price-card, .lang-card, .work-card .browser { transform-style: preserve-3d; }
.price-card { transition: transform .45s cubic-bezier(.16,1,.3,1), box-shadow .45s ease, border-color .3s ease; }

/* ============================================================
   PLAYGROUND — live capability lab
   ============================================================ */
.lab {
  background:
    linear-gradient(rgba(233,227,211,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(233,227,211,.04) 1px, transparent 1px),
    var(--forest-deep);
  background-size: 54px 54px, 54px 54px, auto;
  color: var(--cream);
  padding: clamp(90px, 11vw, 170px) 0;
  overflow: hidden;
}
.lab .eyebrow { color: var(--sage-soft); }
.lab .eyebrow::before { background: var(--sage-soft); }
.lab .section-head .lede { color: rgba(233,227,211,.72); }

.lab-grid {
  display: grid; grid-template-columns: repeat(12, 1fr);
  gap: clamp(14px, 1.6vw, 22px);
  padding: 0 var(--pad);
}

.lab-tile {
  position: relative; overflow: hidden;
  background: rgba(233,227,211,.035);
  border: 1px solid rgba(233,227,211,.13);
  border-radius: 20px;
  min-height: 300px;
  user-select: none; -webkit-user-select: none;
  /* keep opacity/transform in the list — the shorthand would otherwise
     replace the [data-reveal-stagger] entrance transition */
  transition: border-color .4s ease, background-color .4s ease,
              opacity .9s cubic-bezier(.16,1,.3,1), transform .9s cubic-bezier(.16,1,.3,1);
}
/* stagger delays per property: entrance only, hover stays instant */
.lab-grid.in > *:nth-child(2) { transition-delay: 0s, 0s, .1s, .1s; }
.lab-grid.in > *:nth-child(3) { transition-delay: 0s, 0s, .2s, .2s; }
.lab-grid.in > *:nth-child(4) { transition-delay: 0s, 0s, .3s, .3s; }
.lab-grid.in > *:nth-child(5) { transition-delay: 0s, 0s, .4s, .4s; }
.lab-grid.in > *:nth-child(6) { transition-delay: 0s, 0s, .5s, .5s; }
.lab-tile:hover { border-color: rgba(233,227,211,.3); background: rgba(233,227,211,.055); }
.lab-tag {
  position: absolute; top: 20px; left: 24px; z-index: 3;
  font-family: var(--mono); font-size: 11px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--sage-soft);
  pointer-events: none;
}
.lab-hint {
  position: absolute; bottom: 16px; right: 24px; z-index: 3;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em;
  text-transform: uppercase; color: rgba(233,227,211,.45);
  display: inline-flex; align-items: center; gap: 8px;
  pointer-events: none;
}
.lab-hint::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: var(--sage); animation: hintPulse 2.2s ease-in-out infinite;
}
@keyframes hintPulse { 0%, 100% { opacity: .35; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.25); } }

/* tile placement */
.lab-type        { grid-column: 1 / 8;  min-height: clamp(300px, 34vw, 420px); }
.lab-canvas-tile { grid-column: 8 / 13; }
.lab-theme       { grid-column: 1 / 6;  min-height: 460px; }
.lab-physics     { grid-column: 6 / 9; }
.lab-micro       { grid-column: 9 / 13; }
.lab-tester      { grid-column: 1 / 13; min-height: 320px; }
@media (max-width: 1060px) {
  .lab-type, .lab-canvas-tile, .lab-theme { grid-column: 1 / 13; }
  .lab-canvas-tile { min-height: 340px; }
  .lab-physics { grid-column: 1 / 7; }
  .lab-micro { grid-column: 7 / 13; }
}
@media (max-width: 760px) {
  .lab-physics, .lab-micro { grid-column: 1 / 13; }
  .lab-physics { min-height: 280px; }
}

/* 01 — kinetic type */
.lab-type { display: grid; place-items: center; touch-action: pan-y; }
.lab-word {
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: clamp(72px, 11vw, 170px); line-height: 1;
  color: var(--cream); white-space: nowrap;
  pointer-events: none;
}
.lab-word .lw { display: inline-block; will-change: transform; }
.lab-word .lw-dot { color: var(--sage); }

/* 02 — particles */
.lab-canvas-tile { touch-action: pan-y; }
.lab-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* 03 — theming */
.lab-theme {
  display: flex; flex-direction: column; gap: 18px;
  padding: 58px 24px 52px;
}
.mini-site {
  --mbg: #E9E3D3; --mink: #17382C; --mac: #8A9C8E; --mr: 14px;
  --mfont: var(--serif);
  flex: 1; display: flex; flex-direction: column;
  background: var(--mbg); color: var(--mink);
  border-radius: 14px; overflow: hidden;
  box-shadow: 0 22px 44px -22px rgba(0,0,0,.55);
  transition: background-color .55s ease, color .55s ease;
}
.mini-site[data-mtheme="noir"]  { --mbg: #101010; --mink: #F4F4F2; --mac: #D8FF4A; --mr: 2px;  --mfont: var(--sans); }
.mini-site[data-mtheme="coral"] { --mbg: #FFF1E7; --mink: #33150B; --mac: #FF5C39; --mr: 26px; --mfont: var(--sans); }
.mini-site[data-mtheme="sea"]   { --mbg: #0F2238; --mink: #EAF2FF; --mac: #F0B254; --mr: 10px; --mfont: var(--serif); }
.ms-chrome {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid color-mix(in srgb, var(--mink) 12%, transparent);
}
.ms-chrome i { width: 8px; height: 8px; border-radius: 50%; background: color-mix(in srgb, var(--mink) 22%, transparent); transition: background-color .55s ease; }
.ms-url {
  margin-left: 10px; font-family: var(--mono); font-size: 10px;
  letter-spacing: .08em; color: color-mix(in srgb, var(--mink) 55%, transparent);
  background: color-mix(in srgb, var(--mink) 7%, transparent);
  padding: 3px 12px; border-radius: 999px;
  transition: color .55s ease, background-color .55s ease;
}
.ms-body { flex: 1; display: flex; flex-direction: column; padding: 16px 20px 20px; }
.ms-nav { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.ms-logo { width: 26px; height: 10px; border-radius: 999px; background: var(--mac); transition: background-color .55s ease, border-radius .55s ease; }
.ms-links { display: flex; gap: 8px; }
.ms-links i { width: 22px; height: 5px; border-radius: 999px; background: color-mix(in srgb, var(--mink) 28%, transparent); transition: background-color .55s ease; }
.ms-kicker {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .22em;
  text-transform: uppercase; color: var(--mac); margin-bottom: 10px;
  transition: color .55s ease;
}
.ms-h {
  font-family: var(--mfont); font-weight: 600;
  font-size: clamp(20px, 2vw, 26px); line-height: 1.12;
  max-width: 14ch; text-wrap: balance;
}
.mini-site[data-mtheme="noir"] .ms-h { text-transform: uppercase; font-size: clamp(17px, 1.7vw, 22px); letter-spacing: .02em; }
.ms-pop { animation: msPop .55s cubic-bezier(.16,1,.3,1); }
@keyframes msPop { from { opacity: 0; transform: translateY(12px); } }
.ms-cta {
  display: inline-block; align-self: flex-start; margin-top: 18px;
  font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: .04em;
  background: var(--mac); color: var(--mbg);
  padding: 8px 18px; border-radius: var(--mr);
  transition: background-color .55s ease, color .55s ease, border-radius .55s ease;
}
.ms-art { display: flex; gap: 8px; margin-top: auto; padding-top: 18px; }
.ms-art i {
  height: 34px; border-radius: var(--mr);
  transition: background-color .55s ease, border-radius .55s ease;
}
.ms-art i:first-child { flex: 2; background: color-mix(in srgb, var(--mac) 36%, var(--mbg)); }
.ms-art i:last-child { flex: 1; background: color-mix(in srgb, var(--mink) 14%, var(--mbg)); }
.theme-dock { display: flex; gap: 14px; justify-content: center; }
.ms-swatch {
  appearance: none; border: none; background: none; padding: 0;
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  cursor: pointer; color: rgba(233,227,211,.55);
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase;
}
.ms-swatch i {
  width: 36px; height: 36px; border-radius: 50%;
  border: 2px solid transparent;
  outline: 1px solid rgba(233,227,211,.25); outline-offset: 3px;
  transition: outline-color .3s ease, transform .3s cubic-bezier(.16,1,.3,1);
}
.ms-swatch:hover i { transform: scale(1.12); }
.ms-swatch.is-active i { outline-color: var(--cream); }
.ms-swatch.is-active { color: var(--cream); }
.ms-swatch[data-set="crest"] i { background: conic-gradient(#E9E3D3 0 50%, #17382C 50% 78%, #8A9C8E 78%); }
.ms-swatch[data-set="noir"]  i { background: conic-gradient(#101010 0 50%, #F4F4F2 50% 78%, #D8FF4A 78%); }
.ms-swatch[data-set="coral"] i { background: conic-gradient(#FFF1E7 0 50%, #33150B 50% 78%, #FF5C39 78%); }
.ms-swatch[data-set="sea"]   i { background: conic-gradient(#0F2238 0 50%, #EAF2FF 50% 78%, #F0B254 78%); }

/* 04 — physics & */
.lab-stage { position: absolute; inset: 0 0 44px; z-index: 1; } /* floor sits above the hint band */
.lab-amp {
  position: absolute; top: 0; left: 0;
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(96px, 9vw, 150px); line-height: 1;
  color: var(--sage);
  padding: 0 10px;
  touch-action: none; user-select: none; -webkit-user-select: none;
  will-change: transform;
}
body:not(.cursor-on) .lab-amp { cursor: grab; }
body:not(.cursor-on) .lab-amp.is-held { cursor: grabbing; }
.lab-amp.is-held { color: var(--sage-soft); }

/* 05 — micro-interactions */
.lab-micro { padding: 58px 26px 52px; display: flex; align-items: stretch; }
.micro-list { display: flex; flex-direction: column; justify-content: space-between; gap: 18px; width: 100%; }
.micro-item { display: flex; align-items: center; justify-content: space-between; gap: 12px 18px; flex-wrap: wrap; }
.micro-demo { min-width: 0; max-width: 100%; }
.micro-name {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em;
  text-transform: uppercase; color: rgba(233,227,211,.55);
}
.micro-demo { position: relative; display: flex; align-items: center; }

.hold-btn {
  position: relative; width: 64px; height: 64px;
  border-radius: 50%; border: none; background: none; padding: 0;
  color: var(--cream); cursor: pointer;
  touch-action: none;
}
.hold-btn svg.hold-svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.hold-btn .hold-track { fill: none; stroke: rgba(233,227,211,.18); stroke-width: 2.5; }
.hold-btn .hold-ring { fill: none; stroke: var(--sage); stroke-width: 2.5; stroke-linecap: round; }
.hold-face {
  position: absolute; inset: 6px; border-radius: 50%;
  background: rgba(233,227,211,.07);
  display: grid; place-items: center;
  transition: background-color .3s ease, transform .3s cubic-bezier(.16,1,.3,1);
}
.hold-btn:active .hold-face { transform: scale(.92); }
.hold-label { font-family: var(--mono); font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; }
.hold-check { width: 20px; height: 20px; position: absolute; fill: none; stroke: var(--forest-deep); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transform: scale(.4); transition: opacity .25s ease, transform .35s cubic-bezier(.16,1,.3,1); }
.hold-btn.is-done .hold-face { background: var(--sage); }
.hold-btn.is-done .hold-label { opacity: 0; }
.hold-btn.is-done .hold-check { opacity: 1; transform: scale(1); }
.burst-dot {
  position: absolute; left: 50%; top: 50%; width: 5px; height: 5px;
  border-radius: 50%; background: var(--sage-soft); pointer-events: none;
  animation: burstFly .65s cubic-bezier(.16,1,.3,1) forwards;
}
@keyframes burstFly {
  from { transform: translate(-50%, -50%); opacity: 1; }
  to { transform: translate(calc(-50% + var(--bx)), calc(-50% + var(--by))) scale(.2); opacity: 0; }
}

.lab-slider {
  display: flex; align-items: center; gap: 14px;
  width: min(200px, 100%); touch-action: none;
  padding: 10px 0; outline-offset: 6px;
}
body:not(.cursor-on) .lab-slider { cursor: pointer; }
.ls-track { position: relative; flex: 1; height: 5px; border-radius: 999px; background: rgba(233,227,211,.16); }
.ls-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; background: linear-gradient(90deg, var(--sage), var(--cream)); }
.ls-knob {
  position: absolute; top: 50%; width: 18px; height: 18px;
  border-radius: 50%; background: var(--cream);
  transform: translate(-50%, -50%);
  box-shadow: 0 2px 10px rgba(0,0,0,.4);
}
.ls-val {
  font-family: var(--mono); font-size: 13px; color: var(--sage-soft);
  font-variant-numeric: tabular-nums; min-width: 3ch; text-align: right;
}

.copy-chip {
  appearance: none; border: 1px solid rgba(233,227,211,.25); background: none;
  border-radius: 999px; padding: 10px 18px; cursor: pointer;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .05em;
  color: var(--cream); position: relative; overflow: hidden;
  transition: border-color .3s ease, background-color .3s ease, color .3s ease;
  display: inline-grid;
}
.copy-chip:hover { border-color: rgba(233,227,211,.5); }
.copy-chip .cc-default, .copy-chip .cc-done {
  grid-area: 1 / 1; white-space: nowrap;
  transition: opacity .25s ease, transform .35s cubic-bezier(.16,1,.3,1);
}
.copy-chip .cc-done { opacity: 0; transform: translateY(120%); color: var(--forest-deep); font-weight: 500; }
.copy-chip.is-copied { background: var(--sage); border-color: var(--sage); }
.copy-chip.is-copied .cc-default { opacity: 0; transform: translateY(-120%); }
.copy-chip.is-copied .cc-done { opacity: 1; transform: translateY(0); }

/* 06 — type tester */
.lab-tester {
  display: flex; flex-direction: column; justify-content: center; gap: 30px;
  padding: 70px clamp(24px, 4vw, 64px) 56px;
}
.tester-out {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(34px, 5.6vw, 92px); line-height: 1.08;
  text-align: center; overflow-wrap: break-word; min-height: 1.2em;
}
.tester-out[data-tstyle="italic"] { font-style: italic; font-weight: 500; }
.tester-out[data-tstyle="mono"] { font-family: var(--mono); font-weight: 500; font-size: clamp(22px, 3.6vw, 56px); letter-spacing: .05em; }
.tester-out .tc { display: inline-block; }
.tester-out .tc-in { animation: tcIn .5s cubic-bezier(.16,1,.3,1) both; }
@keyframes tcIn { from { opacity: 0; transform: translateY(.55em) rotate(4deg); filter: blur(5px); } }
.t-ghost { color: rgba(233,227,211,.28); }
.tester-bar {
  display: flex; align-items: flex-end; gap: clamp(16px, 3vw, 40px);
  max-width: 760px; width: 100%; margin: 0 auto; flex-wrap: wrap;
}
.tester-field { flex: 1; min-width: 220px; border-bottom: 1px solid rgba(233,227,211,.22); padding-bottom: 10px; position: relative; }
.tester-field label {
  font-family: var(--mono); font-size: 10px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--sage-soft); display: block; margin-bottom: 6px;
}
.tester-field input {
  width: 100%; background: transparent; border: none; outline: none;
  color: var(--cream); font-family: var(--sans); font-size: 16px;
}
.tester-field input::placeholder { color: rgba(233,227,211,.32); }
.tester-field::after {
  content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%;
  background: var(--sage); transform: scaleX(0); transform-origin: left;
  transition: transform .5s cubic-bezier(.65,.05,.36,1);
}
.tester-field:focus-within::after { transform: scaleX(1); }
.tester-styles { display: flex; gap: 8px; padding-bottom: 6px; }
.tester-styles button {
  appearance: none; background: none; cursor: pointer;
  border: 1px solid rgba(233,227,211,.25); border-radius: 999px;
  padding: 7px 16px; color: rgba(233,227,211,.65);
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase;
  transition: background-color .3s ease, color .3s ease, border-color .3s ease;
}
.tester-styles button:hover { border-color: rgba(233,227,211,.5); color: var(--cream); }
.tester-styles button.is-active { background: var(--sage); border-color: var(--sage); color: var(--forest-deep); }

/* "Play" cursor over the dark lab — sage so the ring stays visible */
body.cursor-dark.cursor-view .cursor-ring { background: var(--sage); border-color: var(--sage); }
body.cursor-dark.cursor-view .cursor-ring .cursor-label { color: var(--forest-deep); }

/* visually-hidden live region for AT announcements */
.lab-status {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* interaction counter */
.lab-score {
  padding: clamp(36px, 4vw, 56px) var(--pad) 0;
  font-family: var(--mono); font-size: 12px; letter-spacing: .12em;
  text-transform: uppercase; color: rgba(233,227,211,.5);
}
.lab-score-num { color: var(--sage); font-size: 15px; font-variant-numeric: tabular-nums; }
.lab-score-msg { display: inline-block; transition: opacity .24s ease, transform .24s ease; color: rgba(233,227,211,.65); }
.lab-score-msg.msg-out { opacity: 0; transform: translateY(8px); }

@media (max-width: 640px) {
  .lab-word { font-size: clamp(56px, 17vw, 90px); }
  .micro-item { flex-direction: column; align-items: flex-start; gap: 10px; }
  .tester-bar { flex-direction: column; align-items: stretch; }
  .tester-styles { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .lab-hint::before { animation: none; }
  .tester-out .tc-in { animation: none; }
  .ms-pop { animation: none; }
  .burst-dot { display: none; }
}
