/* EMMARK 作品集。顏色都是 :root 的 token；內文跟著系統亮暗，首屏與結尾固定是深色舞台。 */
:root {
  --bg: #ffffff;
  --bg-soft: #f5f6f8;
  --surface: #ffffff;
  --ink: #0a0d14;
  --ink-2: #3b4250;
  --muted: #5b6373;
  --line: #e3e6eb;
  --line-strong: #cdd2da;
  --accent: #0f7a5c;
  --accent-hover: #0c6a4f;
  --accent-ink: #ffffff;
  --shadow: 0 1px 2px rgba(10, 13, 20, .05), 0 18px 40px -20px rgba(10, 13, 20, .22);

  --stage: #070a12;
  --stage-2: #0d1220;
  --stage-ink: #f4f6fb;
  --stage-ink-2: #aab2c5;
  --stage-line: rgba(255, 255, 255, .12);
  --aurora-1: #10b981;
  --aurora-2: #22d3ee;
  --aurora-3: #8b5cf6;

  --c-ministry: #10b981; --t-ministry: #047857;
  --c-tools: #8b5cf6;    --t-tools: #6d28d9;
  --c-play: #f59e0b;     --t-play: #b45309;

  --f-sans: "Geist", "Noto Sans TC", system-ui, -apple-system, "PingFang TC", "Microsoft JhengHei", sans-serif;
  --f-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --r: 16px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a0d14; --bg-soft: #0f131c; --surface: #121722; --ink: #eef1f6; --ink-2: #c3c9d4; --muted: #939bab;
    --line: #222836; --line-strong: #333a4a; --accent: #34d399; --accent-hover: #5fe0ae; --accent-ink: #04140e;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 18px 44px -20px rgba(0, 0, 0, .8);
    --t-ministry: #34d399; --t-tools: #a78bfa; --t-play: #fbbf24;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0a0d14; --bg-soft: #0f131c; --surface: #121722; --ink: #eef1f6; --ink-2: #c3c9d4; --muted: #939bab;
  --line: #222836; --line-strong: #333a4a; --accent: #34d399; --accent-hover: #5fe0ae; --accent-ink: #04140e;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 18px 44px -20px rgba(0, 0, 0, .8);
  --t-ministry: #34d399; --t-tools: #a78bfa; --t-play: #fbbf24;
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; scrollbar-color: var(--line-strong) var(--bg); }
body {
  background: var(--bg); color: var(--ink);
  font-family: var(--f-sans); font-size: 17px; line-height: 1.7;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  word-break: auto-phrase;
}
::selection { background: var(--aurora-1); color: #03130d; }
a { color: inherit; text-underline-offset: .25em; text-decoration-thickness: 1px; text-decoration-color: var(--line-strong); }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--aurora-1); outline-offset: 3px; border-radius: 6px; }
ul, ol { padding: 0; list-style: none; }
b, strong { font-weight: 600; }
h1, h2, h3, h4, h5 { font-weight: 600; text-wrap: balance; }
img { display: block; max-width: 100%; height: auto; }

