/* Elysium — shared styles.
   Home: <body class="studio">. WildCatch pages: <body class="wc">. */

:root {
  --paper: #f7f6f2;
  --surface: #ffffff;
  --recess: #efeee9;
  --ink: #141416;
  --muted: #5f5e66;
  --line: rgba(20, 20, 22, .1);
  --accent: #3a3fd6;
  --accent-ink: #ffffff;
  --accent-soft: #ececfb;
  --check: #17673d;
  --gold: #e9c46a;
  --todo-bg: #fff2ca;
  --todo-ink: #624300;
  --shadow-sm: 0 1px 2px rgba(16, 16, 24, .05);
  --shadow: 0 1px 2px rgba(16, 16, 24, .04), 0 12px 40px -12px rgba(16, 16, 24, .14);
  --radius: 28px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --serif: ui-serif, "New York", "Iowan Old Style", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --display: var(--serif);
  --noise: 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='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  color-scheme: light dark;
}

/* WildCatch: colours from the app (WildTheme.swift) */
body.wc {
  --paper: #f7f8f5;
  --recess: #edf1eb;
  --ink: #18291f;
  --muted: #52635b;
  --line: rgba(24, 41, 31, .12);
  --accent: #087f65;
  --accent-soft: #e5f3ed;
  --button: #72d447;
  --button-base: #36852b;
  --button-ink: #173b24;
  --forest-1: #04140a;
  --forest-2: #0c2d16;
  --forest-3: #1f5a2c;
  --fox: #f47a2a;
  --night-1: #070b2a;
  --night-2: #16207a;
  --display: var(--sans);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0d0d0f;
    --surface: #17171a;
    --recess: #1f1f23;
    --ink: #f3f2ee;
    --muted: #a9a8b0;
    --line: rgba(255, 255, 255, .09);
    --accent: #a3a6ff;
    --accent-ink: #12122a;
    --accent-soft: #23244a;
    --check: #7fd69a;
    --todo-bg: #4a3a00;
    --todo-ink: #ffe28a;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 16px 48px -16px rgba(0, 0, 0, .6);
  }
  body.wc {
    --paper: #0b120e;
    --surface: #131d17;
    --recess: #1a261f;
    --ink: #ebf2ed;
    --muted: #a3b5aa;
    --line: rgba(255, 255, 255, .08);
    --accent: #62d3b3;
    --accent-ink: #062018;
    --accent-soft: #143a2f;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.65 var(--sans);
  letter-spacing: -.003em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.studio { background: #08080a; color: #f3f2ee; color-scheme: dark; }

img { max-width: 100%; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible, summary:focus-visible, .button:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; border-radius: 10px; }
::selection { background: var(--accent); color: var(--accent-ink); }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 32px; }
.narrow { max-width: 800px; }

/* ---------- Type ---------- */
h1, h2, h3 { font-family: var(--display); color: inherit; margin: 0; font-weight: 700; }
h1 { font-size: clamp(42px, 7vw, 92px); line-height: .98; letter-spacing: -.035em; }
h2 { font-size: clamp(32px, 4.6vw, 58px); line-height: 1.04; letter-spacing: -.03em; }
h3 { font-size: 22px; line-height: 1.25; letter-spacing: -.015em; }
body.studio h1, body.studio h2 { font-weight: 500; letter-spacing: -.025em; }
h1 em, h2 em { font-style: italic; font-family: var(--serif); font-weight: 400; }
.lead { font-size: clamp(18px, 2vw, 22px); line-height: 1.5; color: var(--muted); margin: 22px 0 0; max-width: 34em; }
.meta { color: var(--muted); font-size: 14px; margin: 10px 0 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 26px;
  font: 600 13px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: currentColor; opacity: .6; }
.section { padding: 128px 0; }
.section-head { max-width: 760px; margin-bottom: 64px; }
.section-head p { color: var(--muted); font-size: 19px; margin: 20px 0 0; }

/* ---------- Header ---------- */
header.site {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--paper) 78%, transparent);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--line);
}
header.site.on-dark {
  position: absolute; left: 0; right: 0;
  background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none;
  border-bottom: 1px solid rgba(255, 255, 255, .08); color: #fff;
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; }
.brand {
  display: inline-flex; align-items: center; gap: 11px;
  font: 600 19px/1 var(--sans); letter-spacing: -.01em; text-decoration: none; color: inherit;
}
.brand.wordmark { font: 500 25px/1 var(--serif); letter-spacing: -.01em; }
.brand img { width: 32px; height: 32px; border-radius: 9px; box-shadow: 0 0 0 .5px rgba(0, 0, 0, .2); }
nav.site { display: flex; gap: 2px; }
nav.site a {
  padding: 8px 14px; border-radius: 999px;
  text-decoration: none; color: inherit; opacity: .72; font-weight: 500; font-size: 15px;
  transition: opacity .2s, background .2s;
}
nav.site a:hover { opacity: 1; background: color-mix(in srgb, currentColor 9%, transparent); }

