/* ==========================================================================
   AlperSoftware — cinematic studio showcase
   ========================================================================== */

/* Self-hosted Geist / Geist Mono (variable, SIL OFL 1.1 — see assets/fonts/OFL.txt) */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/geist-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/geist-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/geist-mono-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/geist-mono-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --font-sans: 'Geist', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t-theme: 420ms var(--ease);

  /* Dark (default) — anthracite + platinum */
  --bg: #08080A;
  --fg: #EDEDEF;
  --fg-muted: #9A9AA3;
  --fg-dim: #5E5E68;
  --line: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(255, 255, 255, 0.14);
  --surface: rgba(255, 255, 255, 0.035);
  --surface-hover: rgba(255, 255, 255, 0.07);
  --glass: rgba(16, 16, 20, 0.55);
  --glass-edge: rgba(255, 255, 255, 0.09);
  --glass-shadow: 0 40px 120px -30px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(0, 0, 0, 0.4);

  --grid-line: rgba(220, 224, 235, 0.085);
  --beam: rgba(226, 230, 240, 0.16);
  --beam-core: rgba(244, 246, 252, 0.30);
  --halo: rgba(200, 206, 220, 0.14);
  --horizon: rgba(230, 234, 245, 0.35);
  --spot: rgba(255, 255, 255, 0.055);
  --grain-opacity: 0.05;

  --title-grad: linear-gradient(180deg, #FFFFFF 0%, #D4D6DC 55%, #8C8F98 100%);
  --word-grad: linear-gradient(100deg, #F4F5F8 0%, #B9BDC7 45%, #FFFFFF 70%, #9EA2AC 100%);

  --btn-primary-bg: #EDEDEF;
  --btn-primary-fg: #08080A;
  --btn-primary-hover: #FFFFFF;

  --green: #3DDC97;
  --green-glow: rgba(61, 220, 151, 0.55);
  --c-key: #B4B8C4;
  --c-str: #E6E7EB;
  --c-num: #3DDC97;

  --logo-filter: none;
}

html[data-theme='light'] {
  --bg: #F3F3F5;
  --fg: #0B0B0E;
  --fg-muted: #55555E;
  --fg-dim: #8C8C95;
  --line: rgba(10, 10, 20, 0.08);
  --line-strong: rgba(10, 10, 20, 0.16);
  --surface: rgba(10, 10, 20, 0.035);
  --surface-hover: rgba(10, 10, 20, 0.07);
  --glass: rgba(255, 255, 255, 0.62);
  --glass-edge: rgba(10, 10, 20, 0.09);
  --glass-shadow: 0 40px 100px -40px rgba(20, 22, 35, 0.28), 0 0 0 1px rgba(255, 255, 255, 0.6) inset;

  --grid-line: rgba(20, 22, 35, 0.085);
  --beam: rgba(255, 255, 255, 0.75);
  --beam-core: rgba(255, 255, 255, 0.95);
  --halo: rgba(255, 255, 255, 0.9);
  --horizon: rgba(20, 22, 35, 0.16);
  --spot: rgba(255, 255, 255, 0.7);
  --grain-opacity: 0.035;

  --title-grad: linear-gradient(180deg, #050507 0%, #2A2B31 60%, #5B5E68 100%);
  --word-grad: linear-gradient(100deg, #0B0B0E 0%, #5A5E69 45%, #16171B 70%, #6E727D 100%);

  --btn-primary-bg: #0B0B0E;
  --btn-primary-fg: #F7F7F9;
  --btn-primary-hover: #26262C;

  --green: #12A86A;
  --green-glow: rgba(18, 168, 106, 0.45);
  --c-key: #4A4D57;
  --c-str: #15161A;
  --c-num: #12A86A;

  --logo-filter: invert(1);
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--bg);
  color-scheme: dark;
}
html[data-theme='light'] { color-scheme: light; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--fg);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color var(--t-theme), color var(--t-theme);
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

::selection { background: var(--fg); color: var(--bg); }

:focus-visible {
  outline: 1.5px solid var(--fg);
  outline-offset: 3px;
  border-radius: 8px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* --------------------------------------------------------------------------
   Cinematic scene
   -------------------------------------------------------------------------- */

.scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

/* Platinum light shaft falling from top centre */
.scene__beam {
  position: absolute;
  top: -12vh;
  left: 50%;
  width: min(1400px, 180vw);
  height: 115vh;
  transform: translateX(-50%);
  background:
    conic-gradient(from 180deg at 50% 0%,
      transparent 0deg,
      transparent 158deg,
      var(--beam) 172deg,
      var(--beam-core) 180deg,
      var(--beam) 188deg,
      transparent 202deg,
      transparent 360deg);
  -webkit-mask-image: radial-gradient(ellipse 50% 75% at 50% 0%, #000 0%, rgba(0, 0, 0, 0.35) 55%, transparent 80%);
          mask-image: radial-gradient(ellipse 50% 75% at 50% 0%, #000 0%, rgba(0, 0, 0, 0.35) 55%, transparent 80%);
  filter: blur(28px);
  opacity: 0.9;
  animation: beam-breathe 9s ease-in-out infinite;
  transition: opacity var(--t-theme);
}

.scene__halo {
  position: absolute;
  top: -28vh;
  left: 50%;
  width: 70vw;
  max-width: 900px;
  height: 56vh;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, var(--halo) 0%, transparent 65%);
  filter: blur(20px);
}

.scene__horizon {
  position: absolute;
  left: 50%;
  top: 58%;
  width: min(1100px, 120vw);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, var(--horizon), transparent);
  opacity: 0.6;
}

/* Perspective floor grid receding to the horizon */
.scene__grid-wrap {
  position: absolute;
  left: 0;
  right: 0;
  top: 58%;
  bottom: 0;
  perspective: 420px;
  perspective-origin: 50% 0%;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 45%, #000 100%);
          mask-image: linear-gradient(to bottom, transparent 0%, #000 45%, #000 100%);
}

.scene__grid {
  position: absolute;
  left: -100%;
  right: -100%;
  top: 0;
  height: 220%;
  transform-origin: 50% 0%;
  transform: rotateX(72deg);
  background-image:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 72px 72px;
  background-position: center 0;
  -webkit-mask-image: radial-gradient(ellipse 45% 60% at 50% 0%, #000 0%, rgba(0, 0, 0, 0.5) 55%, transparent 90%);
          mask-image: radial-gradient(ellipse 45% 60% at 50% 0%, #000 0%, rgba(0, 0, 0, 0.5) 55%, transparent 90%);
  animation: grid-flow 6s linear infinite;
}

/* Ambient cursor light */
.scene__spotlight {
  position: absolute;
  inset: 0;
  background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 35%), var(--spot), transparent 65%);
  opacity: 0;
  transition: opacity 900ms var(--ease);
}
.scene__spotlight.is-on { opacity: 1; }

.scene__grain {
  position: absolute;
  inset: -50%;
  opacity: var(--grain-opacity);
  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='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

@keyframes grid-flow {
  from { background-position: center 0; }
  to   { background-position: center 72px; }
}

@keyframes beam-breathe {
  0%, 100% { opacity: 0.8; }
  50%      { opacity: 1; }
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */

.page {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  padding:
    max(20px, env(safe-area-inset-top))
    max(16px, env(safe-area-inset-right))
    max(20px, env(safe-area-inset-bottom))
    max(16px, env(safe-area-inset-left));
}

/* --------------------------------------------------------------------------
   Top bar
   -------------------------------------------------------------------------- */

.topbar {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 4px;
}

.brand__logo {
  width: 23px;
  height: 20px;
  object-fit: contain;
  filter: var(--logo-filter);
  transition: filter var(--t-theme);
}

.brand__name {
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
}

/* Theme switch */
.theme-toggle {
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
  border-radius: 999px;
}

.theme-toggle__track {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 64px;
  height: 32px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background-color var(--t-theme), border-color var(--t-theme);
}

.theme-toggle:hover .theme-toggle__track { background: var(--surface-hover); }

.theme-toggle__thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--fg);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  transition: transform 460ms var(--ease), background-color var(--t-theme);
}

html[data-theme='light'] .theme-toggle__thumb { transform: translateX(32px); }

.theme-toggle__icon {
  position: relative;
  z-index: 1;
  width: 14px;
  height: 14px;
  transition: color var(--t-theme), opacity var(--t-theme);
}

.theme-toggle__icon--moon { color: var(--bg); }
.theme-toggle__icon--sun  { color: var(--fg-muted); }
html[data-theme='light'] .theme-toggle__icon--moon { color: var(--fg-muted); }
html[data-theme='light'] .theme-toggle__icon--sun  { color: var(--bg); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  flex: 1;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(56px, 12vh, 120px) 0 clamp(48px, 8vh, 88px);
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--fg-muted);
  transition: border-color var(--t-theme), background-color var(--t-theme), color var(--t-theme);
}

.hero__eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--fg);
  box-shadow: 0 0 10px var(--fg);
  opacity: 0.85;
}

.hero__title {
  margin: 28px 0 0;
  font-size: clamp(40px, 7.2vw, 80px);
  line-height: 1.04;
  font-weight: 600;
  letter-spacing: -0.045em;
  color: var(--fg);
}

.hero__title > span[aria-hidden] { display: block; }

.hero__static {
  background: var(--title-grad);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  padding-bottom: 0.08em;
}

.hero__static--end { display: block; }

.hero__word {
  display: inline-block;
  text-align: left;
  white-space: nowrap;
  overflow: visible;
  transition: width 700ms var(--ease);
  vertical-align: bottom;
  padding-bottom: 0.08em;
  background: var(--word-grad);
  background-size: 200% 100%;
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: word-sheen 6s ease-in-out infinite;
}

.hero__word .glyph {
  font-family: var(--font-mono);
  font-weight: 400;
  letter-spacing: 0;
  opacity: 0.55;
}

@keyframes word-sheen {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

.hero__lead {
  margin: 22px 0 0;
  max-width: 34em;
  font-size: clamp(16px, 1.6vw, 18px);
  line-height: 1.55;
  color: var(--fg-muted);
  text-wrap: balance;
  transition: color var(--t-theme);
}

.hero__actions {
  display: flex;
  gap: 12px;
  margin-top: 34px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 44px;
  padding: 0 20px;
  border-radius: 12px;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition:
    transform 260ms var(--ease),
    background-color var(--t-theme),
    color var(--t-theme),
    border-color var(--t-theme),
    box-shadow 260ms var(--ease);
}

.btn svg { width: 16px; height: 16px; flex: none; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-fg);
  box-shadow: 0 8px 30px -10px rgba(200, 205, 220, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.btn--primary:hover { background: var(--btn-primary-hover); }

.btn--ghost {
  background: var(--surface);
  color: var(--fg);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.btn--ghost:hover { background: var(--surface-hover); }

/* --------------------------------------------------------------------------
   Studio console (glass card)
   -------------------------------------------------------------------------- */

.console {
  --rx: 0deg;
  --ry: 0deg;
  position: relative;
  width: 100%;
  max-width: 760px;
  margin-top: clamp(56px, 9vh, 88px);
  text-align: left;
  border-radius: 18px;
  background: var(--glass);
  border: 1px solid var(--glass-edge);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  transform: perspective(1400px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform 600ms var(--ease), background-color var(--t-theme), border-color var(--t-theme), box-shadow var(--t-theme);
  isolation: isolate;
}

/* Top-edge highlight */
.console::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--fg), transparent);
  opacity: 0.35;
  pointer-events: none;
}

/* Cursor-follow border glow */
.console__glow {
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(340px circle at var(--cx, 50%) var(--cy, 0%), var(--fg), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0;
  transition: opacity 500ms var(--ease);
  pointer-events: none;
}
.console:hover .console__glow { opacity: 0.35; }

.console__bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  height: 46px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  transition: border-color var(--t-theme);
}

.console__lights { display: flex; gap: 7px; }
.console__lights i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line-strong);
  transition: background-color var(--t-theme);
}

