/* CT Marine Global — site styles */
@font-face { font-family: "Sora"; src: url("../fonts/sora-latin-wght-normal.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }

:root {
  --abyss: #030817;
  --deep: #050b1f;
  --ocean: #0a1733;
  --surface: #0f1f42;
  --line: rgba(201, 220, 244, .12);
  --line-strong: rgba(201, 220, 244, .24);
  --navy: #1f398e;
  --cyan: #1cbae4;
  --cyan-soft: rgba(28, 186, 228, .14);
  --ice: #c9dcf4;
  --text: #e8f0fb;
  --muted: #9fb2cf;
  --amber: #ffb547;
  --red: #ff5d73;
  --green: #3ddc97;
  --paper: #f3f7fd;
  --ink: #0a1733;
  --ink-muted: #4a5c7c;
  --radius: 18px;
  --radius-sm: 10px;
  --wrap: 1200px;
  --font-head: "Sora", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--deep); color: var(--text);
  font: 400 17px/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.02em; font-weight: 650; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.6rem); font-weight: 700; letter-spacing: -.035em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); }
h3 { font-size: 1.25rem; letter-spacing: -.01em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--cyan); color: var(--abyss); }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.mono { font-family: var(--font-mono); font-size: .8em; letter-spacing: .02em; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--cyan); color: var(--abyss); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
.grad { background: linear-gradient(100deg, var(--cyan) 10%, #7fdcf5 50%, var(--ice) 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow {
  font-family: var(--font-mono); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 1rem; display: inline-flex; align-items: center; gap: .6em;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.22rem); color: var(--muted); max-width: 62ch; }
.section { padding: clamp(72px, 10vw, 140px) 0; position: relative; }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow::before { display: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .85em 1.4em; border-radius: 999px; font-weight: 600; font-size: .95rem;
  border: 1px solid transparent; cursor: pointer; transition: transform .25s var(--ease), background .25s, box-shadow .25s, border-color .25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--cyan); color: var(--abyss); box-shadow: 0 10px 30px -10px rgba(28, 186, 228, .7); }
.btn-primary:hover { box-shadow: 0 16px 40px -10px rgba(28, 186, 228, .9); }
.btn-ghost { border-color: var(--line-strong); color: var(--text); background: rgba(255, 255, 255, .03); }
.btn-ghost:hover { border-color: var(--cyan); }
.btn-sm { padding: .6em 1.1em; font-size: .88rem; }
.btn-lg { padding: 1em 1.7em; font-size: 1rem; }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled { background: rgba(5, 11, 31, .78); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); border-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 78px; }
.brand img { height: 54px; width: auto; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a:not(.btn) { padding: .5em .95em; border-radius: 999px; font-size: .93rem; color: var(--muted); font-weight: 500; transition: color .2s, background .2s; display: inline-flex; align-items: center; gap: .5em; }
.nav a:not(.btn):hover, .nav a[aria-current="page"]:not(.btn) { color: var(--text); background: rgba(255, 255, 255, .06); }
.nav-e27 { color: var(--text) !important; border: 1px solid rgba(28, 186, 228, .35); }
.nav-cta { margin-left: 10px; }
.pulse-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 0 rgba(28, 186, 228, .7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(28, 186, 228, 0); } 100% { box-shadow: 0 0 0 0 rgba(28, 186, 228, 0); } }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; position: relative; }
.nav-toggle span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s, opacity .3s; }
.nav-toggle span:nth-child(1) { top: 15px; } .nav-toggle span:nth-child(2) { top: 21px; } .nav-toggle span:nth-child(3) { top: 27px; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 920px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 78px 0 auto; flex-direction: column; align-items: stretch; gap: 4px;
    padding: 16px; background: var(--deep); border-bottom: 1px solid var(--line); box-shadow: 0 30px 60px rgba(0, 0, 0, .5);
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: .3s var(--ease);
  }
  .nav a:not(.btn) { padding: .9em 1em; font-size: 1.05rem; }
  .nav-cta { margin: 8px 0 0; }
  .nav-open .nav { transform: none; opacity: 1; pointer-events: auto; }
  .nav-open .site-header { background: var(--deep); }
}

/* Reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.stagger > * { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.stagger.in > * { opacity: 1; transform: none; }
.stagger.in > *:nth-child(2) { transition-delay: .08s; } .stagger.in > *:nth-child(3) { transition-delay: .16s; }
.stagger.in > *:nth-child(4) { transition-delay: .24s; } .stagger.in > *:nth-child(5) { transition-delay: .32s; }
.stagger.in > *:nth-child(6) { transition-delay: .4s; } .stagger.in > *:nth-child(7) { transition-delay: .48s; }
.stagger.in > *:nth-child(8) { transition-delay: .56s; }

/* Hero (home) */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; padding: 120px 0 90px; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -3; background: url("../img/hero-port.jpg") center/cover; transform: scale(1.08); filter: saturate(.85); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background:
  radial-gradient(ellipse 80% 60% at 70% 40%, rgba(28, 186, 228, .12), transparent 60%),
  linear-gradient(180deg, rgba(5, 11, 31, .82) 0%, rgba(5, 11, 31, .7) 40%, var(--deep) 100%),
  linear-gradient(90deg, rgba(5, 11, 31, .92) 0%, rgba(5, 11, 31, .35) 70%); }
