@font-face { font-family: "WDTM Display"; src: url("fonts/Anton.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "WDTM Text"; font-weight: 500; src: url("fonts/Inter-500.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "WDTM Text"; font-weight: 700; src: url("fonts/Inter-700.woff2") format("woff2"); font-display: swap; }

:root {
  --carbon: #000000;
  --paper: #ffffff;
  --sky: #dceeff;
  --concrete: #cccccc;
  --mist: #e9e9e9;
  --blue: #4da2ff;
  --mint: #55db9c;
  --lav: #e9ccff;
  --ember: #fb4903;
  --sun: #ffd731;
  --violet: #5c4ade;
  --muted: #2b2b2b;

  --font-display: "WDTM Display", Anton, Impact, "Arial Narrow", sans-serif;
  --font-text: "WDTM Text", Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --spring: cubic-bezier(0.34, 1.4, 0.64, 1);

  /* Type scale */
  --t-label: 12px;
  --t-small: 15px;
  --t-body: 18px;
  --t-sub: clamp(18px, 1.5vw, 22px);
  --t-tagline: clamp(20px, 1.9vw, 26px);
  --t-h3: clamp(24px, 2vw, 30px);
  --t-section: clamp(72px, 12vw, 192px);

  --edge: 12px;           /* black frame around panels */
  --pad: clamp(20px, 3.2vw, 48px);
  --max: 1440px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; background: var(--carbon); }
body {
  margin: 0; background: var(--carbon); color: var(--carbon);
  font: 500 var(--t-body)/1.5 var(--font-text); letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip;
}
h1, h2, h3, p { margin: 0; }
h3 { letter-spacing: -0.02em; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; }
::selection { background: var(--blue); color: var(--carbon); }
:focus-visible { outline: 2px solid var(--carbon); outline-offset: 3px; }
[data-icon] { display: inline-grid; place-items: center; }

.skip { position: absolute; left: 16px; top: -60px; z-index: 50; padding: 10px 16px; background: var(--paper); border-radius: 999px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- Marquee ---------- */
.marquee {
  margin: var(--edge) var(--edge) 0; height: 40px; border-radius: 999px; border: 1px solid var(--carbon);
  background: var(--lav); overflow: hidden; white-space: nowrap; display: flex; align-items: center;
}
.marquee-track { display: inline-flex; will-change: transform; }
.marquee span { font: 700 var(--t-label)/1 var(--font-text); letter-spacing: 0.032em; text-transform: uppercase; }
.marquee span::after { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 22px 1px; border-radius: 999px; background: var(--carbon); vertical-align: middle; }

/* ---------- Nav: floats over every panel ---------- */
.nav {
  position: sticky; top: 0; z-index: 40; height: 0;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  padding: 0 calc(var(--edge) + var(--pad));
}
.nav > * { margin-top: calc(var(--edge) + 24px); transition: translate .5s var(--ease); }
.nav.is-hidden > * { translate: 0 -110px; }
.nav:focus-within > * { translate: 0 0; }
.logo {
  flex: none; width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid var(--carbon); border-radius: 999px;
  background: var(--sun); font: 400 26px/1 var(--font-display); text-decoration: none;
  transition: rotate .5s var(--spring);
}
.logo:hover { rotate: -14deg; }
.nav-links { position: relative; display: flex; gap: 4px; padding: 4px; background: var(--paper); border: 1px solid var(--carbon); border-radius: 999px; }
.nav-indicator {
  position: absolute; top: 4px; bottom: 4px; left: 0; width: 0; border-radius: 999px; background: var(--carbon);
  opacity: 0; transition: left .5s var(--spring), width .5s var(--spring), opacity .2s var(--ease);
}
.pill {
  position: relative; display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px; border-radius: 999px;
  font-weight: 700; font-size: 13px; letter-spacing: 0.032em; text-transform: uppercase; text-decoration: none;
  transition: color .25s var(--ease), background-color .2s var(--ease);
}
.pill.is-active { color: var(--paper); }
.pill:not(.is-active):hover { background: var(--mist); }

/* ---------- Buttons: black or outlined. Colour slides in on hover. ---------- */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px;
  border: 1px solid var(--carbon); border-radius: 999px; font: 700 13px/1 var(--font-text); letter-spacing: 0.032em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; transition: transform .14s var(--ease), color .3s var(--ease);
}
.btn:active { transform: scale(0.96); }
.btn svg { width: 18px; height: 18px; transition: rotate .45s var(--spring); }
.btn:hover svg { rotate: 90deg; }
.btn-fill { position: absolute; inset: -1px; z-index: -1; border-radius: inherit; translate: 0 102%; transition: translate .4s var(--ease); }
.btn:hover .btn-fill { translate: 0 0; }
.btn-solid { background: var(--carbon); color: var(--paper); }
.btn-solid .btn-fill { background: var(--sun); }
.btn-solid:hover { color: var(--carbon); }
.btn-ghost { background: var(--paper); color: var(--carbon); }
.btn-ghost .btn-fill { background: var(--carbon); }
.btn-ghost:hover { color: var(--paper); }
.btn-lg { min-height: 60px; padding: 0 30px; font-size: 14px; }

/* ---------- Display type ---------- */
.display { font: 400 var(--size, 120px)/0.9 var(--font-display); text-transform: uppercase; letter-spacing: 0.002em; }
.display .line { display: block; }
.section-title, .final-title { text-wrap: balance; }
.tagline, .section-sub, .step p, .point p, .extra p { text-wrap: pretty; }
.split .w { display: inline-block; white-space: nowrap; clip-path: inset(-0.25em -0.1em -0.02em -0.1em); }
.split .ch { display: inline-block; }
.motion .split.is-split .ch { transform: translateY(112%); }
.section-title { --size: var(--t-section); display: inline-block; transform-origin: left bottom; }

/* ---------- Panels: rounded sheets on a black frame ---------- */
main { display: flex; flex-direction: column; gap: var(--edge); padding: var(--edge); }
.panel { position: relative; z-index: 2; border-radius: 30px; overflow: clip; padding: clamp(96px, 9vw, 132px) var(--pad) clamp(64px, 7vw, 112px); }
.panel > * { max-width: var(--max); margin-left: auto; margin-right: auto; }

/* ---------- Stickers: pop in, then float on their own rhythm ---------- */
.sticker { position: absolute; left: var(--x, 0); top: var(--y, 0); width: var(--s, 110px); z-index: 3; translate: var(--px, 0) var(--py, 0); }
.sticker-inline { position: relative; left: auto; top: auto; flex: none; }
.sticker img { width: 100%; height: auto; rotate: var(--r, 0deg); user-select: none; -webkit-user-drag: none; transition: scale .45s var(--spring); }
.sticker:hover img { scale: 1.12; }
.motion .sticker img { animation: float var(--d, 5s) ease-in-out infinite; }
.motion .pop { opacity: 0; }
@keyframes float {
  0%, 100% { translate: 0 0; rotate: var(--r, 0deg); }
  50% { translate: 0 -9px; rotate: calc(var(--r, 0deg) + 5deg); }
}

/* ---------- Hero ---------- */
.hero { background: var(--sky); padding-top: 104px; padding-bottom: clamp(40px, 5vw, 72px); transform-origin: 50% 0; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); align-items: center; gap: clamp(16px, 3vw, 48px); }
.hero-copy { container-type: inline-size; position: relative; z-index: 2; }
.hero-title { --size: 21.4cqi; }
.tagline { margin-top: clamp(20px, 2.4vw, 32px); max-width: 24ch; font-size: var(--t-tagline); line-height: 1.22; letter-spacing: -0.02em; }
.cta-row { margin-top: clamp(24px, 2.6vw, 36px); display: flex; flex-wrap: wrap; gap: 10px; }
.fine { margin-top: 16px; font-size: var(--t-small); color: var(--muted); }
.ph-badge { display: inline-flex; margin-top: 20px; border-radius: 10px; transition: transform 160ms ease-out; }
.ph-badge img { display: block; }
.ph-badge:active { transform: scale(0.97); }
.ph-badge:focus-visible { outline: 2px solid #000; outline-offset: 3px; }
.hero-art { position: relative; aspect-ratio: 1; width: 100%; max-width: calc(100svh - 160px); margin-left: auto; }
.hero-q { position: absolute; inset: 7%; }
.hero-q-img, #hero-3d { position: absolute; inset: 0; width: 100%; height: 100%; }
#hero-3d { opacity: 0; transition: opacity .6s var(--ease); }
.hero-q.is-live #hero-3d { opacity: 1; }
.hero-q.is-live .hero-q-img { opacity: 0; transition: opacity .6s var(--ease); }
.motion .hero-q:not(.is-live) .hero-q-img { animation: bob 6s ease-in-out infinite; }
@keyframes bob { 0%, 100% { translate: 0 0; rotate: 0deg; } 50% { translate: 0 -12px; rotate: 3deg; } }

/* Desktop: hero stays pinned and sinks back while the next panel slides over it. */
@media (min-width: 1024px) and (min-height: 700px) {
  .motion .hero { position: sticky; top: var(--edge); z-index: 1; height: calc(100svh - 40px - 3 * var(--edge)); display: flex; align-items: center; }
  .motion .hero-grid { width: 100%; }
  @supports (animation-timeline: scroll()) {
    .motion .hero { animation: hero-out linear both; animation-timeline: scroll(root); animation-range: 0 90svh; }
  }
}
@keyframes hero-out { 70% { opacity: 0.3; } to { scale: 0.9; opacity: 0; border-radius: 56px; } }

/* ---------- Section heads: title left, intro right ---------- */
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 340px); align-items: end; gap: 24px 48px; }
.section-head.with-art { grid-template-columns: minmax(0, 1fr) auto; }
.section-sub { font-size: var(--t-sub); line-height: 1.35; letter-spacing: -0.015em; padding-bottom: 0.4em; }

