/* ==========================================================================
   365看台 · /assets/site.css
   夜间看台控制室 · 展览画册式框架
   ========================================================================== */

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

html { -webkit-text-size-adjust: 100%; }

body,
h1, h2, h3, h4, h5, h6,
p, figure, blockquote, dl, dd, ul, ol { margin: 0; }

ul, ol { padding: 0; list-style: none; }

img, svg, video { display: block; max-width: 100%; height: auto; }

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

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

/* ---------- Variables ---------- */
:root {
  --ink:            #0B1F1A;
  --glass:          #12332B;
  --solid:          #0F2A22;
  --lime:           #C8FF3D;
  --orange:         #FF6B35;
  --gold:           #D9B56D;
  --fees-white:     #F7F7F2;
  --fees-ink:       #111111;
  --mist:           #A8B5AE;
  --line:           #5E7A70;

  --ink-90:         rgba(11, 31, 26, 0.9);
  --glass-60:       rgba(18, 51, 43, 0.6);
  --glass-80:       rgba(18, 51, 43, 0.82);
  --lime-16:        rgba(200, 255, 61, 0.16);
  --lime-30:        rgba(200, 255, 61, 0.3);
  --orange-14:      rgba(255, 107, 53, 0.14);
  --gold-18:        rgba(217, 181, 109, 0.18);
  --line-soft:      rgba(94, 122, 112, 0.38);

  --font-sans: "PingFang SC", "Source Han Sans SC", "Noto Sans SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui, sans-serif;
  --font-serif: "Songti SC", "Source Han Serif SC", "Noto Serif SC", "STSong", serif;
  --font-mono: "IBM Plex Mono", "JetBrains Mono", "SF Mono", ui-monospace, Menlo, Consolas, monospace;

  --shell-w: 1280px;
  --gutter: clamp(18px, 4vw, 56px);
  --rail: 0px;

  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 14px;

  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 72px;
  --sp-9: 112px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 0.28s;

  --masthead-h: 74px;
}

/* ---------- Base / 中文排版 ---------- */
body {
  background-color: var(--ink);
  color: #EAF2EE;
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: 0.01em;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(1200px 620px at 82% -10%, rgba(200, 255, 61, 0.07), transparent 60%),
    radial-gradient(900px 520px at 0% 100%, rgba(255, 107, 53, 0.05), transparent 62%);
}

h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -0.015em;
  color: #F2F8F4;
  text-wrap: balance;
}

h1 { font-size: clamp(36px, 5vw, 72px); }
h2 { font-size: clamp(26px, 3vw, 40px); }
h3 { font-size: clamp(20px, 2vw, 26px); letter-spacing: -0.01em; }
h4 { font-size: 18px; font-weight: 700; letter-spacing: 0; }

p { text-wrap: pretty; }

strong { font-weight: 700; color: #F2F8F4; }

code, kbd, samp, .mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

::selection { background: var(--lime); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Shell / Frame ---------- */
.shell {
  width: 100%;
  max-width: var(--shell-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
  position: relative;
  z-index: 1;
}

.site-frame {
  position: relative;
  padding-left: var(--rail);
  min-height: 60vh;
}

.site-frame::before {
  content: "";
  position: fixed;
  top: 0;
  bottom: 0;
  left: calc(var(--rail) - 1px);
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--line-soft) 12%, var(--line-soft) 88%, transparent);
  pointer-events: none;
  z-index: 2;
}

@media (min-width: 1080px) {
  .site-frame { --rail: 0px; }
}

/* ---------- Section rhythm ---------- */
.section { padding-block: clamp(48px, 7vw, 96px); position: relative; }

.section--wide { padding-block: clamp(56px, 8vw, 128px); }
.section--narrow { padding-block: clamp(32px, 4vw, 56px); }

.section--ruled::before {
  content: "";
  display: block;
  height: 1px;
  background: var(--line-soft);
  margin-bottom: clamp(32px, 4vw, 56px);
}

.section--ruled::after {
  content: "";
  display: block;
  height: 1px;
  background: var(--line-soft);
  margin-top: clamp(32px, 4vw, 56px);
}

.section--solid { background: var(--solid); }
.section--glass { background: var(--glass-60); }

/* ---------- Utilities ---------- */
.stack > * + * { margin-top: var(--sp-5); }
.stack--tight > * + * { margin-top: var(--sp-3); }
.stack--loose > * + * { margin-top: var(--sp-6); }

.cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-3);
}

