/* ==========================================================================
   UTCAA design system
   ========================================================================== */

:root {
  --red: #c90310;
  --red-deep: #a90012;
  --red-light: #fff1f2;
  --red-soft: #ffe3e6;
  --white: #ffffff;
  --warm-white: #faf9f7;
  --text: #222222;
  --text-secondary: #666666;
  --border: #eaeaea;

  --font-sans: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system,
    "Segoe UI", sans-serif;
  --font-serif: "Noto Serif SC", "Songti SC", "STSong", "Noto Sans SC", serif;

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(34, 34, 34, 0.04), 0 2px 8px rgba(34, 34, 34, 0.04);
  --shadow: 0 2px 6px rgba(34, 34, 34, 0.04), 0 12px 32px rgba(34, 34, 34, 0.06);
  --shadow-red: 0 10px 30px rgba(201, 3, 16, 0.12);

  --container: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(4rem, 9vw, 7rem);
  --header-h: 76px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--text);
  background: var(--white);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

img {
  height: auto;
}

h1,
h2,
h3,
p,
ul,
ol,
figure {
  margin: 0;
}

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

a {
  color: var(--red);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

a:hover {
  color: var(--red-deep);
}

:focus-visible {
  outline: 3px solid rgba(201, 3, 16, 0.45);
  outline-offset: 3px;
  border-radius: 6px;
}

main:focus {
  outline: none;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: var(--red);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-weight: 500;
}

.skip-link:focus {
  top: 1rem;
  color: var(--white);
}

.icon {
  width: 1.25em;
  height: 1.25em;
  flex-shrink: 0;
}

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

.narrow {
  max-width: 720px;
}

.nowrap {
  display: inline-block;
  white-space: nowrap;
}

.section-title,
.page-title,
.page-subtitle,
.lead-red,
.cta-title,
.coming-soon-title,
.mv-statement,
.card-title {
  text-wrap: balance;
}

.section-subtitle,
.card-text,
.page-description,
.cta-text {
  text-wrap: pretty;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 4px 20px rgba(34, 34, 34, 0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
  min-width: 0;
}

.brand:hover {
  color: var(--text);
}

.brand-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  flex-shrink: 0;
}

.logo-fallback {
  display: inline-grid;
  place-items: center;
  width: var(--size, 48px);
  height: var(--size, 48px);
  border: 2px solid var(--red);
  border-radius: 50%;
  color: var(--red);
  font-weight: 700;
  font-size: calc(var(--size, 48px) * 0.22);
  letter-spacing: 0.02em;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  min-width: 0;
}

.brand-name {
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.06em;
  color: var(--red);
}

.brand-sub {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  letter-spacing: 0.08em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--white);
  color: var(--text);
  cursor: pointer;
}

.nav-toggle .icon {
  width: 22px;
  height: 22px;
}

.nav-toggle-close {
  display: none;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-open {
  display: none;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-close {
  display: inline;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.25rem 0.9rem;
  color: var(--text);
  font-size: 0.975rem;
  font-weight: 500;
  border-radius: 999px;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0.9rem;
  right: 0.9rem;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s var(--ease);
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--red);
}

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

.nav-cta {
  margin-inline: 0.35rem;
  padding-inline: 1.25rem;
  background: var(--red);
  color: var(--white);
  box-shadow: var(--shadow-red);
}

.nav-cta::after {
  display: none;
}

.nav-cta:hover,
.nav-cta.is-active {
  background: var(--red-deep);
  color: var(--white);
}

@media (max-width: 1023px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 24px 40px rgba(34, 34, 34, 0.08);
    padding: 0.75rem var(--gutter) 1.5rem;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0s linear 0.2s;
  }

  .site-nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
  }

  .nav-link {
    width: 100%;
    min-height: 52px;
    padding-inline: 1rem;
    font-size: 1.0625rem;
    border-radius: var(--radius-sm);
  }

  .nav-link::after {
    display: none;
  }

  .nav-link.is-active {
    background: var(--red-light);
  }

  .nav-cta {
    justify-content: center;
    margin: 0.5rem 0 0;
  }

  .nav-cta.is-active {
    background: var(--red-deep);
  }
}

