:root {
  --bg: #eff2f8;
  --bg-secondary: #f7f8fc;
  --panel: rgba(255, 255, 255, 0.74);
  --panel-strong: rgba(255, 255, 255, 0.92);
  --ink: #111827;
  --muted: #586174;
  --line: rgba(17, 24, 39, 0.1);
  --accent: #c43c35;
  --accent-deep: #8f2025;
  --accent-soft: rgba(196, 60, 53, 0.12);
  --secondary-accent: #3d6cff;
  --secondary-soft: rgba(61, 108, 255, 0.12);
  --tertiary-accent: #0fa58a;
  --shadow: 0 28px 80px rgba(15, 23, 42, 0.1);
  --radius-lg: 30px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --max-width: 1180px;
  --page-wash-a: rgba(196, 60, 53, 0.14);
  --page-wash-b: rgba(61, 108, 255, 0.12);
  --page-wash-c: rgba(15, 165, 138, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 0% 0%, var(--page-wash-a), transparent 28%),
    radial-gradient(circle at 100% 18%, var(--page-wash-b), transparent 24%),
    radial-gradient(circle at 18% 100%, var(--page-wash-c), transparent 24%),
    linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg) 100%);
  overflow-x: hidden;
}

body::before,
body::after {
  content: '';
  position: fixed;
  inset: auto;
  width: 34vw;
  height: 34vw;
  max-width: 460px;
  max-height: 460px;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.38;
  pointer-events: none;
  z-index: -1;
}

body::before {
  top: -8vw;
  left: -6vw;
  background: linear-gradient(135deg, var(--page-wash-a), transparent 70%);
}

body::after {
  right: -10vw;
  bottom: 4vh;
  background: linear-gradient(135deg, var(--page-wash-b), transparent 70%);
}

body[data-page='home'] {
  --page-wash-a: rgba(196, 60, 53, 0.16);
  --page-wash-b: rgba(72, 104, 255, 0.14);
  --page-wash-c: rgba(11, 180, 144, 0.08);
}

body[data-page='about'] {
  --accent: #4657f6;
  --accent-deep: #2d358c;
  --accent-soft: rgba(70, 87, 246, 0.12);
  --page-wash-a: rgba(70, 87, 246, 0.14);
  --page-wash-b: rgba(117, 86, 255, 0.12);
  --page-wash-c: rgba(0, 195, 177, 0.08);
}

body[data-page='philosophy'] {
  --accent: #11967d;
  --accent-deep: #0a6354;
  --accent-soft: rgba(17, 150, 125, 0.12);
  --page-wash-a: rgba(17, 150, 125, 0.16);
  --page-wash-b: rgba(36, 192, 152, 0.12);
  --page-wash-c: rgba(255, 203, 107, 0.08);
}

body[data-page='members'] {
  --accent: #8a56ff;
  --accent-deep: #5c30ba;
  --accent-soft: rgba(138, 86, 255, 0.12);
  --page-wash-a: rgba(138, 86, 255, 0.15);
  --page-wash-b: rgba(255, 93, 177, 0.12);
  --page-wash-c: rgba(97, 218, 251, 0.08);
}

body[data-page='announcements'] {
  --accent: #f06d24;
  --accent-deep: #9f3b10;
  --accent-soft: rgba(240, 109, 36, 0.12);
  --page-wash-a: rgba(240, 109, 36, 0.16);
  --page-wash-b: rgba(255, 173, 72, 0.12);
  --page-wash-c: rgba(255, 72, 124, 0.08);
}

body[data-page='checkin'] {
  --accent: #1174c8;
  --accent-deep: #0d4370;
  --accent-soft: rgba(17, 116, 200, 0.12);
  --page-wash-a: rgba(17, 116, 200, 0.14);
  --page-wash-b: rgba(36, 165, 255, 0.12);
  --page-wash-c: rgba(107, 210, 255, 0.08);
}

body[data-page='contact'] {
  --accent: #d44787;
  --accent-deep: #8b2453;
  --accent-soft: rgba(212, 71, 135, 0.12);
  --page-wash-a: rgba(212, 71, 135, 0.15);
  --page-wash-b: rgba(124, 96, 255, 0.12);
  --page-wash-c: rgba(77, 197, 255, 0.08);
}

body.is-entering main,
body.is-entering .site-header,
body.is-entering .site-footer {
  opacity: 0;
  transform: translateY(18px) scale(0.99);
}

