/* =========================================================
   KUN1983 — Personal Index
   Palette: paper, ink, graphite, coffee, muted gold
   ========================================================= */

:root {
  --bg: #f2efe9;
  --surface: #f8f6f1;
  --ink: #141311;
  --muted: #6f6a62;
  --line: #d6d0c6;
  --line-strong: #b8b0a3;

  --coffee: #6b4a37;
  --coffee-deep: #4e3325;
  --gold: #a98045;
  --gold-ink: #8a642f;
  --gold-soft: #e6dcc7;

  --dark: #141311;
  --on-dark: #f1eee7;
  --on-dark-muted: rgba(241, 238, 231, 0.58);
  --on-dark-line: rgba(241, 238, 231, 0.17);
  --grid: rgba(20, 19, 17, 0.052);

  --font-sans: "Helvetica Neue", Helvetica, Arial, "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-display: "Helvetica Neue", "Arial Black", Arial, "PingFang SC",
    "Microsoft YaHei", sans-serif;
  --font-mono: "SFMono-Regular", "Cascadia Mono", "Roboto Mono", Consolas,
    "Liberation Mono", monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --gutter: clamp(1.25rem, 3.5vw, 3rem);
  --max-width: 1340px;
}

[data-theme="dark"] {
  --bg: #11100e;
  --surface: #171512;
  --ink: #f1ede5;
  --muted: #9a9287;
  --line: #302c26;
  --line-strong: #4b443b;

  --coffee: #c59b7b;
  --coffee-deep: #dab697;
  --gold: #d1ae6b;
  --gold-ink: #d1ae6b;
  --gold-soft: #3a3022;

  --dark: #0c0b0a;
  --on-dark: #f1ede5;
  --on-dark-muted: rgba(241, 237, 229, 0.58);
  --on-dark-line: rgba(241, 237, 229, 0.17);
  --grid: rgba(241, 237, 229, 0.048);
}

/* ---------- Reset ---------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body,
.site-header,
.channels,
.channel,
.about-card,
.site-footer {
  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease;
}

::selection {
  background: var(--coffee);
  color: #fffdf8;
}

h1,
h2,
h3,
p,
dl,
dd,
figure {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

button,
code {
  font: inherit;
}

button {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

/* ---------- Utilities ---------- */

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

.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;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 999;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  transform: translateY(-150%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  width: 100%;
  max-width: var(--max-width);
  min-height: 76px;
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.brand-mark {
  position: relative;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1;
}

.brand-mark::after {
  content: "";
  position: absolute;
  right: -3px;
  bottom: -3px;
  width: 8px;
  height: 8px;
  background: var(--gold);
}

.brand-word {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-name {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.13em;
  line-height: 1.1;
}

.brand-sub {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.17em;
  line-height: 1.2;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 38px);
  margin-left: auto;
}

.site-nav a {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  padding: 6px 0;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
  transition: color 0.2s ease;
}

.site-nav a span {
  color: var(--gold-ink);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.08em;
}

.site-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s var(--ease);
}

.site-nav a:hover {
  color: var(--ink);
}

.site-nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition:
    color 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease;
}

.theme-toggle:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--bg);
}

.theme-glyph {
  font-size: 11px;
  line-height: 1;
}

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

.hero {
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 96px 96px;
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    #000 18%,
    #000 82%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    #000 18%,
    #000 82%,
    transparent 100%
  );
}

.hero .wrap {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: min(calc(100svh - 77px), 900px);
  flex-direction: column;
  padding-top: clamp(44px, 7vh, 74px);
}

.hero-grid {
  display: grid;
  flex: 1;
  grid-template-columns: minmax(0, 1.55fr) minmax(330px, 0.68fr);
  gap: clamp(36px, 6vw, 96px);
  align-items: center;
}

.hero-main {
  min-width: 0;
  padding-top: 12px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.155em;
  line-height: 1.5;
}

.signal {
  position: relative;
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  background: var(--gold);
}

.signal::after {
  content: "";
  position: absolute;
  inset: -4px;
  border: 1px solid var(--gold);
  opacity: 0;
  animation: signal 2.8s ease-out infinite;
}

@keyframes signal {
  0% {
    opacity: 0.65;
    transform: scale(0.4);
  }
  70%,
  100% {
    opacity: 0;
    transform: scale(1.5);
  }
}

