/* ============================================================
   iPhone4.TW 20週年 — Landing Redesign
   Apple Red × 奶油暖紙 × 編輯式排版
   ============================================================ */

:root {
  color-scheme: light;

  /* Brand */
  --red:        #E5262A;
  --red-dark:   #9E1915;
  --red-deep:   #7a1410;
  --red-soft:   rgba(229, 38, 42, 0.08);
  --red-line:   rgba(229, 38, 42, 0.18);
  --gradient-red: linear-gradient(135deg, #E5262A 0%, #9E1915 100%);

  /* Paper / surfaces */
  --ink:        #181513;
  --ink-soft:   #3a322b;
  --ink-mute:   #6f655c;
  --ink-faint:  #9a8e83;
  --paper:      #fbf7f1;     /* warm cream — base */
  --paper-2:    #f5efe6;     /* deeper cream */
  --paper-card: #ffffff;
  --paper-warm: #fff8ed;
  --line:       rgba(24, 21, 19, 0.10);
  --line-soft:  rgba(24, 21, 19, 0.06);

  /* Heritage warm (memorial) */
  --warm-1:     #fcecdb;
  --warm-2:     #fdd9b3;
  --warm-edge:  #f0a040;
  --warm-ink:   #5a3d20;

  /* Tier (badges only) */
  --gold:       #f5c451;
  --gold-dark:  #c98f2c;

  /* Shadow */
  --shadow-1: 0 1px 2px rgba(24, 21, 19, 0.04), 0 2px 6px rgba(24, 21, 19, 0.05);
  --shadow-2: 0 8px 22px rgba(24, 21, 19, 0.08);
  --shadow-3: 0 18px 50px rgba(24, 21, 19, 0.12);
  --shadow-glow: 0 0 0 1px rgba(229, 38, 42, 0.10), 0 18px 40px rgba(229, 38, 42, 0.18);

  /* Type */
  --serif-display: "Myriad Pro", -apple-system, "TaipeiSansTCBeta", "PingFang TC", "Noto Sans TC", sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  font-family: var(--font-primary, -apple-system, BlinkMacSystemFont, "PingFang TC", "Microsoft JhengHei", Arial, sans-serif);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Subtle paper texture: faint grid that fades after the hero */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(900px 480px at 12% -10%, rgba(229, 38, 42, 0.10), transparent 65%),
    radial-gradient(1100px 600px at 95% 8%, rgba(245, 196, 81, 0.10), transparent 65%);
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

h1, h2, h3, h4, p { margin: 0; letter-spacing: 0; }

/* ============================================================
   Layout primitives
   ============================================================ */
.page-shell {
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.section {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
  padding: 96px 0 32px;
}

.section + .section {
  padding-top: 64px;
}

.section-head {
  display: grid;
  gap: 14px;
  margin-bottom: 36px;
  max-width: 820px;
}

.section-head h2 {
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.05;
  font-weight: 900;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.section-head .lead {
  color: var(--ink-soft);
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.7;
  #max-width: 640px;
}

/* Eyebrow — small caps, red, with tick line */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  color: var(--red-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: transparent;
  border: 0;
  padding: 0;
  border-radius: 0;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--red);
}

/* ============================================================
   HERO
   ============================================================ */
.landing-hero {
  padding-top: 56px;
  padding-bottom: 32px;
  display: grid;
  gap: 36px;
}

.hero-topline {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.hero-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 999px;
  padding: 8px 16px;
  color: #fff;
  background: var(--gradient-red);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  box-shadow: 0 8px 22px rgba(229, 38, 42, 0.30);
}

.hero-mark::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255,255,255,0.18);
}

.hero-date {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 8px 16px;
  background: var(--paper-card);
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 700;
  border: 1px solid var(--line);
}

h1 {
  max-width: 1080px;
  font-size: clamp(48px, 8.6vw, 124px);
  line-height: 0.92;
  font-weight: 900;
  letter-spacing: -0.025em;
  color: var(--ink);
}

h1 .anniv {
  background: var(--gradient-red);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h1 small {
  display: block;
  margin-top: 16px;
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 600;
  color: var(--ink-mute);
  letter-spacing: 0;
}

.lead {
  max-width: 740px;
  color: var(--ink-soft);
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.65;
}

.landing-hero center {
  text-align: left;
}

.landing-hero center img {
  max-width: 100%;
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-2);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  gap: 40px;
  align-items: stretch;
}

.hero-copy {
  display: grid;
  gap: 28px;
  align-content: start;
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 4px 0;
}

.hero-fact {
  padding: 16px 18px;
  border-left: 1px solid var(--line-soft);
  background: transparent;
  color: var(--ink-mute);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.02em;
}

.hero-fact:first-child {
  border-left: 0;
  padding-left: 0;
}

.hero-fact strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

/* Search panel — the warmth driver */
.search-panel {
  position: relative;
  border-radius: 20px;
  padding: 28px 28px 24px;
  background:
    linear-gradient(180deg, #fff 0%, var(--paper-warm) 100%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-3);
  overflow: visible;
}

.search-panel::before {
  content: "回娘家";
  position: absolute;
  top: -12px;
  left: 24px;
  padding: 4px 12px;
  background: var(--gradient-red);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(229, 38, 42, 0.28);
}

.search-label {
  display: block;
  margin-bottom: 12px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.search-row {
  position: relative;
}

.search-row input {
  width: 100%;
  height: 52px;
  padding: 0 18px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
  outline: none;
}

.search-row input::placeholder {
  color: var(--ink-faint);
  font-weight: 500;
}

.search-row input:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(229, 38, 42, 0.12);
}

.search-results {
  position: absolute;
  z-index: 20;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-3);
  max-height: 360px;
  overflow: auto;
}

.search-results:empty { display: none; }

.search-results li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background .12s;
}