body.is-ready main,
body.is-ready .site-header,
body.is-ready .site-footer {
  transition: opacity 0.55s ease, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

body.is-ready main,
body.is-ready .site-header,
body.is-ready .site-footer {
  opacity: 1;
  transform: none;
}

body.is-transitioning main,
body.is-transitioning .site-header,
body.is-transitioning .site-footer {
  opacity: 0;
  transform: translateY(-10px) scale(0.99);
  transition: opacity 0.32s ease, transform 0.32s ease;
}

.page-transition-overlay {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 18% 22%, var(--accent-soft), transparent 20%),
    linear-gradient(135deg, rgba(17, 24, 39, 0.92), rgba(35, 43, 59, 0.86));
  transform: scaleY(0);
  transform-origin: bottom;
  opacity: 0;
  pointer-events: none;
  z-index: 100;
  transition: transform 0.36s cubic-bezier(0.77, 0, 0.175, 1), opacity 0.36s ease;
}

body.is-transitioning .page-transition-overlay {
  transform: scaleY(1);
  transform-origin: top;
  opacity: 1;
}

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

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

.container {
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(248, 249, 253, 0.72);
  border-bottom: 1px solid rgba(17, 24, 39, 0.06);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 78px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand img {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.58);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 12px 34px rgba(17, 24, 39, 0.12);
}

.brand-mark {
  font-size: 0.73rem;
  letter-spacing: 0.14em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.brand-name {
  font-size: 1.1rem;
  font-weight: 700;
}

.brand-meta {
  font-size: 0.92rem;
  color: var(--muted);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.nav-link {
  position: relative;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.94rem;
  transition: transform 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 6px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--ink);
  background: rgba(17, 24, 39, 0.045);
  transform: translateY(-1px);
}

.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

.nav-link.is-active {
  background: var(--accent-soft);
  color: var(--accent-deep);
}

main {
  padding: 34px 0 72px;
}

.hero {
  padding: 42px 0 26px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 22px;
}

.hero-panel,
.panel,
.card,
.empty-card,
.note-card {
  position: relative;
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
  border-radius: var(--radius-lg);
}

.hero-panel::before,
.page-banner::before,
.text-block::before,
.table-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.35), transparent 38%);
  pointer-events: none;
}

.hero-panel {
  overflow: hidden;
  padding: 34px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.05);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 8px var(--accent-soft);
}

.hero h1,
.page-title {
  margin: 18px 0 14px;
  font-size: clamp(2.3rem, 4.6vw, 4.3rem);
  line-height: 1.03;
  letter-spacing: -0.04em;
}

.hero p,
.page-intro,
.text-block p,
.card p,
.note-card p,
.footer-meta,
.contact-card p,
.step-card p,
.rule-card p,
.empty-card p {
  color: var(--muted);
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.button,
.button-secondary,
.contact-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.button {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
  color: #fff;
  box-shadow: 0 14px 28px color-mix(in srgb, var(--accent) 26%, transparent);
}

.button-secondary,
.contact-link {
  background: rgba(17, 24, 39, 0.05);
}

.button:hover,
.button-secondary:hover,
.contact-link:hover {
  transform: translateY(-2px);
}

.hero-side {
  padding: 28px;
  display: grid;
  gap: 18px;
}

.logo-frame {
  padding: 20px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 20%, var(--accent-soft), transparent 48%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.72));
  border: 1px solid color-mix(in srgb, var(--accent) 14%, white);
}

.logo-frame img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: #fff;
  border-radius: 24px;
}

.quote {
  padding: 18px 20px;
  border-left: 4px solid var(--accent);
  background: linear-gradient(135deg, var(--accent-soft), rgba(255, 255, 255, 0.55));
  border-radius: 18px;
  font-weight: 600;
  line-height: 1.7;
}

.stats-grid,
.card-grid,
.template-grid,
.contact-grid,
.steps-grid {
  display: grid;
  gap: 18px;
}

.stats-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 20px;
}

.stat-card,
.card,
.empty-card,
.note-card,
.contact-card,
.step-card,
.rule-card {
  position: relative;
  overflow: hidden;
  padding: 22px;
  border-radius: var(--radius-md);
  background: var(--panel-strong);
  border: 1px solid var(--line);
}

.stat-card::after,
.card::after,
.empty-card::after,
.note-card::after,
.contact-card::after,
.step-card::after,
.rule-card::after {
  content: '';
  position: absolute;
  inset: auto -10% -45% auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-soft), transparent 62%);
  pointer-events: none;
}

.stat-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.25rem;
}

