/* ============================================
   ОГП — Premium Legal Landing
   Palette: espresso / coffee / dark chocolate / brass
   ============================================ */

:root {
  --espresso: #1a100c;
  --coffee: #2a1c14;
  --chocolate: #3d2818;
  --mocha: #4a3220;
  --caramel: #6b4c32;
  --brass: #c9a84c;
  --brass-light: #e0c56e;
  --brass-dim: #8a7335;
  --cream: #f0e6d3;
  --cream-muted: #c4b8a0;
  --text: #e8dcc8;
  --text-dim: #a89880;
  --glass-bg: rgba(42, 28, 20, 0.55);
  --glass-border: rgba(201, 168, 76, 0.22);
  --shadow-deep: 0 24px 60px rgba(0, 0, 0, 0.55);
  --radius: 20px;
  --radius-sm: 12px;
  --header-max: 1200px;
  --container: 1120px;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  /* Single continuous page background — no hard section seams */
  background:
    radial-gradient(ellipse 90% 50% at 50% 12%, rgba(61, 40, 24, 0.55) 0%, transparent 55%),
    radial-gradient(ellipse 70% 40% at 50% 55%, rgba(74, 50, 32, 0.22) 0%, transparent 60%),
    radial-gradient(ellipse 60% 35% at 50% 88%, rgba(61, 40, 24, 0.3) 0%, transparent 55%),
    linear-gradient(180deg, var(--espresso) 0%, var(--coffee) 35%, var(--espresso) 70%, var(--coffee) 100%);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  min-height: 100vh;
  cursor: none;
}

body.has-touch {
  cursor: auto;
}

body.has-touch .custom-cursor {
  display: none !important;
}

/* Paper / marble noise */
.noise-overlay {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 9990;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 180px;
}

/* Custom cursor */
.custom-cursor {
  pointer-events: none;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10000;
  mix-blend-mode: difference;
}

.cursor-ring {
  position: absolute;
  width: 36px;
  height: 36px;
  border: 1.5px solid rgba(201, 168, 76, 0.85);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.25s var(--ease), height 0.25s var(--ease), border-color 0.2s;
}

.cursor-dot {
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--brass-light);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s;
}

.custom-cursor.is-hover .cursor-ring {
  width: 56px;
  height: 56px;
  border-color: var(--brass-light);
}

.custom-cursor.is-hover .cursor-dot {
  width: 4px;
  height: 4px;
  opacity: 0.7;
}

/* Links & buttons reset for custom cursor */
a, button, [data-interactive] {
  cursor: none;
}

body.has-touch a,
body.has-touch button,
body.has-touch [data-interactive] {
  cursor: pointer;
}

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

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

button {
  font: inherit;
  border: none;
  background: none;
  color: inherit;
}

