/* ============================================================
   IONO ARCHIVE — base.css
   Swiss International Style × Cassette Futurism
   Palette: Signal Orange / Antique White / Ink
   ============================================================ */

/* ── Tokens ───────────────────────────────────────────────── */
:root {
  --paper: #f2ebdd;
  --paper-hi: #faf6ed;
  --paper-dim: #e6dcc8;
  --ink: #171310;
  --ink-2: #372e27;
  --ink-3: #6b5f53;
  --orange: #ff4d14;
  --orange-deep: #d63b05;
  --orange-soft: #ffb59c;
  --line: rgba(23, 19, 15, 0.18);
  --line-strong: rgba(23, 19, 15, 0.42);
  --line-light: rgba(242, 235, 221, 0.26);

  --sans: "Inter", "Helvetica Neue", Helvetica, "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  --mono: "Space Mono", "IBM Plex Mono", ui-monospace, "SF Mono", Menlo,
    Consolas, monospace;

  --gutter: clamp(18px, 2.4vw, 40px);
  --pad-x: clamp(20px, 4.2vw, 72px);
  --max: 1680px;
  --nav-h: 64px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── Reset ────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scrollbar-color: var(--orange) var(--paper-dim);
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-locked {
  overflow: hidden;
}
h1,
h2,
h3,
h4,
p,
figure {
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
  border: 0;
  background: none;
  cursor: pointer;
}
::selection {
  background: var(--orange);
  color: var(--paper-hi);
}
:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}
section[id] {
  scroll-margin-top: calc(var(--nav-h) + 8px);
}
img,
svg {
  display: block;
  max-width: 100%;
}
.mono {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.4;
}

/* Swiss 12-column guide grid */
body::before {
  content: "";
  position: fixed;
  top: 0;
  bottom: 0;
  left: var(--pad-x);
  right: var(--pad-x);
  z-index: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    90deg,
    rgba(23, 19, 15, 0.045) 0,
    rgba(23, 19, 15, 0.045) 1px,
    transparent 1px,
    transparent calc(100% / 12)
  );
  opacity: 0.9;
}

/* ── Film grain / scanlines ───────────────────────────────── */
.grain,
.scanlines,
.vignette {
  position: fixed;
  inset: -50%;
  pointer-events: none;
  z-index: 9000;
}
.grain {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='180' height='180' filter='url(%23n)' opacity='0.5'/></svg>");
  opacity: 0.28;
  mix-blend-mode: multiply;
  animation: grainShift 0.9s steps(3) infinite;
}
.scanlines {
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(23, 19, 15, 0.035) 0 1px,
    transparent 1px 3px
  );
  opacity: 0.55;
}
.vignette {
  inset: 0;
  background: radial-gradient(
    120% 100% at 50% 40%,
    transparent 55%,
    rgba(23, 19, 15, 0.07) 100%
  );
}
@keyframes grainShift {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-3%, 2%); }
  50% { transform: translate(2%, -3%); }
  75% { transform: translate(-2%, -2%); }
  100% { transform: translate(3%, 1%); }
}

/* ── Custom cursor ────────────────────────────────────────── */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9500;
  pointer-events: none;
  mix-blend-mode: normal;
  opacity: 0;
  transition: opacity 0.3s;
}
.cursor__dot {
  position: absolute;
  top: -4px;
  left: -4px;
  width: 8px;
  height: 8px;
  background: var(--orange);
  transform: rotate(45deg);
}
.cursor__ring {
  position: absolute;
  top: -20px;
  left: -20px;
  width: 40px;
  height: 40px;
  border: 1px solid #fff;
  mix-blend-mode: difference;
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: width 0.35s var(--ease-out), height 0.35s var(--ease-out),
    top 0.35s var(--ease-out), left 0.35s var(--ease-out),
    background 0.25s, border-color 0.25s;
}
.cursor__label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--paper-hi);
  opacity: 0;
  transition: opacity 0.2s;
}
.cursor.is-hover .cursor__ring {
  width: 64px;
  height: 64px;
  top: -32px;
  left: -32px;
  background: var(--orange);
  border-color: var(--orange);
  mix-blend-mode: normal;
}
.cursor.is-hover .cursor__label {
  opacity: 1;
  color: var(--ink);
  font-weight: 700;
}
.cursor.is-hover .cursor__dot {
  opacity: 0;
}
@media (hover: hover) and (pointer: fine) {
  body.has-cursor,
  body.has-cursor a,
  body.has-cursor button {
    cursor: none;
  }
}