.hero-title {
  margin-top: clamp(24px, 3.5vw, 42px);
  font-family: var(--font-display);
  font-size: clamp(5.4rem, 13.6vw, 12.6rem);
  font-weight: 900;
  letter-spacing: -0.075em;
  line-height: 0.76;
  text-transform: uppercase;
}

.hero-line {
  display: block;
  overflow: hidden;
  padding-right: 0.06em;
}

.hero-line > span {
  display: inline-block;
}

.hero-line--kun {
  color: var(--ink);
}

.hero-line--year {
  margin-left: clamp(34px, 8vw, 118px);
  color: var(--coffee);
}

@supports (-webkit-text-stroke: 1px #000) {
  .hero-line--year {
    color: transparent;
    -webkit-text-stroke: clamp(1px, 0.14vw, 2px) var(--coffee);
    text-stroke: clamp(1px, 0.14vw, 2px) var(--coffee);
  }
}

.hero-sub {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-top: clamp(30px, 4vw, 46px);
}

.hero-rule {
  width: clamp(42px, 6vw, 78px);
  height: 1px;
  margin-top: 10px;
  flex: 0 0 auto;
  background: var(--gold);
}

.hero-sub p {
  color: var(--muted);
  font-size: clamp(12px, 1.15vw, 14px);
  letter-spacing: 0.06em;
  line-height: 1.95;
  text-wrap: pretty;
}

/* ---------- About card ---------- */

.about-card {
  position: relative;
  align-self: center;
  margin-bottom: 0;
  padding: clamp(24px, 2.6vw, 34px);
  border: 1px solid var(--line);
  background: var(--surface);
}

.about-card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 64px;
  height: 3px;
  background: var(--gold);
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.16em;
}

.card-cross {
  color: var(--coffee);
  font-size: 14px;
  font-weight: 300;
  line-height: 1;
}

.about-title {
  margin-top: clamp(34px, 5vw, 56px);
  font-size: clamp(23px, 2.2vw, 30px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.36;
  text-wrap: balance;
}

.about-copy {
  margin-top: 18px;
  color: var(--muted);
  font-size: 12.5px;
  letter-spacing: 0.025em;
  line-height: 1.95;
  text-wrap: pretty;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 24px;
}

.tag-list li {
  padding: 5px 8px 4px;
  border: 1px solid var(--line);
  color: var(--coffee);
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.09em;
  line-height: 1.2;
}

.card-foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-top: 30px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.12em;
}

.card-sign {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

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

.hero-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-top: clamp(52px, 7vh, 82px);
  padding: 22px 0 28px;
  border-top: 1px solid var(--line);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 26px clamp(30px, 5vw, 66px);
}

.hero-meta dt {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.16em;
  line-height: 1.2;
}

.hero-meta dd {
  margin-top: 5px;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.09em;
  line-height: 1.4;
  white-space: nowrap;
}

.status-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 6px;
  background: var(--gold);
  vertical-align: 1px;
}

.scroll-cue {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 11px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.16em;
  transition: color 0.2s ease;
}

.scroll-cue:hover {
  color: var(--ink);
}

.scroll-line {
  width: clamp(28px, 4vw, 56px);
  height: 1px;
  background: var(--line-strong);
  transition: background-color 0.2s ease;
}

.scroll-cue:hover .scroll-line {
  background: var(--gold);
}

.scroll-arrow {
  display: inline-block;
  animation: nudge 2.4s ease-in-out infinite;
}

@keyframes nudge {
  0%,
  100% {
    transform: translateY(-2px);
  }
  50% {
    transform: translateY(3px);
  }
}

/* ---------- Channels ---------- */

.channels {
  padding: clamp(78px, 10vw, 128px) 0 clamp(80px, 10vw, 124px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.section-head {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) minmax(245px, 350px);
  gap: 28px;
  align-items: end;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line);
}

.section-no {
  align-self: start;
  padding-top: 6px;
  color: var(--gold-ink);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.section-no::after {
  content: "";
  display: block;
  width: 22px;
  height: 1px;
  margin-top: 10px;
  background: var(--gold);
}

.section-kicker {
  color: var(--coffee);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.18em;
  line-height: 1.4;
}

.section-heading h2 {
  margin-top: 9px;
  font-size: clamp(2.65rem, 5.2vw, 4.6rem);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 0.98;
  text-wrap: balance;
}

.section-note {
  justify-self: end;
  max-width: 350px;
  padding-bottom: 4px;
  color: var(--muted);
  font-size: 11.5px;
  letter-spacing: 0.035em;
  line-height: 1.95;
  text-wrap: pretty;
}

.channel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: clamp(36px, 4.5vw, 54px);
}

