/* ==========================================================================
   RYZIFY — shared rack system
   One stylesheet, copied into each site's /assets so every site deploys
   standalone. Edit _shared/ryzify.css and run tools/sync-shared.ps1.
   ========================================================================== */

:root {
  --void: #050608;
  --rack: #0a0c10;
  --panel: #0e1116;
  --panel-2: #131720;
  --line: rgba(160, 200, 255, 0.09);
  --line-strong: rgba(160, 200, 255, 0.18);
  --text: #e7ecf3;
  --muted: #8a94a6;
  --dim: #566072;

  --cyan: #00e5ff;
  --cyan-deep: #00a6c7;
  --magenta: #ff2bd6;
  --magenta-deep: #b8139a;
  --amber: #ffb547;
  --green: #3dff8f;
  --red: #ff4d5e;

  --glow-c: 0 0 18px rgba(0, 229, 255, 0.45), 0 0 2px rgba(0, 229, 255, 0.9);
  --glow-m: 0 0 18px rgba(255, 43, 214, 0.45), 0 0 2px rgba(255, 43, 214, 0.9);

  --f-display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --f-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --u: 1.75rem;            /* one rack unit — the spacing rhythm */
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --rail: 22px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--void);
  color: var(--text);
  font: 400 16px/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--magenta); color: #000; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

/* ---------- atmosphere: rack rails, scanlines, noise ---------- */
body::before {
  /* the two rack rails with mounting holes, one hole per U */
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0;
  background:
    linear-gradient(90deg, var(--rack) 0 var(--rail), transparent var(--rail) calc(100% - var(--rail)), var(--rack) calc(100% - var(--rail))),
    radial-gradient(circle at 11px 50%, #000 0 3px, transparent 3.5px) left top / var(--rail) var(--u) repeat-y,
    radial-gradient(circle at 11px 50%, #000 0 3px, transparent 3.5px) right top / var(--rail) var(--u) repeat-y;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 100;
  background: repeating-linear-gradient(to bottom, rgba(255,255,255,0.025) 0 1px, transparent 1px 3px);
  mix-blend-mode: overlay;
  animation: scan 9s linear infinite;
}
@keyframes scan { to { background-position: 0 300px; } }
@media (max-width: 700px) { :root { --rail: 0px; } body::before { display: none; } }

main, header, footer { position: relative; z-index: 1; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 calc(var(--gutter) + var(--rail)); }

/* ---------- type ---------- */
h1, h2, h3, .display {
  font-family: var(--f-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 0.92;
  margin: 0;
}
h2 { font-size: clamp(2.6rem, 6.5vw, 5rem); }
h3 { font-size: 1.6rem; letter-spacing: 0.03em; }
p { margin: 0 0 1em; color: #c6cedb; }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: #c6cedb; max-width: 60ch; }
.mono { font-family: var(--f-mono); }
.c { color: var(--cyan); } .m { color: var(--magenta); }

/* rack-unit label above each section: "U03 ── RATES" */
.ulabel {
  display: flex; align-items: center; gap: 0.75rem;
  font: 600 0.72rem/1 var(--f-mono);
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.1rem;
}
.ulabel::after { content: ""; flex: 0 1 120px; height: 1px; background: linear-gradient(90deg, var(--line-strong), transparent); }
.ulabel b { color: var(--cyan); font-weight: 600; }

/* ---------- LEDs ---------- */
.led {
  --c: var(--green);
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--c); box-shadow: 0 0 8px var(--c), 0 0 2px var(--c);
  flex: none;
}
.led.off { --c: var(--red); }
.led.wait { --c: var(--amber); animation: blink 1.1s steps(2) infinite; }
.led.cyan { --c: var(--cyan); } .led.mag { --c: var(--magenta); }
@keyframes blink { 50% { opacity: 0.25; } }

.ledstrip { display: flex; gap: 5px; align-items: center; }
.ledstrip i {
  width: 4px; height: 4px; border-radius: 1px; background: var(--cyan);
  opacity: 0.15; animation: act 2.4s infinite steps(1);
}
.ledstrip i:nth-child(3n) { background: var(--magenta); }
@keyframes act { 0%, 100% { opacity: 0.15; } 8% { opacity: 1; box-shadow: 0 0 6px currentColor; } 14% { opacity: 0.2; } }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(5, 6, 8, 0.82);
  backdrop-filter: blur(10px) saturate(1.2);
  -webkit-backdrop-filter: blur(10px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}
.topbar .wrap { display: flex; align-items: center; gap: 1.5rem; height: 64px; }
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; flex: none; }
.brand svg { height: 22px; width: auto; }
.brand .sub {
  font: 600 0.68rem/1 var(--f-mono); letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted); padding-left: 0.7rem; border-left: 1px solid var(--line-strong);
}
.nav { display: flex; gap: 1.6rem; margin-left: auto; align-items: center; }
.nav a {
  font: 500 0.82rem/1 var(--f-mono); letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted); text-decoration: none; position: relative; padding: 0.4rem 0;
  transition: color 0.2s;
}
.nav a:hover, .nav a.on { color: var(--text); }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 1px;
  background: var(--cyan); box-shadow: var(--glow-c); transition: right 0.3s var(--ease);
}
.nav a:hover::after { right: 0; }
.navbtn { display: none; margin-left: auto; background: none; border: 1px solid var(--line-strong); color: var(--text); width: 42px; height: 38px; cursor: pointer; }
.navbtn span, .navbtn span::before, .navbtn span::after { display: block; width: 16px; height: 1.5px; background: currentColor; margin: 0 auto; position: relative; transition: transform 0.25s; }
.navbtn span::before, .navbtn span::after { content: ""; position: absolute; left: 0; }
.navbtn span::before { top: -5px; } .navbtn span::after { top: 5px; }
@media (max-width: 860px) {
  .navbtn { display: block; }
  .nav {
    position: fixed; inset: 64px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(5, 6, 8, 0.97); border-bottom: 1px solid var(--line);
    padding: 0.5rem var(--gutter) 1.25rem;
    opacity: 0; visibility: hidden; transform: translateY(-12px);
    transition: opacity 0.25s, transform 0.35s var(--ease), visibility 0s 0.35s;
  }
  .nav a { padding: 1rem 0; border-bottom: 1px solid var(--line); font-size: 0.9rem; }
  .nav.open { opacity: 1; visibility: visible; transform: none; transition: opacity 0.25s, transform 0.35s var(--ease); }
  .brand .sub { display: none; }
}

