/* CegiTech — company site (cegitech.com) · V8.0
 * Shared design system + home page. The About me page adds about.css,
 * edit mode adds edit.css. Colours follow the A-Pier workspace: deep navy ink,
 * off-white type and the CegiTech cyan/blue used sparingly as signal colour. */

:root {
  --ink-0: #04080e;
  --ink-1: #070d17;
  --ink-2: #0a1422;
  --ink-3: #0f1c2e;
  --ink-4: #15263c;
  --line: rgba(150, 196, 255, .11);
  --line-2: rgba(150, 196, 255, .2);
  --line-3: rgba(150, 196, 255, .32);
  --tx: #eef4fb;
  --tx-2: #b4c3d6;
  --tx-3: #7c8da4;
  --cy: #43e8ff;
  --sky: #1e9fe8;
  --blue: #1765b7;
  --ok: #33d17a;
  --warn: #f5a524;
  --bad: #ff5d6c;
  --paper: #edf1f5;
  --paper-2: #e1e7ee;
  --paper-line: rgba(10, 26, 45, .12);
  --on-paper: #0a1626;
  --on-paper-2: #445468;

  --f-display: 'Cabinet Grotesk', 'General Sans', ui-sans-serif, system-ui, sans-serif;
  --f-body: 'General Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --t-xs: clamp(.75rem, .72rem + .12vw, .8125rem);
  --t-sm: clamp(.875rem, .85rem + .12vw, .9375rem);
  --t-base: clamp(1rem, .96rem + .18vw, 1.0625rem);
  --t-lg: clamp(1.125rem, 1.05rem + .35vw, 1.3125rem);
  --t-xl: clamp(1.375rem, 1.15rem + .9vw, 1.875rem);
  --t-2xl: clamp(1.875rem, 1.35rem + 2.2vw, 3.25rem);
  --t-3xl: clamp(2.5rem, 1.5rem + 4vw, 5rem);
  --t-hero: clamp(2.9rem, 1.4rem + 5.6vw, 6.9rem);

  --wrap: 1240px;
  --gut: clamp(1.125rem, .6rem + 2.6vw, 3rem);
  --sec: clamp(4.5rem, 3rem + 6vw, 9rem);
  --r-sm: 8px;
  --r: 14px;
  --r-lg: 22px;
  --nav-h: 68px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
body {
  margin: 0; min-height: 100vh; background: var(--ink-1); color: var(--tx);
  font-family: var(--f-body); font-size: var(--t-base); line-height: 1.6;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-family: var(--f-display); font-weight: 800; line-height: 1.05; letter-spacing: -.025em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
::selection { background: rgba(67, 232, 255, .28); color: #fff; }
:focus-visible { outline: 2px solid var(--cy); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 200; padding: .7rem 1rem; border-radius: var(--r-sm); background: var(--cy); color: #04121c; font-weight: 600; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.mono { font-family: var(--f-mono); }
[hidden] { display: none !important; }
img[src=""], img:not([src]) { display: none; }

/* ------------------------------------------------------------------ */
/* Shared atoms                                                        */
/* ------------------------------------------------------------------ */
.kicker {
  display: inline-flex; align-items: center; gap: .6rem; margin: 0 0 1.4rem;
  font-family: var(--f-mono); font-size: .75rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--cy);
}
.kicker .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--cy); box-shadow: 0 0 0 4px rgba(67, 232, 255, .14); }
.kicker .sep { width: 28px; height: 1px; background: currentColor; opacity: .5; }
.lead { font-size: var(--t-lg); line-height: 1.55; color: var(--tx-2); max-width: 60ch; }
.btn {
  --b: var(--line-2);
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 48px; padding: .75rem 1.3rem;
  border-radius: 999px; border: 1px solid var(--b); font-weight: 600; font-size: var(--t-sm); letter-spacing: .005em; line-height: 1.2;
  transition: background .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; flex: none; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--cy); color: #03121d; --b: var(--cy); }
.btn-primary:hover { background: #8af1ff; --b: #8af1ff; }
.btn-ghost { background: rgba(255, 255, 255, .02); color: var(--tx); }
.btn-ghost:hover { background: rgba(255, 255, 255, .07); --b: var(--line-3); }
.btn-sm { min-height: 40px; padding: .5rem 1rem; }
.link-arrow { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; color: var(--cy); }
.link-arrow svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.link-arrow:hover svg { transform: translate(3px, -3px); }
.tag { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .65rem; border: 1px solid var(--line-2); border-radius: 999px; font-family: var(--f-mono); font-size: .6875rem; letter-spacing: .08em; text-transform: uppercase; color: var(--tx-2); }
.tag.demo { border-color: rgba(245, 165, 36, .35); color: #f8c46b; }

/* Reveal on scroll (only when JS is running) */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js [data-reveal].in { opacity: 1; transform: none; }
.js [data-reveal="2"] { transition-delay: .08s; }
.js [data-reveal="3"] { transition-delay: .16s; }
.js [data-reveal="4"] { transition-delay: .24s; }

/* ------------------------------------------------------------------ */
/* Top navigation (shared by every page)                              */
/* ------------------------------------------------------------------ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 60; height: var(--nav-h);
  transition: background .35s var(--ease), border-color .35s var(--ease), backdrop-filter .35s;
  border-bottom: 1px solid transparent;
}
.nav.solid, .nav.open { background: rgba(5, 10, 18, .82); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3); border-bottom-color: var(--line); }
.nav-in { height: 100%; display: flex; align-items: center; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; flex: none; }
.brand svg { width: 26px; height: 38px; }
.brand-word { display: flex; flex-direction: column; line-height: 1; }
.brand-word b { font-family: var(--f-display); font-weight: 800; font-size: 1.32rem; letter-spacing: -.02em; }
.brand-word small { margin-top: 4px; font-size: .5rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--tx-3); }
.nav-links { display: flex; align-items: center; gap: .25rem; margin-left: auto; }
.nav-links a { position: relative; padding: .55rem .8rem; border-radius: 999px; font-size: var(--t-sm); font-weight: 500; color: var(--tx-2); transition: color .2s, background .2s; }
.nav-links a:hover { color: var(--tx); background: rgba(255, 255, 255, .05); }
.nav-links a[aria-current="page"] { color: var(--tx); }
.nav-links a[aria-current="page"]::after { content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .25rem; height: 2px; border-radius: 2px; background: var(--cy); }
.nav-side { display: flex; align-items: center; gap: .6rem; }
.nav-login { min-height: 40px; padding: .45rem 1rem .45rem .9rem; }
.nav-login svg { width: 16px; height: 16px; }
.nav-burger { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-2); align-items: center; justify-content: center; }
.nav-burger span { position: relative; width: 18px; height: 2px; background: var(--tx); border-radius: 2px; transition: background .2s; }
.nav-burger span::before, .nav-burger span::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--tx); border-radius: 2px; transition: transform .3s var(--ease); }
.nav-burger span::before { top: -6px; }
.nav-burger span::after { top: 6px; }
.nav.open .nav-burger span { background: transparent; }
.nav.open .nav-burger span::before { transform: translateY(6px) rotate(45deg); }
.nav.open .nav-burger span::after { transform: translateY(-6px) rotate(-45deg); }
.nav-sheet { display: none; }

@media (max-width: 920px) {
  .nav-links, .nav-side .nav-login { display: none; }
  .nav-side { margin-left: auto; }
  .nav-burger { display: inline-flex; }
  .nav-sheet {
    display: block; position: fixed; inset: var(--nav-h) 0 0 0; background: rgba(5, 10, 18, .97); backdrop-filter: blur(16px);
    padding: 1.5rem var(--gut) 2rem; overflow-y: auto; opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s .3s;
  }
  .nav.open .nav-sheet { opacity: 1; visibility: visible; transform: none; transition: opacity .3s var(--ease), transform .3s var(--ease); }
  .nav-sheet a:not(.btn) { display: flex; justify-content: space-between; align-items: center; padding: 1.05rem 0; border-bottom: 1px solid var(--line); font-family: var(--f-display); font-weight: 700; font-size: 1.6rem; letter-spacing: -.02em; }
  .nav-sheet a:not(.btn) span { font-family: var(--f-mono); font-size: .7rem; font-weight: 500; letter-spacing: .14em; color: var(--tx-3); }
  .nav-sheet .btn { width: 100%; margin-top: 1.6rem; }
  .nav-sheet .sheet-meta { margin-top: 1.6rem; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--tx-3); }
}
body.menu-open { overflow: hidden; }

/* ------------------------------------------------------------------ */
/* Home · hero                                                         */
/* ------------------------------------------------------------------ */
.hero {
  position: relative; min-height: max(660px, min(100svh, 1000px)); display: flex; flex-direction: column; justify-content: flex-end;
  background:
    radial-gradient(1200px 700px at 78% 42%, rgba(30, 159, 232, .13), transparent 60%),
    radial-gradient(800px 600px at 10% 100%, rgba(23, 101, 183, .12), transparent 70%),
    var(--ink-0);
  overflow: hidden; isolation: isolate;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background-image: linear-gradient(rgba(120, 180, 255, .055) 1px, transparent 1px), linear-gradient(90deg, rgba(120, 180, 255, .055) 1px, transparent 1px);
  background-size: 64px 64px; background-position: center top;
  mask-image: radial-gradient(ellipse 90% 80% at 60% 40%, #000 30%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 60% 40%, #000 30%, transparent 85%);
}
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 160px; z-index: -1; background: linear-gradient(transparent, var(--ink-1)); pointer-events: none; }
.hero-stage { position: absolute; inset: 0; z-index: -1; }
.hero-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.4s var(--ease); touch-action: pan-y; }
.hero-stage.ready canvas { opacity: 1; }
.hero-fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; opacity: .42; transition: opacity 1.2s var(--ease); }
.hero-fallback::after { content: ""; }
.hero-stage.ready .hero-fallback { opacity: 0; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4, 8, 14, .92) 0%, rgba(4, 8, 14, .7) 34%, rgba(4, 8, 14, 0) 62%); pointer-events: none; }
.hero-callouts { position: absolute; inset: 0; pointer-events: none; }
.callout { position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: .5rem; opacity: 0; transition: opacity .8s var(--ease); white-space: nowrap; will-change: transform; }
.hero-stage.ready .callout.on { opacity: 1; }
.callout i { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--cy); background: rgba(67, 232, 255, .25); box-shadow: 0 0 0 5px rgba(67, 232, 255, .08); flex: none; }
.callout b { display: block; width: 34px; height: 1px; background: linear-gradient(90deg, var(--cy), rgba(67, 232, 255, .2)); }
.callout span { padding: .28rem .55rem; border: 1px solid rgba(67, 232, 255, .28); border-radius: 6px; background: rgba(4, 12, 22, .72); backdrop-filter: blur(6px); font-family: var(--f-mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: #bfefff; }
.callout span em { font-style: normal; color: var(--tx-3); margin-right: .4rem; }

.hero-body { position: relative; padding-top: calc(var(--nav-h) + 4rem); padding-bottom: clamp(2rem, 4vw, 3.5rem); }
.hero-copy { max-width: 720px; }
.hero h1 { font-size: var(--t-hero); line-height: .94; letter-spacing: -.04em; font-weight: 800; }
.hero h1 .hl { color: var(--cy); }
.hero .lead { margin-top: 1.6rem; max-width: 52ch; }
.hero .actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.2rem; }
.hero-rail { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--line-2); }
.hero-rail > div { padding: 1.1rem 1.2rem 1.4rem 0; }
.hero-rail > div + div { padding-left: 1.2rem; border-left: 1px solid var(--line); }
.hero-rail dt { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--tx-3); }
.hero-rail dd { margin: .35rem 0 0; font-weight: 600; font-size: var(--t-sm); color: var(--tx); }
.hero-rail dd .live { display: inline-block; width: 7px; height: 7px; margin-right: .45rem; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(51, 209, 122, .15); vertical-align: 1px; animation: pulse 2.4s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(51, 209, 122, 0); } }
.scroll-cue { position: absolute; right: var(--gut); bottom: 6.2rem; display: flex; align-items: center; gap: .6rem; font-family: var(--f-mono); font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; color: var(--tx-3); writing-mode: vertical-rl; }
.scroll-cue::after { content: ""; width: 1px; height: 54px; background: linear-gradient(var(--tx-3), transparent); animation: cue 2.2s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

@media (max-width: 900px) {
  .hero { justify-content: flex-start; }
  .hero-stage { inset: 0 0 auto 0; height: 58svh; min-height: 360px; }
  .hero-shade { background: linear-gradient(180deg, rgba(4, 8, 14, .1) 0%, rgba(4, 8, 14, 0) 45%, rgba(4, 8, 14, .95) 100%); }
  .hero-body { padding-top: calc(var(--nav-h) + 38svh); }
  .hero-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-rail > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .hero-rail > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .scroll-cue { display: none; }
  .callout span { font-size: .6rem; }
  .callout b { width: 18px; }
}
@media (max-width: 520px) {
  .hero .actions .btn { flex: 1 1 100%; }
}

/* ------------------------------------------------------------------ */
/* Ticker                                                              */
/* ------------------------------------------------------------------ */
.ticker { position: relative; border-block: 1px solid var(--line); background: var(--ink-1); overflow: hidden; }
.ticker-track { display: flex; width: max-content; animation: tick 46s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker ul { display: flex; list-style: none; }
.ticker li { display: flex; align-items: center; gap: 2.2rem; padding: 1.25rem 0 1.25rem 2.2rem; font-family: var(--f-display); font-weight: 700; font-size: clamp(1.05rem, .9rem + .6vw, 1.45rem); letter-spacing: -.01em; color: var(--tx-2); white-space: nowrap; }
.ticker li::after { content: ""; width: 7px; height: 7px; transform: rotate(45deg); border: 1.5px solid var(--sky); }
@keyframes tick { to { transform: translateX(-50%); } }

/* ------------------------------------------------------------------ */
/* Section scaffolding                                                 */
/* ------------------------------------------------------------------ */
.sec { position: relative; padding-block: var(--sec); }
.sec-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 2rem 4rem; align-items: end; margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.sec-head h2 { font-size: var(--t-3xl); line-height: .98; letter-spacing: -.035em; }
.sec-head p { color: var(--tx-2); font-size: var(--t-lg); line-height: 1.55; max-width: 48ch; }
.sec-num { font-family: var(--f-mono); font-size: .75rem; letter-spacing: .14em; color: var(--tx-3); }
@media (max-width: 860px) { .sec-head { grid-template-columns: minmax(0, 1fr); } }

/* Featured project ------------------------------------------------- */
.feature { padding-top: var(--sec); }
.feature-card { position: relative; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: var(--ink-0); isolation: isolate; }
.feature-media { position: absolute; inset: 0; z-index: -1; }
.feature-media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; transform: scale(1.06); transition: transform 1.6s var(--ease); }
.feature-card.in .feature-media img { transform: scale(1); }
.feature-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4, 8, 14, .95) 0%, rgba(4, 8, 14, .78) 42%, rgba(4, 8, 14, .25) 75%, rgba(4, 8, 14, .45) 100%), linear-gradient(0deg, rgba(4, 8, 14, .9), transparent 45%); }
.feature-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; padding: clamp(1.6rem, 1rem + 3vw, 4rem); min-height: clamp(560px, 62vw, 760px); align-content: space-between; }
.feature-top { max-width: 640px; }
.feature-top h2 { font-size: var(--t-3xl); letter-spacing: -.04em; line-height: .95; }
.feature-meta { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.2rem; }
.feature-top .lead { margin-top: 1.4rem; max-width: 50ch; }
.feature-bottom { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 1.5rem; align-items: end; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line-2); border-radius: var(--r); background: rgba(5, 12, 22, .66); backdrop-filter: blur(10px); }
.stat { padding: 1.2rem 1.3rem 1.3rem; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat-v { display: flex; align-items: baseline; gap: .35rem; font-family: var(--f-display); font-weight: 800; font-size: clamp(2.4rem, 1.6rem + 2.6vw, 3.9rem); line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.stat-v small { font-family: var(--f-mono); font-size: .7rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--tx-3); }
.stat-n { margin-top: .5rem; font-size: var(--t-xs); line-height: 1.4; color: var(--tx-2); }
.milestone { display: flex; gap: 1rem; padding: 1.2rem 1.3rem; border: 1px solid rgba(51, 209, 122, .3); border-radius: var(--r); background: rgba(6, 26, 20, .62); backdrop-filter: blur(10px); }
.milestone svg { width: 22px; height: 22px; flex: none; color: var(--ok); margin-top: 2px; }
.milestone strong { display: block; font-size: var(--t-sm); }
.milestone p { margin-top: .25rem; font-size: var(--t-sm); line-height: 1.5; color: var(--tx-2); }
.milestone .link-arrow { margin-top: .8rem; font-size: var(--t-sm); }
@media (max-width: 960px) { .feature-bottom { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) {
  .feature-media::after { background: linear-gradient(0deg, rgba(4, 8, 14, .97) 35%, rgba(4, 8, 14, .55) 100%); }
  .stats { grid-template-columns: minmax(0, 1fr); }
  .stat + .stat { border-left: 0; border-top: 1px solid var(--line); }
  .stat { display: flex; align-items: center; gap: 1rem; }
  .stat-v { font-size: 2.5rem; min-width: 6.4rem; }
  .stat-n { margin: 0; }
}

/* Project index (list of other work) */
.work-index { margin-top: clamp(2.5rem, 5vw, 4rem); border-top: 1px solid var(--line-2); list-style: none; }
.work-row { position: relative; display: grid; grid-template-columns: 9rem minmax(0, 1.4fr) minmax(0, 1fr) 2.5rem; gap: 1.5rem; align-items: center; padding: 1.5rem 0; border-bottom: 1px solid var(--line); transition: background .3s var(--ease); }
.work-row::before { content: ""; position: absolute; inset: 0 calc(var(--gut) * -1); background: linear-gradient(90deg, rgba(30, 159, 232, .08), transparent 70%); opacity: 0; transition: opacity .35s var(--ease); pointer-events: none; }
.work-row:hover::before { opacity: 1; }
.work-row .yr { font-family: var(--f-mono); font-size: .78rem; letter-spacing: .06em; color: var(--tx-3); }
.work-row h3 { font-size: clamp(1.3rem, 1rem + 1vw, 1.9rem); letter-spacing: -.025em; }
.work-row .org { margin-top: .3rem; font-size: var(--t-sm); color: var(--tx-2); }
.work-row .sector { font-size: var(--t-sm); color: var(--tx-2); }
.work-row .go { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; transition: background .3s, border-color .3s, transform .3s var(--ease); }
.work-row .go svg { width: 16px; height: 16px; }
.work-row:hover .go { background: var(--cy); border-color: var(--cy); color: #04121c; transform: rotate(-45deg); }
.work-row a.cover { position: absolute; inset: 0; z-index: 1; }
@media (max-width: 760px) {
  .work-row { grid-template-columns: minmax(0, 1fr) 2.5rem; gap: .35rem 1rem; }
  .work-row .yr { grid-column: 1 / -1; }
  .work-row .sector { grid-column: 1; }
  .work-row .go { grid-row: 2 / span 2; grid-column: 2; }
}

/* Services ---------------------------------------------------------- */
.services { background: var(--ink-1); }
.svc-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(2rem, 6vw, 6rem); }
.svc-aside { position: sticky; top: calc(var(--nav-h) + 2rem); align-self: start; }
.svc-aside h2 { font-size: var(--t-3xl); line-height: .98; letter-spacing: -.035em; }
.svc-aside p { margin-top: 1.4rem; color: var(--tx-2); font-size: var(--t-lg); max-width: 40ch; }
.svc-aside .env { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.svc-list { list-style: none; border-top: 1px solid var(--line-2); }
.svc { display: grid; grid-template-columns: 3.4rem minmax(0, 1fr); gap: 1rem; padding: 2rem 0 2.1rem; border-bottom: 1px solid var(--line); }
.svc .n { font-family: var(--f-mono); font-size: .78rem; color: var(--sky); padding-top: .5rem; }
.svc .lbl { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--tx-3); }
.svc h3 { margin-top: .5rem; font-size: clamp(1.45rem, 1.1rem + 1.2vw, 2.1rem); letter-spacing: -.025em; }
.svc p { margin-top: .8rem; color: var(--tx-2); max-width: 58ch; }
@media (max-width: 860px) { .svc-grid { grid-template-columns: minmax(0, 1fr); } .svc-aside { position: static; } }

/* Platform ---------------------------------------------------------- */
.platform { background: radial-gradient(900px 500px at 85% 10%, rgba(30, 159, 232, .1), transparent 70%), var(--ink-0); border-block: 1px solid var(--line); overflow: hidden; }
.pl-grid { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.5fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.pl-tabs { display: grid; gap: .35rem; list-style: none; }
.pl-tab { width: 100%; text-align: left; display: grid; grid-template-columns: 2rem minmax(0, 1fr); gap: .2rem .8rem; padding: .95rem 1rem; border-radius: var(--r); border: 1px solid transparent; transition: background .25s, border-color .25s; }
.pl-tab .i { grid-row: span 2; font-family: var(--f-mono); font-size: .72rem; color: var(--tx-3); padding-top: .2rem; }
.pl-tab strong { font-family: var(--f-display); font-weight: 700; font-size: 1.2rem; letter-spacing: -.01em; color: var(--tx-2); transition: color .2s; }
.pl-tab small { font-size: var(--t-xs); color: var(--tx-3); line-height: 1.45; }
.pl-tab:hover { background: rgba(255, 255, 255, .03); }
.pl-tab[aria-selected="true"] { background: rgba(30, 159, 232, .08); border-color: rgba(67, 232, 255, .26); }
.pl-tab[aria-selected="true"] strong { color: var(--tx); }
.pl-tab[aria-selected="true"] .i { color: var(--cy); }
.device { position: relative; border-radius: 16px; border: 1px solid var(--line-2); background: linear-gradient(180deg, #111f33, #0a1424); padding: 0 0 0; box-shadow: 0 40px 120px -40px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .02) inset; overflow: hidden; }
.device-bar { display: flex; align-items: center; gap: .45rem; height: 38px; padding: 0 .9rem; border-bottom: 1px solid var(--line); }
.device-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .14); }
.device-bar .url { margin-left: .8rem; flex: 1; max-width: 340px; height: 22px; border-radius: 6px; background: rgba(255, 255, 255, .05); font-family: var(--f-mono); font-size: .66rem; color: var(--tx-3); display: flex; align-items: center; padding: 0 .6rem; overflow: hidden; white-space: nowrap; }
.device-screen { position: relative; aspect-ratio: 1348 / 926; background: #0b1524; }
.device-screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; opacity: 0; transform: scale(1.015); transition: opacity .6s var(--ease), transform .8s var(--ease); }
.device-screen img.on { opacity: 1; transform: none; }
.pl-caption { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-top: 1rem; }
.pl-caption p { color: var(--tx-2); font-size: var(--t-sm); max-width: 62ch; }
.pl-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: clamp(2.5rem, 5vw, 4rem); border-top: 1px solid var(--line-2); }
.pl-facts > div { padding: 1.4rem 1.2rem 0 0; }
.pl-facts > div + div { padding-left: 1.2rem; border-left: 1px solid var(--line); }
.pl-facts b { display: block; font-family: var(--f-display); font-size: clamp(2rem, 1.4rem + 2vw, 3rem); font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.pl-facts span { display: block; margin-top: .5rem; font-size: var(--t-xs); color: var(--tx-2); line-height: 1.45; }
@media (max-width: 960px) {
  .pl-grid { grid-template-columns: minmax(0, 1fr); }
  .pl-tabs { display: flex; overflow-x: auto; gap: .5rem; scrollbar-width: none; margin-inline: calc(var(--gut) * -1); padding-inline: var(--gut); scroll-snap-type: x mandatory; }
  .pl-tabs::-webkit-scrollbar { display: none; }
  .pl-tabs li { flex: none; scroll-snap-align: start; }
  .pl-tab { width: auto; grid-template-columns: auto; padding: .7rem 1rem; border-color: var(--line); }
  .pl-tab .i, .pl-tab small { display: none; }
  .pl-tab strong { font-size: 1rem; white-space: nowrap; }
  .pl-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pl-facts > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .pl-facts > div:nth-child(n+3) { margin-top: 1.4rem; border-top: 1px solid var(--line); }
}
@media (max-width: 560px) { .pl-caption { flex-direction: column; } .device-bar .url { display: none; } }

/* Track record (paper) ----------------------------------------------- */
.paper { background: var(--paper); color: var(--on-paper); }
.paper ::selection { background: rgba(23, 101, 183, .2); color: var(--on-paper); }
.paper .kicker { color: var(--blue); }
.paper .kicker .dot { background: var(--blue); box-shadow: 0 0 0 4px rgba(23, 101, 183, .12); }
.paper .sec-head p, .paper .lead { color: var(--on-paper-2); }
.paper .sec-num { color: var(--on-paper-2); }
.paper .link-arrow { color: var(--blue); }
.paper .btn-ghost { color: var(--on-paper); --b: var(--paper-line); background: transparent; }
.paper .btn-ghost:hover { background: rgba(10, 26, 45, .05); --b: rgba(10, 26, 45, .3); }
.paper { background-image: linear-gradient(rgba(10, 40, 80, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(10, 40, 80, .045) 1px, transparent 1px); background-size: 48px 48px; }
.track { position: relative; }
.tl { position: relative; list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; }
.tl::before { content: ""; position: absolute; left: 0; right: 0; top: 2.9rem; height: 2px; background: linear-gradient(90deg, rgba(23, 101, 183, .15), var(--blue)); }
.tl li { position: relative; padding: 0 1.4rem 0 0; }
.tl .y { font-family: var(--f-mono); font-size: .76rem; letter-spacing: .06em; color: var(--on-paper-2); height: 2.1rem; }
.tl .node { position: relative; width: 16px; height: 16px; margin: 0 0 1.4rem; border-radius: 50%; background: var(--paper); border: 2px solid var(--blue); }
.tl li:last-child .node { background: var(--blue); box-shadow: 0 0 0 6px rgba(23, 101, 183, .16); }
.tl h3 { font-size: clamp(1.15rem, .95rem + .7vw, 1.45rem); letter-spacing: -.02em; color: var(--on-paper); }
.tl .org { margin-top: .35rem; font-size: var(--t-xs); font-weight: 600; color: var(--blue); }
.tl p { margin-top: .6rem; font-size: var(--t-sm); line-height: 1.55; color: var(--on-paper-2); }
.lane { margin-top: clamp(2.5rem, 5vw, 3.5rem); display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 1.5rem 2.2rem; padding: 1.4rem 1.5rem; border: 1px solid var(--paper-line); border-radius: var(--r); background: rgba(255, 255, 255, .55); }
.lane-l { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--on-paper-2); padding-top: .2rem; }
.lane ul { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem 1.5rem; }
.lane li b { display: block; font-size: var(--t-sm); color: var(--on-paper); }
.lane li span { display: block; margin-top: .15rem; font-size: var(--t-xs); color: var(--on-paper-2); }
.track-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 2.5rem; }
.track-foot p { color: var(--on-paper-2); font-size: var(--t-sm); max-width: 62ch; }
@media (max-width: 1020px) {
  .tl { grid-template-columns: minmax(0, 1fr); gap: 0; padding-left: 2rem; }
  .tl::before { left: 7px; right: auto; top: .4rem; bottom: .4rem; width: 2px; height: auto; background: linear-gradient(180deg, rgba(23, 101, 183, .15), var(--blue)); }
  .tl li { padding: 0 0 2rem; }
  .tl .node { position: absolute; left: -2rem; top: .2rem; margin: 0; }
  .tl .y { height: auto; margin-bottom: .3rem; }
  .lane { grid-template-columns: minmax(0, 1fr); }
  .lane ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) { .lane ul { grid-template-columns: minmax(0, 1fr); } }

/* Approach ----------------------------------------------------------- */
.approach { background: var(--ink-1); }
.ap-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: stretch; }
.ap-visual { position: relative; border-radius: var(--r-lg); overflow: hidden; min-height: 520px; border: 1px solid var(--line); }
.ap-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ap-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4, 8, 14, .1) 30%, rgba(4, 8, 14, .92)); }
.ap-quote { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: clamp(1.4rem, 3vw, 2.4rem); }
.ap-quote blockquote { margin: 0; font-family: var(--f-display); font-weight: 700; font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.3rem); line-height: 1.12; letter-spacing: -.02em; }
.ap-quote cite { display: block; margin-top: 1rem; font-style: normal; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--tx-3); }
.steps { list-style: none; counter-reset: s; }
.step { position: relative; display: grid; grid-template-columns: 3.2rem minmax(0, 1fr); gap: 1rem; padding: 1.35rem 0; border-bottom: 1px solid var(--line); }
.step:first-child { border-top: 1px solid var(--line-2); }
.step .n { width: 2.4rem; height: 2.4rem; border-radius: 50%; border: 1px solid var(--line-3); display: grid; place-items: center; font-family: var(--f-mono); font-size: .75rem; color: var(--cy); }
.step h3 { font-size: 1.28rem; letter-spacing: -.015em; padding-top: .3rem; }
.step p { margin-top: .4rem; color: var(--tx-2); font-size: var(--t-sm); line-height: 1.55; }
@media (max-width: 900px) { .ap-grid { grid-template-columns: minmax(0, 1fr); } .ap-visual { min-height: 400px; } }