/* Entrances (only with motion on; JS animates them in) */
.motion .fade { opacity: 0; transform: translateY(18px); }
.motion .rise-card { opacity: 0; transform: translateY(56px) rotate(3deg); }

/* ---------- Try it ---------- */
.try { background: var(--paper); }
.paper {
  position: relative; margin-top: clamp(32px, 4vw, 56px);
  display: grid; grid-template-columns: minmax(0, 1fr) clamp(200px, 22vw, 300px); gap: 24px;
  padding: 88px clamp(24px, 4vw, 56px) clamp(32px, 4vw, 56px);
  background: var(--sky); border: 1px solid var(--carbon); border-radius: 40px;
}
.paper-label {
  position: absolute; top: 28px; left: clamp(24px, 4vw, 56px); display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; background: var(--sun); border: 1px solid var(--carbon); border-radius: 999px;
  font-weight: 700; font-size: var(--t-label); letter-spacing: 0.032em; text-transform: uppercase;
}
.paper-label svg { width: 14px; height: 14px; }
.demo-text { font-size: clamp(22px, 2.5vw, 36px); line-height: 1.5; letter-spacing: -0.02em; max-width: 30ch; }
.paper-art { position: relative; min-height: 240px; }
.nw { white-space: nowrap; }
.demo-word {
  all: unset; cursor: pointer; text-decoration: underline dotted 2px; text-underline-offset: 7px; border-radius: 6px; padding: 0 2px; margin: 0 -2px;
  transition: background-color .2s var(--ease);
}
.demo-word:hover { background: var(--paper); }
.demo-word:focus-visible { outline: 2px solid var(--carbon); outline-offset: 2px; }
.demo-word.is-active { background: var(--blue); }
.demo-layer { position: absolute; inset: 0; pointer-events: none; z-index: 5; }
.demo-pop {
  position: absolute; pointer-events: auto; opacity: 0; transform: scale(.96);
  transition: opacity .16s var(--ease), transform .16s var(--ease);
}
.demo-pop.in { opacity: 1; transform: none; }
.demo-cursor { position: absolute; left: 0; top: 0; width: 30px; z-index: 6; pointer-events: none; opacity: 0; }

