:root {
  --ink: #071c47;
  --deep: #041333;
  --navy: #06255d;
  --blue: #0f65ce;
  --cyan: #42cfff;
  --baby: #dff4ff;
  --ice: #f5fbff;
  --muted: #56708f;
  --line: rgba(11, 69, 135, .15);
  --shadow: 0 30px 80px rgba(11, 61, 116, .16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; overflow-x: hidden; color: var(--ink); background: var(--ice); font-family: "Leelawadee UI", "Noto Sans Thai", Tahoma, sans-serif; }
body.reduce-motion *, body.reduce-motion *::before, body.reduce-motion *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
img { display: block; max-width: 100%; }
button, a { font: inherit; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
.skip-link { position: fixed; z-index: 999; top: 8px; left: 8px; padding: 10px 14px; color: white; background: var(--deep); transform: translateY(-150%); }
.skip-link:focus { transform: none; }
.scroll-progress { position: fixed; z-index: 200; top: 0; left: 0; width: 100%; height: 3px; background: rgba(255,255,255,.08); }
.scroll-progress span { display: block; width: 100%; height: 100%; transform: scaleX(0); transform-origin: left; background: linear-gradient(90deg, var(--cyan), #fff); }

.site-header { position: fixed; z-index: 100; top: 3px; left: 0; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; width: 100%; height: 78px; padding: 0 clamp(18px, 4vw, 68px); border-bottom: 1px solid rgba(255,255,255,.16); color: white; background: linear-gradient(180deg, rgba(3,17,48,.92), rgba(3,17,48,.42)); backdrop-filter: blur(18px); }
.identity { display: flex; align-items: center; gap: 12px; width: max-content; }
.identity-mark { display: grid; place-items: center; width: 41px; height: 41px; border: 1px solid rgba(255,255,255,.5); border-radius: 14px; background: rgba(255,255,255,.1); font: 800 12px Arial, sans-serif; letter-spacing: .12em; }
.identity strong, .identity small { display: block; }
.identity strong { font-size: 13px; }
.identity small { margin-top: 2px; font: 700 8px Arial, sans-serif; letter-spacing: .22em; opacity: .55; }
.chapter-nav { display: flex; align-items: center; gap: 24px; font: 700 9px Arial, sans-serif; letter-spacing: .08em; color: rgba(255,255,255,.72); }
.chapter-nav a { position: relative; padding: 8px 0; }
.chapter-nav a::after { content: ""; position: absolute; right: 0; bottom: 2px; left: 0; height: 1px; background: var(--cyan); transform: scaleX(0); transition: transform .25s; }
.chapter-nav a:hover::after, .chapter-nav a:focus-visible::after { transform: scaleX(1); }
.header-actions { display: flex; justify-content: flex-end; gap: 8px; }
.motion-toggle, .pdf-link, .annotate-launch { border: 1px solid rgba(255,255,255,.25); border-radius: 999px; color: white; background: rgba(255,255,255,.08); font-size: 10px; cursor: pointer; }
.annotate-launch { padding: 9px 13px; color: #06245a; border-color: rgba(255,255,255,.45); background: linear-gradient(135deg, #fff, #9fe5ff); font-weight: 800; box-shadow: 0 8px 24px rgba(55,198,250,.18); }
.annotate-launch span { margin-right: 5px; font-size: 13px; }
.motion-toggle { padding: 9px 12px; }
.motion-toggle span { margin-right: 5px; color: #4fe1ff; }
.motion-toggle[aria-pressed="true"] span { color: #9aaac0; }
.pdf-link { padding: 9px 13px; }
.pdf-link span { color: var(--cyan); }

.landing { position: relative; min-height: 100svh; overflow: hidden; display: grid; grid-template-columns: minmax(320px, .88fr) minmax(480px, 1.12fr); align-items: center; gap: 5vw; padding: 120px clamp(24px, 6vw, 96px) 80px; color: white; background: radial-gradient(circle at 70% 26%, #194f99 0, #0a316f 34%, #061d4d 63%, #031130 100%); }
.landing-grid { position: absolute; inset: 0; opacity: .17; background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px); background-size: 64px 64px; mask-image: linear-gradient(90deg, #000, transparent 78%); }
.landing-glow { position: absolute; border-radius: 50%; pointer-events: none; }
.glow-a { width: 620px; height: 620px; top: -310px; right: 4%; background: radial-gradient(circle at 35% 40%, rgba(88,211,255,.38), rgba(30,113,211,.04) 62%, transparent 70%); }
.glow-b { width: 320px; height: 320px; bottom: -145px; left: 37%; border: 1px solid rgba(95,211,255,.2); box-shadow: inset 0 0 90px rgba(77,198,255,.06); }
.landing-copy, .landing-stage { position: relative; z-index: 2; }
.overline { display: flex; align-items: center; gap: 12px; margin: 0 0 24px; color: #9fe4ff; font: 800 9px/1.5 Arial, sans-serif; letter-spacing: .19em; }
.overline span { width: 35px; height: 1px; background: var(--cyan); }
.landing h1 { margin: 0; font-size: clamp(52px, 6.2vw, 98px); line-height: .94; letter-spacing: -.055em; }
.landing h1 em { color: #72ddff; font-style: normal; text-shadow: 0 0 38px rgba(70,203,255,.23); }
.landing-lead { max-width: 620px; margin: 30px 0 0; color: rgba(235,248,255,.76); font-size: clamp(15px, 1.16vw, 19px); line-height: 1.85; }
.landing-actions { display: flex; align-items: center; gap: 27px; margin-top: 35px; }
.primary-cta { padding: 14px 20px; border-radius: 999px; color: var(--deep); background: linear-gradient(135deg, #fff, #a8e8ff); box-shadow: 0 14px 34px rgba(35,169,234,.2); font-weight: 800; font-size: 12px; }
.primary-cta span { margin-left: 10px; }
.collection-count { display: flex; align-items: center; gap: 10px; padding-left: 24px; border-left: 1px solid rgba(255,255,255,.2); }
.collection-count strong { color: #66dbff; font: 800 34px/1 Arial, sans-serif; }
.collection-count small { color: rgba(255,255,255,.55); font: 700 8px/1.45 Arial, sans-serif; letter-spacing: .14em; }
.landing-stage { --rx: 0deg; --ry: 0deg; min-width: 0; perspective: 1300px; transform: rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .14s ease-out; }
.stage-shadow { position: absolute; inset: 8% -4% -5% 8%; border: 1px solid rgba(114,220,255,.34); border-radius: 30px; transform: rotate(3deg); background: rgba(64,175,239,.07); }
.stage-image { position: relative; overflow: hidden; width: 100%; padding: 0; border: 1px solid rgba(255,255,255,.28); border-radius: clamp(16px, 2vw, 30px); background: #0c3471; transform: rotateY(-6deg) rotateX(1deg); box-shadow: 0 42px 95px rgba(0,0,0,.46), 0 0 70px rgba(47,182,255,.12); cursor: zoom-in; }
.stage-image img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.stage-label { position: absolute; z-index: 4; padding: 9px 13px; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; color: #a8e8ff; background: rgba(3,27,68,.82); backdrop-filter: blur(9px); font: 800 8px Arial, sans-serif; letter-spacing: .18em; }
.label-a { top: -19px; right: 8%; }
.label-b { bottom: -18px; left: 4%; }
.scroll-signal { position: absolute; z-index: 3; bottom: 18px; left: 50%; display: flex; flex-direction: column; align-items: center; gap: 8px; transform: translateX(-50%); color: rgba(255,255,255,.42); font: 700 7px Arial, sans-serif; letter-spacing: .22em; }
.scroll-signal i { width: 1px; height: 27px; background: linear-gradient(var(--cyan), transparent); }

.curator-note { display: grid; grid-template-columns: 1.35fr .65fr; gap: 7vw; align-items: center; padding: clamp(70px, 9vw, 140px) clamp(24px, 8vw, 130px); background: white; }
.curator-note > p { margin: 0; max-width: 930px; font-size: clamp(24px, 2.6vw, 46px); line-height: 1.52; letter-spacing: -.025em; }
.curator-sign { padding-left: 28px; border-left: 1px solid var(--line); }
.curator-sign span, .curator-sign strong, .curator-sign small { display: block; }
.curator-sign span { margin-bottom: 12px; color: var(--blue); font: 800 9px Arial, sans-serif; letter-spacing: .19em; }
.curator-sign strong { font-size: 17px; }
.curator-sign small { margin-top: 6px; color: var(--muted); line-height: 1.6; }

.exhibition { overflow: clip; }
.chapter-divider { position: relative; display: grid; grid-template-columns: .4fr 1.2fr 1fr; gap: 30px; align-items: end; min-height: 380px; padding: clamp(80px, 11vw, 170px) clamp(24px, 7vw, 112px) 70px; color: white; background: linear-gradient(125deg, #031334, #07357b); }
.chapter-divider::before { content: ""; position: absolute; inset: 0; opacity: .18; background: repeating-linear-gradient(90deg, transparent 0 89px, rgba(255,255,255,.12) 90px); }
.chapter-divider > * { position: relative; z-index: 1; }
.chapter-divider span { color: #76dfff; font: 800 9px Arial, sans-serif; letter-spacing: .22em; }
.chapter-divider h2 { margin: 0; font-size: clamp(38px, 5vw, 78px); line-height: 1; letter-spacing: -.045em; }
.chapter-divider p { max-width: 520px; margin: 0; color: rgba(255,255,255,.62); font-size: 14px; line-height: 1.8; }
.chapter-divider i { position: absolute; right: 4vw; bottom: -26px; color: rgba(255,255,255,.06); font: 900 clamp(150px, 22vw, 340px)/.7 Arial, sans-serif; }

.visual-story { position: relative; display: grid; grid-template-columns: .72fr 1.28fr; gap: clamp(28px, 5vw, 85px); align-items: center; min-height: min(920px, 100svh); padding: clamp(76px, 9vw, 145px) clamp(24px, 7vw, 112px); border-bottom: 1px solid var(--line); background: #f7fcff; }
.story-meta { position: relative; z-index: 3; max-width: 560px; }
.story-no { display: inline-block; margin-bottom: 38px; color: var(--blue); font: 900 76px/1 Arial, sans-serif; letter-spacing: -.06em; }
.story-meta > p { margin: 0 0 10px; color: var(--blue); font: 800 9px Arial, sans-serif; letter-spacing: .2em; }
.story-meta h3 { margin: 0; font-size: clamp(32px, 4vw, 65px); line-height: 1.06; letter-spacing: -.045em; }
.story-meta em { display: block; margin-top: 12px; color: #7e98b6; font: italic 500 clamp(16px, 1.6vw, 24px) Georgia, serif; }
.story-description { display: block; margin-top: 25px; color: var(--muted); font-size: 15px; line-height: 1.85; }
.story-open { margin-top: 27px; padding: 0; border: 0; color: var(--ink); background: transparent; font-weight: 800; font-size: 12px; cursor: pointer; }
.story-open b { margin-left: 7px; color: var(--blue); }
.story-visual { position: relative; z-index: 2; overflow: hidden; width: 100%; padding: 0; border: 0; border-radius: 28px; background: white; box-shadow: var(--shadow); cursor: zoom-in; }
.story-visual img { width: 100%; aspect-ratio: 16/9; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.story-visual:hover img { transform: scale(1.018); }
.visual-index { position: absolute; z-index: 2; right: 15px; bottom: 15px; padding: 8px 11px; border-radius: 999px; color: white; background: rgba(3,26,66,.78); backdrop-filter: blur(8px); font: 800 8px Arial, sans-serif; letter-spacing: .15em; }
.story-accent { position: absolute; pointer-events: none; }
.story-accent span { font: 900 clamp(64px, 11vw, 180px)/1 Arial, sans-serif; letter-spacing: -.06em; white-space: nowrap; }

/* 17 distinct visual treatments */
.mode-cinema { min-height: 940px; grid-template-columns: 1fr; color: white; background: radial-gradient(circle at 75% 40%, #1455a7, #061c48 58%, #03112f); }
.mode-cinema .story-meta { width: 43%; }
.mode-cinema .story-meta h3, .mode-cinema .story-open { color: white; }
.mode-cinema .story-description { color: rgba(255,255,255,.68); }
.mode-cinema .story-visual { position: absolute; right: -7%; width: 62%; border: 1px solid rgba(255,255,255,.25); transform: rotate(-2deg); box-shadow: 0 45px 100px rgba(0,0,0,.5); }
.mode-cinema .story-accent { right: 4%; bottom: 3%; color: rgba(255,255,255,.035); }

.mode-editorial { grid-template-columns: 1.15fr .85fr; background: white; }
.mode-editorial .story-visual { grid-column: 1; grid-row: 1; border-radius: 2px; box-shadow: 18px 18px 0 #d6effc, var(--shadow); }
.mode-editorial .story-meta { grid-column: 2; }
.mode-editorial .story-no { position: absolute; top: -90px; right: 0; color: #d9effc; font-size: 150px; }
.mode-editorial .story-accent { top: 15%; left: -1%; color: rgba(13,89,179,.035); transform: rotate(-90deg); }

.mode-steps { grid-template-columns: 1fr; background: linear-gradient(180deg, #e6f6ff, #fff); }
.mode-steps .story-meta { display: grid; grid-template-columns: .2fr .8fr 1fr; gap: 25px; align-items: end; max-width: none; }
.mode-steps .story-no { margin: 0; }
.mode-steps .story-meta > p, .mode-steps .story-meta em { display: none; }
.mode-steps .story-description { margin: 0; }
.mode-steps .story-open { position: absolute; right: 0; bottom: -45px; }
.mode-steps .story-visual { margin-top: 35px; border-radius: 28px 28px 80px 28px; }
.mode-steps .story-accent { right: 4%; top: 7%; color: rgba(13,89,179,.045); }

.mode-portal { grid-template-columns: .82fr 1.18fr; background: #071d49; color: white; }
.mode-portal::before { content: ""; position: absolute; inset: 8% 4%; border: 1px solid rgba(100,211,255,.16); border-radius: 50%; transform: rotate(-10deg); }
.mode-portal .story-meta h3, .mode-portal .story-open { color: white; }
.mode-portal .story-description { color: rgba(255,255,255,.65); }
.mode-portal .story-visual { border: 10px solid rgba(196,237,255,.16); border-radius: 50% 50% 24px 24px / 20% 20% 24px 24px; box-shadow: 0 0 0 1px rgba(255,255,255,.18), 0 40px 100px rgba(0,0,0,.5); }
.mode-portal .story-accent { left: 2%; bottom: 3%; color: rgba(255,255,255,.035); }

.mode-lab { grid-template-columns: .6fr 1.4fr; background: repeating-linear-gradient(0deg, #f8fcff 0 59px, #deeff9 60px); }
.mode-lab .story-meta { padding: 35px; border: 1px solid var(--line); background: rgba(255,255,255,.86); box-shadow: 10px 10px 0 #bde8fb; }
.mode-lab .story-visual { border-radius: 8px; transform: rotate(1.5deg); }
.mode-lab .story-accent { right: -3%; bottom: 4%; color: rgba(13,89,179,.04); transform: rotate(-4deg); }

.mode-orbit { grid-template-columns: 1fr; min-height: 1000px; text-align: center; background: radial-gradient(circle at center, #fff 0 22%, #e4f6ff 23% 42%, #fff 43%); }
.mode-orbit::before, .mode-orbit::after { content: ""; position: absolute; left: 50%; top: 52%; border: 1px solid rgba(13,105,201,.18); border-radius: 50%; transform: translate(-50%,-50%) rotate(-12deg); }
.mode-orbit::before { width: 82vw; height: 34vw; }
.mode-orbit::after { width: 62vw; height: 24vw; transform: translate(-50%,-50%) rotate(15deg); }
.mode-orbit .story-meta { max-width: 760px; margin: 0 auto 20px; }
.mode-orbit .story-no { margin-bottom: 12px; }
.mode-orbit .story-visual { width: min(980px, 82vw); margin: auto; border-radius: 50%; border: 18px solid rgba(255,255,255,.8); }
.mode-orbit .story-accent { left: 50%; bottom: 6%; color: rgba(9,75,155,.035); transform: translateX(-50%); }

.mode-sticky { grid-template-columns: .55fr 1.45fr; min-height: 1150px; align-items: start; background: #e9f7ff; }
.mode-sticky .story-meta { position: sticky; top: 120px; }
.mode-sticky .story-visual { margin-top: 120px; border-radius: 80px 20px 80px 20px; box-shadow: -30px 30px 0 rgba(74,192,240,.18), var(--shadow); }
.mode-sticky .story-accent { right: 1%; top: 4%; color: rgba(12,82,166,.04); writing-mode: vertical-rl; }

.mode-device { color: white; background: linear-gradient(140deg, #06173c, #0a438d); }
.mode-device .story-meta h3, .mode-device .story-open { color: white; }
.mode-device .story-description { color: rgba(255,255,255,.64); }
.mode-device .story-visual { width: 85%; justify-self: center; padding: 18px; border: 1px solid rgba(255,255,255,.25); border-radius: 55px; background: linear-gradient(145deg, #133b73, #031737); box-shadow: inset 0 0 0 6px rgba(255,255,255,.05), 0 45px 90px rgba(0,0,0,.44); }
.mode-device .story-visual img { border-radius: 33px; }
.mode-device .story-accent { right: -4%; bottom: 3%; color: rgba(255,255,255,.035); transform: rotate(90deg); }

.mode-blueprint { background-color: #eaf7ff; background-image: linear-gradient(rgba(10,94,178,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(10,94,178,.08) 1px, transparent 1px); background-size: 28px 28px; }
.mode-blueprint .story-meta { padding: 35px; border: 1px solid #3f94d9; background: rgba(245,252,255,.88); }
.mode-blueprint .story-meta::before { content: "+"; position: absolute; top: -15px; left: -8px; color: var(--blue); font-size: 25px; }
.mode-blueprint .story-visual { border: 2px solid #2d86d1; border-radius: 3px; box-shadow: 10px 10px 0 rgba(13,101,200,.18); }
.mode-blueprint .story-accent { left: 5%; bottom: 3%; color: rgba(11,88,175,.045); }

.mode-split { grid-template-columns: 1fr 1fr; padding: 0; min-height: 900px; background: white; }
.mode-split .story-meta { max-width: none; height: 100%; padding: 12vw 7vw; color: white; background: linear-gradient(145deg, #06245a, #0a66c9); }
.mode-split .story-meta h3, .mode-split .story-open { color: white; }
.mode-split .story-description { color: rgba(255,255,255,.7); }
.mode-split .story-visual { width: calc(100% - 6vw); border-radius: 0; box-shadow: none; }
.mode-split .story-accent { bottom: 3%; left: 3%; color: rgba(255,255,255,.04); }

.mode-capstone { grid-template-columns: 1fr; text-align: center; color: white; background: #031331; }
.mode-capstone::before { content: ""; position: absolute; inset: 0; opacity: .25; background: radial-gradient(circle at 50% 45%, #1458a9, transparent 50%); }
.mode-capstone .story-meta { max-width: 900px; margin: auto; }
.mode-capstone .story-meta h3, .mode-capstone .story-open { color: white; }
.mode-capstone .story-description { max-width: 760px; margin-right: auto; margin-left: auto; color: rgba(255,255,255,.65); }
.mode-capstone .story-visual { width: min(1200px, 88vw); margin: 30px auto 0; border: 1px solid rgba(255,255,255,.2); border-radius: 26px; box-shadow: 0 0 90px rgba(38,164,239,.16); }
.mode-capstone .story-accent { right: 50%; bottom: 2%; color: rgba(255,255,255,.035); transform: translateX(50%); }

.mode-glass { background: linear-gradient(135deg, #dff5ff, #f9fdff); }
.mode-glass::before { content: ""; position: absolute; width: 540px; height: 540px; right: 8%; border-radius: 50%; background: linear-gradient(145deg, rgba(255,255,255,.9), rgba(53,183,240,.12)); box-shadow: inset 0 0 80px white; }
.mode-glass .story-meta { padding: 38px; border: 1px solid rgba(255,255,255,.9); border-radius: 28px; background: rgba(255,255,255,.55); backdrop-filter: blur(20px); box-shadow: var(--shadow); }
.mode-glass .story-visual { border: 1px solid rgba(255,255,255,.9); background: rgba(255,255,255,.6); backdrop-filter: blur(18px); transform: rotate(-1deg); }
.mode-glass .story-accent { top: 5%; left: 2%; color: rgba(8,95,183,.035); }

.mode-ribbon { grid-template-columns: 1fr; overflow: hidden; background: white; }
.mode-ribbon .story-meta { display: grid; grid-template-columns: .2fr 1fr 1fr; gap: 32px; align-items: end; max-width: none; }
.mode-ribbon .story-no { margin: 0; }
.mode-ribbon .story-meta > p, .mode-ribbon .story-meta em { display: none; }
.mode-ribbon .story-description { margin: 0; }
.mode-ribbon .story-visual { width: 118%; margin: 55px -9% 0; border-radius: 0; transform: rotate(-3deg); box-shadow: 0 25px 60px rgba(16,76,136,.2); }
.mode-ribbon .story-accent { left: 4%; bottom: 2%; color: rgba(11,82,163,.04); }

.mode-timeline { grid-template-columns: .45fr 1.55fr; background: linear-gradient(90deg, #061b47 0 31%, #eef9ff 31%); }
.mode-timeline .story-meta { color: white; }
.mode-timeline .story-meta h3, .mode-timeline .story-open { color: white; }
.mode-timeline .story-description { color: rgba(255,255,255,.66); }
.mode-timeline .story-visual { border-radius: 100px 16px 16px 100px; box-shadow: -25px 25px 0 #bfe9fa, var(--shadow); }
.mode-timeline .story-accent { left: 3%; bottom: 2%; color: rgba(255,255,255,.04); writing-mode: vertical-rl; }

.mode-diagonal { grid-template-columns: 1.1fr .9fr; background: linear-gradient(120deg, #f7fcff 0 54%, #0b4a99 54%); }
.mode-diagonal .story-visual { grid-column: 1; grid-row: 1; transform: rotate(2deg); border: 12px solid white; box-shadow: var(--shadow); }
.mode-diagonal .story-meta { grid-column: 2; color: white; }
.mode-diagonal .story-meta h3, .mode-diagonal .story-open { color: white; }
.mode-diagonal .story-description { color: rgba(255,255,255,.7); }
.mode-diagonal .story-accent { right: -3%; bottom: 1%; color: rgba(255,255,255,.035); }

.mode-panorama { grid-template-columns: 1fr; min-height: 980px; padding-right: 0; padding-left: 0; background: #e9f8ff; }
.mode-panorama .story-meta { max-width: 1200px; margin: auto; padding: 0 7vw; text-align: center; }
.mode-panorama .story-description { max-width: 760px; margin-right: auto; margin-left: auto; }
.mode-panorama .story-visual { width: 110%; margin-left: -5%; border-radius: 0; box-shadow: 0 35px 70px rgba(15,78,139,.2); }
.mode-panorama .story-accent { left: 50%; bottom: 2%; color: rgba(10,87,174,.035); transform: translateX(-50%); }

.mode-finale { grid-template-columns: 1fr; min-height: 1000px; overflow: hidden; text-align: center; color: white; background: radial-gradient(circle at 50% 40%, #1260b9, #06275f 44%, #031232 74%); }
.mode-finale::before, .mode-finale::after { content: ""; position: absolute; left: 50%; top: 52%; border: 1px solid rgba(93,213,255,.18); border-radius: 50%; transform: translate(-50%,-50%); }
.mode-finale::before { width: 78vw; height: 78vw; }
.mode-finale::after { width: 58vw; height: 58vw; }
.mode-finale .story-meta { max-width: 930px; margin: auto; }
.mode-finale .story-meta h3, .mode-finale .story-open { color: white; }
.mode-finale .story-description { max-width: 760px; margin-right: auto; margin-left: auto; color: rgba(255,255,255,.68); }
.mode-finale .story-visual { width: min(1150px, 86vw); margin: 30px auto 0; border: 1px solid rgba(255,255,255,.25); box-shadow: 0 0 100px rgba(67,200,255,.25); }
.mode-finale .story-accent { left: 50%; bottom: 1%; color: rgba(255,255,255,.03); transform: translateX(-50%); }

.closing { position: relative; overflow: hidden; min-height: 760px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 100px 24px; text-align: center; color: var(--ink); background: linear-gradient(180deg, #effaff, #fff); }
.closing > p:first-of-type { color: var(--blue); font: 800 9px Arial, sans-serif; letter-spacing: .23em; }
.closing h2 { margin: 22px 0; font-size: clamp(46px, 7vw, 110px); line-height: .93; letter-spacing: -.055em; }
.closing-copy { max-width: 680px; color: var(--muted); font-size: 16px; line-height: 1.8; }
.closing-actions { display: flex; gap: 10px; margin-top: 28px; }
.closing-actions a { padding: 12px 17px; border: 1px solid var(--line); border-radius: 999px; background: white; font-size: 12px; font-weight: 800; }
.closing-ring { position: absolute; border: 1px solid rgba(19,105,202,.1); border-radius: 50%; pointer-events: none; }
.ring-one { width: 700px; height: 700px; }
.ring-two { width: 950px; height: 430px; transform: rotate(-10deg); }

footer { display: grid; grid-template-columns: 1fr auto auto; gap: 60px; align-items: center; padding: 45px clamp(24px, 6vw, 90px); color: rgba(255,255,255,.72); background: #03112f; }
footer strong, footer span { display: block; }
footer strong { color: white; font-size: 16px; }
footer span { margin-top: 5px; font: 700 8px Arial, sans-serif; letter-spacing: .14em; }
footer p { margin: 0; font-size: 11px; line-height: 1.7; }
footer > a { font: 800 9px Arial, sans-serif; letter-spacing: .16em; }

.lightbox { width: 100vw; max-width: none; height: 100vh; max-height: none; margin: 0; padding: 0; border: 0; color: white; background: rgba(2,12,34,.97); }
.lightbox::backdrop { background: rgba(1,7,20,.92); backdrop-filter: blur(12px); }
.lightbox-bar { height: 82px; display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(18px, 4vw, 60px); border-bottom: 1px solid rgba(255,255,255,.12); }
.lightbox-bar > div { display: flex; align-items: center; gap: 18px; }
.lightbox-bar span { color: var(--cyan); font: 800 9px Arial, sans-serif; letter-spacing: .18em; }
.lightbox-bar strong { font-size: 14px; }
.lightbox-bar button, .lightbox-controls button { border: 1px solid rgba(255,255,255,.2); border-radius: 999px; color: white; background: rgba(255,255,255,.07); cursor: pointer; }
.lightbox-bar button { padding: 9px 13px; font-size: 11px; }
.lightbox-canvas { height: calc(100vh - 148px); display: grid; place-items: center; padding: 22px; }
.lightbox-canvas img { max-width: 96vw; max-height: calc(100vh - 192px); border-radius: 12px; box-shadow: 0 30px 90px rgba(0,0,0,.5); }
.lightbox-controls { height: 66px; display: flex; align-items: center; justify-content: center; gap: 28px; }
.lightbox-controls button { padding: 9px 13px; font-size: 10px; }
.lightbox-controls span { color: rgba(255,255,255,.42); font-size: 9px; }
.noscript { position: fixed; z-index: 500; right: 20px; bottom: 20px; padding: 14px; color: white; background: #9b1c1c; }

/* Screen annotation layer: Pointer Events support mouse, active pen and touch. */
body.annotation-active { overflow: hidden; cursor: crosshair; }
body.annotation-active .site-header { pointer-events: none; opacity: .72; }
.annotation-canvas { position: fixed; z-index: 150; inset: 0; width: 100vw; height: 100vh; pointer-events: none; touch-action: none; }
.annotation-canvas.is-active { pointer-events: auto; }
.annotation-canvas.tool-eraser { cursor: cell; }
.annotation-canvas.tool-highlighter { cursor: crosshair; }
.annotation-toolbar { position: fixed; z-index: 190; top: 94px; left: 20px; width: min(370px, calc(100vw - 40px)); overflow: hidden; border: 1px solid rgba(255,255,255,.7); border-radius: 22px; color: var(--ink); background: rgba(247,252,255,.94); box-shadow: 0 24px 80px rgba(1,20,53,.3); backdrop-filter: blur(24px); cursor: default; touch-action: manipulation; }
.annotation-toolbar[hidden] { display: none; }
.annotation-toolbar-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 16px; color: white; background: linear-gradient(135deg, #06265d, #0d6bd3); }
.annotation-toolbar-head > div { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 9px; }
.annotation-live-dot { grid-row: 1 / 3; width: 9px; height: 9px; border: 2px solid rgba(255,255,255,.55); border-radius: 50%; background: #4ef0c0; box-shadow: 0 0 0 4px rgba(78,240,192,.13); }
.annotation-toolbar-head strong { font-size: 13px; }
.annotation-toolbar-head small { margin-top: 1px; color: rgba(255,255,255,.58); font: 700 7px Arial, sans-serif; letter-spacing: .13em; }
.annotation-toolbar-head button { padding: 7px 10px; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; color: white; background: rgba(255,255,255,.1); font-size: 9px; cursor: pointer; }
.annotation-tools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; padding: 13px 13px 0; }
.annotation-tool { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 8px; border: 1px solid var(--line); border-radius: 12px; background: white; font-size: 10px; font-weight: 800; cursor: pointer; }
.annotation-tool span { font-size: 15px; color: var(--blue); }
.annotation-tool.is-active { color: white; border-color: #0d64c8; background: linear-gradient(135deg, #0b438c, #0f70db); box-shadow: 0 8px 20px rgba(13,100,200,.2); }
.annotation-tool.is-active span { color: #a9eaff; }
.annotation-options { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 15px 14px; }
.color-picker { display: flex; align-items: end; gap: 7px; min-width: 0; margin: 0; padding: 0; border: 0; }
.color-picker legend { margin-bottom: 7px; color: #7187a1; font-size: 9px; font-weight: 800; }
.color-swatch { flex: 0 0 auto; width: 22px; height: 22px; padding: 0; border: 3px solid white; border-radius: 50%; background: var(--swatch); box-shadow: 0 0 0 1px rgba(6,38,93,.18); cursor: pointer; }
.color-swatch.is-selected { box-shadow: 0 0 0 2px var(--ink), 0 0 0 4px white; transform: scale(.87); }
.stroke-control { display: grid; grid-template-columns: 1fr auto; gap: 5px 9px; align-items: center; color: #7187a1; font-size: 9px; font-weight: 800; }
.stroke-control input { grid-column: 1; width: 100%; accent-color: var(--blue); }
.stroke-control output { grid-column: 2; grid-row: 1 / 3; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; color: white; background: var(--ink); font: 800 10px Arial, sans-serif; }
.annotation-actions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 7px; padding: 0 13px 13px; }
.annotation-actions button { padding: 9px 8px; border: 1px solid var(--line); border-radius: 11px; background: white; font-size: 9px; font-weight: 800; cursor: pointer; }
.annotation-actions button:disabled { opacity: .35; cursor: not-allowed; }
#hideAnnotationMenu { grid-column: 1 / -1; color: #0b5fc0; background: #edf8ff; }
#clearAnnotation { color: #b62e2e; }
#downloadAnnotation { color: white; border-color: #0b5fc0; background: #0b5fc0; }
.annotation-menu-reopen { position: fixed; z-index: 190; top: 94px; left: 20px; padding: 11px 15px; border: 1px solid rgba(255,255,255,.72); border-radius: 999px; color: white; background: linear-gradient(135deg, #06265d, #0d6bd3); box-shadow: 0 16px 45px rgba(1,20,53,.32); font-size: 10px; font-weight: 800; cursor: pointer; }
.annotation-menu-reopen[hidden] { display: none; }
.annotation-hint { margin: 0; padding: 10px 13px; border-top: 1px solid var(--line); color: #72859b; background: rgba(220,242,253,.7); font-size: 8px; line-height: 1.8; }
.annotation-hint kbd { display: inline-block; min-width: 20px; margin: 0 2px 0 5px; padding: 1px 4px; border: 1px solid rgba(6,38,93,.15); border-radius: 5px; color: var(--ink); background: white; box-shadow: 0 1px 0 rgba(6,38,93,.14); font: 700 7px Arial, sans-serif; text-align: center; }
.annotation-toast { position: fixed; z-index: 210; right: 22px; bottom: 22px; padding: 11px 15px; border-radius: 999px; color: white; background: rgba(3,22,56,.9); box-shadow: 0 14px 40px rgba(2,17,45,.28); font-size: 10px; font-weight: 700; opacity: 0; pointer-events: none; transform: translateY(12px); transition: opacity .2s, transform .2s; }
.annotation-toast.is-visible { opacity: 1; transform: none; }

.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 1100px) {
  .chapter-nav { display: none; }
  .site-header { grid-template-columns: 1fr auto; }
  .landing { grid-template-columns: 1fr; padding-top: 125px; }
  .landing-copy { max-width: 760px; }
  .landing-stage { width: min(900px, 100%); margin: 25px auto 40px; }
  .curator-note { grid-template-columns: 1fr; }
  .chapter-divider { grid-template-columns: 1fr; gap: 16px; }
  .visual-story, .mode-editorial, .mode-portal, .mode-lab, .mode-sticky, .mode-device, .mode-blueprint, .mode-diagonal, .mode-timeline { grid-template-columns: 1fr; min-height: auto; }
  .visual-story { padding-top: 100px; padding-bottom: 100px; }
  .mode-cinema .story-meta { width: auto; }
  .mode-cinema .story-visual { position: relative; right: auto; width: 100%; }
  .mode-editorial .story-visual, .mode-diagonal .story-visual { grid-column: auto; grid-row: auto; }
  .mode-editorial .story-meta, .mode-diagonal .story-meta { grid-column: auto; }
  .mode-sticky .story-meta { position: relative; top: auto; }
  .mode-sticky .story-visual { margin-top: 0; }
  .mode-split { grid-template-columns: 1fr; }
  .mode-split .story-meta { padding: 100px 7vw; }
  .mode-split .story-visual { width: calc(100% - 14vw); margin: 0 auto 90px; }
  .mode-timeline { background: #061b47; }
  .mode-diagonal { background: #0b4a99; }
}

@media (max-width: 700px) {
  html { scroll-padding-top: 72px; }
  .site-header { height: 68px; }
  .identity small, .motion-toggle { display: none; }
  .annotate-launch { padding: 8px 10px; font-size: 0; }
  .annotate-launch span { margin: 0; font-size: 15px; }
  .annotation-toolbar { top: auto; bottom: 12px; left: 12px; width: calc(100vw - 24px); max-height: calc(100vh - 24px); overflow-y: auto; border-radius: 18px; }
  .annotation-menu-reopen { top: auto; bottom: 14px; left: 14px; }
  .annotation-options { grid-template-columns: 1fr; }
  .landing { min-height: auto; padding: 110px 18px 75px; }
  .landing h1 { font-size: 50px; }
  .landing-actions { align-items: flex-start; flex-direction: column; }
  .collection-count { padding: 0; border: 0; }
  .stage-image { transform: none; }
  .scroll-signal { display: none; }
  .curator-note { padding: 72px 20px; }
  .curator-note > p { font-size: 25px; }
  .chapter-divider { min-height: 360px; padding: 95px 20px 55px; }
  .visual-story { gap: 34px; padding: 75px 16px; }
  .story-no { margin-bottom: 22px; font-size: 58px; }
  .story-meta h3 { font-size: 35px; }
  .story-visual { border-radius: 16px; }
  .mode-steps .story-meta, .mode-ribbon .story-meta { display: block; }
  .mode-steps .story-description, .mode-ribbon .story-description { margin-top: 20px; }
  .mode-steps .story-open { position: relative; right: auto; bottom: auto; }
  .mode-orbit { min-height: auto; }
  .mode-orbit .story-visual, .mode-finale .story-visual, .mode-capstone .story-visual { width: 100%; border-radius: 16px; }
  .mode-lab .story-meta, .mode-blueprint .story-meta, .mode-glass .story-meta { padding: 25px; }
  .mode-device .story-visual { width: 100%; padding: 8px; border-radius: 23px; }
  .mode-device .story-visual img { border-radius: 14px; }
  .mode-panorama .story-meta { padding: 0 18px; }
  .mode-panorama .story-visual { width: 130%; margin-left: -15%; }
  .closing { min-height: 640px; }
  .closing h2 { font-size: 51px; }
  .closing-actions { flex-direction: column; }
  footer { grid-template-columns: 1fr; gap: 24px; }
  .lightbox-bar strong { display: none; }
  .lightbox-controls span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
