/* ==========================================================================
   KarmaTECH — studio site
   Structure: chapter gates. The studio's night violet frames six app "worlds";
   the page ground shifts to each world's tint as you scroll through it.
   ========================================================================== */

:root {
  --night: #0c0818;        /* studio ground, matched to the 3D tile render */
  --plum: #171026;         /* raised surfaces */
  --ink: #f2eefb;          /* primary text */
  --haze: #a8a0c0;         /* secondary text */
  --uv: #8a5cff;           /* ultraviolet: actions and focus */
  --lilac: #cdbbff;        /* light violet: the partner block, link hovers */
  --halo: #f5a9f0;         /* the karma dot: live indicators only */
  --line: rgba(205, 187, 255, 0.13);

  --display: "Unbounded", "Instrument Sans", system-ui, sans-serif;
  --body: "Instrument Sans", system-ui, -apple-system, sans-serif;

  --wrap: 1320px;
  --gutter: clamp(18px, 4vw, 48px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --spring: cubic-bezier(0.34, 1.36, 0.5, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  margin: 0;
  background-color: var(--world, var(--night));
  transition: background-color 1.1s var(--ease);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
:focus-visible { outline: 2px solid var(--lilac); outline-offset: 4px; border-radius: 8px; }
::selection { background: var(--uv); color: #fff; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -0.04em; line-height: 1; margin: 0; text-wrap: balance; }
p { margin: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: #000; padding: 10px 16px; border-radius: 999px; transition: top .2s; }
.skip:focus { top: 16px; }
.grain {
  pointer-events: none; position: fixed; inset: 0; z-index: 90; opacity: .06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- shared controls ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; height: 52px; padding: 0 26px; border-radius: 999px;
  background: var(--ink); color: #140b24; font-weight: 600; font-size: 16px; white-space: nowrap;
  transition: background-color .25s, transform .4s var(--ease), box-shadow .4s;
}
.btn:hover { background: #fff; transform: translateY(-2px); box-shadow: 0 16px 40px -14px rgba(138, 92, 255, .9); }
.btn-dark { background: #140b24; color: var(--ink); }
.btn-dark:hover { background: #000; box-shadow: 0 16px 40px -14px rgba(20, 11, 36, .8); }
.text-link { font-weight: 500; border-bottom: 1px solid rgba(242, 238, 251, .35); padding-bottom: 2px; transition: color .2s, border-color .2s; }
.text-link:hover { color: var(--lilac); border-color: var(--lilac); }

/* ---------- Dynamic Island navigation ---------- */
.island-wrap { position: fixed; top: 12px; left: 0; right: 0; z-index: 60; display: flex; justify-content: center; pointer-events: none; }
.island {
  pointer-events: auto; position: relative; background: #000; color: #fff; border-radius: 27px; overflow: hidden;
  box-shadow: 0 14px 40px -12px rgba(0, 0, 0, .9), inset 0 0 0 1px rgba(255, 255, 255, .07);
  transition: width .6s var(--spring), border-radius .5s var(--ease);
}
.island-bar { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 7px 0 9px; white-space: nowrap; width: max-content; }
.island-id { display: flex; align-items: center; gap: 10px; min-width: 0; }
.island-icon { width: 28px; height: 28px; flex: none; border-radius: 8px; overflow: hidden; }
.island-icon img { width: 100%; height: 100%; object-fit: cover; transition: opacity .3s, transform .5s var(--spring); }
.island-label { font-family: var(--display); font-size: 13.5px; font-weight: 500; letter-spacing: -0.01em; transition: opacity .3s; }
.island-meta { display: none; align-items: center; gap: 7px; font-size: 13px; color: var(--haze); }
.island.live .island-meta { display: inline-flex; }
.island-meta::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--halo); box-shadow: 0 0 10px var(--halo); animation: pip 2s ease-in-out infinite; }
@keyframes pip { 50% { opacity: .35; } }
.island.swap .island-icon img, .island.swap .island-label { opacity: 0; }
.island.swap .island-icon img { transform: scale(.6); }
.island.open .island-bar { width: 100%; }
.island-toggle { margin-left: auto; width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, .09); display: grid; place-content: center; gap: 4px; transition: background .2s; }
.island-toggle:hover { background: rgba(255, 255, 255, .16); }
.island-toggle i { display: block; width: 13px; height: 1.6px; border-radius: 2px; background: #fff; transition: transform .35s var(--ease); }
.island.open .island-toggle i:first-child { transform: translateY(2.8px) rotate(45deg); }
.island.open .island-toggle i:last-child { transform: translateY(-2.8px) rotate(-45deg); }
.island-menu { display: flex; flex-direction: column; padding: 0 10px; max-height: 0; opacity: 0; visibility: hidden; transition: max-height .55s var(--ease), opacity .3s, padding .4s var(--ease), visibility .55s; }
.island.open { border-radius: 30px; }
.island.open .island-menu { max-height: 360px; opacity: 1; visibility: visible; padding: 6px 10px 14px; }
.island-menu a { font-family: var(--display); font-size: 22px; font-weight: 500; letter-spacing: -0.03em; padding: 9px 10px; border-radius: 14px; transition: background .2s; }
.island-menu a:hover { background: rgba(255, 255, 255, .07); }
.island-menu .island-mail { font-family: var(--body); font-size: 15px; color: var(--lilac); margin-top: 6px; letter-spacing: 0; }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: grid; grid-template-rows: 1fr auto; overflow: hidden; isolation: isolate;
  padding: 70px 0 clamp(36px, 6vh, 64px);
}
.stage { position: relative; display: grid; place-items: center; min-height: 0; }
.stage-glow {
  position: absolute; left: 50%; top: 50%; width: 120vmin; aspect-ratio: 1; transform: translate(-50%, -46%); z-index: -1;
  background: radial-gradient(closest-side, rgba(110, 66, 230, .30), rgba(110, 66, 230, .08) 55%, transparent 75%);
}
.tile {
  --ts: min(66vh, 50vw, 700px);
  position: relative; z-index: 2; width: var(--ts); aspect-ratio: 1; margin: -4% 0 -7%;
  transform: translateY(var(--hy, 0px)) scale(var(--hs, 1)) perspective(1200px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  will-change: transform;
}
.tile img { width: 100%; height: 100%; mask-image: radial-gradient(closest-side, #000 70%, transparent 99%); -webkit-mask-image: radial-gradient(closest-side, #000 70%, transparent 99%); }
.stars { position: absolute; left: 0; right: 0; top: -70px; height: calc(100% + 70px); width: 100%; z-index: -2; pointer-events: none; }
.orbit { position: absolute; inset: 0; pointer-events: none; }
.orbit-path { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; z-index: 1; pointer-events: none; }
.orbit-path.front { z-index: 3; }
.orbit-path .base { fill: none; stroke: rgba(205, 187, 255, .26); stroke-width: 1; stroke-dasharray: 1; stroke-dashoffset: 1; }
.orbit-path .comet { fill: none; stroke: #f7dcff; stroke-width: 1.8; stroke-linecap: round; stroke-dasharray: .07 .93; opacity: 0; animation: comet var(--dur, 9s) linear infinite; animation-direction: var(--dir, normal); }
.orbit-path .comet.glow { stroke: #e9a6ff; stroke-width: 8; }
.hero.loaded .orbit-path .base { animation: drawOrbit 2.2s var(--ease) .55s forwards; }
.hero.loaded .orbit-path .comet { opacity: 1; transition: opacity 1.2s ease 2.2s; }
.hero.loaded .orbit-path .comet.glow { opacity: .22; }
@keyframes drawOrbit { to { stroke-dashoffset: 0; } }
@keyframes comet { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -1; } }

.orb { position: absolute; left: 0; top: 0; width: var(--s, 68px); aspect-ratio: 1; pointer-events: auto; will-change: transform, opacity, filter; -webkit-tap-highlight-color: transparent; }
.orb-img {
  display: block; width: 100%; height: 100%; border-radius: 23%; overflow: hidden; position: relative;
  box-shadow: 0 24px 50px -18px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .12);
  transition: transform .5s var(--spring), box-shadow .4s;
}
.orb-img img { width: 100%; height: 100%; object-fit: cover; }
.orb-img::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(155deg, rgba(255, 255, 255, .22), transparent 45%); }
.orb-tip {
  position: absolute; left: 50%; top: calc(100% + 10px); transform: translate(-50%, -4px); white-space: nowrap; pointer-events: none;
  background: #000; color: #fff; font-family: var(--display); font-size: 12px; font-weight: 500; letter-spacing: -0.01em;
  padding: 6px 11px; border-radius: 99px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1);
  opacity: 0; transition: opacity .25s, transform .4s var(--spring);
}
.orb:hover .orb-img { transform: scale(1.14); box-shadow: 0 24px 50px -16px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .2), 0 0 40px -6px rgba(245, 169, 240, .7); }
.orb:hover .orb-tip { opacity: 1; transform: translate(-50%, 0); }

/* the karma dot on the tile breathes */
.karma-dot {
  position: absolute; left: 57%; top: 48.2%; width: 15%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 205, 248, .6), rgba(245, 169, 240, .2) 45%, transparent 72%);
  mix-blend-mode: screen; opacity: 0;
}
.hero.loaded .karma-dot { animation: karma 3.8s ease-in-out 1.6s infinite; }
@keyframes karma { 0%, 100% { opacity: .15; scale: .8; } 50% { opacity: 1; scale: 1.15; } }

.hero-copy {
  position: relative; z-index: 4; width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter);
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 48px; align-items: end;
}
.hero-title { font-size: clamp(38px, 4.9vw, 80px); font-weight: 600; letter-spacing: -0.05em; line-height: .98; }
.hero-title .ln { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-title .ln > span { display: inline-block; }
@media (min-width: 1001px) { .hero-title .ln > span { white-space: nowrap; } }
.hero-side { display: grid; gap: 26px; padding-bottom: 6px; }
.hero-side p { color: #cbc4de; font-size: 18px; max-width: 40ch; }
.hero-actions { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }

/* hero load sequence: the tile surfaces, the orbit draws, the type rises */
.js .tile { opacity: 0; scale: .9; filter: blur(14px); }
.js .hero-title .ln > span { transform: translateY(105%); }
.js .hero-side { opacity: 0; transform: translateY(14px); }
.hero.loaded .tile { opacity: 1; scale: 1; filter: none; transition: opacity 1.2s var(--ease), scale 1.6s var(--ease), filter 1.2s var(--ease); }
.hero.loaded .hero-title .ln > span { transform: none; transition: transform 1.1s var(--ease) .35s; }
.hero.loaded .hero-title .ln:nth-child(2) > span { transition-delay: .47s; }
.hero.loaded .hero-side { opacity: 1; transform: none; transition: opacity 1s var(--ease) .75s, transform 1s var(--ease) .75s; }

/* ---------- manifesto ---------- */
.manifesto { padding: clamp(110px, 18vh, 200px) 0 clamp(90px, 14vh, 160px); }
.manifesto p { font-family: var(--display); font-weight: 500; font-size: clamp(25px, 3.3vw, 50px); line-height: 1.18; letter-spacing: -0.035em; max-width: 26ch; }
.manifesto .w { opacity: .16; transition: opacity .25s; }
.no-js .manifesto .w, .reduced .manifesto .w { opacity: 1; }

/* ---------- index ledger ---------- */
.index { padding-bottom: clamp(90px, 14vh, 160px); }
.index-head { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 40px; align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
.index-head h2 { font-size: clamp(32px, 4.6vw, 70px); }
.index-head p { color: var(--haze); max-width: 36ch; }
.ledger { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.ledger a {
  display: grid; grid-template-columns: 44px minmax(0, 13rem) minmax(0, 1fr) auto; gap: 24px; align-items: center;
  padding: 18px 14px; border-top: 1px solid var(--line); border-radius: 4px;
  transition: background-color .35s, padding .45s var(--ease);
}
.ledger img { width: 44px; height: 44px; border-radius: 11px; transition: transform .45s var(--spring); }
.ledger strong { font-family: var(--display); font-weight: 500; font-size: clamp(18px, 1.7vw, 24px); letter-spacing: -0.03em; transition: color .3s; }
.ledger span { color: var(--haze); }
.ledger em { font-style: normal; color: var(--haze); font-size: 15px; text-align: right; }
.ledger a:hover { background: color-mix(in srgb, var(--c) 9%, transparent); padding-left: 22px; }
.ledger a:hover img { transform: rotate(-8deg) scale(1.08); }
.ledger a:hover strong { color: color-mix(in srgb, var(--c) 70%, #fff); }

/* ---------- chapters ---------- */
.chapter { position: relative; min-height: 100svh; display: flex; align-items: center; padding: clamp(110px, 16vh, 180px) 0; overflow: hidden; isolation: isolate; }
.ch-name {
  position: absolute; top: clamp(40px, 7vh, 90px); left: 0; z-index: -1; white-space: nowrap; pointer-events: none; user-select: none;
  font-family: var(--display); font-weight: 700; font-size: clamp(110px, 21vw, 340px); letter-spacing: -0.065em; line-height: .8;
  color: color-mix(in srgb, var(--c) 13%, transparent);
  transform: translateX(var(--shift, 4vw));
  will-change: transform;
}
.chapter::after {
  content: ""; position: absolute; z-index: -1; right: -10%; bottom: -20%; width: 70vw; aspect-ratio: 1; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--c) 16%, transparent), transparent 70%);
}
.ch-web::after { right: auto; left: -12%; }
.ch-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.25fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.ch-web .ch-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.ch-copy { display: grid; gap: 22px; justify-items: start; max-width: 520px; }
.ch-icon { width: 72px; height: 72px; border-radius: 18px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 22px 44px -14px color-mix(in srgb, var(--c) 70%, transparent); }
.ch-copy h2 { font-size: clamp(36px, 4.2vw, 62px); }
.ch-copy h2 span { display: block; font-family: var(--body); font-size: 17px; font-weight: 500; letter-spacing: 0; color: var(--haze); margin-top: 12px; line-height: 1.4; }
.rating { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--haze); margin-top: -6px; }
.stars { display: inline-flex; gap: 2px; color: #fbbf24; }
.stars svg { width: 15px; height: 15px; }
.ch-lead { font-size: clamp(17px, 1.35vw, 19.5px); color: #e4def3; max-width: 40ch; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.facts li { position: relative; padding-left: 26px; color: var(--haze); font-size: 16px; }
.facts li::before { content: ""; position: absolute; left: 0; top: .78em; width: 14px; height: 2px; border-radius: 2px; background: var(--c); }
.store {
  display: inline-flex; align-items: center; gap: 12px; height: 56px; padding: 0 22px 0 18px; border-radius: 16px; margin-top: 6px;
  background: #fff; color: #000; transition: transform .4s var(--ease), box-shadow .4s;
}
.store:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -14px color-mix(in srgb, var(--c) 80%, transparent); }
.store svg { width: 24px; height: 24px; }
.store span { display: flex; flex-direction: column; line-height: 1.1; font-weight: 600; font-size: 17px; letter-spacing: -0.01em; }
.store small { font-size: 11px; font-weight: 500; }
.visit {
  display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 22px; border-radius: 999px; margin-top: 6px; font-weight: 600;
  border: 1px solid color-mix(in srgb, var(--c) 60%, transparent); background: color-mix(in srgb, var(--c) 10%, transparent);
  transition: background-color .3s, border-color .3s;
}
.visit svg { width: 18px; height: 18px; transition: transform .4s var(--ease); }
.visit:hover { background: color-mix(in srgb, var(--c) 22%, transparent); border-color: var(--c); }
.visit:hover svg { transform: translate(3px, -3px); }

/* the reel: App Store screenshots that drift sideways with the scroll and bleed off the edge */
.reel { display: flex; gap: clamp(12px, 1.4vw, 20px); align-items: flex-start; transform: translateX(var(--reel, 0px)); will-change: transform; }
.reel figure {
  flex: none; margin: 0; width: clamp(150px, 15.5vw, 232px); aspect-ratio: 600 / 1300; border-radius: 24px; overflow: hidden; background: var(--plum);
  box-shadow: 0 40px 80px -36px rgba(0, 0, 0, .95), 0 0 0 1px rgba(255, 255, 255, .09);
}
.reel figure:nth-child(even) { margin-top: clamp(40px, 6vw, 90px); }
.reel img { width: 100%; height: 100%; object-fit: cover; }

/* the device: web products shown in a phone, since they live in the mobile browser */
.device {
  --w: clamp(230px, 23vw, 320px);
  position: relative; justify-self: center; width: var(--w); padding: 10px; border-radius: calc(var(--w) * .15);
  background: linear-gradient(150deg, #2b2338, #0e0a15 60%);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .13), 0 70px 120px -50px color-mix(in srgb, var(--c) 60%, transparent), 0 40px 80px -30px #000;
  transform: translateY(var(--lift, 0px)) rotate(-3deg);
  will-change: transform;
}
.screen { position: relative; border-radius: calc(var(--w) * .12); overflow: hidden; aspect-ratio: 780 / 1688; background: #000; }
.screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* ---------- studio ---------- */
.studio { padding: clamp(120px, 18vh, 200px) 0 clamp(80px, 12vh, 140px); }
.studio-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
.studio-intro { display: grid; gap: 26px; position: sticky; top: 110px; }
.studio-intro h2 { font-size: clamp(32px, 3.8vw, 56px); }
.studio-intro p { color: var(--haze); max-width: 44ch; }
.crafts { margin: 0; border-bottom: 1px solid var(--line); }
.crafts div { display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr); gap: 24px; align-items: baseline; padding: 28px 0; border-top: 1px solid var(--line); }
.crafts dt { font-family: var(--display); font-weight: 500; font-size: clamp(24px, 2.4vw, 34px); letter-spacing: -0.04em; }
.crafts dd { margin: 0; color: var(--haze); }

/* ---------- partner ---------- */
.partner { padding: clamp(40px, 6vh, 80px) 0 clamp(100px, 14vh, 160px); }
.partner-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(16px, 2vw, 28px); align-items: stretch; }
.offer { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; padding: clamp(28px, 3.6vw, 52px); border-top: 1px solid var(--line); }
.offer h3 { font-size: clamp(26px, 2.6vw, 38px); }
.offer p { color: var(--haze); max-width: 42ch; flex: 1; }
.offer-lead { background: var(--lilac); color: #140b24; border-radius: 28px; border: 0; }
.offer-lead p { color: rgba(20, 11, 36, .75); }

/* ---------- closing ---------- */
.closing { position: relative; overflow: hidden; isolation: isolate; text-align: center; padding: clamp(110px, 16vh, 180px) 0 clamp(260px, 34vw, 520px); }
.closing-sky { position: absolute; left: 0; right: 0; bottom: 0; z-index: -1; height: clamp(320px, 46vw, 820px); background: var(--night); }
.closing-sky img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 70%; mix-blend-mode: screen;
  mask-image: linear-gradient(transparent, #000 30%); -webkit-mask-image: linear-gradient(transparent, #000 30%);
}
.closing-inner { display: grid; justify-items: center; gap: 22px; }
.closing h2 { font-size: clamp(32px, 4.6vw, 72px); max-width: 16ch; }
.closing p { color: var(--haze); }
.mail-big {
  margin-top: clamp(18px, 3vw, 40px); font-family: var(--display); font-weight: 600; letter-spacing: -0.05em; line-height: 1;
  font-size: clamp(26px, 6.6vw, 112px);
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; padding-bottom: .12em;
  transition: background-size .7s var(--ease), color .3s;
}
.mail-big:hover { background-size: 100% 2px; color: #fff; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 30px 0 36px; }
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 20px 32px; flex-wrap: wrap; }
.footer-brand img { height: 30px; width: auto; }
.footer-links { display: flex; gap: 8px 26px; flex-wrap: wrap; }
.footer-links a { color: var(--haze); font-size: 15px; transition: color .2s; }
.footer-links a:hover { color: var(--ink); }
.footer-legal { color: var(--haze); font-size: 14px; }

/* ---------- legal pages ---------- */
.legal-bar { position: fixed; top: 12px; left: 0; right: 0; z-index: 60; display: flex; justify-content: center; }
.legal-bar a { display: flex; align-items: center; gap: 10px; background: #000; border-radius: 27px; padding: 0 18px 0 9px; height: 46px; font-family: var(--display); font-size: 13.5px; font-weight: 500; box-shadow: inset 0 0 0 1px rgba(255,255,255,.07); }
.legal-bar img { width: 28px; height: 28px; border-radius: 8px; }
.legal { padding: 150px 0 100px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(36px, 5.4vw, 64px); margin: 0 0 14px; }
.legal h2 { font-size: 22px; margin: 44px 0 12px; letter-spacing: -0.03em; }
.legal p, .legal li { color: #d6d0e6; font-size: 17px; margin-bottom: 12px; }
.legal a { color: var(--lilac); }
.legal .updated { color: var(--haze); font-size: 14px; margin-bottom: 24px; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .hero-copy, .index-head, .studio-grid, .partner-grid { grid-template-columns: 1fr; }
  .hero-copy { gap: 26px; }
  .studio-intro { position: static; }
  .ch-grid, .ch-web .ch-grid { grid-template-columns: 1fr; gap: 56px; }
  .ch-web .device { order: 2; }
  .reel {
    transform: none; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 10px;
    scrollbar-width: none;
  }
  .reel::-webkit-scrollbar { display: none; }
  .reel figure { scroll-snap-align: start; width: clamp(160px, 42vw, 230px); }
  .reel figure:nth-child(even) { margin-top: 0; }
  .ledger a { grid-template-columns: 44px minmax(0, 1fr) auto; }
  .ledger span { grid-column: 2 / -1; grid-row: 2; margin-top: -14px; font-size: 15px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero { padding-top: 64px; }
  .tile { --ts: min(92vw, 52svh); margin: 0 0 -8%; }
  .hero-title { font-size: clamp(32px, 9.4vw, 44px); }
  .hero-side p { font-size: 16.5px; }
  .ledger a { gap: 4px 16px; padding: 16px 6px; }
  .ledger em { display: none; }
  .ledger span { margin-top: 0; }
  .chapter { min-height: 0; padding: 110px 0 100px; }
  .ch-name { font-size: 30vw; top: 36px; }
  .crafts div { grid-template-columns: 1fr; gap: 6px; padding: 22px 0; }
  .footer-row { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .tile, .js .hero-side { opacity: 1; scale: 1; filter: none; transform: none; }
  .js .hero-title .ln > span { transform: none; }
  .orbit-path .base { stroke-dashoffset: 0; }
  .orbit-path .comet { display: none; }
}