.section {
  padding: 24px 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.section-title {
  margin: 0;
  font-size: clamp(1.5rem, 2.3vw, 2.2rem);
  letter-spacing: -0.03em;
}

.section-copy {
  max-width: 650px;
  color: var(--muted);
  line-height: 1.7;
}

.card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card h3,
.empty-card h3,
.contact-card h3,
.note-card h3,
.step-card h3,
.rule-card h3,
.text-block h3 {
  margin: 0 0 10px;
  font-size: 1.08rem;
}

.text-grid,
.two-column,
.page-hero-grid {
  display: grid;
  gap: 18px;
}

.text-grid,
.page-hero-grid,
.contact-grid,
.two-column {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.text-block,
.page-banner,
.table-wrap {
  position: relative;
  overflow: hidden;
  padding: 26px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.page-banner {
  margin-bottom: 24px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 10%, white), rgba(255, 255, 255, 0.86) 52%),
    rgba(255, 255, 255, 0.86);
}

.page-banner .eyebrow {
  margin-bottom: 8px;
}

.template-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.template-list,
.rule-list,
.simple-list,
.footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.template-list li,
.rule-list li,
.simple-list li,
.footer-links li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.template-list li:last-child,
.rule-list li:last-child,
.simple-list li:last-child,
.footer-links li:last-child {
  border-bottom: 0;
}

.muted-label {
  color: var(--muted);
  font-size: 0.92rem;
}

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

.step-card {
  min-height: 180px;
}

.step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-weight: 700;
  margin-bottom: 12px;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 820px;
}

thead th {
  text-align: left;
  padding: 14px 12px;
  font-size: 0.92rem;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(17, 24, 39, 0.03), rgba(255, 255, 255, 0.4));
}

tbody td {
  padding: 16px 12px;
  border-bottom: 1px solid var(--line);
}

tbody tr:hover td {
  background: color-mix(in srgb, var(--accent) 4%, white);
}

.empty-row td {
  color: var(--muted);
}

.note-card,
.page-note {
  background: linear-gradient(180deg, var(--accent-soft), rgba(255, 255, 255, 0.96));
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-value {
  font-size: 1.03rem;
  color: var(--ink);
  word-break: break-word;
}

.contact-link {
  width: fit-content;
}

.site-footer {
  padding: 30px 0 44px;
  border-top: 1px solid rgba(17, 24, 39, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: start;
}

.footer-title {
  margin: 0 0 8px;
  font-size: 1rem;
}

.footer-links a {
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--accent-deep);
}

.showcase-shell {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 24px;
  padding: 30px;
  margin-bottom: 8px;
  border-radius: calc(var(--radius-lg) + 6px);
  overflow: hidden;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 12%, white), rgba(255, 255, 255, 0.7) 45%, rgba(255, 255, 255, 0.95) 100%);
  border: 1px solid color-mix(in srgb, var(--accent) 12%, white);
  box-shadow: var(--shadow);
}

.showcase-shell::before,
.showcase-shell::after {
  content: '';
  position: absolute;
  pointer-events: none;
}

.showcase-shell::before {
  inset: auto -8% -20% auto;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-soft), transparent 62%);
}

.showcase-shell::after {
  inset: 22px 22px auto auto;
  width: 110px;
  height: 110px;
  border-radius: 24px;
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  opacity: 0.3;
  transform: rotate(18deg);
}

.showcase-copy,
.showcase-art {
  position: relative;
  z-index: 1;
}

.showcase-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

.showcase-copy p {
  margin: 0;
  max-width: 620px;
  color: var(--muted);
  line-height: 1.8;
}

.showcase-art {
  min-height: 320px;
}

.showcase-chips,
.word-ribbon,
.metric-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.showcase-chip,
.word-ribbon-item {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid color-mix(in srgb, var(--accent) 14%, white);
  font-size: 0.92rem;
  font-weight: 600;
}

.metric-stack {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.metric-card,
.metric-inline-card,
.poster-tile,
.lane-card {
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid color-mix(in srgb, var(--accent) 12%, white);
  backdrop-filter: blur(16px);
}

.metric-card strong,
.metric-inline-card strong {
  display: block;
  margin-bottom: 10px;
  font-size: clamp(1.3rem, 2vw, 1.8rem);
  letter-spacing: -0.04em;
}

.metric-card span,
.metric-inline-card span {
  color: var(--muted);
  line-height: 1.7;
}

.route-strip {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  padding: 20px 0 0;
}

.route-strip::before {
  content: '';
  position: absolute;
  left: 5%;
  right: 5%;
  top: 18px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 26%, white));
}

.route-stop {
  position: relative;
  padding-top: 16px;
  text-align: center;
  font-weight: 600;
}

.route-stop::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  width: 12px;
  height: 12px;
  margin-left: -6px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--accent);
  box-shadow: 0 0 0 8px var(--accent-soft);
}

.route-index {
  display: block;
  margin-bottom: 6px;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.poster-tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: end;
}

.poster-tile:nth-child(2) {
  transform: translateY(22px);
}

.poster-tile:nth-child(3) {
  transform: translateY(-8px);
}

.poster-tile h3,
.lane-card h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
}

.poster-tile p,
.lane-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

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

