:root {
  color-scheme: dark;
  --bg: #06100c;
  --panel: #0c1914;
  --panel-2: #11231b;
  --ink: #f3f6e9;
  --muted: #a8b6aa;
  --line: rgba(224, 255, 226, .16);
  --portal: #b9ff42;
  --portal-2: #35f39b;
  --cyan: #62dfff;
  --blue: #67a8ff;
  --yellow: #ffe16a;
  --orange: #ff8e59;
  --pink: #ff77ac;
  --violet: #aa83ff;
  --red: #ff6060;
  --font: "Bricolage Grotesque", system-ui, sans-serif;
  --mono: "DM Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; overflow-x: hidden; background: var(--bg); color: var(--ink); font-family: var(--font); line-height: 1.5; }
a { color: inherit; }
button { font: inherit; }
.shell { width: min(1240px, calc(100% - 56px)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 200; top: -100px; left: 20px; padding: 12px 18px; background: var(--portal); color: #06100c; font-weight: 800; }
.skip-link:focus { top: 20px; }

.site-header { position: fixed; z-index: 80; inset: 0 0 auto; border-bottom: 1px solid transparent; background: rgba(6, 16, 12, .62); backdrop-filter: blur(18px); transition: border-color .2s ease, background .2s ease; }
.site-header.is-scrolled { border-color: var(--line); background: rgba(6, 16, 12, .92); }
.nav { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.wordmark { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.wordmark-mark { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: var(--portal); color: #06100c; font-weight: 900; letter-spacing: -.08em; }
.wordmark > span:last-child { display: grid; line-height: 1.1; }
.wordmark strong { font-size: .9rem; letter-spacing: .08em; }
.wordmark small { color: var(--muted); font: .72rem var(--mono); }
.nav-links { display: flex; align-items: center; gap: 25px; }
.nav-links a { color: #dce5dc; text-decoration: none; font-size: .9rem; font-weight: 700; }
.nav-links a:hover { color: var(--portal); }
.nav-links .nav-primary { padding: 9px 13px; border: 1px solid rgba(185, 255, 66, .42); border-radius: 99px; color: var(--portal); }
.menu-button { display: none; min-height: 44px; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 99px; padding: 8px 12px; background: transparent; color: var(--ink); }
body.menu-open { overflow: hidden; }

.hero { position: relative; min-height: 980px; display: grid; grid-template-columns: minmax(0, .84fr) minmax(560px, 1.16fr); align-items: center; gap: clamp(34px, 5vw, 72px); padding-top: 122px; padding-bottom: 82px; overflow: clip; }
.hero:before { content: ""; position: absolute; z-index: -1; width: 600px; height: 600px; left: -260px; top: -250px; border-radius: 50%; background: rgba(98, 223, 255, .15); filter: blur(120px); }
.hero-copy { position: relative; z-index: 2; }
.eyebrow, .section-tag, .role, .boundary { font-family: var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0; color: #c9d6cc; font-size: .72rem; }
.eyebrow span { width: 8px; height: 8px; border-radius: 50%; background: var(--portal); box-shadow: 0 0 18px var(--portal); animation: pulse 2.2s ease-in-out infinite; }
.hero h1 { display: grid; width: max-content; margin: 28px 0 30px; font-size: clamp(4.9rem, 8.2vw, 8rem); font-weight: 750; line-height: .73; letter-spacing: -.082em; text-transform: uppercase; }
.hero h1 span:last-child { color: transparent; -webkit-text-stroke: 2px var(--ink); }
.hero-lede { max-width: 710px; margin: 0; color: #c1cec3; font-size: clamp(1.2rem, 2vw, 1.55rem); line-height: 1.5; }
.hero-actions, .official-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 28px; min-width: 220px; padding: 15px 18px; border: 1px solid var(--line); border-radius: 5px; text-decoration: none; font-weight: 800; transition: transform .2s ease, border-color .2s ease; }
.button:hover { transform: translateY(-3px); }
.button-primary { border-color: var(--portal); background: var(--portal); color: #06100c; }
.button-secondary { background: rgba(255, 255, 255, .04); }
.credit { max-width: 640px; margin: 28px 0 0; color: #7f9184; font: .74rem/1.6 var(--mono); text-transform: uppercase; }
.credit strong { color: #b9c6bc; }

.atlas-portrait { display: block; background-image: url("/assets/nick-morty-cast-atlas-v2.avif"); background-repeat: no-repeat; background-size: 400% 200%; }
.portrait-nick { background-position: 0 0; }
.portrait-morty { background-position: 33.333% 0; }
.portrait-summer { background-position: 66.667% 0; }
.portrait-beth { background-position: 100% 0; }
.portrait-jerry { background-position: 0 100%; }
.portrait-meeseeks { background-position: 33.333% 100%; }
.portrait-birdperson { background-position: 66.667% 100%; }
.portrait-citadel { background-position: 100% 100%; }

.cable-stage { position: relative; min-width: 0; padding: 13px; border: 1px solid rgba(185, 255, 66, .34); border-radius: 24px; background: #07110f; box-shadow: 0 38px 100px rgba(0, 0, 0, .46), inset 0 0 60px rgba(53, 243, 155, .045); overflow: hidden; isolation: isolate; }
.cable-stage:after { content: ""; position: absolute; z-index: 8; inset: 0; pointer-events: none; opacity: .12; background: repeating-linear-gradient(0deg, transparent 0 3px, rgba(255, 255, 255, .09) 4px); mix-blend-mode: screen; }
.cable-topline { min-height: 40px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 7px 10px; color: #83958a; font: .59rem var(--mono); letter-spacing: .08em; }
.cable-topline span { display: flex; align-items: center; gap: 8px; color: var(--portal); }
.cable-topline i { width: 7px; height: 7px; border-radius: 50%; background: var(--portal); box-shadow: 0 0 14px var(--portal); animation: pulse 2.2s ease-in-out infinite; }
.cable-topline b { font-weight: 500; }
.channel-map { position: relative; min-height: 500px; border: 1px solid rgba(224, 255, 226, .13); border-radius: 15px; background: radial-gradient(circle at 50% 50%, rgba(53, 243, 155, .08), transparent 42%), linear-gradient(145deg, #0b1814, #07100d); overflow: hidden; }
.channel-map:before { content: ""; position: absolute; z-index: 0; inset: 8% 18%; border: 1px dashed rgba(98, 223, 255, .13); border-radius: 50%; transform: rotate(-8deg); }
.portal-vortex { position: absolute; z-index: 0; left: 50%; top: 50%; width: 235px; height: 360px; pointer-events: none; transform: translate(-50%, -50%); filter: drop-shadow(0 0 24px rgba(113, 255, 20, .42)); }
.portal-vortex svg { width: 100%; height: 100%; overflow: visible; }
.portal-aura { fill: rgba(99, 255, 34, .22); filter: blur(13px); }
.portal-rim { fill: none; stroke: #c8ff28; stroke-width: 24; stroke-linecap: round; stroke-linejoin: round; }
.portal-core { stroke: #edff52; stroke-width: 5; }
.portal-swirl { transform-origin: 140px 195px; animation: portal-roll 10s linear infinite; }
.portal-swirl path { fill: none; stroke: rgba(255, 255, 151, .55); stroke-width: 13; stroke-linecap: round; stroke-dasharray: 22 18 60 13; }
.portal-flecks { fill: rgba(241, 255, 103, .88); animation: portal-fizz 2.4s ease-in-out infinite alternate; }
.portal-spatter { fill: #9fff20; filter: drop-shadow(0 0 5px rgba(185, 255, 66, .9)); animation: portal-fizz 1.8s ease-in-out infinite alternate-reverse; }
.cable-wires { position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; }
.wire { fill: none; stroke: rgba(167, 188, 172, .18); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 5 11; transition: stroke .24s ease, stroke-width .24s ease, filter .24s ease; }
[data-active-flow="build"] .wire-build,
[data-active-flow="test"] .wire-test,
[data-active-flow="guard"] .wire-guard,
[data-active-flow="recover"] .wire-recover,
[data-active-flow="review"] .wire-review { stroke: var(--portal); stroke-width: 3.5; filter: drop-shadow(0 0 7px rgba(185, 255, 66, .8)); animation: signal-dash 1.6s linear infinite; }
.channel-node { --node-color: var(--portal); position: absolute; z-index: 3; width: 88px; min-height: 132px; display: grid; justify-items: center; align-content: start; gap: 2px; padding: 0 4px 6px; border-radius: 13px; color: #d9e4da; text-align: center; text-decoration: none; transform: translate(-50%, -50%); transition: color .2s ease, transform .2s ease, filter .2s ease; }
.channel-node .atlas-portrait { width: 72px; aspect-ratio: 3 / 4; border: 1px solid color-mix(in srgb, var(--node-color), transparent 45%); border-radius: 12px; background-color: #0c1815; box-shadow: 0 8px 22px rgba(0, 0, 0, .38); transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.channel-node b { font-size: .74rem; line-height: 1.1; }
.channel-node small { color: #73877a; font: .5rem var(--mono); letter-spacing: .07em; text-transform: uppercase; }
.channel-node:hover, .channel-node:focus-visible, .channel-node.is-selected { z-index: 5; color: white; transform: translate(-50%, -50%) scale(1.07); filter: saturate(1.18); }
.channel-node:hover .atlas-portrait, .channel-node:focus-visible .atlas-portrait, .channel-node.is-selected .atlas-portrait { border-color: var(--node-color); box-shadow: 0 0 0 3px color-mix(in srgb, var(--node-color), transparent 76%), 0 0 28px color-mix(in srgb, var(--node-color), transparent 62%); }
.node-nick { --node-color: var(--yellow); left: 17%; top: 50%; }
.node-morty { --node-color: var(--cyan); left: 50%; top: 50%; width: 108px; }
.node-morty .atlas-portrait { width: 92px; }
.node-summer { --node-color: var(--pink); left: 18%; top: 18%; }
.node-beth { --node-color: var(--orange); left: 81%; top: 18%; }
.node-jerry { --node-color: var(--yellow); left: 18%; top: 83%; }
.node-meeseeks { --node-color: var(--cyan); left: 43%; top: 83%; }
.node-birdperson { --node-color: var(--violet); left: 83%; top: 50%; }
.node-citadel { --node-color: var(--portal); left: 82%; top: 83%; }
[data-active-flow="build"] :is(.node-nick, .node-morty, .node-meeseeks),
[data-active-flow="test"] :is(.node-morty, .node-jerry),
[data-active-flow="guard"] :is(.node-birdperson, .node-morty),
[data-active-flow="recover"] :is(.node-beth, .node-morty),
[data-active-flow="review"] :is(.node-morty, .node-citadel) { filter: saturate(1.2) drop-shadow(0 0 10px rgba(185, 255, 66, .24)); }
.cable-dossier { position: relative; z-index: 4; display: grid; grid-template-columns: 1fr auto; gap: 4px 22px; align-items: start; min-height: 142px; margin-top: 10px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px; background: #0b1713; }
.cable-dossier > p { grid-column: 1; margin: 0; color: var(--portal); font: .57rem var(--mono); letter-spacing: .09em; }
.cable-dossier h2 { grid-column: 1; margin: 2px 0 0; font-size: clamp(2.2rem, 4vw, 3.6rem); line-height: .82; letter-spacing: -.055em; }
.cable-dossier > strong { grid-column: 1; color: #96aaa0; font: .57rem var(--mono); letter-spacing: .08em; }
.cable-dossier > span { grid-column: 1; max-width: 620px; color: #aab9ae; font-size: .84rem; line-height: 1.45; }
.cable-dossier > a { grid-column: 2; grid-row: 1 / 5; align-self: center; max-width: 128px; color: var(--portal); font-size: .78rem; font-weight: 750; text-decoration: none; text-align: right; }
.flow-console { position: relative; z-index: 4; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; }
.flow-console > span { margin-right: 5px; color: #718278; font: .54rem var(--mono); letter-spacing: .08em; }
.flow-console button { min-height: 36px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 99px; background: transparent; color: #a6b5aa; cursor: pointer; font: .58rem var(--mono); text-transform: uppercase; }
.flow-console button:hover, .flow-console button:focus-visible, .flow-console button.is-active { border-color: rgba(185, 255, 66, .55); background: rgba(185, 255, 66, .12); color: var(--portal); }
.flow-status { position: relative; z-index: 4; min-height: 36px; margin: 9px 4px 0; color: #819286; font: .58rem/1.5 var(--mono); }
.flow-status b { color: var(--portal); }
.cable-legend { position: relative; z-index: 4; margin-top: 8px; border-top: 1px solid var(--line); padding: 9px 4px 1px; color: #829287; font-size: .7rem; }
.cable-legend summary { color: #a7b7ab; cursor: pointer; font: .58rem var(--mono); }
.cable-legend ul { margin: 10px 0 5px; padding-left: 20px; }
.cable-legend li + li { margin-top: 5px; }

.thesis { padding: 64px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #0a1510; }
.thesis-grid { display: grid; grid-template-columns: .35fr 1.25fr .7fr; gap: clamp(30px, 6vw, 90px); align-items: start; }
.section-tag { margin: 0; color: var(--portal); font-size: .7rem; }
.thesis blockquote { margin: 0; font-size: clamp(1.8rem, 3.8vw, 3.6rem); line-height: 1.08; letter-spacing: -.045em; }
.thesis-grid > p:last-child { margin: 6px 0 0; color: var(--muted); }

.duo { padding-top: 140px; padding-bottom: 145px; }
.section-heading { max-width: 940px; margin-bottom: 65px; }
.section-heading h2, .citadel-intro h2, .official-copy h2 { margin: 14px 0 0; font-size: clamp(4rem, 8vw, 8rem); line-height: .84; letter-spacing: -.065em; }
.section-heading h2 em, .citadel-intro h2 em { color: transparent; font-style: normal; -webkit-text-stroke: 1.5px var(--ink); }
.duo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.duo-card { position: relative; min-height: 610px; display: flex; flex-direction: column; align-items: flex-start; padding: clamp(32px, 5vw, 62px); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; scroll-margin-top: 95px; }
.duo-card:after { content: ""; position: absolute; width: 330px; height: 330px; right: -150px; bottom: -150px; border-radius: 50%; background: currentColor; opacity: .08; }
.duo-card.nick { background: var(--yellow); color: #17150d; }
.duo-card.morty { background: linear-gradient(145deg, #121f1a, #0e2b20); }
.duo-portrait { width: 165px; aspect-ratio: 3 / 4; margin-bottom: auto; border: 2px solid currentColor; border-radius: 18px; background-color: #0d1815; box-shadow: 0 20px 48px rgba(0, 0, 0, .22); transform: rotate(-2deg); }
.duo-card.morty .duo-portrait { border-color: var(--portal); box-shadow: 0 20px 48px rgba(0, 0, 0, .35), 0 0 40px rgba(185, 255, 66, .12); transform: rotate(2deg); }
.role { margin: 42px 0 8px; font-size: .65rem; }
.duo-card.morty .role { color: var(--portal); }
.duo-card h3 { margin: 0; font-size: clamp(4rem, 7vw, 7rem); line-height: .8; letter-spacing: -.07em; }
.duo-card > p:not(.role) { max-width: 560px; margin: 24px 0 0; font-size: 1.08rem; }
.duo-card.morty > p:not(.role) { color: #b8c7bb; }
.duo-card a { position: relative; z-index: 2; margin-top: 32px; padding-bottom: 3px; border-bottom: 2px solid currentColor; text-decoration: none; font-weight: 800; }

.cast { padding: 135px 0; background: #e9eadb; color: #101712; }
.cast .section-tag { color: #416c1f; }
.cast .section-heading h2 em { -webkit-text-stroke-color: #101712; }
.cast-heading { display: grid; grid-template-columns: 1fr; }
.section-lede { max-width: 660px; margin: 30px 0 0; color: #566158; font-size: 1.15rem; }
.cast-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.cast-card { position: relative; min-height: 420px; display: grid; grid-template-columns: 112px 1fr; align-content: start; gap: 30px; padding: 34px; border: 1px solid rgba(16, 23, 18, .16); border-radius: 12px; background: #f7f6eb; overflow: hidden; scroll-margin-top: 95px; }
.cast-card:before { content: ""; position: absolute; inset: auto 0 0; height: 7px; background: var(--card-color); }
.cast-portrait { width: 108px; aspect-ratio: 3 / 4; border: 2px solid #101712; border-radius: 14px; background-color: var(--card-color); box-shadow: 5px 6px 0 color-mix(in srgb, var(--card-color), #101712 35%); transform: rotate(-2deg); }
.cast-copy { min-width: 0; }
.cast-copy .role { margin: 3px 0 12px; color: #5e685f; }
.cast-copy h3 { margin: 0; font-size: clamp(2.6rem, 4vw, 4.5rem); line-height: .88; letter-spacing: -.055em; }
.cast-copy > p:last-child { max-width: 520px; margin: 20px 0 0; color: #4c574e; }
.boundary { grid-column: 1 / -1; align-self: end; margin-top: auto; padding-top: 28px; border-top: 1px solid rgba(16, 23, 18, .15); color: #5b665d; font-size: .62rem; }
.cast-summer { --card-color: var(--pink); }
.cast-beth { --card-color: var(--orange); }
.cast-jerry { --card-color: var(--yellow); }
.cast-meeseeks { --card-color: var(--cyan); }
.cast-birdperson { --card-color: var(--violet); }
.cast-morty { --card-color: var(--portal); }

.citadel { display: grid; grid-template-columns: .75fr 1.25fr; gap: clamp(55px, 9vw, 130px); padding-top: 145px; padding-bottom: 145px; }
.citadel-intro { position: sticky; top: 120px; align-self: start; }
.citadel-intro > p:last-child { max-width: 470px; color: var(--muted); font-size: 1.08rem; }
.council { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.council-card { min-height: 330px; display: flex; flex-direction: column; padding: 28px; border: 1px solid var(--line); border-radius: 11px; background: var(--panel); }
.council-card > span, .synthesis > span { color: #728379; font: .7rem var(--mono); }
.council-card > p { margin: auto 0 8px; color: var(--card); font: .7rem var(--mono); letter-spacing: .12em; }
.council-card h3 { margin: 0; font-size: 3.3rem; line-height: .9; letter-spacing: -.05em; }
.council-card small { display: block; margin-top: 16px; color: var(--muted); font-size: .9rem; }
.council-card.builder { --card: var(--portal); }
.council-card.skeptic { --card: var(--red); }
.council-card.strategist { --card: var(--cyan); }
.council-card:nth-child(3) { grid-column: span 2; min-height: 280px; }
.synthesis { grid-column: span 2; display: grid; grid-template-columns: 90px 1fr; gap: 20px; align-items: center; min-height: 230px; padding: 30px; border: 1px solid rgba(185, 255, 66, .34); border-radius: 11px; background: linear-gradient(135deg, rgba(185, 255, 66, .12), rgba(53, 243, 155, .03)); }
.synthesis p { margin: 0 0 8px; color: var(--portal); font: .7rem var(--mono); letter-spacing: .12em; }
.synthesis h3 { max-width: 560px; margin: 0; font-size: clamp(2rem, 4vw, 4.2rem); line-height: .93; letter-spacing: -.045em; }

.translation { padding: 130px 0; background: var(--portal); color: #07110d; }
.translation .section-tag { color: #07110d; }
.translation .section-heading h2 em { -webkit-text-stroke-color: #07110d; }
.translation-list { margin: 0; padding: 0; border-top: 2px solid #07110d; list-style: none; }
.translation-list li { display: grid; grid-template-columns: 72px .8fr 1fr; gap: 28px; align-items: center; padding: 29px 0; border-bottom: 1px solid rgba(7, 17, 13, .32); }
.translation-list span { font: .75rem var(--mono); }
.translation-list strong { font-size: clamp(1.25rem, 2.4vw, 2rem); letter-spacing: -.025em; }
.translation-list p { margin: 0; color: rgba(7, 17, 13, .72); }

.official { min-height: 720px; display: grid; grid-template-columns: .78fr 1.22fr; gap: clamp(50px, 8vw, 120px); align-items: center; padding-top: 120px; padding-bottom: 120px; }
.official-art { position: relative; min-height: 480px; display: flex; align-items: center; justify-content: center; gap: 12px; border: 15px solid #83f31f; border-radius: 50% 46% 52% 47%; background: radial-gradient(ellipse at 45% 40%, #efff74 0, #bdff25 31%, #50e816 70%, #0c9a19 100%); box-shadow: 0 0 0 5px rgba(197, 255, 47, .22), 0 0 54px rgba(82, 239, 22, .28); overflow: hidden; transform: rotate(-2deg); }
.official-art:before, .official-art:after { content: ""; position: absolute; width: 122%; height: 62px; left: -11%; border: 12px solid rgba(248, 255, 141, .5); border-left-color: transparent; border-right-color: transparent; border-radius: 50%; transform: rotate(-16deg); }
.official-art:before { top: 23%; }
.official-art:after { bottom: 21%; transform: rotate(14deg); }
.official-cast { position: relative; z-index: 2; width: min(78%, 390px); display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; transform: rotate(-2deg); }
.official-cast .atlas-portrait { aspect-ratio: 3 / 4; border: 1px solid rgba(224, 255, 226, .25); border-radius: 8px; background-color: #0c1714; box-shadow: 0 8px 22px rgba(0, 0, 0, .28); }
.official-copy h2 { font-size: clamp(3.3rem, 6.6vw, 6.7rem); }
.official-copy > p:not(.section-tag) { max-width: 720px; color: var(--muted); font-size: 1.1rem; }

.footer { min-height: 145px; display: grid; grid-template-columns: auto 1fr auto; gap: 40px; align-items: center; border-top: 1px solid var(--line); color: #849489; font: .68rem/1.5 var(--mono); }
.footer p { max-width: 600px; margin: 0 auto; text-align: center; }

.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .65s ease, transform .65s cubic-bezier(.2, .72, .25, 1); }
.js .reveal.is-visible { opacity: 1; transform: none; }
:focus-visible { outline: 3px solid var(--portal); outline-offset: 4px; }

@keyframes pulse { 50% { opacity: .42; transform: scale(.82); } }
@keyframes signal-dash { to { stroke-dashoffset: -32; } }
@keyframes portal-roll { to { transform: rotate(360deg); } }
@keyframes portal-fizz { 50% { opacity: .55; } 100% { transform: scale(1.025); } }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; padding-top: 145px; }
  .hero-copy { max-width: 760px; }
  .hero h1 { font-size: clamp(5.2rem, 16vw, 8.6rem); }
  .cable-stage { width: min(100%, 760px); margin-inline: auto; }
  .thesis-grid { grid-template-columns: 1fr; gap: 22px; }
  .thesis-grid > p:last-child { max-width: 620px; }
  .duo-grid, .cast-grid { grid-template-columns: 1fr; }
  .citadel { grid-template-columns: 1fr; }
  .citadel-intro { position: static; }
  .official { grid-template-columns: 1fr; }
  .official-art { min-height: 400px; order: 2; }
}

@media (max-width: 700px) {
  .shell { width: min(100% - 28px, 560px); }
  .nav { min-height: 68px; }
  .wordmark-mark { width: 37px; height: 37px; }
  .menu-button { display: flex; }
  .menu-button[aria-expanded="true"] span:last-child { transform: rotate(45deg); }
  .nav-links { position: absolute; inset: 68px 0 auto; display: none; padding: 14px 14px 22px; border-bottom: 1px solid var(--line); background: #06100c; }
  .nav-links.is-open { display: grid; gap: 0; }
  .nav-links a { padding: 14px 5px; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .nav-links .nav-primary { margin-top: 12px; border: 1px solid rgba(185, 255, 66, .42); text-align: center; }
  .hero { min-height: auto; gap: 26px; padding-top: 112px; padding-bottom: 60px; }
  .hero-copy { min-width: 0; }
  .hero h1 { width: auto; margin-top: 24px; font-size: min(20vw, 5.4rem); }
  .hero h1 span:last-child { -webkit-text-stroke-width: 1px; }
  .hero-lede { font-size: 1.08rem; }
  .hero-actions, .official-actions { display: grid; }
  .button { width: 100%; }
  .credit { font-size: .66rem; }
  .cable-stage { width: 100%; padding: 9px; border-radius: 17px; }
  .cable-topline { min-height: 35px; padding: 0 5px 7px; }
  .channel-map { min-height: auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; padding: 12px 7px 10px; }
  .channel-map:before, .cable-wires { display: none; }
  .portal-vortex { width: 230px; height: 320px; opacity: .5; }
  .channel-node, .channel-node:hover, .channel-node:focus-visible, .channel-node.is-selected { position: static; width: auto; min-width: 0; min-height: 0; gap: 3px; padding: 3px; transform: none; }
  .channel-node .atlas-portrait, .node-morty .atlas-portrait { width: 100%; max-width: 74px; }
  .channel-node b { max-width: 100%; overflow: hidden; font-size: .63rem; text-overflow: ellipsis; white-space: nowrap; }
  .channel-node small { font-size: .42rem; }
  .cable-dossier { grid-template-columns: 1fr; min-height: 0; padding: 16px; }
  .cable-dossier > a { grid-column: 1; grid-row: auto; max-width: none; margin-top: 8px; text-align: left; }
  .flow-console > span { flex-basis: 100%; }
  .flow-console button { flex: 1 1 calc(33.333% - 8px); }
  .flow-status { min-height: 52px; }
  .thesis { padding: 52px 0; }
  .duo, .citadel { padding-top: 90px; padding-bottom: 90px; }
  .section-heading { margin-bottom: 38px; }
  .section-heading h2, .citadel-intro h2, .official-copy h2 { font-size: min(15vw, 5.1rem); }
  .duo-card { min-height: 560px; padding: 28px; }
  .duo-portrait { width: 138px; }
  .duo-card h3 { font-size: 4.4rem; }
  .cast { padding: 88px 0; }
  .cast-card { min-height: 0; grid-template-columns: 78px 1fr; gap: 20px; padding: 24px; }
  .cast-portrait { width: 76px; }
  .cast-copy h3 { font-size: 2.7rem; }
  .cast-copy > p:last-child { grid-column: 1 / -1; font-size: .95rem; }
  .council { grid-template-columns: 1fr; }
  .council-card, .council-card:nth-child(3), .synthesis { grid-column: auto; }
  .council-card { min-height: 260px; }
  .synthesis { grid-template-columns: 1fr; min-height: 260px; }
  .translation { padding: 85px 0; }
  .translation-list li { grid-template-columns: 38px 1fr; gap: 15px; align-items: start; }
  .translation-list p { grid-column: 2; }
  .official { min-height: auto; padding-top: 85px; padding-bottom: 85px; }
  .official-art { min-height: 330px; }
  .footer { grid-template-columns: 1fr; gap: 12px; padding-top: 38px; padding-bottom: 38px; }
  .footer p { margin: 0; text-align: left; }
}

@media (max-width: 360px) {
  .cast-card { grid-template-columns: 1fr; }
  .cast-copy h3 { font-size: 2.5rem; overflow-wrap: anywhere; }
  .boundary { grid-column: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .eyebrow span, .cable-topline i, .wire, .portal-swirl, .portal-flecks, .portal-spatter { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .button, .site-header, .wire, .channel-node, .channel-node .atlas-portrait { transition: none; }
}
