﻿:root {
  --bg: #07111c;
  --surface: #132430;
  --surface-soft: #1a303e;
  --text: #eef4f6;
  --muted: #bdd0d7;
  --accent: #d8ab70;
  --accent-strong: #c48f50;
  --line: rgba(238, 244, 246, 0.2);
  --shadow: 0 24px 50px rgba(3, 10, 16, 0.45);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --header-height: 84px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: "Work Sans", "Segoe UI", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

.site-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  background:
    radial-gradient(circle at 18% 14%, rgba(92, 134, 172, 0.12), transparent 40%),
    radial-gradient(circle at 86% 10%, rgba(63, 102, 141, 0.12), transparent 36%),
    linear-gradient(180deg, #050c13 0%, #08131f 56%, #0d1d2d 100%);
}

.site-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.08;
  background-image: radial-gradient(rgba(255, 255, 255, 0.5) 0.6px, transparent 0.6px);
  background-size: 3px 3px;
  mix-blend-mode: soft-light;
}

.site-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.24;
  background:
    linear-gradient(112deg, transparent 2%, rgba(171, 205, 236, 0.08) 48%, transparent 73%),
    radial-gradient(circle at 24% 82%, rgba(255, 255, 255, 0.06), transparent 34%);
  transform: translateX(-14%);
}

.container {
  width: min(1120px, calc(100% - 2.6rem));
  margin-inline: auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  width: 100%;
  z-index: 30;
  border-bottom: 1px solid transparent;
  transition: background-color 300ms ease, border-color 300ms ease, box-shadow 300ms ease;
}

.site-header.is-scrolled {
  background: rgba(9, 18, 26, 0.9);
  border-color: var(--line);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 30px rgba(2, 8, 12, 0.3);
}

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

.brand {
  display: inline-flex;
  align-items: center;
}

.brand img {
  width: auto;
  height: 44px;
  aspect-ratio: 686 / 447;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.main-nav a {
  padding: 0.55rem 0.78rem;
  color: var(--muted);
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 240ms ease, background-color 240ms ease;
}

.main-nav a[aria-current="page"],
.main-nav a:hover {
  color: var(--text);
  background: rgba(216, 171, 112, 0.2);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  padding: 0.5rem;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin-block: 6px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 220ms ease, opacity 220ms ease;
}

.hero {
  position: relative;
  min-height: 100svh;
  padding-top: calc(var(--header-height) + 3.3rem);
  display: flex;
  align-items: center;
  overflow: clip;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media img {
  width: 100%;
  height: 110%;
  object-fit: cover;
  transform: scale(1.08);
  filter: saturate(1.06) contrast(1.04);
  will-change: transform;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to right, rgba(8, 18, 26, 0.82), rgba(8, 18, 26, 0.34)),
    linear-gradient(to top, rgba(8, 18, 26, 0.9), rgba(8, 18, 26, 0.1) 64%);
}

.hero-content {
  max-width: 760px;
  padding-bottom: clamp(3rem, 6vw, 4.5rem);
  display: flex;
  flex-direction: column;
}

.hero-logo {
  width: clamp(190px, 28vw, 320px);
  height: auto;
  aspect-ratio: 686 / 447;
  object-fit: contain;
  align-self: flex-end;
  margin: 0 0 0.8rem;
  opacity: 0.98;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.42));
}

.eyebrow {
  margin: 0 0 0.65rem;
  color: #f1d9b5;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  font-weight: 600;
  font-size: 0.76rem;
}

h1,
h2,
h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  line-height: 1.1;
  margin: 0;
}

h1 {
  font-size: clamp(3rem, 8.8vw, 6rem);
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.65rem;
}

.hero-copy {
  max-width: 62ch;
  margin: 0 0 1.9rem;
  color: #dce8eb;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.72rem 1.3rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

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

.btn-primary {
  background: var(--accent);
  color: #1a120a;
}

.btn-primary:hover {
  background: var(--accent-strong);
}

.btn-secondary {
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--text);
  background: rgba(7, 12, 18, 0.2);
}