.lane-card {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lane-mark {
  width: 14px;
  height: 56px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: repeating-linear-gradient(
    180deg,
    var(--accent) 0 10px,
    rgba(255, 255, 255, 0.2) 10px 18px
  );
}

.word-poster,
.poster-board,
.join-poster {
  display: grid;
  align-content: center;
  gap: 14px;
  min-height: 100%;
}

.word-poster-item,
.poster-word,
.join-word {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 90px;
  padding: 16px 18px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.92), rgba(56, 66, 87, 0.88));
  color: #fff;
  font-size: clamp(1.8rem, 5vw, 3.3rem);
  font-weight: 800;
  letter-spacing: -0.05em;
}

.role-orbit {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-content: center;
}

.role-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 94px;
  padding: 16px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent) 16%, white);
  font-size: 1rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.82);
}

.role-pill-1 {
  background: linear-gradient(135deg, rgba(255,255,255,0.9), color-mix(in srgb, var(--accent) 10%, white));
}

.role-pill-2 {
  background: linear-gradient(135deg, rgba(17,24,39,0.88), rgba(55,63,88,0.84));
  color: #fff;
}

.role-pill-3 {
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 16%, white), rgba(255,255,255,0.94));
}

.metric-inline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.elevation-board {
  display: flex;
  align-items: end;
  gap: 10px;
  min-height: 320px;
  padding: 26px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.04)),
    linear-gradient(180deg, rgba(17, 24, 39, 0.92), rgba(28, 45, 70, 0.88));
}

.elevation-bar {
  flex: 1;
  min-height: 26%;
  border-radius: 18px 18px 0 0;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 30%, white), var(--accent));
  box-shadow: 0 10px 26px color-mix(in srgb, var(--accent) 24%, transparent);
}

.poster-board {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.poster-word:nth-child(2) {
  transform: translateY(26px);
}

.join-poster {
  grid-template-columns: 1fr;
}

.join-word {
  justify-content: flex-start;
  padding-left: 28px;
  position: relative;
}

.join-word::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 12px;
  background: linear-gradient(180deg, var(--accent), color-mix(in srgb, var(--accent) 30%, white));
}

.home-top-section {
  padding-top: 42px;
}

.home-masthead,
.home-pulse-shell,
.home-board-shell {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--radius-lg) + 8px);
  box-shadow: var(--shadow);
}

.home-masthead {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 22px;
  min-height: 620px;
  padding: 34px;
  background:
    radial-gradient(circle at 80% 16%, rgba(255,255,255,0.12), transparent 22%),
    linear-gradient(135deg, #11161f 0%, #1a2230 42%, #252f40 100%);
  color: #fff;
}

.home-masthead::before {
  content: 'GTYX';
  position: absolute;
  right: 24px;
  bottom: -6px;
  font-size: clamp(5rem, 12vw, 10rem);
  font-weight: 900;
  letter-spacing: -0.08em;
  color: rgba(255, 255, 255, 0.06);
  line-height: 0.9;
}

.home-masthead-main,
.home-masthead-side {
  position: relative;
  z-index: 1;
}

.home-masthead-main {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}

.home-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.home-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.home-tag {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.home-title {
  margin: 0;
  font-size: clamp(4.6rem, 11vw, 8rem);
  line-height: 0.9;
  letter-spacing: -0.08em;
}

.home-lead {
  margin: 0;
  max-width: 460px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 1.08rem;
  line-height: 1.8;
}

.home-masthead .eyebrow,
.home-masthead .button-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.88);
}

.home-masthead .eyebrow::before {
  box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.08);
}

.home-masthead-side {
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 18px;
}

.home-logo-panel,
.home-route-panel {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
}

.home-logo-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
}

.home-logo-panel img {
  width: min(100%, 320px);
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 26px;
  background: rgba(255,255,255,0.96);
  padding: 18px;
}

.home-route-panel {
  padding: 18px;
}

.home-route-svg {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 10px;
}

.ride-track,
.ride-progress {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ride-track {
  stroke: rgba(255, 255, 255, 0.18);
  stroke-width: 8;
}

.ride-progress {
  stroke: rgba(255, 255, 255, 0.9);
  stroke-width: 4;
  stroke-dasharray: 12 10;
  animation: rideDash 1.8s linear infinite;
}

.ride-stage-node circle {
  fill: #fff;
  stroke: rgba(255, 255, 255, 0.14);
  stroke-width: 8;
}

.ride-wheel {
  fill: none;
  stroke: #fff;
  stroke-width: 2.5;
}

.ride-frame {
  fill: none;
  stroke: #fff;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.home-route-stages {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.home-route-stop {
  position: relative;
  padding-top: 6px;
  font-size: 0.9rem;
}

.home-route-index {
  display: block;
  margin-bottom: 6px;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.52);
}

.home-route-stop strong {
  font-weight: 700;
  color: rgba(255,255,255,0.9);
}

.home-pulse-shell {
  padding: 28px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.96), color-mix(in srgb, var(--accent) 6%, white));
  border: 1px solid color-mix(in srgb, var(--accent) 10%, white);
}

.home-pulse-grid,
.home-metric-grid,
.home-board-right {
  display: grid;
  gap: 16px;
}