/* ── Boot overlay ─────────────────────────────────────────── */
.boot {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--ink);
  color: var(--paper);
  display: grid;
  place-items: center;
  transition: opacity 0.7s var(--ease-out), visibility 0.7s;
}
.boot__inner {
  width: min(520px, 82vw);
  text-align: center;
}
.boot__corner {
  position: absolute;
  top: var(--pad-x);
  left: var(--pad-x);
  right: var(--pad-x);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: rgba(242, 235, 221, 0.4);
}
.boot__foot {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 46px;
  padding-top: 14px;
  border-top: 1px solid rgba(242, 235, 221, 0.14);
  color: rgba(242, 235, 221, 0.35);
}
.boot__reel {
  width: 112px;
  height: 112px;
  margin: 0 auto 34px;
  color: var(--orange);
  animation: bootSpin 2.4s linear infinite;
}
.boot__reel svg {
  width: 100%;
  height: 100%;
}
@keyframes bootSpin {
  to { transform: rotate(360deg); }
}
.boot__meta {
  display: flex;
  justify-content: space-between;
  color: var(--paper);
  opacity: 0.72;
  margin-bottom: 12px;
  font-size: 10px;
}
.boot__bar {
  height: 3px;
  background: rgba(242, 235, 221, 0.16);
  overflow: hidden;
}
.boot__bar i {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--orange);
  transition: width 0.2s linear;
}
.boot__name {
  margin-top: 30px;
  font-size: clamp(3.4rem, 13vw, 8.2rem);
  font-weight: 900;
  letter-spacing: 0.06em;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(242, 235, 221, 0.55);
}
.boot.is-done {
  opacity: 0;
  visibility: hidden;
}
.boot.is-done .boot__reel {
  animation-duration: 0.4s;
}

/* ── Navigation ───────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 8000;
  height: var(--nav-h);
  padding: 0 var(--pad-x);
  transition: background 0.4s, box-shadow 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.is-solid {
  background: rgba(242, 235, 221, 0.86);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: var(--line);
}
.nav__grid {
  position: relative;
  z-index: 2;
  height: 100%;
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav__brand {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-weight: 900;
  font-size: 20px;
  letter-spacing: -0.02em;
}
.nav__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--orange);
  align-self: center;
  animation: pulse 2.4s var(--ease-io) infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.62); opacity: 0.55; }
}
.nav__sub {
  font-size: 9px;
  opacity: 0.55;
  letter-spacing: 0.08em;
}
.nav__links {
  display: flex;
  gap: clamp(12px, 2vw, 30px);
  align-items: center;
}
.nav__links a {
  position: relative;
  font-size: 12px;
  letter-spacing: 0.02em;
  padding: 6px 0;
  color: var(--ink-2);
  transition: color 0.25s;
}
.nav__links a i {
  font-family: var(--mono);
  font-style: normal;
  font-size: 8px;
  margin-right: 4px;
  opacity: 0.5;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease-out);
}
.nav__links a:hover {
  color: var(--ink);
}
.nav__links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}
.nav__status {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--ink-2);
}
.nav__rec {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav__rec i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 0 rgba(255, 77, 20, 0.5);
  animation: recPulse 1.6s infinite;
}
@keyframes recPulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 77, 20, 0.5); }
  70% { box-shadow: 0 0 0 7px rgba(255, 77, 20, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 77, 20, 0); }
}
.nav__clock {
  font-variant-numeric: tabular-nums;
  opacity: 0.8;
}
.nav__progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: transparent;
}
.nav__progress i {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  will-change: transform;
}

/* 汉堡菜单按钮（移动端） */
.nav__menu {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--ink);
  font-size: 9px;
  font-weight: 700;
  transition: background 0.3s, color 0.3s;
}
.nav__menu::before {
  content: "";
  width: 14px;
  height: 8px;
  background: linear-gradient(var(--ink) 0 1.5px, transparent 1.5px 3.5px, var(--ink) 3.5px 5px, transparent 5px 7px, var(--ink) 7px 8px);
}
.nav__menu:hover {
  background: var(--ink);
  color: var(--paper);
}

