/* ==========================================================
   danielrobertgarcia.com — retro tech, modern motion
   ========================================================== */

:root {
  --bg: #07060b;
  --bg-2: #0d0b14;
  --panel: rgba(255, 255, 255, .035);
  --line: rgba(255, 255, 255, .09);
  --text: #ece9f5;
  --muted: #8f8aa3;
  --cyan: #2bd2ff;
  --violet: #8b5cf6;
  --pink: #ff3cac;
  --green: #39ff88;
  --accent: #8b5cf6;
  --grad: linear-gradient(100deg, var(--cyan), var(--violet) 50%, var(--pink));
  --font: "Space Grotesk", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --pixel: "VT323", var(--mono);
  --gutter: clamp(16px, 5vw, 72px);
  --max: 1240px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

/* Konami easter egg: phosphor terminal mode */
html.phosphor {
  --cyan: #39ff88;
  --violet: #2fd173;
  --pink: #b6ff3c;
  --accent: #39ff88;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: clamp(16px, 1.05vw + 10px, 19px);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.is-booting { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--pink); color: #000; }

.mono { font-family: var(--mono); }
.muted { color: var(--muted); }

.skip {
  position: fixed; left: 16px; top: -60px; z-index: 200;
  background: var(--text); color: var(--bg); padding: 8px 14px; border-radius: 8px;
}
.skip:focus { top: 16px; }

:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }

/* ---------- overlays ---------- */
.crt {
  position: fixed; inset: 0; pointer-events: none; z-index: 90;
  background: repeating-linear-gradient(to bottom, rgba(255,255,255,.025) 0 1px, transparent 1px 3px);
  mix-blend-mode: overlay;
}
.crt::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,.55) 100%);
}
.grain {
  position: fixed; inset: -50%; pointer-events: none; z-index: 91; opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-5%, 3%); } 40% { transform: translate(4%, -6%); }
  60% { transform: translate(-3%, 7%); } 80% { transform: translate(6%, 2%); } 100% { transform: translate(0, 0); }
}
.glow-cursor {
  position: fixed; left: 0; top: 0; width: 520px; height: 520px; margin: -260px 0 0 -260px;
  border-radius: 50%; pointer-events: none; z-index: 0;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 22%, transparent), transparent 65%);
  opacity: 0; transition: opacity .6s, background .8s;
}
@media (hover: hover) { body:hover .glow-cursor { opacity: .7; } }

/* ---------- boot ---------- */
.boot {
  position: fixed; inset: 0; z-index: 150; background: #030305;
  padding: clamp(20px, 5vw, 64px); display: flex; flex-direction: column; justify-content: flex-end;
  font-family: var(--pixel); color: var(--green); text-shadow: 0 0 6px rgba(57, 255, 136, .6);
  cursor: pointer;
}
.boot__log { margin: 0; font: inherit; font-size: clamp(18px, 2.4vw, 26px); line-height: 1.25; white-space: pre-wrap; }
.boot__bar { margin-top: 18px; height: 14px; border: 1px solid currentColor; max-width: 520px; padding: 2px; }
.boot__bar span { display: block; height: 100%; width: 0; background: currentColor; }
.boot__hint { margin: 14px 0 0; opacity: .5; font-size: 18px; }
.boot.is-off { pointer-events: none; }
html.no-boot .boot { display: none; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 80;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px var(--gutter);
  transition: background .4s, backdrop-filter .4s, border-color .4s, transform .5s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-solid {
  background: rgba(7, 6, 11, .72); backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4); border-bottom-color: var(--line);
}
.nav.is-hidden { transform: translateY(-110%); }
.nav__brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--mono); font-weight: 700; font-size: 15px; }
.nav__brand em { font-style: normal; color: var(--muted); font-weight: 400; }
.nav__links { display: flex; gap: clamp(12px, 2.2vw, 30px); font-family: var(--mono); font-size: 13px; }
.nav__links a { text-decoration: none; color: var(--muted); transition: color .25s; position: relative; }
.nav__links a i { font-style: normal; color: var(--pink); margin-right: 4px; font-size: 11px; }
.nav__links a:hover, .nav__links a.is-current { color: var(--text); }
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--grad);
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.nav__links a:hover::after, .nav__links a.is-current::after { transform: scaleX(1); }
.nav__status { font-family: var(--mono); font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .35; } }