/* ---------- How it works ---------- */
.how { background: var(--concrete); }
.steps { list-style: none; margin-top: clamp(32px, 4vw, 56px); padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.step { border: 1px solid var(--carbon); border-radius: 40px; padding: 28px; min-height: 360px; display: flex; flex-direction: column; transition: translate .45s var(--spring); }
.step:hover { translate: 0 -8px; }
.c-mint { background: var(--mint); }
.c-lav { background: var(--lav); }
.c-sun { background: var(--sun); }
.step:nth-child(1) { rotate: -1deg; }
.step:nth-child(2) { rotate: 0.8deg; margin-top: 20px; }
.step:nth-child(3) { rotate: -0.6deg; }
.step-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.step-num { font: 400 clamp(110px, 10vw, 168px)/0.8 var(--font-display); }
.step h3 { margin-top: auto; padding-top: 28px; font-size: var(--t-h3); line-height: 1.1; font-weight: 700; }
.step p { margin-top: 10px; font-size: 17px; line-height: 1.45; }
.extras { margin-top: 56px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.extra { display: flex; gap: 18px; align-items: center; padding: 24px; background: var(--paper); border: 1px solid var(--carbon); border-radius: 24px; }
.extra-icon { flex: none; width: 56px; height: 56px; border: 1px solid var(--carbon); border-radius: 18px; background: var(--sky); transition: rotate .45s var(--spring); }
.extra:hover .extra-icon { rotate: -10deg; }
.extra-icon svg { width: 24px; height: 24px; }
.extra h3 { font-size: 20px; font-weight: 700; line-height: 1.2; }
.extra p { margin-top: 4px; font-size: 17px; line-height: 1.4; }
.mini-logo { display: inline-grid; place-items: center; width: 24px; height: 24px; vertical-align: -5px; border: 1px solid var(--carbon); border-radius: 7px; background: var(--sun); font: 400 15px/1 var(--font-display); }

/* ---------- Privacy ---------- */
.privacy { background: var(--paper); }
.privacy .section-title { --size: clamp(60px, 9.6vw, 156px); }
.head-art { position: relative; align-self: center; width: clamp(200px, 23vw, 340px); height: clamp(150px, 16vw, 240px); margin-right: 2%; }
.privacy-card {
  margin-top: clamp(32px, 4vw, 56px); padding: clamp(24px, 4vw, 48px);
  background: var(--lav); border: 1px solid var(--carbon); border-radius: 40px;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px;
}
.point-icon { width: 56px; height: 56px; background: var(--paper); border: 1px solid var(--carbon); border-radius: 999px; transition: rotate .45s var(--spring), scale .45s var(--spring); }
.point:hover .point-icon { rotate: 12deg; scale: 1.08; }
.point-icon svg { width: 24px; height: 24px; }
.point h3 { margin-top: 18px; font-size: var(--t-h3); font-weight: 700; line-height: 1.15; }
.point p { margin-top: 8px; font-size: 17px; line-height: 1.45; }
.text-link { grid-column: 1 / -1; justify-self: start; font-weight: 700; font-size: 16px; text-underline-offset: 4px; min-height: 44px; display: inline-flex; align-items: center; }

/* ---------- Questions ---------- */
.faq { background: var(--lav); }
.faq-list { margin-top: clamp(32px, 4vw, 56px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; }
.faq-item { background: var(--paper); border: 1px solid var(--carbon); border-radius: 24px; interpolate-size: allow-keywords; }
.faq-item summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; padding: 18px 20px 18px 24px; cursor: pointer; border-radius: 24px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:focus-visible { outline: 2px solid var(--carbon); outline-offset: 3px; }
.faq-item h3 { font-size: clamp(18px, 1.5vw, 21px); font-weight: 700; line-height: 1.25; }
.faq-icon { flex: none; width: 40px; height: 40px; border: 1px solid var(--carbon); border-radius: 999px; background: var(--sun); transition: rotate .4s var(--spring), background-color .2s var(--ease); }
.faq-icon svg { width: 18px; height: 18px; }
.faq-item[open] .faq-icon { rotate: 45deg; background: var(--paper); }
.faq-item p { padding: 0 24px 22px; font-size: 17px; line-height: 1.55; max-width: 60ch; text-wrap: pretty; }
.motion .faq-item::details-content { block-size: 0; overflow: clip; transition: block-size .4s var(--ease), content-visibility .4s allow-discrete; }
.motion .faq-item[open]::details-content { block-size: auto; }

/* ---------- Final ---------- */
.final { background: var(--sky); padding-bottom: 0; }
.final-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.final-side { justify-self: center; }
.final-center { display: flex; flex-direction: column; align-items: center; gap: 36px; }
.final-title { --size: clamp(80px, 12.4vw, 200px); text-align: center; }
.final-ribbon-wrap { position: relative; max-width: none; height: clamp(150px, 20vw, 300px); margin: 24px calc(-1 * var(--pad)) 0; }
.final-ribbon { position: absolute; left: 50%; top: -30%; width: max(1100px, 116%); max-width: none; translate: -50% 0; }

/* ---------- Footer ---------- */
.footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 14px; padding: 24px var(--pad) 32px; color: var(--paper); font-size: 14px; text-align: center; }
.footer a { text-underline-offset: 3px; }
.footer .dot { width: 4px; height: 4px; border-radius: 999px; background: var(--paper); opacity: .5; }
.motion-toggle { all: unset; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; min-height: 32px; }
.motion-toggle:focus-visible { outline: 2px solid var(--paper); outline-offset: 2px; border-radius: 4px; }

/* ---------- Tablet ---------- */
@media (max-width: 1023px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; width: min(100%, 460px); max-width: none; margin: 0 auto; }
  .steps { grid-template-columns: 1fr; }
  .step { min-height: 0; }
  .step:nth-child(2) { margin-top: 0; }
  .step h3 { margin-top: 12px; }
  .extras, .privacy-card, .faq-list { grid-template-columns: 1fr; }
  .paper { grid-template-columns: 1fr; }
  .paper-art { min-height: 140px; }
  .paper-art .sticker:first-child { --x: 6% !important; --y: 0 !important; }
  .paper-art .sticker:last-child { --x: 40% !important; --y: 4% !important; }
}

/* ---------- Phone ---------- */
@media (max-width: 700px) {
  :root { --edge: 8px; --t-body: 17px; }
  .panel { border-radius: 24px; padding-top: 88px; }
  .nav > * { margin-top: 16px; }
  .nav-links { display: none; }
  .nav .btn { min-height: 44px; padding: 0 16px; }
  .hero { padding-top: 76px; }
  .hero-art { width: 88%; }
  .hero-art .sticker:nth-child(2) { --x: -6% !important; --y: 0% !important; --s: 78px !important; }
  .hero-art .sticker:nth-child(3) { --x: 70% !important; --y: 66% !important; --s: 96px !important; }
  .hero-art .sticker:nth-child(4) { --x: 0% !important; --y: 72% !important; --s: 72px !important; }
  .cta-row { flex-direction: column; }
  .cta-row .btn { width: 100%; }
  .section-head, .section-head.with-art { grid-template-columns: 1fr; }
  .head-art { position: absolute; right: -8px; top: -96px; width: 170px; height: 120px; margin: 0; }
  .head-art .sticker:first-child { --s: 64px !important; }
  .head-art .sticker:last-child { --s: 104px !important; }
  .paper, .step, .privacy-card { border-radius: 28px; }
  .paper { padding-top: 76px; }
  .final-inner { grid-template-columns: 1fr 1fr; }
  .final-center { grid-column: 1 / -1; grid-row: 2; }
  .final-side:first-child { justify-self: start; }
  .final-side:last-child { justify-self: end; }
  .footer { flex-direction: column; gap: 6px; padding-bottom: 40px; }
  .footer .dot { display: none; }
  .footer a, .footer .motion-toggle { min-height: 40px; display: inline-flex; align-items: center; }
  .final-ribbon-wrap { height: 190px; }
  .final-ribbon { top: -30px; width: 760px; }
}

/* ---------- Reduced motion: everything calm and in place ---------- */
html:not(.motion) .sticker img, html:not(.motion) .hero-q-img { animation: none; }
html:not(.motion) .btn-fill, html:not(.motion) .nav-indicator, html:not(.motion) .step,
html:not(.motion) .logo, html:not(.motion) .sticker img, html:not(.motion) .btn svg, html:not(.motion) .faq-icon { transition: none; }
html:not(.motion) { scroll-behavior: auto; }