@media (max-width: 420px) {
  .brand-sub {
    font-size: 0.75rem;
    letter-spacing: 0.02em;
  }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 50px;
  padding: 0.75rem 1.6rem;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease),
    transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.btn-icon {
  width: 1.1em;
  height: 1.1em;
  transition: transform 0.2s var(--ease);
}

.btn:hover .btn-icon {
  transform: translateX(3px);
}

.btn-primary {
  background: var(--red);
  color: var(--white);
  box-shadow: var(--shadow-red);
}

.btn-primary:hover {
  background: var(--red-deep);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-outline {
  background: var(--white);
  color: var(--red);
  border-color: var(--red);
}

.btn-outline:hover {
  background: var(--red-light);
  color: var(--red-deep);
  border-color: var(--red-deep);
}

.btn-link {
  min-height: 44px;
  padding: 0;
  color: var(--red);
  border-radius: 0;
}

.btn-link:hover {
  color: var(--red-deep);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.875rem;
}

.btn-row-center {
  justify-content: center;
}

.center-row {
  display: flex;
  justify-content: center;
  margin-top: clamp(2rem, 4vw, 3rem);
}

@media (max-width: 480px) {
  .btn-row .btn {
    flex: 1 1 100%;
  }
}

/* ---------- Typography helpers ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  color: var(--red);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow-line {
  width: 28px;
  height: 2px;
  background: var(--red);
  border-radius: 2px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: clamp(2.25rem, 5vw, 3.5rem);
}

.section-heading.align-center {
  margin-inline: auto;
  text-align: center;
}

.section-heading.align-center .eyebrow {
  justify-content: center;
}

.section-heading.align-left {
  margin-bottom: 1.5rem;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3.6vw, 2.5rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.02em;
  color: var(--text);
}

.section-subtitle {
  margin-top: 1rem;
  color: var(--text-secondary);
  font-size: 1.0625rem;
}

.subsection-title {
  margin: 3rem 0 1.5rem;
  font-size: 1.25rem;
  font-weight: 700;
}

.lead {
  font-size: 1.1875rem;
  font-weight: 500;
  color: var(--text);
}

.lead-red {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2.4vw, 1.5rem);
  line-height: 1.6;
  color: var(--red);
}

.prose {
  color: var(--text-secondary);
}

.prose > * + * {
  margin-top: 1.1em;
}

.prose-lg {
  font-size: 1.0938rem;
}

.prose-center {
  max-width: 760px;
  margin: -1rem auto clamp(2.5rem, 5vw, 3.5rem);
  text-align: center;
}

/* ---------- Layout ---------- */

.section {
  position: relative;
  padding-block: var(--section-y);
}

.section-warm {
  background: var(--warm-white);
}

.grid {
  display: grid;
  gap: clamp(1rem, 2.2vw, 1.5rem);
}

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

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

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

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

  .grid-5 > * {
    grid-column: span 2;
  }

  .grid-5 > :nth-child(4) {
    grid-column: 2 / span 2;
  }
}

@media (min-width: 640px) and (max-width: 1023px) {
  .grid-5 > :last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

.split {
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: 5fr 7fr;
    gap: 4rem;
  }

  .split-wide {
    grid-template-columns: 7fr 5fr;
    align-items: center;
  }
}

/* ---------- Cards ---------- */

.card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.card-title {
  font-size: 1.1875rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--text);
}

.card-title-en {
  display: block;
  margin-top: 0.1rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
}

.card-text {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.8;
}

.card-text + .card-text {
  margin-top: 0.75rem;
}

.icon-badge {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--red-light);
  color: var(--red);
  flex-shrink: 0;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}

.icon-badge .icon {
  width: 26px;
  height: 26px;
}

.icon-badge-sm {
  width: 42px;
  height: 42px;
  border-radius: 12px;
}

.icon-badge-sm .icon {
  width: 21px;
  height: 21px;
}

.feature-card {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: clamp(1.5rem, 3vw, 2.25rem);
}

.feature-card:hover,
.activity-card:hover,
.numbered-card:hover,
.area-card:hover,
.member-card:hover,
.event-card:hover {
  transform: translateY(-4px);
  border-color: rgba(201, 3, 16, 0.25);
  box-shadow: var(--shadow);
}