.search-results li.highlighted,
.search-results li:hover {
  background: var(--red-soft);
}

.search-results img,
.member-avatar {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid var(--line);
  background: var(--paper-2);
}

.result-name {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: baseline;
  color: var(--ink);
  font-weight: 700;
}

.result-title {
  color: var(--ink-mute);
  font-size: 12px;
  font-weight: 600;
}

.result-meta {
  margin-top: 2px;
  color: var(--ink-mute);
  font-size: 12px;
}

.search-hint {
  margin: 12px 2px 0;
  color: var(--ink-mute);
  font-size: 12px;
  line-height: 1.5;
}

/* ============================================================
   Stats dashboard — clean editorial row
   ============================================================ */
.stats-dashboard {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-2);
  overflow: hidden;
}

.stat-tile {
  position: relative;
  padding: 28px 22px;
  display: grid;
  gap: 8px;
  align-content: center;
  border-left: 1px solid var(--line-soft);
  background: #fff;
  text-align: left;
  min-height: auto;
}

.stat-tile:first-child { border-left: 0; }

.stat-tile::after {
  content: "";
  position: absolute;
  left: 22px;
  top: 0;
  width: 28px;
  height: 3px;
  background: var(--red);
  opacity: 0;
  transition: opacity .2s;
}
.stat-tile:hover::after { opacity: 1; }

.stat-num {
  display: block;
  color: var(--ink);
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  display: block;
  color: var(--ink-mute);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: none;
}

/* ============================================================
   Community events / 活動回顧精選
   ============================================================ */
.event-highlights {
  padding-top: 72px;
}

.event-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.event-card {
  position: relative;
  min-height: 360px;
  padding: 24px;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.96), rgba(255,248,237,0.96));
  border: 1px solid var(--line);
  box-shadow: var(--shadow-1);
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: hidden;
}

.event-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--gradient-red);
}

.event-card h3 {
  color: var(--ink);
  font-size: 24px;
  line-height: 1.18;
  font-weight: 900;
}

.event-card p {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.7;
}

.event-meta,
.event-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.event-meta span,
.event-stats span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.event-meta span {
  background: var(--red-soft);
  color: var(--red-dark);
}

.event-stats span {
  background: #fff;
  color: var(--ink-mute);
  border: 1px solid var(--line-soft);
}

.event-links {
  display: grid;
  gap: 8px;
  margin-top: auto;
}

.event-link {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line-soft);
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.event-link:hover {
  border-color: var(--red-line);
  box-shadow: var(--shadow-1);
  transform: translateY(-1px);
}

.event-link span {
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
}

.event-link small {
  color: var(--ink-mute);
  font-size: 11px;
  font-weight: 700;
}

/* ============================================================
   TOP 20 Hall of Fame
   ============================================================ */