.cluster--between { justify-content: space-between; }

.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 4vw, 56px);
}

@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); align-items: start; }
  .split--reverse { grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr); }
}

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(16px, 2.4vw, 28px);
}

@media (min-width: 700px) {
  .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1060px) {
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--asym { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); }
  .grid--asym > :first-child { grid-row: span 2; }
}

.prose { max-width: 68ch; }
.prose > * + * { margin-top: 1.1em; }
.prose h2, .prose h3 { margin-top: 1.8em; }
.prose ul { list-style: none; }
.prose ul li {
  position: relative;
  padding-left: 1.4em;
}
.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 8px;
  height: 2px;
  background: var(--lime);
}

.eyebrow {
  font-family: var(--font-serif);
  font-size: 14px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--mist);
  display: block;
}

.eyebrow--lime { color: var(--lime); }
.eyebrow--gold { color: var(--gold); }

.hint { font-size: 13px; line-height: 1.6; color: var(--mist); }

.dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mist);
}
.dot--lime { background: var(--lime); box-shadow: 0 0 0 3px var(--lime-16); }
.dot--orange { background: var(--orange); box-shadow: 0 0 0 3px var(--orange-14); }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 120;
  padding: 10px 16px;
  background: var(--lime);
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
  border-radius: var(--r-sm);
  transform: translateY(-160%);
  transition: transform var(--dur) var(--ease);
}
.skip-link:focus-visible {
  transform: translateY(0);
  outline-offset: 2px;
}

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--lime), var(--gold) 62%, var(--orange));
  z-index: 110;
  pointer-events: none;
}

/* ---------- Header : control bar ---------- */
.masthead-wrap {
  position: relative;
  z-index: 90;
}

.control-bar {
  background: #08160F;
  border-bottom: 1px solid var(--line-soft);
  font-size: 12.5px;
  letter-spacing: 0.06em;
}

.control-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  min-height: 34px;
  padding-block: 6px;
}

.control-bar__week,
.control-bar__clock {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--mist);
  white-space: nowrap;
}

.control-bar__week { overflow: hidden; text-overflow: ellipsis; }

.control-bar__label {
  color: var(--line);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.16em;
}

.control-bar__clock time {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  color: var(--lime);
  letter-spacing: 0.04em;
}

/* ---------- Header : masthead ---------- */
.masthead {
  position: sticky;
  top: 0;
  background: var(--glass-80);
  backdrop-filter: blur(14px) saturate(1.15);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  border-bottom: 1px solid var(--line-soft);
  border-top: 1px solid rgba(200, 255, 61, 0.09);
}

.masthead__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  min-height: var(--masthead-h);
  padding-block: 10px;
}

/* Brand */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  padding: 4px 0;
}

.brand__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--ink);
  background: var(--lime);
  padding: 8px 9px;
  border-radius: var(--r-sm);
  min-width: 44px;
}

.brand__mark--footer {
  background: transparent;
  color: var(--lime);
  border: 1px solid var(--lime-30);
  font-size: 16px;
  padding: 10px 10px;
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.brand__name {
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.02em;
  line-height: 1.15;
  color: #F2F8F4;
  white-space: nowrap;
}

.brand__sub {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--mist);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 40vw;
}

/* Nav toggle */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-sm);
  background: rgba(11, 31, 26, 0.6);
  color: #EAF2EE;
  font-size: 13px;
  letter-spacing: 0.08em;
  flex: 0 0 auto;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}

.nav-toggle:hover { border-color: var(--lime-30); }

.nav-toggle__bars {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
  width: 16px;
}