@media (max-width: 860px) {
  .nav__links { display: none; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: grid; place-items: center;
  overflow: hidden; isolation: isolate; padding: 120px var(--gutter) 80px;
}
.hero__sky {
  position: absolute; inset: 0 0 38% 0; z-index: -2; overflow: hidden;
  background:
    radial-gradient(ellipse 60% 70% at 50% 100%, rgba(255, 60, 172, .28), transparent 70%),
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(139, 92, 246, .22), transparent 75%);
}
.hero__sun {
  position: absolute; left: 50%; bottom: -1px; width: min(46vw, 520px); aspect-ratio: 1;
  transform: translate(-50%, 50%); border-radius: 50%;
  background: linear-gradient(to bottom, #ffd36e 0%, #ff8a5c 35%, var(--pink) 60%, var(--violet) 100%);
  -webkit-mask: linear-gradient(to bottom, #000 0 26%, transparent 26% 27.5%, #000 27.5% 31%, transparent 31% 33.5%, #000 33.5% 37%, transparent 37% 40%, #000 40% 43%, transparent 43% 47%, #000 47%);
          mask: linear-gradient(to bottom, #000 0 26%, transparent 26% 27.5%, #000 27.5% 31%, transparent 31% 33.5%, #000 33.5% 37%, transparent 37% 40%, #000 40% 43%, transparent 43% 47%, #000 47%);
  filter: drop-shadow(0 0 60px rgba(255, 60, 172, .55));
  opacity: .55;
}
.hero__grid {
  position: absolute; left: 0; right: 0; bottom: 0; height: 38%; z-index: -1;
  perspective: 320px; perspective-origin: 50% 0%; overflow: hidden;
  background: linear-gradient(to bottom, rgba(139, 92, 246, .12), transparent);
}
.hero__grid::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; z-index: 2;
  background: var(--grad); box-shadow: 0 0 24px var(--pink), 0 0 60px var(--violet);
}
.hero__plane {
  position: absolute; left: -50%; right: -50%; top: 0; height: 200%;
  transform: rotateX(62deg); transform-origin: top center;
  background-image:
    linear-gradient(to right, rgba(43, 210, 255, .55) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 60, 172, .55) 1px, transparent 1px);
  background-size: 64px 64px;
  animation: plane 1.6s linear infinite;
  -webkit-mask: linear-gradient(to bottom, #000 0, #000 30%, transparent 85%);
          mask: linear-gradient(to bottom, #000 0, #000 30%, transparent 85%);
}
@keyframes plane { to { background-position: 0 64px; } }

.hero__content { text-align: center; position: relative; z-index: 1; margin-top: -10vh; }
.eyebrow { font-family: var(--mono); font-size: 13px; letter-spacing: .12em; color: var(--muted); text-transform: uppercase; margin: 0 0 18px; }
.blink { color: var(--pink); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.hero__title {
  margin: 0; font-weight: 700; line-height: .86; letter-spacing: -.04em;
  font-size: clamp(4.2rem, 17vw, 15.5rem);
  display: flex; flex-direction: column; align-items: center;
}
.hero__line { display: block; position: relative; }
.hero__line:first-child {
  background: linear-gradient(180deg, #fff 30%, #c9bff7 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 0 40px rgba(139, 92, 246, .25);
}
.hero__line--outline {
  color: rgba(7, 6, 11, .55); -webkit-text-stroke: 2px var(--pink);
  filter: drop-shadow(0 0 18px rgba(255, 60, 172, .45));
}
.hero__tag {
  margin: 28px auto 0; font-size: clamp(14px, 1.4vw, 18px); color: var(--text); max-width: 60ch; min-height: 1.6em;
}
.prompt { color: var(--green); }
.caret { display: inline-block; width: .6em; height: 1.1em; vertical-align: -.18em; background: var(--green); margin-left: 3px; animation: blink 1s steps(1) infinite; }

.hero__scroll {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); text-decoration: none;
}
.hero__scroll i { width: 1px; height: 46px; background: linear-gradient(var(--text), transparent); position: relative; overflow: hidden; }
.hero__scroll i::after { content: ""; position: absolute; left: 0; top: -50%; width: 1px; height: 50%; background: var(--pink); animation: drip 1.8s var(--ease) infinite; }
@keyframes drip { to { top: 110%; } }

/* ---------- marquee ---------- */
.marquee {
  border-block: 1px solid var(--line); overflow: hidden; padding: 18px 0; background: var(--bg-2);
  font-family: var(--pixel); font-size: clamp(26px, 3.4vw, 44px); text-transform: uppercase; color: var(--muted);
}
.marquee__track { display: flex; gap: 32px; width: max-content; white-space: nowrap; will-change: transform; }
.marquee__track b { color: var(--pink); font-weight: 400; }

/* ---------- sections ---------- */
.section { position: relative; max-width: var(--max); margin: 0 auto; padding: clamp(96px, 14vw, 180px) var(--gutter); }
.section__head { display: flex; align-items: center; gap: 16px; margin-bottom: clamp(40px, 6vw, 80px); }
.section__head--inset { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); width: 100%; }
.section__num { font-family: var(--pixel); font-size: 32px; color: var(--pink); line-height: 1; }
.section__title { margin: 0; font-family: var(--mono); font-size: 14px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; }
.section__rule { flex: 1; height: 1px; background: linear-gradient(90deg, var(--line), transparent); }

.statement {
  font-size: clamp(2rem, 4.6vw, 4.2rem); line-height: 1.08; letter-spacing: -.03em; font-weight: 500;
  margin: 0 0 clamp(60px, 9vw, 120px); max-width: 20ch;
}
.statement .w { opacity: .14; transition: none; }

.kicker { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); margin: 0 0 12px; }

/* ---------- about ---------- */
.about__grid { display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.window { margin: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--bg-2); box-shadow: 0 40px 80px -30px rgba(139, 92, 246, .45); }
.window__bar, .monitor__bar, .term__bar {
  display: flex; align-items: center; gap: 7px; padding: 10px 14px; border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .03); font-size: 12px; color: var(--muted);
}
.window__bar span, .monitor__bar span, .term__bar span { width: 10px; height: 10px; border-radius: 2px; background: #2a2636; }
.window__bar span:nth-child(1), .monitor__bar span:nth-child(1), .term__bar span:nth-child(1) { background: var(--pink); }
.window__bar span:nth-child(2), .monitor__bar span:nth-child(2), .term__bar span:nth-child(2) { background: var(--violet); }
.window__bar span:nth-child(3), .monitor__bar span:nth-child(3), .term__bar span:nth-child(3) { background: var(--cyan); }
.window__bar em, .monitor__bar em, .term__bar em { font-style: normal; margin-left: 8px; font-family: var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.about__img { overflow: hidden; aspect-ratio: 4 / 5; position: relative; }
.about__img img { width: 100%; height: 118%; object-fit: cover; object-position: 50% 20%; will-change: transform; transition: filter .5s; }
.about__img::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(0,0,0,.18) 0 1px, transparent 1px 3px);
  opacity: 0; transition: opacity .4s;
}
.about__photo:hover .about__img::after { opacity: 1; }
.about__photo:hover .about__img img { filter: saturate(1.25) contrast(1.05); }

.about__copy p { color: #c9c4d8; margin: 0 0 1.2em; max-width: 56ch; }
.about__copy .lede { font-size: clamp(1.6rem, 2.6vw, 2.2rem); color: var(--text); font-weight: 500; letter-spacing: -.02em; margin-bottom: .6em; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 36px 0 0; }
.fact { border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; background: var(--panel); transition: border-color .3s, transform .3s var(--ease); }
.fact:hover { border-color: color-mix(in srgb, var(--pink) 50%, transparent); transform: translateY(-3px); }
.fact dt { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--pink); }
.fact dd { margin: 4px 0 0; font-weight: 500; }

/* ---------- the crew (cats) ---------- */
.crew { margin-top: clamp(80px, 11vw, 150px); }
.crew__head { max-width: 640px; margin-bottom: clamp(32px, 5vw, 56px); }
.crew__title { font-size: clamp(2rem, 4.4vw, 3.6rem); line-height: 1.02; letter-spacing: -.035em; margin: 0 0 16px; }
.crew__title span { color: var(--pink); font-family: var(--pixel); font-weight: 400; }
.crew__sub { color: #c9c4d8; margin: 0; }
.crew__cats { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 40px); align-items: start; }
.cat { position: relative; will-change: transform; transition: box-shadow .5s, border-color .5s; }
.cat--b { margin-top: clamp(40px, 7vw, 110px); }
.cat:hover { border-color: color-mix(in srgb, var(--pink) 45%, transparent); box-shadow: 0 50px 100px -30px rgba(255, 60, 172, .5); }
.cat__img { overflow: hidden; aspect-ratio: 4 / 3; position: relative; }
.cat__img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 1.2s var(--ease), filter .5s; }
.cat--a .cat__img img { object-position: 55% 30%; }
.cat--b .cat__img img { object-position: 45% 40%; }
.cat:hover .cat__img img { transform: scale(1.12); filter: saturate(1.15); }
.cat__img::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(0,0,0,.18) 0 1px, transparent 1px 3px); opacity: 0; transition: opacity .4s;
}
.cat:hover .cat__img::after { opacity: 1; }
.cat figcaption { padding: 12px 16px; font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); }
.cat figcaption b { color: var(--green); font-weight: 400; }