.top20-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.hall-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 220px;
  padding: 20px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-1);
  color: var(--ink);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  overflow: hidden;
}

.hall-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient-red);
  opacity: 0;
  transition: opacity .2s;
}

.hall-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
  border-color: var(--red-line);
}
.hall-card:hover::before { opacity: 1; }

.hall-card.founder {
  grid-column: 1 / -1;
  min-height: auto;
  display: grid;
  grid-template-columns: minmax(280px, 1.1fr) minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  padding: 28px 32px;
  background: linear-gradient(135deg, #fff 0%, var(--paper-warm) 100%);
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-2);
}

.hall-card.founder::before { opacity: 1; height: 3px; }

.contributor-short-caption {
  margin: 12px 0 0 0;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-soft, #5a4a3a);
  letter-spacing: 0.01em;
}

.hall-card.founder .contributor-short-caption {
  font-size: 15px;
  border-top-color: var(--red-dark);
}

.hall-card.founder .hall-top {
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  justify-content: center;
}

.hall-card.founder > div:nth-child(2) {
  display: grid;
  gap: 12px;
  align-content: center;
}

.hall-card.founder .member-name {
  color: var(--ink);
  font-size: 44px;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1;
}
.hall-card.founder .member-title {
  color: var(--red-dark);
  font-size: 16px;
  font-weight: 700;
  margin-top: 8px;
}
.hall-card.founder .member-avatar {
  border: 3px solid rgba(229, 38, 42, 0.28);
  width: 124px;
  height: 124px;
  box-shadow: 0 14px 30px rgba(229, 38, 42, 0.18);
}
.hall-card.founder .badge-pill {
  font-size: 12px;
  padding: 6px 14px;
}
.hall-card.founder .member-metrics {
  margin-top: 0;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.hall-card.founder .metric {
  background: #fff;
  border: 1px solid var(--line);
  padding: 14px 16px;
}
.hall-card.founder .metric strong { color: var(--ink); font-size: 26px; }
.hall-card.founder .metric span { color: var(--ink-mute); font-size: 12px; }

.hall-card.founder::after {
  content: "勸敗大魔王・iPhone4.TW 站長\A 從2007年的147個種子用戶 \A 一路陪你19年的老朋友";
  white-space: pre;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.7;
  color: var(--ink-soft);
  padding-left: 24px;
  border-left: 2px solid var(--red);
  align-self: center;
}

.hall-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.hall-card .member-avatar {
  width: 56px;
  height: 56px;
}

.badge-pill {
  width: fit-content;
  flex-shrink: 0;
  white-space: nowrap;
  border: 1px solid rgba(245, 196, 81, 0.55);
  background: rgba(245, 196, 81, 0.14);
  color: var(--gold-dark);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.member-name {
  min-width: 0;
  font-size: 20px;
  font-weight: 900;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.member-title {
  margin-top: 4px;
  color: var(--ink-mute);
  font-size: 13px;
  font-weight: 600;
}

.member-metrics {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.metric {
  border-radius: 10px;
  padding: 10px 12px;
  background: var(--paper);
  border: 1px solid var(--line-soft);
}

.metric strong {
  display: block;
  font-size: 18px;
  font-weight: 900;
  color: var(--ink);
  line-height: 1;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}

.metric span {
  display: block;
  margin-top: 4px;
  color: var(--ink-mute);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* ============================================================
   Team
   ============================================================ */
.team-layout {
  display: grid;
  gap: 32px;
}

.team-founder {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.team-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 220px;
  padding: 20px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-1);
  color: var(--ink);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  overflow: hidden;
}

.team-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient-red);
  opacity: 0;
  transition: opacity .2s;
}

.team-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
  border-color: var(--red-line);
}

.team-card:hover::before { opacity: 1; }

.team-card .hall-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.team-card .member-avatar { width: 64px; height: 64px; }

.team-card.founder {
  grid-column: 1 / -1;
  min-height: auto;
  display: grid;
  grid-template-columns: minmax(280px, 1.1fr) minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  padding: 28px 32px;
  background: linear-gradient(135deg, #fff 0%, var(--paper-warm) 100%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-2);
}

.team-card.founder::before { opacity: 1; height: 3px; }

.team-card.founder .hall-top {
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  justify-content: center;
}

.team-card.founder > div:nth-child(2) {
  display: grid;
  gap: 12px;
  align-content: center;
}

.team-card.founder .member-avatar {
  width: 120px;
  height: 120px;
}

.team-card.founder .member-name {
  font-size: 36px;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.team-role {
  color: var(--red-dark);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.team-card .member-name {
  font-size: 16px;
}

.achievement {
  margin-top: 8px;
  color: var(--ink-mute);
  font-size: 12px;
  line-height: 1.5;
}

.editor-note {
  margin-top: 12px;
  border-left: 3px solid var(--red);
  padding: 10px 12px;
  border-radius: 0 10px 10px 0;
  background: var(--red-soft);
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.65;
}

.editor-note p {
  margin: 0;
}

.editor-note span {
  display: block;
  margin-top: 6px;
  color: var(--red-dark);
  font-size: 12px;
  font-weight: 800;
}

.team-subhead {
  margin-top: 24px;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.005em;
}
.team-subhead small {
  display: inline-block;
  margin-left: 10px;
  color: var(--ink-mute);
  font-size: 13px;
  font-weight: 600;
}

/* ============================================================
   Lifetime quotes / 神回殿堂
   ============================================================ */
.quote-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.quote-card {
  position: relative;
  display: grid;
  gap: 18px;
  min-height: 200px;
  padding: 24px 24px 20px;
  border-radius: 14px;
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--red);
  box-shadow: var(--shadow-1);
  color: var(--ink);
  transition: transform .15s ease, box-shadow .15s ease;
}

.quote-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
}

.quote-card::before {
  content: "“";
  position: absolute;
  top: 4px;
  right: 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 80px;
  line-height: 1;
  color: var(--red-soft);
  pointer-events: none;
}

.quote-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  align-items: baseline;
}

.quote-person {
  color: var(--ink);
  font-size: 17px;
  font-weight: 900;
  letter-spacing: -0.005em;
}

.quote-stat {
  color: var(--red-dark);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.quote-text {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
  text-wrap: pretty;
}

.quote-source {
  display: grid;
  gap: 4px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  color: var(--ink-mute);
  font-size: 12px;
}

.quote-source strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

/* ============================================================
   Timeline
   ============================================================ */
.timeline-list {
  display: grid;
  gap: 0;
  position: relative;
  padding-left: 8px;
  border-left: 2px solid var(--line);
}

.timeline-item {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 32px;
  padding: 28px 0 28px 32px;
  position: relative;
  border-bottom: 1px solid var(--line-soft);
}

.timeline-item:last-child { border-bottom: 0; }

.timeline-item::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 36px;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #fff;
  border: 3px solid var(--red);
  box-shadow: 0 0 0 4px var(--paper);
}

.timeline-year {
  color: var(--red);
  font-size: 38px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.timeline-title {
  font-size: 22px;
  font-weight: 900;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.timeline-summary {
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.7;
  text-wrap: pretty;
  max-width: 720px;
}

.apple-release {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.release-pill {
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink-soft);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
}

.timeline-events {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
  color: var(--ink-soft);
  font-size: 14px;
}

.timeline-events li {
  position: relative;
  padding-left: 18px;
  line-height: 1.6;
}

.timeline-events li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--red);
  opacity: 0.6;
}

/* ============================================================
   Avatar Wall (Top500)
   ============================================================ */
.avatar-wall {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 10px;
}

.avatar-card {
  display: grid;
  gap: 8px;
  justify-items: center;
  text-align: center;
  padding: 14px 10px 12px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line-soft);
  color: var(--ink);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  min-height: auto;
}