.nav-toggle__bars span {
  display: block;
  height: 2px;
  background: var(--lime);
  border-radius: 1px;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* Nav */
.nav {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  min-width: 0;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: wrap;
}

.nav__link {
  position: relative;
  display: inline-block;
  padding: 9px 12px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #D6E2DB;
  white-space: nowrap;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 3px;
  height: 2px;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform var(--dur) var(--ease);
}

.nav__link:hover {
  color: #FFFFFF;
  background: rgba(200, 255, 61, 0.06);
}

.nav__link:hover::after { transform: scaleX(1); }

.nav__link[aria-current="page"] {
  color: var(--ink);
  background: var(--lime);
  font-weight: 700;
}

.nav__link[aria-current="page"]::after { transform: scaleX(0); }

.nav__actions { display: flex; align-items: center; gap: var(--sp-2); }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: transparent;
  --btn-fg: #F2F8F4;
  --btn-bd: var(--line-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-bd);
  border-radius: var(--r-sm);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-align: center;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.btn:hover { transform: translateY(-1px); }

.btn--lime {
  --btn-bg: var(--lime);
  --btn-fg: var(--ink);
  --btn-bd: var(--lime);
  font-weight: 700;
}
.btn--lime:hover { --btn-bg: #D6FF6B; --btn-bd: #D6FF6B; }

.btn--ghost {
  --btn-bg: rgba(18, 51, 43, 0.55);
  --btn-fg: #EAF2EE;
  --btn-bd: var(--line-soft);
}
.btn--ghost:hover {
  --btn-bd: var(--lime-30);
  --btn-bg: rgba(200, 255, 61, 0.08);
}

.btn--small { padding: 9px 14px; font-size: 13.5px; }

/* ---------- Tags ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 100px;
  border: 1px solid var(--line-soft);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #D6E2DB;
  background: rgba(11, 31, 26, 0.5);
  white-space: nowrap;
}

.tag--lime { color: var(--ink); background: var(--lime); border-color: var(--lime); font-weight: 700; }
.tag--orange { color: #1A0C05; background: var(--orange); border-color: var(--orange); font-weight: 700; }
.tag--gold { color: #241B08; background: var(--gold); border-color: var(--gold); font-weight: 700; }
.tag--muted { color: var(--mist); background: transparent; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  color: var(--lime);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease), gap var(--dur) var(--ease);
}
.link-arrow::after { content: "→"; transition: transform var(--dur) var(--ease); }
.link-arrow:hover { border-bottom-color: var(--lime-30); }
.link-arrow:hover::after { transform: translateX(3px); }

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--mist);
  padding-block: var(--sp-4) 0;
}

.breadcrumb__item { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumb__item + .breadcrumb__item::before {
  content: "/";
  color: var(--line);
}
.breadcrumb__item a { color: var(--mist); transition: color var(--dur) var(--ease); }
.breadcrumb__item a:hover { color: var(--lime); }
.breadcrumb__item [aria-current="page"] { color: #EAF2EE; }

/* ---------- Boards / 信息牌 ---------- */
.board {
  position: relative;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  background: var(--solid);
  padding: clamp(18px, 2.4vw, 28px);
}

.board--glass {
  background: var(--glass-60);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-color: rgba(200, 255, 61, 0.16);
}

.board--solid { background: var(--solid); }

.board--fees {
  background: var(--fees-white);
  color: var(--fees-ink);
  border-color: var(--fees-white);
}
.board--fees .board__title,
.board--fees strong,
.board--fees h2,
.board--fees h3 { color: var(--fees-ink); }
.board--fees .board__meta,
.board--fees .hint { color: #4A4A45; }

.board__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-2) var(--sp-4);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: var(--sp-4);
}

.board--fees .board__head { border-bottom-color: rgba(17, 17, 17, 0.16); }

.board__title {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #F2F8F4;
  margin: 0;
}

.board__meta {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--mist);
}

.board__body > * + * { margin-top: var(--sp-3); }

/* ---------- Stat ---------- */
.stat { display: flex; flex-direction: column; gap: 4px; }

.stat__value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--lime);
}

.stat__label {
  font-size: 12.5px;
  letter-spacing: 0.1em;
  color: var(--mist);
}