.feature-card:hover .icon-badge,
.activity-card:hover .icon-badge,
.numbered-card:hover .icon-badge,
.area-card:hover .icon-badge {
  background: var(--red);
  color: var(--white);
}

.feature-accent {
  border-top: 3px solid var(--red);
}

.feature-value {
  text-align: left;
}

.activity-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.activity-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--red-light);
}

.activity-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.activity-body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.75rem 1.5rem;
}

.numbered-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.75rem 1.5rem;
  overflow: hidden;
}

.numbered-index {
  position: absolute;
  top: 0.75rem;
  right: 1.25rem;
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  color: var(--red-light);
  transition: color 0.3s var(--ease);
}

.numbered-card:hover .numbered-index {
  color: var(--red-soft);
}

.badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 500;
  background: var(--red-light);
  color: var(--red);
}

.badge-past,
.badge-muted,
.badge-cancelled {
  background: #f2f2f2;
  color: var(--text-secondary);
}

.badge-registration_open {
  background: var(--red);
  color: var(--white);
}

/* ---------- Decorative ---------- */

.knot-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

.knot-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 3, 16, 0.35));
}

.knot-line:last-child {
  background: linear-gradient(90deg, rgba(201, 3, 16, 0.35), transparent);
}

.knot-divider img {
  width: 28px;
  height: 28px;
  opacity: 0.8;
}

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

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3rem, 8vw, 6.5rem) clamp(4rem, 9vw, 7rem);
  background:
    radial-gradient(circle at 85% 20%, rgba(255, 241, 242, 0.9), transparent 45%),
    linear-gradient(180deg, var(--white), var(--warm-white));
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 3, 16, 0.25), transparent);
}

.hero-tree {
  position: absolute;
  left: -120px;
  bottom: -140px;
  width: 520px;
  opacity: 0.05;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 4rem;
  }
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.04em;
  color: var(--text);
}

.hero-tagline {
  margin-top: 1rem;
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--red);
}

.hero-description {
  max-width: 560px;
  margin: 1.5rem 0 2.25rem;
  color: var(--text-secondary);
  font-size: 1.0938rem;
}

.hero-visual {
  position: relative;
  max-width: 520px;
  width: 100%;
  justify-self: center;
  padding: 1.5rem 0;
}

.hero-frame {
  position: relative;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(201, 3, 16, 0.14);
  box-shadow: 0 30px 80px rgba(201, 3, 16, 0.1);
}

.hero-frame::before {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 50%;
  border: 1px dashed rgba(201, 3, 16, 0.22);
  z-index: 1;
  pointer-events: none;
}

.hero-frame-art {
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 40%, var(--white) 0, var(--red-light) 100%);
}

.hero-art {
  width: 78%;
  margin-top: 4%;
  transform-origin: 50% 100%;
  animation: tree-breathe 9s ease-in-out infinite;
}

.hero-frame-art picture {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
}

.hero-logo {
  width: 80%;
  height: auto;
}

.hero-photo,
.hero-frame:not(.hero-frame-art) picture {
  width: 100%;
  height: 100%;
}

.hero-photo {
  object-fit: cover;
}

@keyframes tree-breathe {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.025);
  }
}

.hero-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.25rem;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  z-index: 2;
}

.hero-chip-top {
  top: 8%;
  left: -4%;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

.hero-chip-bottom {
  right: -4%;
  bottom: 10%;
}

.hero-chip-number {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--red);
}

.hero-chip-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.hero-chip-bottom .hero-chip-label {
  color: var(--text);
  font-weight: 500;
}

.hero-chip-icon {
  width: 24px;
  height: 24px;
  color: var(--red);
}

@media (max-width: 560px) {
  .hero-chip {
    padding: 0.65rem 0.9rem;
  }

  .hero-chip-top {
    left: 0;
  }

  .hero-chip-bottom {
    right: 0;
  }

  .hero-chip-number {
    font-size: 1.4rem;
  }

  .hero-chip-label {
    font-size: 0.8125rem;
  }
}

/* ---------- Page header ---------- */

.page-header {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3.5rem, 8vw, 6rem) clamp(3rem, 7vw, 5rem);
  background:
    radial-gradient(circle at 90% 10%, var(--red-light), transparent 40%),
    var(--warm-white);
  border-bottom: 1px solid var(--border);
}