/* Founder ------------------------------------------------------------ */
.founder { overflow: hidden; background: var(--ink-0); border-top: 1px solid var(--line); }
.fd-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.portrait-stage { position: relative; aspect-ratio: 4 / 4.6; max-width: 520px; width: 100%; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line-2); isolation: isolate;
  background: radial-gradient(70% 55% at 50% 38%, rgba(30, 159, 232, .3), transparent 70%), linear-gradient(180deg, #0c1a2c, #060c15); }
.portrait-stage::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(120, 190, 255, .09) 1px, transparent 1px), linear-gradient(90deg, rgba(120, 190, 255, .09) 1px, transparent 1px); background-size: 28px 28px; mask-image: radial-gradient(circle at 50% 40%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(circle at 50% 40%, #000 20%, transparent 75%); }
.portrait-stage::after { content: ""; position: absolute; inset: auto 0 0 0; height: 30%; background: linear-gradient(transparent, rgba(4, 8, 14, .85)); }
.portrait-stage img { position: absolute; left: 50%; bottom: 0; width: 86%; transform: translateX(-50%); filter: drop-shadow(0 0 1px rgba(67, 232, 255, .6)) drop-shadow(0 30px 40px rgba(0, 0, 0, .55)); }
.portrait-stage .corner { position: absolute; z-index: 2; font-family: var(--f-mono); font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; color: var(--tx-3); }
.portrait-stage .c1 { left: 1rem; top: .9rem; }
.portrait-stage .c2 { right: 1rem; top: .9rem; color: var(--cy); }
.portrait-stage .name { position: absolute; z-index: 2; left: 1.2rem; right: 1.2rem; bottom: 1.1rem; display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; }
.portrait-stage .name b { font-family: var(--f-display); font-size: 1.35rem; letter-spacing: -.01em; }
.portrait-stage .name span { font-size: var(--t-xs); color: var(--tx-2); text-align: right; }
.fd-copy h2 { font-size: var(--t-3xl); line-height: .98; letter-spacing: -.035em; }
.fd-copy .lead { margin-top: 1.5rem; }
.fd-copy p + p { margin-top: 1rem; }
.fd-copy .body { margin-top: 1.2rem; color: var(--tx-2); max-width: 60ch; }
.fd-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 2rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.fd-facts dt { font-family: var(--f-mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--tx-3); }
.fd-facts dd { margin: .35rem 0 0; font-size: var(--t-sm); font-weight: 600; }
.fd-copy .actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
@media (max-width: 900px) { .fd-grid { grid-template-columns: minmax(0, 1fr); } .portrait-stage { max-width: 440px; } }
@media (max-width: 520px) { .fd-facts { grid-template-columns: minmax(0, 1fr); } }

/* Contact ------------------------------------------------------------ */
.contact { background: radial-gradient(900px 520px at 15% 0%, rgba(30, 159, 232, .12), transparent 70%), var(--ink-1); border-top: 1px solid var(--line); }
.ct-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); }
.ct-copy h2 { font-size: var(--t-3xl); line-height: .98; letter-spacing: -.035em; }
.ct-copy .lead { margin-top: 1.5rem; }
.ct-rows { margin-top: 2.2rem; border-top: 1px solid var(--line-2); }
.ct-row { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.ct-row > span:first-child { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--tx-3); }
.ct-row a, .ct-row .v { font-weight: 600; overflow-wrap: anywhere; }
.ct-row a:hover { color: var(--cy); }
.form { padding: clamp(1.3rem, 3vw, 2.2rem); border: 1px solid var(--line-2); border-radius: var(--r-lg); background: rgba(10, 20, 34, .7); }
.form h3 { font-size: 1.5rem; letter-spacing: -.02em; }
.form > p { margin-top: .4rem; color: var(--tx-2); font-size: var(--t-sm); }
.fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .9rem; margin-top: 1.4rem; }
.field { display: grid; gap: .4rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: var(--t-xs); font-weight: 600; color: var(--tx-2); }
.field input, .field textarea { width: 100%; min-height: 48px; padding: .75rem .9rem; border-radius: 10px; border: 1px solid var(--line-2); background: rgba(4, 9, 16, .7); color: var(--tx); font-size: 1rem; transition: border-color .2s, box-shadow .2s; }
.field textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--cy); box-shadow: 0 0 0 3px rgba(67, 232, 255, .15); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.2rem; }
.form-foot small { color: var(--tx-3); font-size: var(--t-xs); max-width: 32ch; }
.form-status { margin-top: 1rem; padding: .8rem 1rem; border-radius: 10px; font-size: var(--t-sm); }
.form-status.ok { background: rgba(51, 209, 122, .1); border: 1px solid rgba(51, 209, 122, .35); color: #9df0c2; }
.form-status.err { background: rgba(255, 93, 108, .1); border: 1px solid rgba(255, 93, 108, .35); color: #ffb3bb; }
@media (max-width: 900px) { .ct-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .fields { grid-template-columns: minmax(0, 1fr); } .ct-row { grid-template-columns: minmax(0, 1fr); gap: .2rem; } .form-foot .btn { width: 100%; } }

/* Footer ------------------------------------------------------------- */
.foot { background: var(--ink-0); border-top: 1px solid var(--line); padding: clamp(3rem, 6vw, 5rem) 0 2rem; }
.foot-top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, .7fr)); gap: 2rem; }
.foot-claim { margin-top: 1.2rem; font-family: var(--f-display); font-weight: 700; font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem); line-height: 1.1; letter-spacing: -.02em; max-width: 18ch; }
.foot h4 { font-family: var(--f-mono); font-weight: 500; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--tx-3); margin-bottom: 1rem; }
.foot ul { list-style: none; display: grid; gap: .55rem; }
.foot li a, .foot li button { font-size: var(--t-sm); color: var(--tx-2); transition: color .2s; text-align: left; }
.foot li a:hover, .foot li button:hover { color: var(--tx); }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: 1.4rem; border-top: 1px solid var(--line); font-size: var(--t-xs); color: var(--tx-3); }
.foot-bottom a:hover { color: var(--tx); }
@media (max-width: 860px) { .foot-top { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot-brand { grid-column: 1 / -1; } }

/* 404 ---------------------------------------------------------------- */
.nf { min-height: 100svh; display: grid; place-items: center; text-align: left; padding: calc(var(--nav-h) + 2rem) var(--gut) 3rem; background: radial-gradient(800px 500px at 70% 30%, rgba(30, 159, 232, .14), transparent 70%), var(--ink-0); }
.nf h1 { font-size: var(--t-3xl); letter-spacing: -.04em; }
.nf p { margin-top: 1rem; color: var(--tx-2); max-width: 46ch; }
.nf .code { font-family: var(--f-mono); color: var(--cy); letter-spacing: .14em; font-size: .78rem; margin-bottom: 1rem; }
.nf .actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

/* Toast (shared) ------------------------------------------------------ */
.toast { position: fixed; left: 50%; bottom: 1.5rem; z-index: 300; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; display: flex; align-items: center; gap: .9rem; padding: .75rem .9rem .75rem 1.1rem; border-radius: 12px; border: 1px solid var(--line-2); background: #0d1a2b; box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .8); font-size: var(--t-sm); transition: opacity .3s var(--ease), transform .3s var(--ease); max-width: calc(100vw - 2rem); }
.toast.on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast.err { border-color: rgba(255, 93, 108, .45); }
.toast button { padding: .35rem .7rem; border-radius: 8px; border: 1px solid var(--line-2); font-weight: 600; font-size: var(--t-xs); }