/* ---------- work ---------- */
.forge-intro { max-width: 820px; margin-bottom: clamp(60px, 8vw, 110px); }
.forge-title { font-size: clamp(3rem, 9vw, 7.5rem); line-height: .9; letter-spacing: -.045em; margin: 0 0 24px; }
.forge-title span { color: var(--green); text-shadow: 0 0 30px rgba(57, 255, 136, .35); }
.forge-sub { font-size: clamp(1.05rem, 1.5vw, 1.3rem); color: #c9c4d8; margin: 0 0 32px; }
.forge-cta { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; font-size: 13px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 999px;
  text-decoration: none; font-weight: 500; font-size: 15px; transition: transform .3s var(--ease), box-shadow .3s;
}
.btn--primary { background: var(--text); color: var(--bg); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 40px -8px rgba(57, 255, 136, .55); }

.showcase { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); }
.showcase__steps { display: flex; flex-direction: column; }
.step { min-height: 72vh; display: flex; flex-direction: column; justify-content: center; opacity: .25; transition: opacity .5s; }
.step.is-active { opacity: 1; }
.step__num { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--green); }
.step h4 { font-size: clamp(1.8rem, 3.2vw, 2.8rem); line-height: 1.05; letter-spacing: -.03em; margin: 12px 0 14px; }
.step p { color: #c9c4d8; margin: 0; max-width: 40ch; }

.showcase__screen { position: sticky; top: 14vh; height: 72vh; display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.monitor {
  border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: #0d1117;
  box-shadow: 0 0 0 1px rgba(57, 255, 136, .05), 0 50px 100px -30px rgba(57, 255, 136, .3), 0 30px 60px -30px rgba(0, 0, 0, .8);
}
.monitor__view { position: relative; aspect-ratio: 1900 / 1068; overflow: hidden; }
.shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; transform: scale(1.04); transition: opacity .7s var(--ease), transform 1.1s var(--ease); }
.shot.is-active { opacity: 1; transform: none; }
.showcase__dots { display: flex; gap: 8px; justify-content: center; }
.showcase__dots i { width: 22px; height: 3px; border-radius: 2px; background: var(--line); transition: background .4s, width .4s var(--ease); }
.showcase__dots i.is-active { background: var(--green); width: 44px; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; margin: clamp(60px, 8vw, 110px) 0 24px; }
.stat { background: var(--bg); padding: 28px 24px; display: flex; flex-direction: column; gap: 6px; }
.stat__n { font-family: var(--pixel); font-size: clamp(38px, 4.2vw, 58px); white-space: nowrap; line-height: 1; color: var(--green); text-shadow: 0 0 18px rgba(57, 255, 136, .35); }
.stat__l { font-size: 14px; color: var(--muted); }

.features { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature {
  position: relative; border: 1px solid var(--line); border-radius: 16px; padding: 26px; background: var(--panel); overflow: hidden;
  transition: border-color .3s, transform .4s var(--ease);
}
.feature::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .4s;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(57, 255, 136, .12), transparent 45%);
}
.feature:hover { border-color: rgba(57, 255, 136, .35); transform: translateY(-4px); }
.feature:hover::before { opacity: 1; }
.feature > * { position: relative; }
.feature .mono { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--green); }
.feature h5 { font-size: 1.2rem; margin: 10px 0 8px; letter-spacing: -.01em; }
.feature p { margin: 0; color: var(--muted); font-size: .95rem; }
.footnote { margin: 40px 0 0; font-size: 13px; color: var(--muted); }