.channel {
  --accent: var(--coffee);
  position: relative;
  display: grid;
  min-height: 326px;
  grid-template-columns: minmax(0, 1fr) 170px;
  gap: clamp(18px, 2.2vw, 30px);
  padding: clamp(24px, 2.7vw, 36px);
  border: 1px solid var(--line);
  background: var(--bg);
  transition:
    border-color 0.35s ease,
    background-color 0.35s ease;
}

.channel--red {
  --accent: var(--gold-ink);
}

.channel::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 0;
  height: 3px;
  background: var(--accent);
  transition: width 0.55s var(--ease);
}

.channel:hover {
  border-color: var(--line-strong);
}

.channel:hover::before {
  width: calc(100% + 2px);
}

.channel-body {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.channel-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.channel-badge {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.channel-platform {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.105em;
  line-height: 1.45;
}

.channel h3 {
  margin-top: clamp(26px, 3.2vw, 38px);
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.09em;
  line-height: 1.4;
}

.channel-name {
  margin-top: 4px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.4vw, 2.9rem);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 1;
}

.channel-id {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.id-label {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.channel-id code {
  min-width: 0;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.015em;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 27px;
  margin-left: auto;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.1em;
  line-height: 1.3;
  cursor: pointer;
  transition:
    color 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease;
}

.copy-btn:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--bg);
}

.copy-btn.is-copied {
  border-color: var(--coffee);
  background: var(--coffee);
  color: #fffdf8;
}

.qr-wrap {
  display: flex;
  align-self: center;
  flex-direction: column;
  align-items: center;
  gap: 9px;
}

.qr-frame {
  position: relative;
  width: 170px;
  max-width: 100%;
  aspect-ratio: 1;
  padding: 10px;
  border: 1px solid var(--line-strong);
  background: #fff;
}

.qr-frame::before,
.qr-frame::after {
  content: "";
  position: absolute;
  width: 15px;
  height: 15px;
  pointer-events: none;
}

.qr-frame::before {
  top: -5px;
  left: -5px;
  border-top: 1px solid var(--gold);
  border-left: 1px solid var(--gold);
}

.qr-frame::after {
  right: -5px;
  bottom: -5px;
  border-right: 1px solid var(--coffee);
  border-bottom: 1px solid var(--coffee);
}

.qr-fallback {
  position: absolute;
  inset: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  overflow: hidden;
  background-color: #fbfaf7;
  background-image: radial-gradient(circle, #d8d2c8 0.7px, transparent 0.8px);
  background-size: 6px 6px;
  color: #161512;
  transition: opacity 0.3s ease;
}

.qr-fallback::before {
  content: "";
  position: absolute;
  width: 94px;
  height: 76px;
  border: 1px solid #ded8ce;
  background: #fbfaf7;
}

.qr-mono,
.qr-tag {
  position: relative;
  z-index: 1;
}

.qr-mono {
  font-family: var(--font-display);
  font-size: 35px;
  font-weight: 900;
  letter-spacing: -0.08em;
  line-height: 1;
}

.qr-tag {
  color: #73513d;
  font-family: var(--font-mono);
  font-size: 6px;
  letter-spacing: 0.16em;
  line-height: 1.2;
}

.qr-image {
  position: absolute;
  inset: 10px;
  z-index: 2;
  width: calc(100% - 20px);
  height: calc(100% - 20px);
  background: #fff;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.qr-frame.has-qr .qr-image {
  opacity: 1;
}

.qr-frame.has-qr .qr-fallback {
  opacity: 0;
}

.qr-note {
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 0.06em;
  line-height: 1.4;
}

.channels-footnote {
  display: flex;
  align-items: baseline;
  gap: 9px;
  margin-top: 28px;
  color: var(--muted);
  font-size: 10.5px;
  letter-spacing: 0.035em;
}

.footnote-mark {
  color: var(--gold-ink);
  font-family: var(--font-mono);
  font-size: 9px;
}

/* ---------- Outro ---------- */

.outro {
  position: relative;
  overflow: hidden;
  padding: clamp(86px, 10vw, 132px) 0 0;
  background: var(--dark);
  color: var(--on-dark);
}

.outro::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 34%;
  height: 100%;
  pointer-events: none;
  background-image: radial-gradient(
    circle,
    rgba(209, 174, 107, 0.2) 0.7px,
    transparent 0.9px
  );
  background-size: 17px 17px;
  -webkit-mask-image: linear-gradient(
    to left,
    rgba(0, 0, 0, 0.85),
    transparent
  );
  mask-image: linear-gradient(to left, rgba(0, 0, 0, 0.85), transparent);
  opacity: 0.55;
}

.outro .wrap {
  position: relative;
  z-index: 1;
}

.outro-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--on-dark-line);
  color: var(--on-dark-muted);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.16em;
}

