/* CherryWave v3 (Figma page "CherryWave site v3"): one family (Hanken Grotesk), flat colour only, no divider lines. */
:root {
  --white: #FFFFFF; --paper: #F6F4F0; --ink: #111111; --body: #2B2B2B; --muted: #6E6A64;
  --cherry: #C81E3A; --cherry-dark: #A8172F; --gold: #F2C14E;
  --lapis: #2340B8; --lapis-text: #C9D4FF;
  --co-red: #BE2042; --co-red-dark: #9E1A37;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --font: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --edge: max(clamp(16px, 4vw, 40px), calc(50% - 640px));
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--white); color: var(--ink); font: 500 18px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ol { margin: 0; }
:focus-visible { outline: 3px solid var(--cherry); outline-offset: 3px; border-radius: 8px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 10px; z-index: 100; }
.skip:focus { left: 12px; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
.wrap.full { max-width: none; }

/* header */
.top { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); }
.top-in { height: 80px; display: flex; align-items: center; justify-content: space-between; }
.word { font-family: Outfit, var(--font); font-weight: 700; font-size: 25px; letter-spacing: -.025em; text-decoration: none; }
.top nav { display: flex; align-items: center; gap: 32px; }
.top nav a:not(.nav-cta) { text-decoration: none; color: var(--body); font-size: 16px; }
.top nav a:not(.nav-cta):hover { color: var(--ink); }
.btn { display: inline-flex; align-items: center; height: 52px; padding: 0 22px; border-radius: 14px; font: 600 16px/1 var(--font); text-decoration: none; white-space: nowrap;
  transition: background-color .2s, transform .15s var(--ease); }