.console__title {
  color: var(--fg-muted);
  white-space: nowrap;
  letter-spacing: 0.01em;
}
.console__title span { color: var(--fg-dim); }

.console__status {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 4px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--fg);
  white-space: nowrap;
  font-size: 11.5px;
}

.status-dot {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green-glow);
}
.status-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--green);
  opacity: 0;
  animation: ping 2.2s var(--ease) infinite;
}

@keyframes ping {
  0%   { transform: scale(0.5); opacity: 0.8; }
  100% { transform: scale(1.8); opacity: 0; }
}

/* Tabs */
.console__tabs {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 10px 12px 0;
  border-bottom: 1px solid var(--line);
  transition: border-color var(--t-theme);
}

.tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  padding: 10px 8px 13px;
  border: 0;
  background: none;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--fg-dim);
  border-radius: 8px 8px 0 0;
  transition: color 300ms var(--ease), background-color 300ms var(--ease);
}

.tab:hover { color: var(--fg-muted); background: var(--surface); }
.tab.is-active { color: var(--fg); }
.tab__num { opacity: 0.6; }
.tab__label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.console__indicator {
  position: absolute;
  bottom: -1px;
  left: 0;
  height: 1px;
  width: 0;
  background: linear-gradient(90deg, transparent, var(--fg), transparent);
  box-shadow: 0 0 12px var(--fg);
  transition: transform 520ms var(--ease), width 520ms var(--ease);
}