.wrap { max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }
.muted { color: var(--muted); }
.num { font-family: var(--f-mono); font-size: .82em; font-variant-numeric: tabular-nums; letter-spacing: 0; }
.nb { display: inline-block; }
.skip { position: absolute; left: 12px; top: -48px; z-index: 50; background: #fff; color: var(--stage); padding: 8px 14px; border-radius: 8px; text-decoration: none; }
.skip:focus { top: 12px; }
.ico { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

[data-deck="ministry"] { --cat: var(--c-ministry); --cat-t: var(--t-ministry); }
[data-deck="tools"] { --cat: var(--c-tools); --cat-t: var(--t-tools); }
[data-deck="play"] { --cat: var(--c-play); --cat-t: var(--t-play); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px;
  background: var(--accent); color: var(--accent-ink);
  border: 1px solid transparent; border-radius: 999px;
  font: 500 15px/1 var(--f-sans); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn:hover { background: var(--accent-hover); }
.btn:active { transform: translateY(1px); }
.btn-light { background: #fff; color: var(--stage); }
.btn-light:hover { background: #e9edf5; box-shadow: 0 0 0 4px rgba(255, 255, 255, .12); }
.btn-glass { background: rgba(255, 255, 255, .06); color: var(--stage-ink); border-color: var(--stage-line); }
.btn-glass:hover { background: rgba(255, 255, 255, .12); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--bg-soft); border-color: var(--muted); }
.btn-ghost[aria-expanded="true"] { border-color: var(--cat-t, var(--ink)); color: var(--cat-t, var(--ink)); }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 14px; }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 17px; }

/* header: dark glass over everything */
.bar { position: sticky; top: 0; z-index: 30; background: rgba(7, 10, 18, .94); border-bottom: 1px solid var(--stage-line); color: var(--stage-ink); }
@supports (backdrop-filter: blur(1px)) { .bar { background: rgba(7, 10, 18, .86); backdrop-filter: saturate(1.6) blur(14px); } }
.bar-in { display: flex; align-items: center; gap: 28px; min-height: 60px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; letter-spacing: .06em; text-decoration: none; }
.mark { width: 24px; height: 24px; flex: none; }
.mark rect { fill: #fff; }
.mark path { fill: none; stroke: var(--stage); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.bar nav { display: flex; gap: 2px; margin-right: auto; font-size: 15px; }
.bar nav a { padding: 6px 12px; border-radius: 999px; color: var(--stage-ink-2); text-decoration: none; transition: color .15s, background-color .15s; }
.bar nav a:hover { color: #fff; background: rgba(255, 255, 255, .08); }

/* the stage (hero and close) */
.stage { position: relative; isolation: isolate; background: var(--stage); color: var(--stage-ink); overflow: hidden; }
.aurora { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.aurora i { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; }
.aurora i:nth-child(1) { width: 52vw; height: 52vw; max-width: 760px; max-height: 760px; left: 8%; top: 26%; background: var(--aurora-1); }
.aurora i:nth-child(2) { width: 44vw; height: 44vw; max-width: 640px; max-height: 640px; left: 40%; top: 38%; background: var(--aurora-2); opacity: .32; }
.aurora i:nth-child(3) { width: 46vw; height: 46vw; max-width: 680px; max-height: 680px; right: 2%; top: 20%; background: var(--aurora-3); opacity: .42; }
.stage::before { /* fine grid that fades out, so the dark is not flat */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--stage-line) 1px, transparent 1px), linear-gradient(90deg, var(--stage-line) 1px, transparent 1px);
  background-size: 64px 64px; opacity: .35;
  mask-image: radial-gradient(ellipse 70% 55% at 50% 0%, #000 20%, transparent 75%);
}

.hero { padding-top: clamp(40px, 5.5vw, 76px); }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 18%; background: linear-gradient(transparent, var(--bg)); z-index: 1; pointer-events: none; }
.hero-copy { text-align: center; }
h1 { font-size: clamp(2.15rem, 5.2vw, 4.1rem); line-height: 1.12; letter-spacing: -.03em; color: #fff; font-weight: 700; }
h1 .dim { color: #8f98ad; }
.lede { margin: 18px auto 0; max-width: 34em; font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--stage-ink-2); text-wrap: pretty; }
.lede strong { color: #fff; }
.intro-actions { margin-top: 26px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.pulse { margin-top: 16px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 8px; font-size: 14px; color: var(--stage-ink-2); }
.pulse > span:not(.dot) { white-space: nowrap; }
.pulse .sep { opacity: .5; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--aurora-1); }

.screens { position: relative; margin: clamp(28px, 3.5vw, 44px) auto 0; max-width: 1240px; padding-inline: var(--gutter); perspective: 2200px; }
.screens-in {
  position: relative; width: 66%; margin: 0 auto; padding-bottom: clamp(32px, 6vw, 80px);
  transform: rotateX(var(--tilt, 0deg)) rotateY(var(--lean, 0deg));
  transform-origin: 50% 0; transform-style: preserve-3d;
}
.frame { position: relative; margin: 0; border-radius: 14px; overflow: hidden; background: #0f1420; border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 50px 100px -30px rgba(0, 0, 0, .75), 0 0 0 1px rgba(0, 0, 0, .3); }
.frame-bar { display: flex; gap: 6px; align-items: center; height: 28px; padding: 0 12px; background: #161c2b; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.frame-bar i { width: 9px; height: 9px; border-radius: 50%; background: #2d3547; }
.frame img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.f-center { position: relative; z-index: 2; }
.f-left, .f-right { position: absolute; top: 8%; width: 64%; z-index: 1; }
.f-left { right: 74%; transform: translateZ(-120px) rotateY(12deg); }
.f-right { left: 74%; transform: translateZ(-120px) rotateY(-12deg); }

/* sections */
main > section:not(.stage) { margin-top: clamp(80px, 11vw, 144px); }
#featured { margin-top: clamp(24px, 4vw, 56px); position: relative; z-index: 2; }
.sec-head { max-width: 44em; margin-bottom: clamp(28px, 4vw, 48px); }
h2 { font-size: clamp(1.8rem, 3.8vw, 2.9rem); line-height: 1.2; letter-spacing: -.025em; color: var(--ink); }
.sec-head .muted { margin-top: 12px; font-size: 1.05rem; text-wrap: pretty; }

/* featured rows */
.features { display: grid; gap: clamp(24px, 4vw, 48px); }
.feature {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.75fr); gap: clamp(28px, 4vw, 56px); align-items: center;
  padding: clamp(28px, 4vw, 56px) 0 clamp(28px, 4vw, 56px) clamp(24px, 4vw, 48px); border-radius: 24px; background: var(--bg-soft); border: 1px solid var(--line);
  position: relative; overflow: hidden; isolation: isolate;
}
.feature::before { content: ""; position: absolute; z-index: -1; width: 60%; aspect-ratio: 1; right: -10%; top: -30%; border-radius: 50%;
  background: var(--cat); opacity: .14; filter: blur(80px); }
.feature:nth-of-type(even) { padding: clamp(28px, 4vw, 56px) clamp(24px, 4vw, 48px) clamp(28px, 4vw, 56px) 0; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); }
.feature:nth-of-type(even) .feature-copy { order: 2; }
.feature .frame { border-radius: 14px 0 0 14px; border-right-width: 0; }
.feature:nth-of-type(even) .frame { border-radius: 0 14px 14px 0; border-left-width: 0; border-right-width: 1px; }
.feature:nth-of-type(even)::before { right: auto; left: -10%; }
.chip { margin-top: 10px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14px; color: var(--cat-t); font-weight: 500; }
.chip > span:first-child::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--cat); margin-right: 8px; vertical-align: .1em; }
.feature h3 { font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.2; letter-spacing: -.02em; }
.feature-tag { margin-top: 10px; font-size: 1.1rem; color: var(--ink-2); text-wrap: pretty; }
.points { margin-top: 20px; display: grid; gap: 10px; }
.points li { position: relative; padding-left: 26px; font-size: 15px; color: var(--ink-2); }
.points li::before { content: ""; position: absolute; left: 0; top: .32em; width: 16px; height: 16px; border-radius: 50%;
  background: color-mix(in srgb, var(--cat) 18%, transparent); }
.points li::after { content: ""; position: absolute; left: 5px; top: calc(.32em + 4px); width: 6px; height: 4px; border: solid var(--cat-t); border-width: 0 0 2px 2px; transform: rotate(-45deg); }
.faith-line { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 16px; line-height: 1.65; color: var(--ink); }
.faith-line::before { content: "信仰"; display: block; font-size: 12px; font-weight: 600; letter-spacing: .08em; color: var(--cat-t); margin-bottom: 4px; }
.feature-actions { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.feature-live { font-size: 13px; color: var(--muted); }
.feature-shot { box-shadow: 0 40px 80px -30px color-mix(in srgb, var(--cat) 55%, transparent), 0 0 0 1px rgba(0, 0, 0, .06); border-color: color-mix(in srgb, var(--cat) 30%, rgba(255, 255, 255, .12)); }
.no-shot { aspect-ratio: 16 / 10.45; display: grid; place-items: center; padding: 32px; text-align: center;
  background: radial-gradient(120% 90% at 30% 20%, color-mix(in srgb, var(--cat) 45%, var(--stage)), var(--stage) 70%); color: #fff; }
.no-shot-in .ico { width: 40px; height: 40px; margin: 0 auto 18px; color: color-mix(in srgb, var(--cat) 60%, #fff); stroke-width: 1.6; }
.no-shot-in p { max-width: 18em; margin: 0 auto; font-size: clamp(1.2rem, 2.2vw, 1.6rem); line-height: 1.5; font-weight: 600; }
.no-shot-in span { display: block; margin-top: 16px; font-size: 13px; color: var(--stage-ink-2); }

/* more grid */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-flow: row dense; gap: 16px; }
.tile {
  display: flex; flex-direction: column; align-items: stretch; gap: 8px;
  padding: 20px 20px 18px; text-align: left; font: inherit; color: inherit;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  cursor: pointer; position: relative; overflow: hidden;
  transition: border-color .25s var(--ease), box-shadow .3s var(--ease), transform .3s var(--ease);
}
.tile::before { content: ""; position: absolute; left: 20px; right: 20px; top: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--cat), transparent); opacity: .8; }
.tile:hover { border-color: color-mix(in srgb, var(--cat) 45%, var(--line)); box-shadow: var(--shadow); transform: translateY(-3px); }
.tile[aria-expanded="true"] { border-color: var(--cat); box-shadow: 0 0 0 1px var(--cat); transform: none; }
.tile-shot { display: block; margin: -4px -4px 8px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.tile-shot img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: top; }
/* a tile with a screenshot is two columns wide, image beside text, so the 3-column grid still fills evenly */
.tile.has-shot { grid-column: span 2; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); grid-auto-rows: min-content; column-gap: 20px; align-content: start; }
.tile.has-shot > :not(.tile-shot) { grid-column: 2; }
.tile.has-shot .tile-shot { grid-column: 1; grid-row: 1 / span 5; margin: -4px 0 -2px -4px; align-self: stretch; }
.tile.has-shot .tile-shot img { height: 100%; aspect-ratio: auto; object-fit: cover; object-position: 50% 0; }
.tile.has-shot .tile-meta { flex-direction: column; gap: 4px; }
.tile-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.tile-name { font-weight: 600; font-size: 1.2rem; line-height: 1.35; letter-spacing: -.01em; }
.tile-kind { font-size: 13px; color: var(--cat-t); font-weight: 500; }
.tile-tag { color: var(--ink-2); font-size: 15px; line-height: 1.6; text-wrap: pretty; }
.tile-meta { margin-top: auto; padding-top: 12px; display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--muted); }
.tile-tech { min-width: 0; }
.tile-meta .num { flex: none; font-size: 12px; }
.badge { flex: none; font-size: 12px; line-height: 1; padding: 5px 9px; border-radius: 999px; background: var(--bg-soft); color: var(--muted); border: 1px solid var(--line); font-weight: 500; }
.badge.is-public { background: color-mix(in srgb, var(--c-ministry) 14%, transparent); color: var(--t-ministry); border-color: transparent; }

/* detail panel */
.panel { grid-column: 1 / -1; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: clamp(20px, 3vw, 40px); box-shadow: var(--shadow); }
.panel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.panel h4 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); line-height: 1.25; letter-spacing: -.02em; }
.tagline { margin-top: 6px; color: var(--ink-2); max-width: 40em; }
.panel-close { display: inline-flex; align-items: center; gap: 6px; flex: none; min-height: 40px; padding: 0 14px; font: 500 14px/1 var(--f-sans); color: var(--muted); background: var(--bg-soft); border: 1px solid var(--line); border-radius: 999px; cursor: pointer; }
.panel-close:hover { color: var(--ink); border-color: var(--line-strong); }
.cols { margin-top: 24px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; }
.cols h5 { font-size: 13px; font-weight: 600; letter-spacing: .06em; color: var(--muted); margin-bottom: 10px; }
.cols ul li, .live ul li { position: relative; padding-left: 18px; margin-top: 8px; color: var(--ink-2); font-size: 16px; }
.cols ul li::before, .live ul li::before { content: ""; position: absolute; left: 2px; top: .78em; width: 6px; height: 6px; border-radius: 50%; background: var(--line-strong); }
.faith { padding-left: 20px; border-left: 1px solid var(--line); }
.faith h5 { color: var(--t-ministry); }
.faith p { color: var(--ink); font-size: 16px; }
.tags { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 6px; }
.tags span { font-size: 13px; padding: 4px 10px; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--line); color: var(--ink-2); }
.live { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.live > p { color: var(--muted); font-size: 14px; }
.live h5 { margin-top: 10px; font-size: 14px; font-weight: 600; }
.links { margin-top: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.links .note { font-size: 14px; color: var(--muted); }

/* log, how, stack, security */
.log { border-top: 1px solid var(--line); }
.log li { display: grid; grid-template-columns: 110px minmax(160px, 240px) 1fr; gap: 16px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line); }
.log .num { color: var(--muted); }
.log a { font-weight: 600; text-decoration: none; }
.log a:hover { color: var(--t-ministry); }
.log-note { color: var(--ink-2); font-size: 15px; }

.how { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: start; }
.prose { max-width: 36em; }
.prose p + p { margin-top: 16px; }
.prose p { color: var(--ink-2); }
.prose .big { font-size: clamp(1.25rem, 2.2vw, 1.6rem); line-height: 1.5; color: var(--ink); font-weight: 600; letter-spacing: -.01em; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.split-col { padding: 22px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); }
.split-col.is-ai { background: var(--stage); color: var(--stage-ink); border-color: var(--stage); }
.split h3 { font-size: 15px; margin-bottom: 10px; }
.split li { padding: 9px 0; border-top: 1px solid var(--line); font-size: 15px; color: var(--ink-2); }
.split .is-ai li { border-color: var(--stage-line); color: var(--stage-ink-2); }
.split li:first-child { border-top: 0; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 640px; }
th { text-align: left; font-weight: 500; font-size: 13px; color: var(--muted); background: var(--bg-soft); padding: 12px 18px; border-bottom: 1px solid var(--line); }
td { padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--ink-2); }
tr:last-child td { border-bottom: 0; }
td:first-child { color: var(--ink); font-weight: 600; white-space: nowrap; }
td:last-child { color: var(--ink); }

