/* Comprehensive Technology Consulting: redesign stylesheet.
   System fonts only; no remote assets. Light and dark themes follow prefers-color-scheme. */

:root {
  color-scheme: light dark;

  /* Color tokens (light) */
  --bg: #f5f8f8;
  --surface: #ffffff;
  --surface-2: #ecf2f1;
  --ink: #0d1b1e;
  --ink-2: #44585c;
  --line: #d5e0df;
  --brand: #0b7a6c;          /* text/links/buttons: 4.9:1 on --bg */
  --brand-strong: #075f54;
  --brand-ink: #ffffff;      /* text on --brand */
  --brand-soft: #dcf1ed;
  --accent: #5ec8b6;         /* original CTC teal, decorative only */
  --band-bg: #0c2a29;
  --band-ink: #e9f5f3;
  --band-ink-2: #a9cbc5;
  --band-brand: #6fdcc9;
  --focus: #0b7a6c;
  --shadow: 0 1px 2px rgb(13 27 30 / .06), 0 8px 24px rgb(13 27 30 / .06);
  --grid-line: rgb(11 122 108 / .07);

  /* Type */
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --step--1: .875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.375rem, 1.2rem + .7vw, 1.625rem);
  --step-3: clamp(1.75rem, 1.4rem + 1.4vw, 2.375rem);
  --step-4: clamp(2.25rem, 1.6rem + 3vw, 3.75rem);

  /* Space (4px base) */
  --s-1: .25rem; --s-2: .5rem; --s-3: .75rem; --s-4: 1rem; --s-5: 1.5rem;
  --s-6: 2rem; --s-7: 3rem; --s-8: 4rem; --s-9: 6rem;
  --section: clamp(3rem, 2rem + 4vw, 6rem);
  --gutter: clamp(1rem, .5rem + 2.5vw, 2rem);
  --max: 72rem;

  --radius: 14px;
  --radius-sm: 8px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a1113;
    --surface: #101b1e;
    --surface-2: #142326;
    --ink: #e6eeef;
    --ink-2: #a2b5b8;
    --line: #22363a;
    --brand: #5fd4c0;
    --brand-strong: #8be4d5;
    --brand-ink: #04211d;
    --brand-soft: #11332f;
    --band-bg: #0f2624;
    --band-ink: #e6f3f1;
    --band-ink-2: #a2c4be;
    --band-brand: #6fdcc9;
    --focus: #8be4d5;
    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 8px 24px rgb(0 0 0 / .25);
    --grid-line: rgb(95 212 192 / .06);
  }
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 5rem; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 var(--step-0)/1.65 var(--font-sans);
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}
img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
svg { flex: none; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 var(--s-4); font-weight: 700; text-wrap: balance; }
h1 { font-size: var(--step-4); letter-spacing: -.03em; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); letter-spacing: -.01em; }
p { margin: 0 0 var(--s-4); }
p:last-child { margin-bottom: 0; }
ul { margin: 0; padding: 0; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--brand-strong); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--brand); color: var(--brand-ink); }

