/* ============================================================
   DECARDIONS SMP — style.css
   Black & graphite theme with silver highlights
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  --bg-0: #080808;
  --bg-1: #111111;
  --bg-2: #181818;
  --gray: #858585;
  --text-soft: #d4d4d4;
  --white: #ffffff;
  --border: #2a2a2a;
  --silver-1: #e9e9e9;
  --silver-2: #b0b0b0;
  --silver-3: #8f8f8f;

  --font-display: "Space Grotesk", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --container: 1200px;
  --nav-h: 72px;
  --radius: 16px;
  --radius-lg: 22px;

  --shadow-card: 0 18px 45px -20px rgba(0, 0, 0, 0.9);
  --glow: 0 0 0 1px rgba(255, 255, 255, 0.07), 0 14px 45px -18px rgba(255, 255, 255, 0.16);
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Reset & base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
  /* Entrance animations may shift content sideways while hidden;
     clip at the root so they can never create horizontal scrolling.
     Older engines ignore `clip` and fall back to body's overflow-x. */
  overflow-x: clip;
}

body {
  background: var(--bg-0);
  color: var(--text-soft);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

ul,
ol {
  list-style: none;
}

[hidden] {
  display: none !important;
}

::selection {
  background: rgba(255, 255, 255, 0.85);
  color: #050505;
}

:focus-visible {
  outline: 2px solid var(--silver-1);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 40px);
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--white);
  color: #050505;
  font-weight: 600;
  border-radius: 8px;
  transform: translateY(-200%);
  transition: transform 0.25s var(--ease-out);
}

.skip-link:focus-visible {
  transform: none;
}

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.05);
  z-index: 120;
  pointer-events: none;
}

.scroll-progress__bar {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--silver-3), var(--silver-1), var(--white));
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.55);
  transition: width 0.12s linear;
}

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.83rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out),
    background-color 0.35s var(--ease-out), border-color 0.35s var(--ease-out),
    color 0.35s var(--ease-out);
}

.btn-icon {
  width: 18px;
  height: 18px;
  flex: none;
}

.btn--sm {
  padding: 10px 20px;
  font-size: 0.75rem;
}

.btn--lg {
  padding: 16px 34px;
  font-size: 0.87rem;
}

.btn--xl {
  padding: 20px 48px;
  font-size: 0.95rem;
}

.btn--block {
  width: 100%;
}

.btn--primary {
  background: linear-gradient(135deg, var(--white) 0%, var(--silver-2) 100%);
  color: #060606;
  box-shadow: 0 12px 32px -14px rgba(255, 255, 255, 0.5);
}

.btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 44px -14px rgba(255, 255, 255, 0.55);
}

.btn--primary:active {
  transform: translateY(-1px);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--border);
  color: var(--white);
  backdrop-filter: blur(6px);
}

.btn--ghost:hover {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-3px);
  box-shadow: var(--glow);
}

.btn--pulse::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.35);
  animation: pulseRing 2.6s ease-out infinite;
  pointer-events: none;
}

@keyframes pulseRing {
  0% { transform: scale(0.98); opacity: 0.9; }
  70% { transform: scale(1.06); opacity: 0; }
  100% { transform: scale(1.06); opacity: 0; }
}

/* ---------- Logo with fallback ---------- */
.logo-wrap {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(140deg, #1d1d1d, #0c0c0c);
  border: 1px solid var(--border);
}

.logo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.logo-placeholder {
  display: none;
  place-items: center;
  width: 100%;
  height: 100%;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--silver-1);
  background: linear-gradient(135deg, #232323, #0d0d0d);
}

.logo-wrap.is-fallback img {
  display: none;
}

.logo-wrap.is-fallback .logo-placeholder {
  display: grid;
}

.logo-wrap--sm {
  width: 40px;
  height: 40px;
  font-size: 0.62rem;
}

.logo-wrap--lg {
  width: clamp(92px, 13vw, 132px);
  height: clamp(92px, 13vw, 132px);
  font-size: 1.5rem;
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 0 60px -14px rgba(255, 255, 255, 0.35);
}

/* ---------- Navigation ---------- */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 0.4s var(--ease-out), border-color 0.4s var(--ease-out),
    backdrop-filter 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.site-nav.is-scrolled {
  background: rgba(8, 8, 8, 0.78);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--border);
  box-shadow: 0 12px 40px -24px rgba(0, 0, 0, 0.95);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--nav-h);
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
}

