/* Built at Chadwick, with AI — the Technology Office's year in review (ai.ci-one.org)
   One page in scenes: the night of the opening (the Chadwick mark in light), then linen,
   warm, glass and cool days for the products, and the night again for CI Echo and CI Campus.
   The body carries the scene (data-scene) and every colour below reads it, so a scene change
   is one calm cross-fade of the whole screen. Type: Bricolage (variable weight and width)
   for display, Instrument Serif italics for the "answer" words, Pretendard for reading,
   a mono for small labels. Motion is transform and opacity only. */

@font-face { font-family: "Bricolage Num"; src: url("../fonts/bricolage-num.woff2") format("woff2"); font-weight: 200 800; font-stretch: 75% 100%; font-display: swap; }
@font-face { font-family: "Bricolage"; src: url("../fonts/bricolage-latin.woff2") format("woff2"); font-weight: 200 800; font-stretch: 75% 100%; font-display: swap; }

:root {
  --navy: #002B54; --sky: #ACD4F1; --safari: #E6E5D3;
  --c-one: #E8692F; --c-hub: #2F6BFF; --c-echo: #3B7BFF; --c-vision: #1F5FBF; --c-connects: #0E3A6E; --c-campus: #3FC7A6;
  --f-sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --f-serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --f-display: "Bricolage", "Pretendard Variable", var(--f-sans);
  --f-num: "Bricolage Num", "Bricolage", var(--f-sans);
  --f-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --gutter: clamp(20px, 5vw, 76px);
  --max: 1380px;
  --section: clamp(110px, 16vh, 200px);
  --r: 20px;
  --e-out: cubic-bezier(.16, 1, .3, 1);
  --e-io: cubic-bezier(.65, 0, .35, 1);
  /* the day scene's colours (the default) */
  --bg: #F4F2ED; --fg: #0E1B33; --fg-2: #3D4860; --fg-3: #69728A; --line: rgba(14, 27, 51, .12); --line-2: rgba(14, 27, 51, .22);
  --card: #FFFFFF; --card-2: rgba(255, 255, 255, .62); --shadow: 0 30px 80px -30px rgba(14, 27, 51, .28), 0 10px 26px -14px rgba(14, 27, 51, .16);
  --tint: var(--navy);
  color-scheme: light;
}
[data-scene="night"] { --bg: #061327; --fg: #EEF2F8; --fg-2: rgba(232, 238, 248, .78); --fg-3: rgba(232, 238, 248, .54); --line: rgba(232, 238, 248, .13); --line-2: rgba(232, 238, 248, .26); --card: rgba(255, 255, 255, .055); --card-2: rgba(255, 255, 255, .04); --shadow: 0 40px 90px -30px rgba(0, 0, 0, .7); }
[data-scene="warm"] { --bg: #F7EFE7; --fg: #1A1F2E; --fg-2: #4A4E5E; --fg-3: #7A7B86; --line: rgba(60, 40, 30, .12); --line-2: rgba(60, 40, 30, .22); --card: #FFFDFB; }
[data-scene="glass"] { --bg: #E6E9EE; --fg: #0F1A2C; --fg-2: #3B475C; --fg-3: #687388; --card: rgba(255, 255, 255, .78); }
[data-scene="cool"] {
  /* (cool) */ --bg: #EEF2F8; --fg: #0D1A30; --fg-2: #3A4862; --fg-3: #67738B; --card: #FFFFFF; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--f-sans); font-size: clamp(16px, 1.08vw, 18px); line-height: 1.68; letter-spacing: -.004em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden;
}
body { background: #061327; }
[data-scene="linen"] { --bg: #F4F2ED; --fg: #0E1B33; --fg-2: #3D4860; --fg-3: #69728A; --line: rgba(14, 27, 51, .12); --line-2: rgba(14, 27, 51, .22); --card: #FFFFFF; }
/* every section paints its own scene; where the scene changes, a gradient carries the last colour in */
section[data-scene] { position: relative; isolation: isolate; background: var(--bg); color: var(--fg); }
section[data-scene] > .wrap, section[data-scene] > .tl, section[data-scene] > .close__inner { z-index: 1; }
.blend { position: absolute; left: 0; right: 0; top: -1px; height: var(--blend-h, 30vh); z-index: -1; pointer-events: none; background: linear-gradient(180deg, var(--prev) 0%, color-mix(in srgb, var(--prev) 55%, var(--bg)) 38%, var(--bg) 100%); }
section.blend-in { padding-top: calc(var(--section) + 16vh) !important; }
::selection { background: rgba(47, 107, 255, .22); }
img, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
em { font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: -.006em; }
b { font-weight: 650; }
h1, h2, h3, h4, p, figure { margin: 0; }
button { font: inherit; color: inherit; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: #fff; color: #0E1B33; font-weight: 600; text-decoration: none; }
.skip:focus { top: 16px; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); position: relative; }
:focus-visible { outline: 2px solid var(--c-hub); outline-offset: 3px; border-radius: 6px; }

.eyebrow {
  margin: 0 0 26px; font: 600 12px/1 var(--f-mono); letter-spacing: .2em; text-transform: uppercase; color: var(--fg-3);
  display: flex; align-items: center; gap: 14px;
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: currentColor; opacity: .55; }
.eyebrow--light { color: rgba(232, 238, 248, .62); }
.h-xl {
  font-family: var(--f-display); font-size: clamp(44px, 6.2vw, 104px); line-height: .98; letter-spacing: -.045em;
  font-weight: 640; font-stretch: 88%;
}
.h-xl em { font-family: var(--f-serif); font-weight: 400; letter-spacing: -.02em; font-stretch: normal; }
.lead { font-size: clamp(18px, 1.45vw, 23px); line-height: 1.55; color: var(--fg-2); max-width: 46ch; margin: 28px 0 0; }

/* ---------- reveal (plain fade-rise; GSAP takes the bigger moves) ---------- */
.js .reveal { opacity: 0; transform: translate3d(0, 34px, 0); transition: opacity 1s var(--e-out), transform 1.2s var(--e-out); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }
/* split type: each character rises through its own mask */
.chars .ch { display: inline-block; will-change: transform; }
.chars .wd { display: inline-block; white-space: nowrap; }
.js .chars:not(.in) .ch { transform: translate3d(0, 105%, 0); opacity: 0; }
.chars .ch { transition: transform 1.05s var(--e-out), opacity .6s var(--e-out); transition-delay: calc(var(--i, 0) * 22ms + var(--d, 0s)); }

/* ---------- chrome ---------- */
.chrome {
  color: var(--fg);
  position: fixed; top: 14px; left: 50%; z-index: 60; transform: translate3d(-50%, -140%, 0);
  display: flex; align-items: center; gap: 22px; padding: 8px 10px 8px 14px; width: max-content; max-width: calc(100% - 28px);
  border-radius: 999px; background: color-mix(in srgb, var(--bg) 72%, transparent);
  border: 1px solid var(--line); box-shadow: 0 10px 40px -18px rgba(0, 0, 0, .35);
  backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  transition: transform .8s var(--e-out), background-color 1s var(--e-out), border-color 1s;
}
.chrome.show { transform: translate3d(-50%, 0, 0); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-size: 13.5px; white-space: nowrap; }
.brand img { width: 26px; height: 26px; border-radius: 6px; }
.brand i { font-style: normal; color: var(--fg-3); }
.chapters { display: flex; gap: 2px; }
.chapters a {
  position: relative; display: flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 999px;
  font-size: 13px; font-weight: 560; text-decoration: none; color: var(--fg-2); white-space: nowrap; transition: color .3s, background-color .3s;
}
.chapters a span { font: 600 10.5px/1 var(--f-mono); opacity: .55; }
.chapters a:hover { color: var(--fg); background: var(--line); }
.chapters a.active { color: var(--fg); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.chapters a.active span { opacity: 1; color: var(--tint-live, var(--c-hub)); }
.progress { position: absolute; left: 22px; right: 22px; bottom: -1px; height: 2px; border-radius: 2px; overflow: hidden; }
.progress i { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--c-hub), var(--c-campus)); opacity: .85; }

.rail { position: fixed; right: 18px; top: 50%; z-index: 50; transform: translateY(-50%); display: flex; flex-direction: column; gap: 8px; opacity: 0; pointer-events: none; transition: opacity .6s; }
.rail.show { opacity: 1; pointer-events: auto; }
.rail button { position: relative; display: block; width: 18px; height: 14px; padding: 0; border: 0; background: none; cursor: pointer; }
.rail button i { position: absolute; right: 4px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--fg-3); opacity: .45; transition: transform .4s var(--e-out), opacity .3s, background-color .3s; }
.rail button.active i { opacity: 1; transform: scale(1.5); background: var(--fg); }
.rail button span { position: absolute; right: 24px; top: 50%; transform: translate(6px, -50%); white-space: nowrap; font: 600 11px/1 var(--f-mono); letter-spacing: .04em; padding: 5px 8px; border-radius: 6px; background: var(--card); color: var(--fg); box-shadow: 0 6px 20px -10px rgba(0,0,0,.4); opacity: 0; pointer-events: none; transition: opacity .25s, transform .35s var(--e-out); }
.rail button:hover span { opacity: 1; transform: translate(0, -50%); }
.keys { position: fixed; left: 50%; bottom: 20px; z-index: 55; transform: translate(-50%, 20px); padding: 9px 14px; border-radius: 999px; font: 500 12px/1 var(--f-mono); color: var(--fg-2); background: var(--card); border: 1px solid var(--line); opacity: 0; pointer-events: none; transition: opacity .5s, transform .6s var(--e-out); }
.keys.show { opacity: 1; transform: translate(-50%, 0); }

/* =========================================================
   HERO — the Chadwick mark in light
   ========================================================= */
.hero {
  position: relative; height: 100vh; height: 100svh; min-height: 620px; overflow: hidden; isolation: isolate;
  background: #061327; color: #EEF2F8; touch-action: pan-y;
}
.hero__sky { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero__sky::before {
  content: ""; position: absolute; inset: -10%;
  background:
    radial-gradient(60% 55% at 50% 44%, rgba(36, 86, 160, .42), transparent 62%),
    radial-gradient(40% 40% at 18% 90%, rgba(41, 110, 196, .22), transparent 70%),
    radial-gradient(36% 34% at 86% 12%, rgba(124, 184, 255, .10), transparent 70%),
    linear-gradient(180deg, #071630 0%, #061327 52%, #050F20 100%);
  opacity: 0; transition: opacity 1.6s var(--e-out);
}
.hero.is-play .hero__sky::before { opacity: 1; }
.hero__sky::after { /* the faintest grain of the stipple, over the whole night */
  content: ""; position: absolute; inset: 0; opacity: .05; mix-blend-mode: screen;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.hero__film { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; pointer-events: none; }
.hero__stage { position: absolute; inset: 0; z-index: 1; pointer-events: none; transform-origin: 50% 43%; }
.hero__title .ch { transition: none; }
.hero__title .ln { display: block; overflow: hidden; padding: 0 .1em .16em 0; margin-bottom: -.16em; }
.hero__mark {
  position: absolute; left: 50%; top: 40%; width: min(80vh, 80svh, 80vw); aspect-ratio: 1; transform: translate(-50%, -50%);
  pointer-events: none; opacity: 0; transition: opacity .7s var(--e-out);
}
.hero.is-live .hero__mark { opacity: 1; }
.hero__mark canvas { width: 100%; height: 100%; }

/* the school's lockup, as printed: the navy square, the emblem drawn in light on it, CHADWICK / INTERNATIONAL
   under it in the logo's own letters (js/hero.js lays all three out from the logo's proportions) */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hero__plate {
  position: absolute; background: linear-gradient(160deg, #0C2C57 0%, #082347 55%, #071D3C 100%);
  box-shadow: 0 0 0 1px rgba(150, 200, 255, .05), 0 40px 120px -30px rgba(0, 0, 0, .6), 0 0 160px rgba(60, 120, 220, .12);
  opacity: 0; transform: scale(.985); transition: opacity 1.4s var(--e-out), transform 2s var(--e-out);
}
.hero.is-bloom .hero__plate { opacity: 1; transform: none; }
.hero__lock { position: absolute; color: #EEF4FC; pointer-events: none; }
.hero__words { display: block; width: 100%; height: auto; overflow: visible; }
.hero__words .lt { fill: currentColor; opacity: 0; transform: translate(calc(var(--dx) * .3px), 1.3px); transition: opacity 1s var(--e-out), transform 1.5s var(--e-out); transition-delay: calc(var(--i) * 36ms); }
.hero.is-word .hero__words .lt { opacity: 1; transform: none; }
/* a wave of light runs through the letters once */
.hero.is-word .hero__words .lt { animation: glint 1.2s calc(1.35s + var(--i) * 48ms) var(--e-io) both; }
@keyframes glint { 0%, 100% { fill: #EEF4FC; } 45% { fill: #FFFFFF; filter: drop-shadow(0 0 .35px rgba(170, 220, 255, .95)) drop-shadow(0 0 1.2px rgba(120, 190, 255, .5)); } }
.hero__office {
  position: absolute; left: var(--gutter); top: 30px; z-index: 5; display: inline-flex; align-items: center; gap: 14px;
  font: 600 11px/1 var(--f-mono); letter-spacing: .24em; text-transform: uppercase; color: rgba(214, 230, 250, .6);
  opacity: 0; transform: translateY(-6px); transition: opacity 1s 1s var(--e-out), transform 1.2s 1s var(--e-out);
}
.hero__office i { width: 4px; height: 4px; border-radius: 50%; background: #9CD3FF; box-shadow: 0 0 10px #9CD3FF; }
.hero.is-word .hero__office { opacity: 1; transform: none; }

.hero__msg { position: absolute; inset: 0; z-index: 4; display: flex; flex-direction: column; justify-content: center; pointer-events: none; }
.hero__msg > * { max-width: min(640px, 48vw); pointer-events: auto; }
.js .hero__msg { visibility: hidden; }
.hero__msg .kicker { display: inline-flex; align-items: center; gap: 12px; font: 600 12px/1 var(--f-mono); letter-spacing: .22em; text-transform: uppercase; color: #9CC9F5; margin-bottom: 26px; }
.hero__msg .kicker::before { content: ""; width: 34px; height: 1px; background: currentColor; opacity: .7; }
.hero__title {
  font-family: var(--f-display); font-weight: 680; font-stretch: 86%; font-size: clamp(52px, 7.4vw, 132px); line-height: .92; letter-spacing: -.05em; color: #F4F7FC;
}
.hero__title em { display: inline-block; font-weight: 400; font-stretch: normal; letter-spacing: -.025em; padding-right: .06em;
  background: linear-gradient(100deg, #DDEEFF 0%, #9CD3FF 45%, #C9B8FF 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__sub { margin-top: 28px; font-size: clamp(17px, 1.3vw, 21px); line-height: 1.6; color: rgba(226, 236, 250, .78); max-width: 44ch; }
.dock { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
.dock a {
  display: flex; align-items: center; gap: 10px; padding: 7px 14px 7px 7px; border-radius: 16px; text-decoration: none; font-size: 14px; font-weight: 600;
  color: #E9F1FC; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: transform .5s var(--e-out), background-color .3s, border-color .3s;
}
.dock a:hover { transform: translateY(-3px); background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .22); }
.dock a:active { transform: translateY(0) scale(.97); }
.dock img { width: 32px; height: 32px; border-radius: 9px; object-fit: contain; }
.hero__hint {
  position: absolute; left: var(--gutter); bottom: 34px; z-index: 5; display: flex; align-items: center; gap: 10px;
  font: 600 11px/1 var(--f-mono); letter-spacing: .2em; text-transform: uppercase; color: rgba(214, 230, 250, .55);
  opacity: 0; transition: opacity 1s 1s;
}
.hero.is-done .hero__hint { opacity: 1; }
.hint-dot { width: 7px; height: 7px; border-radius: 50%; background: #BFE3FF; box-shadow: 0 0 0 0 rgba(191, 227, 255, .6); animation: ping 2.4s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(191, 227, 255, .55); } 70%, 100% { box-shadow: 0 0 0 12px rgba(191, 227, 255, 0); } }
.t-touch { display: none; }
@media (hover: none) { .t-mouse { display: none; } .t-touch { display: inline; } }
.hero__cue { position: absolute; right: var(--gutter); bottom: 30px; z-index: 5; display: flex; align-items: center; gap: 12px; font: 600 11px/1 var(--f-mono); letter-spacing: .2em; text-transform: uppercase; color: rgba(214, 230, 250, .55); opacity: 0; transition: opacity 1s 1.4s; }
.hero.is-done .hero__cue { opacity: 1; }
.hero__cue i { position: relative; width: 1px; height: 44px; background: rgba(214, 230, 250, .2); overflow: hidden; }
.hero__cue i::after { content: ""; position: absolute; left: 0; top: -50%; width: 1px; height: 50%; background: #CFE6FF; animation: drip 2s var(--e-io) infinite; }
@keyframes drip { to { top: 100%; } }
/* the dawn: the night gives way to the day below it */


/* =========================================================
   THESIS, TIMELINE
   ========================================================= */
.thesis { padding: clamp(40px, 8vh, 90px) 0 var(--section); }
.thesis__line { font-family: var(--f-display); font-weight: 560; font-stretch: 90%; font-size: clamp(32px, 4.4vw, 72px); line-height: 1.08; letter-spacing: -.035em; max-width: 21ch; }
.thesis__line em { letter-spacing: -.015em; font-stretch: normal; }
.thesis__line .w { opacity: .16; transition: opacity .5s; }
.thesis__line .w.lit { opacity: 1; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: clamp(56px, 9vh, 96px); border-top: 1px solid var(--line); }
.facts > div { padding: 30px 26px 0 0; display: grid; gap: 10px; }
.facts b { font-family: var(--f-num); font-size: clamp(56px, 6.4vw, 104px); line-height: .9; font-weight: 300; letter-spacing: -.05em; font-stretch: 80%; }
.facts span { color: var(--fg-2); max-width: 22ch; }

.timeline { padding: clamp(96px, 14vh, 150px) 0 var(--section); }
.tl { position: relative; margin-top: clamp(48px, 8vh, 80px); overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding: 0 var(--gutter) 14px; scroll-snap-type: x proximity; }
.tl::-webkit-scrollbar { display: none; }
.tl__list { position: relative; list-style: none; margin: 0 auto; padding: 46px 0 0; display: flex; gap: 0; width: max-content; min-width: calc(min(100%, var(--max)) - 2 * var(--gutter)); }
.tl__list::before { content: ""; position: absolute; left: 0; right: 0; top: 16px; height: 1px; background: var(--line-2); }
.tl__list::after { content: ""; position: absolute; left: 0; right: 0; top: 16px; height: 1px; background: linear-gradient(90deg, var(--c-one), var(--c-hub), var(--c-echo), var(--c-vision), var(--c-connects), var(--c-campus)); transform-origin: 0 50%; transform: scaleX(var(--tl, 0)); }
.tl__item { position: relative; width: 196px; flex: none; padding-right: 26px; scroll-snap-align: start; }
.tl__item::before { content: ""; position: absolute; left: 0; top: -36px; width: 11px; height: 11px; border-radius: 50%; background: var(--bg); border: 2px solid var(--c, var(--fg-3)); transition: background-color .3s; }
.tl__item.minor::before { width: 7px; height: 7px; top: -34px; border-width: 1.5px; }
.tl__item.hot::before { background: var(--c-one); border-color: var(--c-one); box-shadow: 0 0 0 6px color-mix(in srgb, var(--c-one) 18%, transparent); }
.tl__item time { display: block; font: 600 11.5px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--fg-3); margin-bottom: 16px; }
.tl__item img { width: 52px; height: 52px; border-radius: 13px; margin-bottom: 14px; box-shadow: 0 12px 24px -12px rgba(0, 0, 0, .35); }
.tl__item h3 { font-family: var(--f-display); font-size: 24px; font-weight: 650; letter-spacing: -.03em; font-stretch: 88%; color: var(--fg); }
.tl__item p { margin-top: 6px; font-size: 14.5px; line-height: 1.5; color: var(--fg-2); }
.tl__item.minor { width: 176px; padding-top: 4px; }
.tl__item.minor p { font-size: 14px; }

/* =========================================================
   CHAPTERS
   ========================================================= */
.chap { position: relative; padding: var(--section) 0; }
.chap::before { /* each chapter's own soft light */
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .9;
  background: radial-gradient(48% 38% at 82% 6%, color-mix(in srgb, var(--tint) 14%, transparent), transparent 70%);
}
.chap--one { --tint: var(--c-one); }
.chap--hub { --tint: var(--c-hub); }
.chap--echo { --tint: var(--c-echo); }
.chap--vision { --tint: var(--c-vision); }
.chap--connects { --tint: var(--c-connects); }
.chap--campus { --tint: var(--c-campus); }
.chap__head { display: grid; grid-template-columns: minmax(120px, 230px) 1fr; gap: clamp(24px, 4vw, 70px); align-items: start; margin-bottom: clamp(56px, 9vh, 110px); }
.chap__id { position: sticky; top: 110px; display: grid; gap: 22px; }
.chap__num { font-family: var(--f-num); font-weight: 200; font-stretch: 75%; font-size: clamp(96px, 12vw, 190px); line-height: .78; letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 1px var(--line-2); position: relative; }
.chap__num .fill { position: absolute; inset: 0; color: var(--tint); -webkit-text-stroke: 0; clip-path: inset(var(--fill, 100%) 0 0 0); }
.chap__icon { width: 76px; height: 76px; border-radius: 20px; box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .45); }
.chap__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 22px; font: 500 12.5px/1.3 var(--f-mono); letter-spacing: .02em; color: var(--fg-3); }
.pill { display: inline-flex; align-items: center; padding: 6px 11px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--fg-2); }
.pill--new { border-color: transparent; background: color-mix(in srgb, var(--tint) 16%, transparent); color: var(--fg); }
.pill--new::before { content: ""; width: 6px; height: 6px; border-radius: 50%; margin-right: 8px; background: var(--tint); box-shadow: 0 0 10px var(--tint); }
.chap__title {
  font-family: var(--f-display); font-size: clamp(72px, 11.5vw, 200px); line-height: .86; letter-spacing: -.055em;
  font-weight: 700; font-stretch: 80%; margin-left: -.04em;
}
.chap__title.vf { font-variation-settings: "wght" var(--wg, 720), "wdth" var(--wd, 82); }
.chap__tag { margin-top: 18px; font-size: clamp(26px, 2.8vw, 46px); line-height: 1.12; color: var(--fg); }
.chap__tag em { letter-spacing: -.012em; }
.chap__lede { margin-top: 28px; max-width: 58ch; font-size: clamp(17px, 1.22vw, 20px); line-height: 1.66; color: var(--fg-2); }
.chap__lede b { color: var(--fg); }
.visit { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.visit a {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 10px; padding: 13px 20px; border-radius: 999px; text-decoration: none;
  font-size: 15px; font-weight: 600; border: 1px solid var(--line-2); color: var(--fg); isolation: isolate;
  transition: transform .5s var(--e-out), border-color .3s, color .3s;
}
.visit a::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--fg); transform: translateY(101%); transition: transform .55s var(--e-out); }
.visit a:hover { color: var(--bg); border-color: var(--fg); }
.visit a:hover::before { transform: none; }
.visit a:active { transform: scale(.97); }
.visit a span { transition: transform .5s var(--e-out); }
.visit a:hover span { transform: translate(2px, -2px); }
.visit a.primary { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.visit a.primary::before { background: var(--tint); }
.visit a.primary:hover { color: #fff; border-color: var(--tint); }

/* frames */
.browser { position: relative; border-radius: 16px; overflow: hidden; background: var(--card); box-shadow: var(--shadow); border: 1px solid var(--line); }
.browser__bar { display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 16px; background: color-mix(in srgb, var(--card) 86%, var(--fg) 4%); border-bottom: 1px solid var(--line); }
.browser__bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--line-2); }
.browser__bar i:nth-child(1) { background: #FF5F57; } .browser__bar i:nth-child(2) { background: #FEBC2E; } .browser__bar i:nth-child(3) { background: #28C840; }
.browser__bar span { margin: 0 auto; transform: translateX(-24px); padding: 4px 14px; border-radius: 8px; font: 500 12px/1.2 var(--f-mono); color: var(--fg-3); background: var(--line); }
.browser img { width: 100%; height: auto; }
.browser--night { background: #0B1830; border-color: rgba(255, 255, 255, .1); }
.browser--night .browser__bar { background: #0E1D38; border-color: rgba(255, 255, 255, .08); }
.browser--night .browser__bar span { background: rgba(255, 255, 255, .07); color: rgba(220, 232, 250, .6); }
.browser--sm { max-width: 880px; margin: clamp(40px, 7vh, 80px) auto 0; }
.tilt { transform-origin: 50% 100%; }

/* split: the AI panel beside a block */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(20px, 3vw, 40px); margin-top: clamp(64px, 10vh, 120px); align-items: start; }
.ai, .block { position: relative; border-radius: 26px; padding: clamp(28px, 3vw, 44px); background: var(--card); border: 1px solid var(--line); }
.ai { overflow: hidden; }
.ai::before { content: ""; position: absolute; inset: -40% -20% auto auto; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--tint) 22%, transparent), transparent); pointer-events: none; }
.ai h4, .block h4 { position: relative; font-family: var(--f-display); font-size: clamp(22px, 1.8vw, 28px); font-weight: 650; letter-spacing: -.03em; font-stretch: 90%; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.spark { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; font-size: 15px; color: #fff; background: linear-gradient(135deg, var(--tint), color-mix(in srgb, var(--tint) 55%, #9C7BFF)); box-shadow: 0 8px 20px -8px var(--tint); }
.ai ul { position: relative; margin: 0; padding: 0; list-style: none; display: grid; gap: 16px; }
.ai li { position: relative; padding-left: 22px; color: var(--fg-2); }
.ai li::before { content: ""; position: absolute; left: 0; top: .72em; width: 8px; height: 8px; border-radius: 2px; transform: rotate(45deg); background: var(--tint); opacity: .8; }
.ai li b, .block p b { color: var(--fg); }
.block p { color: var(--fg-2); }
.block p + p { margin-top: 14px; }
.surfaces { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 12px; }
.surfaces li { counter-increment: s; display: flex; gap: 14px; align-items: baseline; color: var(--fg-2); }
.surfaces li::before { content: counter(s, decimal-leading-zero); font: 600 12px/1 var(--f-mono); color: var(--tint); flex: none; }
.note { margin-top: 18px; font-size: 14.5px; color: var(--fg-3); }
.ticks { margin: 0; padding: 0; list-style: none; display: grid; gap: 13px; }
.ticks li { position: relative; padding-left: 30px; color: var(--fg-2); }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; color: #fff; background: var(--tint); transform: translateY(3px); }

.metrics { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: clamp(64px, 10vh, 120px); border-top: 1px solid var(--line-2); }
.metrics > div { padding: 30px 24px 0 0; display: grid; gap: 12px; align-content: start; }
.metrics b { font-family: var(--f-num); font-size: clamp(52px, 5.6vw, 92px); font-weight: 300; line-height: .9; letter-spacing: -.05em; font-stretch: 78%; font-variant-numeric: tabular-nums; }
.metrics span { color: var(--fg-2); max-width: 26ch; font-size: 15.5px; }

.shot-pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2.4vw, 32px); margin-top: clamp(56px, 9vh, 100px); }
.shot { border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); }
.shot img { width: 100%; }
.demo-row { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 5vw, 80px); align-items: center; margin-top: clamp(80px, 13vh, 150px); }
.demo-tag { font: 600 11.5px/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--tint); margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.demo-tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 20%, transparent); animation: ping2 2.2s infinite; }
@keyframes ping2 { 50% { box-shadow: 0 0 0 7px color-mix(in srgb, currentColor 0%, transparent); } }
.demo-h { font-family: var(--f-display); font-size: clamp(32px, 3.3vw, 54px); line-height: 1.02; letter-spacing: -.04em; font-weight: 650; font-stretch: 86%; margin-bottom: 22px; }
.demo-h em { font-stretch: normal; letter-spacing: -.015em; font-weight: 400; color: var(--tint); }
.demo-row__text p:not(.demo-tag), .hubdemo__text p:not(.demo-tag) { color: var(--fg-2); max-width: 44ch; }

/* ---------- CI One ---------- */
.phones { position: relative; display: flex; justify-content: center; align-items: flex-end; gap: clamp(10px, 1.6vw, 26px); padding: 30px 0 10px; perspective: 1600px; }
.phones::before { content: ""; position: absolute; left: 50%; top: 52%; width: 90%; height: 80%; transform: translate(-50%, -50%); z-index: -1; border-radius: 50%; filter: blur(60px); background: radial-gradient(closest-side, rgba(255, 168, 120, .45), rgba(255, 214, 170, .25) 55%, transparent); }
.phones figure { flex: 0 1 clamp(150px, 16vw, 250px); }
.phones figure.up { margin-bottom: 34px; }
.phones figure.hero-phone { flex-basis: clamp(170px, 18.5vw, 290px); margin-bottom: 58px; z-index: 2; }
.phones img { width: 100%; border-radius: clamp(22px, 2.2vw, 36px); border: 6px solid #111522; background: #111522; box-shadow: 0 50px 80px -40px rgba(80, 40, 20, .55), 0 14px 30px -14px rgba(0, 0, 0, .35); }
.phones figcaption { margin-top: 16px; text-align: center; font: 600 11.5px/1.3 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--fg-3); }
.tagdemo { display: grid; grid-template-columns: .8fr 1.2fr; gap: 18px; padding: 18px; border-radius: 30px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.tagdemo__photo { position: relative; border-radius: 20px; overflow: hidden; background: linear-gradient(160deg, #F2E6DA, #E7D4C2); display: grid; place-items: center; min-height: 300px; }
.tagdemo__photo svg { width: 64%; }
.tagdemo__photo .scan { position: absolute; left: 0; right: 0; top: 0; height: 30%; background: linear-gradient(180deg, transparent, rgba(232, 105, 47, .28), transparent); opacity: 0; }
.tagdemo.run .scan { animation: scan 1.5s var(--e-io) both; }
@keyframes scan { 0% { top: -30%; opacity: 1; } 100% { top: 100%; opacity: 0; } }
.tagdemo__ex { position: absolute; left: 12px; top: 12px; padding: 5px 9px; border-radius: 8px; font: 600 10.5px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; background: rgba(255, 255, 255, .8); color: #6A5A4C; }
.tagdemo__form { display: grid; gap: 10px; align-content: start; padding: 6px 4px; }
.tagdemo__label { font-size: 13px; font-weight: 600; color: var(--fg-3); display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.tagdemo__label .spark { width: 22px; height: 22px; font-size: 11px; border-radius: 7px; }
.field { display: grid; grid-template-columns: 72px 1fr; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: color-mix(in srgb, var(--fg) 4%, transparent); }
.field span { font-size: 12.5px; color: var(--fg-3); }
.field b { min-height: 1.4em; font-weight: 600; }
.field.typing b::after { content: ""; display: inline-block; width: 2px; height: 1.05em; margin-left: 2px; vertical-align: -2px; background: var(--c-one); animation: blink .8s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.chips i { font-style: normal; font-size: 12.5px; padding: 6px 10px; border-radius: 999px; background: color-mix(in srgb, var(--tint) 12%, transparent); color: var(--fg); opacity: 0; transform: translateY(6px) scale(.96); transition: opacity .4s, transform .5s var(--e-out); }
.chips i.on { opacity: 1; transform: none; }
.post { margin-top: 8px; padding: 13px; border-radius: 14px; text-align: center; font-weight: 650; color: #fff; background: #111827; opacity: .25; transform: scale(.98); transition: opacity .4s, transform .5s var(--e-out), background-color .4s; }
.post.on { opacity: 1; transform: none; background: var(--c-one); }

/* ---------- CI Hub ---------- */
.mac { position: relative; border-radius: 22px; padding: 0 0 24px; background: linear-gradient(160deg, #C9D3E0, #AEB9C9 48%, #98A6B9); box-shadow: var(--shadow); overflow: hidden; }
.mac::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 70% at 70% 20%, rgba(255, 255, 255, .5), transparent 70%), radial-gradient(50% 60% at 10% 90%, rgba(47, 107, 255, .25), transparent 70%); pointer-events: none; }
.mac__bar { position: relative; display: flex; align-items: center; gap: 16px; height: 34px; padding: 0 18px; font-size: 13px; color: #1A2234; background: rgba(255, 255, 255, .45); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.mac__apple { width: 13px; height: 15px; border-radius: 50% 50% 46% 46%; background: #1A2234; opacity: .85; }
.mac__sp { flex: 1; }
.mac__tray { width: 20px; height: 20px; border-radius: 5px; box-shadow: 0 0 0 3px rgba(47, 107, 255, .0); animation: tray 3.2s infinite; }
@keyframes tray { 0%, 60%, 100% { box-shadow: 0 0 0 3px rgba(47, 107, 255, 0); } 75% { box-shadow: 0 0 0 4px rgba(47, 107, 255, .45); } }
.mac__time { font-weight: 500; }
.mac__screen { position: relative; display: grid; padding: clamp(18px, 3vw, 44px) clamp(18px, 4vw, 64px) 0; }
.mac__win { grid-area: 1 / 1; width: 100%; filter: drop-shadow(0 40px 60px rgba(10, 20, 40, .35)); transition: opacity .7s var(--e-out); }
.mac__win.is-dark { opacity: 0; }
.mac[data-theme="dark"] .mac__win.is-dark { opacity: 1; }
.mac[data-theme="dark"] .mac__win.is-light { opacity: 0; }
.mac__toggle { position: absolute; right: 20px; top: 48px; z-index: 3; display: flex; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, .5); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 6px 20px -10px rgba(0, 0, 0, .3); }
.mac__toggle button { padding: 7px 14px; border: 0; border-radius: 999px; background: none; font-size: 12.5px; font-weight: 600; color: #3B475C; cursor: pointer; transition: background-color .3s, color .3s; }
.mac__toggle button.on { background: #fff; color: #0F1A2C; box-shadow: 0 2px 8px -2px rgba(0, 0, 0, .2); }
.mac__note { position: relative; margin: 16px clamp(18px, 4vw, 64px) 0; font-size: 12.5px; color: #3B475C; opacity: .8; }
.feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: clamp(56px, 9vh, 100px); border-radius: 26px; overflow: hidden; background: var(--line); border: 1px solid var(--line); }
.feats article { padding: 28px 28px 30px; background: var(--card); transition: background-color .4s; }
.feats article:hover { background: color-mix(in srgb, var(--card) 85%, var(--tint) 6%); }
.feats h4 { font-family: var(--f-display); font-size: 21px; font-weight: 650; letter-spacing: -.025em; font-stretch: 90%; margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.feats h4::before { content: ""; width: 9px; height: 9px; border-radius: 3px; background: var(--tint); transform: rotate(45deg); }
.feats p { color: var(--fg-2); font-size: 15.5px; }
.hubdemo { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(28px, 5vw, 80px); align-items: center; margin-top: clamp(80px, 13vh, 150px); }
.chatwin { border-radius: 26px; overflow: hidden; background: #F7F5F1; color: #0F1A2C; box-shadow: var(--shadow); border: 1px solid rgba(14, 27, 51, .08); }
.chatwin__bar { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid rgba(14, 27, 51, .08); background: #fff; }
.chatwin__bar img { width: 26px; height: 26px; border-radius: 7px; }
.chatwin__bar span { color: #6A7385; font-size: 13px; }
.chatwin__bar .ex { margin-left: auto; font: 600 10.5px/1 var(--f-mono); font-style: normal; letter-spacing: .08em; text-transform: uppercase; padding: 5px 9px; border-radius: 8px; background: #EEF1F6; color: #5A6478; }
.chatwin__body { display: grid; gap: 14px; padding: 22px; min-height: 420px; align-content: start; }
.msg { max-width: 88%; padding: 13px 16px; border-radius: 18px; font-size: 15px; line-height: 1.5; opacity: 0; transform: translateY(10px); transition: opacity .5s, transform .6s var(--e-out); }
.msg.on { opacity: 1; transform: none; }
.msg.me { justify-self: end; background: #2F6BFF; color: #fff; border-bottom-right-radius: 6px; }
.msg.ai { background: #fff; border: 1px solid rgba(14, 27, 51, .08); border-bottom-left-radius: 6px; display: grid; gap: 12px; }
.msg.done { background: #E8F7EE; color: #0F5132; border: 1px solid #BFE6CF; }
.think { font-size: 13px; font-weight: 600; color: #6A7385; display: flex; align-items: center; gap: 6px; }
.dots3 { display: inline-flex; gap: 3px; }
.dots3 i { width: 4px; height: 4px; border-radius: 50%; background: currentColor; animation: dot 1s infinite; }
.dots3 i:nth-child(2) { animation-delay: .15s; } .dots3 i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 50% { opacity: .2; } }
.checks { display: grid; gap: 7px; }
.check { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 12px; border-radius: 11px; background: #F4F6FA; font-size: 13.5px; opacity: 0; transform: translateX(-8px); transition: opacity .4s, transform .5s var(--e-out); }
.check.on { opacity: 1; transform: none; }
.check em { font-family: var(--f-sans); font-style: normal; font-size: 12.5px; font-weight: 650; padding: 3px 8px; border-radius: 6px; }
.check[data-ok="1"] em { background: #E2F5EA; color: #13794A; }
.check[data-ok="0"] em { background: #FFF0E0; color: #B4540F; }
.ans { opacity: 0; transition: opacity .5s; }
.ans.on { opacity: 1; }
.ask { display: grid; gap: 10px; padding: 12px; border-radius: 14px; background: #EEF3FF; opacity: 0; transform: translateY(6px); transition: opacity .5s, transform .6s var(--e-out); }
.ask.on { opacity: 1; transform: none; }
.ask p { font-weight: 650; font-size: 14px; }
.acts { display: flex; gap: 8px; }
.acts span { padding: 8px 14px; border-radius: 10px; font-size: 13.5px; font-weight: 600; background: #fff; border: 1px solid rgba(14, 27, 51, .1); }
.acts .yes { background: #2F6BFF; color: #fff; border-color: #2F6BFF; transition: transform .2s, box-shadow .3s; }
.acts .yes.press { transform: scale(.94); box-shadow: 0 0 0 6px rgba(47, 107, 255, .2); }
.split .shot { align-self: stretch; }
.split .shot img { height: 100%; object-fit: cover; object-position: 50% 30%; }

/* ---------- CI Echo ---------- */
.tvwall { margin-top: clamp(64px, 10vh, 120px); }
.tvwall img { width: 100%; border-radius: 18px; border: 10px solid #0B0F18; box-shadow: 0 60px 120px -50px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .06); }
.tvwall figcaption { margin-top: 18px; text-align: center; font: 600 11.5px/1.4 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--fg-3); }
.echodemo { display: grid; grid-template-columns: 1fr auto 340px; gap: clamp(20px, 3vw, 46px); align-items: center; margin-top: clamp(80px, 13vh, 150px); }
.echodemo__mic { padding: 34px; border-radius: 28px; background: var(--card); border: 1px solid var(--line); }
.wave { display: flex; align-items: center; gap: 4px; height: 70px; margin: 10px 0 22px; }
.wave i { flex: 1; height: 8%; border-radius: 4px; background: linear-gradient(180deg, #9CD3FF, #3B7BFF); }
.echodemo__src { min-height: 3.2em; font-size: clamp(19px, 1.6vw, 24px); line-height: 1.45; font-weight: 600; }
.echodemo__src.typing::after { content: ""; display: inline-block; width: 2px; height: 1em; margin-left: 3px; vertical-align: -2px; background: #9CD3FF; animation: blink .8s steps(1) infinite; }
.echodemo__arrow { display: grid; justify-items: center; gap: 8px; color: #9CD3FF; font: 600 11px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; }
.echodemo__arrow svg { width: 110px; }
.echodemo__arrow .lat { color: var(--fg-3); }
.phone { border-radius: 40px; padding: 18px 18px 26px; min-height: 460px; background: linear-gradient(180deg, #0D1B36, #091327); border: 8px solid #04070E; box-shadow: 0 50px 90px -40px rgba(0, 0, 0, .9), inset 0 0 0 1px rgba(255, 255, 255, .06); color: #EEF2F8; }
.phone__top { display: flex; align-items: center; gap: 8px; padding: 8px 6px 14px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.phone__top img { width: 24px; height: 24px; }
.phone__top b { font-size: 14px; }
.phone__top .live { margin-left: auto; font: 700 10.5px/1 var(--f-mono); color: #FF6B6B; letter-spacing: .06em; animation: dot 1.6s infinite; }
.phone__lang { margin: 14px 6px 8px; font: 600 11px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: #9CD3FF; }
.phone__lines { display: grid; gap: 10px; padding: 0 6px; }
.phone__lines p { font-size: 16.5px; line-height: 1.45; opacity: 0; transform: translateY(8px); transition: opacity .5s, transform .6s var(--e-out), color .6s; }
.phone__lines p.in { opacity: 1; transform: none; }
.phone__lines p.draft { color: rgba(238, 242, 248, .55); }
.phone__lines p.old { color: rgba(238, 242, 248, .42); }

/* ---------- CI Vision ---------- */
.vision-hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(16px, 2.4vw, 32px); align-items: end; }
.tvframe { padding: 12px; border-radius: 22px; background: #11151E; box-shadow: var(--shadow); }
.tvframe img { width: 100%; border-radius: 12px; }
.vdemo { margin-top: clamp(80px, 13vh, 150px); padding: clamp(22px, 3vw, 40px); border-radius: 30px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.vdemo__steps { list-style: none; margin: 0 0 26px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.vdemo__steps li { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; align-items: center; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line); opacity: .5; transition: opacity .4s, border-color .4s, background-color .4s; }
.vdemo__steps li.on { opacity: 1; border-color: var(--tint); background: color-mix(in srgb, var(--tint) 7%, transparent); }
.vdemo__steps b { grid-row: span 2; width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; font: 700 13px/1 var(--f-mono); color: #fff; background: var(--tint); }
.vdemo__steps span { font-weight: 650; }
.vdemo__steps small { color: var(--fg-3); font-size: 12.5px; }
.vdemo__stage { position: relative; display: grid; grid-template-columns: 300px 1fr; gap: 70px; align-items: center; }
.vmake { position: relative; z-index: 2; border-radius: 18px; background: #FBFAF7; border: 1px solid rgba(14, 27, 51, .1); color: #0F1A2C; overflow: hidden; }
.vmake__bar { display: flex; align-items: center; gap: 8px; padding: 11px 14px; border-bottom: 1px solid rgba(14, 27, 51, .08); background: #fff; font-size: 13px; }
.vmake__bar img { width: 20px; height: 20px; border-radius: 5px; }
.vmake__bar span { margin-left: auto; color: #8A93A6; font: 500 11px/1 var(--f-mono); }
.vmake__body { padding: 14px; display: grid; gap: 10px; }
.vmake__lbl { font: 600 10.5px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: #8A93A6; }
.vtypes { display: flex; flex-wrap: wrap; gap: 6px; }
.vtypes i { font-style: normal; font-size: 12px; padding: 6px 9px; border-radius: 8px; background: #EEF1F6; color: #3B475C; transition: background-color .3s, color .3s; }
.vtypes i.on { background: #1F5FBF; color: #fff; }
.vitem { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; background: #fff; border: 1px solid rgba(14, 27, 51, .08); transition: opacity .3s, transform .4s var(--e-out); }
.vitem.swap { opacity: 0; transform: translateY(6px); }
.vitem__ic { width: 30px; height: 30px; border-radius: 9px; background: var(--ic, #f4b400); flex: none; }
.vitem b { display: block; font-size: 13.5px; }
.vitem small { color: #8A93A6; font-size: 11.5px; }
.vrooms { display: grid; gap: 5px; }
.vrooms label { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #3B475C; }
.vrooms label i { width: 14px; height: 14px; border-radius: 4px; border: 1.5px solid #B8C0CE; transition: background-color .2s, border-color .2s; }
.vrooms label.on i { background: #1F5FBF; border-color: #1F5FBF; box-shadow: inset 0 0 0 2px #fff; }
.vpublish { padding: 10px; border-radius: 11px; text-align: center; font-weight: 650; font-size: 13.5px; color: #fff; background: #1F5FBF; transition: transform .2s, box-shadow .3s; }
.vpublish.press { transform: scale(.95); box-shadow: 0 0 0 6px rgba(31, 95, 191, .2); }
.vwires { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; overflow: visible; }
.vwires path { fill: none; stroke: #1F5FBF; stroke-width: 1.5; stroke-dasharray: 5 6; opacity: 0; transition: opacity .4s; }
.vwires path.on { opacity: .7; animation: flow 1s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -22; } }
.vwall { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tv { display: grid; gap: 8px; }
.tv__screen { aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; border: 6px solid #12161F; background: #0B1F3C; box-shadow: 0 16px 30px -16px rgba(0, 0, 0, .5); }
.tv.flash .tv__screen { animation: tvflash .9s var(--e-out); }
@keyframes tvflash { 0% { filter: brightness(2.2); } 100% { filter: none; } }
.tv__label { display: flex; align-items: center; gap: 7px; font: 500 11px/1.2 var(--f-mono); color: var(--fg-3); }
.tv__label .dot { width: 6px; height: 6px; border-radius: 50%; background: #22C55E; }
.tv__board { height: 100%; padding: 8% 9%; display: grid; align-content: center; gap: 3px; color: #fff; font-size: clamp(8px, .72vw, 11px); line-height: 1.3; }
.tv__board small { opacity: .7; font-size: .85em; }
.tv__board b { font-family: var(--f-display); font-size: 1.6em; line-height: 1.05; letter-spacing: -.02em; }
.tv__board b i { font-family: var(--f-serif); font-weight: 400; }
.tv__board--idle { background: radial-gradient(80% 90% at 70% 10%, #1D4C8F, #0A2342); }
.tv__board--slides { background: #FBF6EE; color: #10213D; }
.tv__board--slides small { color: #B4540F; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.tv__board--slides ul { margin: 2px 0 0; padding-left: 1.1em; }
.tv__board--slides em { font-family: var(--f-sans); font-style: normal; font-weight: 700; }
.tv__board--lunch { background: linear-gradient(160deg, #E9F7EE, #D2EFD9); color: #12402A; }
.tv__board--lunch .lm { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-top: 4px; }
.tv__board--lunch .lm span { padding: 4px; border-radius: 4px; background: rgba(255, 255, 255, .7); font-size: .8em; }
.tv__board--lunch .lm em { display: block; font-family: var(--f-sans); font-style: normal; font-weight: 700; color: #1E7A47; }
.tv__board--yt { background: #111; justify-items: center; text-align: center; }
.tv__board--yt .yt { width: 2.6em; height: 1.8em; border-radius: .5em; background: #FF0033; display: grid; place-items: center; font-size: 1.2em; }
.tv__board--count { background: linear-gradient(160deg, #2A1A0E, #4A230B); justify-items: center; text-align: center; }
.tv__board--count .cd { font-family: var(--f-num); font-size: 2.6em; font-weight: 300; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.vshots { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(14px, 2vw, 26px); margin-top: clamp(56px, 9vh, 100px); }
.vshots figure { margin: 0; }
.vshots img { width: 100%; border-radius: 16px; box-shadow: var(--shadow); border: 1px solid var(--line); background: var(--card); }
.vshots figcaption { margin-top: 12px; font-size: 13.5px; color: var(--fg-3); }
.vs-a { grid-column: span 7; } .vs-b { grid-column: span 5; } .vs-c { grid-column: span 7; } .vs-d { grid-column: span 5; align-self: center; }
.vcompare { margin-top: clamp(56px, 9vh, 100px); padding: clamp(24px, 3vw, 40px); border-radius: 26px; background: var(--card); border: 1px solid var(--line); }
.vcompare h4 { font-family: var(--f-display); font-size: 24px; font-weight: 650; letter-spacing: -.03em; margin-bottom: 18px; }
.vcompare table { width: 100%; border-collapse: collapse; font-size: 15px; }
.vcompare th, .vcompare td { text-align: left; padding: 13px 10px; border-bottom: 1px solid var(--line); }
.vcompare th { font-weight: 650; color: var(--fg-2); }
.vcompare th small { font-weight: 500; color: var(--fg-3); }
.vcompare td.no { color: var(--fg-3); }
.vcompare td.yes { font-weight: 650; }
.vcompare td.yes::before { content: "✓ "; color: var(--tint); }
.vcompare .src { margin-top: 14px; font-size: 12.5px; color: var(--fg-3); }

/* ---------- CI Connects ---------- */
.ckdemo { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 18px; padding: 18px; border-radius: 30px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.ckdemo__room { position: relative; display: grid; justify-items: center; align-content: center; gap: 14px; padding: 46px 20px 30px; border-radius: 20px; background: #0E2548; color: #EEF2F8; overflow: hidden; }
.ckdemo__room::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 60% at 50% 0%, rgba(124, 184, 255, .3), transparent 70%); }
.ckdemo__ws { position: relative; text-align: center; display: grid; gap: 4px; }
.ckdemo__ws small { font: 600 10.5px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; opacity: .7; }
.ckdemo__ws b { font-family: var(--f-display); font-size: 22px; letter-spacing: -.02em; }
.ckdemo__qr { position: relative; width: 150px; aspect-ratio: 1; border-radius: 14px; background: #fff; padding: 12px; }
.ckdemo__qr i { position: absolute; inset: 12px; background:
  linear-gradient(#0E2548 0 0) 0 0 / 34% 34% no-repeat, linear-gradient(#0E2548 0 0) 100% 0 / 34% 34% no-repeat, linear-gradient(#0E2548 0 0) 0 100% / 34% 34% no-repeat,
  repeating-conic-gradient(#0E2548 0 25%, transparent 0 50%) 50% 50% / 16% 16%; opacity: .92; }
.ckdemo__qr::after { content: ""; position: absolute; left: 6px; right: 6px; top: 10%; height: 2px; background: #5CE1B0; box-shadow: 0 0 12px #5CE1B0; opacity: 0; }
.ckdemo.scan .ckdemo__qr::after { animation: qrscan 1.2s var(--e-io) both; }
@keyframes qrscan { 0% { top: 8%; opacity: 1; } 100% { top: 90%; opacity: 0; } }
.ckdemo__code { position: relative; font-size: 13px; opacity: .75; }
.ckdemo__code b { font-family: var(--f-mono); letter-spacing: .14em; }
.ckdemo__phone { display: grid; gap: 10px; align-content: center; padding: 8px 4px; }
.ck { display: grid; gap: 4px; padding: 14px 16px; border-radius: 16px; background: color-mix(in srgb, var(--fg) 4%, transparent); opacity: .22; transform: translateY(8px) scale(.98); transition: opacity .5s, transform .6s var(--e-out), background-color .5s, box-shadow .5s; }
.ck.on { opacity: 1; transform: none; background: var(--card); box-shadow: 0 14px 30px -20px rgba(14, 27, 51, .5), inset 0 0 0 1px var(--line); }
.ck small { font: 600 10.5px/1.2 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--fg-3); }
.ck b { font-size: 16px; }
.ck .btn { justify-self: start; margin-top: 6px; padding: 8px 14px; border-radius: 10px; font-size: 13px; font-weight: 650; color: #fff; background: #0E3A6E; transition: transform .2s, box-shadow .3s; }
.ck .btn.press { transform: scale(.94); box-shadow: 0 0 0 6px rgba(14, 58, 110, .2); }
.ck--done b { color: #13794A; }
.ck--hours .bar { height: 7px; border-radius: 4px; background: var(--line); overflow: hidden; margin-top: 6px; }
.ck--hours .bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #0E3A6E, #3B7BFF); border-radius: 4px; transition: width 1.1s var(--e-out); }
.ck--hours.on .bar i { width: 75%; }
.ck--cert { position: relative; }
.ck--cert .seal { position: absolute; right: 14px; top: 50%; width: 42px; height: 42px; margin-top: -21px; border-radius: 50%; display: grid; place-items: center; font: 700 10px/1 var(--f-mono); color: #8A5A00; background: conic-gradient(from 0deg, #F7D774, #E7B53B, #F7D774, #D9A126, #F7D774); box-shadow: 0 6px 16px -6px rgba(140, 90, 0, .6); transform: scale(.6) rotate(-30deg); opacity: 0; transition: transform .7s var(--e-out), opacity .4s; }
.ck--cert.on .seal { transform: none; opacity: 1; }

/* ---------- CI Campus ---------- */
.cinema { position: relative; margin: 0; border-radius: 24px; overflow: hidden; box-shadow: 0 60px 120px -50px rgba(0, 0, 0, .9); }
.cinema img { width: 100%; transform-origin: 50% 60%; }
.cinema .cap { position: absolute; left: 22px; bottom: 20px; padding: 8px 14px; border-radius: 999px; font: 600 12px/1 var(--f-mono); letter-spacing: .04em; color: #EEF2F8; background: rgba(6, 19, 39, .55); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.cinema .cap__url { opacity: .65; }
.cinema--map { margin-top: clamp(56px, 9vh, 100px); }

/* =========================================================
   PATTERN, GUARDRAILS, LINKS, CLOSE
   ========================================================= */
.pattern, .guard, .try { padding: var(--section) 0; }
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2vw, 24px); margin-top: clamp(48px, 8vh, 80px); }
.three article { position: relative; padding: 34px 30px 32px; border-radius: 26px; background: var(--card); border: 1px solid var(--line); overflow: hidden; }
.three .n { font-family: var(--f-num); font-size: 120px; font-weight: 200; line-height: .8; letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 1px var(--line-2); position: absolute; right: 18px; top: 14px; }
.three h3 { font-family: var(--f-display); font-size: 27px; font-weight: 650; letter-spacing: -.03em; font-stretch: 88%; margin: 60px 0 14px; }
.three p { color: var(--fg-2); }
.three .tags { margin-top: 18px; font: 500 12px/1.5 var(--f-mono); color: var(--fg-3); }
.guard__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: clamp(48px, 8vh, 80px); border-radius: 26px; overflow: hidden; background: var(--line); border: 1px solid var(--line); }
.guard__grid article { padding: 30px 26px; background: var(--bg); transition: background-color 1s; }
.guard__grid h3 { font-family: var(--f-display); font-size: 22px; font-weight: 650; letter-spacing: -.025em; margin-bottom: 12px; }
.guard__grid p { color: var(--fg-2); font-size: 15.5px; }
.try__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: clamp(48px, 8vh, 80px); }
.try__card { position: relative; display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: 22px; text-decoration: none; background: var(--card); border: 1px solid var(--line); overflow: hidden; transition: transform .5s var(--e-out), box-shadow .5s, border-color .3s; }
.try__card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 40%, color-mix(in srgb, var(--c) 12%, transparent)); opacity: 0; transition: opacity .4s; }
.try__card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--c) 40%, transparent); }
.try__card:hover::after { opacity: 1; }
.try__card img { width: 52px; height: 52px; border-radius: 14px; flex: none; }
.try__card span { display: grid; gap: 2px; }
.try__card b { font-family: var(--f-display); font-size: 20px; letter-spacing: -.02em; }
.try__card small { font: 500 12.5px/1.3 var(--f-mono); color: var(--fg-3); }
.try__card > i { margin-left: auto; font-style: normal; font-size: 18px; color: var(--fg-3); transition: transform .4s var(--e-out), color .3s; }
.try__card:hover > i { transform: translate(3px, -3px); color: var(--fg); }

.close { position: relative; min-height: 100vh; padding: var(--section) 0 120px; overflow: hidden; display: grid; align-items: end; }
.close__art { position: absolute; right: -8vw; top: 50%; width: min(90vh, 70vw); aspect-ratio: 1; transform: translateY(-52%); pointer-events: none; opacity: .9; }
.close__art canvas { width: 100%; height: 100%; }
.close__inner { position: relative; z-index: 2; }
.next { list-style: none; margin: 0 0 clamp(56px, 10vh, 110px); padding: 0; display: grid; gap: 0; max-width: 760px; border-top: 1px solid var(--line); }
.next li { display: grid; grid-template-columns: 210px 1fr; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.next b { font-family: var(--f-display); font-size: 20px; letter-spacing: -.02em; }
.next span { color: var(--fg-2); }
.close__title { font-family: var(--f-display); font-size: clamp(80px, 13vw, 230px); line-height: .84; letter-spacing: -.06em; font-weight: 700; font-stretch: 78%; }
.close__sub { margin-top: 22px; font: 600 12px/1 var(--f-mono); letter-spacing: .22em; text-transform: uppercase; color: var(--fg-3); }

/* =========================================================
   SMALLER SCREENS
   ========================================================= */
@media (max-width: 1180px) {
  .chapters a { padding: 8px 9px; }
  .chapters a span { display: none; }
  .brand i { display: none; }
}
@media (max-width: 980px) {
  .chrome { gap: 10px; }
  .brand span { display: none; }
  .chap__head { grid-template-columns: 1fr; }
  .chap__id { position: static; grid-template-columns: auto auto; justify-content: start; align-items: end; }
  .chap__num { font-size: 96px; }
  .split, .demo-row, .hubdemo, .vision-hero, .shot-pair { grid-template-columns: 1fr; }
  .echodemo { grid-template-columns: 1fr; }
  .echodemo__arrow { transform: rotate(90deg); margin: 10px auto; }
  .echodemo__phone { max-width: 360px; margin: 0 auto; width: 100%; }
  .feats, .three { grid-template-columns: 1fr 1fr; }
  .guard__grid { grid-template-columns: 1fr 1fr; }
  .try__grid { grid-template-columns: 1fr 1fr; }
  .vdemo__stage { grid-template-columns: 1fr; gap: 24px; }
  .vwires { display: none; }
  .hero__msg > * { max-width: 100%; }
  .next li { grid-template-columns: 1fr; gap: 4px; }
}
@media (max-width: 980px) {
  .hero { height: auto; min-height: 0; padding-bottom: 80px; }
  .hero__stage { position: relative; inset: auto; height: 150vw; }
  .hero__office { top: 22px; letter-spacing: .18em; font-size: 10px; }
  .hero__msg { position: relative; inset: auto; padding-top: 64px; display: block; }
  .js .hero__msg { visibility: visible; }
  .hero__title .ch { transition: transform 1.05s var(--e-out), opacity .6s var(--e-out); transition-delay: calc(var(--i, 0) * 22ms); }
  .hero__hint, .hero__cue { display: none; }
}
@media (max-width: 700px) {
  .chapters { display: none; }
  .chrome { padding: 6px 12px 6px 8px; }
  .brand span { display: inline; font-size: 12.5px; }
  .phones { justify-content: flex-start; overflow-x: auto; padding: 30px 20px 10px; margin: 0 calc(-1 * var(--gutter)); scroll-snap-type: x mandatory; scrollbar-width: none; }
  .phones figure { flex: 0 0 62vw; scroll-snap-align: center; transform: none !important; }
  .metrics, .facts { grid-template-columns: 1fr; }
  .metrics > div, .facts > div { padding: 22px 0; border-bottom: 1px solid var(--line); }
  .feats, .three, .guard__grid, .try__grid { grid-template-columns: 1fr; }
  .tagdemo, .ckdemo { grid-template-columns: 1fr; }
  .vdemo__steps { grid-template-columns: 1fr; }
  .vwall { grid-template-columns: 1fr 1fr; }
  .vs-a, .vs-b, .vs-c, .vs-d { grid-column: span 12; }
  .rail { display: none; }
  .hero__hint { display: none; }
  .mac__toggle { top: 44px; right: 12px; }
  .close__art { right: -30vw; top: 30%; width: 120vw; opacity: .5; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
  .js .reveal, .js .chars .ch { opacity: 1 !important; transform: none !important; }
}