.page-header-tree {
  position: absolute;
  right: -60px;
  top: 50%;
  width: min(460px, 70vw);
  transform: translateY(-45%);
  opacity: 0.07;
  pointer-events: none;
}

.page-header-inner {
  position: relative;
}

.page-header-inner > .page-description,
.page-header-inner > .page-subtitle {
  max-width: 720px;
}

.page-title {
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 5.5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.03em;
}

.page-subtitle {
  margin-top: 1rem;
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 2.4vw, 1.5rem);
  color: var(--red);
  line-height: 1.6;
}

.page-description {
  margin-top: 1.25rem;
  color: var(--text-secondary);
  font-size: 1.0938rem;
}

.page-description p + p {
  margin-top: 0.9rem;
}

.page-header-inner > .btn-row {
  margin-top: 2rem;
}

.page-header-compact .badge {
  margin-bottom: 1rem;
}

.back-link {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 0.25rem;
  margin-bottom: 1.5rem;
  font-weight: 500;
}

/* ---------- Coming soon / empty states ---------- */

.coming-soon,
.empty-state {
  position: relative;
  max-width: 760px;
  margin-inline: auto;
  padding: clamp(2.5rem, 6vw, 4rem) clamp(1.5rem, 5vw, 3.5rem);
  text-align: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.coming-soon::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--red-deep), var(--red));
}

.coming-soon-icon,
.empty-state-icon {
  display: inline-grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin-bottom: 1.5rem;
  border-radius: 50%;
  background: var(--red-light);
  color: var(--red);
}

.coming-soon-icon .icon,
.empty-state-icon .icon {
  width: 32px;
  height: 32px;
}

.coming-soon-title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3.4vw, 2rem);
  font-weight: 700;
  color: var(--text);
}

.coming-soon-text,
.empty-state-text {
  max-width: 560px;
  margin: 1rem auto 2rem;
  color: var(--text-secondary);
}

.empty-state {
  border-style: dashed;
  border-color: rgba(201, 3, 16, 0.25);
  box-shadow: none;
  background: var(--white);
}

.empty-state-title {
  font-size: 1.375rem;
  font-weight: 700;
}

.empty-state-text {
  margin-bottom: 0;
}

.empty-state-actions {
  margin-top: 2rem;
}

/* ---------- CTA ---------- */

.cta-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(3rem, 7vw, 5rem) clamp(1.5rem, 5vw, 4rem);
  text-align: center;
  background:
    radial-gradient(circle at 50% 120%, rgba(201, 3, 16, 0.08), transparent 60%),
    var(--red-light);
  border: 1px solid rgba(201, 3, 16, 0.15);
  border-radius: var(--radius-lg);
}

.cta-tree {
  position: absolute;
  right: -80px;
  bottom: -120px;
  width: 360px;
  opacity: 0.08;
  pointer-events: none;
}

.cta-title {
  position: relative;
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.45;
  color: var(--text);
}

.cta-text {
  position: relative;
  max-width: 620px;
  margin: 1.25rem auto 2.25rem;
  color: var(--text-secondary);
  font-size: 1.0938rem;
}

.cta-note {
  position: relative;
  margin-top: 1.25rem;
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.inline-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2rem;
  padding: clamp(1.75rem, 4vw, 2.5rem);
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--red);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.inline-cta-copy {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  flex: 1 1 420px;
}

.inline-cta-title {
  font-size: 1.375rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

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

.highlight-card {
  padding: clamp(1.75rem, 4vw, 2.5rem);
  border-top: 3px solid var(--red);
}

.highlight-kicker {
  margin-bottom: 1.25rem;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--red);
}

.highlight-list {
  display: grid;
  gap: 1rem;
}

.highlight-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-weight: 500;
}

.mv-grid {
  align-items: stretch;
}

.mv-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: clamp(2rem, 4vw, 3rem);
}

.mv-mission {
  border-top: 3px solid var(--red);
}

.mv-heading {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.8vw, 1.75rem);
  font-weight: 700;
}

.mv-heading-en {
  margin-left: 0.4rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  vertical-align: middle;
}

.mv-statement {
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 700;
  color: var(--red);
  line-height: 1.5;
}