.outro-dots {
  color: var(--gold);
  font-size: 9px;
  letter-spacing: 0.2em;
}

.outro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(260px, 0.55fr);
  gap: clamp(38px, 6vw, 90px);
  align-items: end;
  margin-top: clamp(52px, 6.5vw, 82px);
}

.outro h2 {
  font-size: clamp(3.2rem, 7.8vw, 7.6rem);
  font-weight: 700;
  letter-spacing: -0.065em;
  line-height: 0.98;
  text-wrap: balance;
}

.outro h2 span {
  color: var(--gold);
}

.outro-copy {
  padding-bottom: 6px;
}

.outro-copy p {
  color: var(--on-dark-muted);
  font-size: 12px;
  letter-spacing: 0.035em;
  line-height: 2;
  text-wrap: pretty;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--gold);
  color: var(--on-dark);
  font-size: 11px;
  letter-spacing: 0.07em;
  transition:
    color 0.2s ease,
    gap 0.3s var(--ease);
}

.text-link span {
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 11px;
}

.text-link:hover {
  gap: 20px;
  color: var(--gold);
}

.outro-sign {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: clamp(58px, 7vw, 90px);
  padding: 17px 0;
  border-top: 1px solid var(--on-dark-line);
  color: var(--on-dark-muted);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.16em;
}

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

.site-footer {
  background: var(--dark);
  color: var(--on-dark);
}

.footer-inner {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--on-dark-line);
  color: var(--on-dark-muted);
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.07em;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--on-dark);
  font-size: 8px;
  letter-spacing: 0.12em;
}