.nav-brand__text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.14em;
  color: var(--white);
}

.nav-brand__text span {
  color: var(--silver-3);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  position: relative;
  padding: 9px 14px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-soft);
  border-radius: 8px;
  transition: color 0.3s var(--ease-out), background-color 0.3s var(--ease-out);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--silver-1), transparent);
  transform: scaleX(0);
  transition: transform 0.35s var(--ease-out);
}

.nav-links a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.05);
}

.nav-links a.is-active {
  color: var(--white);
}

.nav-links a.is-active::after,
.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
}

.nav-toggle__bar {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.35s var(--ease-out), opacity 0.25s var(--ease-out);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(3px);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.35s var(--ease-out);
}

.nav-backdrop.is-visible {
  opacity: 1;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-h) + 40px) 0 110px;
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.hero-bg__base {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% 8%, rgba(120, 120, 120, 0.16), transparent 65%),
    radial-gradient(ellipse 100% 60% at 50% 100%, rgba(30, 30, 30, 0.9), transparent 70%),
    linear-gradient(180deg, #0b0b0b 0%, var(--bg-0) 55%, #050505 100%);
}

.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.26;
  filter: grayscale(0.75) contrast(1.15) brightness(0.62);
}

.hero-mountains {
  position: absolute;
  left: -4%;
  bottom: 0;
  width: 108%;
  height: auto;
  will-change: transform;
}

.hero-mountains--far {
  fill: #161616;
  opacity: 0.9;
}

.hero-mountains--far path {
  stroke: rgba(255, 255, 255, 0.05);
  stroke-width: 2;
}

.hero-mountains--near {
  fill: #0a0a0a;
}

.hero-fog {
  position: absolute;
  left: -30%;
  width: 160%;
  pointer-events: none;
  filter: blur(46px);
  opacity: 0.5;
}

.hero-fog--1 {
  bottom: -6%;
  height: 46%;
  background: radial-gradient(ellipse at 50% 60%, rgba(160, 160, 160, 0.16), transparent 68%);
  animation: fogDrift 46s ease-in-out infinite alternate;
}

.hero-fog--2 {
  bottom: 12%;
  height: 34%;
  background: radial-gradient(ellipse at 50% 50%, rgba(200, 200, 200, 0.1), transparent 65%);
  animation: fogDrift 64s ease-in-out infinite alternate-reverse;
}

@keyframes fogDrift {
  from { transform: translate3d(-6%, 0, 0) scale(1); }
  to { transform: translate3d(6%, -3%, 0) scale(1.08); }
}

.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-particles span {
  position: absolute;
  bottom: -12px;
  width: var(--size, 2px);
  height: var(--size, 2px);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
  opacity: 0;
  animation: particleRise var(--dur, 20s) linear var(--delay, 0s) infinite;
}

@keyframes particleRise {
  0% { transform: translate3d(0, 0, 0) scale(0.6); opacity: 0; }
  12% { opacity: var(--alpha, 0.5); }
  85% { opacity: var(--alpha, 0.5); }
  100% { transform: translate3d(var(--drift, 30px), -102vh, 0) scale(1); opacity: 0; }
}

.hero-vignette {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 8, 8, 0.85) 0%, transparent 26%, transparent 60%, rgba(8, 8, 8, 0.96) 100%),
    radial-gradient(ellipse at center, transparent 40%, rgba(0, 0, 0, 0.66) 100%);
}

.hero-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  max-width: 940px;
}

.hero-logo {
  animation: heroIn 1s var(--ease-out) var(--hd, 0s) both;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(24, 24, 24, 0.6);
  backdrop-filter: blur(10px);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  color: var(--silver-2);
  animation: heroIn 1s var(--ease-out) var(--hd, 0s) both;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--silver-1);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.9);
  animation: blink 2.4s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.9rem, 9vw, 6.4rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: 0.02em;
  color: var(--white);
  text-shadow: 0 10px 60px rgba(0, 0, 0, 0.9);
  animation: heroIn 1s var(--ease-out) var(--hd, 0s) both;
}