.history {
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 900px) {
  .history {
    grid-template-columns: 5fr 7fr;
    gap: 4rem;
  }

  .history-year {
    position: sticky;
    top: 8rem;
  }
}

.history-year {
  font-family: var(--font-serif);
  font-size: clamp(5rem, 16vw, 9.5rem);
  font-weight: 700;
  line-height: 1;
  color: var(--red);
  letter-spacing: 0.02em;
  text-align: center;
  background: linear-gradient(180deg, var(--red), var(--red-deep));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.timeline {
  position: relative;
  display: grid;
  gap: 1.5rem;
  padding-left: 1.75rem;
  border-left: 2px solid var(--red-soft);
}

.timeline-item {
  position: relative;
  display: grid;
  gap: 0.25rem;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: calc(-1.75rem - 7px);
  top: 0.45rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--red);
}

.timeline-year {
  font-weight: 700;
  color: var(--red);
  letter-spacing: 0.06em;
}

.timeline-title {
  font-size: 1.125rem;
  font-weight: 700;
}

.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.6rem 0 0;
  padding: 0;
  list-style: none;
}

.timeline-tags li {
  padding: 0.2rem 0.65rem;
  font-size: 0.8125rem;
  color: var(--red-deep);
  background: var(--white);
  border: 1px solid var(--red-soft);
  border-radius: 999px;
}

.timeline-tags a {
  color: inherit;
  text-decoration: none;
}

.timeline-tags a:hover,
.timeline-tags a:focus-visible {
  text-decoration: underline;
}

.timeline-tags li:has(a) {
  border-color: var(--red);
}

/* ---------- Events ---------- */

.event-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.event-card-media {
  display: block;
  aspect-ratio: 16 / 10;
  background: var(--red-light);
  overflow: hidden;
}

.event-card-media img,
.event-card-media picture {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.event-card:hover .event-card-media img {
  transform: scale(1.04);
}

.media-placeholder {
  display: grid;
  place-items: center;
  height: 100%;
  color: rgba(201, 3, 16, 0.45);
}

.media-placeholder .icon {
  width: 44px;
  height: 44px;
}

.event-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.5rem;
}

.stretched-link {
  color: inherit;
}

.stretched-link::after {
  content: "";
  position: absolute;
  inset: 0;
}

.event-meta {
  display: grid;
  gap: 0.35rem;
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.event-meta li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.event-meta .icon {
  color: var(--red);
  width: 1.05em;
  height: 1.05em;
}

.page-header .event-meta {
  margin-top: 1.25rem;
  font-size: 1rem;
}

.event-detail {
  max-width: 960px;
}

.event-detail-cover {
  margin-bottom: 2.5rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.event-detail .section-heading {
  margin-top: 4rem;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
  }
}

.gallery-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--red-light);
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: zoom-in;
}

.gallery-button picture,
.gallery-button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}

.gallery-button:hover img {
  transform: scale(1.05);
}

.gallery-caption {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.photo-credit {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.photo-credit .icon {
  width: 1rem;
  height: 1rem;
  color: var(--red);
}

.lightbox {
  width: 100vw;
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0;
  padding: clamp(1rem, 4vw, 3rem);
  border: 0;
  background: rgba(20, 10, 12, 0.92);
  color: var(--white);
}

.lightbox[open] {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
}

.lightbox::backdrop {
  background: transparent;
}

.lightbox-figure {
  display: grid;
  justify-items: center;
  gap: 1rem;
  min-width: 0;
  max-height: 100%;
}

.lightbox-figure img {
  max-height: 80dvh;
  width: auto;
  border-radius: var(--radius-sm);
  object-fit: contain;
}

.lightbox-figure figcaption {
  text-align: center;
  color: rgba(255, 255, 255, 0.85);
}

.lightbox-close,
.lightbox-nav {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  cursor: pointer;
}

.lightbox-close:hover,
.lightbox-nav:hover {
  background: var(--red);
  border-color: var(--red);
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
}

.lightbox-nav[hidden] {
  visibility: hidden;
}

@media (max-width: 640px) {
  .lightbox[open] {
    grid-template-columns: 1fr;
  }

  .lightbox-nav {
    position: absolute;
    bottom: 1.25rem;
  }

  .lightbox-prev {
    left: calc(50% - 60px);
  }

  .lightbox-next {
    right: calc(50% - 60px);
  }
}

/* ---------- Team ---------- */

.grid.team-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 280px));
  justify-content: center;
}

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