/* ---------- homelab ---------- */
.lab__diagram { border: 1px solid var(--line); border-radius: 20px; padding: clamp(12px, 3vw, 36px); background: radial-gradient(ellipse at 50% 0%, rgba(139, 92, 246, .1), transparent 70%), var(--bg-2); }
.diagram { width: 100%; height: auto; display: block; font-family: var(--mono); }
.d-box--pi { fill: rgba(139, 92, 246, .05); stroke: rgba(139, 92, 246, .55); stroke-width: 1.5; stroke-dasharray: 6 6; }
.d-label--pi { fill: var(--violet); font-size: 14px; letter-spacing: .12em; }
.d-node rect { fill: #13101c; stroke: rgba(255, 255, 255, .14); stroke-width: 1.2; }
.d-node--ext rect { fill: transparent; stroke-dasharray: 4 4; }
.d-node--hot rect { stroke: var(--pink); fill: rgba(255, 60, 172, .08); }
.d-name { fill: var(--text); font-family: var(--font); font-weight: 700; font-size: 19px; }
.d-name--sm { font-size: 16px; font-weight: 500; fill: var(--muted); }
.d-sub { fill: var(--muted); font-size: 13px; }
.d-wire { fill: none; stroke: url(#wire); stroke-width: 2; }
.d-packet { fill: var(--cyan); filter: drop-shadow(0 0 6px var(--cyan)); }
.d-packet--hot { fill: var(--pink); filter: drop-shadow(0 0 6px var(--pink)); }

/* ---------- rigs (horizontal) ---------- */
.rigs { position: relative; }
.rigs::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: -1;
  background: radial-gradient(ellipse 70% 60% at 60% 55%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%);
  transition: background 1s;
}
.rigs__pin { height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; padding-top: 70px; }
.rigs__pin .section__head { margin-bottom: 4vh; }
.rigs__track { display: flex; align-items: center; gap: 4vw; padding-inline: var(--gutter); width: max-content; will-change: transform; }
.rig-intro { width: min(420px, 80vw); flex: none; }
.rig-intro h3 { font-size: clamp(2.8rem, 6vw, 5.5rem); line-height: .95; letter-spacing: -.04em; margin: 0 0 18px; }
.rig-intro p { color: #c9c4d8; margin: 0; }
.rig-photo { margin: 0; flex: none; width: min(56vw, 900px); position: relative; }
.rig-photo img { width: 100%; aspect-ratio: 4 / 3; height: auto; max-height: 64vh; object-fit: cover; border-radius: 18px; border: 1px solid var(--line); box-shadow: 0 50px 120px -40px var(--glow, var(--accent)); }
.rig-photo figcaption { position: absolute; left: 20px; bottom: 16px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; background: rgba(0,0,0,.55); backdrop-filter: blur(8px); padding: 6px 12px; border-radius: 999px; }

/* ---------- specs ---------- */
.specs { padding-top: clamp(40px, 6vw, 80px); }
.specs__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.term { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #08070d; }
.term__body {
  margin: 0; padding: 22px; font-size: clamp(12px, 1vw, 14px); line-height: 1.75; color: #d6d2e3;
  white-space: pre-wrap; min-height: 22em;
}
.t-p { color: var(--green); } .t-c { color: var(--cyan); } .t-k { color: var(--pink); } .t-ok { color: var(--green); }

/* ---------- connect ---------- */
.connect__big { font-size: clamp(3.4rem, 12vw, 10rem); line-height: .9; letter-spacing: -.05em; margin: 0 0 clamp(40px, 6vw, 80px); }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.links { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.link-row {
  position: relative; display: grid; grid-template-columns: 140px 1fr auto; align-items: center; gap: 16px;
  padding: clamp(18px, 2.4vw, 30px) 4px; border-bottom: 1px solid var(--line); text-decoration: none; overflow: hidden;
}
.link-row::before {
  content: ""; position: absolute; inset: 0; background: var(--grad); opacity: .1;
  transform: scaleY(0); transform-origin: bottom; transition: transform .5s var(--ease);
}
.link-row:hover::before { transform: scaleY(1); }
.link-row > * { position: relative; }
.link-row__k { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.link-row__v { font-size: clamp(1.4rem, 3.2vw, 2.6rem); font-weight: 500; letter-spacing: -.02em; transition: transform .5s var(--ease); }
.link-row:hover .link-row__v { transform: translateX(12px); }
.link-row__a { font-size: clamp(1.4rem, 2.6vw, 2.2rem); color: var(--pink); transition: transform .5s var(--ease); }
.link-row:hover .link-row__a { transform: translate(4px, -4px) rotate(0deg); }

/* ---------- footer ---------- */
.footer { text-align: center; padding: 60px var(--gutter) 70px; border-top: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 13px; }
.footer img { margin-bottom: 14px; }
.footer p { margin: 0; }
.footer__egg { font-size: 11px; opacity: .6; }

/* ---------- reveal base (JS animates; no-JS stays visible) ---------- */
.js .reveal { opacity: 0; transform: translateY(40px); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__photo { max-width: 440px; }
  .showcase { grid-template-columns: 1fr; }
  .showcase__screen { position: relative; top: 0; height: auto; order: -1; }
  .step { min-height: 0; opacity: 1; padding: 28px 0; border-bottom: 1px solid var(--line); }
  .stats { grid-template-columns: 1fr 1fr; }
  .features { grid-template-columns: 1fr; }
  .specs__grid { grid-template-columns: 1fr; }
  .rigs__pin { height: auto; padding: 96px 0 0; }
  .rigs__track { flex-direction: column; width: auto; align-items: stretch; gap: 24px; }
  .rig-intro, .rig-photo { width: 100%; }
  .rig-photo img { max-height: none; }
  .link-row { grid-template-columns: 1fr auto; }
  .link-row__k { grid-column: 1 / -1; }
  .facts { grid-template-columns: 1fr; }
  .crew__cats { grid-template-columns: 1fr; }
  .cat--b { margin-top: 0; }
  .lab__diagram { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .diagram { min-width: 720px; }
  .lab__diagram::after { content: "← swipe →"; display: block; text-align: center; font-family: var(--mono); font-size: 11px; color: var(--muted); margin-top: 8px; position: sticky; left: 0; }
  .nav__status span:not(.dot) { display: none; }
}
@media (min-width: 901px) and (max-width: 1100px) {
  .features { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .statement .w { opacity: 1; }
}