.grad {
  background: linear-gradient(120deg, var(--white) 0%, var(--silver-2) 55%, #6f6f6f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero-subtitle {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.6vw, 1.5rem);
  font-weight: 500;
  font-style: italic;
  letter-spacing: 0.12em;
  color: var(--silver-2);
  animation: heroIn 1s var(--ease-out) var(--hd, 0s) both;
}

.hero-desc {
  max-width: 640px;
  font-size: clamp(0.98rem, 1.6vw, 1.1rem);
  color: var(--gray);
  animation: heroIn 1s var(--ease-out) var(--hd, 0s) both;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 12px;
  animation: heroIn 1s var(--ease-out) var(--hd, 0s) both;
}

@keyframes heroIn {
  from { opacity: 0; transform: translate3d(0, 28px, 0); }
  to { opacity: 1; transform: none; }
}

.scroll-indicator {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.75;
  transition: opacity 0.3s var(--ease-out);
}

.scroll-indicator:hover {
  opacity: 1;
}

.scroll-indicator__mouse {
  width: 24px;
  height: 38px;
  border: 1.5px solid var(--silver-3);
  border-radius: 14px;
  display: grid;
  justify-items: center;
  padding-top: 7px;
}

.scroll-indicator__wheel {
  width: 3px;
  height: 7px;
  border-radius: 3px;
  background: var(--silver-1);
  animation: wheel 1.9s ease-in-out infinite;
}

@keyframes wheel {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(11px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

.scroll-indicator__text {
  font-family: var(--font-display);
  font-size: 0.62rem;
  letter-spacing: 0.34em;
  color: var(--gray);
}

/* ---------- Sections ---------- */
.section {
  position: relative;
  padding: clamp(76px, 10vw, 132px) 0;
}

.section--alt {
  background: linear-gradient(180deg, var(--bg-1) 0%, var(--bg-0) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  max-width: 760px;
  margin: 0 auto clamp(40px, 6vw, 64px);
  text-align: center;
}

.section-head--left {
  margin-inline: 0;
  text-align: left;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  color: var(--silver-3);
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 26px;
  height: 1px;
  margin-right: 12px;
  vertical-align: middle;
  background: linear-gradient(90deg, transparent, var(--silver-3));
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4.4vw, 2.9rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: 0.015em;
  color: var(--white);
}

.section-sub {
  margin-top: 16px;
  font-size: clamp(0.98rem, 1.5vw, 1.08rem);
  color: var(--gray);
}

/* ---------- Grids & cards ---------- */
/* Grid/flex items must be allowed to shrink below their intrinsic
   text width, otherwise long words push single-column layouts
   wider than the viewport (horizontal overflow on mobile). */
.grid > *,
.about-grid > *,
.about-list > *,
.gallery-grid > *,
.staff-groups > *,
.steps > *,
.contact-grid > *,
.contact-info > *,
.form-row > *,
.footer-grid > * {
  min-width: 0;
}

.grid {
  display: grid;
  gap: 22px;
}

.grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.card {
  position: relative;
  background: linear-gradient(160deg, var(--bg-2) 0%, #141414 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  overflow: hidden;
  transition: transform 0.45s var(--ease-out), border-color 0.45s var(--ease-out),
    box-shadow 0.45s var(--ease-out);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px 180px at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, 0.07), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s var(--ease-out);
  pointer-events: none;
}

.card:hover {
  transform: translateY(-7px);
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow: var(--glow), var(--shadow-card);
}

.card:hover::before {
  opacity: 1;
}

.card h3 {
  font-family: var(--font-display);
  font-size: 1.06rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 10px;
  letter-spacing: 0.01em;
}

.card p {
  font-size: 0.93rem;
  color: var(--gray);
}

.feature-card__icon,
.tile__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 20px;
  border-radius: 14px;
  background: linear-gradient(140deg, #232323, #101010);
  border: 1px solid var(--border);
  color: var(--silver-2);
  transition: color 0.4s var(--ease-out), border-color 0.4s var(--ease-out),
    box-shadow 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}

.feature-card__icon svg,
.tile__icon svg {
  width: 26px;
  height: 26px;
}

.card:hover .feature-card__icon,
.card:hover .tile__icon {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 26px -6px rgba(255, 255, 255, 0.35);
  transform: translateY(-3px);
}

/* feature tiles (section 9) */
.tile {
  text-align: left;
}

.tile h3 {
  font-size: 0.95rem;
  letter-spacing: 0.14em;
}

.tile::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--silver-2), transparent);
  transform: scaleX(0);
  transition: transform 0.5s var(--ease-out);
}

.tile:hover::after {
  transform: scaleX(1);
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(36px, 6vw, 72px);
  align-items: center;
}

.about-copy .section-head {
  margin-bottom: 26px;
}

.about-lead {
  font-size: clamp(1.02rem, 1.7vw, 1.16rem);
  color: var(--text-soft);
  margin-bottom: 16px;
}

.about-text {
  color: var(--gray);
  margin-bottom: 28px;
}

.about-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 22px;
}