/* Liquid glass */
.liquid-glass {
  background: var(--glass-bg);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  border: 1px solid var(--glass-border);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* Container */
.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

/* ========== HEADER ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  padding: 1rem 1rem 0;
  pointer-events: none;
}

.header-inner {
  pointer-events: auto;
  width: min(100%, var(--header-max));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.7rem 1.25rem 0.7rem 1rem;
  border-radius: 999px;
  transition: box-shadow 0.35s var(--ease), background 0.35s;
}

.site-header.is-scrolled .header-inner {
  background: rgba(26, 16, 12, 0.78);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--brass);
  flex-shrink: 0;
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.12em;
  color: var(--cream);
}

.seal-logo {
  color: var(--brass);
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.35rem 1.4rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--cream-muted);
  letter-spacing: 0.02em;
  transition: color 0.25s;
  position: relative;
}

.nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 1px;
  background: var(--brass);
  transition: width 0.3s var(--ease);
}

.nav a:not(.nav-cta):hover {
  color: var(--cream);
}

.nav a:not(.nav-cta):hover::after {
  width: 100%;
}

.nav-cta {
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brass-dim), var(--brass));
  color: var(--espresso) !important;
  font-weight: 600;
  box-shadow: 0 2px 12px rgba(201, 168, 76, 0.25);
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(201, 168, 76, 0.4);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: 2;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--brass);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* ========== HERO ========== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 1.5rem 5rem;
  overflow: hidden;
  background: transparent;
}

#heroCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 820px;
}

.wax-seal {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
  animation: seal-sway 5s ease-in-out infinite;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.4));
  color: var(--brass);
}

.seal-logo--hero {
  width: 112px;
  height: 112px;
}

@keyframes seal-sway {
  0%, 100% { transform: rotate(-3deg) translateY(0); }
  50% { transform: rotate(3deg) translateY(-6px); }
}

.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 1.25rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6.5vw, 4.25rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--cream);
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.5);
  margin-bottom: 1.5rem;
}

.hero-mission {
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  font-weight: 300;
  color: var(--text-dim);
  max-width: 540px;
  margin: 0 auto 2.25rem;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.75rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: transform 0.3s var(--ease), box-shadow 0.3s, background 0.3s, border-color 0.3s;
}

.btn-primary {
  background: linear-gradient(135deg, #a8883a 0%, var(--brass) 45%, var(--brass-light) 100%);
  color: var(--espresso);
  box-shadow:
    0 4px 24px rgba(201, 168, 76, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(201, 168, 76, 0.45);
}

.btn-ghost {
  border: 1px solid rgba(201, 168, 76, 0.35);
  color: var(--cream);
  background: rgba(42, 28, 20, 0.35);
}

.btn-ghost:hover {
  border-color: var(--brass);
  background: rgba(61, 40, 24, 0.55);
  transform: translateY(-2px);
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.5;
}

.hero-scroll span {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brass);
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--brass), transparent);
  animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.7); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ========== SECTIONS ========== */
.section {
  padding: 6.5rem 0;
  position: relative;
}

.section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c9a84c' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3.5rem;
}

.section-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--cream);
  margin-bottom: 1.15rem;
}

.section-desc {
  font-size: 1rem;
  color: var(--text-dim);
  font-weight: 300;
}

/* About — seamless section blend */
.about {
  background: transparent;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.feature-card {
  padding: 1.75rem 1.5rem;
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(61, 40, 24, 0.55), rgba(26, 16, 12, 0.7));
  border: 1px solid rgba(201, 168, 76, 0.12);
  transition: border-color 0.35s, transform 0.35s var(--ease), box-shadow 0.35s;
}

.feature-card:hover {
  border-color: rgba(201, 168, 76, 0.35);
  transform: translateY(-4px);
  box-shadow: var(--shadow-deep);
}

.feature-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(201, 168, 76, 0.1);
  color: var(--brass);
  margin-bottom: 1.15rem;
  border: 1px solid rgba(201, 168, 76, 0.18);
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 0.55rem;
}

.feature-card p {
  font-size: 0.92rem;
  color: var(--text-dim);
  font-weight: 300;
}

/* Why — same base as page, soft radial only (no hard edge) */
.why {
  background: transparent;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.15rem;
  perspective: 1000px;
}

.benefit-card {
  position: relative;
  padding: 1.75rem 1.35rem;
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(61, 40, 24, 0.7) 0%, rgba(26, 16, 12, 0.9) 100%);
  border: 1px solid rgba(201, 168, 76, 0.15);
  transform-style: preserve-3d;
  transition: box-shadow 0.3s, border-color 0.3s;
  will-change: transform;
}

.benefit-card:hover {
  border-color: rgba(201, 168, 76, 0.4);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(201, 168, 76, 0.1);
}

.benefit-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: rgba(201, 168, 76, 0.25);
  line-height: 1;
  margin-bottom: 1rem;
}

.benefit-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--cream);
  margin-bottom: 0.5rem;
}

.benefit-card p {
  font-size: 0.88rem;
  color: var(--text-dim);
  font-weight: 300;
}

/* Staff — pyramid hierarchy */
.staff {
  background: transparent;
}

.staff-featured {
  display: flex;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.staff-group {
  margin-bottom: 2.5rem;
}

.staff-group:last-child {
  margin-bottom: 0;
}

.staff-group-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--brass);
  letter-spacing: 0.06em;
  text-align: center;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: center;
}

.staff-group-title::before,
.staff-group-title::after {
  content: "";
  height: 1px;
  width: 48px;
  background: linear-gradient(90deg, transparent, var(--brass-dim));
}

