/* ==========================================================================
   alphastar software — styles.css
   Design tokens, layout and section styles. The visual system is the
   prototype's; only the responsive scale for large displays was added.
   ========================================================================== */
/* ==========================================================================
   alphastar software — design system
   ========================================================================== */
:root {
  --teal-deep: #003C3F;
  --teal-midnight: #002B2D;
  --rosegold: #D39A84;
  --rosegold-light: #F0C7B7;
  --copper: #8C4A3D;
  --paper: #FFFFFF;
  --ink: #1A1A1A;
  --mist: #F2F6F6;        /* teal-tinted neutral, so greys never read as blue */
  --line: #D3DEDE;

  --sans: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --display: clamp(2.625rem, 1.4rem + 5.2vw, 5rem);
  --h2: clamp(2rem, 1.3rem + 2.6vw, 3.25rem);
  --h3: clamp(1.1875rem, 1.1rem + 0.4vw, 1.375rem);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --nav-h: 72px;
  --wrap-max: 1280px;
  --wrap-pad: clamp(20px, 4vw, 48px);
}
@media (min-width: 1024px) { :root { --nav-h: 80px; } }

/* Large-display scale. Type is rem-based, so a small step in the root size
   moves the whole page in proportion instead of enlarging fonts one by one.
   Container width grows with it so line lengths stay at 55-70 characters. */
@media (min-width: 1920px) { :root { --wrap-max: 1360px; } }
@media (min-width: 2400px) { html { font-size: 112.5%; } :root { --wrap-max: 1560px; --nav-h: 88px; --wrap-pad: 56px; } }
@media (min-width: 2560px) { :root { --wrap-max: 85vw; } } /* Fluid scaling: 85% of viewport width */
@media (min-width: 3200px) { html { font-size: 137.5%; } :root { --wrap-max: 1960px; --nav-h: 104px; --wrap-pad: 72px; } }
@media (min-width: 3840px) { :root { --wrap-max: 90vw; } } /* Ultra-wide: use 90% of viewport */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--teal-deep);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg, canvas { display: block; max-width: 100%; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--rosegold); color: var(--teal-midnight); }
:focus-visible { outline: 2px solid var(--focus, var(--rosegold-light)); outline-offset: 3px; }
section[id], div[id] { scroll-margin-top: var(--nav-h); }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; top: 12px; left: 12px; z-index: 100; padding: 8px 16px;
  background: var(--rosegold-light); color: var(--teal-midnight); border-radius: 3px;
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

.wrap { width: 100%; max-width: var(--wrap-max); margin-inline: auto; padding-inline: var(--wrap-pad); }

/* Section themes. Rose gold carries the accent on dark ground; on light ground
   it lacks contrast, so copper takes over. */