.about-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.93rem;
  color: var(--text-soft);
}

.check {
  display: grid;
  place-items: center;
  flex: none;
  width: 24px;
  height: 24px;
  margin-top: 1px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--silver-1);
}

.check svg {
  width: 13px;
  height: 13px;
}

.about-media {
  position: relative;
}

.about-media__frame {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}

.about-media__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.35) brightness(0.85);
  transition: transform 0.8s var(--ease-out), filter 0.6s var(--ease-out);
}

.about-media:hover .about-media__frame img {
  transform: scale(1.05);
  filter: grayscale(0) brightness(0.95);
}

.about-media__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 8, 8, 0.25) 0%, transparent 40%, rgba(8, 8, 8, 0.7) 100%);
  pointer-events: none;
}

.media-placeholder {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  padding: 20px;
  text-align: center;
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.26em;
  color: var(--silver-3);
  background:
    repeating-linear-gradient(90deg, #141414 0 32px, #171717 32px 64px),
    repeating-linear-gradient(0deg, #141414 0 32px, #171717 32px 64px);
}

.is-fallback > .media-placeholder,
.is-fallback .media-placeholder {
  display: grid;
}

.is-fallback > img,
.is-fallback img {
  display: none;
}

.about-media__caption {
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--gray);
  text-align: center;
  letter-spacing: 0.04em;
}

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.gallery-card {
  position: relative;
  display: block;
  text-align: left;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-2);
  transition: transform 0.5s var(--ease-out), border-color 0.5s var(--ease-out),
    box-shadow 0.5s var(--ease-out);
}

.gallery-card:nth-child(2) {
  transform: translateY(28px);
}

.gallery-card:hover {
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: var(--glow), var(--shadow-card);
}

.gallery-card:nth-child(2):hover {
  transform: translateY(20px);
}

.gallery-card:not(:nth-child(2)):hover {
  transform: translateY(-7px);
}

.gallery-card__media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

.gallery-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) brightness(0.8) contrast(1.05);
  transform: scale(1.02);
  transition: transform 0.9s var(--ease-out), filter 0.7s var(--ease-out);
}

.gallery-card:hover .gallery-card__media img {
  transform: scale(1.12);
  filter: grayscale(0) brightness(0.95) contrast(1.05);
}

.gallery-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 8, 8, 0.15) 0%, transparent 35%, rgba(8, 8, 8, 0.85) 100%);
  pointer-events: none;
}

.gallery-card__label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 20px;
  z-index: 2;
}

.gallery-card__index {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--silver-3);
}

.gallery-card__name {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--white);
}

/* ---------- Staff ---------- */
.staff-groups {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.staff-group {
  background: linear-gradient(160deg, var(--bg-2) 0%, #131313 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  transition: border-color 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out),
    transform 0.45s var(--ease-out);
}

.staff-group:hover {
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: var(--glow);
  transform: translateY(-4px);
}

.staff-rank {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--silver-3);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.staff-rank--lead {
  color: var(--white);
}

.staff-members {
  display: grid;
  gap: 10px;
}

.staff-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  transition: background-color 0.35s var(--ease-out), border-color 0.35s var(--ease-out);
}

.staff-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border);
}

.staff-avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(140deg, #262626, #101010);
  border: 1px solid var(--border);
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--silver-2);
}

.staff-card:hover .staff-avatar {
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--white);
  box-shadow: 0 0 18px -6px rgba(255, 255, 255, 0.4);
}

.staff-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.staff-name {
  font-family: var(--font-display);
  font-size: 0.97rem;
  font-weight: 600;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.staff-role {
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray);
}

/* ---------- Join / whitelist ---------- */
.join-section {
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(140, 140, 140, 0.08), transparent 70%),
    var(--bg-0);
  overflow: hidden;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 30px 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(24, 24, 24, 0.9), rgba(14, 14, 14, 0.9));
  transition: transform 0.45s var(--ease-out), border-color 0.45s var(--ease-out),
    box-shadow 0.45s var(--ease-out);
}