.board--fees .stat__value { color: var(--fees-ink); }
.board--fees .stat__label { color: #4A4A45; }

/* ---------- Period axis ---------- */
.period-axis {
  display: grid;
  gap: 0;
  border-left: 1px solid var(--line-soft);
}

.period-axis__item {
  position: relative;
  padding: 12px 0 12px 18px;
  font-size: 13.5px;
  color: var(--mist);
  border-bottom: 1px solid rgba(94, 122, 112, 0.2);
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}

.period-axis__item::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 50%;
  transform: translateY(-50%);
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ink);
  border: 1px solid var(--line);
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.period-axis__item a { display: block; }

.period-axis__item strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 2px;
}

.period-axis__item[data-current] {
  color: #F2F8F4;
  background: linear-gradient(90deg, var(--lime-16), transparent 70%);
}

.period-axis__item[data-current]::before {
  background: var(--lime);
  border-color: var(--lime);
  box-shadow: 0 0 0 4px var(--lime-16);
}

/* ---------- Team tabs ---------- */
.team-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: var(--sp-4);
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: var(--sp-5);
}

.team-tabs__btn {
  padding: 7px 14px;
  border: 1px solid var(--line-soft);
  border-radius: 100px;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: #D6E2DB;
  background: rgba(11, 31, 26, 0.5);
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.team-tabs__btn:hover { border-color: var(--lime-30); color: #FFFFFF; }

.team-tabs__btn[aria-pressed="true"] {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--ink);
  font-weight: 700;
}

[data-team-item][hidden] { display: none !important; }

/* ---------- Accordion ---------- */
.accordion {
  border-top: 1px solid var(--line-soft);
}

.accordion__item { border-bottom: 1px solid var(--line-soft); }

.accordion__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  width: 100%;
  padding: 18px 0;
  text-align: left;
  font-size: 16px;
  font-weight: 600;
  color: #F2F8F4;
  letter-spacing: 0.01em;
}

.accordion__trigger::after {
  content: "+";
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 20px;
  line-height: 1;
  color: var(--lime);
  transition: transform var(--dur) var(--ease);
}

.accordion__trigger[aria-expanded="true"]::after { transform: rotate(45deg); }

.accordion__panel {
  overflow: hidden;
  height: 0;
  transition: height var(--dur) var(--ease);
}

.accordion__panel > div {
  padding: 0 0 20px;
  color: #C9D6CF;
  font-size: 15.5px;
}

/* ---------- Fee card ---------- */
.fee-card {
  background: var(--fees-white);
  color: var(--fees-ink);
  border-radius: var(--r-md);
  padding: clamp(16px, 2vw, 22px);
  border: 1px solid var(--fees-white);
}

.fee-card__amount {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--fees-ink);
}

.fee-card__note {
  font-size: 13px;
  line-height: 1.6;
  color: #4A4A45;
  margin-top: 8px;
}

/* ---------- Media frame ---------- */
.media-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-md);
  border: 1px solid var(--line-soft);
  background:
    repeating-linear-gradient(135deg, rgba(94, 122, 112, 0.14) 0 1px, transparent 1px 14px),
    linear-gradient(160deg, #12332B, #0B1F1A);
  aspect-ratio: 16 / 10;
  width: 100%;
}

.media-frame > img,
.media-frame > picture > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--tall { aspect-ratio: 3 / 4; }

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(200, 255, 61, 0.08);
  border-radius: inherit;
}

.media-frame__caption {
  position: absolute;
  left: 0;
  bottom: 0;
  right: 0;
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: #DCE7E0;
  background: linear-gradient(to top, rgba(8, 22, 15, 0.92), transparent);
}

/* ---------- To top ---------- */
.to-top {
  position: fixed;
  right: clamp(14px, 3vw, 28px);
  bottom: clamp(14px, 3vw, 28px);
  z-index: 95;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--lime-30);
  background: rgba(11, 31, 26, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--lime);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur) var(--ease), background var(--dur) var(--ease);
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.to-top:hover { background: var(--lime); color: var(--ink); }

.to-top__arrow { font-family: var(--font-mono); font-size: 17px; line-height: 1; }

/* ---------- Footer ---------- */
.stand-footer {
  position: relative;
  background: #08160F;
  border-top: 1px solid var(--line-soft);
  margin-top: clamp(48px, 7vw, 96px);
  color: #C9D6CF;
  font-size: 14.5px;
}

