/* =========================================================
   HEYYALI — tracing-paper studio
   ========================================================= */
:root {
  --paper: #e9dfc9;
  --paper-hi: #f5efe2;
  --grid-v: rgba(70, 55, 30, 0.1);
  --grid-h: rgba(70, 55, 30, 0.055);
  --ink: #2a2723;
  --ink-soft: #6d665b;
  --ink-faint: rgba(42, 39, 35, 0.16);
  --line: rgba(42, 39, 35, 0.2);
  --brand: #1f44d6;
  --brand-ink: #1f44d6;
  --on-brand: #fbf7ee;
  --dark: #22367f;
  --red: #e0584a;

  --sans: "Geist", ui-sans-serif, system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --hand: "Architects Daughter", "Comic Sans MS", cursive;

  --gutter: clamp(16px, 3.2vw, 48px);
  --ease: cubic-bezier(0.65, 0, 0.35, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    linear-gradient(90deg, var(--grid-v) 1px, transparent 1px),
    linear-gradient(0deg, var(--grid-h) 1px, transparent 1px);
  background-size: 24px 24px;
  background-position: center top;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip; /* not "hidden": that makes <body> a scroll box and breaks position: sticky */
}
html body.is-loading { height: 100vh; overflow: clip; }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, figure, blockquote { margin: 0; }

.mono { font-family: var(--mono); letter-spacing: -0.01em; }
.hand {
  font-family: var(--hand);
  text-transform: uppercase;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}

/* ---------- grain ---------- */
.grain {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 200;
  opacity: 0.11; /* static + no blend mode: a full-screen animated multiply layer was the most expensive thing on the page */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .3 0 0 0 0 .25 0 0 0 0 .18 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@keyframes grain {
  0% { transform: translate(0, 0); } 25% { transform: translate(-3%, 2%); }
  50% { transform: translate(2%, -3%); } 75% { transform: translate(-2%, -1%); }
  100% { transform: translate(0, 0); }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 14px;
  height: 52px; padding: 0 24px;
  font-family: var(--mono); font-size: 15px; white-space: nowrap;
  border-radius: 4px;
  transition: transform 0.35s var(--ease), background-color 0.3s, box-shadow 0.3s;
}
.btn:hover { transform: translateY(-2px); }
.btn--brand {
  background: var(--dark); color: var(--paper-hi);
  box-shadow: inset 0 0 0 1px #3a55b8, 0 1px 0 rgba(0,0,0,.2);
}
.btn--brand:hover { background: var(--brand); }
.btn--line, .btn--light {
  background: var(--paper-hi); color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
  padding: 0 22px 0 0;
}
.sq {
  display: grid; place-items: center;
  width: 52px; height: 52px; border-radius: 4px 0 0 4px;
  background: var(--dark); color: var(--paper-hi);
  font-style: normal; font-size: 18px;
}
.sq--red { background: var(--red); }
.btn--line:hover .sq { transform: rotate(-8deg); }
.sq { transition: transform 0.4s var(--ease); }

/* ---------- loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 300;
  display: grid; place-items: center;
  background: inherit;
  background-color: var(--paper);
  background-image:
    linear-gradient(90deg, var(--grid-v) 1px, transparent 1px),
    linear-gradient(0deg, var(--grid-h) 1px, transparent 1px);
  background-size: 24px 24px;
}
.loader__tiles {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
  width: min(250px, 56vw);
}
.tile {
  aspect-ratio: 1; background: var(--brand); border-radius: 4px; overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}
.tile svg { width: 100%; height: 100%; display: block; }
.tile .bar, .tile .chev { fill: var(--on-brand); }
.tile .ring { stroke: var(--on-brand); }
.tile .pie { stroke: var(--on-brand); transform-origin: 8px 8px; }
.loader__count {
  position: absolute; bottom: 28px; right: var(--gutter);
  font-family: var(--mono); font-size: 14px; color: var(--ink-soft);
}

/* ---------- nav ---------- */
.nav {
  position: fixed; z-index: 100;
  top: 16px; left: 50%; transform: translateX(-50%);
  width: min(920px, calc(100% - 2 * var(--gutter)));
  height: 72px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 0 10px 0 22px;
  background: var(--paper-hi);
  border: 1px solid var(--line); border-radius: 4px;
}
.nav__logo { font-weight: 600; font-size: 28px; letter-spacing: -0.05em; line-height: 1; }
.nav__logo sup { font-size: 10px; font-weight: 500; vertical-align: top; position: relative; top: 2px; }
.nav__cta { height: 50px; }
.nav__menu { justify-self: end; display: flex; align-items: center; gap: 16px; font-family: var(--mono); font-size: 17px; }
.nav__burger {
  width: 48px; height: 48px; display: grid; align-content: center; gap: 0;
  border: 2px solid var(--brand); border-radius: 3px; overflow: hidden;
}
.nav__burger i {
  display: block; height: 14.7px; border-bottom: 2px solid var(--brand);
  transition: transform 0.45s var(--ease), opacity 0.3s;
}
.nav__burger i:last-child { border-bottom: 0; }
.nav.is-open .nav__burger i:nth-child(1) { transform: translateY(15px) rotate(45deg) scaleX(1.4); border-bottom-width: 2px; }
.nav.is-open .nav__burger i:nth-child(2) { opacity: 0; }
.nav.is-open .nav__burger i:nth-child(3) { transform: translateY(-15px) rotate(-45deg) scaleX(1.4); border-top: 2px solid var(--brand); border-bottom: 0; }

.menu {
  position: fixed; z-index: 99;
  top: 96px; left: 50%; transform: translateX(-50%);
  width: min(920px, calc(100% - 2 * var(--gutter)));
  background: var(--paper-hi);
  border: 1px solid var(--line); border-radius: 4px;
  padding: 20px 22px 22px;
  clip-path: inset(0 0 100% 0 round 4px);
  visibility: hidden;
}
.menu__links a {
  display: flex; align-items: baseline; gap: 18px;
  font-size: clamp(34px, 6vw, 60px); font-weight: 500; letter-spacing: -0.04em; line-height: 1.12;
  border-bottom: 1px solid var(--ink-faint); padding: 6px 0;
  transition: color 0.3s, padding 0.4s var(--ease);
}
.menu__links a span { font-family: var(--mono); font-size: 13px; color: var(--ink-soft); letter-spacing: 0; }
.menu__links a:hover { color: var(--brand-ink); padding-left: 12px; }
.menu__foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 20px; font-family: var(--mono); font-size: 14px; }
.menu__social { display: flex; gap: 18px; flex-wrap: wrap; }
.menu__foot a:hover { color: var(--brand-ink); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: clamp(150px, 22vh, 210px) var(--gutter) clamp(40px, 7vh, 80px);
  max-width: 1500px; margin: 0 auto;
}
.hero__kicker {
  position: relative; display: inline-block;
  font-size: clamp(26px, 3.4vw, 50px); line-height: 1;
  transform: rotate(-4deg); transform-origin: left bottom;
  margin: 0 0 clamp(8px, 2vw, 22px) clamp(0px, 6vw, 110px);
}
.scribble { position: absolute; left: -4%; bottom: -14px; width: 108%; height: 14px; overflow: visible; }
.scribble path { fill: none; stroke: var(--ink-soft); stroke-width: 2.5; stroke-linecap: round; }

.hero__title {
  font-weight: 500;
  font-size: clamp(58px, 12.4vw, 196px);
  line-height: 0.9; letter-spacing: -0.055em;
  text-align: center;
}
.hero__title .line {
  --p: 0%;
  display: block; width: fit-content; margin: 0 auto;
  padding: 0 0.04em 0.08em;
  color: transparent;
  background-image: linear-gradient(90deg, var(--ink) var(--p), rgba(42,39,35,0) calc(var(--p) + 12%));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-stroke: 1.2px rgba(42, 39, 35, 0.55);
}
.hero__title .line--1 { --p: 100%; }
.hero__title .line--3 { -webkit-text-stroke-color: rgba(42, 39, 35, 0.32); }

.hero__meta {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  margin-top: clamp(28px, 6vh, 64px); font-size: 14px; color: var(--ink-soft);
}
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #2fb67c; margin-right: 8px; box-shadow: 0 0 0 4px rgba(47,182,124,.18); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(47,182,124,0); } }
.hero__scroll .arrow { display: inline-block; animation: bob 1.6s var(--ease) infinite; }
@keyframes bob { 50% { transform: translateY(4px); } }

/* ---------- scene ---------- */
.scene { position: relative; height: 420vh; }
.scene__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.scene__frame {
  position: absolute; inset: 10px var(--gutter) var(--gutter);
  border-radius: 4px; overflow: hidden;
  background: var(--brand);
  transform-origin: 50% 0;
  will-change: transform;
}
.scene__canvas, .scene__poster { position: absolute; inset: 0; width: 100%; height: 100%; }
.scene__poster { object-fit: cover; object-position: 55% 50%; }
.scene__canvas { z-index: 1; }
.scene__caption {
  position: absolute; z-index: 3; left: 0; right: 0; bottom: clamp(24px, 6vh, 64px);
  display: grid; justify-items: center; gap: 10px; padding: 0 16px; text-align: center;
  pointer-events: none;
}
.cap {
  background: var(--paper-hi); color: var(--ink);
  font-size: clamp(22px, 3.6vw, 56px); font-weight: 500; letter-spacing: -0.04em; line-height: 1.05;
  padding: 0.18em 0.4em 0.24em; border-radius: 4px;
  box-shadow: 0 0 0 1px var(--line);
  opacity: 0; transform: translateY(30px);
}
.cap em { font-style: normal; color: var(--brand-ink); }
.scene__hud {
  position: absolute; z-index: 3; top: 104px; left: 22px; right: 22px;
  display: flex; justify-content: space-between;
  font-size: 11px; color: var(--paper-hi);
}
.scene__hud span { background: var(--dark); padding: 5px 8px; border-radius: 3px; }

/* ---------- intro ---------- */
.intro { padding: clamp(80px, 16vh, 180px) var(--gutter) clamp(60px, 10vh, 120px); text-align: center; }
.intro__hi { font-size: clamp(22px, 2.6vw, 34px); transform: rotate(-2deg); margin-bottom: 26px; }
.intro__text {
  max-width: 1100px; margin: 0 auto;
  font-size: clamp(28px, 4.2vw, 64px); font-weight: 500; letter-spacing: -0.04em; line-height: 1.06;
}
.js-words .w { color: var(--ink-faint); transition: color 0.2s; }

.marquee {
  margin-top: clamp(56px, 10vh, 110px); overflow: hidden;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee__track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee__track span {
  padding: 18px 28px; font-size: 15px; border-right: 1px solid var(--line); white-space: nowrap;
}
.marquee__track span::before { content: "✱"; color: var(--brand-ink); margin-right: 14px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- section head ---------- */
.section-head { text-align: center; margin-bottom: clamp(40px, 8vh, 80px); padding: 0 var(--gutter); }
.section-head .hand { font-size: clamp(20px, 2.2vw, 28px); transform: rotate(-3deg); display: inline-block; margin-bottom: 10px; }
.section-head h2, .work__head h2, .faq__side h2 {
  font-size: clamp(40px, 6.4vw, 100px); font-weight: 500; letter-spacing: -0.05em; line-height: 0.95;
}

/* ---------- process chapters ---------- */
.process { padding: clamp(40px, 8vh, 100px) 0 0; }
.chapter { margin-bottom: clamp(80px, 16vh, 180px); }
.chapter:last-child { margin-bottom: 0; }
.chapter__frame {
  position: relative; overflow: hidden;
  margin: 0 var(--gutter);
  height: min(86vh, 62vw); min-height: 340px;
  border-radius: 4px; background: var(--brand);
  transform-origin: 50% 50%;
}
.chapter__frame img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.22); transform-origin: 50% 50%;
}
.chapter__body { text-align: center; padding: clamp(28px, 5vh, 56px) var(--gutter) 0; }
.chapter__kicker {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: clamp(18px, 2.2vw, 30px); color: var(--ink);
}
.chapter__kicker::after {
  content: ""; position: absolute;
}
.chapter__kicker .num {
  display: grid; place-items: center; width: 1.5em; height: 1.5em;
  border: 2px solid var(--ink-soft); border-radius: 50%;
  font-size: 0.9em; line-height: 1; padding-top: 2px;
}
.chapter__kicker { position: relative; padding: 4px 10px; box-shadow: inset 0 -2px 0 var(--ink-soft); transform: rotate(-1.5deg); }
.chapter h3 {
  margin-top: 16px;
  font-size: clamp(40px, 7.6vw, 124px); font-weight: 500; letter-spacing: -0.055em; line-height: 0.95;
}
.chapter__text { max-width: 560px; margin: 22px auto 0; font-family: var(--mono); font-size: 15px; color: var(--ink-soft); line-height: 1.6; }

.prompt {
  position: absolute; z-index: 2; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: min(560px, 84%);
  padding: 22px 22px 22px;
  background: rgba(245, 239, 226, 0.94);
  box-shadow: 0 24px 50px -30px rgba(20, 30, 80, 0.55);
  border: 1px solid rgba(255,255,255,.6); border-radius: 6px;
  font-size: clamp(14px, 1.6vw, 18px);
  display: grid; grid-template-columns: 1fr; gap: 18px; justify-items: center;
}
.prompt__text { justify-self: start; min-height: 1.6em; }
.prompt__caret { position: absolute; }
.prompt__text::after { content: ""; display: inline-block; width: 2px; height: 1.1em; background: var(--brand-ink); vertical-align: -0.15em; margin-left: 2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.prompt__btn { height: 48px; }
.prompt__btn .sq { width: 48px; height: 48px; background: var(--brand); color: var(--on-brand); }
.prompt__btn.is-go { box-shadow: inset 0 0 0 2px var(--brand-ink); }

/* ---------- work ---------- */
.work { position: relative; }
.work__pin {
  display: flex; align-items: center; gap: clamp(28px, 4vw, 64px);
  min-height: 100vh; padding: 110px 0 40px var(--gutter);
  overflow: hidden;
}
.work__head { flex: 0 0 min(440px, 36vw); }
.work__head .hand { font-size: clamp(20px, 2.2vw, 28px); transform: rotate(-3deg); display: inline-block; margin-bottom: 10px; }
.work__head h2 { font-size: clamp(38px, 4.6vw, 76px); }
.work__head .btn { margin-top: 32px; }
.work__track { display: flex; gap: 22px; padding-right: var(--gutter); }
.card {
  flex: 0 0 clamp(260px, 30vw, 460px);
  background: var(--paper-hi); border: 1px solid var(--line); border-radius: 4px; padding: 10px;
  transition: transform 0.5s var(--ease);
}
.card:nth-child(odd) { transform: translateY(18px); }
.card:hover { transform: translateY(-6px) rotate(-0.6deg); }
.card__img { aspect-ratio: 1; overflow: hidden; border-radius: 2px; background: #111; }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.card:hover .card__img img { transform: scale(1.06); }
.card figcaption { display: flex; justify-content: space-between; padding: 12px 4px 4px; font-size: 13px; }
.card figcaption span { color: var(--brand-ink); }

/* ---------- letter ---------- */
.letter { padding: clamp(80px, 14vh, 160px) var(--gutter); }
.letter__paper {
  position: relative;
  max-width: 820px; margin: 0 auto;
  padding: clamp(32px, 6vw, 80px) clamp(22px, 6vw, 84px);
  background: var(--paper-hi);
  border: 1px solid var(--line); border-radius: 3px;
  box-shadow: 0 30px 60px -40px rgba(60, 45, 20, 0.45);
  transform: rotate(-0.6deg);
}
.letter__paper::before {
  content: ""; position: absolute; top: -14px; left: 50%; width: 120px; height: 28px; transform: translateX(-50%) rotate(2deg);
  background: rgba(31, 68, 214, 0.18); border: 1px solid rgba(31, 68, 214, 0.2);
}
.letter__to { font-size: clamp(22px, 2.6vw, 34px); color: var(--ink); margin-bottom: 28px; }
.letter__body p { font-size: clamp(19px, 2vw, 26px); line-height: 1.45; letter-spacing: -0.02em; margin-bottom: 1em; }
.letter__sign { font-size: clamp(28px, 3.2vw, 44px); color: var(--brand-ink); margin-top: 18px; transform: rotate(-4deg); display: inline-block; }

/* ---------- stats ---------- */
.stats { padding: clamp(60px, 10vh, 120px) var(--gutter); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; max-width: 1400px; margin: 0 auto; }
.stat {
  position: relative; background: var(--paper-hi); border: 1px solid var(--line); border-radius: 4px;
  padding: clamp(22px, 3vw, 36px); min-height: 230px; display: flex; flex-wrap: wrap; align-content: space-between;
}
/* size numbers to the card so the widest value ("9,420+") never wraps while counting */
.stat { container-type: inline-size; }
.stat__value { display: flex; align-items: flex-start; flex-basis: 100%; white-space: nowrap; }
.stat__n { font-size: min(96px, 27cqi); letter-spacing: -0.06em; line-height: 1; font-family: var(--sans); font-weight: 500; font-variant-numeric: tabular-nums; }
.stat__plus { font-size: min(60px, 17cqi); color: var(--brand-ink); line-height: 1; margin-left: 4px; }
.stat p { flex-basis: 100%; font-family: var(--mono); font-size: 14px; color: var(--ink-soft); border-top: 1px solid var(--ink-faint); padding-top: 14px; margin-top: 30px; }
.stats__note { text-align: center; margin-top: 22px; font-size: 13px; color: var(--ink-soft); }

/* ---------- services / plans ---------- */
.services { padding: clamp(60px, 10vh, 120px) var(--gutter); }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; max-width: 1400px; margin: 0 auto; }
.plan {
  background: var(--paper-hi); border: 1px solid var(--line); border-radius: 4px;
  padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column;
}
.plan__tag { font-size: 13px; color: var(--brand-ink); }
.plan h3 { font-size: clamp(30px, 3vw, 46px); font-weight: 500; letter-spacing: -0.045em; line-height: 1; margin: 18px 0 10px; }
.plan__lede { color: var(--ink-soft); }
.plan ul { list-style: none; padding: 0; margin: 28px 0 36px; flex: 1; font-family: var(--mono); font-size: 14px; }
.plan li { padding: 12px 0; border-top: 1px dashed var(--ink-faint); display: flex; gap: 10px; }
.plan li::before { content: "✱"; color: var(--brand-ink); }
.plan .btn { align-self: flex-start; }
.plan--feature { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
.plan--feature .plan__tag, .plan--feature .plan__lede { color: rgba(245, 239, 226, 0.75); }
.plan--feature li { border-color: rgba(245, 239, 226, 0.25); }
.plan--feature li::before { color: var(--on-brand); }
.plan--feature .btn--brand { background: var(--paper-hi); color: var(--ink); box-shadow: none; }

/* ---------- testimonials ---------- */
.kind { padding: clamp(60px, 10vh, 120px) var(--gutter); }
.quotes { max-width: 1100px; margin: 0 auto; }
.quotes__viewport { display: grid; }
.quote {
  grid-area: 1 / 1;
  background: var(--paper-hi); border: 1px solid var(--line); border-radius: 4px;
  padding: clamp(28px, 5vw, 64px);
  opacity: 0; visibility: hidden;
}
.quote.is-active { opacity: 1; visibility: visible; }
.quote blockquote { font-size: clamp(22px, 2.8vw, 40px); font-weight: 400; letter-spacing: -0.035em; line-height: 1.2; }
.quote figcaption { display: flex; align-items: center; gap: 16px; margin-top: 36px; }
.quote img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; filter: grayscale(1) contrast(1.05); border: 2px solid var(--brand); }
.quote figcaption span { display: grid; }
.quote figcaption em { font-style: normal; font-size: 13px; color: var(--ink-soft); }
.quotes__ctrl { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 20px; font-size: 14px; }
.qbtn {
  width: 52px; height: 52px; border-radius: 4px; background: var(--paper-hi); box-shadow: inset 0 0 0 1px var(--line);
  font-size: 18px; transition: background 0.3s, color 0.3s;
}
.qbtn:hover { background: var(--dark); color: var(--paper-hi); }

/* ---------- faq ---------- */
.faq {
  display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(32px, 6vw, 100px);
  max-width: 1400px; margin: 0 auto; padding: clamp(60px, 10vh, 120px) var(--gutter);
}
.faq__side .hand { font-size: clamp(20px, 2.2vw, 28px); transform: rotate(-3deg); display: inline-block; margin-bottom: 10px; }
.faq__side h2 { font-size: clamp(40px, 5vw, 80px); }
.faq__side .btn { margin-top: 32px; }
.acc { border-top: 1px solid var(--line); }
.acc:last-child { border-bottom: 1px solid var(--line); }
.acc summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 26px 0; font-size: clamp(19px, 1.9vw, 26px); letter-spacing: -0.03em; font-weight: 500;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary i { position: relative; flex: 0 0 34px; height: 34px; border: 1px solid var(--line); border-radius: 3px; background: var(--paper-hi); }
.acc summary i::before, .acc summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: var(--ink); transform: translate(-50%, -50%); transition: transform 0.4s var(--ease); }
.acc summary i::after { transform: translate(-50%, -50%) rotate(90deg); }
.acc[open] summary i::after { transform: translate(-50%, -50%) rotate(0deg); }
.acc[open] summary i { background: var(--brand); }
.acc[open] summary i::before, .acc[open] summary i::after { background: var(--on-brand); }
.acc__body { overflow: hidden; }
.acc__body p { padding: 0 0 26px; max-width: 620px; font-family: var(--mono); font-size: 15px; color: var(--ink-soft); line-height: 1.65; }

/* ---------- cta ---------- */
.cta { padding: clamp(40px, 8vh, 100px) 0; }
.cta__frame {
  position: relative; margin: 0 var(--gutter); height: min(92vh, 66vw); min-height: 520px;
  border-radius: 4px; overflow: hidden; background: var(--brand);
}
.cta__frame > img { width: 100%; height: 115%; object-fit: cover; }
.cta__card {
  position: absolute; left: 50%; bottom: clamp(16px, 5vh, 56px); transform: translateX(-50%);
  width: min(720px, calc(100% - 32px));
  background: var(--paper-hi); border: 1px solid var(--line); border-radius: 4px;
  padding: clamp(22px, 3.4vw, 42px); text-align: center;
}
.cta__card .hand { font-size: clamp(18px, 2vw, 24px); transform: rotate(-2deg); display: inline-block; }
.cta__card h2 { font-size: clamp(28px, 3.8vw, 56px); font-weight: 500; letter-spacing: -0.045em; line-height: 1; margin: 10px 0 26px; }
.cta__btns { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* ---------- footer ---------- */
.foot { padding: clamp(60px, 10vh, 120px) var(--gutter) 24px; overflow: hidden; }
.foot__statement { font-size: clamp(32px, 5vw, 80px); font-weight: 500; letter-spacing: -0.05em; line-height: 1; max-width: 1300px; }
.foot__statement span { color: transparent; -webkit-text-stroke: 1.2px var(--ink-soft); }
.foot__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: clamp(48px, 8vh, 90px); font-size: 14px; }
.foot__cols h4 { font-family: var(--hand); text-transform: uppercase; font-weight: 400; font-size: 18px; color: var(--ink-soft); margin-bottom: 12px; }
.foot__cols a { display: block; padding: 4px 0; width: fit-content; background: linear-gradient(var(--brand-ink), var(--brand-ink)) 0 100% / 0 1px no-repeat; transition: background-size 0.4s var(--ease), color .3s; word-break: break-word; }
.foot__cols a:hover { background-size: 100% 1px; color: var(--brand-ink); }
.foot__word {
  font-size: clamp(90px, 27vw, 480px); font-weight: 600; letter-spacing: -0.075em; line-height: 0.8;
  text-align: center; margin: clamp(40px, 8vh, 90px) 0 20px;
  color: var(--brand);
}
.foot__word.is-dots { font-size: 0; line-height: 0; color: transparent; touch-action: pan-y; }
.dot-word__canvas { display: block; width: 100%; }
.foot__copy { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-soft); border-top: 1px solid var(--line); padding-top: 16px; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: 1fr; max-width: 620px; }
  .faq { grid-template-columns: 1fr; }
  .work__pin { flex-direction: column; align-items: stretch; padding: 80px 0 40px; min-height: 0; }
  .work__head { flex: none; padding: 0 var(--gutter); }
  .work__track { overflow-x: auto; padding: 10px var(--gutter) 30px; scroll-snap-type: x mandatory; }
  .card { scroll-snap-align: start; flex-basis: min(76vw, 380px); }
  .card:nth-child(odd) { transform: none; }
}
@media (max-width: 700px) {
  .nav { height: 62px; padding-left: 16px; grid-template-columns: 1fr auto; }
  .nav__cta { display: none; }
  .nav__logo { font-size: 24px; }
  .nav__burger { width: 42px; height: 42px; }
  .nav__burger i { height: 12.7px; }
  .menu { top: 86px; }
  .scene { height: 320vh; }
  .scene__hud { top: 88px; left: 14px; right: 14px; }
  .chapter__frame { height: 72vh; min-height: 0; margin: 0 10px; }
  .cta__frame { margin: 0 10px; height: 88vh; }
  .stat { min-height: 170px; }
  .foot__cols { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .grain, .marquee__track, .dot, .hero__scroll .arrow { animation: none; }
}

/* ---------- scroll video canvases ---------- */
.seq-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; transition: opacity 0.6s var(--ease);
  transform: scale(1.22);
}
.seq-canvas.is-ready, .scene__canvas.is-ready { opacity: 1; }
.cta__frame { isolation: isolate; }
.cta__frame > .seq-canvas { height: 115%; transform: none; z-index: 0; }
.cta__card { z-index: 2; }