/* cross-site switcher: the three Ryzify services as patch-panel ports */
.ports { background: #000; border-bottom: 1px solid var(--line); font: 500 0.68rem/1 var(--f-mono); letter-spacing: 0.12em; text-transform: uppercase; }
.ports .wrap { display: flex; align-items: center; gap: 0; height: 30px; overflow-x: auto; scrollbar-width: none; }
.ports .wrap::-webkit-scrollbar { display: none; }
.ports .tag { color: var(--dim); margin-right: 1rem; white-space: nowrap; }
.ports a { display: flex; align-items: center; gap: 0.5rem; height: 100%; padding: 0 0.9rem; color: var(--dim); text-decoration: none; border-left: 1px solid var(--line); white-space: nowrap; transition: color 0.2s, background 0.2s; }
.ports a:last-of-type { border-right: 1px solid var(--line); }
.ports a:hover { color: var(--text); background: var(--panel); }
.ports a.here { color: var(--cyan); background: rgba(0, 229, 255, 0.05); }
.ports a .led { width: 5px; height: 5px; --c: var(--dim); box-shadow: none; }
.ports a.here .led { --c: var(--cyan); box-shadow: 0 0 6px var(--cyan); }
.ports .ledstrip { margin-left: auto; padding-left: 1rem; }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--cyan); --fg: #001418;
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.95rem 1.5rem 0.9rem;
  background: var(--bg); color: var(--fg);
  font: 700 0.85rem/1 var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none; border: 0; cursor: pointer;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
  transition: transform 0.2s var(--ease), filter 0.2s, box-shadow 0.2s;
  position: relative;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.12); }