/* ── 全屏索引菜单 ─────────────────────────────────────────── */
.menu {
  position: fixed;
  inset: 0;
  z-index: 8500;
  background: var(--ink);
  color: var(--paper);
  padding: var(--pad-x);
  display: flex;
  flex-direction: column;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.75s var(--ease-io);
  visibility: hidden;
}
.menu.is-open {
  clip-path: inset(0 0 0 0);
  visibility: visible;
}
.menu__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-light);
  color: rgba(242, 235, 221, 0.6);
}
.menu__close {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--orange);
}
.menu__links {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(4px, 1.4vh, 12px);
}
.menu__links a {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: baseline;
  gap: clamp(12px, 3vw, 30px);
  padding: clamp(6px, 1.4vh, 14px) 0;
  border-bottom: 1px solid rgba(242, 235, 221, 0.12);
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.5s var(--ease-out), transform 0.6s var(--ease-out), color 0.3s;
}
.menu.is-open .menu__links a {
  opacity: 1;
  transform: none;
}
.menu__links a:nth-child(1) { transition-delay: 0.10s; }
.menu__links a:nth-child(2) { transition-delay: 0.16s; }
.menu__links a:nth-child(3) { transition-delay: 0.22s; }
.menu__links a:nth-child(4) { transition-delay: 0.28s; }
.menu__links a:nth-child(5) { transition-delay: 0.34s; }
.menu__links a:nth-child(6) { transition-delay: 0.40s; }
.menu__links a i {
  font-style: normal;
  color: var(--orange);
  font-size: 11px;
}
.menu__links a span {
  font-size: clamp(1.6rem, 5.4vw, 3.4rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
}
.menu__links a em {
  font-style: normal;
  color: rgba(242, 235, 221, 0.45);
  font-size: 9px;
}
.menu__links a:hover span {
  color: var(--orange);
}
.menu__links a:hover em {
  color: var(--paper);
}
.menu__foot {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 18px;
  border-top: 1px solid var(--line-light);
  color: rgba(242, 235, 221, 0.45);
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  padding: calc(var(--nav-h) + clamp(46px, 7vh, 86px)) var(--pad-x) 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}
.hero__grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  pointer-events: none;
}
.hero__grid span {
  border-left: 1px solid rgba(23, 19, 15, 0.07);
}
.hero__grid span:last-child {
  border-right: 1px solid rgba(23, 19, 15, 0.07);
}
.hero__tape {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 26px);
  color: var(--ink-3);
  margin-bottom: clamp(26px, 5vh, 54px);
  white-space: nowrap;
  overflow: hidden;
}
.hero__tape i {
  flex: 1;
  height: 1px;
  background: var(--line);
}
.hero__tape i:first-of-type {
  flex: 0 0 clamp(18px, 4vw, 64px);
  height: 2px;
  background: var(--orange);
}
.hero__tape span:first-of-type {
  color: var(--orange-deep);
}
.hero__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: clamp(14px, 2.4vh, 26px);
  color: var(--ink-2);
}
.hero__eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--orange);
}
.reveal-mask {
  overflow: hidden;
}
.reveal-mask > span {
  display: block;
  transform: translateY(110%);
  transition: transform 1s var(--ease-out);
}
body.is-loaded .reveal-mask > span {
  transform: translateY(0);
}
.hero__title {
  position: relative;
  font-size: clamp(4rem, min(15vw, 25vh), 16rem);
  line-height: 0.8;
  font-weight: 900;
  letter-spacing: -0.055em;
  margin: 0 0 clamp(18px, 3vh, 38px);
  margin-left: -0.06em;
  color: var(--ink);
  text-shadow: 0.022em 0.022em 0 var(--orange);
}
.hero__title::after {
  content: "IONO";
  position: absolute;
  inset: 0;
  color: transparent;
  -webkit-text-stroke: 1px var(--orange);
  transform: translate(0.028em, 0.045em);
  z-index: -1;
  opacity: 0.9;
}
.hero__line {
  display: block;
}
.hero__line span {
  display: inline-block;
  transform: translateY(120%) rotate(6deg);
  opacity: 0;
  transition: transform 1.2s var(--ease-out), opacity 0.8s;
}
body.is-loaded .hero__line span {
  transform: translateY(0) rotate(0);
  opacity: 1;
}
.hero__row {
  display: grid;
  grid-template-columns: minmax(240px, 1.15fr) minmax(300px, 0.85fr);
  align-items: end;
  gap: clamp(26px, 4vw, 72px);
  margin-top: clamp(6px, 1.4vh, 18px);
  max-width: 1240px;
}
.hero__row > * {
  min-width: 0;
}
.hero__row .cassette {
  width: 100%;
  max-width: min(520px, 100%);
  margin-left: auto;
}
.hero__lede {
  padding-bottom: 8px;
  align-self: start;
  padding-top: 2px;
}
.hero__cn {
  font-size: clamp(1.15rem, 1.6vw, 1.5rem);
  line-height: 1.6;
  margin-bottom: 14px;
}
.hero__desc {
  font-size: 11px;
  line-height: 1.9;
  color: var(--ink-2);
  text-transform: none;
  letter-spacing: 0.02em;
}
.hero__strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: clamp(20px, 4vh, 52px);
  border-top: 1px solid var(--line-strong);
  max-width: var(--max);
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 2;
}
.hstat {
  padding: 18px 0 16px;
  border-right: 1px solid var(--line);
  padding-left: clamp(8px, 1.4vw, 20px);
}
.hstat:first-child {
  padding-left: 0;
}
.hstat:last-child {
  border-right: 0;
}
.hstat b {
  display: block;
  font-size: clamp(1.6rem, 3.4vw, 2.9rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.hstat span {
  display: block;
  margin-top: 8px;
  color: var(--ink-3);
}
.hero__scroll {
  position: absolute;
  right: var(--pad-x);
  bottom: 34px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-3);
  writing-mode: vertical-rl;
}
.hero__scroll i {
  width: 1px;
  height: 38px;
  background: var(--ink-3);
  animation: scrollCue 2s var(--ease-io) infinite;
  transform-origin: top;
}
@keyframes scrollCue {
  0% { transform: scaleY(0); }
  50% { transform: scaleY(1); }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ── Ticker ───────────────────────────────────────────────── */
.ticker {
  background: var(--orange);
  color: var(--ink);
  overflow: hidden;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  padding: 15px 0;
}
.ticker__track {
  display: flex;
  align-items: center;
  gap: 26px;
  white-space: nowrap;
  font-size: clamp(1.05rem, 2vw, 1.7rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  animation: tickerRun 42s linear infinite;
  will-change: transform;
}
.ticker__track em {
  font-style: normal;
  font-size: 0.65em;
  opacity: 0;
  animation: blink 3s steps(2) infinite;
}
@keyframes tickerRun {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-50% - 13px)); }
}
@keyframes blink {
  0%, 60% { opacity: 1; }
  61%, 100% { opacity: 0.2; }
}

/* 矮屏压缩，保证首屏完整 */
@media (max-height: 760px) and (min-width: 901px) {
  .hero {
    padding-top: calc(var(--nav-h) + 22px);
    padding-bottom: 22px;
  }
  .hero__tape {
    margin-bottom: 16px;
  }
  .hero__title {
    font-size: clamp(3.4rem, min(14vw, 22vh), 11rem);
    margin-bottom: 16px;
  }
  .hero__strip {
    margin-top: 18px;
  }
  .hstat {
    padding: 12px 0 10px;
    padding-left: clamp(8px, 1.4vw, 20px);
  }
  .hstat b {
    font-size: clamp(1.4rem, 2.8vw, 2.2rem);
  }
  .hstat span {
    margin-top: 5px;
  }
  .cassette__sheet {
    transform: scale(0.92);
  }
  .hero__scroll {
    bottom: 18px;
  }
}