.footer-mark {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.footer-build {
  text-align: right;
}

/* ---------- Motion ---------- */

.js .hero-line > span {
  transform: translateY(112%);
  animation: line-rise 1.05s var(--ease) 0.08s forwards;
}

.js .hero-line--year > span {
  animation-delay: 0.18s;
}

.js .eyebrow,
.js .hero-sub {
  opacity: 0;
  animation: fade-up 0.9s var(--ease) 0.42s forwards;
}

.js .hero-sub {
  animation-delay: 0.54s;
}

.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.8s var(--ease) var(--delay, 0ms),
    transform 0.8s var(--ease) var(--delay, 0ms);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes line-rise {
  to {
    transform: translateY(0);
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@media (max-width: 1120px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.5fr) minmax(310px, 0.7fr);
    gap: 42px;
  }

  .hero-title {
    font-size: clamp(5rem, 13.7vw, 9.8rem);
  }

  .section-head {
    grid-template-columns: 54px minmax(0, 1fr) minmax(225px, 310px);
  }

  .channel {
    grid-template-columns: minmax(0, 1fr) 148px;
  }

  .qr-frame {
    width: 148px;
  }
}

@media (max-width: 940px) {
  .hero .wrap {
    min-height: 0;
    padding-top: 48px;
    padding-bottom: 22px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 46px;
    align-items: start;
  }

  .hero-main {
    padding-top: 0;
  }

  .hero-title {
    font-size: clamp(5.2rem, 18vw, 10rem);
  }

  .about-card {
    width: min(100%, 560px);
    margin-bottom: 0;
    justify-self: end;
  }

  .about-title {
    margin-top: 32px;
  }

  .hero-bottom {
    margin-top: 50px;
  }

  .section-head {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .section-note {
    grid-column: 2;
    justify-self: start;
    max-width: 420px;
    padding-top: 6px;
  }

  .channel-grid {
    grid-template-columns: 1fr;
  }

  .channel {
    min-height: 280px;
    grid-template-columns: minmax(0, 1fr) 170px;
  }

  .qr-frame {
    width: 170px;
  }

  .outro-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
  }

  .outro-copy {
    max-width: 380px;
  }
}

@media (max-width: 760px) {
  :root {
    --gutter: 20px;
  }

  html {
    scroll-padding-top: 82px;
  }

  .header-inner {
    min-height: 68px;
    gap: 16px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
    font-size: 12px;
  }

  .site-nav {
    display: none;
  }

  .theme-toggle {
    margin-left: auto;
  }

  .hero .wrap {
    padding-top: 38px;
  }

  .eyebrow {
    max-width: 290px;
    font-size: 7.5px;
    letter-spacing: 0.11em;
    line-height: 1.8;
  }

  .hero-title {
    margin-top: 30px;
    font-size: clamp(4.4rem, 21vw, 7.4rem);
    line-height: 0.8;
  }

  .hero-line--year {
    margin-left: clamp(24px, 10vw, 64px);
  }

  .hero-sub {
    gap: 14px;
    margin-top: 30px;
  }

  .hero-rule {
    width: 34px;
    margin-top: 9px;
  }

  .hero-sub p {
    font-size: 12px;
    line-height: 1.9;
  }

  .about-card {
    width: 100%;
    padding: 24px;
  }

  .about-copy {
    font-size: 12.5px;
  }

  .hero-bottom {
    margin-top: 40px;
    padding-bottom: 22px;
  }

  .hero-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, auto));
    gap: 18px 28px;
  }

  .hero-meta div:last-child {
    grid-column: 1 / -1;
  }

  .scroll-cue {
    display: none;
  }

  .channels {
    padding: 68px 0 72px;
  }

  .section-head {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 16px;
    padding-bottom: 24px;
  }

  .section-heading h2 {
    font-size: clamp(2.4rem, 11vw, 3.4rem);
  }

  .section-note {
    grid-column: 2;
    font-size: 11px;
    line-height: 1.9;
  }

  .channel-grid {
    margin-top: 30px;
    gap: 16px;
  }

  .channel {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr) 136px;
    gap: 16px;
    padding: 22px;
  }

  .channel h3 {
    margin-top: 24px;
  }

  .channel-name {
    font-size: clamp(1.8rem, 8vw, 2.4rem);
  }

  .qr-frame {
    width: 136px;
  }

  .channel-id {
    padding-top: 15px;
  }

  .channel-id code {
    font-size: 9px;
  }

  .copy-btn {
    margin-left: 0;
  }

  .qr-note {
    font-size: 7.5px;
    letter-spacing: 0.04em;
  }

  .channels-footnote {
    margin-top: 24px;
    font-size: 9.5px;
  }

  .outro {
    padding-top: 70px;
  }

  .outro h2 {
    font-size: clamp(3rem, 14.5vw, 5rem);
  }

  .outro-sign {
    flex-wrap: wrap;
    gap: 12px 22px;
    margin-top: 50px;
    line-height: 1.8;
  }

  .footer-inner {
    flex-wrap: wrap;
    gap: 10px 22px;
    padding-top: 18px;
    padding-bottom: 18px;
    line-height: 1.8;
  }

  .footer-inner > p:nth-child(2) {
    order: 3;
    width: 100%;
  }

  .footer-build {
    margin-left: auto;
    text-align: right;
  }
}

@media (max-width: 560px) {
  .channel {
    grid-template-columns: minmax(0, 1fr);
  }

  .channel-body {
    min-height: 172px;
  }

  .qr-wrap {
    align-self: stretch;
    align-items: center;
    margin-top: 2px;
  }

  .qr-frame {
    width: 148px;
  }

  .qr-note {
    align-self: center;
  }

  .channel-id {
    margin-top: 24px;
  }

  .copy-btn {
    margin-left: auto;
  }
}

@media (max-width: 380px) {
  .brand-word {
    display: none;
  }

  .hero-title {
    font-size: 4.2rem;
  }

  .about-card {
    padding: 20px;
  }

  .outro-meta {
    font-size: 7px;
    letter-spacing: 0.11em;
  }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .js .hero-line > span,
  .js .eyebrow,
  .js .hero-sub,
  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Print ---------- */

@media print {
  .site-header,
  .theme-toggle,
  .scroll-cue,
  .qr-fallback,
  .site-footer {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .hero .wrap {
    min-height: 0;
  }

  .channels,
  .outro {
    background: #fff;
    color: #000;
  }

  .outro h2 span,
  .outro-meta,
  .outro-copy p,
  .outro-sign {
    color: #000;
  }
}