.sec { position: relative; padding-block: clamp(4.5rem, 9vw, 8rem); background: var(--bg); color: var(--fg); }
.on-deep     { --bg: var(--teal-deep);     --fg: #fff; --muted: rgb(255 255 255 / .74); --accent: var(--rosegold-light); --rule: rgb(211 154 132 / .22); }
.on-midnight { --bg: var(--teal-midnight); --fg: #fff; --muted: rgb(255 255 255 / .72); --accent: var(--rosegold-light); --rule: rgb(211 154 132 / .2); }
.on-paper    { --bg: var(--paper); --fg: var(--ink); --muted: #4A5656; --accent: var(--copper); --rule: var(--line); --focus: var(--teal-deep); }
.on-mist     { --bg: var(--mist);  --fg: var(--ink); --muted: #4A5656; --accent: var(--copper); --rule: var(--line); --focus: var(--teal-deep); }

.h2 { font-size: var(--h2); line-height: 1.08; letter-spacing: -0.02em; font-weight: 600; text-wrap: balance; }
.h3 { font-size: var(--h3); line-height: 1.25; letter-spacing: -0.01em; font-weight: 600; }
.lede { margin-top: 1.25rem; max-width: 60ch; color: var(--muted); font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem); }
.sec-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.mono { font-family: var(--mono); }

.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags li {
  padding: 3px 9px; border: 1px solid var(--rule); border-radius: 2px;
  font-family: var(--mono); font-size: .75rem; line-height: 1.5; color: var(--muted);
}

/* Engineering-drawing grid used behind dark sections */
.grid-bg { position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgb(240 199 183 / .055) 1px, transparent 1px),
    linear-gradient(to bottom, rgb(240 199 183 / .055) 1px, transparent 1px),
    linear-gradient(to right, rgb(255 255 255 / .022) 1px, transparent 1px),
    linear-gradient(to bottom, rgb(255 255 255 / .022) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  background-position: center top;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; height: 48px; padding: 0 24px;
  border: 1px solid transparent; border-radius: 3px; font-weight: 500; font-size: .9375rem; white-space: nowrap;
  cursor: pointer; transition: filter .2s var(--ease), background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.btn-sm { height: 40px; padding: 0 16px; font-size: .875rem; }
.btn-primary {           /* brushed rose gold, matched to the metal of the logo */
  background-image: linear-gradient(135deg, #F0C7B7 0%, #D39A84 42%, #C08670 58%, #E2B09C 100%);
  color: var(--teal-midnight);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .4), inset 0 -1px 0 rgb(140 74 61 / .35);
}
.btn-primary:hover { filter: brightness(1.07); }
.btn-ghost { border-color: rgb(211 154 132 / .45); color: var(--rosegold-light); background: transparent; }
.btn-ghost:hover { border-color: var(--rosegold-light); background: rgb(211 154 132 / .1); }
.btn-teal { background: var(--teal-deep); color: #fff; }
.btn-teal:hover { background: var(--teal-midnight); }

/* Scroll reveal: only when JS is present, only a short settle */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Navbar ---------- */
.nav {
  position: sticky; top: 0; z-index: 50; background: rgb(0 60 63 / .93);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid rgb(211 154 132 / .16);
}
.nav-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--nav-h); }
.logo { display: block; height: 2.5rem; width: auto; aspect-ratio: 1153 / 216; flex: none; }
@media (min-width: 1024px) { .nav .logo { height: 3rem; } }
.nav-links { display: none; gap: 4px; }
.nav-links a { position: relative; display: block; padding: 8px 14px; font-size: .9375rem; color: rgb(255 255 255 / .75); transition: color .2s; }
.nav-links a:hover { color: #fff; }
.nav-links a[aria-current="true"] { color: var(--rosegold-light); }
.nav-links a[aria-current="true"]::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: -1px; height: 1px; background: var(--rosegold); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-cta { display: none; }
.burger {
  display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0;
  background: none; border: 1px solid rgb(211 154 132 / .3); border-radius: 3px; color: var(--rosegold-light); cursor: pointer;
}
.burger .i-close, .burger[aria-expanded="true"] .i-open { display: none; }
.burger[aria-expanded="true"] .i-close { display: block; }
.menu {
  position: absolute; left: 0; right: 0; top: 100%; background: var(--teal-midnight);
  border-block: 1px solid rgb(211 154 132 / .16); box-shadow: 0 24px 48px rgb(0 0 0 / .35);
  display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows .28s var(--ease), visibility .28s;
}
.menu.open { grid-template-rows: 1fr; visibility: visible; }
.menu-inner { overflow: hidden; }
.menu a.item { display: block; padding: 14px 0; font-size: 1.125rem; color: rgb(255 255 255 / .85); border-bottom: 1px solid rgb(255 255 255 / .08); }
.menu a.item[aria-current="true"] { color: var(--rosegold-light); }
.menu .btn { width: 100%; margin-block: 20px; }
@media (min-width: 640px) { .nav-cta { display: inline-flex; } }
@media (min-width: 1024px) { .nav-links { display: flex; } .burger, .menu { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--teal-deep); color: #fff; }
.hero .grid-bg { z-index: -2; -webkit-mask-image: radial-gradient(120% 90% at 70% 40%, #000 20%, transparent 78%); mask-image: radial-gradient(120% 90% at 70% 40%, #000 20%, transparent 78%); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(90% 70% at 78% 45%, rgb(211 154 132 / .09), transparent 60%), linear-gradient(to bottom, transparent 55%, rgb(0 43 45 / .85)); }
.hero-inner { padding-block: clamp(3.5rem, 7vw, 6rem) clamp(2.5rem, 4vw, 3rem); }
.hero-grid { display: grid; gap: 56px 40px; align-items: center; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 1fr 1fr; } }
.hero h1 { max-width: 12ch; font-size: var(--display); line-height: 1.02; letter-spacing: -0.028em; font-weight: 600; text-wrap: balance; }
.hero-sub { margin-top: 24px; font-size: clamp(1.25rem, 1.1rem + .6vw, 1.5rem); font-weight: 500; letter-spacing: -0.01em; color: var(--rosegold-light); }
.hero-desc { margin-top: 24px; max-width: 58ch; line-height: 1.7; color: rgb(255 255 255 / .75); }
.hero-cta { margin-top: 36px; display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 640px) { .hero-cta { flex-direction: row; gap: 16px; } }
.hero-tech { margin-top: clamp(3.5rem, 5vw, 4rem); padding-top: 24px; border-top: 1px solid rgb(211 154 132 / .2);
  display: flex; flex-wrap: wrap; gap: 12px 28px; font-family: var(--mono); font-size: .8125rem; color: rgb(255 255 255 / .7); }
.hero-tech li { display: flex; align-items: center; gap: 10px; }
.hero-tech li::before { content: ""; width: 4px; height: 4px; background: var(--rosegold); }
.rise { animation: rise .7s var(--ease) both; animation-delay: calc(.05s + var(--o, 0) * .09s); }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }

/* Isometric stack diagram */
.stack-svg { width: 100%; height: auto; margin-inline: auto; }
.stack-full { display: none; max-width: 560px; }
.stack-compact { max-width: 400px; }
@media (min-width: 640px) { .stack-full { display: block; } .stack-compact { display: none; } }
@media (min-width: 1024px) { .stack-full { max-width: none; } }
@media (min-width: 2400px) { .stack-full { max-width: 760px; } }
@media (min-width: 3200px) { .stack-full { max-width: 920px; } }
.pl-left  { fill: rgb(0 43 45 / .9);  stroke: rgb(211 154 132 / .3); }
.pl-right { fill: rgb(1 55 58 / .9);  stroke: rgb(211 154 132 / .3); }
.pl-top   { fill: rgb(7 71 74 / .85); stroke: rgb(211 154 132 / .6); stroke-linejoin: round; transition: fill .2s var(--ease), stroke .2s var(--ease); }
.pl-glyph { fill: none; stroke: rgb(240 199 183 / .35); }
.pl-glyph.base { stroke: rgb(211 154 132 / .8); }
.pl-leader { fill: none; stroke: rgb(211 154 132 / .45); transition: stroke .2s; }
.pl-dot { fill: var(--rosegold); }
.pl-label { fill: rgb(255 255 255 / .85); font-family: var(--mono); letter-spacing: .08em; text-transform: uppercase; transition: fill .2s; }
.pl-zone { fill: none; stroke: rgb(255 255 255 / .25); }
.pl-zone-t { fill: rgb(255 255 255 / .55); font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; }
.pl-axis { stroke: rgb(240 199 183 / .3); stroke-dasharray: 2 5; }
.pl-node { fill: var(--teal-midnight); stroke: rgb(240 199 183 / .7); }
.stack-layer { animation: settle .7s var(--ease) both; animation-delay: calc(.35s + var(--i) * .13s); }
.stack-layer:hover .pl-top { fill: rgb(211 154 132 / .16); stroke: var(--rosegold-light); }
.stack-layer:hover .pl-label { fill: var(--rosegold-light); }
.stack-layer:hover .pl-leader { stroke: var(--rosegold-light); }
@keyframes settle { from { opacity: 0; transform: translateY(-18px); } }
.pulse { opacity: 0; animation: pulse 6.8s ease-in-out 1.7s infinite; }
@keyframes pulse {
  0%   { transform: translateY(var(--y0)); opacity: 0; }
  7%   { opacity: 1; }
  70%  { opacity: 1; }
  77%, 100% { transform: translateY(var(--y1)); opacity: 0; }
}

/* ---------- Foundation ---------- */
.found-grid { display: grid; gap: 48px; }
@media (min-width: 1024px) { .found-grid { grid-template-columns: 5fr 7fr; gap: 72px; align-items: start; } .found-copy { position: sticky; top: calc(var(--nav-h) + 40px); } }
.creed { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--rule); font-size: clamp(1.25rem, 1.1rem + .7vw, 1.625rem); font-weight: 500; line-height: 1.35; letter-spacing: -0.01em; color: var(--teal-deep); }
.creed li + li { margin-top: 6px; }
/* Each layer is wider than the one above: the stack stands on its foundation. */
.strata { display: flex; flex-direction: column; gap: 6px; --step: 1.4%; }
@media (min-width: 640px) { .strata { --step: 2.6%; } }
.stratum {
  margin-inline: calc((6 - var(--d)) * var(--step));
  padding: 16px 20px; border: 1px solid var(--b, transparent); border-radius: 2px; background: var(--c); color: var(--t);
  display: flex; flex-direction: column; gap: 2px;
}
@media (min-width: 640px) { .stratum { flex-direction: row; align-items: baseline; justify-content: space-between; gap: 24px; padding: 18px 24px; } }
.stratum b { font-family: var(--mono); font-weight: 500; font-size: .875rem; letter-spacing: .08em; text-transform: uppercase; }
.stratum span { font-size: .875rem; opacity: .8; }
.js .strata .stratum { opacity: 0; transform: translateY(10px); transition: opacity .55s var(--ease), transform .55s var(--ease); transition-delay: calc((6 - var(--d)) * 90ms); }
.js .strata.in .stratum { opacity: 1; transform: none; }

/* ---------- Capabilities ---------- */
.hair-grid { display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.hair-grid > * { background: var(--bg); }
@media (min-width: 700px) { .cols-2, .cols-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .cols-3 { grid-template-columns: repeat(3, 1fr); } }
.cap { position: relative; padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; transition: background-color .2s; }
.cap:hover { background: #fff; }
.cap .h3 { min-height: 52px; padding-right: 44px; color: var(--teal-deep); }
.cap p { margin-top: 12px; margin-bottom: 24px; color: var(--muted); font-size: 1rem; }
.cap .tags { margin-top: auto; }
.span { position: absolute; top: clamp(24px, 3vw, 36px); right: clamp(24px, 3vw, 36px); display: grid; gap: 2px; width: 20px; }
.span i { height: 4px; background: var(--line); }
.span i.on { background: var(--copper); }
.legend { margin-top: 20px; display: flex; align-items: center; gap: 12px; font-size: .875rem; color: var(--muted); }
.legend .span { position: static; flex: none; }

/* ---------- Drivers: call path ---------- */
.split { display: grid; gap: 48px; }
@media (min-width: 1024px) { .split { grid-template-columns: 5fr 7fr; gap: 72px; } }
.trace { position: relative; border: 1px solid var(--rule); background: rgb(0 0 0 / .18); border-radius: 3px; }
.trace-head { display: flex; justify-content: space-between; gap: 16px; padding: 12px 20px; border-bottom: 1px solid var(--rule); font-family: var(--mono); font-size: .75rem; color: rgb(255 255 255 / .55); }
@media (max-width: 560px) { .trace-head span:last-child { display: none; } }
.trace ol { position: relative; padding: 8px 20px 12px; }
.trace ol::before { content: ""; position: absolute; left: 24px; top: 30px; bottom: 34px; width: 1px; background: linear-gradient(var(--rosegold), rgb(211 154 132 / .25)); }
.trace li { position: relative; padding: 12px 0 12px 28px; display: grid; gap: 2px 20px; }
.trace li::before { content: ""; position: absolute; left: 1px; top: 19px; width: 7px; height: 7px; border: 1px solid var(--rosegold-light); background: var(--teal-midnight); border-radius: 50%; }
.trace li:last-child::before { background: var(--rosegold); }
.trace b { font-family: var(--mono); font-weight: 500; font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase; color: var(--rosegold-light); }
.trace code { font-family: var(--mono); font-size: .875rem; color: #fff; overflow-wrap: anywhere; }
.trace small { font-size: .8125rem; color: rgb(255 255 255 / .6); }
@media (min-width: 720px) { .trace li { grid-template-columns: 9.5rem 1fr; } .trace small { grid-column: 2; } }
.kw { margin-top: 36px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 24px; font-family: var(--mono); font-size: .875rem; }
.kw li { padding: 10px 0; border-top: 1px solid var(--rule); color: rgb(255 255 255 / .82); }

/* ---------- Linux: boot sequence ---------- */
.divide { border-top: 1px solid var(--rule); margin-block: clamp(4rem, 8vw, 7rem); }
.boot { counter-reset: boot; display: grid; gap: 0; }
.boot li { counter-increment: boot; position: relative; padding: 0 0 28px 36px; }
.boot li::before { content: ""; position: absolute; left: 5px; top: 8px; bottom: -8px; width: 1px; background: var(--rule); }
.boot li:last-child::before { display: none; }
.boot li::after { content: ""; position: absolute; left: 0; top: 6px; width: 11px; height: 11px; border: 1px solid var(--rosegold); background: var(--teal-midnight); transform: rotate(45deg); }
.boot li:last-child::after { background: var(--rosegold); }
.boot b { display: block; font-family: var(--mono); font-weight: 500; font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase; }
.boot b::before { content: counter(boot, decimal-leading-zero) "  "; color: var(--rosegold); white-space: pre; }
.boot span { display: block; margin-top: 4px; font-size: .875rem; color: rgb(255 255 255 / .62); }
@media (min-width: 1024px) {
  .boot { grid-template-columns: repeat(6, 1fr); }
  .boot li { padding: 32px 20px 0 0; }
  .boot li::before { left: 0; right: 0; top: 5px; bottom: auto; width: auto; height: 1px; }
  .boot li:last-child::before { display: block; right: auto; width: 12px; }
  .boot li::after { top: 0; }
}
.kw-4 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .kw-4 { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Graphics ---------- */
.gfx-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 1024px) { .gfx-grid { grid-template-columns: 1fr 1fr; gap: 64px; } }
.viewport { position: relative; max-width: 880px; border: 1px solid var(--rule); background: rgb(0 43 45 / .55); border-radius: 3px; aspect-ratio: 4 / 3; overflow: hidden; }
@media (max-width: 640px) { .viewport { aspect-ratio: 1 / 1; } }
.viewport canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.viewport .hud { position: absolute; left: 16px; bottom: 14px; font-family: var(--mono); font-size: .6875rem; line-height: 1.7; color: rgb(255 255 255 / .5); }
.viewport .corner { position: absolute; width: 10px; height: 10px; border: solid rgb(211 154 132 / .6); border-width: 0; }
.corner.tl { top: 8px; left: 8px; border-top-width: 1px; border-left-width: 1px; }
.corner.tr { top: 8px; right: 8px; border-top-width: 1px; border-right-width: 1px; }
.corner.bl { bottom: 8px; left: 8px; border-bottom-width: 1px; border-left-width: 1px; }
.corner.br { bottom: 8px; right: 8px; border-bottom-width: 1px; border-right-width: 1px; }
.kw-3 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .kw-3 { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Projects ---------- */
.proj-grid { display: grid; gap: 20px; }
@media (min-width: 700px) { .proj-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .proj-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.proj { display: flex; flex-direction: column; padding: 28px; background: var(--mist); border-top: 2px solid var(--teal-deep); border-radius: 0 0 3px 3px; transition: border-color .2s, background-color .2s; }
.proj:hover { border-top-color: var(--copper); background: #EAF0F0; }
.proj .kind { font-family: var(--mono); font-size: .75rem; color: var(--copper); }
.proj .h3 { margin-top: 10px; color: var(--teal-deep); }
.proj p { margin-top: 12px; margin-bottom: 24px; font-size: 1rem; color: var(--muted); }
.proj .tags { margin-top: auto; }
.proj .tags li { border-color: #C5D3D3; }

/* ---------- Technology stack ---------- */
.techs { display: grid; gap: 0 64px; }
@media (min-width: 900px) { .techs { grid-template-columns: 1fr 1fr; } }
.tech-row { display: grid; grid-template-columns: 1fr; gap: 6px; padding: 20px 0; border-top: 1px solid var(--rule); }
@media (min-width: 560px) { .tech-row { grid-template-columns: 11rem 1fr; gap: 24px; align-items: baseline; } }
.tech-row dt { font-weight: 600; color: var(--teal-deep); }
.tech-row dd { display: flex; flex-wrap: wrap; gap: 4px 22px; font-family: var(--mono); font-size: .9375rem; color: #2B3636; }

/* ---------- Process ---------- */
.steps { display: grid; gap: 0; }
.steps li { position: relative; padding: 0 0 36px 44px; }
.steps li::before { content: ""; position: absolute; left: 6px; top: 10px; bottom: -10px; width: 1px; background: var(--rule); }
.steps li:last-child::before { display: none; }
.steps li::after { content: ""; position: absolute; left: 0; top: 8px; width: 13px; height: 13px; border-radius: 50%; border: 1px solid var(--rosegold); background: var(--teal-deep); }
.steps li:last-child::after { background: var(--rosegold); }
.steps .n { font-family: var(--mono); font-size: .8125rem; color: var(--rosegold); }
.steps .h3 { margin-top: 6px; }
.steps p { margin-top: 8px; font-size: 1rem; color: var(--muted); max-width: 34ch; }
@media (min-width: 1024px) {
  .steps { grid-template-columns: repeat(5, 1fr); }
  .steps li { padding: 40px 28px 0 0; }
  .steps li::before { left: 0; right: 0; top: 6px; bottom: auto; width: auto; height: 1px; }
  .steps li:last-child::before { display: block; right: auto; width: 13px; }
  .steps li::after { top: 0; }
}

/* ---------- Critical systems ---------- */
.closing { margin-top: 40px; padding-left: 20px; border-left: 2px solid var(--rosegold); font-size: clamp(1.375rem, 1.2rem + .8vw, 1.75rem); font-weight: 500; letter-spacing: -0.01em; line-height: 1.3; color: var(--rosegold-light); }
.note { margin-top: 20px; font-size: .875rem; color: rgb(255 255 255 / .55); max-width: 52ch; }
.cell { padding: 22px 20px; font-family: var(--mono); font-size: .875rem; color: rgb(255 255 255 / .85); }

/* ---------- About ---------- */
.principles { margin-top: clamp(3rem, 5vw, 4.5rem); display: grid; gap: 40px; }
@media (min-width: 900px) { .principles { grid-template-columns: repeat(3, 1fr); gap: 48px; } }
.principle { padding-top: 24px; border-top: 2px solid var(--teal-deep); }
.principle .n { font-family: var(--mono); font-size: .8125rem; color: var(--copper); }
.principle h3 { margin-top: 8px; font-size: 1rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--teal-deep); }
.principle p { margin-top: 12px; color: var(--muted); }

/* ---------- Creative ---------- */
.creative { padding-block: clamp(3rem, 5vw, 4rem); border-top: 1px solid var(--line); }
.creative-row { display: flex; flex-direction: column; gap: 24px; }
@media (min-width: 900px) { .creative-row { flex-direction: row; align-items: center; justify-content: space-between; gap: 64px; } }
.creative h2 { font-size: 1.5rem; font-weight: 600; letter-spacing: -0.01em; color: var(--teal-deep); }
.creative p { margin-top: 8px; max-width: 58ch; color: var(--muted); font-size: 1rem; }

/* ---------- Progression + Contact ---------- */
.flow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 0; padding-bottom: clamp(3rem, 6vw, 5rem); margin-bottom: clamp(3rem, 6vw, 5rem); border-bottom: 1px solid var(--rule); font-family: var(--mono); font-size: .8125rem; letter-spacing: .06em; text-transform: uppercase; color: rgb(255 255 255 / .7); }
.flow li { display: flex; align-items: center; }
.flow li + li::before { content: ""; width: 22px; height: 1px; margin-inline: 12px; background: var(--rosegold); }
.flow li:first-child, .flow li:last-child { color: var(--rosegold-light); }
.contact-grid { display: grid; gap: 48px; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 5fr 7fr; gap: 72px; } }
.addr { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--rule); font-style: normal; color: var(--muted); }
.addr b { display: block; color: #fff; font-weight: 500; }
.form { display: grid; gap: 20px; }
@media (min-width: 640px) { .form { grid-template-columns: 1fr 1fr; } .form .full { grid-column: 1 / -1; } }
.field label { display: block; margin-bottom: 8px; font-size: .875rem; font-weight: 500; color: rgb(255 255 255 / .85); }
.field label i { font-style: normal; font-weight: 400; color: rgb(255 255 255 / .5); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; background: rgb(0 43 45 / .7); border: 1px solid rgb(211 154 132 / .28); border-radius: 3px; color: #fff;
  transition: border-color .2s, background-color .2s;
}
.field textarea { min-height: 128px; resize: vertical; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--rosegold) 50%), linear-gradient(135deg, var(--rosegold) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.field select option { color: var(--ink); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgb(211 154 132 / .55); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--rosegold-light); background: var(--teal-midnight); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.status { font-size: .9375rem; color: var(--rosegold-light); }
.status.is-error { color: #F3B6A6; }
.btn[disabled] { opacity: .65; cursor: default; }

/* ---------- Footer ---------- */
.footer { background: var(--teal-midnight); color: #fff; border-top: 1px solid rgb(211 154 132 / .16); padding-block: clamp(3.5rem, 6vw, 5rem) 32px; }
.foot-grid { display: grid; gap: 40px; }
@media (min-width: 700px) { .foot-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .foot-grid { grid-template-columns: 2.2fr 1fr 1.3fr 1fr; gap: 56px; } }
.footer .logo { height: 2.875rem; }
.foot-tag { margin-top: 20px; font-size: 1.125rem; font-weight: 500; letter-spacing: -0.01em; color: var(--rosegold-light); }
.foot-h { font-size: .875rem; font-weight: 600; color: #fff; margin-bottom: 14px; }
.foot-list li { padding: 5px 0; font-size: .9375rem; color: rgb(255 255 255 / .65); }
.foot-list a:hover { color: var(--rosegold-light); }
.foot-base { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgb(255 255 255 / .08); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: .875rem; color: rgb(255 255 255 / .55); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js .reveal, .js .strata .stratum { opacity: 1; transform: none; }
  .pulse { display: none; }
}