.staff-group-title::after {
  background: linear-gradient(90deg, var(--brass-dim), transparent);
}

/* Pyramid rows: equal cards, centered, no ragged empty cells */
.staff-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.15rem;
}

.staff-grid .staff-card {
  flex: 1 1 0;
  min-width: 180px;
  max-width: 220px;
}

/* Deputies: 4 cards fill the row evenly */
.staff-grid--deputies .staff-card {
  flex: 1 1 calc(25% - 0.9rem);
  max-width: none;
  min-width: 160px;
}

/* Advisors: 5 cards fill the row evenly */
.staff-grid--advisors .staff-card {
  flex: 1 1 calc(20% - 0.95rem);
  max-width: none;
  min-width: 140px;
}

.staff-card {
  perspective: 1000px;
  height: 240px;
}

.staff-card--chief {
  height: 280px;
  width: min(100%, 320px);
}

.staff-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.65s var(--ease);
  transform-style: preserve-3d;
}

.staff-card.is-flipped .staff-card-inner {
  transform: rotateY(180deg);
}

.staff-front,
.staff-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: var(--radius);
  border: 1px solid rgba(201, 168, 76, 0.18);
  background: linear-gradient(155deg, rgba(74, 50, 32, 0.65) 0%, rgba(26, 16, 12, 0.95) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  text-align: center;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  transition: box-shadow 0.3s, border-color 0.3s, transform 0.15s linear;
  will-change: transform;
}

.staff-card--chief .staff-front,
.staff-card--chief .staff-back {
  border-color: rgba(201, 168, 76, 0.4);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(201, 168, 76, 0.12) 0%, transparent 55%),
    linear-gradient(155deg, rgba(90, 60, 30, 0.7) 0%, rgba(26, 16, 12, 0.98) 100%);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(201, 168, 76, 0.15),
    inset 0 1px 0 rgba(201, 168, 76, 0.1);
}

.staff-back {
  transform: rotateY(180deg);
  gap: 0.75rem;
}

.discord-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  color: var(--brass);
  opacity: 0.7;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(201, 168, 76, 0.1);
  border: 1px solid rgba(201, 168, 76, 0.15);
}

.staff-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, var(--mocha), var(--espresso));
  border: 2px solid rgba(201, 168, 76, 0.35);
  margin-bottom: 0.85rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.staff-avatar span {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--brass);
  letter-spacing: 0.05em;
}

.staff-avatar--chief {
  width: 80px;
  height: 80px;
  border-width: 2.5px;
  border-color: var(--brass);
  box-shadow:
    0 0 0 4px rgba(201, 168, 76, 0.12),
    0 6px 24px rgba(0, 0, 0, 0.4);
}

.staff-avatar--chief span {
  font-size: 1.35rem;
}

.staff-role {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brass-dim);
  margin-bottom: 0.35rem;
}

.staff-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--cream);
  line-height: 1.3;
}

.staff-card--chief .staff-name {
  font-size: 1.3rem;
}

.staff-hint {
  margin-top: 0.65rem;
  font-size: 0.72rem;
  color: var(--text-dim);
  opacity: 0.7;
}

.discord-nick {
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--brass-light);
  word-break: break-all;
  padding: 0.5rem 0.75rem;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 8px;
  border: 1px solid rgba(201, 168, 76, 0.2);
  user-select: all;
}

.copy-btn {
  margin-top: 0.25rem;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(201, 168, 76, 0.15);
  border: 1px solid rgba(201, 168, 76, 0.35);
  color: var(--brass-light);
  transition: background 0.25s, transform 0.2s;
}

.copy-btn:hover {
  background: rgba(201, 168, 76, 0.3);
  transform: scale(1.03);
}

.copy-btn.copied {
  background: rgba(80, 140, 80, 0.3);
  border-color: rgba(100, 180, 100, 0.5);
  color: #a8d8a8;
}

/* Join */
.join {
  padding-bottom: 5rem;
  background: transparent;
}

.join-panel {
  text-align: center;
  padding: 3.5rem 2rem;
  border-radius: calc(var(--radius) + 8px);
  max-width: 720px;
  margin: 0 auto;
}