.sec-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(32px, 5vw, 72px); border-top: 1px solid var(--line); }
.sec-grid li { padding: 20px 0 22px; border-bottom: 1px solid var(--line); }
.sec-grid b { display: flex; align-items: center; gap: 10px; font-size: 16px; color: var(--ink); }
.sec-grid b .ico { width: 18px; height: 18px; color: var(--t-ministry); stroke-width: 2.4; }
.sec-grid span { display: block; margin-top: 6px; padding-left: 28px; font-size: 15px; color: var(--ink-2); text-wrap: pretty; }
.faq { max-width: 52em; border-top: 1px solid var(--line); }
.faq-item { padding: 20px 0 22px; border-bottom: 1px solid var(--line); }
.faq dt { font-size: 17px; font-weight: 600; color: var(--ink); }
.faq dd { margin: 8px 0 0; font-size: 15px; line-height: 1.75; color: var(--ink-2); text-wrap: pretty; }

/* 分工 on a stage band */
.band { margin-top: clamp(96px, 12vw, 160px); padding-block: clamp(80px, 10vw, 136px); }
.band .aurora i { opacity: .32; }
.band h2 { color: #fff; }
.band .prose p { color: var(--stage-ink-2); }
.band .prose .big { color: #fff; }
.band .split-col { background: rgba(255, 255, 255, .04); border-color: var(--stage-line); color: var(--stage-ink); }
.band .split-col.is-ai { background: rgba(16, 185, 129, .1); border-color: rgba(16, 185, 129, .35); }
.band .split li { border-color: var(--stage-line); color: var(--stage-ink-2); }

/* close */
.end-stage { margin-top: clamp(96px, 12vw, 160px); padding-top: clamp(96px, 12vw, 160px); }
.end-stage .aurora i { top: 10%; }
.end { max-width: 880px; text-align: center; }
.final { display: flex; flex-direction: column; color: #fff; font-weight: 700; font-size: clamp(2.4rem, 7vw, 5.2rem); line-height: 1.15; letter-spacing: -.03em; }
.final > span + span { color: #5eead4; }
.verse { margin-top: 24px; color: var(--stage-ink-2); font-size: 1.1rem; }
.verse cite { margin-left: 8px; font-style: normal; color: #8f98ad; font-size: 14px; white-space: nowrap; }
.facts { margin-top: 56px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; text-align: left; }
.facts li { padding: 20px 22px; border-radius: var(--r); background: rgba(255, 255, 255, .04); border: 1px solid var(--stage-line); }
.facts b { display: block; font-size: 16px; color: #fff; }
.facts span { display: block; margin-top: 6px; font-size: 15px; color: var(--stage-ink-2); }
.contact { margin-top: 56px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.contact p { font-size: 15px; color: var(--stage-ink-2); }
.foot { margin-top: clamp(80px, 10vw, 128px); padding-top: 24px; padding-bottom: 40px; border-top: 1px solid var(--stage-line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: 14px; color: #8f98ad; }

/* motion (only when the visitor allows it; js adds .motion) */
.motion .reveal { opacity: 0; transform: translateY(32px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.motion .reveal.in { opacity: 1; transform: none; }
/* anchored on the outer (bleeding) edge so the frame always meets the card edge; flat and full size at viewport centre */
.motion .feature .frame { transform: perspective(1600px) rotateY(calc((1 - var(--fp, 1)) * -10deg)) scale(calc(.94 + var(--fp, 1) * .06)); transform-origin: 100% 50%; will-change: transform; }
.motion .feature:nth-of-type(even) .frame { transform: perspective(1600px) rotateY(calc((1 - var(--fp, 1)) * 10deg)) scale(calc(.94 + var(--fp, 1) * .06)); transform-origin: 0 50%; }
.motion .grid .tile.reveal:nth-child(3n+2) { transition-delay: .08s; }
.motion .grid .tile.reveal:nth-child(3n) { transition-delay: .16s; }
@media (prefers-reduced-motion: no-preference) {
  .aurora i { animation: drift 18s ease-in-out infinite alternate; }
  .aurora i:nth-child(2) { animation-duration: 22s; animation-delay: -6s; }
  .aurora i:nth-child(3) { animation-duration: 26s; animation-delay: -12s; }
  @keyframes drift { to { transform: translate3d(6%, -8%, 0) scale(1.12); } }
  .panel:not([hidden]) { animation: rise .4s var(--ease); }
  @keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
}

/* responsive */
@media (max-width: 960px) {
  .feature, .feature:nth-of-type(even) { grid-template-columns: 1fr; padding: clamp(24px, 4vw, 40px) clamp(20px, 4vw, 40px) 0; }
  .feature:nth-of-type(even) .feature-copy { order: 0; }
  .feature .frame, .feature:nth-of-type(even) .frame { border-radius: 14px 14px 0 0; border-width: 1px 1px 0; }
  .motion .feature .frame, .motion .feature:nth-of-type(even) .frame { transform: none; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .how { grid-template-columns: 1fr; }
  .sec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .screens-in { width: 78%; }
}
@media (max-width: 760px) {
  .bar nav { display: none; }
  .bar-in { justify-content: space-between; }
  .br-wide { display: none; }
  .cols { grid-template-columns: 1fr; }
  .log li { grid-template-columns: 1fr; gap: 2px; }
  .pulse .sep { display: none; }
  .facts { grid-template-columns: 1fr; }
  .screens-in { width: 80%; }
  .f-left, .f-right { width: 70%; top: 10%; }
  .f-left { right: 84%; }
  .f-right { left: 84%; }
  .table-wrap { border: 0; border-radius: 0; overflow: visible; background: none; }
  table, tbody, tr, td { display: block; min-width: 0; }
  thead { display: none; }
  tr { border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; margin-bottom: 10px; display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; background: var(--surface); }
  td { padding: 0; border: 0; }
  td:first-child { grid-row: 1; }
  td:last-child { grid-row: 1; grid-column: 2; }
  td:nth-child(2) { grid-column: 1 / -1; color: var(--muted); font-size: 14px; margin-top: 4px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .grid, .sec-grid, .split { grid-template-columns: 1fr; }
  .sec-grid li { padding: 16px 0 18px; }
  .tile.has-shot { grid-column: auto; display: flex; }
  .tile.has-shot .tile-shot { margin: -4px -4px 8px; }
  .tile.has-shot .tile-shot img { height: auto; aspect-ratio: 16 / 9; }
  .feature { padding: 20px; border-radius: 20px; }
  .panel-head { flex-direction: column-reverse; }
  .screens-in { width: 82%; }
}