/* ---------- Buttons ---------- */
.links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 28px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink);
  text-decoration: none; font: 600 16px/1 var(--sans); letter-spacing: -.005em;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
}
.button:hover { transform: translateY(-2px); }
.button .arrow { transition: transform .25s var(--ease); }
.button:hover .arrow { transform: translateX(3px); }
.button.light { background: #fff; color: #0b0b0d; }
.button.glass {
  background: rgba(255, 255, 255, .08); color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.button.glass:hover { background: rgba(255, 255, 255, .14); }
.button.gold { background: linear-gradient(180deg, #f6dc94, #e2b552); color: #2a1c00; }
body.wc .button.play { background: var(--button); color: var(--button-ink); box-shadow: 0 5px 0 var(--button-base), 0 14px 24px -12px rgba(0, 0, 0, .35); }
body.wc .button.play:hover { transform: translateY(2px); box-shadow: 0 3px 0 var(--button-base), 0 10px 20px -12px rgba(0, 0, 0, .35); }
.todo-note { margin: 16px 0 0; font-size: 13px; }

/* ---------- Dark stages (shared) ---------- */
.stage { position: relative; isolation: isolate; overflow: hidden; color: #fff; }
.stage::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: var(--noise); opacity: .07; mix-blend-mode: overlay;
}
.stage .lead, .stage .eyebrow { color: rgba(255, 255, 255, .7); }

/* ---------- Studio home ---------- */
.studio-hero {
  min-height: min(920px, 100svh); display: flex; align-items: flex-end; padding: 180px 0 112px;
  background:
    radial-gradient(900px 600px at 78% 18%, rgba(98, 92, 255, .32), transparent 62%),
    radial-gradient(700px 520px at 12% 92%, rgba(244, 122, 42, .16), transparent 60%),
    radial-gradient(600px 400px at 50% 50%, rgba(255, 255, 255, .04), transparent 70%),
    #08080a;
}
.studio-hero h1 { font-size: clamp(48px, 8.4vw, 118px); max-width: 11.5em; }
.studio-hero h1 em { color: #c9c6ff; }
.studio-hero .lead { color: rgba(255, 255, 255, .62); }
.studio-hero .scroll-cue {
  margin-top: 64px; display: inline-flex; align-items: center; gap: 10px;
  color: rgba(255, 255, 255, .6); font-size: 15px; text-decoration: none;
}
.studio-hero .scroll-cue:hover { color: #fff; }

.studio-section { padding: 120px 0; border-top: 1px solid rgba(255, 255, 255, .07); }
.studio-section .eyebrow { color: rgba(255, 255, 255, .5); }

.feature-app {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 32px;
  min-height: 600px; padding: 72px; border-radius: 40px; text-decoration: none; color: #fff;
  background:
    radial-gradient(520px 420px at 78% 40%, rgba(255, 196, 120, .28), transparent 65%),
    linear-gradient(150deg, #04140a 0%, #0c2d16 48%, #1f5a2c 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), 0 40px 80px -40px rgba(0, 0, 0, .8);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.feature-app::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: var(--noise); opacity: .08; mix-blend-mode: overlay; }
.feature-app:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), 0 50px 90px -40px rgba(0, 0, 0, .9); }
.feature-app .app-id { display: flex; align-items: center; gap: 16px; margin-bottom: 36px; }
.feature-app .app-id img { width: 72px; height: 72px; border-radius: 18px; box-shadow: 0 12px 30px rgba(0, 0, 0, .4), 0 0 0 .5px rgba(255, 255, 255, .2); }
.feature-app .app-id strong { display: block; font-size: 19px; font-weight: 600; }
.feature-app .app-id small { color: rgba(255, 255, 255, .6); font-size: 14px; }
.feature-app h2 { font: 700 clamp(34px, 4.4vw, 56px)/1.02 var(--sans); letter-spacing: -.035em; }
.feature-app p { color: rgba(255, 255, 255, .72); font-size: 19px; margin: 20px 0 0; max-width: 26em; }
.feature-app .art { position: relative; height: 100%; min-height: 440px; }
.feature-app .art .planet { position: absolute; right: -18%; bottom: -34%; width: 118%; max-width: none; opacity: .92; }
.feature-app .art .fox { position: absolute; left: 50%; bottom: 4%; width: 62%; transform: translateX(-50%); filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .45)); transition: transform .6s var(--ease); }
.feature-app:hover .art .fox { transform: translateX(-50%) translateY(-8px) rotate(-1.5deg); }
.feature-app .badge {
  position: absolute; top: 28px; right: 28px; padding: 8px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18);
  font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
}

.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 8px; }
.principles > div { padding: 40px 36px 8px 0; border-top: 1px solid rgba(255, 255, 255, .14); margin-right: 36px; }
.principles .num { font: 400 15px var(--serif); font-style: italic; color: rgba(255, 255, 255, .45); }
.principles h3 { font: 500 30px/1.15 var(--serif); letter-spacing: -.02em; margin: 26px 0 12px; }
.principles p { margin: 0; color: rgba(255, 255, 255, .6); }

.studio-contact { padding: 140px 0 120px; text-align: center; }
.studio-contact h2 { font-size: clamp(40px, 6.4vw, 84px); }
.studio-contact p { color: rgba(255, 255, 255, .6); font-size: 19px; margin: 22px auto 0; max-width: 30em; }
.studio-contact .links { justify-content: center; }

/* ---------- WildCatch hero ---------- */
.wc-hero {
  padding: 168px 0 0;
  background:
    radial-gradient(800px 560px at 74% 46%, rgba(255, 190, 110, .26), transparent 62%),
    radial-gradient(900px 700px at 0% 100%, rgba(114, 212, 71, .12), transparent 60%),
    linear-gradient(170deg, var(--forest-1) 0%, var(--forest-2) 55%, var(--forest-3) 100%);
}
.wc-hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 24px; align-items: end; }
.wc-hero .copy { padding-bottom: 140px; }
.wc-hero h1 { font-size: clamp(46px, 6.6vw, 90px); }
.wc-hero h1 em { color: #ffc98f; }
.app-lockup { display: inline-flex; align-items: center; gap: 14px; margin-bottom: 34px; }
.app-lockup img { width: 60px; height: 60px; border-radius: 15px; box-shadow: 0 14px 30px rgba(0, 0, 0, .45), 0 0 0 .5px rgba(255, 255, 255, .25); }
.app-lockup strong { display: block; font-size: 17px; font-weight: 600; }
.app-lockup small { color: rgba(255, 255, 255, .6); font-size: 14px; }
.wc-hero .scene { position: relative; align-self: stretch; min-height: 600px; }
.wc-hero .scene .planet { position: absolute; left: 50%; bottom: -46%; width: 128%; max-width: none; transform: translateX(-50%); }
.wc-hero .scene .fox { position: absolute; left: 50%; bottom: 0; width: 66%; transform: translateX(-50%); filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .5)); animation: float 7s ease-in-out infinite; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
.glass-chip {
  position: absolute; display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 18px;
  background: rgba(255, 255, 255, .12); color: #fff; font-size: 14px; line-height: 1.25;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22), 0 20px 40px -14px rgba(0, 0, 0, .5);
  backdrop-filter: blur(16px) saturate(160%); -webkit-backdrop-filter: blur(16px) saturate(160%);
}
.glass-chip b { display: block; font-weight: 600; }
.glass-chip small { color: rgba(255, 255, 255, .7); }
.glass-chip .chip-ic { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; font-size: 13px; }
.glass-chip.one { top: 18%; left: -2%; }
.glass-chip.one .chip-ic { background: #72d447; color: #173b24; }
.glass-chip.two { top: 40%; right: -4%; }
.glass-chip.two .chip-ic { background: #f47a2a; color: #fff; }

/* ---------- WildCatch: steps ---------- */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tile {
  position: relative; overflow: hidden; border-radius: var(--radius);
  background: var(--surface); box-shadow: var(--shadow); border: 1px solid var(--line);
  display: flex; flex-direction: column;
}
.tile .art { height: 300px; overflow: hidden; display: flex; align-items: flex-end; justify-content: center; padding-top: 28px; background: radial-gradient(circle at 50% 70%, var(--tint, #fde6d3), transparent 70%), var(--recess); }
.tile .art img { height: 264px; width: auto; max-width: none; filter: drop-shadow(0 18px 20px rgba(0, 0, 0, .18)); transition: transform .5s var(--ease); }
.tile:hover .art img { transform: translateY(-6px) scale(1.02); }
.tile .body { padding: 28px 30px 32px; }
.tile .step { font: 600 13px var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.tile h3 { font-size: 26px; margin: 10px 0 8px; }
.tile p { margin: 0; color: var(--muted); }
.tile.t2 { --tint: #d9f0e4; }
.tile.t3 { --tint: #e6ecff; }
@media (prefers-color-scheme: dark) {
  .tile .art { --tint: rgba(244, 122, 42, .22); }
  .tile.t2 .art { --tint: rgba(114, 212, 71, .2); }
  .tile.t3 .art { --tint: rgba(110, 130, 255, .22); }
}

/* ---------- WildCatch: product shot ---------- */
.showcase-section { overflow: hidden; }
.showcase { display: grid; grid-template-columns: .9fr 1.1fr; gap: 96px; align-items: center; }
.phone {
  position: relative; justify-self: center; width: min(340px, 78vw); aspect-ratio: 620 / 1344;
  padding: 13px; border-radius: 58px; background: linear-gradient(145deg, #2b2b2e, #0d0d0f);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .14), 0 50px 80px -40px rgba(0, 0, 0, .45), 0 20px 40px -24px rgba(0, 0, 0, .35);
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 46px; }
.phone::before {
  content: ""; position: absolute; top: 25px; left: 50%; width: 30%; height: 30px; transform: translateX(-50%);
  border-radius: 999px; background: #000; z-index: 2;
}
.phone-wrap { position: relative; display: grid; place-items: center; isolation: isolate; }
.phone-wrap::before {
  content: ""; position: absolute; width: 130%; aspect-ratio: 1; border-radius: 50%; z-index: -1;
  background: radial-gradient(circle, rgba(114, 212, 71, .3), transparent 62%);
}
.checks { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 26px; }
.checks li { display: grid; grid-template-columns: 46px 1fr; gap: 18px; align-items: start; }
.checks .ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.checks .ic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.checks b { display: block; font-size: 18px; letter-spacing: -.01em; }
.checks span { color: var(--muted); }

/* ---------- WildCatch: Pro ---------- */
.pro {
  padding: 136px 0;
  background:
    radial-gradient(700px 500px at 82% 10%, rgba(233, 196, 106, .22), transparent 60%),
    radial-gradient(900px 700px at 10% 100%, rgba(80, 100, 255, .28), transparent 60%),
    linear-gradient(170deg, var(--night-1), var(--night-2));
}
.pro .head { display: flex; align-items: center; gap: 22px; margin-bottom: 30px; }
.pro .head img { width: 88px; height: 88px; border-radius: 22px; box-shadow: 0 0 0 .5px rgba(255, 255, 255, .3), 0 18px 36px -14px rgba(0, 0, 0, .6); }
.pro .head .eyebrow { color: var(--gold); margin: 0 0 8px; }
.pro .head strong { display: block; font-size: 22px; font-weight: 600; letter-spacing: -.015em; }
.pro h2 em { color: var(--gold); }
.pro .lead { color: rgba(255, 255, 255, .7); }
.perks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 64px; }
.perk {
  padding: 28px; border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .03));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
}
.perk .ic { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: rgba(233, 196, 106, .16); color: var(--gold); margin-bottom: 22px; }
.perk .ic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.perk b { display: block; font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.perk span { color: rgba(255, 255, 255, .62); font-size: 15px; }
.pro .fine { margin: 40px 0 0; color: rgba(255, 255, 255, .55); font-size: 15px; max-width: 46em; }

/* ---------- WildCatch: final CTA ---------- */
.cta { padding: 128px 0 0; text-align: center; overflow: hidden; }
.cta h2 { max-width: 12em; margin: 0 auto; }
.cta p { color: var(--muted); font-size: 19px; margin: 20px auto 0; max-width: 30em; }
.cta .links { justify-content: center; }
.cta .fox { width: 220px; margin: 72px auto 0; filter: drop-shadow(0 20px 26px rgba(0, 0, 0, .18)); }

/* ---------- Document pages ---------- */
.doc-head { padding: 88px 0 8px; }
.doc-head .eyebrow { margin-bottom: 20px; }
.doc-head h1 { font-size: clamp(38px, 5.4vw, 64px); line-height: 1.02; }
.lang {
  display: inline-flex; gap: 2px; padding: 4px; margin: 28px 0 0;
  background: var(--recess); border-radius: 999px; font-size: 14px; font-weight: 600;
}
.lang a, .lang span { padding: 7px 16px; border-radius: 999px; text-decoration: none; color: var(--muted); }
.lang span { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }

.doc {
  margin-top: 40px; padding: 16px 56px 52px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.doc h2 { font-size: 26px; line-height: 1.2; letter-spacing: -.02em; margin: 52px 0 12px; }
.doc h3 { font-size: 19px; margin: 32px 0 6px; }
.doc p, .doc li { max-width: 42em; }
.doc ul { padding-left: 22px; }
.doc li { margin: 8px 0; }
.doc li::marker { color: var(--accent); }

.summary { margin: 40px 0 0; padding: 22px 26px; border-radius: 18px; background: var(--accent-soft); font-size: 18px; }
.summary p { margin: 0; }

.facts { display: grid; grid-template-columns: 190px 1fr; margin: 22px 0; border-top: 1px solid var(--line); }
.facts dt, .facts dd { padding: 14px 0; border-bottom: 1px solid var(--line); margin: 0; }
.facts dt { color: var(--muted); font-weight: 500; }

section#fr .doc-head { padding-top: 120px; }

/* Tables */
table { width: 100%; border-collapse: collapse; margin: 22px 0; font-size: 15px; line-height: 1.5; }
th, td { text-align: left; vertical-align: top; padding: 14px 14px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 600; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.doc table { border: 1px solid var(--line); border-radius: 16px; border-collapse: separate; border-spacing: 0; overflow: hidden; }
.doc tr:first-child th { background: var(--recess); }
.doc tr:last-child td { border-bottom: 0; }
.doc td:first-child { font-weight: 600; }

/* FAQ */
.faq { margin-top: 22px; display: grid; gap: 10px; }
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 0 22px; transition: background .2s; }
.faq details[open] { background: var(--surface); box-shadow: var(--shadow-sm); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 34px 20px 0; position: relative;
  font: 600 17px/1.35 var(--sans); letter-spacing: -.01em; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 2px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(45deg); transition: transform .3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { margin: 0 0 20px; color: var(--muted); }

.contact-box { display: flex; gap: 16px; align-items: center; margin-top: 32px; padding: 20px 24px; border-radius: 18px; background: var(--accent-soft); }
.contact-box .bubble { flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); }
.contact-box .bubble svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; }
.contact-box p { margin: 0; }

/* Placeholders to fill in before going live */
mark.todo {
  background: var(--todo-bg); color: var(--todo-ink);
  padding: 2px 8px; border-radius: 6px; font-weight: 600; font-size: .9em; letter-spacing: 0;
  box-decoration-break: clone; -webkit-box-decoration-break: clone;
}

/* ---------- Footer ---------- */
footer.site { border-top: 1px solid var(--line); padding: 40px 0 56px; color: var(--muted); font-size: 14px; }
body.studio footer.site { border-color: rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .5); }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 12px 26px; align-items: center; }
footer.site a { color: inherit; text-decoration: none; font-weight: 500; }
footer.site a:hover { color: var(--ink); }
body.studio footer.site a:hover { color: #fff; }
footer.site .copy { margin-left: auto; }

/* ---------- Entrance ---------- */
.rise { animation: rise 1s var(--ease) both; }
.rise.d1 { animation-delay: .08s; } .rise.d2 { animation-delay: .16s; } .rise.d3 { animation-delay: .24s; } .rise.d4 { animation-delay: .32s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .feature-app { grid-template-columns: 1fr; padding: 48px 40px 0; }
  .feature-app .art { min-height: 380px; }
  .wc-hero .wrap { grid-template-columns: 1fr; }
  .wc-hero .copy { padding-bottom: 0; }
  .wc-hero .scene { min-height: 460px; }
  .tiles, .perks { grid-template-columns: 1fr 1fr; }
  .showcase { grid-template-columns: 1fr; gap: 56px; }
  .principles { grid-template-columns: 1fr; }
  .principles > div { margin-right: 0; padding-bottom: 32px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  header.site .wrap { height: 62px; gap: 8px; }
  .brand { font-size: 17px; gap: 9px; }
  .brand.wordmark { font-size: 22px; }
  .brand img { width: 28px; height: 28px; }
  nav.site { gap: 0; }
  nav.site a { padding: 6px 8px; font-size: 14px; }
  .section, .pro { padding: 88px 0; }
  .section-head { margin-bottom: 40px; }
  .links { margin-top: 30px; }
  .button { min-height: 52px; padding: 0 24px; }
  .studio-hero { min-height: 0; padding: 140px 0 72px; }
  .studio-hero .scroll-cue { display: none; }
  .studio-section { padding: 80px 0; }
  .feature-app { padding: 36px 26px 0; border-radius: 30px; min-height: 0; }
  .feature-app .badge { top: 20px; right: 20px; }
  .feature-app .art { min-height: 320px; }
  .studio-contact { padding: 96px 0 80px; }
  .wc-hero { padding-top: 124px; }
  .wc-hero .scene { min-height: 380px; }
  .glass-chip { font-size: 13px; padding: 10px 12px; }
  .glass-chip.one { left: 0; top: 6%; }
  .glass-chip.two { right: 0; top: 30%; }
  .tiles, .perks { grid-template-columns: 1fr; }
  .tile .art { height: 250px; }
  .tile .art img { height: 218px; }
  .cta { padding-top: 88px; }
  .doc-head { padding-top: 56px; }
  section#fr .doc-head { padding-top: 88px; }
  .doc { margin-top: 28px; padding: 6px 22px 32px; border-radius: 22px; }
  .facts { grid-template-columns: 1fr; }
  .facts dt { border-bottom: 0; padding-bottom: 0; font-size: 14px; }
  .facts dd { padding-top: 4px; }
  footer.site .copy { margin-left: 0; width: 100%; }

  /* Tables become stacked cards; labels come from data-label */
  .doc table, .doc tbody, .doc tr, .doc td { display: block; width: 100%; }
  .doc table { border: 0; overflow: visible; }
  .doc tr:first-child:has(th) { display: none; }
  .doc tr { border: 1px solid var(--line); border-radius: 16px; padding: 6px 16px; margin-bottom: 10px; background: var(--paper); }
  .doc td { border: 0; padding: 7px 0; }
  .doc td::before {
    content: attr(data-label); display: block;
    font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
  }
  .doc td:first-child::before { display: none; }
  .doc td:first-child { font-size: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