/* Panels */
.console__body {
  position: relative;
  padding: 26px 26px 24px;
  min-height: 236px;
}

.panel { outline: none; }
.panel[hidden] { display: none; }

.panel__path {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-muted);
  margin-bottom: 14px;
}

.panel__lead {
  margin: 0 0 20px;
  font-size: clamp(17px, 2.1vw, 21px);
  line-height: 1.45;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--fg);
  min-height: 2.9em;
}

.panel__lead .glyph {
  font-family: var(--font-mono);
  font-weight: 400;
  color: var(--fg-dim);
}

.code {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: ln;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.9;
  color: var(--fg-muted);
}

.code li {
  counter-increment: ln;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.code li::before {
  content: counter(ln, decimal-leading-zero);
  display: inline-block;
  width: 3em;
  color: var(--fg-dim);
  opacity: 0.7;
}

.c-dim { color: var(--fg-dim); }
.c-key { color: var(--c-key); }
.c-str { color: var(--c-str); }
.c-num { color: var(--c-num); }
.c-ok  { color: var(--green); }
.c-run { color: var(--green); animation: blink 1.4s steps(2, start) infinite; }

@keyframes blink { to { visibility: hidden; } }

/* Panel enter animation */
.panel.is-entering .panel__path,
.panel.is-entering .code li,
.panel.is-entering .progress {
  animation: line-in 520ms var(--ease) both;
}
.panel.is-entering .panel__path     { animation-delay: 0ms; }
.panel.is-entering .code li:nth-child(1) { animation-delay: 220ms; }
.panel.is-entering .code li:nth-child(2) { animation-delay: 300ms; }
.panel.is-entering .code li:nth-child(3) { animation-delay: 380ms; }
.panel.is-entering .progress { animation-delay: 460ms; }

@keyframes line-in {
  from { opacity: 0; transform: translateY(6px); filter: blur(4px); }
  to   { opacity: 1; transform: none; filter: none; }
}

.progress {
  position: relative;
  margin-top: 18px;
  height: 2px;
  border-radius: 2px;
  overflow: hidden;
  background: var(--line);
}
.progress span {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 35%;
  background: linear-gradient(90deg, transparent, var(--green), transparent);
  animation: progress 2.2s var(--ease) infinite;
}

@keyframes progress {
  from { transform: translateX(-100%); }
  to   { transform: translateX(300%); }
}

.console__foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 18px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--fg-muted);
  transition: border-color var(--t-theme);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.footer {
  text-align: center;
  font-size: 13px;
  color: var(--fg-dim);
  padding-top: 8px;
  transition: color var(--t-theme);
}
.footer span { margin: 0 6px; opacity: 0.7; }