.hero canvas { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; }
.hero-grid { display: grid; grid-template-columns: 1.25fr .9fr; gap: 48px; align-items: center; }
.hero h1 { margin-bottom: .35em; }
.hero .lead { margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-meta { display: flex; gap: 28px; margin-top: 48px; flex-wrap: wrap; font-family: var(--font-mono); font-size: .78rem; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.hero-meta span::before { content: "●"; color: var(--green); margin-right: .6em; font-size: .7em; vertical-align: 2px; }

.radar-card {
  position: relative; aspect-ratio: 1; border-radius: 50%; border: 1px solid var(--line-strong);
  background: radial-gradient(circle, rgba(28, 186, 228, .1) 0%, rgba(5, 11, 31, .6) 70%);
  box-shadow: inset 0 0 80px rgba(28, 186, 228, .12), 0 40px 120px -40px rgba(28, 186, 228, .5);
  overflow: hidden; backdrop-filter: blur(4px);
}
.radar-card::before, .radar-card::after { content: ""; position: absolute; inset: 0; border-radius: 50%; }
.radar-card::before { background:
  radial-gradient(circle, transparent 0 24.6%, var(--line) 24.8% 25%, transparent 25.2% 49.6%, var(--line) 49.8% 50%, transparent 50.2% 74.6%, var(--line) 74.8% 75%, transparent 75.2%),
  linear-gradient(var(--line), var(--line)) center/1px 100% no-repeat,
  linear-gradient(var(--line), var(--line)) center/100% 1px no-repeat; }
.radar-card::after { background: conic-gradient(from 0deg, rgba(28, 186, 228, .55), rgba(28, 186, 228, 0) 22%, transparent); animation: sweep 5s linear infinite; mix-blend-mode: screen; }
@keyframes sweep { to { transform: rotate(360deg); } }
.blip { position: absolute; width: 10px; height: 10px; margin: -5px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 14px var(--cyan); z-index: 2; animation: blip 5s infinite; }
.blip.warn { background: var(--amber); box-shadow: 0 0 14px var(--amber); }
@keyframes blip { 0%, 100% { opacity: .25; transform: scale(.7); } 10% { opacity: 1; transform: scale(1.2); } 40% { opacity: .7; transform: scale(1); } }
.blip-label { position: absolute; z-index: 3; font-family: var(--font-mono); font-size: .68rem; color: var(--ice); background: rgba(5, 11, 31, .75); border: 1px solid var(--line-strong); padding: 3px 8px; border-radius: 6px; white-space: nowrap; transform: translate(10px, -50%); }
.radar-center { position: absolute; left: 50%; top: 50%; width: 22%; transform: translate(-50%, -50%); z-index: 3; filter: drop-shadow(0 0 20px rgba(28, 186, 228, .5)); }

@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; }
  .radar-card { max-width: 380px; width: 100%; margin: 12px auto 0; }
}

/* Marquee */
.marquee { border-block: 1px solid var(--line); background: var(--abyss); overflow: hidden; padding: 18px 0; }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: marquee 40s linear infinite; font-family: var(--font-mono); font-size: .85rem; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; }
.marquee-track span { display: inline-flex; align-items: center; gap: 48px; white-space: nowrap; }
.marquee-track span::after { content: "◆"; color: var(--cyan); font-size: .6em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Cards / grids */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; } }

.card {
  position: relative; padding: 30px; border-radius: var(--radius); border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(15, 31, 66, .7), rgba(10, 23, 51, .45));
  transition: border-color .3s, transform .4s var(--ease), background .3s; overflow: hidden;
}
.card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(28, 186, 228, .14), transparent 45%); opacity: 0; transition: opacity .3s; }
.card:hover { border-color: rgba(28, 186, 228, .4); transform: translateY(-4px); }
.card:hover::before { opacity: 1; }
.card h3 { margin-top: 18px; }
.card p { color: var(--muted); font-size: .96rem; margin: 0; }
.card .icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--cyan-soft); border: 1px solid rgba(28, 186, 228, .3); color: var(--cyan); }
.card .icon svg { width: 26px; height: 26px; }
.card .num { position: absolute; top: 26px; right: 28px; font-family: var(--font-mono); font-size: .75rem; color: var(--muted); }
.card .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.tag { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .04em; padding: 4px 9px; border-radius: 6px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); color: var(--ice); }
.card-link { display: inline-flex; align-items: center; gap: .4em; margin-top: 20px; color: var(--cyan); font-weight: 600; font-size: .92rem; }
.card-feature { grid-column: span 2; grid-row: span 2; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; padding: 40px;
  background: linear-gradient(135deg, rgba(31, 57, 142, .55), rgba(10, 23, 51, .6)); border-color: rgba(28, 186, 228, .35); }
@media (max-width: 1000px) { .card-feature { grid-row: auto; padding: 30px; } }
@media (max-width: 640px) { .card-feature { grid-column: auto; } }