.home-pulse-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 18px;
}

.home-metric-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-pulse-card,
.home-metric-card,
.home-board-card {
  position: relative;
  overflow: hidden;
  padding: 22px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.82);
}

.home-pulse-card::after,
.home-metric-card::after,
.home-board-card::after {
  content: '';
  position: absolute;
  inset: auto -12% -38% auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-soft), transparent 62%);
}

.home-pulse-card h3,
.home-board-card h3 {
  margin: 0 0 10px;
  font-size: 1.22rem;
}

.home-pulse-card p,
.home-board-card p,
.home-metric-card span {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.home-metric-card strong {
  display: block;
  margin-bottom: 10px;
  font-size: 1.35rem;
  letter-spacing: -0.04em;
}

.home-board-shell {
  display: grid;
  grid-template-columns: 0.84fr 1.16fr;
  gap: 18px;
  padding: 28px;
  background:
    linear-gradient(135deg, rgba(17,24,39,0.96), rgba(26,34,48,0.92));
}

.home-board-left,
.home-board-right {
  position: relative;
  z-index: 1;
}

.home-board-left {
  display: flex;
  flex-direction: column;
  gap: 18px;
  justify-content: space-between;
}

.home-quote {
  padding: 24px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255,255,255,0.12), rgba(255,255,255,0.04));
  color: #fff;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  line-height: 1.3;
  letter-spacing: -0.04em;
}

.home-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.home-keyword {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.88);
  font-size: 0.9rem;
  font-weight: 700;
}

.home-board-right {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body[data-page='home'] .home-masthead {
  animation: showcaseRise 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

body[data-page='home'] .home-pulse-shell {
  animation: splitReveal 0.85s ease both;
}

body[data-page='home'] .home-board-shell {
  animation: showcaseSweep 0.9s ease both;
}

.home-hero-main {
  min-height: 560px;
  background:
    radial-gradient(circle at 78% 18%, rgba(255, 255, 255, 0.18), transparent 24%),
    linear-gradient(135deg, rgba(17, 24, 39, 0.96), rgba(39, 45, 61, 0.92));
  color: #fff;
}

.home-hero-main::after {
  content: '0591';
  position: absolute;
  right: 24px;
  bottom: 12px;
  font-size: clamp(4.6rem, 12vw, 9rem);
  font-weight: 900;
  letter-spacing: -0.08em;
  color: rgba(255, 255, 255, 0.08);
  line-height: 0.9;
}

.home-hero-main .eyebrow,
.home-hero-main .button-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.88);
}

.home-hero-main .eyebrow::before {
  box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.1);
}

.home-hero-main h1 {
  font-size: clamp(4rem, 10vw, 7.2rem);
  margin-bottom: 10px;
}

.home-hero-main p {
  max-width: 420px;
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.74);
}

.home-hero-main .stats-grid {
  margin-top: auto;
}

.home-hero-main .stat-card {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.08);
}

.home-hero-main .stat-card strong,
.home-hero-main .muted-label {
  color: #fff;
}

.home-hero-side {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--accent) 12%, white), rgba(255, 255, 255, 0.84)),
    rgba(255, 255, 255, 0.86);
}

.impact-card,
.slab-card,
.story-slab,
.fact-panel,
.principle-card {
  position: relative;
  overflow: hidden;
}

.impact-index {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--accent);
}

.impact-card h3,
.slab-card h3,
.story-slab h3,
.fact-panel h3,
.principle-card h3 {
  font-size: 1.28rem;
}

.impact-card::before,
.slab-card::before,
.story-slab::before,
.fact-panel::before,
.principle-card::before {
  content: '';
  position: absolute;
  inset: auto -14% -34% auto;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-soft), transparent 62%);
  pointer-events: none;
}

.poster-shell,
.editorial-shell,
.manifesto-shell {
  position: relative;
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: 24px;
  padding: 34px;
  margin-bottom: 8px;
  border-radius: calc(var(--radius-lg) + 8px);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.poster-shell {
  background:
    linear-gradient(135deg, rgba(17, 24, 39, 0.96), rgba(28, 36, 52, 0.92));
  color: #fff;
}

.editorial-shell,
.manifesto-shell {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 14%, white), rgba(255, 255, 255, 0.82) 48%, rgba(255, 255, 255, 0.96) 100%);
  border: 1px solid color-mix(in srgb, var(--accent) 14%, white);
}

.poster-shell::before,
.editorial-shell::before,
.manifesto-shell::before {
  content: '';
  position: absolute;
  inset: auto -8% -20% auto;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-soft), transparent 62%);
  pointer-events: none;
}

.poster-copy,
.editorial-copy,
.manifesto-copy,
.poster-visual,
.editorial-strip,
.manifesto-words {
  position: relative;
  z-index: 1;
}