/* ---------- interactive dot lens ---------- */
.dot-lens { position: relative; cursor: none; -webkit-tap-highlight-color: transparent; }
@media (hover: none) { .dot-lens { cursor: auto; } }
.dot-lens__canvas { position: absolute; z-index: 2; pointer-events: none; }
.dot-lens__text {
  --mx: -9999px; --my: -9999px; --mr: 0px;
  -webkit-mask-image: radial-gradient(circle at var(--mx) var(--my), transparent calc(var(--mr) * 0.55), #000 var(--mr));
  mask-image: radial-gradient(circle at var(--mx) var(--my), transparent calc(var(--mr) * 0.55), #000 var(--mr));
}
.dot-cursor {
  position: fixed; left: 0; top: 0; z-index: 250; pointer-events: none;
  width: 0; height: 0;
}
.dot-cursor__ring, .dot-cursor__label {
  position: absolute; left: 0; top: 0; transform: translate(-50%, -50%) scale(0);
  transition: transform 0.45s var(--ease), opacity 0.3s;
}
.dot-cursor__ring {
  width: 74px; height: 74px; border-radius: 50%;
  border: 1.5px solid var(--brand); background: rgba(31, 68, 214, 0.06);
}
.dot-cursor__label {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--brand); white-space: nowrap;
}
.dot-cursor.is-on .dot-cursor__ring, .dot-cursor.is-on .dot-cursor__label { transform: translate(-50%, -50%) scale(1); }
.dot-cursor.is-pulse .dot-cursor__ring { animation: dot-pulse 0.6s var(--ease); }
@keyframes dot-pulse {
  0% { transform: translate(-50%, -50%) scale(0.7); }
  40% { transform: translate(-50%, -50%) scale(1.6); opacity: 0.4; }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

/* =========================================================
   PLAYGROUND — hanging tag, toolbox, story trail, stickers
   ========================================================= */

/* ---------- hanging tag ---------- */

.hang { position: absolute; inset: 0; pointer-events: none; z-index: 5; }
.hang__rope { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; }
.hang__rope path { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; }
.hang__tag {
  position: absolute; left: 0; top: 0;
  width: 172px; padding: 34px 16px 16px;
  display: grid; gap: 6px;
  background: var(--paper-hi); color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 6px 6px 10px 10px;
  clip-path: polygon(22% 0, 78% 0, 100% 14%, 100% 100%, 0 100%, 0 14%);
  box-shadow: 0 18px 30px -18px rgba(60, 45, 20, 0.45);
  transform-origin: 0 0;
  pointer-events: auto; touch-action: none; user-select: none; -webkit-user-drag: none;
  cursor: grab; will-change: transform;
}
.hang__tag:active { cursor: grabbing; }
.hang__hole {
  position: absolute; left: 50%; top: 10px; width: 12px; height: 12px; margin-left: -6px;
  border-radius: 50%; background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--ink-soft);
}
.hang__eyebrow { font-size: 11px; color: var(--brand); text-transform: uppercase; letter-spacing: 0.06em; }
.hang__title { font-size: 22px; font-weight: 500; letter-spacing: -0.04em; line-height: 1; }
.hang__cta { font-size: 11px; color: var(--ink-soft); display: flex; align-items: center; }
.hang__cta .dot { width: 6px; height: 6px; margin-right: 6px; }

/* ---------- toolbox physics pit ---------- */
.toolbox { max-width: 1200px; margin: clamp(48px, 9vh, 100px) auto 0; text-align: left; }
.toolbox__head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px; padding: 0 4px 12px; }
.toolbox__head .hand { font-size: clamp(20px, 2.2vw, 28px); transform: rotate(-2deg); }
.toolbox__hint { font-size: 12px; color: var(--ink-soft); }
.toolbox__pit {
  position: relative; height: clamp(320px, 42vh, 440px);
  border: 1px solid var(--line); border-radius: 6px;
  background: rgba(245, 239, 226, 0.55);
  overflow: hidden; touch-action: pan-y;
  display: flex; flex-wrap: wrap; align-content: flex-end; justify-content: center; gap: 10px; padding: 16px;
}
.toolbox__pit.is-live { display: block; padding: 0; }
.chip {
  display: inline-flex; align-items: center; justify-content: center;
  height: 52px; padding: 0 24px; border-radius: 999px;
  font-family: var(--mono); font-size: 16px; white-space: nowrap;
  background: var(--paper-hi); color: var(--ink); border: 1.5px solid var(--ink);
  user-select: none; touch-action: none; cursor: grab;
}
.is-live .chip { position: absolute; left: 0; top: 0; opacity: 0; will-change: transform; }
.is-live .chip.is-in { opacity: 1; }
.chip:active { cursor: grabbing; }
.chip--big { height: 66px; padding: 0 32px; font-family: var(--sans); font-size: 26px; font-weight: 500; letter-spacing: -0.03em; }
.chip--blue { background: var(--brand); color: var(--paper-hi); border-color: var(--brand); }
.chip--ink { background: var(--ink); color: var(--paper-hi); border-color: var(--ink); }
.chip--red { background: var(--red); color: var(--paper-hi); border-color: var(--red); }
.chip--round { width: 64px; height: 64px; padding: 0; font-size: 18px; }

