:root {
  --bg: #ffffff;
  --ink: #111111;
  --body: #444444;
  --muted: #8a8a8a;
  --rule: #111111;
  --hair: #e8e8e8;
  --frame: #f4f3f9;
  --purple: #553df6;
  --sans: "Instrument Sans", system-ui, -apple-system, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --gutter: clamp(20px, 4vw, 56px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: 0; -webkit-text-size-adjust: 100%; }
body { overflow-x: clip; background: var(--bg); color: var(--ink); font: 400 17px/1.7 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--purple); color: #fff; }
svg { display: block; fill: currentColor; }

/* shared type */
.label, .bar, .facts__label, .project__num, .nav nav a, .footer {
  font-size: 13px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
}

/* nav */
.nav {
  position: relative; z-index: 10;
  display: flex; justify-content: space-between; align-items: center;
  height: 72px; padding-inline: var(--gutter);
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.nav__logo { width: 24px; height: 24px; transition: transform .6s var(--ease), color .3s; }
.nav__logo:hover { transform: rotate(90deg); color: var(--purple); }
.nav nav { display: flex; gap: clamp(20px, 3vw, 44px); }
.nav nav a { color: var(--ink); transition: color .2s; }
.nav nav a:hover { color: var(--purple); }

/* hamburger menu on phones */
.nav__toggle { display: none; position: relative; width: 40px; height: 40px; margin-right: -8px; padding: 0; border: 0; background: none; cursor: pointer; }
.nav__toggle span { position: absolute; left: 9px; right: 9px; height: 1.5px; border-radius: 2px; background: var(--ink); transition: transform .3s var(--ease), top .3s var(--ease); }
.nav__toggle span:first-child { top: 15px; }
.nav__toggle span:last-child { top: 24px; }
.nav.is-open .nav__toggle span:first-child { top: 19.5px; transform: rotate(45deg); }
.nav.is-open .nav__toggle span:last-child { top: 19.5px; transform: rotate(-45deg); }
@media (max-width: 600px) {
  .nav__toggle { display: block; }
  .nav nav {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0;
    padding: 4px var(--gutter) 12px; background: #fff; border-bottom: 1px solid var(--rule);
    box-shadow: 0 16px 32px -24px rgba(30, 20, 90, .35);
    opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .25s, transform .25s var(--ease), visibility .25s;
  }
  .nav.is-open nav { opacity: 1; visibility: visible; transform: none; }
  .nav nav a { padding: 16px 0; border-bottom: 1px solid var(--hair); }
  .nav nav a:last-child { border-bottom: 0; }
  .nav nav a::after { display: none; }
}

/* hero */
.hero { position: relative; isolation: isolate; padding: clamp(96px, 16vh, 180px) var(--gutter) clamp(56px, 8vh, 88px); max-width: 1440px; margin-inline: auto; }
/* soft lavender glow drifting behind the name */
.hero::before {
  content: ""; position: absolute; z-index: -1; left: 0; top: 8%; width: min(900px, 90%); aspect-ratio: 2 / 1; pointer-events: none;
  background:
    radial-gradient(40% 55% at 30% 50%, rgba(85, 61, 246, .16), transparent 70%),
    radial-gradient(35% 50% at 65% 45%, rgba(228, 126, 240, .14), transparent 70%);
  filter: blur(30px);
  animation: drift 18s ease-in-out infinite alternate;
}
@keyframes drift { to { transform: translate(8%, 10%) scale(1.08); } }
/* name letters rise in one by one */
.hero__name { flex-wrap: nowrap; column-gap: .2em; white-space: nowrap; }
.hero__name .word { display: inline-flex; white-space: nowrap; }
.hero__name .ch { display: inline-block; opacity: 0; translate: 0 .35em; animation: rise .9s var(--ease) forwards; animation-delay: calc(var(--i) * 45ms + .1s); }
@keyframes rise { to { opacity: 1; translate: 0 0; } }
.hero__name {
  /* sized to the viewport so the full name always fits on one line */
  font: italic 400 min(212px, calc((min(100vw, 1440px) - 2 * var(--gutter)) / 4.8))/.9 var(--serif);
  letter-spacing: -.065em;
  display: flex; align-items: flex-start;
}
.hero__name sup { display: inline-block; width: .38em; height: .38em; margin: .04em 0 0 .08em; color: var(--purple); }
.hero__name sup svg { width: 100%; height: 100%; transition: transform .9s var(--ease); }
/* hovering the name gives the asterisk a half turn; it's 6-fold symmetric, so it lands back in its own shape */
@media (hover: hover) { .hero__name:hover sup svg { transform: rotate(180deg); } }
@keyframes spin { to { transform: rotate(360deg); } }
.hero__note {
  max-width: 820px; margin-top: clamp(16px, 2vw, 28px);
  color: var(--body); font-size: clamp(18px, 1.35vw, 21px); line-height: 1.6;
}
.hero__note strong { font-weight: 500; color: var(--ink); }

/* off-hours orbit: interests circling slowly beside the intro line */
.hero__row { display: grid; grid-template-columns: minmax(0, 820px) 1fr; gap: 32px; align-items: center; }
.interests { --r: 112px; --t: 70s; position: relative; justify-self: end; width: 280px; aspect-ratio: 1; margin: 0; }
.interests::before { content: ""; position: absolute; inset: calc(50% - var(--r)); border: 1px dashed #d9d6e6; border-radius: 50%; }
.interests__orbit { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; animation: spin var(--t) linear infinite; }
.interests:hover .interests__orbit, .interests:hover .interests__spin { animation-play-state: paused; }
.interests__item { position: absolute; left: 50%; top: 50%; transform: rotate(var(--a)) translateY(calc(-1 * var(--r))) rotate(calc(-1 * var(--a))); }
/* zero-size pivot sitting exactly on the ring, so each badge counter-spins around its own centre */
.interests__spin { position: relative; display: block; width: 0; height: 0; animation: spin var(--t) linear infinite reverse; }
.interests__badge {
  position: absolute; left: -31px; top: -31px; display: grid; place-items: center; width: 62px; height: 62px; margin: 0; padding: 0; border-radius: 50%; cursor: default;
  background: #fff; border: 1px solid var(--hair); color: var(--ink);
  box-shadow: 0 10px 22px -12px rgba(30, 20, 90, .35); transition: border-color .25s, transform .35s var(--ease), box-shadow .35s;
}
.interests__badge:hover, .interests__badge:focus-visible { border-color: var(--purple); transform: scale(1.12); box-shadow: 0 14px 28px -12px rgba(85, 61, 246, .45); outline: none; }

/* duotone line icons: ink strokes, lavender fills, purple accents */
.ic { width: 30px; height: 30px; overflow: visible; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.ic .t { fill: #e6e1ff; stroke: none; }
.ic .w { fill: #fff; }
.ic .a { stroke: var(--purple); }
.ic .f { fill: currentColor; stroke: none; }
.ic .fa { fill: var(--purple); stroke: none; }
.ic--sway { transform-origin: 50% 80%; }
.ic--tick .hand { transform-origin: 16px 16px; }
.ic--steam .steam { transform-box: fill-box; }
.interests__badge:hover .ic--sway, .interests__badge:focus-visible .ic--sway { animation: sway 1.2s ease-in-out infinite; }
.interests__badge:hover .ic--lift, .interests__badge:focus-visible .ic--lift { animation: lift .9s ease-in-out infinite; }
.interests__badge:hover .ic--pop, .interests__badge:focus-visible .ic--pop { animation: pop .7s ease-in-out infinite; }
.interests__badge:hover .ic--tick .hand, .interests__badge:focus-visible .ic--tick .hand { animation: spin 2.4s linear infinite; }
.interests__badge:hover .ic--steam .steam, .interests__badge:focus-visible .ic--steam .steam { animation: steam 1.4s ease-in-out infinite; }
@keyframes steam { 0% { transform: translateY(2px); opacity: .3; } 50% { opacity: 1; } 100% { transform: translateY(-2px); opacity: .3; } }
@keyframes sway { 0%, 100% { transform: rotate(-7deg); } 50% { transform: rotate(7deg); } }
@keyframes lift { 0%, 100% { transform: translateY(2px); } 50% { transform: translateY(-3px); } }
@keyframes pop { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.1); } }

/* centre: a quiet asterisk that gives way to the name of whatever you hover */
.interests__center { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; pointer-events: none; }
.interests__mark, .interests__text { grid-area: 1 / 1; transition: opacity .3s, transform .3s var(--ease); }
/* a single quiet dot at the centre, softly pulsing, until you hover an interest */
.interests__mark { position: relative; width: 10px; height: 10px; border-radius: 50%; background: var(--purple); }
.interests__mark::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--purple); animation: ping 2.4s ease-out infinite; }
@keyframes ping { from { transform: scale(1); opacity: .45; } to { transform: scale(3.4); opacity: 0; } }
.interests.is-showing .interests__mark { transform: scale(.9); }
.interests__text { font: italic 400 26px/1.1 var(--serif); letter-spacing: -.015em; text-align: center; max-width: 140px; opacity: 0; transform: translateY(6px); }
.interests.is-showing .interests__mark { opacity: 0; }
.interests.is-showing .interests__text { opacity: 1; transform: none; }

/* facts strip: a ruled spec sheet */
.facts { display: grid; grid-template-columns: 1fr 1fr 1.6fr; border-block: 1px solid var(--rule); }
.facts__cell { display: flex; flex-direction: column; gap: 10px; padding: 24px var(--gutter); font-size: 18px; }
.facts__cell + .facts__cell { border-left: 1px solid var(--rule); }
/* one focus area at a time, sliding up in place so nothing around it moves */
.cycle { position: relative; display: block; height: 1.7em; overflow: hidden; }
.cycle__item { position: absolute; left: 0; top: 0; white-space: nowrap; color: var(--purple); transition: transform .55s var(--ease), opacity .55s; }
.cycle__item.is-out { transform: translateY(-100%); opacity: 0; }
.cycle__item.is-new { transform: translateY(100%); opacity: 0; }
.facts--home { grid-template-columns: 1fr 0.9fr 1.55fr minmax(max-content, 1.05fr); }
.facts__label { color: var(--muted); }
.facts__cell a i, .link i { font-style: normal; display: inline-block; transition: transform .3s var(--ease); }
.facts__cell > a { align-self: flex-start; transition: color .2s; }
.facts__cell > a:hover { color: var(--purple); }
.facts__cell > a:hover i, .link:hover i { transform: translate(2px, -2px); }

.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
  border: 1px solid var(--ink); border-radius: 999px; padding: 7px 18px; font-size: 15px; line-height: 1.3;
  transition: background .25s, color .25s, border-color .25s;
}
.pill:hover { background: var(--purple); border-color: var(--purple); color: #fff; }
/* social links: outline icon chips, filling purple on hover like the other chips */
.social {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--ink); color: var(--ink); transition: background .25s, color .25s, border-color .25s;
}
.social svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.social .dot { fill: currentColor; stroke: none; }
.social path { vector-effect: non-scaling-stroke; }
.social:hover, .social:focus-visible { background: var(--purple); border-color: var(--purple); color: #fff; outline: none; }

/* section bar, as on the original site */
.bar {
  display: flex; justify-content: space-between; align-items: center;
  height: 64px; padding-inline: var(--gutter);
  border-bottom: 1px solid var(--rule); margin-top: clamp(72px, 10vw, 120px); border-top: 1px solid var(--rule);
}
.facts + .reel > .bar { margin-top: clamp(96px, 12vw, 160px); }
.bar__aside { color: var(--muted); }
/* the reel's bar sticks under the nav and counts which project you're on */
.bar--sticky { position: sticky; top: 0; z-index: 9; background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); }
.bar__count { display: inline-block; font-weight: 500; color: var(--purple); font-variant-numeric: tabular-nums; transition: transform .3s var(--ease), opacity .3s; }
.bar__count.is-flipping { transform: translateY(-40%); opacity: 0; }

/* projects */
.project { max-width: 1440px; margin-inline: auto; padding: clamp(64px, 8vw, 112px) var(--gutter); }
.project + .project { border-top: 1px solid var(--hair); }
.project__title {
  font: italic 400 clamp(32px, 3.2vw, 48px)/1.05 var(--serif); letter-spacing: -.015em; color: var(--ink);
  margin-bottom: 12px;
}
/* one-line tagline: dark and medium weight, set apart from the grey description by a short rule */
.project__text .project__tag { color: var(--ink); font-size: clamp(17px, 1.3vw, 20px); font-weight: 500; line-height: 1.35; letter-spacing: -.01em; margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--hair); }
.project__row { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: center; }
/* media stage: light gradient backdrop, product floats on top */
.frame {
  --pad: clamp(18px, 6cqw, 56px);
  position: relative; aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden;
  container-type: size;
  display: grid; place-items: center;
  --g1: rgba(85, 61, 246, .22); --g2: rgba(85, 61, 246, .08); --g-base: #f3f1fb;
  background:
    radial-gradient(120% 90% at 85% 0%, var(--g1), transparent 55%),
    radial-gradient(90% 80% at 0% 100%, var(--g2), transparent 60%),
    var(--g-base);
  box-shadow: inset 0 0 0 1px rgba(30, 40, 120, .07);
}
/* two light gradients, alternating: lavender and soft blue */
.project:nth-of-type(even) .frame, .feature:nth-of-type(even) .frame { --g1: rgba(42, 120, 246, .2); --g2: rgba(42, 120, 246, .08); --g-base: #eef4fd; }
.window {
  position: relative; border-radius: 10px; overflow: hidden; background: #fff;
  box-shadow: 0 0 0 1px rgba(17, 17, 17, .06), 0 2px 4px rgba(30, 20, 90, .06), 0 24px 48px -20px rgba(30, 20, 90, .35);
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
.frame:hover .window { transform: translateY(-6px) scale(1.01); box-shadow: 0 0 0 1px rgba(17, 17, 17, .06), 0 4px 8px rgba(30, 20, 90, .06), 0 36px 64px -24px rgba(30, 20, 90, .45); }
.window video, .window img {
  display: block; width: auto; height: auto;
  max-width: calc(100cqw - 2 * var(--pad));
  max-height: calc(100cqh - 2 * var(--pad));
}
.project__text { padding-block: 8px; }
.project__num { display: block; color: var(--muted); margin-bottom: 10px; }
.project__text p { color: var(--body); font-size: clamp(16px, 1.2vw, 18px); }
.project__text p + p { margin-top: 1em; }
/* project links as chips, matching the hero buttons */
.link { display: inline-flex; align-items: center; gap: 6px; margin-top: 24px; padding: 8px 16px; border: 1px solid var(--ink); border-radius: 999px; font-size: 15px; line-height: 1.3; color: var(--ink); transition: background .25s, color .25s, border-color .25s; }
.link:hover { background: var(--purple); border-color: var(--purple); color: #fff; }
/* a project with several case studies gets one chip per case study */
.links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.links .link { margin-top: 0; }
.links__label { flex-basis: 100%; color: var(--muted); font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; }
/* a chip for a case study that isn't published yet: dashed and inert */
.link--soon, .link--soon:hover { border-style: dashed; border-color: var(--muted); background: none; color: var(--muted); cursor: default; }

/* about */
.about {
  max-width: 1440px; margin-inline: auto; padding: clamp(64px, 8vw, 112px) var(--gutter) 0;
  display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); align-items: start;
}
.about__photo { position: sticky; top: 40px; border-radius: 12px; overflow: hidden; background: var(--frame); }
.about__photo img { display: block; width: 100%; height: auto; }
.about__lead { font: italic 400 clamp(36px, 3.8vw, 56px)/1.05 var(--serif); letter-spacing: -.015em; }
.about__body { margin-top: 24px; }
.about__body p { color: var(--body); }
.about__body p + p { margin-top: 1em; }
.about__group { margin-top: clamp(48px, 6vw, 72px); }
.label { color: var(--muted); margin-bottom: 12px; }
.entries { list-style: none; border-top: 1px solid var(--hair); }
.entries li { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding: 16px 0; border-bottom: 1px solid var(--hair); }
.entries b { display: block; font-weight: 500; }
.entries span { display: block; color: var(--muted); font-size: 15px; margin-top: 2px; }
.entries time { color: var(--muted); font-size: 15px; white-space: nowrap; font-variant-numeric: tabular-nums; }

.awards { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.awards li { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 6px; padding: 18px; border-radius: 12px; background: #f6f5fb; }
.awards b { font-weight: 500; line-height: 1.3; }
.award__meta { color: var(--purple); font-size: 13px; }

/* contact */
.contact { max-width: 1440px; margin-inline: auto; padding: clamp(64px, 8vw, 112px) var(--gutter); }
.contact__line span { color: var(--purple); font-style: italic; }
.contact__line { font: 400 clamp(48px, 6.5vw, 96px)/1.02 var(--serif); letter-spacing: -.015em; margin-bottom: 32px; }

/* ---------- case study pages ---------- */
.frame--wide { aspect-ratio: 16 / 10; }
.cs { max-width: 1440px; margin-inline: auto; padding-inline: var(--gutter); }
.cs-hero { padding-block: clamp(24px, 2.5vw, 36px) clamp(56px, 7vw, 112px); }
/* header graphic: a minimal line drawing of each project's idea, beside the title */
.cs-hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); column-gap: clamp(32px, 5vw, 80px); align-items: center; }
.cs-hero > .back { grid-column: 1 / -1; justify-self: start; }
.cs-art { margin: 0; width: min(100%, 440px); justify-self: center; }
.cs-art svg { display: block; width: 100%; height: auto; overflow: visible; }
.cs-art .ln { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.cs-art .ln.faint { stroke: var(--hair); stroke-dasharray: 2 4; }
.cs-art .tn { fill: #ebe7ff; }
.cs-art .ac { fill: none; stroke: var(--purple); stroke-width: 1.5; stroke-linecap: round; }
.cs-art .dot { fill: var(--purple); }
.cs-art .dash { stroke-dasharray: 3 5; animation: march 1.2s linear infinite; }
.cs-art .pulse circle { fill: var(--purple); opacity: 0; transform-box: fill-box; transform-origin: center; animation: blip 2s ease-out infinite; }
.cs-art .pulse circle:nth-child(2) { animation-delay: .6s; }
.cs-art .pulse circle:nth-child(3) { animation-delay: 1.2s; }
.cs-art .sweep { transform-origin: 122px 100px; animation: spin 3s linear infinite; }
.cs-art .track { fill: none; stroke: #ebe7ff; stroke-width: 10; }
.cs-art .arc { fill: none; stroke: var(--purple); stroke-width: 10; stroke-linecap: round; stroke-dasharray: var(--v) 100; transform: rotate(-90deg); transform-box: fill-box; transform-origin: center; animation: fill-arc 1.6s var(--ease) both; }
.cs-art .track.sm, .cs-art .arc.sm { stroke-width: 4; }
.cs-art .score { font: 500 26px var(--sans); fill: var(--ink); letter-spacing: -.03em; }
.cs-art .badge { font: 600 8.5px var(--sans); fill: #fff; letter-spacing: .02em; }
@keyframes march { to { stroke-dashoffset: -16; } }
@keyframes blip { 0% { opacity: .5; transform: scale(1); } 100% { opacity: 0; transform: scale(3); } }
@keyframes fill-arc { from { stroke-dasharray: 0 100; } }

.back { display: inline-flex; gap: 8px; color: var(--muted); font-size: 15px; margin-bottom: clamp(36px, 5vw, 72px); transition: color .2s; }
.back:hover { color: var(--purple); }
/* marks a page as an article (blog post) rather than design highlights */
.kind { display: inline-block; margin-bottom: clamp(16px, 1.6vw, 22px); padding: 5px 12px 4px; border: 1px solid var(--purple); border-radius: 999px; color: var(--purple); font-size: 12px; font-weight: 500; line-height: 1.3; letter-spacing: .16em; text-transform: uppercase; }
.cs-hero h1 { font: italic 400 clamp(34px, 3.6vw, 56px)/1.05 var(--serif); letter-spacing: -.015em; }
.cs-hero .cs-hero__sub { max-width: 540px; margin-top: clamp(18px, 1.8vw, 26px); color: var(--body); font-size: clamp(17px, 1.25vw, 19px); }
.cs .facts { margin-inline: calc(-1 * var(--gutter)); margin-bottom: clamp(24px, 3vw, 40px); }
.cs .facts + .cs-section { border-top: 0; }

.cs-section { display: grid; grid-template-columns: 1fr 2.4fr; gap: clamp(24px, 5vw, 80px); padding-block: clamp(56px, 7vw, 96px); border-top: 1px solid var(--hair); }
.cs-section h2 { position: sticky; top: 40px; align-self: start; font-size: 13px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.cs-section__body > p { color: var(--body); font-size: clamp(17px, 1.3vw, 19px); max-width: 720px; }
.cs-section__body > p + p { margin-top: 1em; }
.cs-section__body > .lead { color: var(--ink); font: 500 clamp(24px, 2.4vw, 32px)/1.3 var(--sans); letter-spacing: -.02em; }
.cs-section__body .frame { margin-top: clamp(28px, 4vw, 48px); }
/* figure captions: small and grey with a short purple rule, so they read as labels rather than body text */
.caption, .cs-section__body > .caption { position: relative; max-width: none; margin-top: 14px; padding-left: 22px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.caption::before { content: ""; position: absolute; left: 0; top: .42em; width: 10px; height: 10px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' fill='%23553df6'%3E%3Crect x='42' y='4' width='16' height='92' rx='8'/%3E%3Crect x='42' y='4' width='16' height='92' rx='8' transform='rotate(60 50 50)'/%3E%3Crect x='42' y='4' width='16' height='92' rx='8' transform='rotate(120 50 50)'/%3E%3C/svg%3E") center / contain no-repeat; }
/* phase labels: a second line under the section name, e.g. "Phase 1 / 0 → 1" */
.cs-section h2 span { display: block; margin-top: 8px; color: var(--purple); letter-spacing: .08em; }
.frame + .frame { margin-top: 16px; }
/* placeholders for designs and copy still to come */
.frame.ph { display: grid; place-items: center; padding: 24px; border: 1px dashed rgba(85, 61, 246, .45); }
.frame.ph span { max-width: 360px; color: var(--purple); font-size: 15px; text-align: center; }
.cs-section__body .tbd { max-width: 720px; margin-top: 24px; padding: 16px 20px; border: 1px dashed rgba(85, 61, 246, .45); border-radius: 12px; background: #f7f6fc; color: var(--purple); font-size: 15px; line-height: 1.6; }
.cs-section__body .tbd b { display: block; margin-bottom: 4px; font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; }
.cs-section__body .tbd + .tbd { margin-top: 16px; }

.points { list-style: none; counter-reset: pt; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 32px; }
.points li { counter-increment: pt; padding: 24px; border-radius: 14px; background: #f7f6fc; }
.points li::before { content: counter(pt, decimal-leading-zero); display: block; color: var(--purple); font-size: 13px; font-weight: 500; margin-bottom: 28px; }
.points b { display: block; font-weight: 500; margin-bottom: 8px; }
.points p { color: var(--body); font-size: 15px; line-height: 1.6; }

.feature { margin-top: clamp(48px, 6vw, 80px); padding-top: clamp(24px, 3vw, 32px); border-top: 1px solid var(--hair); }
.feature__num { display: block; color: var(--purple); font-size: 13px; font-weight: 500; letter-spacing: .08em; }
.feature__num--label { letter-spacing: .16em; text-transform: uppercase; }
.feature h3 { font: 500 clamp(24px, 2.4vw, 32px)/1.2 var(--sans); letter-spacing: -.02em; margin: 10px 0 12px; }
.feature p { color: var(--body); max-width: 680px; }

.next { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: clamp(48px, 7vw, 96px) var(--gutter); border-top: 1px solid var(--rule); max-width: 1440px; margin-inline: auto; }
.next > span { color: var(--muted); font-size: 13px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; }
.next a { font: italic 400 clamp(32px, 4.4vw, 60px)/1.1 var(--serif); letter-spacing: -.015em; transition: color .25s; }

.next__end { white-space: nowrap; }
/* thin arrow in an outlined circle, matching the chips; fills purple on hover */
.next__arrow { display: inline-grid; place-items: center; width: .82em; height: .82em; margin-left: .2em; vertical-align: middle; position: relative; top: -.06em; border: 1px solid currentColor; border-radius: 50%; transition: background .3s, border-color .3s, color .3s; }
.next__arrow svg { width: 48%; height: 48%; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease); }
.next a:hover .next__arrow { background: var(--purple); border-color: var(--purple); color: #fff; }
.next a:hover .next__arrow svg { transform: translateX(2px); }
.next a:hover { color: var(--purple); }

.project__title a { transition: color .25s; }
.project__title a:hover { color: var(--purple); }

/* ---------- articles (case study layout + long-form bits) ---------- */
.cs-section__body ul { margin-top: 1em; padding-left: 1.2em; max-width: 720px; }
.cs-section__body li { color: var(--body); font-size: clamp(16px, 1.2vw, 18px); line-height: 1.7; }
.cs-section__body li + li { margin-top: .6em; }
.cs-section__body li::marker { color: var(--purple); }
.cs-section__body strong { color: var(--ink); font-weight: 500; }
.feature p + p { margin-top: 1em; }
.cs-section__body blockquote { margin-top: 32px; max-width: 720px; padding: 4px 0 4px 24px; border-left: 2px solid var(--purple); font-size: clamp(19px, 1.7vw, 23px); line-height: 1.5; letter-spacing: -.01em; }
.points--2 { grid-template-columns: repeat(2, 1fr); }
/* grid cards line up; the list spacing rule is for running text */
.cs-section__body .points li + li { margin-top: 0; }
/* an odd card out in a two-column grid spans the full row */
.points--2 li:last-child:nth-child(odd) { grid-column: 1 / -1; }
/* a step name beside the card number, e.g. "01 · Notice" */
.points li[data-step]::before { content: counter(pt, decimal-leading-zero) " · " attr(data-step); letter-spacing: .16em; text-transform: uppercase; font-size: 12px; }
/* let the section column shrink so wide tables scroll instead of being clipped */
.cs-section__body { min-width: 0; }
/* headline numbers, in the serif italic used for titles */
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; max-width: 720px; margin-top: 32px; }
.stats > div { padding-top: 16px; border-top: 1px solid var(--rule); }
.stats > div:only-child { grid-column: 1 / -1; }
.stats b { display: block; color: var(--purple); font: italic 400 clamp(48px, 6vw, 80px)/1 var(--serif); letter-spacing: -.02em; }
.stats span { display: block; margin-top: 8px; color: var(--body); font-size: 15px; line-height: 1.5; }
.cs-section__body .stats + p { margin-top: 36px; }
/* pages with dense product UI: less padding inside the frame, so screenshots render larger */
.cs--big-shots .frame { aspect-ratio: 17 / 10; --pad: clamp(12px, 2.5cqw, 28px); }
.cs--big-shots .frame--banner { aspect-ratio: 27 / 10; }
/* taller screens (detail views, dialogs) get a taller frame so they fill it */
.cs--big-shots .frame--tall { aspect-ratio: 3 / 2; }
.cs--big-shots .frame--dash { aspect-ratio: 5 / 4; }
/* side-by-side diagram: loose questions on the left, a laid-out path on the right */
.steps-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: clamp(28px, 4vw, 48px); }
.steps-compare__col { display: flex; flex-direction: column; padding: clamp(20px, 2.4vw, 32px); border-radius: 18px; background: #f7f6fc; }
.steps-compare__col--ai { background: linear-gradient(160deg, #f1eeff, #e9e4ff); }
.steps-compare__label { display: block; margin-bottom: 16px; color: var(--muted); font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; }
.steps-compare__col--ai .steps-compare__label { color: var(--purple); }
.steps-compare ul, .steps-compare ol { list-style: none; margin: 0; padding: 0; }
.cs-section__body .steps-compare li { margin: 0; font-size: 15px; line-height: 1.4; color: var(--ink); }
.steps-compare__loose { flex: 1; display: flex; flex-wrap: wrap; align-content: center; gap: 14px 10px; }
.steps-compare__loose li { padding: 9px 14px; border: 1px dashed #c4c4c4; border-radius: 999px; background: #fff; color: var(--body) !important; }
.steps-compare__loose li:nth-child(even) { transform: translateY(6px); }
.steps-compare__path { position: relative; display: grid; gap: 10px; }
.steps-compare__path::before { content: ""; position: absolute; left: 15px; top: 14px; bottom: 14px; width: 1px; background: var(--purple); opacity: .4; }
.steps-compare__path li { position: relative; padding: 9px 14px 9px 40px; border: 1px solid rgba(85, 61, 246, .25); border-radius: 12px; background: #fff; }
.steps-compare__path li::before { content: ""; position: absolute; left: 11px; top: 50%; width: 9px; height: 9px; margin-top: -4.5px; border-radius: 50%; background: var(--purple); }
.steps-compare__path li.is-decision { background: var(--purple); border-color: var(--purple); color: #fff; font-weight: 500; }
.steps-compare__path li.is-decision::before { background: #fff; }
@media (max-width: 600px) { .steps-compare { grid-template-columns: 1fr; } }
/* dense UI loses sharpness when scaled, so the hover lift skips the zoom here */
.cs--big-shots .frame:hover .window { transform: translateY(-4px); }
/* steps of a flow shown in one frame, cross-fading on their own; labels below show progress and switch steps */
.slides { display: grid; }
.slides img { grid-area: 1 / 1; opacity: 0; transition: opacity .8s var(--ease); }
.slides img.is-active { opacity: 1; }
/* full screen viewer for case study and article media */
.zoomable { cursor: zoom-in; }
.zoomable:focus-visible { outline: 2px solid var(--purple); outline-offset: 4px; }
.is-locked, .is-locked body { overflow: hidden; }
.lightbox {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center;
  padding: clamp(16px, 4vw, 56px); background: rgba(12, 10, 30, .92); backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .25s var(--ease); cursor: zoom-out;
}
.lightbox.is-open { opacity: 1; }
.lightbox img, .lightbox video { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; border-radius: 10px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .6); }
.lightbox video { cursor: default; }
.lightbox__close {
  position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .5); background: none; color: #fff; font: 300 26px/1 var(--sans); cursor: pointer;
  transition: background .2s, border-color .2s;
}
.lightbox__close:hover, .lightbox__close:focus-visible { background: var(--purple); border-color: var(--purple); outline: none; }
@media (prefers-reduced-motion: reduce) { .lightbox { transition: none; } }
.slide-steps { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: clamp(28px, 4vw, 48px); }
.cs-section__body .slide-steps + .frame { margin-top: 14px; }
.slide-steps button { position: relative; padding: 0 0 8px; border: 0; background: none; color: var(--muted); font: 500 12px var(--sans); letter-spacing: .16em; text-transform: uppercase; cursor: pointer; }
.slide-steps button::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--hair); }
.slide-steps button.is-active { color: var(--purple); }
.slide-steps button.is-active::after { background: linear-gradient(var(--purple), var(--purple)) left / 0 100% no-repeat, var(--hair); animation: step-fill 4.5s linear forwards; }
@keyframes step-fill { to { background-size: 100% 100%, auto; } }
@media (prefers-reduced-motion: reduce) { .slide-steps button.is-active::after { animation: none; background: var(--purple); } }
/* the three complaints, styled as overheard speech bubbles stepping across the column */
.complaints { display: flex; flex-direction: column; gap: 14px; margin-bottom: 36px; max-width: 720px; }
.complaints p {
  position: relative; align-self: flex-start; padding: 14px 24px; border-radius: 22px 22px 22px 6px;
  background: #f6f5fb; font-size: clamp(22px, 2.4vw, 32px); font-weight: 500; line-height: 1.2; letter-spacing: -.025em; color: var(--ink) !important;
}
.complaints p::before { content: "“"; position: absolute; left: -.1em; top: -.35em; font-size: 2.2em; line-height: 1; color: var(--purple); opacity: .9; }
.complaints p:nth-child(2) { margin-left: 12%; }
.complaints p:nth-child(3) { margin-left: 24%; }
.complaints b { font-weight: 500; color: var(--purple); }
@media (max-width: 480px) { .complaints p:nth-child(2) { margin-left: 6%; } .complaints p:nth-child(3) { margin-left: 12%; } }

.figure { margin-top: clamp(24px, 3vw, 36px); max-width: 720px; }
.figure img, .figure video { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--hair); }
.figure--sm { max-width: 340px; }
.figure figcaption { margin-top: 10px; color: var(--muted); font-size: 14px; }

.source-note { margin-top: 40px !important; font-size: 15px !important; color: var(--muted) !important; }
.source-note a { color: var(--purple); }

/* footer */
.footer { display: flex; justify-content: space-between; padding: 24px var(--gutter); border-top: 1px solid var(--rule); }
.footer a:hover { color: var(--purple); }

/* tap-to-play fallback, shown only if the phone blocks autoplay */
.window, .figure { position: relative; }
.tap-play {
  position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(255, 255, 255, .92); box-shadow: 0 8px 24px -8px rgba(30, 20, 90, .45);
}
.tap-play::after { content: ""; position: absolute; left: 22px; top: 18px; border-style: solid; border-width: 10px 0 10px 16px; border-color: transparent transparent transparent var(--ink); }

/* reveal */
.fade { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease) var(--d, 0s), transform .8s var(--ease) var(--d, 0s); }
.fade.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fade { opacity: 1; transform: none; transition: none; }
  .hero__name .ch { opacity: 1; translate: none; animation: none; }
  .hero::before { animation: none; }
  .hero__name sup svg { transition: none; }
  .cs-art *, .interests__orbit, .interests__spin, .interests__mark::after, .ic, .ic .hand { animation: none !important; }
}

/* responsive */
@media (min-width: 1100px) {
  /* landing screen: the hero fills the first view, with the details strip resting at the bottom */
  .hero { display: flex; flex-direction: column; justify-content: center; min-height: calc(100svh - 72px - 150px); padding-block: clamp(72px, 10vh, 140px); }
  .hero__note { margin-top: clamp(28px, 3.2vw, 48px); }
  .interests { --r: 148px; width: 360px; }
  .interests__badge { width: 68px; height: 68px; left: -34px; top: -34px; }
  /* leave room on the right for the interests graphic */
  .hero__name { font-size: min(212px, calc((min(100vw, 1440px) - 2 * var(--gutter) - 420px) / 4.8)); }
  .interests { position: absolute; right: var(--gutter); top: 50%; translate: 0 -50%; }
  /* the intro can run wide, stopping short of the interests ring */
  .hero__row { grid-template-columns: minmax(0, min(820px, calc(min(100vw, 1440px) - 2 * var(--gutter) - 440px))); }
}
/* smaller screens: the interests graphic leads, then the name and intro */
@media (max-width: 1099px) {
  .hero { display: flex; flex-direction: column; padding-top: clamp(40px, 7vh, 64px); }
  .hero__row { display: contents; }
  /* badges overhang the ring by ~7px, so the bottom margin is generous */
  .interests { order: -1; align-self: center; margin: 0 0 clamp(56px, 12vw, 88px); }
}
@media (max-width: 860px) {
  .cs-hero { grid-template-columns: 1fr; }
  /* phones/tablets: back link, then the illustration, then the title */
  .cs-hero > .back { order: 0; }
  .cs-art { order: 1; width: min(100%, 300px); margin: 0 0 32px; }
  .cs-hero__text { order: 2; }
  .hero__row { grid-template-columns: 1fr; }
  .interests { --r: 96px; width: 240px; }
  .cs-section { grid-template-columns: 1fr; }
  .cs-section h2 { position: static; }
  .points { grid-template-columns: 1fr; }
  .next { flex-direction: column; align-items: flex-start; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts__cell--links, .facts__cell:nth-child(3) { grid-column: 1 / -1; border-left: 0 !important; border-top: 1px solid var(--rule); }
  .project__row, .about { grid-template-columns: 1fr; }
  .about__photo { position: static; max-width: 420px; }
  .project__text { position: static; }
}
@media (max-width: 480px) {
  .points--2 { grid-template-columns: 1fr; }
  .awards { grid-template-columns: 1fr; }
  .facts__cell { font-size: 16px; padding-block: 18px; }
}

/* phones: more breathing room at the top of every page */
@media (max-width: 600px) {
  .hero { padding-top: clamp(40px, 6vh, 56px); padding-bottom: 72px; }
  .hero__note { margin-top: 28px; line-height: 1.65; }
  .cs-hero { padding-top: 32px; padding-bottom: 72px; }
  .cs-hero > .back { margin-bottom: 40px; }
  .cs-art { margin-bottom: 40px; }
  .cs-hero .cs-hero__sub { margin-top: 20px; line-height: 1.7; }
}

/* phones: smaller chips with more room between them */
@media (max-width: 600px) {
  .pills { gap: 12px; }
  .pill { padding: 5px 14px; font-size: 14px; }
  .social { width: 40px; height: 40px; }
  .social svg { width: 22px; height: 22px; }
}

/* phones: the interests sit still on a soft wavy line instead of orbiting */
@media (max-width: 600px) {
  .interests { --r: 0px; width: 100%; height: 120px; margin-bottom: 36px !important; background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%20100%2040%22%20preserveAspectRatio%3D%22none%22%3E%3Cpath%20d%3D%22M0.0%2034.00%20L0.5%2033.96%20L1.0%2033.83%20L1.5%2033.61%20L2.0%2033.31%20L2.5%2032.93%20L3.0%2032.47%20L3.5%2031.94%20L4.0%2031.33%20L4.5%2030.65%20L5.0%2029.90%20L5.5%2029.09%20L6.0%2028.23%20L6.5%2027.31%20L7.0%2026.36%20L7.5%2025.36%20L8.0%2024.33%20L8.5%2023.27%20L9.0%2022.19%20L9.5%2021.10%20L10.0%2020.00%20L10.5%2018.90%20L11.0%2017.81%20L11.5%2016.73%20L12.0%2015.67%20L12.5%2014.64%20L13.0%2013.64%20L13.5%2012.69%20L14.0%2011.77%20L14.5%2010.91%20L15.0%2010.10%20L15.5%209.35%20L16.0%208.67%20L16.5%208.06%20L17.0%207.53%20L17.5%207.07%20L18.0%206.69%20L18.5%206.39%20L19.0%206.17%20L19.5%206.04%20L20.0%206.00%20L20.5%206.04%20L21.0%206.17%20L21.5%206.39%20L22.0%206.69%20L22.5%207.07%20L23.0%207.53%20L23.5%208.06%20L24.0%208.67%20L24.5%209.35%20L25.0%2010.10%20L25.5%2010.91%20L26.0%2011.77%20L26.5%2012.69%20L27.0%2013.64%20L27.5%2014.64%20L28.0%2015.67%20L28.5%2016.73%20L29.0%2017.81%20L29.5%2018.90%20L30.0%2020.00%20L30.5%2021.10%20L31.0%2022.19%20L31.5%2023.27%20L32.0%2024.33%20L32.5%2025.36%20L33.0%2026.36%20L33.5%2027.31%20L34.0%2028.23%20L34.5%2029.09%20L35.0%2029.90%20L35.5%2030.65%20L36.0%2031.33%20L36.5%2031.94%20L37.0%2032.47%20L37.5%2032.93%20L38.0%2033.31%20L38.5%2033.61%20L39.0%2033.83%20L39.5%2033.96%20L40.0%2034.00%20L40.5%2033.96%20L41.0%2033.83%20L41.5%2033.61%20L42.0%2033.31%20L42.5%2032.93%20L43.0%2032.47%20L43.5%2031.94%20L44.0%2031.33%20L44.5%2030.65%20L45.0%2029.90%20L45.5%2029.09%20L46.0%2028.23%20L46.5%2027.31%20L47.0%2026.36%20L47.5%2025.36%20L48.0%2024.33%20L48.5%2023.27%20L49.0%2022.19%20L49.5%2021.10%20L50.0%2020.00%20L50.5%2018.90%20L51.0%2017.81%20L51.5%2016.73%20L52.0%2015.67%20L52.5%2014.64%20L53.0%2013.64%20L53.5%2012.69%20L54.0%2011.77%20L54.5%2010.91%20L55.0%2010.10%20L55.5%209.35%20L56.0%208.67%20L56.5%208.06%20L57.0%207.53%20L57.5%207.07%20L58.0%206.69%20L58.5%206.39%20L59.0%206.17%20L59.5%206.04%20L60.0%206.00%20L60.5%206.04%20L61.0%206.17%20L61.5%206.39%20L62.0%206.69%20L62.5%207.07%20L63.0%207.53%20L63.5%208.06%20L64.0%208.67%20L64.5%209.35%20L65.0%2010.10%20L65.5%2010.91%20L66.0%2011.77%20L66.5%2012.69%20L67.0%2013.64%20L67.5%2014.64%20L68.0%2015.67%20L68.5%2016.73%20L69.0%2017.81%20L69.5%2018.90%20L70.0%2020.00%20L70.5%2021.10%20L71.0%2022.19%20L71.5%2023.27%20L72.0%2024.33%20L72.5%2025.36%20L73.0%2026.36%20L73.5%2027.31%20L74.0%2028.23%20L74.5%2029.09%20L75.0%2029.90%20L75.5%2030.65%20L76.0%2031.33%20L76.5%2031.94%20L77.0%2032.47%20L77.5%2032.93%20L78.0%2033.31%20L78.5%2033.61%20L79.0%2033.83%20L79.5%2033.96%20L80.0%2034.00%20L80.5%2033.96%20L81.0%2033.83%20L81.5%2033.61%20L82.0%2033.31%20L82.5%2032.93%20L83.0%2032.47%20L83.5%2031.94%20L84.0%2031.33%20L84.5%2030.65%20L85.0%2029.90%20L85.5%2029.09%20L86.0%2028.23%20L86.5%2027.31%20L87.0%2026.36%20L87.5%2025.36%20L88.0%2024.33%20L88.5%2023.27%20L89.0%2022.19%20L89.5%2021.10%20L90.0%2020.00%20L90.5%2018.90%20L91.0%2017.81%20L91.5%2016.73%20L92.0%2015.67%20L92.5%2014.64%20L93.0%2013.64%20L93.5%2012.69%20L94.0%2011.77%20L94.5%2010.91%20L95.0%2010.10%20L95.5%209.35%20L96.0%208.67%20L96.5%208.06%20L97.0%207.53%20L97.5%207.07%20L98.0%206.69%20L98.5%206.39%20L99.0%206.17%20L99.5%206.04%20L100.0%206.00%22%20fill%3D%22none%22%20stroke%3D%22%23cfcbe0%22%20stroke-width%3D%221.2%22%20stroke-dasharray%3D%223%204%22%20vector-effect%3D%22non-scaling-stroke%22/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
  .interests::before, .interests__center { display: none; }
  .interests__orbit, .interests__spin { animation: none !important; }
  .interests__item { transform: none; left: var(--x); top: var(--y); }
  .interests__item:nth-child(1) { --x: 10%; --y: 50%; }
  .interests__item:nth-child(2) { --x: 30%; --y: 50%; }
  .interests__item:nth-child(3) { --x: 50%; --y: 50%; }
  .interests__item:nth-child(4) { --x: 70%; --y: 50%; }
  .interests__item:nth-child(5) { --x: 90%; --y: 50%; }
  .interests__badge { width: 44px; height: 44px; left: -22px; top: -22px; }
  .interests__badge:hover, .interests__badge:focus-visible { transform: none; }
  .interests__badge .ic, .interests__badge .ic * { animation: none !important; }
  .ic { width: 22px; height: 22px; }
}
.cs--big-shots .frame--photo { aspect-ratio: auto; container-type: normal; display: block; max-width: 760px; padding: clamp(16px, 3vw, 40px); }
.cs--big-shots .frame--photo .window { width: 100%; }
.cs--big-shots .frame--photo .window img { width: 100%; max-width: none; max-height: none; }
.cs-section__body .caption + .stats { margin-top: clamp(24px, 3vw, 36px); }

/* password gate */
html.is-gated, html.is-gated body { overflow: hidden; }
html.is-gated body > :not(.gate) { display: none !important; }
.gate {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px;
  background:
    radial-gradient(70% 60% at 85% 0%, rgba(85, 61, 246, .16), transparent 60%),
    radial-gradient(60% 60% at 0% 100%, rgba(42, 120, 246, .1), transparent 60%),
    var(--bg);
}
.gate__card { width: min(440px, 100%); }
.gate__logo { width: 28px; height: 28px; color: var(--purple); margin-bottom: 28px; animation: gate-spin 14s linear infinite; }
@keyframes gate-spin { to { transform: rotate(360deg); } }
.gate__title { font: 400 clamp(40px, 6vw, 56px)/1.05 var(--serif); font-style: italic; letter-spacing: -.01em; }
.gate__text { margin-top: 14px; color: var(--body); }
.gate__label { display: block; margin-top: 32px; margin-bottom: 8px; font-size: 13px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.gate__row { display: flex; gap: 10px; }
.gate__input {
  flex: 1; min-width: 0; height: 48px; padding: 0 16px; border: 1px solid var(--ink); border-radius: 999px;
  font: 400 16px var(--sans); color: var(--ink); background: #fff; outline: none; transition: box-shadow .2s;
}
.gate__input:focus { box-shadow: 0 0 0 3px rgba(85, 61, 246, .25); border-color: var(--purple); }
.gate__btn {
  height: 48px; padding: 0 22px; border: 0; border-radius: 999px; cursor: pointer;
  font: 500 15px var(--sans); color: #fff; background: var(--ink); transition: background .2s;
}
.gate__btn:hover { background: var(--purple); }
.gate__error { min-height: 1.7em; margin-top: 10px; font-size: 14px; color: #c62828; }
.gate__help { font-size: 14px; color: var(--muted); }
.gate__help a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.gate__help a:hover { color: var(--purple); }
.is-shaking { animation: gate-shake .4s; }
@keyframes gate-shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
@media (prefers-reduced-motion: reduce) { .gate__logo, .is-shaking { animation: none; } }
@media (max-width: 480px) { .gate__row { flex-direction: column; } .gate__input, .gate__btn { flex: none; width: 100%; } }

/* "what I designed": minimal canvas-opening loop */
.canvas-demo { margin: clamp(24px, 3vw, 36px) 0 0; padding: clamp(16px, 4vw, 40px); border-radius: 18px;
  background: radial-gradient(120% 90% at 85% 0%, rgba(85, 61, 246, .2), transparent 55%), radial-gradient(90% 80% at 0% 100%, rgba(85, 61, 246, .08), transparent 60%), #f3f1fb; }
.canvas-demo svg { display: block; width: 100%; height: auto; max-width: 640px; margin: 0 auto; overflow: visible; }
.canvas-demo .ln { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.canvas-demo .faint-c { stroke: #c9c6d8; }
.canvas-demo .tn { fill: #ebe7ff; }
.canvas-demo .dot { fill: var(--purple); }
.canvas-demo .ac { fill: none; stroke: var(--purple); stroke-width: 1.5; stroke-linecap: round; }
.canvas-demo .dash { stroke-dasharray: 3 5; animation: march 1.2s linear infinite; }
.canvas-demo .cd-win { fill: #fff; stroke: var(--ink); stroke-width: 1.5; filter: drop-shadow(0 18px 24px rgba(30, 20, 90, .14)); }
.canvas-demo .ln.nd { fill: #fff; }
.canvas-demo .cd-chip { animation: cd-chip 6s var(--ease) infinite; }
.canvas-demo .cd-ripple { fill: none; stroke: var(--purple); stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; animation: cd-ripple 6s ease-out infinite; }
.canvas-demo .cd-canvas { animation: cd-open 6s var(--ease) infinite; }
@keyframes cd-chip { 0%, 22% { fill: transparent; stroke: var(--ink); } 26%, 88% { fill: #ebe7ff; stroke: var(--purple); } 96%, 100% { fill: transparent; stroke: var(--ink); } }
@keyframes cd-ripple { 0%, 20% { opacity: 0; transform: scale(.4); } 23% { opacity: 1; } 32%, 100% { opacity: 0; transform: scale(2.6); } }
@keyframes cd-open { 0%, 26% { opacity: 0; transform: translateX(28px); } 38%, 86% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; transform: translateX(0); } }
@media (prefers-reduced-motion: reduce) {
  .canvas-demo .cd-canvas, .canvas-demo .cd-chip, .canvas-demo .cd-ripple, .canvas-demo .dash { animation: none; }
  .canvas-demo .cd-chip { fill: #ebe7ff; stroke: var(--purple); }
}
.cs-art .nd { fill: #fff; }
.cs-art .pulse-ring { fill: none; stroke: var(--purple); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; animation: ring 2s ease-out infinite; }
@keyframes ring { 0% { opacity: .8; transform: scale(1); } 100% { opacity: 0; transform: scale(2.2); } }