.hero-stats {
  margin: 2.2rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.hero-stats li {
  padding: 0.55rem 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  font-size: 0.92rem;
  backdrop-filter: blur(3px);
}

.hero-stats span {
  color: var(--accent);
  font-weight: 700;
  margin-right: 0.38rem;
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 1.6rem;
  transform: translateX(-50%);
  width: 28px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  display: grid;
  place-items: center;
  opacity: 0.75;
}

.scroll-hint span {
  width: 4px;
  height: 9px;
  border-radius: 999px;
  background: #fff;
  animation: hintMove 1.7s ease-in-out infinite;
}

@keyframes hintMove {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.4;
  }
  50% {
    transform: translateY(8px);
    opacity: 1;
  }
}

.section {
  position: relative;
  padding: clamp(4.2rem, 8vw, 6.4rem) 0;
  scroll-margin-top: calc(var(--header-height) + 0.8rem);
}

.split-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(1.4rem, 4vw, 2.8rem);
  align-items: center;
}

.about-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.about-visual img,
.tech-visual img {
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.fact-grid {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.fact-card {
  padding: 1.05rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.fact-card h3 {
  font-size: 1.4rem;
}

.fact-card p {
  margin: 0.4rem 0 0;
  color: var(--muted);
  font-size: 0.93rem;
}

.lineup {
  background: transparent;
}

.member-grid {
  margin-top: 1.9rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  align-items: stretch;
  gap: 1rem;
}

.member-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  transition: transform 220ms ease, border-color 220ms ease;
}

.member-card:hover {
  transform: translateY(-5px);
  border-color: rgba(216, 171, 112, 0.55);
}

.member-card img {
  height: 320px;
  object-fit: cover;
  object-position: center 18%;
}

.member-card h3 {
  margin: 0.9rem 1rem 0.2rem;
  font-size: 1.65rem;
}

.member-card p {
  margin: 0 1rem 1rem;
  color: var(--muted);
  font-size: 0.93rem;
}

.section-intro {
  max-width: 70ch;
  color: var(--muted);
  margin: 0;
}

.program-grid {
  margin-top: 1.6rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.program-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: rgba(255, 255, 255, 0.03);
  transition: transform 220ms ease, border-color 220ms ease;
}

.program-card:hover {
  transform: translateY(-5px);
  border-color: rgba(216, 171, 112, 0.55);
}

.program-card img {
  height: 240px;
  object-fit: cover;
}

.program-card-content {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1;
}

.program-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.program-tags {
  margin: auto 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.48rem;
}

.program-tags li {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.34rem 0.72rem;
  font-size: 0.8rem;
  background: rgba(255, 255, 255, 0.035);
}

.dates {
  background: transparent;
}

.calendar-panel {
  margin-top: 1.25rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.05rem;
  align-items: start;
}

.calendar-block {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, rgba(17, 32, 44, 0.76), rgba(8, 15, 21, 0.82));
  padding: 1.05rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.calendar-block h3 {
  font-size: 1.6rem;
}

.calendar-subtitle {
  margin: 0.35rem 0 0.55rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.calendar-status {
  margin: 0.15rem 0 0.8rem;
  color: #dce8eb;
  font-size: 0.88rem;
}

.calendar-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.62rem;
}

.upcoming-list {
  margin-top: 0;
}

.past-list {
  margin-top: 0;
}

.calendar-row {
  display: grid;
  grid-template-columns: minmax(124px, 138px) 1fr;
  gap: 0.85rem;
  align-items: stretch;
  padding: 0.62rem 0.72rem;
  border-radius: 12px;
  border: 1px solid rgba(216, 171, 112, 0.24);
  background: rgba(8, 20, 30, 0.82);
}

.calendar-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.2rem;
  min-width: 0;
}

.calendar-col.is-right {
  border-left: 1px solid rgba(216, 171, 112, 0.3);
  padding-left: 0.8rem;
}

.calendar-main,
.calendar-sub {
  display: block;
  overflow-wrap: anywhere;
}

.calendar-main {
  color: #ecf4f6;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.24;
}

.calendar-sub {
  color: #c7d8df;
  font-size: 0.82rem;
  line-height: 1.22;
}

.calendar-col.is-left .calendar-main {
  color: #f3d8aa;
  font-weight: 700;
  white-space: nowrap;
}

.calendar-col.is-left .calendar-sub {
  color: #d8e4e8;
  white-space: nowrap;
}

.event-empty {
  color: var(--muted);
  font-style: italic;
}

.calendar-list li.event-empty {
  display: block;
  padding: 0.55rem 0.6rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.past-more-wrap {
  margin-top: 0.82rem;
  display: flex;
  justify-content: flex-start;
}

.calendar-toggle {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(216, 171, 112, 0.1);
  color: #f1d9b5;
  font-size: 0.84rem;
  font-weight: 600;
  padding: 0.45rem 0.9rem;
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease;
}

.calendar-toggle:hover {
  border-color: rgba(216, 171, 112, 0.7);
  background: rgba(216, 171, 112, 0.18);
}

.tech-list {
  margin: 1.1rem 0 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.tech-list li + li {
  margin-top: 0.4rem;
}

.contact-box {
  padding: clamp(1.2rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(18, 33, 43, 0.6), rgba(9, 16, 22, 0.7));
  display: grid;
  grid-template-columns: 1.2fr auto;
  gap: 1.4rem;
  align-items: center;
}

.contact-links {
  margin-top: 1.2rem;
  display: grid;
  gap: 0.55rem;
}

.company-name {
  margin: 0 0 0.35rem;
  color: #f1d9b5;
  font-weight: 600;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  width: fit-content;
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #f4dfbe;
  background: rgba(255, 255, 255, 0.04);
}

.social-icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex-shrink: 0;
}

.contact-cta {
  display: grid;
  justify-items: start;
  gap: 0.75rem;
}

.contact-cta p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.2rem 0 1.6rem;
}

.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.footer-links {
  display: inline-flex;
  align-items: center;
  gap: 0.95rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.footer-brand img {
  width: 108px;
  height: auto;
  opacity: 0.9;
}

.site-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.site-footer a {
  color: #f3dab3;
  font-size: 0.9rem;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 620ms ease, transform 620ms ease;
  will-change: opacity, transform;
}

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

@media (max-width: 1024px) {
  .member-grid,
  .program-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split-layout,
  .contact-box {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .calendar-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  :root {
    --header-height: 72px;
  }

  .brand img {
    height: 38px;
  }

  .menu-toggle {
    display: inline-block;
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .main-nav {
    position: absolute;
    top: calc(var(--header-height) - 2px);
    right: 1.1rem;
    left: 1.1rem;
    display: grid;
    gap: 0.25rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: rgba(9, 16, 22, 0.98);
    padding: 0.5rem;
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: transform 220ms ease, opacity 220ms ease;
  }

  .main-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .main-nav a {
    padding: 0.66rem 0.7rem;
    border-radius: 10px;
  }

  .hero {
    min-height: 88svh;
  }

  .hero-logo {
    width: clamp(150px, 45vw, 220px);
  }

  .hero-copy {
    font-size: 0.96rem;
  }

  .scroll-hint {
    display: none;
  }

  .fact-grid,
  .about-visual,
  .member-grid,
  .program-grid {
    grid-template-columns: 1fr;
  }

  .member-card img {
    height: 300px;
  }

  .calendar-row {
    grid-template-columns: minmax(94px, 108px) 1fr;
    gap: 0.62rem;
    padding: 0.58rem 0.6rem;
  }

  .footer-brand img {
    width: 88px;
  }

  .footer-links {
    width: 100%;
    justify-content: space-between;
  }

  .section {
    padding: 3.5rem 0;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }

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