.poster-copy,
.editorial-copy,
.manifesto-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

.poster-title {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4.3rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.poster-lead {
  margin: 0;
  max-width: 540px;
  line-height: 1.75;
}

.poster-shell .poster-lead {
  color: rgba(255, 255, 255, 0.76);
}

.poster-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.poster-chip,
.poster-deck-item {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.poster-chip {
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.editorial-shell .poster-chip,
.manifesto-shell .poster-chip {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid color-mix(in srgb, var(--accent) 14%, white);
}

.poster-visual {
  min-height: 360px;
}

.poster-city-code {
  position: absolute;
  top: -6px;
  right: 0;
  font-size: clamp(3.8rem, 9vw, 7.6rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.08em;
  color: rgba(255, 255, 255, 0.16);
}

.poster-deck {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.poster-deck-item {
  background: linear-gradient(135deg, rgba(255,255,255,0.12), rgba(255,255,255,0.08));
}

.editorial-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

.about-ride-canvas {
  position: relative;
  display: grid;
  gap: 14px;
}

.about-ride-svg {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 28px;
  border: 1px solid color-mix(in srgb, var(--accent) 14%, white);
  background: linear-gradient(180deg, rgba(255,255,255,0.82), rgba(255,255,255,0.66));
}

.about-terrain {
  fill: color-mix(in srgb, var(--accent) 16%, white);
}

.about-river,
.about-bridge-arch,
.about-bridge-line,
.about-bridge-post,
.about-city,
.about-ride-path,
.about-ride-dash,
.about-bike-frame,
.about-wheel {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.about-river {
  stroke: rgba(77, 152, 255, 0.78);
  stroke-width: 7;
  stroke-dasharray: 14 12;
  animation: aboutRiverFlow 2.8s linear infinite;
}

.about-bridge-arch,
.about-bridge-line,
.about-bridge-post {
  stroke: rgba(45, 53, 140, 0.74);
  stroke-width: 4;
}

.about-mountain {
  fill: rgba(45, 53, 140, 0.18);
  stroke: rgba(45, 53, 140, 0.55);
  stroke-width: 3;
}

.about-city {
  stroke: rgba(45, 53, 140, 0.72);
  stroke-width: 5;
}

.about-ride-path {
  stroke: rgba(45, 53, 140, 0.18);
  stroke-width: 10;
}

.about-ride-dash {
  stroke: rgba(70, 87, 246, 0.95);
  stroke-width: 5;
  stroke-dasharray: 16 12;
  animation: rideDash 1.8s linear infinite;
}

.about-scene-node circle {
  fill: rgba(70, 87, 246, 0.96);
  stroke: rgba(255,255,255,0.9);
  stroke-width: 8;
}

.about-wheel {
  stroke: rgba(17, 24, 39, 0.94);
  stroke-width: 2.8;
}

.about-bike-frame {
  stroke: rgba(17, 24, 39, 0.94);
  stroke-width: 2.8;
}

.about-rider-head {
  fill: rgba(17, 24, 39, 0.94);
}

.about-scene-strip {
  margin-top: 2px;
}

.about-scene-card {
  min-height: 118px;
  background: linear-gradient(180deg, rgba(255,255,255,0.72), rgba(255,255,255,0.94));
}

.about-scene-card h3 {
  margin: 0;
  font-size: 1rem;
}

.film-frame {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 230px;
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.92));
  border: 1px solid color-mix(in srgb, var(--accent) 12%, white);
}

.film-frame h3 {
  margin: 0;
  font-size: 1.08rem;
}

.story-slab {
  min-height: 240px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.88), color-mix(in srgb, var(--accent) 8%, white));
}

.fact-panel {
  min-height: 220px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.78), color-mix(in srgb, var(--accent) 10%, white));
}

.manifesto-shell {
  align-items: center;
}

.manifesto-words {
  display: grid;
  gap: 14px;
}

.principle-card {
  min-height: 240px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.86), color-mix(in srgb, var(--accent) 9%, white));
}