/* ---------- story trail ---------- */
.process { position: relative; }
.process > .section-head, .chapter { position: relative; z-index: 1; }
.trail { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 0; }
.trail__path { fill: none; stroke: var(--brand); stroke-width: 2; stroke-dasharray: 2 9; stroke-linecap: round; }
.trail__reveal { fill: none; stroke: #fff; stroke-width: 14; stroke-linecap: round; }
.plane {
  position: absolute; left: 0; top: 0; z-index: 6; width: 58px; height: 36px;
  margin: -18px 0 0 -29px; pointer-events: none; will-change: transform;
}
.plane svg { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 10px 8px rgba(60, 45, 20, 0.25)); }
.plane__body { fill: var(--paper-hi); stroke: var(--ink); stroke-width: 1.6; stroke-linejoin: round; }
.plane__fold { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linejoin: round; }

/* ---------- stickers ---------- */
.letter, .stats, .kind { position: relative; }
.sticker {
  position: absolute; left: var(--x); top: var(--y); z-index: 8;
  width: clamp(76px, 8vw, 112px); aspect-ratio: 1;
  padding: 0; background: none; border: 0; cursor: grab; touch-action: none;
  rotate: var(--r);
}
.sticker:active { cursor: grabbing; }
.sticker svg {
  width: 100%; height: 100%; overflow: visible; will-change: transform;
  filter: drop-shadow(0 0 0 #fff) drop-shadow(0 2px 0 #fff) drop-shadow(0 -2px 0 #fff) drop-shadow(2px 0 0 #fff) drop-shadow(-2px 0 0 #fff) drop-shadow(0 12px 14px rgba(60, 45, 20, 0.22));
  animation: sticker-bob 3.2s ease-in-out infinite;
}
.sticker--wow svg { animation-delay: -1.1s; }
.sticker--smile svg { animation-delay: -2.2s; }
@keyframes sticker-bob { 50% { transform: translateY(-6px) rotate(-3deg); } }
.st-fill-cream { fill: var(--paper-hi); stroke: var(--ink); stroke-width: 3; stroke-linejoin: round; }
.st-fill-blue { fill: var(--brand); stroke: var(--ink); stroke-width: 3; }
.st-fill-red { fill: var(--red); stroke: var(--ink); stroke-width: 3; stroke-linejoin: round; }
.st-line, .st-steam { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; }
.st-steam { stroke: var(--ink-soft); }
.st-dot { fill: var(--paper-hi); }
.st-smile { fill: none; stroke: var(--paper-hi); stroke-width: 5; stroke-linecap: round; }
.st-label { font-family: var(--mono); font-size: 13px; font-weight: 500; fill: var(--paper-hi); letter-spacing: 0.08em; }
.st-label--big { font-family: var(--sans); font-size: 24px; font-weight: 600; letter-spacing: -0.02em; }

@media (max-width: 700px) {
  .sticker { width: 70px; }
  .sticker--coffee { left: calc(100% - 96px); }
  .hang__tag { width: 132px; padding: 30px 12px 12px; }
  .hang__title { font-size: 17px; }
  .chip { height: 42px; padding: 0 16px; font-size: 13px; }
  .chip--big { height: 52px; padding: 0 22px; font-size: 20px; }
  .chip--round { width: 50px; height: 50px; padding: 0; font-size: 15px; }
  .plane { width: 44px; height: 28px; margin: -14px 0 0 -22px; }
}
@media (prefers-reduced-motion: reduce) {
  .sticker svg { animation: none; }
}
@media (min-width: 701px) and (max-width: 1199px) {
  .hang__tag { width: 146px; padding: 30px 13px 13px; }
  .hang__title { font-size: 18px; }
}