.join-seal {
  display: flex;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--brass);
  animation: seal-sway 6s ease-in-out infinite;
}

.join-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  color: var(--cream);
  margin-bottom: 0.85rem;
}

.join-text {
  color: var(--text-dim);
  font-weight: 300;
  max-width: 480px;
  margin: 0 auto 1.75rem;
  font-size: 0.98rem;
}

.join-actions {
  margin-bottom: 1.25rem;
}

.join-note {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass-dim);
}

/* ========== FOOTER ========== */
.site-footer {
  display: flex;
  justify-content: center;
  padding: 0 1rem 1.5rem;
}

.footer-inner {
  width: min(100%, var(--header-max));
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem 1.35rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-template-rows: auto auto;
  gap: 1rem 1.5rem;
  align-items: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--brass);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 500;
}

.footer-brand span {
  color: var(--cream-muted);
}

.footer-links {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  grid-column: 2;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-dim);
  transition: color 0.25s;
}

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

.footer-social {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

.social-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--brass);
  border: 1px solid rgba(201, 168, 76, 0.25);
  background: rgba(201, 168, 76, 0.08);
  transition: background 0.25s, transform 0.25s;
}

.social-icon:hover {
  background: rgba(201, 168, 76, 0.2);
  transform: scale(1.08);
}

.footer-copy {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-dim);
  opacity: 0.7;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(201, 168, 76, 0.1);
}

/* Toast */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  z-index: 200;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  background: rgba(26, 16, 12, 0.92);
  border: 1px solid rgba(201, 168, 76, 0.4);
  color: var(--cream);
  font-size: 0.88rem;
  font-weight: 500;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: transform 0.4s var(--ease), opacity 0.4s;
  pointer-events: none;
}

.toast.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children slightly via delay classes set in JS if needed */
.features-grid .reveal:nth-child(1) { transition-delay: 0.05s; }
.features-grid .reveal:nth-child(2) { transition-delay: 0.12s; }
.features-grid .reveal:nth-child(3) { transition-delay: 0.19s; }
.features-grid .reveal:nth-child(4) { transition-delay: 0.26s; }

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .staff-grid--deputies .staff-card {
    flex: 1 1 calc(50% - 1rem);
    min-width: 180px;
  }

  .staff-grid--advisors .staff-card {
    flex: 1 1 calc(33.333% - 1rem);
    min-width: 160px;
  }
}

@media (max-width: 768px) {
  body {
    cursor: auto;
  }

  .custom-cursor {
    display: none;
  }

  a, button, [data-interactive] {
    cursor: pointer;
  }

  .menu-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 0;
    right: 0;
    width: min(280px, 85vw);
    height: 100vh;
    height: 100dvh;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 0.5rem;
    padding: 2rem;
    background: rgba(26, 16, 12, 0.96);
    backdrop-filter: blur(20px);
    border-left: 1px solid var(--glass-border);
    transform: translateX(100%);
    transition: transform 0.4s var(--ease);
    z-index: 150;
  }

  .nav.is-open {
    transform: translateX(0);
  }

  .nav a {
    font-size: 1.05rem;
    padding: 0.75rem 0;
  }

  .nav-cta {
    text-align: center;
    margin-top: 0.5rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .staff-grid--deputies .staff-card,
  .staff-grid--advisors .staff-card {
    flex: 1 1 calc(50% - 0.75rem);
    min-width: 140px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }

  .footer-brand {
    justify-content: center;
  }

  .footer-links {
    grid-column: 1;
  }

  .footer-social {
    justify-content: center;
  }

  .hero {
    padding-top: 5rem;
  }

  .section {
    padding: 4.5rem 0;
  }
}

@media (max-width: 480px) {
  .staff-grid--deputies .staff-card,
  .staff-grid--advisors .staff-card {
    flex: 1 1 100%;
    min-width: 0;
  }

  .header-inner {
    padding: 0.55rem 0.9rem;
  }

  .logo-text {
    font-size: 1rem;
  }

  .join-panel {
    padding: 2.5rem 1.25rem;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .wax-seal,
  .join-seal {
    animation: none;
  }

  .scroll-line {
    animation: none;
  }

  .staff-card-inner {
    transition-duration: 0.2s;
  }
}