.step:hover {
  transform: translateY(-7px);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: var(--glow), var(--shadow-card);
}

.step__num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.32);
  margin-bottom: 18px;
}

.step__title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--white);
  margin-bottom: 8px;
}

.step__text {
  font-size: 0.93rem;
  color: var(--gray);
}

.join-cta {
  margin-top: clamp(40px, 6vw, 60px);
  text-align: center;
}

.join-note {
  max-width: 560px;
  margin: 22px auto 0;
  font-size: 0.87rem;
  color: var(--gray);
}

/* ---------- Discord panel ---------- */
.discord-panel {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(150deg, #191919 0%, #0d0d0d 60%, #141414 100%);
  overflow: hidden;
  padding: clamp(36px, 6vw, 64px);
}

.discord-panel__glow {
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(circle at 22% 30%, rgba(255, 255, 255, 0.1), transparent 45%),
    radial-gradient(circle at 80% 75%, rgba(255, 255, 255, 0.07), transparent 45%);
  animation: glowShift 16s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes glowShift {
  from { transform: translate3d(-2%, -2%, 0) scale(1); }
  to { transform: translate3d(3%, 2%, 0) scale(1.06); }
}

.discord-panel__inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(24px, 4vw, 44px);
  flex-wrap: wrap;
}

.discord-panel__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: clamp(76px, 9vw, 104px);
  height: clamp(76px, 9vw, 104px);
  border-radius: 26px;
  background: linear-gradient(140deg, #242424, #0f0f0f);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--white);
  box-shadow: 0 0 60px -18px rgba(255, 255, 255, 0.5);
}

.discord-panel__icon svg {
  width: 52%;
  height: 52%;
}

.discord-panel__copy {
  flex: 1 1 340px;
}

.discord-panel__copy p {
  margin-top: 14px;
  color: var(--gray);
  max-width: 620px;
}

.discord-panel__inner > .btn {
  flex: none;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(28px, 4vw, 44px);
  align-items: start;
}

.contact-info {
  display: grid;
  gap: 16px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--bg-2), #131313);
  transition: transform 0.4s var(--ease-out), border-color 0.4s var(--ease-out),
    box-shadow 0.4s var(--ease-out);
}

.contact-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.26);
  box-shadow: var(--glow);
}

.contact-card__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--silver-2);
}

.contact-card__icon svg {
  width: 22px;
  height: 22px;
}

.contact-card:hover .contact-card__icon {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.3);
}

.contact-card__body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.contact-card__label {
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.26em;
  color: var(--silver-3);
}

.contact-card__value {
  font-size: 0.95rem;
  color: var(--white);
  overflow-wrap: anywhere;
}

.contact-form {
  padding: clamp(24px, 3.4vw, 36px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--bg-2), #121212);
  display: grid;
  gap: 18px;
}

.form-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 14px 16px;
  border: 1px dashed var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.83rem;
  color: var(--gray);
  overflow-wrap: anywhere;
  min-width: 0;
}

.form-note svg {
  flex: none;
  width: 17px;
  height: 17px;
  margin-top: 3px;
  color: var(--silver-3);
}

.form-note a {
  color: var(--text-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.form-note a:hover {
  color: var(--white);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field {
  display: grid;
  gap: 7px;
}

.field label {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--silver-3);
}

.field input,
.field textarea {
  width: 100%;
  padding: 13px 16px;
  background: #0d0d0d;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #5f5f5f;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.09);
}

.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: #a35a5a;
}

.field__error {
  min-height: 1em;
  font-size: 0.78rem;
  color: #d58f8f;
}

.form-status {
  min-height: 1.2em;
  font-size: 0.87rem;
  color: var(--silver-2);
  text-align: center;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, var(--bg-1), #060606);
  padding: clamp(48px, 7vw, 72px) 0 34px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: clamp(28px, 4vw, 48px);
  padding-bottom: 36px;
  border-bottom: 1px solid var(--border);
}

.footer-tagline {
  margin-top: 16px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  color: var(--silver-3);
}

.footer-heading {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  color: var(--white);
  margin-bottom: 16px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.footer-col a {
  font-size: 0.92rem;
  color: var(--gray);
  transition: color 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}

.footer-col a:hover {
  color: var(--white);
  transform: translateX(3px);
}

.footer-col .btn {
  transform: none;
  color: var(--white);
}

.footer-note {
  font-size: 0.87rem;
  color: var(--gray);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  padding-top: 26px;
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--text-soft);
}

.footer-legal {
  max-width: 620px;
  font-size: 0.76rem;
  line-height: 1.6;
  color: #6d6d6d;
  text-align: right;
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: grid;
  place-items: center;
  padding: clamp(16px, 4vw, 48px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease-out), visibility 0.35s var(--ease-out);
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 4, 4, 0.92);
  backdrop-filter: blur(10px);
}