.card-feature::after { content: "E27"; position: absolute; right: -10px; bottom: 40px; font-family: var(--font-head); font-weight: 800; font-size: clamp(6rem, 13vw, 11rem); line-height: 1; letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 1.5px rgba(28, 186, 228, .28); pointer-events: none; }
.card-feature > * { position: relative; z-index: 1; }
.card-feature h3 { font-size: clamp(1.4rem, 2.4vw, 2rem); }
.card-feature p { font-size: 1.02rem; max-width: 46ch; }
.light .tag { background: #eef3fb; border-color: #d6e1f1; color: var(--navy); }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat { padding: 32px 28px; border-right: 1px solid var(--line); background: rgba(10, 23, 51, .5); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-family: var(--font-head); font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 650; letter-spacing: -.03em; line-height: 1; margin-bottom: 10px; }
.stat span { color: var(--muted); font-size: .92rem; }
@media (max-width: 800px) { .stats { grid-template-columns: 1fr 1fr; } .stat:nth-child(2) { border-right: 0; } .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }

/* E27 showcase band on home */
.e27-band { position: relative; overflow: hidden; background: var(--abyss); border-block: 1px solid var(--line); }
.e27-band::before { content: ""; position: absolute; inset: 0; background:
  linear-gradient(var(--line) 1px, transparent 1px) 0 0/48px 48px,
  linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0/48px 48px;
  mask-image: radial-gradient(ellipse 70% 70% at 70% 50%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 70% 70% at 70% 50%, #000 20%, transparent 75%); opacity: .6; }
.e27-band-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; position: relative; }
.e27-mega { font-family: var(--font-head); font-weight: 800; font-size: clamp(5rem, 15vw, 12rem); line-height: .85; letter-spacing: -.06em;
  color: transparent; -webkit-text-stroke: 1.5px rgba(28, 186, 228, .7); position: relative; margin-bottom: 18px; }
.e27-mega span { position: absolute; inset: 0; color: var(--cyan); -webkit-text-stroke: 0; clip-path: inset(0 100% 0 0); animation: fillin 4s var(--ease) infinite alternate; }
@keyframes fillin { 0%, 15% { clip-path: inset(0 100% 0 0); } 70%, 100% { clip-path: inset(0 0 0 0); } }
.check-list li { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--ice); }
.check-list li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 3px; border-radius: 6px; background: var(--cyan-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%231cbae4' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 10.5l3 3 7-7'/%3E%3C/svg%3E") center/14px no-repeat; border: 1px solid rgba(28, 186, 228, .35); }
@media (max-width: 920px) { .e27-band-grid { grid-template-columns: 1fr; gap: 40px; } }

/* Terminal */
.terminal { border-radius: var(--radius); border: 1px solid var(--line-strong); background: rgba(3, 8, 23, .92); box-shadow: 0 40px 100px -30px rgba(28, 186, 228, .35); overflow: hidden; font-family: var(--font-mono); font-size: .82rem; }
.terminal-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .03); color: var(--muted); font-size: .72rem; }
.terminal-bar i { width: 10px; height: 10px; border-radius: 50%; background: #2a3a5e; }
.terminal-bar i:first-child { background: var(--red); } .terminal-bar i:nth-child(2) { background: var(--amber); } .terminal-bar i:nth-child(3) { background: var(--green); }
.terminal-bar b { margin-left: auto; font-weight: 400; }
.terminal-body { padding: 18px 20px; min-height: 300px; line-height: 1.9; color: var(--ice); white-space: pre-wrap; }
.terminal-body .ok { color: var(--green); } .terminal-body .warn { color: var(--amber); } .terminal-body .bad { color: var(--red); } .terminal-body .dim { color: var(--muted); } .terminal-body .hl { color: var(--cyan); }
.caret { display: inline-block; width: .6em; height: 1.1em; background: var(--cyan); vertical-align: -3px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* Process */
.process { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.process::before { content: ""; position: absolute; top: 27px; left: 28px; right: 28px; height: 1px; background: linear-gradient(90deg, var(--cyan), var(--line-strong)); }
.process li { position: relative; padding-right: 24px; }
.process li::before { counter-increment: step; content: "0" counter(step); display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--deep); border: 1px solid var(--cyan); font-family: var(--font-mono); color: var(--cyan); margin-bottom: 22px; position: relative; }
.process h3 { font-size: 1.1rem; }
.process p { color: var(--muted); font-size: .94rem; }
@media (max-width: 860px) { .process { grid-template-columns: 1fr 1fr; gap: 32px 0; } .process::before { display: none; } }
@media (max-width: 520px) { .process { grid-template-columns: 1fr; } }

/* Split image section */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split-media { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/5; border: 1px solid var(--line); }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split-media .badge { position: absolute; left: 18px; bottom: 18px; right: 18px; padding: 16px 18px; border-radius: 14px; background: rgba(5, 11, 31, .78); backdrop-filter: blur(10px); border: 1px solid var(--line-strong); font-size: .9rem; }
.split-media .badge strong { display: block; font-family: var(--font-head); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split-media { aspect-ratio: 16/11; } }

/* Port board */
.board { border: 1px solid var(--line-strong); border-radius: var(--radius); overflow: hidden; background: var(--abyss); font-family: var(--font-mono); }
.board-head, .board-row { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr .9fr; gap: 12px; padding: 14px 22px; align-items: center; }
.board-head { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line-strong); background: rgba(255, 255, 255, .03); }
.board-row { border-bottom: 1px solid var(--line); font-size: .9rem; transition: background .2s; }
.board-row:last-child { border-bottom: 0; }
.board-row:hover { background: rgba(28, 186, 228, .06); }
.board-row .port { font-family: var(--font-head); font-weight: 600; font-size: 1.02rem; color: var(--text); letter-spacing: .01em; }
.board-row .coord { color: var(--muted); font-size: .76rem; }
.status { display: inline-flex; align-items: center; gap: 8px; font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }
.status.partner::before { background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.status.remote::before { background: var(--amber); box-shadow: 0 0 10px var(--amber); }
@media (max-width: 700px) { .board-head { display: none; } .board-row { grid-template-columns: 1fr auto; } .board-row .coord, .board-row .svc { display: none; } }

/* Page hero (inner pages) */
.page-hero { padding: 170px 0 80px; position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(ellipse 60% 80% at 85% 0%, rgba(31, 57, 142, .55), transparent 60%),
  radial-gradient(ellipse 40% 50% at 10% 100%, rgba(28, 186, 228, .12), transparent 60%); }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(var(--line) 1px, transparent 1px) 0 0/56px 56px, linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0/56px 56px;
  mask-image: linear-gradient(180deg, #000, transparent 85%); -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%); opacity: .5; }
.page-hero h1 { font-size: clamp(2.3rem, 5vw, 4rem); max-width: 18ch; }
.crumbs { font-family: var(--font-mono); font-size: .75rem; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 22px; }
.crumbs a:hover { color: var(--cyan); }

/* Service detail blocks */
.svc-block { display: grid; grid-template-columns: 340px 1fr; gap: clamp(28px, 5vw, 72px); padding: 64px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 90px; }
.svc-block:last-child { border-bottom: 0; }
.svc-side { position: sticky; top: 110px; align-self: start; }
.svc-side .idx { font-family: var(--font-mono); color: var(--cyan); font-size: .8rem; letter-spacing: .1em; }
.svc-side h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-top: 12px; }
.svc-side p { color: var(--muted); }
.svc-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.svc-list li { padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: rgba(15, 31, 66, .4); }
.svc-list li strong { display: block; font-family: var(--font-head); font-weight: 600; margin-bottom: 4px; }
.svc-list li span { color: var(--muted); font-size: .93rem; }
@media (max-width: 900px) { .svc-block { grid-template-columns: 1fr; } .svc-side { position: static; } }
@media (max-width: 600px) { .svc-list { grid-template-columns: 1fr; } }
.subnav { position: sticky; top: 78px; z-index: 20; background: rgba(5, 11, 31, .85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.subnav .wrap { display: flex; gap: 6px; overflow-x: auto; padding: 10px 0; scrollbar-width: none; }
.subnav a { flex: none; padding: .45em 1em; border-radius: 999px; font-size: .86rem; color: var(--muted); border: 1px solid var(--line); }
.subnav a:hover, .subnav a.active { color: var(--text); border-color: var(--cyan); }

/* Projects */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filter { padding: .55em 1.1em; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; cursor: pointer; font-size: .9rem; color: var(--muted); transition: .2s; }
.filter:hover { color: var(--text); }
.filter[aria-pressed="true"] { background: var(--cyan); color: var(--abyss); border-color: var(--cyan); font-weight: 600; }
.project { display: flex; flex-direction: column; }
.project .meta { display: flex; justify-content: space-between; gap: 12px; font-family: var(--font-mono); font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.project .via { color: var(--cyan); }
.project h3 { margin-top: 18px; font-size: 1.15rem; }
.project .client { color: var(--ice); font-size: .88rem; margin-bottom: 10px; }
.project .tags { margin-top: auto; padding-top: 18px; }
.project.hide { display: none; }

/* About / group */
.entity { padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); background: rgba(15, 31, 66, .45); }
.entity .flag { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; color: var(--cyan); text-transform: uppercase; }
.entity h3 { margin: 12px 0 8px; }
.entity p { color: var(--muted); font-size: .95rem; margin: 0; }
.entity.hq { border-color: rgba(28, 186, 228, .45); background: linear-gradient(135deg, rgba(31, 57, 142, .5), rgba(15, 31, 66, .4)); }

/* Light section */
.light { background: var(--paper); color: var(--ink); }
.light .lead, .light p { color: var(--ink-muted); }
.light .eyebrow { color: var(--navy); }
.light h2, .light h3 { color: var(--ink); }
.light .grad { background-image: linear-gradient(100deg, var(--navy), var(--cyan)); }
.light .card { background: #fff; border-color: #dde6f3; box-shadow: 0 1px 0 rgba(10, 23, 51, .04); }
.light .card:hover { border-color: var(--cyan); box-shadow: 0 24px 50px -30px rgba(31, 57, 142, .35); }
.light .card p { color: var(--ink-muted); }
.light .card .icon { background: rgba(31, 57, 142, .08); border-color: rgba(31, 57, 142, .18); color: var(--navy); }

.light .pathway li { background: #fff; border-color: #dde6f3; }
.light .pathway li:hover { border-color: var(--cyan); box-shadow: 0 24px 50px -30px rgba(31, 57, 142, .35); }
.light .pathway li::before { -webkit-text-stroke-color: var(--navy); }
.light .pathway .out { color: var(--navy); }
.light .pathway p:not(.out) { color: var(--ink-muted); }

/* CTA band */
.cta-band { padding: 0 0 clamp(72px, 10vw, 120px); }
.cta-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; padding: clamp(36px, 6vw, 72px); border-radius: 28px; position: relative; overflow: hidden;
  background: radial-gradient(ellipse 60% 120% at 100% 0%, rgba(28, 186, 228, .35), transparent 60%), linear-gradient(135deg, var(--navy), #13265f 60%, var(--ocean)); border: 1px solid rgba(28, 186, 228, .35); }
.cta-inner h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); }
.cta-inner .lead { color: var(--ice); margin: 0; }
.cta-inner .eyebrow { color: var(--ice); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
@media (max-width: 860px) { .cta-inner { grid-template-columns: 1fr; } .cta-actions { justify-content: flex-start; } }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--abyss); padding: 72px 0 28px; font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px; }
.footer-brand img { height: 54px; width: auto; margin-bottom: 18px; }
.footer-brand p { color: var(--muted); max-width: 40ch; }
.site-footer h3 { font-size: .78rem; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .14em; color: var(--muted); font-weight: 500; margin-bottom: 18px; }
.site-footer li { margin-bottom: 10px; }
.site-footer a:hover { color: var(--cyan); }
.contact-list li { display: flex; gap: 10px; }
.contact-list .mono { color: var(--cyan); min-width: 34px; }
.coord { color: var(--cyan) !important; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: .84rem; }
.footer-bottom p { margin: 0; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.contact-card { padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); background: rgba(15, 31, 66, .45); margin-bottom: 14px; display: flex; gap: 16px; align-items: flex-start; }
.contact-card .icon { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--cyan-soft); color: var(--cyan); }
.contact-card .icon svg { width: 22px; }
.contact-card small { display: block; font-family: var(--font-mono); font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.contact-card a, .contact-card strong { font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; }
.contact-card a:hover { color: var(--cyan); }
.form { padding: clamp(24px, 4vw, 44px); border-radius: 24px; border: 1px solid var(--line-strong); background: linear-gradient(180deg, rgba(15, 31, 66, .8), rgba(10, 23, 51, .6)); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } .contact-grid { grid-template-columns: 1fr; } }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .84rem; color: var(--ice); margin-bottom: 7px; font-weight: 500; }
.field input, .field select, .field textarea { width: 100%; padding: 13px 15px; border-radius: 12px; border: 1px solid var(--line-strong); background: rgba(3, 8, 23, .6); color: var(--text); font: inherit; font-size: .96rem; transition: border-color .2s, box-shadow .2s; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(28, 186, 228, .15); }
.field select option { background: var(--ocean); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { margin: 0; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-block; padding: .5em 1em; border-radius: 999px; border: 1px solid var(--line-strong); font-size: .86rem; cursor: pointer; color: var(--muted); transition: .2s; }
.chips input:checked + span { background: var(--cyan-soft); border-color: var(--cyan); color: var(--text); }
.chips input:focus-visible + span { outline: 2px solid var(--cyan); outline-offset: 2px; }
.consent { display: flex; gap: 10px; font-size: .86rem; color: var(--muted); margin: 6px 0 20px; }
.consent input { margin-top: 4px; accent-color: var(--cyan); }
.consent a { color: var(--cyan); }
.hp { position: absolute; left: -9999px; }
.form-status { margin-top: 16px; padding: 14px 16px; border-radius: 12px; font-size: .93rem; display: none; }
.form-status.ok { display: block; background: rgba(61, 220, 151, .12); border: 1px solid rgba(61, 220, 151, .4); color: #b6f5d9; }
.form-status.err { display: block; background: rgba(255, 93, 115, .12); border: 1px solid rgba(255, 93, 115, .4); color: #ffc2cb; }

/* Prose (privacy) */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.5rem; margin-top: 2em; }
.prose p, .prose li { color: var(--muted); }
.prose ul { list-style: disc; padding-left: 1.2em; margin-bottom: 1em; }
.prose a { color: var(--cyan); }

/* ============ E27 page ============ */
.e27-hero { padding: 150px 0 90px; position: relative; overflow: hidden; isolation: isolate; }
.e27-hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background:
  radial-gradient(ellipse 50% 60% at 75% 45%, rgba(28, 186, 228, .2), transparent 65%),
  radial-gradient(ellipse 60% 70% at 0% 100%, rgba(31, 57, 142, .45), transparent 60%), var(--abyss); }
.e27-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(rgba(28, 186, 228, .08) 1px, transparent 1px) 0 0/40px 40px, linear-gradient(90deg, rgba(28, 186, 228, .08) 1px, transparent 1px) 0 0/40px 40px;
  mask-image: radial-gradient(ellipse 60% 60% at 70% 45%, #000, transparent 80%); -webkit-mask-image: radial-gradient(ellipse 60% 60% at 70% 45%, #000, transparent 80%); }
.e27-hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.e27-hero h1 { font-size: clamp(2.4rem, 5.2vw, 4.4rem); }
.e27-hero h1 .outline { color: transparent; -webkit-text-stroke: 1.5px var(--cyan); }
.e27-badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 32px; }
.e27-badges .tag { font-size: .74rem; padding: 6px 11px; }
@media (max-width: 960px) { .e27-hero-grid { grid-template-columns: 1fr; } }

.shield-wrap { position: relative; aspect-ratio: 1; max-width: 520px; margin-inline: auto; width: 100%; }
.shield-wrap svg { width: 100%; height: 100%; overflow: visible; }
.shield-ring { fill: none; stroke: rgba(28, 186, 228, .25); stroke-width: 1; }
.shield-ring.spin { stroke-dasharray: 4 10; animation: spin 40s linear infinite; transform-origin: 260px 260px; }
.shield-ring.spin.rev { animation-direction: reverse; animation-duration: 60s; stroke-dasharray: 60 20 4 20; stroke: rgba(201, 220, 244, .2); }
@keyframes spin { to { transform: rotate(360deg); } }
.shield-body { fill: url(#shieldGrad); stroke: var(--cyan); stroke-width: 2; filter: drop-shadow(0 0 30px rgba(28, 186, 228, .45)); }
.shield-scan { fill: url(#scanGrad); animation: scan 3.6s var(--ease) infinite; }
@keyframes scan { 0% { transform: translateY(-200px); } 100% { transform: translateY(240px); } }
.orbit-node { fill: var(--deep); stroke: var(--cyan); stroke-width: 1.5; }
.orbit-label { font-family: var(--font-mono); font-size: 11px; fill: var(--ice); letter-spacing: .06em; }
.orbit-group { animation: spin 50s linear infinite; transform-origin: 260px 260px; }
.orbit-group .counter { animation: spin 50s linear infinite reverse; transform-box: fill-box; transform-origin: center; }

.timeline { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 13px; height: 2px; background: linear-gradient(90deg, var(--line-strong), var(--cyan) 70%, var(--amber)); }
.tl-item { position: relative; padding-top: 44px; }
.tl-item::before { content: ""; position: absolute; top: 4px; left: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--deep); border: 2px solid var(--cyan); }
.tl-item.now::before { background: var(--amber); border-color: var(--amber); box-shadow: 0 0 0 6px rgba(255, 181, 71, .2); animation: pulse-amber 2s infinite; }
@keyframes pulse-amber { 50% { box-shadow: 0 0 0 12px rgba(255, 181, 71, 0); } }
.tl-item time { font-family: var(--font-mono); color: var(--cyan); font-size: .8rem; letter-spacing: .08em; }
.tl-item.now time { color: var(--amber); }
.tl-item h3 { font-size: 1.08rem; margin: 8px 0 6px; }
.tl-item p { color: var(--muted); font-size: .92rem; }
@media (max-width: 860px) { .timeline { grid-template-columns: 1fr; gap: 0; } .timeline::before { left: 9px; right: auto; width: 2px; height: auto; top: 0; bottom: 0; background: linear-gradient(180deg, var(--line-strong), var(--cyan) 70%, var(--amber)); } .tl-item { padding: 0 0 28px 44px; } }

.versus { display: grid; grid-template-columns: 1fr auto 1fr; gap: 0; border-radius: 24px; border: 1px solid var(--line-strong); overflow: hidden; }
.versus > div { padding: clamp(28px, 4vw, 48px); }
.versus .vs { display: grid; place-items: center; padding: 0 6px; background: var(--abyss); font-family: var(--font-mono); color: var(--muted); font-size: .8rem; writing-mode: vertical-rl; letter-spacing: .3em; border-inline: 1px solid var(--line); }
.versus .e26 { background: linear-gradient(160deg, rgba(31, 57, 142, .5), rgba(10, 23, 51, .5)); }
.versus .e27 { background: linear-gradient(200deg, rgba(28, 186, 228, .2), rgba(10, 23, 51, .5)); }
.versus .code { font-family: var(--font-head); font-weight: 800; font-size: clamp(3rem, 6vw, 4.6rem); line-height: 1; letter-spacing: -.04em; }
.versus .e26 .code { color: var(--ice); } .versus .e27 .code { color: var(--cyan); }
.versus .who { font-family: var(--font-mono); font-size: .76rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin: 10px 0 18px; }
.versus ul li { padding: 9px 0; border-top: 1px solid var(--line); color: var(--ice); font-size: .95rem; }
.pillars { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 18px; }
.pillars span { flex: 1; min-width: 80px; text-align: center; padding: 10px 6px; border-radius: 10px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); font-size: .78rem; font-family: var(--font-mono); }
@media (max-width: 800px) { .versus { grid-template-columns: 1fr; } .versus .vs { writing-mode: horizontal-tb; padding: 10px; border-inline: 0; border-block: 1px solid var(--line); } }

/* Vessel zone explorer */
.vessel-shell { border-radius: 28px; border: 1px solid var(--line-strong); background: radial-gradient(ellipse 80% 60% at 50% 100%, rgba(28, 186, 228, .1), transparent 70%), var(--abyss); overflow: hidden; }
.vessel-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; padding: 16px 22px; border-bottom: 1px solid var(--line); font-family: var(--font-mono); font-size: .76rem; color: var(--muted); }
.vessel-toolbar .legend { display: flex; gap: 16px; flex-wrap: wrap; }
.vessel-toolbar .legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.vessel-stage { position: relative; padding: 10px 10px 0; }
.vessel-svg { width: 100%; height: auto; }
.vessel-svg .hull { fill: #0c1a3a; stroke: var(--line-strong); stroke-width: 1.5; }
.vessel-svg .deck { fill: #0f2149; stroke: var(--line-strong); }
.vessel-svg .water { fill: url(#waterGrad); }
.vessel-svg .wave { fill: none; stroke: rgba(28, 186, 228, .35); stroke-width: 1.2; animation: wave 6s linear infinite; }
@keyframes wave { to { transform: translateX(-120px); } }
.zone { cursor: pointer; outline: none; }
.zone rect.zbox { fill: rgba(28, 186, 228, .07); stroke: rgba(28, 186, 228, .5); stroke-width: 1.2; stroke-dasharray: 5 4; transition: fill .3s, stroke .3s; rx: 8; }
.zone text { font-family: var(--font-mono); font-size: 12px; fill: var(--ice); pointer-events: none; letter-spacing: .05em; }
.zone .zcat { font-size: 10px; fill: var(--muted); }
.zone:hover rect.zbox, .zone:focus-visible rect.zbox { fill: rgba(28, 186, 228, .16); stroke: var(--cyan); }
.zone.active rect.zbox { fill: rgba(28, 186, 228, .24); stroke: var(--cyan); stroke-dasharray: none; stroke-width: 2; }
.zone.untrusted rect.zbox { fill: rgba(255, 181, 71, .07); stroke: rgba(255, 181, 71, .6); }
.zone.untrusted.active rect.zbox { fill: rgba(255, 181, 71, .2); stroke: var(--amber); }
.conduit { fill: none; stroke: rgba(28, 186, 228, .45); stroke-width: 1.5; stroke-dasharray: 3 6; animation: flow 1.2s linear infinite; }
.conduit.untrusted { stroke: rgba(255, 181, 71, .55); }
@keyframes flow { to { stroke-dashoffset: -18; } }
.gateway rect { fill: var(--deep); stroke: var(--cyan); stroke-width: 2; }
.gateway text { font-family: var(--font-mono); font-size: 11px; fill: var(--cyan); }
.gateway.hit rect { stroke: var(--red); fill: rgba(255, 93, 115, .2); }
.gateway.hit text { fill: var(--red); }
.packet { fill: var(--cyan); filter: drop-shadow(0 0 6px var(--cyan)); }
.packet.threat { fill: var(--red); filter: drop-shadow(0 0 8px var(--red)); }
.shock { fill: none; stroke: var(--red); stroke-width: 2; }
.vessel-panel { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 0; border-top: 1px solid var(--line); }
.vessel-panel > div { padding: 24px 26px; border-right: 1px solid var(--line); }
.vessel-panel > div:last-child { border-right: 0; }
.vessel-panel h3 { font-size: 1.2rem; margin-bottom: 6px; }
.vessel-panel small { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 10px; }
.vessel-panel p { color: var(--muted); font-size: .93rem; margin: 0; }
.vessel-panel ul li { font-size: .9rem; padding: 5px 0; color: var(--ice); display: flex; gap: 8px; }
.vessel-panel ul li::before { content: "›"; color: var(--cyan); }
.cat-pill { display: inline-block; font-family: var(--font-mono); font-size: .72rem; padding: 3px 9px; border-radius: 6px; margin-left: 6px; vertical-align: 3px; }
.cat-I { background: rgba(61, 220, 151, .15); color: var(--green); } .cat-II { background: rgba(255, 181, 71, .15); color: var(--amber); } .cat-III { background: rgba(255, 93, 115, .15); color: var(--red); }
.cat-U { background: rgba(255, 181, 71, .15); color: var(--amber); }
.sim-log { font-family: var(--font-mono); font-size: .78rem; color: var(--muted); min-height: 1.4em; }
.sim-log .bad { color: var(--red); } .sim-log .ok { color: var(--green); }
@media (max-width: 760px) {
  .vessel-stage { overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 8px; }
  .vessel-svg { width: 860px; max-width: none; }
  .vessel-stage::after { content: "← swipe to explore the vessel →"; display: block; text-align: center; font-family: var(--font-mono); font-size: .7rem; color: var(--muted); padding: 6px 0 4px; position: sticky; left: 0; width: calc(100vw - 54px); }
}
@media (max-width: 900px) { .vessel-panel { grid-template-columns: 1fr; } .vessel-panel > div { border-right: 0; border-bottom: 1px solid var(--line); } }

/* FR explorer */
.fr-explorer { display: grid; grid-template-columns: 300px 1fr; gap: 0; border: 1px solid var(--line-strong); border-radius: 24px; overflow: hidden; background: rgba(10, 23, 51, .5); }
.fr-tabs { display: flex; flex-direction: column; border-right: 1px solid var(--line); background: var(--abyss); }
.fr-tab { text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line); padding: 16px 20px; cursor: pointer; color: var(--muted); display: flex; gap: 14px; align-items: center; transition: .2s; font-size: .95rem; }
.fr-tab:last-child { border-bottom: 0; }
.fr-tab b { font-family: var(--font-mono); font-weight: 500; font-size: .72rem; color: var(--cyan); min-width: 32px; }
.fr-tab:hover { color: var(--text); background: rgba(255, 255, 255, .03); }
.fr-tab[aria-selected="true"] { color: var(--text); background: linear-gradient(90deg, rgba(28, 186, 228, .16), transparent); box-shadow: inset 3px 0 0 var(--cyan); }
.fr-panel { padding: clamp(24px, 4vw, 44px); }
.fr-panel[hidden] { display: none; }
.fr-panel .fr-code { font-family: var(--font-mono); color: var(--cyan); font-size: .8rem; letter-spacing: .1em; }
.fr-panel h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin: 8px 0 10px; }
.fr-panel > p { color: var(--muted); max-width: 60ch; }
.req-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; }
.req-list li { padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .025); font-size: .92rem; display: flex; gap: 10px; align-items: flex-start; }
.req-list li::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 7px; border-radius: 2px; background: var(--cyan); transform: rotate(45deg); }
.req-list li.extra::before { background: var(--amber); }
.fr-note { margin-top: 18px; font-size: .82rem; color: var(--muted); font-family: var(--font-mono); }
.fr-note i { display: inline-block; width: 8px; height: 8px; background: var(--amber); transform: rotate(45deg); margin-right: 8px; }
@media (max-width: 860px) { .fr-explorer { grid-template-columns: 1fr; } .fr-tabs { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); } .fr-tab { flex: none; border-bottom: 0; border-right: 1px solid var(--line); } .fr-tab[aria-selected="true"] { box-shadow: inset 0 -3px 0 var(--cyan); } .req-list { grid-template-columns: 1fr; } }

/* Categories */
.cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cat { padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); position: relative; overflow: hidden; background: rgba(15, 31, 66, .45); }
.cat::after { content: attr(data-cat); position: absolute; right: 22px; top: 14px; font-family: var(--font-head); font-weight: 800; font-size: 3.4rem; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(201, 220, 244, .22); letter-spacing: -.02em; }
.cat .lvl { display: flex; gap: 4px; margin-bottom: 18px; }
.cat .lvl i { width: 30px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .1); }
.cat-1 .lvl i:nth-child(1) { background: var(--green); }
.cat-2 .lvl i:nth-child(-n+2) { background: var(--amber); }
.cat-3 .lvl i { background: var(--red); }
.cat p { color: var(--muted); font-size: .94rem; }
.cat .ex { font-family: var(--font-mono); font-size: .76rem; color: var(--ice); margin: 0; }
@media (max-width: 860px) { .cats { grid-template-columns: 1fr; } }