.skip-link {
  position: absolute; left: var(--s-4); top: -4rem; z-index: 100;
  background: var(--brand); color: var(--brand-ink); padding: var(--s-2) var(--s-4);
  border-radius: var(--radius-sm); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: var(--s-3); color: var(--brand-ink); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.container { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

/* Eyebrow / labels */
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font: 600 var(--step--1)/1.3 var(--font-mono);
  letter-spacing: .06em; text-transform: uppercase; color: var(--brand); margin: 0 0 var(--s-4);
}
.eyebrow::before { content: ""; width: 1.25rem; height: 2px; background: currentColor; border-radius: 2px; }
.lead { font-size: var(--step-1); line-height: 1.55; color: var(--ink-2); max-width: 40rem; }
.muted { color: var(--ink-2); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 2.875rem; padding: .625rem 1.25rem; border-radius: 999px;
  font: 600 1rem/1.2 var(--font-sans); text-decoration: none; border: 1.5px solid transparent;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn-primary { background: var(--brand); color: var(--brand-ink); }
.btn-primary:hover { background: var(--brand-strong); color: var(--brand-ink); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn-ghost:hover { border-color: var(--brand); color: var(--ink); }
.btn svg { width: 1.1em; height: 1.1em; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.link-arrow { display: inline-flex; align-items: center; gap: .35em; font-weight: 600; text-decoration: none; }
.link-arrow::after { content: "\2192"; transition: transform .15s ease; }
.link-arrow:hover { text-decoration: underline; }
.link-arrow:hover::after { transform: translateX(3px); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: var(--s-5); min-height: 4.25rem; }
.brand { display: inline-flex; align-items: center; gap: var(--s-3); color: var(--ink); text-decoration: none; margin-right: auto; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 2.25rem; height: 2.25rem; }
.mark-bg { fill: var(--brand); }
.mark-fg { stroke: var(--brand-ink); fill: none; }
.mark-dot { fill: var(--brand-ink); }
.brand-text { display: grid; line-height: 1.1; }
.brand-name { font-weight: 800; font-size: 1.125rem; letter-spacing: .02em; }
.brand-full { font-size: .75rem; color: var(--ink-2); letter-spacing: .01em; }

.site-nav ul { display: flex; align-items: center; gap: var(--s-1); list-style: none; }
.site-nav a {
  display: inline-flex; align-items: center; min-height: 2.5rem; padding: .4rem .75rem; border-radius: 999px;
  color: var(--ink); text-decoration: none; font-weight: 500; font-size: .975rem;
}
.site-nav a:hover { background: var(--surface-2); color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--brand-strong); background: var(--brand-soft); font-weight: 600; }
.site-nav .nav-cta a { background: var(--brand); color: var(--brand-ink); font-weight: 600; margin-left: var(--s-2); }
.site-nav .nav-cta a:hover { background: var(--brand-strong); color: var(--brand-ink); }
.site-nav .nav-cta a[aria-current="page"] { background: var(--brand-strong); color: var(--brand-ink); }
.nav-toggle {
  display: none; align-items: center; gap: var(--s-2); min-height: 2.75rem; padding: .5rem .875rem;
  border: 1.5px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink);
  font: 600 .95rem/1 var(--font-sans); cursor: pointer;
}
.nav-toggle svg { width: 1.125rem; height: 1.125rem; }
.nav-toggle .icon-close { display: none; }
.nav-open .nav-toggle .icon-open { display: none; }
.nav-open .nav-toggle .icon-close { display: block; }

@media (max-width: 61.99rem) {
  .brand-full { display: none; }
}
@media (max-width: 53.99rem) {
  .header-inner { flex-wrap: wrap; row-gap: 0; min-height: 0; padding-block: .625rem; }
  .js.nav-open .site-nav { margin-top: .625rem; }
  /* Without JavaScript the nav simply wraps below the brand. */
  .site-nav { flex-basis: 100%; padding-bottom: var(--s-3); }
  .site-nav ul { flex-wrap: wrap; }
  .js .nav-toggle:not([hidden]) { display: inline-flex; }
  .js .site-nav { display: none; }
  .js.nav-open .site-nav { display: block; border-top: 1px solid var(--line); padding: var(--s-3) 0 var(--s-4); }
  .js .site-nav ul { flex-direction: column; align-items: stretch; gap: var(--s-1); }
  .js .site-nav a { display: flex; border-radius: var(--radius-sm); padding: .65rem .75rem; font-size: 1.0625rem; }
  .js .site-nav .nav-cta a { margin: var(--s-2) 0 0; justify-content: center; border-radius: 999px; }
}

/* Sections */
.section { padding-block: var(--section); }
.section-alt { background: var(--surface); border-block: 1px solid var(--line); }
.section-head { max-width: 44rem; margin-bottom: var(--s-7); }
.section-head p { color: var(--ink-2); }

/* Hero */
.hero, .page-hero { position: relative; isolation: isolate; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero::before, .page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent);
  mask-image: linear-gradient(to bottom, #000 30%, transparent);
}
.hero::after, .page-hero::after {
  content: ""; position: absolute; z-index: -1; width: 46rem; height: 46rem; right: -14rem; top: -20rem;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 14%, transparent), transparent);
}
.hero { padding-block: clamp(2.5rem, 1.5rem + 5vw, 6rem); }
.hero-grid { display: grid; gap: clamp(2rem, 1rem + 4vw, 4rem); align-items: center; }
@media (min-width: 60rem) { .hero-grid { grid-template-columns: 1.05fr 1fr; } }
.hero h1 { max-width: 14ch; }
.hero .lead { margin-bottom: var(--s-6); }
.hero-facts {
  display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); list-style: none;
  margin-top: var(--s-6); color: var(--ink-2); font-size: var(--step--1);
}
.hero-facts li { display: inline-flex; align-items: center; gap: var(--s-2); }
.hero-facts svg { width: 1rem; height: 1rem; color: var(--brand); }