.avatar-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
  border-color: var(--red-line);
}

.avatar-card .member-avatar {
  width: 56px;
  height: 56px;
}

.avatar-name {
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  width: 100%;
  word-break: break-all;
}

.avatar-meta {
  color: var(--ink-mute);
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* ============================================================
   Easter eggs
   ============================================================ */
.egg-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.egg-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, #fff 0%, var(--paper-warm) 100%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-1);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.egg-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
  border-color: var(--red-line);
}

.egg-badge {
  width: 72px;
  height: 72px;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(229, 38, 42, 0.18));
}

.egg-count {
  color: var(--red);
  font-size: 26px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.egg-name {
  margin-top: 6px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.005em;
}

.egg-samples {
  margin-top: 6px;
  color: var(--ink-mute);
  font-size: 11px;
  line-height: 1.5;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* ============================================================
   CTA
   ============================================================ */
.cta {
  width: min(1080px, calc(100% - 40px));
  margin: 60px auto 0;
  padding: 72px 56px;
  text-align: center;
  border-radius: 28px;
  color: #fff;
  background:
    radial-gradient(700px 320px at 80% 20%, rgba(245, 196, 81, 0.20), transparent 60%),
    radial-gradient(900px 400px at 10% 90%, rgba(255, 110, 90, 0.22), transparent 60%),
    var(--gradient-red);
  box-shadow: 0 30px 80px rgba(229, 38, 42, 0.30);
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: "20週年";
  position: absolute;
  bottom: -36px;
  right: -16px;
  font-size: clamp(140px, 20vw, 280px);
  font-weight: 900;
  letter-spacing: -0.05em;
  color: rgba(255, 255, 255, 0.06);
  pointer-events: none;
  line-height: 1;
}

.cta h2 {
  font-size: clamp(32px, 4.4vw, 56px);
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #fff;
  position: relative;
}

.cta p {
  max-width: 640px;
  margin: 18px auto 0;
  color: rgba(255, 248, 240, 0.92);
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.7;
  position: relative;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 32px;
  position: relative;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .15s ease, background .15s ease;
}

.btn-primary {
  color: var(--red-dark);
  background: #fff;
  box-shadow: 0 10px 24px rgba(0,0,0,0.18);
}

.btn-primary:hover {
  transform: translateY(-1px);
  background: var(--paper-warm);
  box-shadow: 0 14px 30px rgba(0,0,0,0.22);
}

.btn-secondary {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.36);
  backdrop-filter: blur(6px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.6);
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  width: min(1200px, calc(100% - 40px));
  margin: 80px auto 60px;
  padding: 32px 0 0;
  border-top: 1px solid var(--line);
  color: var(--ink-mute);
  font-size: 13px;
  line-height: 1.8;
  display: grid;
  gap: 4px;
}

.site-footer p { color: inherit; }

.site-footer a {
  color: var(--red-dark);
  font-weight: 700;
}

.site-footer a:hover { color: var(--red); }

/* ============================================================
   Misc
   ============================================================ */
.loading,
.empty-message {
  color: var(--ink-mute);
  font-weight: 700;
  font-size: 14px;
  padding: 24px;
  text-align: center;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1080px) {
  .event-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .top20-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hall-card.founder { grid-column: 1 / -1; grid-template-columns: minmax(220px, 1fr) minmax(0, 1.4fr); padding: 24px; }
  .hall-card.founder::after { display: none; }
  .team-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .quote-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-dashboard { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stat-tile:nth-child(4) { border-left: 0; border-top: 1px solid var(--line-soft); }
  .stat-tile:nth-child(n+4) { border-top: 1px solid var(--line-soft); }
  .avatar-wall { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .egg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .section { padding: 64px 0 16px; width: calc(100% - 32px); }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .hero-facts { grid-template-columns: minmax(0, 1fr); }
  .hero-fact { border-left: 0; border-top: 1px solid var(--line-soft); padding: 14px 0; }
  .hero-fact:first-child { border-top: 0; }
  .event-grid { grid-template-columns: minmax(0, 1fr); }
  .event-card { min-height: auto; }
  .top20-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hall-card.founder { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .hall-card.founder .member-name { font-size: 32px; }
  .hall-card.founder .member-avatar { width: 88px; height: 88px; }
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quote-grid { grid-template-columns: minmax(0, 1fr); }
  .stats-dashboard { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-tile { padding: 20px 16px; }
  .timeline-item { grid-template-columns: minmax(0, 1fr); gap: 8px; padding-left: 24px; }
  .timeline-item::before { top: 8px; }
  .avatar-wall { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cta { padding: 48px 28px; border-radius: 20px; }
}

@media (max-width: 520px) {
  h1 { font-size: 44px; }
  .top20-grid { grid-template-columns: minmax(0, 1fr); }
  .hall-card.founder { grid-column: span 1; }
  .egg-grid { grid-template-columns: minmax(0, 1fr); }
  .avatar-wall { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