.btn:active { transform: scale(.97); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #2B2B2B; }
.btn-co { background: var(--co-red); color: #fff; }
.btn-co:hover { background: var(--co-red-dark); }
.btn-cherry { background: var(--cherry); color: #fff; }
.btn-cherry:hover { background: var(--cherry-dark); }
/* links that act: words on a quiet line; on hover the line draws across in the work's colour (no boxes, no arrows) */
.cta { --line: var(--cherry); position: relative; display: inline-block; padding-bottom: 9px; font: 600 20px/1.3 var(--font);
  color: inherit; text-decoration: none; white-space: nowrap; }
.cta::before, .cta::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: currentColor; }
.cta::before { opacity: .2; }
.cta::after { background: var(--line); transform: scaleX(0); transform-origin: 0 50%; transition: transform .6s var(--ease); }
.cta:hover::after, .cta:focus-visible::after { transform: scaleX(1); }
.cta-cl { --line: var(--lapis); }
.cta-co { --line: var(--co-red); }
.cta-foot { font-size: 22px; }
/* the menu: three words; the one you point at gets a short line under it */
.top nav a { position: relative; }
.top nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1.5px; background: currentColor; transform: scaleX(0);
  transform-origin: 0 50%; transition: transform .45s var(--ease); }
.top nav a:hover::after, .top nav a:focus-visible::after, .top nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav-cta { font-weight: 600; color: var(--ink); text-decoration: none; font-size: 16px; }
.top.over .nav-cta { color: #fff; }
::selection { background: var(--cherry); color: #fff; }

/* ---------------------------------------------------------------- the hero: a red planet rising in the dark */
.top { transition: background-color .35s var(--ease); }
.top.over { background: #000; backdrop-filter: none; -webkit-backdrop-filter: none; }
.top.over .word, .top.over nav a:not(.nav-cta) { color: #fff; }
.top.over nav a:not(.nav-cta):hover { color: #D6D3CE; }
.top.over .btn-ink { background: #fff; color: var(--ink); }
.space { position: relative; height: max(640px, calc(100svh - 80px)); background: #000; overflow: hidden; }
.planet { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1.2s var(--ease); }
.space.lit .planet { opacity: 1; }
.space-in { position: relative; z-index: 1; padding-top: clamp(72px, 13svh, 140px); text-align: center; pointer-events: none; }
.space h1 { color: #fff; font-weight: 700; font-size: clamp(44px, 6.6vw, 96px); letter-spacing: -.035em; line-height: 1;
  opacity: 0; transform: translateY(22px); transition: opacity 1s var(--ease) .2s, transform 1.1s var(--ease) .2s; }
.space.lit h1 { opacity: 1; transform: none; }
/* the glass line: drawn by planet.js as real glass over the scene; these words stay for reading and search (clear ink
   once the glass is on; a plain frosted look if WebGL is missing) */
.glass-line { margin-top: clamp(14px, 1.6vw, 22px); font-weight: 900; font-size: clamp(64px, 9vw, 136px); letter-spacing: -.03em; line-height: 1.02;
  color: transparent; }
/* only without WebGL do the words show as plain frosted type */
.space.flat .glass-line { color: rgba(255, 255, 255, .16); -webkit-text-stroke: 1px rgba(255, 255, 255, .5); }
.glass-line span { display: inline; }

/* ---------------------------------------------------------------- work */
.work { padding: 120px 0 0; }
.project { margin-bottom: 120px; }
.stage { position: relative; border-radius: 32px; overflow: hidden; container-type: inline-size; aspect-ratio: 1280 / 880; }
.cl-stage { background: var(--lapis); }
.co-stage { background: var(--co-red); }
.st { position: absolute; inset: 0; --px: calc(100cqw / 1280); }
.giant { position: absolute; left: 0; right: 0; text-align: center; color: #fff; font-weight: 800; letter-spacing: -.05em; line-height: .9; white-space: nowrap; }
.cl-stage .giant { top: calc(70 * var(--px)); font-size: calc(184 * var(--px)); }
.co-stage .giant { top: calc(60 * var(--px)); font-size: calc(220 * var(--px)); }
.leo-w { position: absolute; left: calc(70 * var(--px)); top: calc(450 * var(--px)); width: calc(380 * var(--px)); transform-origin: 50% 92%; animation: sway 3.6s ease-in-out infinite; }
@keyframes sway { 0%, 100% { rotate: -2deg; } 50% { rotate: 3deg; } }
.iphone { position: absolute; left: calc(450 * var(--px)); top: calc(240 * var(--px)); width: calc(380 * var(--px)); aspect-ratio: 1470 / 3000; will-change: transform; }
.iphone .bezel { position: absolute; inset: 0; width: 100%; height: 100%; }
.iphone .screen { position: absolute; left: 5.102%; top: 2.2%; width: 89.796%; height: 95.6%; overflow: hidden; background: #000; border-radius: 13% / 6%; }
.screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: translateY(6%); transition: opacity .7s var(--ease), transform .8s var(--ease); }
.screen img.on { opacity: 1; transform: none; }
.float img { position: absolute; animation: bob var(--d, 5s) ease-in-out infinite; animation-delay: var(--dl, 0s); will-change: transform; }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 calc(-16 * var(--px)); } }
.chat { position: absolute; left: calc(340 * var(--px)); top: calc(250 * var(--px)); width: calc(600 * var(--px)); height: calc(720 * var(--px)); background: #fff;
  border-radius: calc(24 * var(--px)); padding: calc(22 * var(--px)) calc(28 * var(--px)); font-size: calc(17 * var(--px)); line-height: 1.38; will-change: transform; }
.chat-top { display: flex; justify-content: space-between; align-items: baseline; font-size: calc(15 * var(--px)); }
.chat-top b { font-weight: 600; }
.chat-top span { color: var(--muted); font-size: calc(14 * var(--px)); }
.ask { width: fit-content; max-width: calc(440 * var(--px)); margin: calc(24 * var(--px)) 0 0 auto; background: var(--ink); color: #fff; border-radius: calc(18 * var(--px));
  padding: calc(12 * var(--px)) calc(18 * var(--px)); }
.step { margin-top: calc(26 * var(--px)); }
.did { display: flex; align-items: center; gap: calc(8 * var(--px)); color: var(--muted); font-size: calc(15 * var(--px)); }
.did::before { content: ""; width: calc(18 * var(--px)); height: calc(18 * var(--px)); flex: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.2 4.2L19 7' fill='none' stroke='%23BE2042' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.res { margin-top: calc(12 * var(--px)); background: var(--paper); border-radius: calc(16 * var(--px)); padding: calc(20 * var(--px)) calc(24 * var(--px));
  display: flex; justify-content: space-between; align-items: flex-start; gap: calc(12 * var(--px)); }
.res b { display: block; font-weight: 700; font-size: calc(28 * var(--px)); letter-spacing: -.02em; line-height: 1.1; }
.res span { display: block; color: var(--muted); font-size: calc(15 * var(--px)); margin-top: calc(8 * var(--px)); }
.res em { font-style: normal; color: var(--co-red); font-weight: 600; font-size: calc(15 * var(--px)); }
.done { margin-top: calc(26 * var(--px)); color: var(--body); max-width: calc(440 * var(--px)); }
/* the chat plays when it is on screen: the ask, each result, the answer */
.chat.play .ask, .chat.play .step, .chat.play .done { opacity: 0; transform: translateY(calc(14 * var(--px))); transition: opacity .5s var(--ease), transform .6s var(--ease); }
.chat.play.a1 .ask, .chat.play.a2 .s1, .chat.play.a3 .s2, .chat.play.a4 .done { opacity: 1; transform: none; }
.cap { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-top: 32px; }
.cap h2 { font-weight: 800; font-size: 30px; letter-spacing: -.02em; line-height: 1.1; }
.cap p { font-size: 20px; color: var(--body); margin-top: 10px; }

/* ---------------------------------------------------------------- the footer: black like the hero, the talk, the links, the name */
.foot { background: #000; color: #fff; padding-top: 128px; overflow: hidden; }
.foot-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 64px; align-items: start; }
.foot-cta h2 { font-weight: 800; font-size: clamp(56px, 6.7vw, 96px); letter-spacing: -.045em; line-height: 1; }
.foot-cta p { color: #A3A09A; font-size: 22px; margin: 20px 0 32px; max-width: 520px; }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { background: #E9E6E1; }
.foot-cols { display: grid; grid-template-columns: repeat(3, 160px); gap: 24px; padding-top: 16px; }
.foot-col h3 { font-weight: 600; font-size: 15px; color: #fff; margin-bottom: 14px; }
.foot-col a { display: block; color: #A3A09A; text-decoration: none; font-size: 16px; padding: 5px 0; transition: color .2s; }
.foot-col a:hover { color: #fff; }
.foot-meta { display: flex; justify-content: space-between; gap: 16px; margin-top: 128px; color: #77736D; font-size: 14px; }
.totop { color: inherit; text-decoration: none; transition: color .2s; }
.totop:hover { color: #fff; }
/* the bottom: the name as wide as the page; its letters rise in, then a slow wave keeps running through them */
.foot-word { margin: 28px 0 0; text-align: center; font-family: Outfit, var(--font); font-weight: 700; font-size: 17.2vw; letter-spacing: -.035em;
  line-height: .86; color: var(--cherry); white-space: nowrap; overflow: hidden; padding: .1em 0 .2em; user-select: none; }
.foot-word span { display: inline-block; translate: 0 110%; transition: translate 1s cubic-bezier(.2, .8, .2, 1); transition-delay: calc(var(--i) * 45ms);
  animation: wave 3.6s cubic-bezier(.45, 0, .55, 1) infinite paused; animation-delay: calc(var(--i) * 110ms + 1.2s); }
.foot-word.in span { translate: none; animation-play-state: running; }
@keyframes wave { 0%, 55%, 100% { transform: none; color: var(--cherry); } 22% { transform: translateY(-9%); color: #E8384F; } 40% { transform: translateY(2%); } }

/* ---------------------------------------------------------------- About */
.sec-title { font-weight: 800; font-size: clamp(34px, 3.4vw, 52px); letter-spacing: -.03em; line-height: 1.05; }
.tl { padding: 140px 0 40px; }
.tl-in { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 80px; }
.tl-side { position: sticky; top: 128px; align-self: start; }
.tl-side p { margin-top: 18px; font-size: 19px; color: var(--muted); max-width: 320px; }
/* the timeline: its axis fills in cherry as you read down, each stop lights as you pass it */
.tl-list { list-style: none; padding: 0; position: relative; --fill: 0; }
.tl-list::before, .tl-list::after { content: ""; position: absolute; left: 7px; top: 10px; bottom: 10px; width: 2px; border-radius: 2px; background: #ECE9E4; }
.tl-list::after { background: var(--cherry); transform-origin: 50% 0; transform: scaleY(var(--fill)); }
.tl-list li { position: relative; padding: 0 0 72px 52px; opacity: .35; transition: opacity .6s var(--ease); }
.tl-list li:last-child { padding-bottom: 0; }
.tl-list li.on { opacity: 1; }
.tl-list li::before { content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: #fff; z-index: 1;
  box-shadow: inset 0 0 0 2px #D9D4CC; transition: box-shadow .4s var(--ease); }
.tl-list li.on::before { box-shadow: inset 0 0 0 5px var(--cherry); }
.tl-list li.next.on::before { box-shadow: inset 0 0 0 2px var(--cherry); }
.when { display: block; font-weight: 600; font-size: 15px; color: var(--cherry); }
/* the founding period opens the timeline as its own phase: a tinted panel round the first stop */
.tl-list li.phase { margin-left: -24px; padding: 28px 28px 32px 76px; background: #FBF1F1; border-radius: 24px; margin-bottom: 64px; }
.tl-list li.phase::before { left: 24px; top: 32px; }
.tl-list li.next .when { color: var(--muted); }
.tl-list h3 { font-weight: 700; font-size: clamp(24px, 2.3vw, 32px); letter-spacing: -.02em; line-height: 1.15; margin-top: 6px; }
.tl-list p { margin-top: 10px; font-size: 18px; color: var(--body); max-width: 580px; }
.make { padding-top: 100px; }
.make .tiles { margin-top: 40px; }
.ab-hero { padding: 120px 0 0; }
.ab-hero h1 { font-weight: 800; font-size: clamp(56px, 8.3vw, 120px); letter-spacing: -.045em; line-height: .92; }
.lead { font-size: clamp(26px, 2.8vw, 40px); font-weight: 500; letter-spacing: -.02em; line-height: 1.2; max-width: 1000px; margin-top: 40px; color: var(--body); }
.story { font-size: clamp(18px, 1.55vw, 22px); line-height: 1.5; max-width: 760px; margin-top: 64px; color: var(--body); }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 120px 0 120px; }
.make .tiles { margin-bottom: 120px; }
.tile { display: block; text-decoration: none; }
.tile-art { position: relative; border-radius: 28px; overflow: hidden; aspect-ratio: 628 / 520; container-type: inline-size; transition: transform .4s var(--ease); }
.tile:hover .tile-art { transform: translateY(-4px); }
.tile-art.cl { background: var(--lapis); }
.tile-art.co { background: var(--co-red); }
.tile-art .leo-p { position: absolute; left: 3.18cqw; top: 39.8cqw; width: 44.6cqw; }
.tile-art .iphone { left: 47.8cqw; top: 9.55cqw; width: 41.4cqw; }
.tile-art .giant { top: 30.2cqw; font-size: 19.1cqw; }
.tile b { display: block; font-weight: 800; font-size: 24px; letter-spacing: -.02em; margin-top: 24px; }
.tile span { display: block; font-size: 18px; color: var(--muted); }

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

/* ---------------------------------------------------------------- phones: the seam runs across */
@media (max-width: 1080px) {
  .foot-top { grid-template-columns: 1fr; gap: 56px; }
}
@media (max-width: 720px) {
  .top nav { gap: 20px; }
  .top nav a:not(.nav-cta) { display: none; }
  .word { font-size: 22px; }
  .space h1 { padding: 0 16px; }
  .space h1 span { display: block; }
  .space .glass-line { font-size: 14vw; }
  .work { padding-top: 64px; }
  .project { margin-bottom: 72px; }
  .stage { aspect-ratio: 358 / 520; border-radius: 24px; }
  .st { --px: calc(100cqw / 358); }
  .cl-stage .giant { top: calc(40 * var(--px)); font-size: calc(52 * var(--px)); }
  .co-stage .giant { top: calc(36 * var(--px)); font-size: calc(72 * var(--px)); }
  .cl-stage .iphone { left: calc(89 * var(--px)); top: calc(130 * var(--px)); width: calc(180 * var(--px)); }
  .leo-w { left: calc(-20 * var(--px)); top: calc(330 * var(--px)); width: calc(170 * var(--px)); }
  .float { display: none; }
  .chat { left: calc(24 * var(--px)); top: calc(150 * var(--px)); width: calc(310 * var(--px)); height: calc(420 * var(--px)); padding: calc(16 * var(--px));
    font-size: calc(15 * var(--px)); }
  .chat > * { --px: calc(100cqw / 358 * .8); }
  .chat-top, .done { display: none; }
  .ask { margin-top: calc(6 * var(--px)); }
  .cap { flex-direction: column; gap: 16px; margin-top: 20px; }
  .cap h2 { font-size: 24px; }
  .cap p { font-size: 17px; margin-top: 6px; }
  .btn { height: 48px; }
  .foot { padding-top: 88px; }
  .foot-cta p { font-size: 18px; }
  .foot-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .foot-meta { margin-top: 72px; }
  .ab-hero { padding-top: 64px; }
  .tiles { grid-template-columns: 1fr; margin: 72px 0; }
  .tl { padding-top: 88px; }
  .tl-in { grid-template-columns: 1fr; gap: 40px; }
  .tl-side { position: static; }
  .tl-list li { padding-bottom: 48px; }
  .tl-list li.phase { margin-left: -8px; padding: 22px 18px 24px 60px; margin-bottom: 48px; }
  .tl-list li.phase::before { left: 8px; top: 26px; }
  .make { padding-top: 64px; }
  .word { font-size: 21px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .space h1, .tl-list li { opacity: 1; transform: none; transition: none; }
  .foot-word span { translate: none; animation: none; transition: none; }
  .leo-w, .float img { animation: none; }
  .screen img { transition: none; }
}