.stand-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--lime), var(--gold) 55%, var(--orange));
  opacity: 0.85;
}

.stand-footer__inner {
  padding-block: clamp(40px, 5vw, 64px) clamp(20px, 3vw, 32px);
}

.stand-footer__top {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 4vw, 48px);
  padding-bottom: clamp(28px, 4vw, 44px);
  border-bottom: 1px solid var(--line-soft);
}

@media (min-width: 760px) {
  .stand-footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1080px) {
  .stand-footer__top {
    grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 0.7fr)) minmax(0, 1.2fr);
    gap: clamp(24px, 3vw, 44px);
  }
}

.stand-footer__brand { max-width: 40ch; }

.stand-footer__brand-line {
  margin-top: var(--sp-4);
  font-size: 17px;
  font-weight: 700;
  color: #F2F8F4;
  letter-spacing: 0.01em;
}

.stand-footer__desc {
  margin-top: 8px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--mist);
}

.stand-footer__nav-title {
  font-family: var(--font-serif);
  font-size: 12.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--sp-3);
}

.stand-footer__list { display: grid; gap: 9px; }

.stand-footer__list a {
  color: #C9D6CF;
  font-size: 14px;
  transition: color var(--dur) var(--ease);
  word-break: break-word;
}

.stand-footer__list a:hover { color: var(--lime); }

.stand-footer__list--contact a { font-family: var(--font-mono); font-size: 13px; letter-spacing: -0.01em; }

.stand-footer__address {
  margin-top: var(--sp-4);
  font-size: 13px;
  line-height: 1.7;
  color: var(--mist);
  max-width: 34ch;
}

.stand-footer__note {
  margin-top: var(--sp-3);
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--line);
  max-width: 40ch;
}

.stand-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3) var(--sp-5);
  padding-top: clamp(18px, 2.4vw, 26px);
  font-size: 12.5px;
  color: var(--line);
}

.stand-footer__copy,
.stand-footer__icp { font-family: var(--font-mono); letter-spacing: 0.02em; }

.stand-footer__legal { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.stand-footer__legal a { color: var(--mist); transition: color var(--dur) var(--ease); }
.stand-footer__legal a:hover { color: var(--lime); }
.stand-footer__legal span { color: var(--line); }

/* ---------- Responsive : header ---------- */
@media (max-width: 1140px) {
  .nav { gap: var(--sp-4); }
  .nav__link { padding: 8px 10px; font-size: 13.5px; }
  .masthead__cta { display: none; }
}

@media (max-width: 960px) {
  .brand__sub { max-width: 52vw; }
  .nav-toggle { display: inline-flex; }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--sp-3) var(--gutter) var(--sp-5);
    background: rgba(10, 27, 22, 0.985);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line-soft);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
    max-height: calc(100vh - var(--masthead-h));
    overflow-y: auto;
  }

  .nav[data-open] { display: flex; }

  .nav__list { flex-direction: column; align-items: stretch; gap: 2px; }

  .nav__link {
    display: block;
    padding: 14px 12px;
    font-size: 16px;
    border-bottom: 1px solid rgba(94, 122, 112, 0.22);
    border-radius: 0;
  }

  .nav__link::after { display: none; }

  .nav__link[aria-current="page"] {
    background: rgba(200, 255, 61, 0.14);
    color: var(--lime);
    border-bottom-color: var(--lime-30);
  }

  .nav__actions { padding-top: var(--sp-4); }
  .masthead__cta { display: inline-flex; width: 100%; }
  .masthead__inner { position: relative; }
}

@media (max-width: 620px) {
  :root { --masthead-h: 64px; }
  body { font-size: 16px; }
  .brand__mark { min-width: 38px; padding: 7px 7px; font-size: 13px; }
  .brand__name { font-size: 16px; }
  .brand__sub { display: none; }
  .control-bar__week { font-size: 11.5px; }
  .control-bar__label { display: none; }
  .to-top { width: 42px; height: 42px; }
}

@media (max-width: 400px) {
  .control-bar__week { max-width: 58vw; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .to-top { transform: none; }
  .btn:hover { transform: none; }
}