.page-hero { padding-block: clamp(2.5rem, 1.5rem + 4vw, 5rem); }
.page-hero h1 { max-width: 20ch; }

/* Figures */
.figure { margin: 0; }
.frame {
  border-radius: var(--radius); overflow: hidden; background: var(--surface-2);
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.frame img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.frame-portrait { max-width: 30rem; margin-inline: auto; }
.frame-portrait img { aspect-ratio: 4 / 5; }
.figure:has(.frame-portrait) figcaption { max-width: 30rem; margin-inline: auto; }
.figure figcaption { margin-top: var(--s-3); font-size: var(--step--1); color: var(--ink-2); line-height: 1.5; }
.frame-plain { max-width: 32rem; }
.frame-plain img { aspect-ratio: auto; object-fit: contain; }

/* Cards */
.cards { display: grid; gap: var(--s-5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); list-style: none; }
.card {
  position: relative; display: flex; flex-direction: column; gap: var(--s-3);
  padding: var(--s-6); background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  transition: border-color .15s ease, transform .15s ease;
}
.card h3 { margin: 0; }
.card p { color: var(--ink-2); margin: 0; }
.card .link-arrow { margin-top: auto; padding-top: var(--s-2); }
.card-link .link-arrow::before { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.card-link:hover { border-color: var(--brand); transform: translateY(-2px); }
.card-link:focus-within { border-color: var(--brand); }
.card-link .link-arrow:focus-visible { outline: none; }
.card-link .link-arrow:focus-visible::before { outline: 3px solid var(--focus); outline-offset: 3px; }
.icon-tile {
  display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 10px;
  background: var(--brand-soft); color: var(--brand);
}
.icon-tile svg { width: 1.5rem; height: 1.5rem; }
.card-num { font: 600 var(--step--1)/1 var(--font-mono); color: var(--brand); letter-spacing: .04em; }

/* Split layout */
.split { display: grid; gap: clamp(2rem, 1rem + 4vw, 4.5rem); align-items: center; }
@media (min-width: 56rem) {
  .split { grid-template-columns: 1fr 1fr; }
  .split-reverse > :first-child { order: 2; }
}

/* About / facts */
.about { display: grid; gap: var(--s-6); }
@media (min-width: 56rem) { .about { grid-template-columns: 1fr 1.4fr; align-items: start; } }
.about-body { font-size: var(--step-1); line-height: 1.6; }
.checklist { list-style: none; display: grid; gap: var(--s-3); margin-top: var(--s-5); }
.checklist li { display: flex; gap: var(--s-3); align-items: flex-start; }
.checklist svg { width: 1.25rem; height: 1.25rem; margin-top: .2em; color: var(--brand); }

/* Quote band */
.quote-band { padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem); text-align: center; border-block: 1px solid var(--line); background: var(--surface); }
.quote-band p {
  margin: 0 auto; max-width: 30ch; font-size: var(--step-3); font-weight: 700; letter-spacing: -.02em; line-height: 1.2;
  text-wrap: balance;
}
.quote-band .accent { color: var(--brand); }

/* CTA band */
.cta-band { padding-block: var(--section); }
.cta-panel {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; gap: var(--s-5); align-items: center;
  padding: clamp(1.75rem, 1rem + 4vw, 3.5rem); border-radius: calc(var(--radius) + 6px);
  background: var(--band-bg); color: var(--band-ink);
}
.cta-panel::after {
  content: ""; position: absolute; z-index: -1; width: 36rem; height: 36rem; right: -12rem; bottom: -22rem;
  background: radial-gradient(closest-side, rgb(111 220 201 / .28), transparent);
}
@media (min-width: 56rem) { .cta-panel { grid-template-columns: 1.5fr auto; } }
.cta-panel h2 { margin-bottom: var(--s-3); }
.cta-panel p { color: var(--band-ink-2); margin: 0; max-width: 42rem; }
.cta-panel .btn-primary { background: var(--band-brand); color: #04211d; }
.cta-panel .btn-primary:hover { background: #a3eadf; color: #04211d; }
.cta-panel .btn-ghost { background: transparent; color: var(--band-ink); border-color: rgb(233 245 243 / .3); }
.cta-panel .btn-ghost:hover { border-color: var(--band-brand); color: var(--band-ink); }
.cta-panel :focus-visible { outline-color: var(--band-brand); }

/* Services page */
.jump { display: flex; flex-wrap: wrap; gap: var(--s-2); list-style: none; margin-top: var(--s-6); }
.jump a {
  display: inline-flex; align-items: center; gap: var(--s-2); min-height: 2.5rem; padding: .4rem .9rem;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
  color: var(--ink); text-decoration: none; font-size: .95rem; font-weight: 500;
}
.jump a:hover { border-color: var(--brand); color: var(--ink); }
.jump span { font-family: var(--font-mono); color: var(--brand); font-size: .8rem; }

.service { padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem); border-top: 1px solid var(--line); scroll-margin-top: 4.5rem; }
.service:first-child { border-top: 0; }
.service-grid { display: grid; gap: var(--s-5) clamp(2rem, 1rem + 4vw, 4.5rem); }
@media (min-width: 56rem) { .service-grid { grid-template-columns: 17rem 1fr; } }
.service-head { align-self: start; }
@media (min-width: 56rem) { .service-head { position: sticky; top: 6rem; } }
.service-num { display: block; font: 600 .875rem/1 var(--font-mono); color: var(--brand); letter-spacing: .06em; margin-bottom: var(--s-3); }
.service-head h2 { font-size: var(--step-2); margin-bottom: 0; }
.service-body { max-width: 46rem; }
.service-body > * + * { margin-top: var(--s-5); }
.service-body p { margin-bottom: 0; }
.service-body .btn-row { margin-top: var(--s-6); }
.service-body h3 { margin: var(--s-7) 0 var(--s-3); }
.service-body h3 + * { margin-top: var(--s-3); }
.thumbs { display: grid; gap: var(--s-4); grid-template-columns: repeat(2, minmax(0, 1fr)); }

.compare { display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); }
.compare-col { padding: var(--s-5); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.compare-col h3 { font-size: 1.0625rem; margin: 0 0 var(--s-4); }
.compare-col ul { list-style: none; display: grid; gap: var(--s-3); font-size: .975rem; color: var(--ink-2); }
.compare-col li { position: relative; padding-left: 1.25rem; }
.compare-col li::before { content: ""; position: absolute; left: 0; top: .62em; width: .45rem; height: .45rem; border-radius: 2px; background: var(--brand); }
.compare-col.alt li::before { background: transparent; border: 1.5px solid var(--ink-2); }

.note {
  display: flex; gap: var(--s-4); padding: var(--s-5); border-radius: var(--radius);
  background: var(--brand-soft); border: 1px solid color-mix(in srgb, var(--brand) 30%, transparent);
}
.note svg { width: 1.375rem; height: 1.375rem; color: var(--brand); margin-top: .15em; }
.note p { margin: 0; }
.note strong { color: var(--ink); }

/* Topic sections (car/drone, AI) */
.topic { display: grid; gap: var(--s-6); align-items: center; }
@media (min-width: 56rem) { .topic { grid-template-columns: 1fr 1.25fr; gap: var(--s-8); } .topic-reverse > :first-child { order: 2; } }
.illus {
  display: grid; place-items: center; aspect-ratio: 4 / 3; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); color: var(--brand); box-shadow: var(--shadow);
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 24px 24px;
}
.illus svg { width: 72%; height: auto; }
.illus .soft { stroke: var(--ink-2); opacity: .55; }
.topic-num { font: 600 .875rem/1 var(--font-mono); color: var(--brand); letter-spacing: .06em; display: block; margin-bottom: var(--s-3); }

.prose { max-width: 44rem; }
.prose p { color: var(--ink-2); }
.prose p.strong { color: var(--ink); font-weight: 500; }

/* Contact */
.contact-grid { display: grid; gap: var(--s-5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); list-style: none; }
.contact-card { padding: var(--s-6); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.contact-card h2 { font-size: var(--step--1); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--brand); margin: var(--s-4) 0 var(--s-2); }
.contact-card p { margin: 0; color: var(--ink-2); }
.contact-card .big { font-size: var(--step-1); font-weight: 600; color: var(--ink); }
.contact-card .big a { overflow-wrap: anywhere; }
.contact-primary { grid-column: 1 / -1; display: grid; gap: var(--s-4); align-items: center; }
@media (min-width: 48rem) { .contact-primary { grid-template-columns: 1fr auto; } }
.contact-primary .big { font-size: var(--step-2); }

/* Slideshow (Snowblind gallery). Without JavaScript all slides are listed and the controls stay hidden. */
.slideshow { max-width: 52rem; margin-inline: auto; }
.ss-slides { display: grid; gap: var(--s-6); list-style: none; touch-action: pan-y; }
.ss-slide a { display: block; color: inherit; text-decoration: none; border-radius: var(--radius); }
.ss-slide .frame { position: relative; }
.ss-slide .frame img { transition: transform .3s ease; -webkit-user-drag: none; user-select: none; }
.ss-slide a:hover .frame img { transform: scale(1.01); }
.ss-slide figcaption { margin-top: var(--s-3); color: var(--ink-2); font-size: .95rem; line-height: 1.5; min-height: 3em; }
.ss-slide figcaption strong { color: var(--ink); font-weight: 600; }
.js .ss-slide:not([hidden]) { animation: ss-fade .25s ease; }
@keyframes ss-fade { from { opacity: .35; } to { opacity: 1; } }
.zoom {
  position: absolute; right: var(--s-3); bottom: var(--s-3); display: grid; place-items: center;
  width: 2.5rem; height: 2.5rem; border-radius: 999px; background: rgb(10 17 19 / .7); color: #fff;
}
.zoom svg { width: 1.125rem; height: 1.125rem; }
.ss-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-4); margin-top: var(--s-5); padding-top: var(--s-4); border-top: 1px solid var(--line); }
.ss-nav { display: flex; align-items: center; gap: var(--s-3); }
.ss-btn {
  display: inline-grid; place-items: center; width: 2.875rem; height: 2.875rem; border-radius: 999px; cursor: pointer;
  border: 1.5px solid var(--line); background: var(--surface); color: var(--ink);
  transition: border-color .15s ease, background-color .15s ease;
}
.ss-btn:hover { border-color: var(--brand); background: var(--brand-soft); }
.ss-btn svg { width: 1.25rem; height: 1.25rem; }
.ss-count { margin: 0; min-width: 7.5ch; text-align: center; font: 500 .9rem/1 var(--font-mono); color: var(--ink-2); }
.ss-thumbs { display: flex; gap: var(--s-2); }
.ss-thumb {
  width: 5.5rem; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden;
  background: var(--surface-2); cursor: pointer; opacity: .65; transition: opacity .15s ease, border-color .15s ease;
}
.ss-thumb img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.ss-thumb:hover { opacity: 1; }
.ss-thumb[aria-current="true"] { border-color: var(--brand); opacity: 1; }
@media (max-width: 30rem) {
  .ss-bar { justify-content: center; }
  .ss-thumbs { width: 100%; }
  .ss-thumb { flex: 1 1 0; width: auto; min-width: 0; }
}
.hint { font-size: var(--step--1); color: var(--ink-2); margin: var(--s-5) auto 0; max-width: 52rem; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0;
  border: 0; background: #070c0d; color: #f1f6f6; overflow: hidden;
}
.lightbox::backdrop { background: rgb(6 10 11 / .6); }
.lightbox[open] { display: grid; grid-template-rows: auto 1fr auto; }
.lb-bar { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); padding: var(--s-3) var(--s-4); }
.lb-count { font: 500 .9rem/1 var(--font-mono); color: #b9cbcb; }
.lb-stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 var(--s-4); }
.lb-stage img { max-width: 100%; max-height: calc(100vh - 10rem); max-height: calc(100dvh - 10rem); width: auto; height: auto; object-fit: contain; border-radius: var(--radius-sm); }
.lb-caption { padding: var(--s-3) var(--s-4) var(--s-5); text-align: center; color: #c9d8d8; font-size: .95rem; max-width: 52rem; margin-inline: auto; }
.lb-btn {
  display: inline-grid; place-items: center; width: 2.875rem; height: 2.875rem; border-radius: 999px;
  border: 1px solid rgb(255 255 255 / .25); background: rgb(255 255 255 / .08); color: #fff; cursor: pointer;
}
.lb-btn:hover { background: rgb(255 255 255 / .18); }
.lb-btn svg { width: 1.25rem; height: 1.25rem; }
.lb-btn:focus-visible { outline: 3px solid #8be4d5; outline-offset: 2px; }
.lb-nav { display: flex; gap: var(--s-2); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); padding-block: var(--s-8) var(--s-6); font-size: .95rem; }
.footer-grid { display: grid; gap: var(--s-6); }
@media (min-width: 48rem) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-grid h2 { font: 600 var(--step--1)/1.3 var(--font-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); margin-bottom: var(--s-3); }
.footer-grid ul { list-style: none; display: grid; gap: var(--s-2); }
.footer-grid a { color: var(--ink); text-decoration: none; }
.footer-grid a:hover { color: var(--brand); text-decoration: underline; }
.footer-tag { color: var(--ink-2); margin-top: var(--s-3); max-width: 24rem; }
.footer-bottom { margin-top: var(--s-7); padding-top: var(--s-5); border-top: 1px solid var(--line); color: var(--ink-2); font-size: var(--step--1); display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); justify-content: space-between; }

/* 404 */
.notfound { min-height: 55vh; display: grid; align-content: center; }
.notfound .code { font: 700 clamp(4rem, 2rem + 10vw, 8rem)/1 var(--font-mono); color: var(--brand); letter-spacing: -.04em; margin-bottom: var(--s-4); }

/* Motion restraint */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .card-link:hover { transform: none; }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

@media print {
  .site-header, .cta-band, .nav-toggle { display: none; }
  body { background: #fff; color: #000; }
}