/* Pathway */
.pathway { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: p; }
.pathway li { position: relative; padding: 30px 28px 28px; border-radius: var(--radius); border: 1px solid var(--line); background: rgba(15, 31, 66, .45); counter-increment: p; transition: border-color .3s; }
.pathway li:hover { border-color: rgba(28, 186, 228, .45); }
.pathway li::before { content: counter(p, decimal-leading-zero); font-family: var(--font-head); font-weight: 800; font-size: 3rem; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(28, 186, 228, .6); display: block; margin-bottom: 16px; }
.pathway h3 { font-size: 1.12rem; }
.pathway p { color: var(--muted); font-size: .93rem; }
.pathway .out { font-family: var(--font-mono); font-size: .74rem; color: var(--cyan); margin: 0; }
@media (max-width: 900px) { .pathway { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .pathway { grid-template-columns: 1fr; } }

/* Readiness check */
.readiness { display: grid; grid-template-columns: 1.3fr 1fr; gap: 0; border-radius: 28px; overflow: hidden; border: 1px solid var(--line-strong); }
.rq-list { padding: clamp(22px, 3.5vw, 40px); background: rgba(10, 23, 51, .6); }
.rq { padding: 16px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center; }
.rq:last-child { border-bottom: 0; }
.rq p { margin: 0; font-size: .95rem; color: var(--ice); }
.rq p span { font-family: var(--font-mono); font-size: .72rem; color: var(--cyan); margin-right: 8px; }
.seg { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 999px; padding: 3px; background: var(--abyss); }
.seg button { border: 0; background: none; padding: .4em .85em; border-radius: 999px; font-size: .8rem; cursor: pointer; color: var(--muted); transition: .2s; }
.seg button[aria-pressed="true"][data-v="2"] { background: var(--green); color: var(--abyss); font-weight: 600; }
.seg button[aria-pressed="true"][data-v="1"] { background: var(--amber); color: var(--abyss); font-weight: 600; }
.seg button[aria-pressed="true"][data-v="0"] { background: var(--red); color: var(--abyss); font-weight: 600; }
.rq-result { padding: clamp(24px, 4vw, 44px); background: radial-gradient(ellipse at 50% 0%, rgba(28, 186, 228, .18), transparent 60%), var(--abyss); display: flex; flex-direction: column; align-items: center; text-align: center; }
.gauge { width: 220px; height: 220px; position: relative; margin-bottom: 20px; }
.gauge svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.gauge circle { fill: none; stroke-width: 14; }
.gauge .track { stroke: rgba(255, 255, 255, .07); }
.gauge .bar { stroke: var(--cyan); stroke-linecap: round; transition: stroke-dashoffset 1s var(--ease), stroke .5s; }
.gauge .val { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; }
.gauge .val strong { font-family: var(--font-head); font-size: 3.2rem; font-weight: 700; line-height: 1; letter-spacing: -.04em; }
.gauge .val span { font-family: var(--font-mono); font-size: .72rem; color: var(--muted); letter-spacing: .12em; text-transform: uppercase; margin-top: 6px; }
.rq-result h3 { font-size: 1.3rem; }
.rq-result p { color: var(--muted); font-size: .94rem; }
.rq-gaps { text-align: left; width: 100%; margin: 6px 0 22px; }
.rq-gaps li { font-size: .86rem; color: var(--ice); padding: 7px 0; border-top: 1px solid var(--line); display: flex; gap: 8px; }
.rq-gaps li::before { content: "!"; flex: none; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: .7rem; font-weight: 700; background: rgba(255, 181, 71, .2); color: var(--amber); margin-top: 2px; }
@media (max-width: 900px) { .readiness { grid-template-columns: 1fr; } .rq { grid-template-columns: 1fr; } }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 40px 22px 0; font-family: var(--font-head); font-weight: 600; font-size: 1.1rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-family: var(--font-mono); font-size: 1.4rem; color: var(--cyan); transition: transform .3s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 22px; margin: 0; max-width: 75ch; }
.disclaimer { font-size: .84rem; color: var(--muted); border-left: 2px solid var(--amber); padding: 6px 0 6px 16px; max-width: 80ch; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal, .stagger > * { opacity: 1; transform: none; }
}