/* --------------------------------------------------------------------------
   Entry reveal
   -------------------------------------------------------------------------- */

.reveal {
  animation: reveal 1000ms var(--ease) both;
  animation-delay: calc(var(--d, 0) * 110ms + 120ms);
}
.d-0 { --d: 0; }
.d-1 { --d: 1; }
.d-2 { --d: 2; }
.d-3 { --d: 3; }
.d-4 { --d: 4; }

@keyframes reveal {
  from { opacity: 0; transform: translateY(14px); filter: blur(8px); }
  to   { opacity: 1; transform: none; filter: none; }
}

/* The console keeps its own tilt transform after reveal */
.console.reveal { animation-name: reveal-console; }
@keyframes reveal-console {
  from { opacity: 0; filter: blur(8px); translate: 0 24px; }
  to   { opacity: 1; filter: none; translate: 0 0; }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 640px) {
  .hero { padding-top: 48px; }
  .hero__title { font-size: clamp(36px, 10.6vw, 46px); letter-spacing: -0.04em; }
  .hero__word {
    display: block;
    width: auto !important;
    text-align: center;
  }
  .hero__lead { font-size: 15.5px; }
  .hero__actions { width: 100%; }
  .btn { flex: 1 1 0; min-width: 0; }

  .scene__grid { background-size: 48px 48px; }
  .scene__horizon, .scene__grid-wrap { top: 52%; }
}

@media (max-width: 480px) {
  .console { border-radius: 16px; }
  .console__bar {
    grid-template-columns: 1fr auto;
    padding: 0 12px;
    font-size: 11px;
  }
  .console__lights { display: none; }
  .console__status { font-size: 10.5px; padding: 3px 8px 3px 7px; gap: 6px; }

  .console__tabs { padding: 8px 6px 0; gap: 2px; }
  .tab {
    flex-direction: column;
    gap: 2px;
    padding: 8px 4px 11px;
    font-size: 12px;
  }
  .tab__num { font-size: 10.5px; }

  .console__body { padding: 20px 16px 18px; min-height: 0; }
  .panel__lead { font-size: 16.5px; min-height: 4.4em; }
  .code { font-size: 12px; }
  .console__foot { padding: 10px 14px; font-size: 10.5px; }
}

@media (max-width: 360px) {
  .console__title span,
  .console__title { letter-spacing: 0; }
  .console__status span:last-child { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .scene__spotlight { display: none; }
}