body[data-page='home'] .poster-shell {
  animation: showcaseRise 0.92s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

body[data-page='about'] .editorial-shell {
  animation: showcaseSweep 0.88s ease both;
}

body[data-page='philosophy'] .manifesto-shell {
  animation: showcasePulse 0.9s ease both;
}

body[data-page='home'] .showcase-shell {
  animation: showcaseRise 0.95s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

body[data-page='about'] .showcase-shell {
  animation: showcaseSweep 0.88s ease both;
}

body[data-page='philosophy'] .showcase-shell {
  animation: showcasePulse 0.9s ease both;
}

body[data-page='members'] .showcase-shell {
  animation: showcaseRise 0.88s ease both;
}

body[data-page='announcements'] .showcase-shell {
  animation: showcaseSweep 0.92s ease both;
}

body[data-page='checkin'] .showcase-shell {
  animation: showcaseRise 0.9s ease both;
}

body[data-page='contact'] .showcase-shell {
  animation: showcasePulse 0.92s ease both;
}

body[data-page='home'] .hero-panel:first-child {
  animation: homeHeroIn 0.85s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

body[data-page='home'] .hero-side {
  animation: homeSideIn 0.95s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

body[data-page='home'] .logo-frame img {
  animation: logoFloat 6.4s ease-in-out infinite;
}

body[data-page='home'] .stat-card {
  animation: riseIn 0.7s ease both;
}

body[data-page='home'] .stat-card:nth-child(2) { animation-delay: 0.08s; }
body[data-page='home'] .stat-card:nth-child(3) { animation-delay: 0.16s; }
body[data-page='home'] .stat-card:nth-child(4) { animation-delay: 0.24s; }

body[data-page='about'] .page-banner {
  animation: bannerSweep 0.85s ease both;
}

body[data-page='about'] .text-grid .text-block {
  animation: splitReveal 0.8s ease both;
}

body[data-page='about'] .text-grid .text-block:nth-child(2) { animation-delay: 0.08s; }
body[data-page='about'] .text-grid .text-block:nth-child(3) { animation-delay: 0.16s; }
body[data-page='about'] .card-grid .note-card {
  animation: tiltIn 0.85s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

body[data-page='about'] .card-grid .note-card:nth-child(2) { animation-delay: 0.1s; }
body[data-page='about'] .card-grid .note-card:nth-child(3) { animation-delay: 0.2s; }

body[data-page='philosophy'] .page-note {
  animation: breatheIn 0.9s ease both;
}

body[data-page='philosophy'] .rule-card {
  animation: pulseRise 0.82s ease both;
}

body[data-page='philosophy'] .rule-card:nth-child(2) { animation-delay: 0.1s; }
body[data-page='philosophy'] .rule-card:nth-child(3) { animation-delay: 0.2s; }
body[data-page='philosophy'] .rule-list li {
  animation: lineSlide 0.65s ease both;
}

body[data-page='philosophy'] .rule-list li:nth-child(2) { animation-delay: 0.08s; }
body[data-page='philosophy'] .rule-list li:nth-child(3) { animation-delay: 0.16s; }
body[data-page='philosophy'] .rule-list li:nth-child(4) { animation-delay: 0.24s; }

body[data-page='members'] .template-grid .empty-card,
body[data-page='members'] .template-grid .card {
  animation: cardLift 0.82s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

body[data-page='members'] .template-grid > *:nth-child(2) { animation-delay: 0.1s; }
body[data-page='members'] .template-grid > *:nth-child(3) { animation-delay: 0.2s; }
body[data-page='members'] .template-list li {
  animation: lineSlide 0.68s ease both;
}

body[data-page='announcements'] .template-grid > * {
  animation: cardDrift 0.82s ease both;
}

body[data-page='announcements'] .template-grid > *:nth-child(2) { animation-delay: 0.1s; }
body[data-page='announcements'] .template-grid > *:nth-child(3) { animation-delay: 0.2s; }
body[data-page='announcements'] .workflow .step-card {
  animation: workflowSweep 0.78s ease both;
}

body[data-page='announcements'] .workflow .step-card:nth-child(2) { animation-delay: 0.08s; }
body[data-page='announcements'] .workflow .step-card:nth-child(3) { animation-delay: 0.16s; }
body[data-page='announcements'] .workflow .step-card:nth-child(4) { animation-delay: 0.24s; }

body[data-page='checkin'] .table-wrap {
  animation: tableReveal 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

body[data-page='checkin'] thead th {
  background-size: 220% 100%;
  animation: headerShimmer 3.2s linear infinite;
}

body[data-page='checkin'] .template-list li {
  animation: lineSlide 0.68s ease both;
}

body[data-page='contact'] .contact-card {
  animation: contactBloom 0.84s ease both;
}

body[data-page='contact'] .contact-card:nth-child(2) { animation-delay: 0.08s; }
body[data-page='contact'] .contact-card:nth-child(3) { animation-delay: 0.16s; }
body[data-page='contact'] .contact-card:nth-child(4) { animation-delay: 0.24s; }
body[data-page='contact'] .workflow .step-card {
  animation: riseIn 0.8s ease both;
}

body[data-page='contact'] .workflow .step-card:nth-child(2) { animation-delay: 0.08s; }
body[data-page='contact'] .workflow .step-card:nth-child(3) { animation-delay: 0.16s; }
body[data-page='contact'] .workflow .step-card:nth-child(4) { animation-delay: 0.24s; }

@keyframes homeHeroIn {
  from { opacity: 0; transform: translateY(34px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

@keyframes homeSideIn {
  from { opacity: 0; transform: translateX(26px) rotate(1.6deg); }
  to { opacity: 1; transform: none; }
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(1deg); }
}

@keyframes riseIn {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}

@keyframes bannerSweep {
  from { opacity: 0; transform: translateY(22px); clip-path: inset(0 100% 0 0 round 30px); }
  to { opacity: 1; transform: none; clip-path: inset(0 0 0 0 round 30px); }
}

@keyframes splitReveal {
  from { opacity: 0; transform: translateY(18px) scale(0.985); }
  to { opacity: 1; transform: none; }
}

@keyframes tiltIn {
  from { opacity: 0; transform: perspective(800px) rotateX(10deg) translateY(22px); }
  to { opacity: 1; transform: none; }
}

@keyframes breatheIn {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes pulseRise {
  0% { opacity: 0; transform: translateY(24px) scale(0.96); }
  70% { transform: translateY(-3px) scale(1.01); }
  100% { opacity: 1; transform: none; }
}

@keyframes lineSlide {
  from { opacity: 0; transform: translateX(-14px); }
  to { opacity: 1; transform: none; }
}

@keyframes cardLift {
  from { opacity: 0; transform: translateY(26px) rotate(-1.2deg); }
  to { opacity: 1; transform: none; }
}

@keyframes cardDrift {
  from { opacity: 0; transform: translateY(18px) translateX(10px); }
  to { opacity: 1; transform: none; }
}

@keyframes workflowSweep {
  from { opacity: 0; transform: translateX(18px); }
  to { opacity: 1; transform: none; }
}

@keyframes tableReveal {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: none; }
}

@keyframes headerShimmer {
  from { background-position: 0% 0; }
  to { background-position: 220% 0; }
}

@keyframes contactBloom {
  from { opacity: 0; transform: translateY(22px) scale(0.97); }
  to { opacity: 1; transform: none; }
}

@keyframes rideDash {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: -44; }
}

@keyframes aboutRiverFlow {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: -52; }
}

@keyframes showcaseRise {
  from { opacity: 0; transform: translateY(34px) scale(0.985); }
  to { opacity: 1; transform: none; }
}

@keyframes showcaseSweep {
  from { opacity: 0; clip-path: inset(0 100% 0 0 round 36px); }
  to { opacity: 1; clip-path: inset(0 0 0 0 round 36px); }
}

@keyframes showcasePulse {
  0% { opacity: 0; transform: scale(0.97); }
  70% { transform: scale(1.01); }
  100% { opacity: 1; transform: none; }
}

@media (max-width: 980px) {
  .hero-grid,
  .text-grid,
  .page-hero-grid,
  .contact-grid,
  .two-column,
  .footer-grid,
  .showcase-shell,
  .poster-shell,
  .editorial-shell,
  .manifesto-shell,
  .home-masthead,
  .home-board-shell {
    grid-template-columns: 1fr;
  }

  .stats-grid,
  .workflow,
  .metric-inline,
  .metric-stack,
  .poster-board,
  .editorial-strip,
  .home-pulse-grid,
  .home-metric-grid,
  .home-board-right {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .card-grid,
  .template-grid,
  .poster-tiles,
  .role-orbit,
  .lane-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .nav-wrap {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 0;
  }

  main {
    padding-top: 18px;
  }

  .hero-panel,
  .hero-side,
  .text-block,
  .page-banner,
  .table-wrap,
  .showcase-shell,
  .poster-shell,
  .editorial-shell,
  .manifesto-shell,
  .home-masthead,
  .home-pulse-shell,
  .home-board-shell {
    padding: 22px;
  }

  .stats-grid,
  .card-grid,
  .template-grid,
  .workflow,
  .metric-inline,
  .metric-stack,
  .poster-board,
  .poster-tiles,
  .role-orbit,
  .lane-card-grid,
  .editorial-strip,
  .home-pulse-grid,
  .home-metric-grid,
  .home-board-right {
    grid-template-columns: 1fr;
  }

  .home-badge-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .home-tag-row {
    justify-content: flex-start;
  }

  .home-title {
    font-size: 4rem;
  }

  .home-route-stages {
    grid-template-columns: 1fr;
  }

  .home-route-stop {
    padding: 4px 0;
  }

  .route-strip {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .route-strip::before {
    left: 8px;
    top: 4%;
    bottom: 4%;
    width: 2px;
    height: auto;
    right: auto;
    background: linear-gradient(180deg, var(--accent), color-mix(in srgb, var(--accent) 26%, white));
  }

  .route-stop {
    padding: 0 0 0 28px;
    text-align: left;
  }

  .route-stop::before {
    top: 50%;
    left: 8px;
    margin: -6px 0 0 -6px;
  }

  .showcase-art {
    min-height: 240px;
  }

  .poster-visual {
    min-height: 300px;
  }

  .home-hero-main {
    min-height: auto;
  }

  .hero h1,
  .page-title {
    font-size: 2.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