.btn:active { transform: translateY(0); }
.btn.mag { --bg: var(--magenta); --fg: #1a0016; }
.btn.ghost { --bg: transparent; --fg: var(--text); box-shadow: inset 0 0 0 1px var(--line-strong); clip-path: none; }
.btn.ghost:hover { box-shadow: inset 0 0 0 1px var(--cyan); color: var(--cyan); }
.btn.sm { padding: 0.7rem 1rem 0.65rem; font-size: 0.75rem; }
.btn svg { width: 1.1em; height: 1.1em; }
.btns { display: flex; flex-wrap: wrap; gap: 0.8rem; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: min(92vh, 860px); display: flex; align-items: flex-end; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-img { position: absolute; inset: 0; z-index: -2; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.55) contrast(1.15) brightness(0.62); transform: scale(1.06); animation: drift 30s var(--ease) infinite alternate; }
@keyframes drift { to { transform: scale(1.14) translate(-1.5%, -1%); } }
.hero-img::before, .hero-img::after { content: ""; position: absolute; inset: 0; }
.hero-img::before { background: linear-gradient(115deg, rgba(0, 229, 255, 0.35), transparent 45%, rgba(255, 43, 214, 0.35)); mix-blend-mode: color; }
.hero-img::after { background: linear-gradient(to top, var(--void) 2%, rgba(5, 6, 8, 0.7) 40%, rgba(5, 6, 8, 0.15) 75%, rgba(5, 6, 8, 0.6)), linear-gradient(90deg, rgba(5, 6, 8, 0.8), transparent 60%); }
.hero .wrap { padding-bottom: clamp(3rem, 8vh, 6rem); padding-top: 7rem; }
.hero h1 { font-size: clamp(3.4rem, 13vw, 10.5rem); font-weight: 900; line-height: 0.84; letter-spacing: -0.005em; }
.hero h1 .outline { color: transparent; -webkit-text-stroke: 1.5px var(--cyan); text-shadow: 0 0 30px rgba(0, 229, 255, 0.25); }
.hero h1 .glow { color: var(--text); text-shadow: 0 0 40px rgba(255, 43, 214, 0.35); }
.hero .lede { margin: 1.6rem 0 2rem; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.7rem;
  font: 600 0.75rem/1 var(--f-mono); letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text); margin-bottom: 1.4rem;
  padding: 0.55rem 0.8rem; background: rgba(5, 6, 8, 0.6); border: 1px solid var(--line-strong);
}
@media (max-width: 560px) { .eyebrow { font-size: 0.62rem; letter-spacing: 0.1em; gap: 0.5rem; white-space: nowrap; max-width: 100%; overflow: hidden; } }
.credit { position: absolute; right: calc(var(--gutter) + var(--rail)); bottom: 0.9rem; font: 400 0.65rem/1 var(--f-mono); color: var(--dim); letter-spacing: 0.06em; }
.credit a { color: var(--muted); }

/* telemetry readout bar under hero copy */
.readout { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line-strong); background: rgba(5, 6, 8, 0.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); margin-top: 2.6rem; max-width: 820px; }
.readout > div { padding: 0.95rem 1.1rem; border-right: 1px solid var(--line); }
.readout > div:last-child { border-right: 0; }
.readout dt { font: 500 0.66rem/1 var(--f-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.55rem; display: flex; gap: 0.5rem; align-items: center; }
.readout dd { margin: 0; font: 800 1.7rem/1 var(--f-display); letter-spacing: 0.02em; }
.readout dd small { font: 500 0.75rem var(--f-mono); color: var(--muted); margin-left: 0.25rem; }
@media (max-width: 640px) { .readout { grid-template-columns: repeat(2, minmax(0, 1fr)); } .readout > div:nth-child(2) { border-right: 0; } .readout > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }

/* ---------- sections ---------- */
.sec { padding: clamp(4.5rem, 11vw, 8.5rem) 0; position: relative; border-bottom: 1px solid var(--line); }
.sec-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); gap: 2rem 4rem; align-items: end; margin-bottom: clamp(2.2rem, 5vw, 3.5rem); }
.sec-head p { margin: 0; }
@media (max-width: 860px) { .sec-head { grid-template-columns: 1fr; } }
.sec.alt { background: linear-gradient(180deg, var(--rack), var(--void)); }