.member-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.member-photo {
  aspect-ratio: 1;
  background: linear-gradient(160deg, var(--red-light), var(--white));
  overflow: hidden;
}

.member-photo img,
.member-photo picture {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.member-initial {
  display: grid;
  place-items: center;
  height: 100%;
  font-family: var(--font-serif);
  font-size: 4rem;
  font-weight: 700;
  color: var(--red);
}

.member-body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.5rem;
}

.member-name {
  font-size: 1.25rem;
  font-weight: 700;
}

.member-position {
  color: var(--red);
  font-weight: 500;
}

.member-education {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.member-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  align-self: flex-start;
  min-height: 44px;
  font-weight: 500;
  position: relative;
  z-index: 1;
}

/* ---------- Join ---------- */

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 50px;
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--border);
  font-weight: 500;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(201, 3, 16, 0.15);
}

.status-closed .status-dot {
  background: #999999;
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.06);
}

.area-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: clamp(1.5rem, 3vw, 2rem);
}

.area-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}

.area-en {
  margin-top: -0.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--red);
}

.area-card.is-closed {
  background: var(--warm-white);
}

.area-card.is-closed .icon-badge {
  background: #f2f2f2;
  color: var(--text-secondary);
}

@media (min-width: 1024px) {
  .areas-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .areas-grid > * {
    grid-column: span 2;
  }

  .areas-grid > :nth-child(4) {
    grid-column: 2 / span 2;
  }
}

@media (min-width: 640px) and (max-width: 1023px) {
  .areas-grid > :last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  gap: 1.5rem;
}

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

  .contact-email {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1100px) {
  .contact-grid {
    grid-template-columns: 1.15fr 1fr 1fr;
  }

  .contact-email {
    grid-column: auto;
  }
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  padding: clamp(1.75rem, 3.5vw, 2.5rem);
}

.contact-email {
  border-top: 3px solid var(--red);
}

.email-display {
  font-size: clamp(1.25rem, 3vw, 1.6rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  word-break: break-all;
}

.contact-card .btn {
  margin-top: auto;
}

.qr-frame {
  display: grid;
  justify-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 1.25rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.qr-image {
  width: min(100%, 280px);
  height: auto;
  border-radius: var(--radius-sm);
}

.qr-frame figcaption {
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.qr-pending,
.info-note {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  margin-top: auto;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  background: var(--warm-white);
  border: 1px dashed rgba(201, 3, 16, 0.25);
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.qr-pending .icon,
.info-note .icon {
  color: var(--red);
  width: 22px;
  height: 22px;
}

.social-handle {
  font-weight: 500;
}

/* ---------- 404 ---------- */

.not-found {
  text-align: center;
}

.not-found-code {
  font-family: var(--font-serif);
  font-size: clamp(5rem, 18vw, 9rem);
  font-weight: 700;
  line-height: 1;
  color: var(--red-light);
  -webkit-text-stroke: 2px var(--red);
}

.not-found .page-title {
  margin-top: 1rem;
}

.not-found .btn-row {
  margin-top: 2rem;
}

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

.site-footer {
  padding: clamp(3rem, 7vw, 4.5rem) 0 2rem;
  background: var(--white);
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1.3fr;
    gap: 3rem;
  }
}

.footer-brand .brand-logo {
  width: 56px;
  height: 56px;
}

.footer-lockup {
  display: inline-block;
}

.footer-lockup-img {
  width: 300px;
  max-width: 100%;
}

.footer-en {
  margin-top: 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
}

.footer-blurb {
  max-width: 420px;
  margin-top: 0.5rem;
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.footer-heading {
  margin-bottom: 1rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.footer-col ul {
  display: grid;
  gap: 0.15rem;
}

.footer-col a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

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

.footer-contact li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.footer-contact .icon {
  width: 18px;
  height: 18px;
  color: var(--red);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.footer-mission {
  color: var(--red);
  letter-spacing: 0.08em;
}

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

[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

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

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

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