.lightbox__figure {
  position: relative;
  max-width: min(1100px, 94vw);
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transform: scale(0.96) translateY(10px);
  transition: transform 0.4s var(--ease-out);
}

.lightbox.is-open .lightbox__figure {
  transform: none;
}

.lightbox__img {
  max-width: 100%;
  max-height: 74vh;
  width: auto;
  height: auto;
  margin-inline: auto;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 1);
  background: var(--bg-2);
}

.lightbox__caption {
  text-align: center;
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.26em;
  color: var(--silver-2);
}

.lightbox__btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: rgba(17, 17, 17, 0.8);
  color: var(--white);
  backdrop-filter: blur(8px);
  transition: background-color 0.3s var(--ease-out), border-color 0.3s var(--ease-out),
    transform 0.3s var(--ease-out);
}

.lightbox__btn svg {
  width: 20px;
  height: 20px;
}

.lightbox__btn:hover {
  background: rgba(40, 40, 40, 0.95);
  border-color: rgba(255, 255, 255, 0.45);
  transform: scale(1.06);
}

.lightbox__btn--close {
  top: clamp(14px, 3vw, 30px);
  right: clamp(14px, 3vw, 30px);
}

.lightbox__btn--prev,
.lightbox__btn--next {
  top: 50%;
  transform: translateY(-50%);
}

.lightbox__btn--prev:hover,
.lightbox__btn--next:hover {
  transform: translateY(-50%) scale(1.06);
}

.lightbox__btn--prev {
  left: clamp(10px, 2.5vw, 28px);
}

.lightbox__btn--next {
  right: clamp(10px, 2.5vw, 28px);
}

/* ---------- Scroll reveal system ---------- */
[data-reveal] {
  opacity: 0;
  transform: translate3d(0, 30px, 0);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
  will-change: opacity, transform;
}

[data-reveal="left"] {
  transform: translate3d(-46px, 0, 0);
}

[data-reveal="right"] {
  transform: translate3d(46px, 0, 0);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Scrollspy-safe section anchor offset ---------- */
section[id] {
  scroll-margin-top: calc(var(--nav-h) + 12px);
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .staff-groups {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 940px) {
  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 18px clamp(20px, 5vw, 40px) 26px;
    background: rgba(8, 8, 8, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out),
      visibility 0.35s var(--ease-out);
  }

  .nav-links.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav-links a {
    padding: 14px 12px;
    font-size: 1rem;
    border-bottom: 1px solid rgba(42, 42, 42, 0.6);
    border-radius: 0;
  }

  .nav-links a::after {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-backdrop {
    display: block;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-media {
    order: -1;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-card:nth-child(2) {
    transform: none;
  }

  .gallery-card:nth-child(2):hover,
  .gallery-card:not(:nth-child(2)):hover {
    transform: translateY(-7px);
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .grid--3 {
    grid-template-columns: 1fr;
  }

  .staff-groups {
    grid-template-columns: 1fr;
  }

  .about-list {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .footer-legal {
    text-align: left;
  }

  .hero-cta {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .hero-cta .btn {
    width: 100%;
  }

  .discord-panel__inner {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .lightbox__btn--prev,
  .lightbox__btn--next {
    top: auto;
    bottom: 14px;
    transform: none;
  }

  .lightbox__btn--prev:hover,
  .lightbox__btn--next:hover {
    transform: scale(1.06);
  }

  .lightbox__btn--prev {
    left: calc(50% - 60px);
  }

  .lightbox__btn--next {
    right: calc(50% - 60px);
  }
}

@media (max-width: 560px) {
  .grid--4 {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .nav-discord {
    display: none;
  }

  .nav-brand__text {
    font-size: 0.86rem;
    letter-spacing: 0.1em;
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
    scroll-behavior: auto !important;
  }

  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }

  .hero-fog,
  .discord-panel__glow {
    animation: none !important;
  }

  .hero-particles {
    display: none;
  }
}