/* ---------- module (card) with bracket corners ---------- */
.mod {
  position: relative; background: var(--panel); border: 1px solid var(--line);
  transition: border-color 0.3s, transform 0.4s var(--ease), background 0.3s;
}
.mod::before, .mod::after {
  content: ""; position: absolute; width: 14px; height: 14px; pointer-events: none;
  border: 1.5px solid var(--cyan); opacity: 0; transition: opacity 0.3s, inset 0.35s var(--ease);
}
.mod::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.mod::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }
.mod:hover { border-color: var(--line-strong); background: var(--panel-2); }
.mod:hover::before, .mod:hover::after { opacity: 1; }

/* ---------- table ---------- */
.tbl { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.tbl th, .tbl td { text-align: left; padding: 0.95rem 1.1rem; border-bottom: 1px solid var(--line); vertical-align: baseline; }
.tbl th { font: 500 0.68rem/1 var(--f-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); background: var(--rack); }
.tbl td:first-child { color: #c6cedb; }
.tbl tr:hover td { background: rgba(0, 229, 255, 0.025); }
.val { font: 600 0.95rem/1 var(--f-mono); color: var(--cyan); white-space: nowrap; }
.val.hot { color: var(--magenta); }
.note { font-size: 0.82rem; color: var(--muted); }
.tblwrap { overflow-x: auto; border: 1px solid var(--line); }

/* ---------- copy chip ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 0.6rem; max-width: 100%;
  font: 500 0.9rem/1 var(--f-mono); color: var(--text);
  background: #000; border: 1px solid var(--line-strong); padding: 0.7rem 0.8rem; cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.chip:hover { border-color: var(--cyan); color: var(--cyan); }
.chip svg { width: 14px; height: 14px; opacity: 0.7; flex: none; }
.chip code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: inherit; }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: var(--gutter); visibility: hidden; opacity: 0; transition: opacity 0.25s, visibility 0s 0.25s; }
.modal.open { visibility: visible; opacity: 1; transition: opacity 0.25s; }
.modal-bg { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.78); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.modal-box { position: relative; width: min(620px, 100%); max-height: calc(100vh - 2 * var(--gutter)); overflow: auto; background: var(--panel); border: 1px solid var(--line-strong); transform: translateY(16px) scale(0.98); transition: transform 0.35s var(--ease); }
.modal.open .modal-box { transform: none; }
.modal-top { display: flex; align-items: center; gap: 0.7rem; padding: 0.9rem 1.2rem; border-bottom: 1px solid var(--line); font: 600 0.7rem/1 var(--f-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.modal-x { margin-left: auto; background: none; border: 0; color: var(--muted); font-size: 1.4rem; line-height: 1; cursor: pointer; padding: 0.2rem 0.4rem; }
.modal-x:hover { color: var(--text); }
.modal-body { padding: 1.6rem 1.4rem 1.8rem; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; gap: 1.2rem; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 2.2rem 1fr; gap: 0.9rem; }
.steps li::before { content: counter(s, decimal-leading-zero); font: 700 0.8rem/2.2rem var(--f-mono); color: var(--cyan); border: 1px solid rgba(0, 229, 255, 0.35); text-align: center; height: 2.2rem; }
.steps p { margin: 0.4rem 0 0.6rem; }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: 1.5rem; z-index: 300; transform: translate(-50%, 150%); background: #000; border: 1px solid var(--cyan); color: var(--text); font: 500 0.82rem/1 var(--f-mono); padding: 0.85rem 1.1rem; display: flex; gap: 0.6rem; align-items: center; box-shadow: var(--glow-c); transition: transform 0.35s var(--ease); max-width: calc(100vw - 2rem); }
.toast.show { transform: translate(-50%, 0); }

/* ---------- accordion ---------- */
.acc { border-top: 1px solid var(--line); }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 3rem 1fr 1.5rem; gap: 0.5rem; align-items: center; padding: 1.35rem 0.25rem; font: 600 1.08rem/1.35 var(--f-body); transition: color 0.2s; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary .n { font: 500 0.72rem var(--f-mono); color: var(--dim); }
.acc summary .pm { width: 14px; height: 14px; position: relative; justify-self: end; }
.acc summary .pm::before, .acc summary .pm::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; background: var(--muted); transition: transform 0.3s var(--ease), background 0.2s; }
.acc summary .pm::after { transform: rotate(90deg); }
.acc details[open] summary .pm::after { transform: rotate(0); }
.acc details[open] summary, .acc summary:hover { color: var(--cyan); }
.acc details[open] summary .pm::before, .acc details[open] summary .pm::after { background: var(--cyan); }
.acc .ans { padding: 0 0.25rem 1.6rem 3.5rem; color: #c6cedb; max-width: 72ch; }
.acc .ans p:last-child { margin-bottom: 0; }
@media (max-width: 560px) { .acc summary { grid-template-columns: 2.2rem 1fr 1.2rem; } .acc .ans { padding-left: 2.7rem; } }

/* ---------- forms ---------- */
.field { display: grid; gap: 0.45rem; margin-bottom: 1.1rem; }
.field label { font: 500 0.7rem/1 var(--f-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; background: #000; border: 1px solid var(--line-strong); color: var(--text);
  font: 400 1rem/1.4 var(--f-body); padding: 0.85rem 0.95rem; border-radius: 0; transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.12); }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- gallery ---------- */
.gal { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 10px; }
.gal a { position: relative; overflow: hidden; display: block; background: var(--panel); grid-column: span 4; aspect-ratio: 16/10; }
.gal a.w { grid-column: span 8; }
.gal img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.85) brightness(0.85); transition: transform 0.8s var(--ease), filter 0.4s; }
.gal a:hover img { transform: scale(1.05); filter: saturate(1.05) brightness(1); }
.gal a::after { content: ""; position: absolute; inset: 0; border: 1px solid var(--line-strong); pointer-events: none; transition: border-color 0.3s; }
.gal a:hover::after { border-color: var(--cyan); }
@media (max-width: 760px) { .gal a, .gal a.w { grid-column: span 12; } }
.lightbox img { width: 100%; height: auto; }
.lightbox .modal-box { width: min(1200px, 100%); background: #000; }

/* ---------- footer ---------- */
.foot { padding: 3.5rem 0 2.5rem; background: #000; }
.foot .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; }
.foot h4 { font: 600 0.7rem/1 var(--f-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin: 0 0 1rem; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.foot a { color: #c6cedb; text-decoration: none; font-size: 0.92rem; }
.foot a:hover { color: var(--cyan); }
.foot .fine { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 1.5rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font: 400 0.72rem/1.6 var(--f-mono); color: var(--dim); }
.foot .about { color: var(--muted); font-size: 0.92rem; max-width: 38ch; margin-top: 1rem; }
@media (max-width: 760px) { .foot .wrap { grid-template-columns: 1fr 1fr; } .foot .wrap > :first-child { grid-column: 1 / -1; } }

/* ---------- reveal ---------- */
.rv { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: calc(var(--d, 0) * 80ms); }
.rv.in { opacity: 1; transform: none; }
.no-js .rv { opacity: 1; transform: none; }

/* glitch-in for big headings: a one-shot RGB split as they arrive */
.rv.in .split, .rv.in.split, .hero h1 { animation: split 0.9s var(--ease) 1; }
@keyframes split {
  0% { text-shadow: -6px 0 var(--magenta), 6px 0 var(--cyan); clip-path: inset(0 0 60% 0); }
  20% { clip-path: inset(40% 0 0 0); }
  40% { text-shadow: -2px 0 var(--magenta), 2px 0 var(--cyan); clip-path: inset(0 0 0 0); }
  100% { text-shadow: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  .rv { opacity: 1; transform: none; }
}
