/* =============================================
   GDTE — RED/WHITE/BLACK + Paper Texture v3
   ============================================= */

/* ---------- CSS Variables ---------- */
:root {
  --black:       #0a0a0a;
  --black2:      #111111;
  --black3:      #1a1a1a;
  --black4:      #222222;
  --white:       #f0ece0;
  --white2:      #d4d0c4;
  --white3:      #99948a;
  --red:         #cc0000;
  --red2:        #a80000;
  --red3:        #8b0000;
  --red-dark:    #4a0000;
  --border:      #2a2a2a;
  --border2:     #3d3d3d;
  --topbar-h:    48px;

  --font-hero:    'Cinzel', 'IM Fell English', Georgia, 'Times New Roman', serif;
  --font-body:    'Libre Baskerville', Georgia, 'Times New Roman', serif;
  --font-antiqua: 'IM Fell English', Georgia, 'Times New Roman', serif;
  --font-type:    'Courier Prime', 'Courier New', monospace;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-type);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ---------- Paper Texture Overlay ---------- */
.paper-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.035;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='5' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='400' height='400' filter='url(%23p)' opacity='1'/%3E%3C/svg%3E");
  background-size: 400px 400px;
  mix-blend-mode: overlay;
}

/* ---------- Noise Texture ---------- */
.noise-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-size: 300px 300px;
}

/* ---------- Typography ---------- */
a { color: var(--red); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--white); }
h1, h2, h3 { font-family: var(--font-antiqua); letter-spacing: 0.06em; }

/* ---------- Utilities ---------- */
.hidden { display: none !important; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 2rem; }

/* =============================================
   TOP BAR
   ============================================= */
.top-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--topbar-h);
  background: rgba(10,10,10,0.98);
  border-bottom: 2px solid var(--red3);
  backdrop-filter: blur(8px);
}
.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  padding: 0 1.5rem;
  gap: 1rem;
}
.top-bar-brand {
  font-family: var(--font-antiqua);
  font-size: 1.2rem;
  color: var(--white);
  letter-spacing: 0.25em;
  white-space: nowrap;
}
.top-bar-brand span {
  color: var(--red);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  vertical-align: middle;
  display: inline-block;
  margin-left: 0.5rem;
  font-family: var(--font-type);
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  flex: 1;
  justify-content: center;
}
.top-nav-link {
  font-family: var(--font-type);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white3) !important;
  padding: 0.3rem 0.7rem;
  border: 1px solid transparent;
  transition: all 0.2s;
}
.top-nav-link:hover {
  color: var(--white) !important;
  border-color: var(--red);
  background: rgba(204,0,0,0.06);
}
.top-nav-sep { color: var(--red3); font-size: 0.7rem; }

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  position: relative;
}

/* Hamburger dropdown menu — mobile only */
.hamburger-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--black2);
  border: 1px solid var(--border2);
  border-top: 2px solid var(--red);
  min-width: 180px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.7);
  z-index: 1001;
  padding: 0.5rem 0;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
  display: none;
}
.hamburger-dropdown:not(.hidden) {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.hamburger-item {
  display: block;
  padding: 0.6rem 1.2rem;
  font-family: var(--font-type);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--white2) !important;
  text-transform: uppercase;
  transition: background 0.15s, color 0.15s;
}
.hamburger-item:hover {
  background: rgba(204,0,0,0.08);
  color: var(--white) !important;
}
.hamburger-sep {
  height: 1px;
  background: var(--border);
  margin: 0.4rem 0.8rem;
}
.hamburger-hint {
  display: block;
  padding: 0.4rem 1.2rem;
  font-family: var(--font-type);
  font-size: 0.6rem;
  color: var(--white3);
  letter-spacing: 0.08em;
  opacity: 0.6;
}
.classification {
  font-family: var(--font-type);
  font-size: 0.58rem;
  color: var(--red);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  display: none;
}
@media (min-width: 900px) { .classification { display: block; } }

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.2rem;
  font-family: var(--font-type);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  border: 1px solid var(--border2);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
  text-transform: uppercase;
  line-height: 1;
}
.btn-primary {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}
.btn-primary:hover {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(204,0,0,0.3);
}
.btn-danger {
  background: var(--red-dark);
  color: var(--white);
  border-color: var(--red);
}
.btn-danger:hover { background: var(--red); }
.btn-ghost {
  background: transparent;
  color: var(--white2);
  border-color: var(--border2);
}
.btn-ghost:hover {
  background: var(--black3);
  color: var(--white);
  border-color: var(--red);
}
.btn-sm { padding: 0.3rem 0.7rem; font-size: 0.75rem; }

/* =============================================
   HERO — F-pattern eye flow
   ============================================= */
.hero-section {
  min-height: 100vh;
  padding-top: var(--topbar-h);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background-color: var(--black);
  background-image:
    radial-gradient(ellipse 70% 50% at 50% 35%, rgba(204,0,0,0.12) 0%, transparent 70%),
    repeating-linear-gradient(0deg, transparent, transparent 59px, rgba(204,0,0,0.02) 59px, rgba(204,0,0,0.02) 60px),
    repeating-linear-gradient(90deg, transparent, transparent 59px, rgba(204,0,0,0.02) 59px, rgba(204,0,0,0.02) 60px);
}

/* Red vertical bars on sides */
.hero-section::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 8px;
  background: repeating-linear-gradient(
    180deg,
    var(--red) 0px, var(--red) 20px,
    var(--black2) 20px, var(--black2) 40px
  );
  opacity: 0.7;
}
.hero-section::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0; right: 0;
  width: 8px;
  background: repeating-linear-gradient(
    180deg,
    var(--red) 0px, var(--red) 20px,
    var(--black2) 20px, var(--black2) 40px
  );
  opacity: 0.7;
}

.hero-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4rem;
  position: relative;
  z-index: 1;
  padding: 3rem 2rem;
  width: 100%;
  max-width: 800px;
}

/* Emblem — eye anchor */
.hero-emblem { margin-bottom: 0.3rem; }
.emblem-ring {
  width: 130px; height: 130px;
  border-radius: 50%;
  border: 2px solid var(--red);
  box-shadow:
    0 0 0 6px rgba(204,0,0,0.08),
    0 0 0 12px rgba(204,0,0,0.04),
    0 0 50px rgba(204,0,0,0.3),
    inset 0 0 30px rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: radial-gradient(circle, #1a0a0a 0%, #0a0a0a 70%);
}
.emblem-ring::before {
  content: '';
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  border: 1px solid rgba(204,0,0,0.25);
}
.emblem-ring::after {
  content: '';
  position: absolute;
  inset: 16px;
  border-radius: 50%;
  border: 1px solid rgba(204,0,0,0.1);
}
.emblem-text {
  font-family: var(--font-hero);
  font-size: 3.2rem;
  color: var(--red);
  text-shadow: 0 0 25px rgba(204,0,0,0.6), 0 2px 4px rgba(0,0,0,0.8);
  font-style: italic;
  position: relative;
  z-index: 1;
}

/* Title block */
.hero-title-block {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.hero-subtitle-top {
  font-family: var(--font-hero);
  font-size: 0.7rem;
  letter-spacing: 0.45em;
  color: var(--red);
  text-transform: uppercase;
  font-style: italic;
}
.hero-title {
  font-family: var(--font-hero);
  font-size: clamp(5.5rem, 16vw, 10rem);
  color: var(--white);
  letter-spacing: 0.15em;
  line-height: 0.9;
  text-shadow:
    0 0 60px rgba(204,0,0,0.5),
    0 0 120px rgba(204,0,0,0.2),
    0 4px 8px rgba(0,0,0,0.9);
}
.hero-full-name {
  font-family: var(--font-hero);
  font-size: clamp(0.9rem, 2.5vw, 1.2rem);
  color: var(--red);
  letter-spacing: 0.12em;
  font-style: italic;
}
.hero-tagline {
  font-family: var(--font-hero);
  font-size: 0.75rem;
  color: var(--white3);
  letter-spacing: 0.4em;
  text-transform: uppercase;
  font-style: italic;
}

/* Horizontal divider */
.hero-rule {
  width: 300px;
  max-width: 80%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--red3), var(--red), var(--red3), transparent);
  position: relative;
}
.hero-rule::before {
  content: '✦';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.6rem;
  color: var(--red);
  background: var(--black);
  padding: 0 0.6rem;
  line-height: 1;
}

/* Discord CTA — strong call to action */
.discord-cta-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  padding: 1.2rem 3.5rem;
  background: linear-gradient(180deg, var(--red) 0%, var(--red2) 50%, var(--red3) 100%);
  color: var(--white) !important;
  border: 1px solid var(--red);
  outline: 2px solid rgba(204,0,0,0.4);
  outline-offset: 4px;
  font-family: var(--font-hero);
  font-size: 1.15rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none !important;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
  box-shadow:
    0 0 40px rgba(204,0,0,0.4),
    0 6px 24px rgba(0,0,0,0.6),
    inset 0 1px 0 rgba(255,200,200,0.15),
    inset 0 -1px 0 rgba(0,0,0,0.3);
}
.discord-cta-btn::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 40%;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), transparent);
  pointer-events: none;
}
.discord-cta-btn:hover {
  background: linear-gradient(180deg, #e60000 0%, var(--red) 50%, var(--red2) 100%);
  box-shadow: 0 0 60px rgba(204,0,0,0.6), 0 8px 30px rgba(0,0,0,0.7), inset 0 1px 0 rgba(255,220,220,0.25);
  outline-color: rgba(204,0,0,0.7);
  transform: translateY(-3px) scale(1.02);
  color: #fff !important;
}
.discord-cta-btn i { font-size: 1.7rem; }
.discord-cta-btn small {
  font-family: var(--font-type);
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  color: rgba(240,236,224,0.5);
  margin-top: 0.15rem;
}

/* =============================================
   SECTIONS — Z-pattern & F-pattern
   ============================================= */
.section {
  padding: 5rem 0;
  position: relative;
}
.section::before {
  content: '';
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--red3), transparent);
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.section-stamp {
  font-family: var(--font-type);
  font-size: 0.62rem;
  letter-spacing: 0.4em;
  color: var(--red);
  text-transform: uppercase;
  margin-bottom: 0.6rem;
  display: inline-block;
  border-bottom: 1px solid rgba(204,0,0,0.25);
  padding-bottom: 0.3rem;
}
.section-title {
  font-size: clamp(1.4rem, 4vw, 2rem);
  color: var(--white);
  letter-spacing: 0.12em;
  position: relative;
  display: inline-block;
}

/* Title rule with red accent */
.title-rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1.2rem;
}
.title-rule::before,
.title-rule::after {
  content: '';
  flex: 1;
  max-width: 120px;
  height: 1px;
}
.title-rule::before { background: linear-gradient(90deg, transparent, var(--red)); }
.title-rule::after { background: linear-gradient(90deg, var(--red), transparent); }
.title-rule-inner {
  width: 8px; height: 8px;
  border: 1px solid var(--red);
  transform: rotate(45deg);
  background: var(--black);
  flex-shrink: 0;
}

/* =============================================
   ABOUT — Left heavy for F-pattern
   ============================================= */
.about-section {
  background: linear-gradient(180deg, var(--black) 0%, var(--black2) 100%);
}
.about-content {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 3rem;
  align-items: start;
}
.about-text p {
  margin-bottom: 1.3rem;
  color: var(--white2);
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.9;
  text-align: justify;
}
.drop-cap::first-letter {
  font-family: var(--font-hero);
  font-size: 4rem;
  float: left;
  line-height: 0.72;
  margin-right: 0.08em;
  margin-bottom: -0.1em;
  color: var(--red);
  font-style: italic;
}

/* Classified card — 1940s dirty worn cheap coarse paper / mimeographed form */
.classified-card {
  background: #d8d0c0;
  color: #1a1a1a;
  border: 1px solid #a09078;
  padding: 1.8rem 1.6rem;
  position: relative;
  box-shadow:
    0 2px 8px rgba(0,0,0,0.35),
    0 8px 24px rgba(0,0,0,0.2),
    inset 0 0 80px rgba(100,85,50,0.2);
  font-family: var(--font-type);
  /* very coarse dirty paper texture — 1940s cheap pulp paper */
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='250' height='250'%3E%3Cfilter id='pd'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='6' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0.78  0 0 0 0 0.73  0 0 0 0 0.62  0 0 0 0.18 0'/%3E%3C/filter%3E%3Crect width='250' height='250' filter='url(%23pd)'/%3E%3C/svg%3E");
  background-size: 250px 250px;
  overflow: hidden;
  /* fine irregular deckle edges on all 4 sides — 1940s torn paper */
  clip-path: polygon(
    0% 2px, 1% 0%, 2% 3px, 3% 1px, 4% 4px, 5% 0%, 6% 3px, 7% 1px, 8% 4px, 9% 0%,
    10% 3px, 11% 1px, 12% 5px, 13% 0%, 14% 4px, 15% 1px, 16% 3px, 17% 0%, 18% 4px, 19% 2px,
    20% 0%, 21% 3px, 22% 1px, 23% 5px, 24% 0%, 25% 4px, 26% 1px, 27% 3px, 28% 0%, 29% 4px,
    30% 2px, 31% 0%, 32% 3px, 33% 1px, 34% 5px, 35% 0%, 36% 4px, 37% 1px, 38% 3px, 39% 0%,
    40% 4px, 41% 2px, 42% 0%, 43% 3px, 44% 1px, 45% 5px, 46% 0%, 47% 4px, 48% 1px, 49% 3px,
    50% 0%, 51% 4px, 52% 2px, 53% 0%, 54% 3px, 55% 1px, 56% 5px, 57% 0%, 58% 4px, 59% 1px,
    60% 3px, 61% 0%, 62% 4px, 63% 2px, 64% 0%, 65% 3px, 66% 1px, 67% 5px, 68% 0%, 69% 4px,
    70% 1px, 71% 3px, 72% 0%, 73% 4px, 74% 2px, 75% 0%, 76% 3px, 77% 1px, 78% 5px, 79% 0%,
    80% 4px, 81% 1px, 82% 3px, 83% 0%, 84% 4px, 85% 2px, 86% 0%, 87% 3px, 88% 1px, 89% 5px,
    90% 0%, 91% 4px, 92% 1px, 93% 3px, 94% 0%, 95% 4px, 96% 2px, 97% 0%, 98% 3px, 99% 1px,
    100% 2px,
    99% calc(100% - 0px),
    98% calc(100% - 3px),
    97% calc(100% - 1px),
    96% calc(100% - 4px),
    95% calc(100% - 0px),
    94% calc(100% - 3px),
    93% calc(100% - 1px),
    92% calc(100% - 4px),
    91% calc(100% - 0px),
    90% calc(100% - 3px),
    89% calc(100% - 1px),
    88% calc(100% - 5px),
    87% calc(100% - 0px),
    86% calc(100% - 4px),
    85% calc(100% - 1px),
    84% calc(100% - 3px),
    83% calc(100% - 0px),
    82% calc(100% - 4px),
    81% calc(100% - 2px),
    80% calc(100% - 0px),
    79% calc(100% - 3px),
    78% calc(100% - 1px),
    77% calc(100% - 5px),
    76% calc(100% - 0px),
    75% calc(100% - 4px),
    74% calc(100% - 1px),
    73% calc(100% - 3px),
    72% calc(100% - 0px),
    71% calc(100% - 4px),
    70% calc(100% - 1px),
    69% calc(100% - 3px),
    68% calc(100% - 0px),
    67% calc(100% - 5px),
    66% calc(100% - 1px),
    65% calc(100% - 3px),
    64% calc(100% - 0px),
    63% calc(100% - 4px),
    62% calc(100% - 2px),
    61% calc(100% - 0px),
    60% calc(100% - 4px),
    59% calc(100% - 1px),
    58% calc(100% - 3px),
    57% calc(100% - 0px),
    56% calc(100% - 5px),
    55% calc(100% - 0px),
    54% calc(100% - 3px),
    53% calc(100% - 1px),
    52% calc(100% - 4px),
    51% calc(100% - 0px),
    50% calc(100% - 3px),
    49% calc(100% - 1px),
    48% calc(100% - 5px),
    47% calc(100% - 0px),
    46% calc(100% - 3px),
    45% calc(100% - 1px),
    44% calc(100% - 4px),
    43% calc(100% - 0px),
    42% calc(100% - 3px),
    41% calc(100% - 1px),
    40% calc(100% - 5px),
    39% calc(100% - 0px),
    38% calc(100% - 3px),
    37% calc(100% - 1px),
    36% calc(100% - 4px),
    35% calc(100% - 0px),
    34% calc(100% - 3px),
    33% calc(100% - 1px),
    32% calc(100% - 5px),
    31% calc(100% - 0px),
    30% calc(100% - 3px),
    29% calc(100% - 1px),
    28% calc(100% - 4px),
    27% calc(100% - 0px),
    26% calc(100% - 3px),
    25% calc(100% - 1px),
    24% calc(100% - 5px),
    23% calc(100% - 0px),
    22% calc(100% - 3px),
    21% calc(100% - 1px),
    20% calc(100% - 4px),
    19% calc(100% - 0px),
    18% calc(100% - 3px),
    17% calc(100% - 1px),
    16% calc(100% - 5px),
    15% calc(100% - 0px),
    14% calc(100% - 3px),
    13% calc(100% - 1px),
    12% calc(100% - 4px),
    11% calc(100% - 0px),
    10% calc(100% - 3px),
    9% calc(100% - 1px),
    8% calc(100% - 5px),
    7% calc(100% - 0px),
    6% calc(100% - 3px),
    5% calc(100% - 1px),
    4% calc(100% - 4px),
    3% calc(100% - 0px),
    2% calc(100% - 3px),
    1% calc(100% - 1px),
    0% calc(100% - 2px)
  );
}

/* edge darkening for torn paper look */
.classified-card::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  box-shadow: inset 0 0 40px rgba(60,45,20,0.3), inset 0 0 80px rgba(80,60,30,0.15);
}

/* Hamburger button — mobile only */
.hamburger-btn {
  width: 36px;
  height: 32px;
  position: relative;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.hamburger-line {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white2);
  border-radius: 1px;
  transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
  transform-origin: center;
}
.hamburger-btn:hover .hamburger-line { background: var(--white); }
.hamburger-btn.active .hamburger-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger-btn.active .hamburger-line:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger-btn.active .hamburger-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* heavy dirt/grime stains — 1940s aged paper */
.classified-card .dirt-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background:
    radial-gradient(ellipse 50% 40% at 12% 88%, rgba(139,90,30,0.45) 0%, transparent 60%),
    radial-gradient(ellipse 40% 50% at 90% 10%, rgba(110,75,25,0.35) 0%, transparent 55%),
    radial-gradient(ellipse 60% 25% at 50% 95%, rgba(90,65,20,0.3) 0%, transparent 50%),
    radial-gradient(ellipse 30% 35% at 8% 25%, rgba(120,85,30,0.25) 0%, transparent 45%),
    radial-gradient(ellipse 45% 20% at 78% 78%, rgba(100,70,25,0.2) 0%, transparent 40%),
    radial-gradient(ellipse 25% 40% at 35% 10%, rgba(85,60,20,0.15) 0%, transparent 40%);
  mix-blend-mode: multiply;
}

/* water damage / mildew spots */
.classified-card .mildew-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  opacity: 0.2;
  background:
    radial-gradient(circle 35px at 18% 65%, rgba(70,90,55,0.5) 0%, transparent 70%),
    radial-gradient(circle 25px at 72% 35%, rgba(65,85,50,0.4) 0%, transparent 70%),
    radial-gradient(circle 30px at 48% 82%, rgba(75,90,60,0.45) 0%, transparent 70%);
  mix-blend-mode: multiply;
  filter: blur(1.5px);
}

/* yellowing / foxing spots (age spots on old paper) */
.classified-card .foxing-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  opacity: 0.12;
  background:
    radial-gradient(circle 15px at 25% 40%, rgba(180,140,60,0.6) 0%, transparent 80%),
    radial-gradient(circle 12px at 65% 55%, rgba(170,130,50,0.5) 0%, transparent 80%),
    radial-gradient(circle 18px at 45% 70%, rgba(160,125,45,0.55) 0%, transparent 80%),
    radial-gradient(circle 10px at 80% 20%, rgba(175,135,55,0.4) 0%, transparent 80%),
    radial-gradient(circle 14px at 15% 15%, rgba(165,120,40,0.5) 0%, transparent 80%);
  mix-blend-mode: multiply;
}

/* top official header bar */
.classified-doc-header {
  border-bottom: 2px solid #1a1a1a;
  padding-bottom: 0.4rem;
  margin-bottom: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.classified-doc-header .doc-id {
  font-size: 0.55rem;
  letter-spacing: 0.25em;
  color: #555;
  text-transform: uppercase;
}
.classified-doc-header .doc-date {
  font-size: 0.6rem;
  color: #555;
}

/* GEHEIM stamp on paper document */
.classified-stamp {
  font-family: var(--font-type);
  color: #8b0000;
  font-size: 1.4rem;
  letter-spacing: 0.4em;
  text-align: center;
  border: 3px double #8b0000;
  border-radius: 1px;
  padding: 0.3rem 0.8rem;
  display: inline-block;
  transform: rotate(-4deg);
  opacity: 0.85;
  margin-bottom: 1.2rem;
  position: relative;
  background: rgba(139,0,0,0.04);
  /* stamp ink bleed */
  filter: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='ink2'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.05' numOctaves='4' result='noise'/%3E%3CfeDisplacementMap in='SourceGraphic' in2='noise' scale='1.5' xChannelSelector='R' yChannelSelector='G'/%3E%3C/filter%3E%3C/svg%3E#ink2");
  box-shadow: 0 0 0 2px rgba(139,0,0,0.06);
}
.classified-stamp::before {
  content: '';
  position: absolute;
  inset: -4px;
  border: 1px solid rgba(139,0,0,0.1);
  pointer-events: none;
  transform: rotate(1deg);
}
.classified-stamp::after {
  content: '';
  position: absolute;
  inset: 2px;
  border: 1px dashed rgba(139,0,0,0.2);
  pointer-events: none;
}

/* info-list as typed form fields */
.info-list { font-family: var(--font-type); font-size: 0.8rem; position: relative; z-index: 1; }
.info-list dt {
  color: #444;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-top: 0.9rem;
  margin-bottom: 0.1rem;
  font-weight: 700;
}
.info-list dt:first-child { margin-top: 0; }
.info-list dd {
  color: #111;
  padding: 0.2rem 0.5rem;
  border: 1px solid #ccc;
  border-radius: 1px;
  margin-left: 0;
  font-size: 0.85rem;
  background: rgba(255,255,255,0.4);
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.04);
  position: relative;
}
/* typewriter underline inside field */
.info-list dd::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 4px; right: 4px;
  height: 1px;
  background: repeating-linear-gradient(90deg, #bbb 0px, #bbb 2px, transparent 2px, transparent 4px);
  opacity: 0.4;
}

/* mimeograph ink spot accents */
.info-list dd .ink-spot {
  display: inline-block;
  width: 4px; height: 4px;
  background: #8b0000;
  border-radius: 50%;
  opacity: 0.25;
  margin-left: 0.3rem;
  vertical-align: middle;
}

/* =============================================
   NEWS — Newspaper Clippings
   ============================================= */
.news-section {
  background: var(--black);
  position: relative;
}
/* subtle cork-board / desk texture behind clippings */
.news-section::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.6' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23g)' opacity='1'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  pointer-events: none;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  position: relative;
  z-index: 1;
}

/* ---- Newspaper clipping card — 1940s dirty cheap coarse paper ---- */
.news-card {
  background: #d5cdc0;
  color: #1a1a1a;
  padding: 1.6rem 1.4rem;
  position: relative;
  box-shadow:
    2px 4px 14px rgba(0,0,0,0.4),
    0 2px 4px rgba(0,0,0,0.25);
  transition: transform 0.3s, box-shadow 0.3s;
  font-family: var(--font-body);
  /* fine irregular deckle edges on ALL 4 sides — ragged torn paper */
  clip-path: polygon(
    0% 2px, 1% 0%, 2% 3px, 3% 1px, 4% 4px, 5% 0%, 6% 3px, 7% 1px, 8% 4px, 9% 0%,
    10% 3px, 11% 1px, 12% 5px, 13% 0%, 14% 4px, 15% 1px, 16% 3px, 17% 0%, 18% 4px, 19% 2px,
    20% 0%, 21% 3px, 22% 1px, 23% 5px, 24% 0%, 25% 4px, 26% 1px, 27% 3px, 28% 0%, 29% 4px,
    30% 2px, 31% 0%, 32% 3px, 33% 1px, 34% 5px, 35% 0%, 36% 4px, 37% 1px, 38% 3px, 39% 0%,
    40% 4px, 41% 2px, 42% 0%, 43% 3px, 44% 1px, 45% 5px, 46% 0%, 47% 4px, 48% 1px, 49% 3px,
    50% 0%, 51% 4px, 52% 2px, 53% 0%, 54% 3px, 55% 1px, 56% 5px, 57% 0%, 58% 4px, 59% 1px,
    60% 3px, 61% 0%, 62% 4px, 63% 2px, 64% 0%, 65% 3px, 66% 1px, 67% 5px, 68% 0%, 69% 4px,
    70% 1px, 71% 3px, 72% 0%, 73% 4px, 74% 2px, 75% 0%, 76% 3px, 77% 1px, 78% 5px, 79% 0%,
    80% 4px, 81% 1px, 82% 3px, 83% 0%, 84% 4px, 85% 2px, 86% 0%, 87% 3px, 88% 1px, 89% 5px,
    90% 0%, 91% 4px, 92% 1px, 93% 3px, 94% 0%, 95% 4px, 96% 2px, 97% 0%, 98% 3px, 99% 1px,
    100% 2px,
    99% calc(100% - 0px),
    98% calc(100% - 3px),
    97% calc(100% - 1px),
    96% calc(100% - 4px),
    95% calc(100% - 0px),
    94% calc(100% - 3px),
    93% calc(100% - 1px),
    92% calc(100% - 4px),
    91% calc(100% - 0px),
    90% calc(100% - 3px),
    89% calc(100% - 1px),
    88% calc(100% - 5px),
    87% calc(100% - 0px),
    86% calc(100% - 4px),
    85% calc(100% - 1px),
    84% calc(100% - 3px),
    83% calc(100% - 0px),
    82% calc(100% - 4px),
    81% calc(100% - 2px),
    80% calc(100% - 0px),
    79% calc(100% - 3px),
    78% calc(100% - 1px),
    77% calc(100% - 5px),
    76% calc(100% - 0px),
    75% calc(100% - 4px),
    74% calc(100% - 1px),
    73% calc(100% - 3px),
    72% calc(100% - 0px),
    71% calc(100% - 4px),
    70% calc(100% - 1px),
    69% calc(100% - 3px),
    68% calc(100% - 0px),
    67% calc(100% - 5px),
    66% calc(100% - 1px),
    65% calc(100% - 3px),
    64% calc(100% - 0px),
    63% calc(100% - 4px),
    62% calc(100% - 2px),
    61% calc(100% - 0px),
    60% calc(100% - 4px),
    59% calc(100% - 1px),
    58% calc(100% - 3px),
    57% calc(100% - 0px),
    56% calc(100% - 5px),
    55% calc(100% - 0px),
    54% calc(100% - 3px),
    53% calc(100% - 1px),
    52% calc(100% - 4px),
    51% calc(100% - 0px),
    50% calc(100% - 3px),
    49% calc(100% - 1px),
    48% calc(100% - 5px),
    47% calc(100% - 0px),
    46% calc(100% - 3px),
    45% calc(100% - 1px),
    44% calc(100% - 4px),
    43% calc(100% - 0px),
    42% calc(100% - 3px),
    41% calc(100% - 1px),
    40% calc(100% - 5px),
    39% calc(100% - 0px),
    38% calc(100% - 3px),
    37% calc(100% - 1px),
    36% calc(100% - 4px),
    35% calc(100% - 0px),
    34% calc(100% - 3px),
    33% calc(100% - 1px),
    32% calc(100% - 5px),
    31% calc(100% - 0px),
    30% calc(100% - 3px),
    29% calc(100% - 1px),
    28% calc(100% - 4px),
    27% calc(100% - 0px),
    26% calc(100% - 3px),
    25% calc(100% - 1px),
    24% calc(100% - 5px),
    23% calc(100% - 0px),
    22% calc(100% - 3px),
    21% calc(100% - 1px),
    20% calc(100% - 4px),
    19% calc(100% - 0px),
    18% calc(100% - 3px),
    17% calc(100% - 1px),
    16% calc(100% - 5px),
    15% calc(100% - 0px),
    14% calc(100% - 3px),
    13% calc(100% - 1px),
    12% calc(100% - 4px),
    11% calc(100% - 0px),
    10% calc(100% - 3px),
    9% calc(100% - 1px),
    8% calc(100% - 5px),
    7% calc(100% - 0px),
    6% calc(100% - 3px),
    5% calc(100% - 1px),
    4% calc(100% - 4px),
    3% calc(100% - 0px),
    2% calc(100% - 3px),
    1% calc(100% - 1px),
    0% calc(100% - 2px)
  );
}
.news-card:nth-child(odd) { transform: rotate(-0.8deg); }
.news-card:nth-child(even) { transform: rotate(0.6deg); }
.news-card:nth-child(3n) { transform: rotate(-0.4deg); }
.news-card:hover {
  transform: rotate(0deg) translateY(-4px);
  box-shadow: 4px 8px 24px rgba(0,0,0,0.45);
  z-index: 2;
}

/* edge darkening for torn paper */
.news-card::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  box-shadow: inset 0 0 35px rgba(70,55,25,0.25), inset 0 0 70px rgba(90,70,35,0.12);
}

/* heavy paper aging stain overlay — 1940s dirt, grime, yellowing */
.news-card .stain-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  opacity: 0.28;
  background:
    radial-gradient(ellipse 60% 50% at 15% 85%, rgba(139,90,30,0.8) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 88% 12%, rgba(110,75,25,0.6) 0%, transparent 55%),
    radial-gradient(ellipse 40% 30% at 55% 92%, rgba(130,85,30,0.5) 0%, transparent 50%),
    radial-gradient(ellipse 30% 40% at 10% 28%, rgba(120,80,28,0.4) 0%, transparent 45%),
    radial-gradient(ellipse 50% 25% at 78% 75%, rgba(100,68,22,0.35) 0%, transparent 40%),
    radial-gradient(ellipse 25% 35% at 35% 8%, rgba(90,62,20,0.3) 0%, transparent 40%);
  mix-blend-mode: multiply;
}

/* coarse dirt texture layer */
.news-card .dirt-texture {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  opacity: 0.12;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='150'%3E%3Cfilter id='gr'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.0' numOctaves='6' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0.35  0 0 0 0 0.25  0 0 0 0 0.12  0 0 0 0.18 0'/%3E%3C/filter%3E%3Crect width='150' height='150' filter='url(%23gr)'/%3E%3C/svg%3E");
  background-size: 150px 150px;
  mix-blend-mode: multiply;
}

/* water damage / mildew spots */
.news-card .mildew-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  opacity: 0.18;
  background:
    radial-gradient(circle 30px at 22% 62%, rgba(65,85,50,0.5) 0%, transparent 70%),
    radial-gradient(circle 22px at 68% 38%, rgba(60,80,45,0.4) 0%, transparent 70%),
    radial-gradient(circle 28px at 48% 85%, rgba(70,88,52,0.45) 0%, transparent 70%);
  mix-blend-mode: multiply;
  filter: blur(1.5px);
}

/* foxing spots (age spots) */
.news-card .foxing-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  opacity: 0.1;
  background:
    radial-gradient(circle 12px at 30% 35%, rgba(175,135,55,0.5) 0%, transparent 80%),
    radial-gradient(circle 10px at 62% 58%, rgba(165,125,45,0.4) 0%, transparent 80%),
    radial-gradient(circle 14px at 42% 72%, rgba(170,130,50,0.45) 0%, transparent 80%),
    radial-gradient(circle 9px at 75% 18%, rgba(160,120,40,0.35) 0%, transparent 80%);
  mix-blend-mode: multiply;
}

/* red left accent bar — newspaper marker */
.news-card .accent-bar {
  position: absolute;
  top: 8px; left: 8px; bottom: 8px;
  width: 3px;
  background: var(--red);
  opacity: 0.25;
  z-index: 3;
}
.news-card.important .accent-bar { opacity: 0.7; }

/* "EXTRA" banner for important items */
.news-card-wichtig {
  display: none;
  font-family: var(--font-type);
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  background: var(--red);
  color: #fff;
  padding: 0.2rem 0.7rem;
  margin-bottom: 0.7rem;
  text-transform: uppercase;
  position: relative;
  left: -1.4rem;
  top: -0.2rem;
  width: calc(100% + 2.8rem);
  text-align: center;
  font-weight: 700;
  box-shadow: 0 2px 4px rgba(204,0,0,0.3);
}
.news-card.important .news-card-wichtig { display: block; }

/* newspaper masthead inside card */
.news-card-mast {
  font-family: var(--font-type);
  font-size: 0.55rem;
  letter-spacing: 0.35em;
  color: #777;
  text-transform: uppercase;
  border-bottom: 1px solid #bbb;
  padding-bottom: 0.3rem;
  margin-bottom: 0.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.news-card-mast span:last-child {
  font-size: 0.5rem;
  color: #999;
  letter-spacing: 0.15em;
}

.news-card-date {
  font-family: var(--font-type);
  font-size: 0.62rem;
  color: #555;
  letter-spacing: 0.1em;
  margin-bottom: 0.3rem;
}
.news-card-cat {
  display: inline-block;
  font-family: var(--font-type);
  font-size: 0.58rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: 1px solid #bbb;
  padding: 0.08rem 0.4rem;
  color: #555;
  margin-bottom: 0.5rem;
  background: rgba(0,0,0,0.03);
}

/* Headline — bold black serif */
.news-card-title {
  font-family: var(--font-antiqua);
  font-size: 1.25rem;
  color: #0a0a0a;
  margin-bottom: 0.6rem;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  border-bottom: 2px solid #0a0a0a;
  padding-bottom: 0.4rem;
}

/* Body — two-column newspaper text */
.news-card-body {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: #222;
  line-height: 1.65;
  white-space: pre-wrap;
  word-break: break-word;
  column-count: 2;
  column-gap: 1rem;
  column-rule: 1px solid #ccc;
  text-align: justify;
  hyphens: auto;
}

/* small decorative corner ornament */
.news-card-ornament {
  text-align: center;
  margin-top: 0.6rem;
  color: #bbb;
  font-size: 0.65rem;
  letter-spacing: 0.4em;
}

/* =============================================
   MEMBERS — Premium 1940s Military Officer Roster
   ============================================= */
.members-section {
  background: linear-gradient(180deg, var(--black2) 0%, var(--black) 100%);
}

/* Dark leather portfolio / document folder */
.roster-folder {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  background: linear-gradient(145deg, #2a2018 0%, #1f1610 50%, #2a2018 100%);
  border-radius: 6px;
  padding: 3rem 2rem 2.5rem;
  box-shadow:
    0 20px 60px rgba(0,0,0,0.8),
    0 4px 12px rgba(0,0,0,0.5),
    inset 0 1px 0 rgba(255,255,255,0.04),
    inset 0 -1px 0 rgba(0,0,0,0.3);
  border: 1px solid #3d3025;
}

/* Leather texture overlay */
.roster-folder::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 6px;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='l'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.6' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0.18 0 0 0 0 0.14 0 0 0 0 0.10 0 0 0 0.15 0'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23l)'/%3E%3C/svg%3E");
  background-size: 120px 120px;
  opacity: 0.4;
  mix-blend-mode: overlay;
}

/* Brass corner studs */
.roster-folder::after {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(180,160,100,0.15);
  border-radius: 3px;
  pointer-events: none;
}

/* Folder header with insignia */
.roster-header {
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}
.roster-header-insignia {
  font-size: 1.8rem;
  color: rgba(180,160,100,0.6);
  margin-bottom: 0.5rem;
  letter-spacing: 0.3em;
}
.roster-header-title {
  font-family: var(--font-antiqua);
  font-size: 1.1rem;
  color: rgba(200,185,150,0.9);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}
.roster-header-line {
  width: 120px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(180,160,100,0.4), transparent);
  margin: 0 auto;
}

/* Document sheets container */
.roster-sheets {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  z-index: 1;
}

/* Premium paper sheet base — cream linen texture */
.paper-sheet {
  background: #f5f0e6;
  color: #1a1a1a;
  position: relative;
  font-family: var(--font-type);
  overflow: hidden;
  border-radius: 2px;
  box-shadow:
    0 3px 12px rgba(0,0,0,0.25),
    0 1px 3px rgba(0,0,0,0.15),
    inset 0 0 60px rgba(200,180,140,0.08);
  /* subtle linen texture */
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 24px, rgba(180,165,130,0.06) 24px, rgba(180,165,130,0.06) 25px),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Cfilter id='ln'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0.92 0 0 0 0 0.88 0 0 0 0 0.82 0 0 0 0.04 0'/%3E%3C/filter%3E%3Crect width='100' height='100' filter='url(%23ln)'/%3E%3C/svg%3E");
  background-size: 100% 25px, 100px 100px;
}

/* Very subtle edge vignette only — no dirt */
.paper-sheet::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 40px rgba(160,140,100,0.08), inset 0 0 80px rgba(180,160,120,0.04);
  z-index: 1;
}

/* Premium paper grain overlay */
.paper-sheet .paper-grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0.5 0 0 0 0 0.4 0 0 0 0 0.3 0 0 0 0.08 0'/%3E%3C/filter%3E%3Crect width='60' height='60' filter='url(%23g)'/%3E%3C/svg%3E");
  background-size: 60px 60px;
  mix-blend-mode: multiply;
}

/* Leader sheet — formal command document */
.paper-sheet.leader {
  padding: 2.2rem 2.5rem 2rem;
  border: 1px solid rgba(180,160,100,0.35);
  border-top: 3px solid var(--red);
  min-height: 220px;
}

/* Double red border accent for commander */
.paper-sheet.leader::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red), #ff3333, var(--red));
  box-shadow: 0 1px 3px rgba(204,0,0,0.3);
}

/* Elegant "STRENG GEHEIM" stamp */
.paper-sheet.leader .leader-stamp {
  position: absolute;
  top: 16px; right: 20px;
  font-family: var(--font-type);
  font-size: 0.5rem;
  letter-spacing: 0.3em;
  color: rgba(204,0,0,0.5);
  border: 2px solid rgba(204,0,0,0.35);
  padding: 0.2rem 0.8rem;
  transform: rotate(-8deg);
  z-index: 3;
  text-transform: uppercase;
  background: rgba(204,0,0,0.03);
}

/* G Certification stamp — official authenticated seal */
.g-stamp {
  position: absolute;
  bottom: 12px; right: 14px;
  z-index: 3;
  width: 36px; height: 36px;
  border: 2.5px solid rgba(180,140,60,0.55);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-antiqua);
  font-size: 1rem;
  font-weight: 700;
  color: rgba(180,140,60,0.7);
  background: rgba(180,140,60,0.06);
  transform: rotate(-15deg);
  box-shadow: 0 0 0 1px rgba(180,140,60,0.15), inset 0 0 0 1px rgba(180,140,60,0.1);
  text-shadow: 0 1px 1px rgba(255,255,255,0.3);
}
.paper-sheet.sub .g-stamp {
  width: 28px; height: 28px;
  font-size: 0.78rem;
  border-width: 2px;
  bottom: 8px; right: 10px;
}

/* Subordinate sheets — formal personnel cards */
.paper-sheet.sub {
  padding: 1.3rem 1.6rem;
  border: 1px solid rgba(160,150,130,0.3);
  border-left: 3px solid rgba(180,160,100,0.5);
}

/* Gold accent for subordinates */
.paper-sheet.sub::after {
  content: '';
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, rgba(180,160,100,0.4), rgba(180,160,100,0.15), rgba(180,160,100,0.4));
}

/* Rank insignia badge */
.rank-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.15rem 0.5rem;
  border: 1px solid rgba(160,150,130,0.4);
  background: rgba(200,185,150,0.1);
  color: #666;
  margin-bottom: 0.4rem;
}
.rank-badge i {
  font-size: 0.55rem;
  color: rgba(180,160,100,0.7);
}
.rank-badge.leader-badge {
  border-color: rgba(204,0,0,0.3);
  background: rgba(204,0,0,0.05);
  color: var(--red);
}
.rank-badge.leader-badge i {
  color: var(--red);
}

/* Leader content layout */
.leader-content {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 1.8rem;
  align-items: start;
}
.leader-avatar-wrap {
  text-align: center;
  position: relative;
}
/* Formal portrait frame */
.leader-avatar-wrap::before {
  content: '';
  position: absolute;
  inset: -6px;
  border: 1px solid rgba(180,160,100,0.3);
  border-radius: 2px;
  pointer-events: none;
}
.leader-avatar-wrap::after {
  content: '';
  position: absolute;
  inset: -3px;
  border: 1px solid rgba(180,160,100,0.15);
  border-radius: 1px;
  pointer-events: none;
}
.leader-avatar {
  width: auto; max-width: 110px; height: auto;
  border-radius: 1px;
  border: 1px solid rgba(160,150,130,0.4);
  object-fit: contain;
  box-shadow: 0 3px 10px rgba(0,0,0,0.2);
  background: linear-gradient(180deg, #e8e0d0, #d8d0c0);
  display: block;
}
.leader-avatar-placeholder {
  width: 110px; height: auto; aspect-ratio: 11/13;
  border-radius: 1px;
  border: 1px solid rgba(160,150,130,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #e8e0d0, #d8d0c0);
  color: #888;
  font-size: 2.2rem;
  box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}
.leader-info { padding-top: 0.2rem; }
.leader-rank {
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  color: #777;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}
.leader-name {
  font-family: var(--font-antiqua);
  font-size: 1.5rem;
  color: #0a0a0a;
  letter-spacing: 0.06em;
  margin-bottom: 0.25rem;
  line-height: 1.2;
}
.leader-role {
  font-size: 0.78rem;
  color: var(--red);
  letter-spacing: 0.18em;
  margin-bottom: 1rem;
  font-weight: 700;
  text-transform: uppercase;
}
.leader-desc {
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: #333;
  line-height: 1.7;
  border-top: 1px solid rgba(160,150,130,0.35);
  padding-top: 0.7rem;
}

/* Subordinate content layout */
.sub-content {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: center;
}
.sub-avatar {
  width: auto; max-width: 48px; height: auto;
  border-radius: 1px;
  border: 1px solid rgba(160,150,130,0.35);
  object-fit: contain;
  background: linear-gradient(180deg, #e8e0d0, #d8d0c0);
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.sub-avatar-placeholder {
  width: 48px; height: auto; aspect-ratio: 6/7;
  border-radius: 1px;
  border: 1px solid rgba(160,150,130,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #e8e0d0, #d8d0c0);
  color: #888;
  font-size: 1.1rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.sub-info { display: flex; flex-direction: column; gap: 0.15rem; }
.sub-name {
  font-family: var(--font-antiqua);
  font-size: 0.95rem;
  color: #1a1a1a;
  letter-spacing: 0.04em;
}
.sub-role {
  font-size: 0.6rem;
  color: #666;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.sub-rank {
  font-size: 0.58rem;
  color: #888;
  letter-spacing: 0.1em;
}

/* Formal typed note style for description */
.handwritten {
  font-family: 'Courier Prime', 'Courier New', monospace;
  color: #444;
  font-size: 0.85rem;
}

/* Members grid override */
.members-grid {
  display: block;
  max-width: 900px;
  margin: 0 auto;
}

.member-card {
  background: var(--black3);
  border: 1px solid var(--border);
  padding: 2rem 1.4rem 1.6rem;
  text-align: center;
  position: relative;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.member-card::before {
  content: '';
  position: absolute;
  top: 6px; left: 6px; right: 6px; bottom: 6px;
  border: 1px solid rgba(204,0,0,0.06);
  pointer-events: none;
  transition: border-color 0.3s;
}
.member-card:hover {
  border-color: var(--red3);
  box-shadow: 0 8px 30px rgba(0,0,0,0.6), 0 0 24px rgba(204,0,0,0.05);
  transform: translateY(-4px);
}
.member-card:hover::before { border-color: rgba(204,0,0,0.15); }

.member-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  border: 2px solid var(--red3);
  object-fit: cover;
  margin: 0 auto 1rem;
  display: block;
  box-shadow: 0 0 18px rgba(204,0,0,0.15), 0 4px 12px rgba(0,0,0,0.5);
}
.member-avatar-placeholder {
  width: 80px; height: 80px;
  border-radius: 50%;
  border: 2px solid var(--border2);
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--black2);
  color: var(--white3);
  font-size: 2rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}
.member-rank {
  font-family: var(--font-type);
  font-size: 0.62rem;
  color: var(--red);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}
.member-name {
  font-family: var(--font-antiqua);
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: 0.3rem;
  letter-spacing: 0.05em;
}
.member-role {
  font-size: 0.72rem;
  color: var(--red);
  letter-spacing: 0.12em;
  font-family: var(--font-type);
  margin-bottom: 0.5rem;
}
.member-divider {
  width: 30px;
  height: 1px;
  background: var(--border2);
  margin: 0.5rem auto;
}
.member-desc {
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: var(--white3);
  margin-top: 0.3rem;
  line-height: 1.55;
}

/* =============================================
   LINKS
   ============================================= */
.links-section { background: var(--black); }
.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.link-card {
  background: var(--black2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--border2);
  padding: 1rem 1.4rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: border-left-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.link-card:hover {
  border-left-color: var(--red);
  transform: translateX(5px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}
.link-icon {
  width: 40px; height: 40px;
  background: var(--black3);
  border: 1px solid var(--border2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red3);
  font-size: 1rem;
  flex-shrink: 0;
  transition: color 0.2s, border-color 0.2s;
}
.link-card:hover .link-icon {
  color: var(--red);
  border-color: var(--red3);
}
.link-info { flex: 1; min-width: 0; }
.link-cat {
  font-size: 0.62rem;
  color: var(--red);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 0.15rem;
}
.link-title {
  font-family: var(--font-antiqua);
  font-size: 0.95rem;
  color: var(--white);
  margin-bottom: 0.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.link-title a { color: var(--white) !important; }
.link-title a:hover { color: var(--red) !important; }
.link-desc { font-family: var(--font-body); font-size: 0.76rem; color: var(--white3); line-height: 1.5; }

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: var(--black);
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
  text-align: center;
  position: relative;
}
.site-footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: repeating-linear-gradient(
    90deg,
    var(--red3) 0px, var(--red3) 24px,
    transparent 24px, transparent 48px
  );
}
.footer-emblem {
  font-family: var(--font-antiqua);
  font-size: 3.5rem;
  color: rgba(240,236,224,0.04);
  letter-spacing: 0.6em;
  margin-bottom: 0.8rem;
  user-select: none;
}
.footer-text {
  font-family: var(--font-type);
  font-size: 0.78rem;
  color: var(--white3);
  letter-spacing: 0.1em;
}
.footer-sub {
  font-size: 0.65rem;
  color: rgba(240,236,224,0.2);
  margin-top: 0.6rem;
  line-height: 2;
  letter-spacing: 0.12em;
}

/* =============================================
   ADMIN PANEL — Animated slide, toast
   ============================================= */
.admin-panel {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 900;
  height: 50vh;
  min-height: 320px;
  max-height: 580px;
  background: #060606;
  border-top: 2px solid var(--red);
  display: flex;
  flex-direction: column;
  box-shadow: 0 -10px 50px rgba(0,0,0,0.9);
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
}
.admin-panel.visible {
  transform: translateY(0);
}
body.admin-open { padding-bottom: calc(50vh + 10px); }

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.55rem 1.2rem;
  background: #030303;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  min-height: 44px;
}
.admin-title-block {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.admin-badge {
  background: var(--red);
  color: var(--white);
  font-family: var(--font-type);
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  padding: 0.15rem 0.55rem;
  text-transform: uppercase;
}
.admin-title-block h2 {
  font-size: 0.9rem;
  color: var(--white);
  letter-spacing: 0.1em;
  font-family: var(--font-type);
}
.admin-status {
  font-size: 0.62rem;
  color: var(--white3);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.admin-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  overflow-x: auto;
  background: #080808;
}
.admin-tab {
  padding: 0.5rem 1.2rem;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--white3);
  font-family: var(--font-type);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all 0.25s;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  text-transform: uppercase;
}
.admin-tab:hover { color: var(--white); background: rgba(255,255,255,0.02); }
.admin-tab.active {
  color: var(--white);
  border-bottom-color: var(--red);
  background: rgba(204,0,0,0.08);
}

.admin-tab-content {
  display: none;
  flex-direction: column;
  overflow-y: auto;
  flex: 1;
  padding: 1rem 1.4rem;
}
.admin-tab-content.active { display: flex; }

.admin-section-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.8rem;
  flex-shrink: 0;
}
.admin-section-bar h3 {
  font-size: 0.85rem;
  color: var(--white2);
  letter-spacing: 0.1em;
  font-family: var(--font-type);
  text-transform: uppercase;
}

/* Admin Table */
.admin-table-wrap { overflow-x: auto; overflow-y: auto; flex: 1; }
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-type);
  font-size: 0.78rem;
}
.admin-table th {
  background: #0c0c0c;
  color: var(--white3);
  font-size: 0.67rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.45rem 0.9rem;
  text-align: left;
  border-bottom: 1px solid var(--border2);
  white-space: nowrap;
  position: sticky;
  top: 0;
}
.admin-table td {
  padding: 0.45rem 0.9rem;
  border-bottom: 1px solid rgba(42,42,42,0.6);
  color: var(--white2);
  vertical-align: middle;
}
.admin-table tr:hover td { background: rgba(255,255,255,0.02); }
.admin-table td.actions {
  white-space: nowrap;
  display: flex;
  gap: 0.4rem;
  padding-top: 0.3rem;
  padding-bottom: 0.3rem;
}

/* Settings */
.settings-form { max-width: 500px; }
.form-group { margin-bottom: 1.1rem; }
.form-group label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white3);
  margin-bottom: 0.35rem;
  font-family: var(--font-type);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--black3);
  border: 1px solid var(--border2);
  color: var(--white);
  font-family: var(--font-type);
  font-size: 0.85rem;
  padding: 0.5rem 0.8rem;
  outline: none;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--red);
  background: var(--black4);
  box-shadow: 0 0 12px rgba(204,0,0,0.1);
}
.form-group textarea { resize: vertical; min-height: 80px; }
.form-group select { cursor: pointer; }

/* ---- Native checkbox (admin edit modal) ---- */
.form-group.checkbox-native .checkbox-label {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  cursor: pointer;
  color: var(--white2);
  font-size: 0.9rem;
  font-weight: 500;
}
.form-group.checkbox-native .checkbox-label input[type="checkbox"] {
  width: auto;
  height: auto;
  min-width: 1.1em;
  min-height: 1.1em;
  accent-color: var(--red);
  cursor: pointer;
  margin: 0;
  vertical-align: middle;
}
.success-msg {
  font-size: 0.8rem;
  color: #4caf82;
  margin-top: 0.5rem;
  letter-spacing: 0.1em;
  font-family: var(--font-type);
}
.error-msg {
  font-size: 0.78rem;
  color: var(--red);
  margin-top: 0.4rem;
  letter-spacing: 0.1em;
  text-align: center;
  font-family: var(--font-type);
}

/* =============================================
   TOAST NOTIFICATIONS
   ============================================= */
.toast-container {
  position: fixed;
  top: calc(var(--topbar-h) + 10px);
  right: 1rem;
  z-index: 9500;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}
.toast {
  background: var(--black2);
  border: 1px solid var(--border2);
  border-left: 3px solid var(--red);
  padding: 0.8rem 1.2rem;
  font-family: var(--font-type);
  font-size: 0.82rem;
  color: var(--white);
  letter-spacing: 0.05em;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  transform: translateX(120%);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
  pointer-events: auto;
  max-width: 320px;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.toast.show { transform: translateX(0); }
.toast.toast-success { border-left-color: #4caf82; }
.toast.toast-error { border-left-color: var(--red); }

/* =============================================
   MODALS — with animation
   ============================================= */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.25s;
}
.modal-backdrop:not(.hidden) { opacity: 1; }
.modal-box {
  background: var(--black2);
  border: 1px solid var(--border2);
  padding: 2rem;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow:
    0 0 0 1px rgba(204,0,0,0.05),
    0 0 80px rgba(0,0,0,0.95),
    0 0 30px rgba(204,0,0,0.1);
  transform: scale(0.92) translateY(10px);
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
}
.modal-backdrop:not(.hidden) .modal-box {
  transform: scale(1) translateY(0);
}
.modal-box::before {
  content: '';
  position: absolute;
  top: 7px; left: 7px; right: 7px; bottom: 7px;
  border: 1px solid rgba(204,0,0,0.06);
  pointer-events: none;
  z-index: 0;
}
.modal-box.small { max-width: 380px; }
.modal-box.large { max-width: 640px; }
.modal-box > * { position: relative; z-index: 1; }

.modal-header {
  text-align: center;
  margin-bottom: 1.6rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.stamp-text {
  font-family: var(--font-antiqua);
  color: var(--red);
  font-size: 0.9rem;
  letter-spacing: 0.55em;
  border: 3px double var(--red);
  padding: 0.15rem 0.7rem;
  display: inline-block;
  transform: rotate(-3deg);
  margin-bottom: 0.6rem;
  opacity: 0.85;
  box-shadow: 0 0 8px rgba(204,0,0,0.2), inset 0 0 12px rgba(204,0,0,0.03);
  position: relative;
}
.stamp-text::after {
  content: '';
  position: absolute;
  inset: 2px;
  border: 1px dashed rgba(204,0,0,0.2);
  pointer-events: none;
}
.modal-header h2 {
  font-size: 1.2rem;
  color: var(--white);
  letter-spacing: 0.1em;
  font-family: var(--font-antiqua);
}
.modal-header p {
  font-size: 0.68rem;
  color: var(--white3);
  letter-spacing: 0.18em;
  margin-top: 0.3rem;
  text-transform: uppercase;
}
.modal-actions {
  display: flex;
  gap: 0.9rem;
  justify-content: center;
  margin-top: 1.6rem;
  flex-wrap: wrap;
}

/* =============================================
   LOADING & EMPTY
   ============================================= */
.loading-msg, .empty-msg {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--white3);
  font-family: var(--font-type);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
}
.empty-msg i { font-size: 2rem; margin-bottom: 0.6rem; display: block; opacity: 0.25; }
.loading-msg i { color: var(--red); }

/* =============================================
   SCROLLBAR
   ============================================= */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--red3); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: var(--red); }

/* =============================================
   ANIMATIONS — Scroll reveals, parallax, effects
   ============================================= */

/* Scroll reveal base */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.4,0,0.2,1), transform 0.8s cubic-bezier(0.4,0,0.2,1);
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s cubic-bezier(0.4,0,0.2,1), transform 0.8s cubic-bezier(0.4,0,0.2,1);
}
.reveal-left.revealed {
  opacity: 1;
  transform: translateX(0);
}
.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s cubic-bezier(0.4,0,0.2,1), transform 0.8s cubic-bezier(0.4,0,0.2,1);
}
.reveal-right.revealed {
  opacity: 1;
  transform: translateX(0);
}
.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.7s cubic-bezier(0.4,0,0.2,1), transform 0.7s cubic-bezier(0.4,0,0.2,1);
}
.reveal-scale.revealed {
  opacity: 1;
  transform: scale(1);
}

/* Stagger delay classes */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* Hero entrance animations */
@keyframes heroEmblemIn {
  0% { opacity: 0; transform: scale(0.5) rotate(-10deg); }
  100% { opacity: 1; transform: scale(1) rotate(0deg); }
}
@keyframes heroTitleIn {
  0% { opacity: 0; transform: translateY(40px) scale(0.95); letter-spacing: 0.5em; }
  100% { opacity: 1; transform: translateY(0) scale(1); letter-spacing: 0.15em; }
}
@keyframes heroFadeUp {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes heroRuleExpand {
  0% { width: 0; opacity: 0; }
  100% { width: 300px; opacity: 1; }
}

.hero-emblem {
  animation: heroEmblemIn 1s cubic-bezier(0.4,0,0.2,1) 0.2s both;
}
.hero-title {
  animation: heroTitleIn 1.2s cubic-bezier(0.4,0,0.2,1) 0.4s both;
}
.hero-subtitle-top {
  animation: heroFadeUp 0.8s cubic-bezier(0.4,0,0.2,1) 0.6s both;
}
.hero-full-name {
  animation: heroFadeUp 0.8s cubic-bezier(0.4,0,0.2,1) 0.7s both;
}
.hero-tagline {
  animation: heroFadeUp 0.8s cubic-bezier(0.4,0,0.2,1) 0.8s both;
}
.hero-rule {
  animation: heroRuleExpand 1s cubic-bezier(0.4,0,0.2,1) 0.9s both;
}
.discord-cta-btn {
  animation: heroFadeUp 0.8s cubic-bezier(0.4,0,0.2,1) 1.1s both;
}

/* Parallax layers */
.parallax-slow { will-change: transform; }
.parallax-fast { will-change: transform; }

/* Card hover lift enhancement */
.news-card, .link-card, .member-card {
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1), box-shadow 0.4s cubic-bezier(0.4,0,0.2,1);
}

/* Ink spot pulse on hover */
@keyframes inkPulse {
  0%, 100% { opacity: 0.25; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}
.classified-card:hover .ink-spot {
  animation: inkPulse 1.5s ease-in-out infinite;
}

/* Section stamp flash on scroll */
@keyframes stampFlash {
  0% { opacity: 0; transform: translateY(10px); }
  50% { opacity: 1; }
  100% { opacity: 0.85; transform: translateY(0); }
}

/* Top bar scroll state */
.top-bar.scrolled {
  background: rgba(10,10,10,0.98);
  box-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

/* Touch ripple effect */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(204,0,0,0.3);
  transform: scale(0);
  animation: rippleAnim 0.6s ease-out forwards;
  pointer-events: none;
}
@keyframes rippleAnim {
  to { transform: scale(4); opacity: 0; }
}

/* Loading skeleton shimmer */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.shimmer {
  background: linear-gradient(90deg, var(--black3) 25%, var(--black4) 50%, var(--black3) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

/* Typewriter cursor blink */
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
.typewriter-cursor::after {
  content: '|';
  animation: blink 1s step-end infinite;
  color: var(--red);
}

/* Roster folder subtle lift on hover */
.roster-folder {
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1), box-shadow 0.4s cubic-bezier(0.4,0,0.2,1);
}
.roster-folder:hover {
  transform: translateY(-2px);
  box-shadow:
    0 24px 70px rgba(0,0,0,0.85),
    0 6px 16px rgba(0,0,0,0.5),
    inset 0 1px 0 rgba(255,255,255,0.04),
    inset 0 -1px 0 rgba(0,0,0,0.3);
}

/* Red bar pulse on hero */
@keyframes barPulse {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 0.9; }
}
.hero-section::before,
.hero-section::after {
  animation: barPulse 4s ease-in-out infinite;
}
.hero-section::after {
  animation-delay: 2s;
}

/* Link card slide-in stagger */
.link-card:nth-child(1) { transition-delay: 0s; }
.link-card:nth-child(2) { transition-delay: 0.05s; }
.link-card:nth-child(3) { transition-delay: 0.1s; }
.link-card:nth-child(4) { transition-delay: 0.15s; }
.link-card:nth-child(5) { transition-delay: 0.2s; }
.link-card:nth-child(6) { transition-delay: 0.25s; }

/* News card stagger */
.news-card:nth-child(1) { transition-delay: 0s; }
.news-card:nth-child(2) { transition-delay: 0.08s; }
.news-card:nth-child(3) { transition-delay: 0.16s; }
.news-card:nth-child(4) { transition-delay: 0.24s; }
.news-card:nth-child(5) { transition-delay: 0.32s; }
.news-card:nth-child(6) { transition-delay: 0.40s; }

/* Mobile touch feedback */
@media (hover: none) {
  .btn-primary:active { transform: scale(0.97); }
  .discord-cta-btn:active { transform: scale(0.97) translateY(-1px); }
  .news-card:active { transform: scale(0.98); }
  .link-card:active { transform: translateX(3px); }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-left, .reveal-right, .reveal-scale {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero-emblem, .hero-title, .hero-subtitle-top, .hero-full-name, .hero-tagline, .hero-rule, .discord-cta-btn {
    animation: none;
    opacity: 1;
  }
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 768px) {
  .about-content { grid-template-columns: 1fr; }
  .members-grid { display: block; max-width: 900px; margin: 0 auto; }
  .news-grid { grid-template-columns: 1fr; }
  .news-card-body { column-count: 1; }
  .links-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: clamp(4rem, 20vw, 6rem); }
  .discord-cta-btn { padding: 1rem 2rem; font-size: 1rem; }
  .admin-panel { height: 55vh; max-height: none; }
  body.admin-open { padding-bottom: 55vh; }
  .top-nav { display: none; }
  .top-bar-brand span { display: none; }
  /* roster responsive */
  .roster-folder { padding: 2rem 0.8rem 1.6rem; margin: 0 auto; border-radius: 4px; max-width: calc(100% - 0.5rem); }
  .roster-header-title { font-size: 0.9rem; letter-spacing: 0.25em; }
  .roster-header-insignia { font-size: 1.4rem; }
  .paper-sheet.leader { padding: 1.4rem 1rem 1.2rem; }
  .leader-content { grid-template-columns: 1fr; text-align: center; gap: 0.8rem; }
  .leader-avatar-wrap::before, .leader-avatar-wrap::after { display: none; }
  .leader-avatar, .leader-avatar-placeholder { margin: 0 auto; width: 100%; max-width: 160px; height: auto; }
  .leader-name { font-size: 1.25rem; }
  .leader-role { font-size: 0.7rem; }
  .leader-desc { font-size: 0.8rem; line-height: 1.6; }
  .leader-stamp { top: 10px; right: 10px; font-size: 0.45rem; padding: 0.15rem 0.5rem; }
  .paper-sheet.sub { padding: 1rem 1rem; }
  .sub-content { grid-template-columns: 52px 1fr; gap: 0.8rem; align-items: center; }
  .sub-avatar, .sub-avatar-placeholder { width: 100%; max-width: 52px; height: auto; }
  .sub-name { font-size: 0.9rem; }
  .hamburger-btn,
  .hamburger-dropdown { display: flex; }
  .hamburger-dropdown { flex-direction: column; }
  /* classified card — disable complex clip-path on mobile to prevent rendering glitches */
  .classified-card {
    clip-path: none;
    border-radius: 2px;
  }
  .about-sidebar { max-width: 100%; }
  /* portrait frames — force block layout and contained image sizing on mobile */
  .portrait-frame,
  .portrait-frame-sub {
    display: flex;
    justify-content: center;
    max-width: 100%;
  }
  .portrait-frame img,
  .portrait-frame-placeholder,
  .portrait-frame-sub img,
  .portrait-frame-sub-placeholder {
    width: 100%;
    max-width: 100%;
    height: auto;
  }
  /* leader portrait — cap max size on tablet/mobile so it doesn't overflow card */
  .portrait-frame img.leader-avatar,
  .portrait-frame-placeholder .leader-avatar-placeholder {
    max-width: 180px;
  }
}
@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .hero-inner { padding: 2rem 1rem; }
  .section { padding: 3.5rem 0; }
  .roster-folder { padding: 1.6rem 0.6rem 1rem; margin: 0 auto; max-width: 100%; }
  .roster-header-title { font-size: 0.78rem; letter-spacing: 0.2em; }
  .roster-header-insignia { font-size: 1.2rem; }
  .paper-sheet.leader { padding: 1.1rem 0.8rem 0.9rem; }
  .leader-content { gap: 0.6rem; }
  .leader-avatar-wrap { max-width: 120px; margin: 0 auto; }
  .portrait-frame,
  .portrait-frame-placeholder { max-width: 100%; }
  .portrait-frame img.leader-avatar { width: 100%; max-width: 120px; height: auto; }
  .portrait-frame-placeholder { width: 100%; max-width: 120px; aspect-ratio: 11/13; }
  .leader-name { font-size: 1.1rem; }
  .leader-role { font-size: 0.65rem; }
  .leader-desc { font-size: 0.76rem; }
  .leader-stamp { font-size: 0.4rem; padding: 0.1rem 0.4rem; }
  .paper-sheet.sub { padding: 0.8rem 0.8rem; }
  .sub-content { grid-template-columns: 48px 1fr; gap: 0.6rem; align-items: center; }
  .portrait-frame-sub,
  .portrait-frame-sub-placeholder { max-width: 48px; }
  .portrait-frame-sub img.sub-avatar { width: 100%; max-width: 48px; height: auto; }
  .portrait-frame-sub-placeholder { width: 48px; }
  .sub-name { font-size: 0.85rem; }
  .sub-role { font-size: 0.58rem; }
  .sub-rank { font-size: 0.54rem; }
  .rank-badge { font-size: 0.52rem; padding: 0.12rem 0.38rem; }
}
@media (max-width: 360px) {
  .roster-folder { margin: 0 auto; border-radius: 2px; max-width: 100%; }
  .paper-sheet.leader { padding: 0.9rem 0.6rem 0.7rem; }
  .paper-sheet.sub { padding: 0.7rem 0.6rem; }
  .sub-content { grid-template-columns: 40px 1fr; gap: 0.5rem; align-items: center; }
  .portrait-frame-sub,
  .portrait-frame-sub-placeholder { max-width: 40px; }
  .portrait-frame-sub img.sub-avatar { width: 100%; max-width: 40px; height: auto; }
  .portrait-frame-sub-placeholder { width: 40px; }
  .leader-avatar-wrap { max-width: 100px; }
  .portrait-frame img.leader-avatar { max-width: 100px; }
  .portrait-frame-placeholder { max-width: 100px; }
}

/* =============================================
   EMBLEM IMAGE (favicon sync)
   ============================================= */
.emblem-image {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.8));
}

/* =============================================
   PORTRAIT FRAMES — ornate 1940s officer photo frames
   ============================================= */
.portrait-frame {
  position: relative;
  display: inline-block;
  padding: 5px;
  background: linear-gradient(145deg, #d4c8a8 0%, #b8a878 50%, #c4b888 100%);
  border-radius: 1px;
  box-shadow:
    0 2px 8px rgba(0,0,0,0.25),
    inset 0 1px 0 rgba(255,255,255,0.3),
    inset 0 -1px 0 rgba(0,0,0,0.1);
}
.portrait-frame::before {
  content: '';
  position: absolute;
  inset: 2px;
  border: 1px solid rgba(139,119,79,0.4);
  pointer-events: none;
  z-index: 2;
}
.portrait-frame::after {
  content: '';
  position: absolute;
  inset: 4px;
  border: 1px dashed rgba(139,119,79,0.25);
  pointer-events: none;
  z-index: 2;
}
.portrait-frame img {
  display: block;
  max-width: 110px;
  width: auto;
  height: auto;
  border-radius: 1px;
  background: linear-gradient(180deg, #e8e0d0, #d8d0c0);
  position: relative;
  z-index: 1;
}
.portrait-frame-placeholder {
  width: 110px;
  aspect-ratio: 11/13;
  border-radius: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #e8e0d0, #d8d0c0);
  color: #888;
  font-size: 2.2rem;
  position: relative;
  z-index: 1;
}

.portrait-frame-sub {
  position: relative;
  display: inline-block;
  padding: 3px;
  background: linear-gradient(145deg, #c8bc9c 0%, #a89868 50%, #b8a878 100%);
  border-radius: 1px;
  box-shadow:
    0 1px 4px rgba(0,0,0,0.2),
    inset 0 1px 0 rgba(255,255,255,0.25),
    inset 0 -1px 0 rgba(0,0,0,0.08);
}
.portrait-frame-sub::before {
  content: '';
  position: absolute;
  inset: 1px;
  border: 1px solid rgba(139,119,79,0.35);
  pointer-events: none;
  z-index: 2;
}
.portrait-frame-sub img {
  display: block;
  max-width: 48px;
  width: auto;
  height: auto;
  border-radius: 1px;
  background: linear-gradient(180deg, #e8e0d0, #d8d0c0);
  position: relative;
  z-index: 1;
}
.portrait-frame-sub-placeholder {
  width: 48px;
  aspect-ratio: 6/7;
  border-radius: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #e8e0d0, #d8d0c0);
  color: #888;
  font-size: 1.1rem;
  position: relative;
  z-index: 1;
}

/* =============================================
   CLIPBOARD AESTHETIC — metal clips on paper sheets
   ============================================= */
.clipboard-top {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 18px;
  background: linear-gradient(180deg, #888 0%, #555 50%, #666 100%);
  border-radius: 3px 3px 1px 1px;
  box-shadow:
    0 2px 4px rgba(0,0,0,0.4),
    inset 0 1px 0 rgba(255,255,255,0.2),
    inset 0 -1px 0 rgba(0,0,0,0.2);
  z-index: 10;
}
.clipboard-top::before {
  content: '';
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 8px;
  background: linear-gradient(180deg, #aaa 0%, #777 100%);
  border-radius: 2px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.3);
}
.clipboard-top::after {
  content: '';
  position: absolute;
  top: 18px;
  left: 2px;
  right: 2px;
  height: 2px;
  background: rgba(0,0,0,0.3);
  border-radius: 1px;
}

.clipboard-clip {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 22px;
  height: 8px;
  background: linear-gradient(180deg, #999 0%, #666 50%, #777 100%);
  border-radius: 2px 2px 1px 1px;
  box-shadow:
    0 1px 3px rgba(0,0,0,0.3),
    inset 0 1px 0 rgba(255,255,255,0.2);
  z-index: 5;
}
.clipboard-clip::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 4px;
  background: linear-gradient(180deg, #bbb 0%, #888 100%);
  border-radius: 1px;
}

.clipboard-clip-sub {
  position: absolute;
  top: 6px;
  left: 6px;
  width: 16px;
  height: 6px;
  background: linear-gradient(180deg, #999 0%, #666 50%, #777 100%);
  border-radius: 1px;
  box-shadow:
    0 1px 2px rgba(0,0,0,0.25),
    inset 0 1px 0 rgba(255,255,255,0.2);
  z-index: 5;
}
.clipboard-clip-sub::before {
  content: '';
  position: absolute;
  top: 1px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 3px;
  background: linear-gradient(180deg, #bbb 0%, #888 100%);
  border-radius: 1px;
}

/* =============================================
   YOUTUBE SECTION — 1940s film reel aesthetic
   ============================================= */
.youtube-section {
  background: linear-gradient(180deg, var(--black) 0%, var(--black2) 100%);
  position: relative;
}
.youtube-section::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.5' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23f)' opacity='1'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  pointer-events: none;
}

.youtube-film-reel {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  background: linear-gradient(180deg, #1a1510 0%, #231e18 30%, #231e18 70%, #1a1510 100%);
  border-radius: 4px;
  padding: 24px 0;
  box-shadow:
    0 12px 40px rgba(0,0,0,0.7),
    0 4px 12px rgba(0,0,0,0.4),
    inset 0 1px 0 rgba(255,255,255,0.03);
  border: 1px solid #3d3025;
}

/* Film sprocket holes on top and bottom */
.film-reel-sprockets {
  position: relative;
  height: 18px;
  background:
    repeating-linear-gradient(
      90deg,
      transparent 0px,
      transparent 10px,
      #0a0a0a 10px,
      #0a0a0a 16px,
      transparent 16px,
      transparent 26px
    );
  margin: 0 24px;
  opacity: 0.8;
}
.film-reel-sprockets::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(180,160,100,0.2), transparent);
}
.film-reel-sprockets::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(180,160,100,0.2), transparent);
}

.youtube-frame {
  margin: 0 24px;
  padding: 0;
  position: relative;
  background: #0a0a0a;
  border: 2px solid #2a2018;
  border-radius: 2px;
  overflow: hidden;
}
/* 16:9 aspect ratio via padding-bottom (most reliable for iframe) */
.youtube-frame::before {
  content: '';
  display: block;
  padding-bottom: 56.25%;
}
#youtubeContainer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
#youtubeContainer.hidden {
  display: none !important;
}
.youtube-frame iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* Empty state inside youtube frame */
.youtube-frame .empty-msg {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #141210, #0f0e0c);
  z-index: 2;
}
.youtube-frame .empty-msg.hidden {
  display: none !important;
}

/* Film reel edge scratches/decoration */
.youtube-film-reel::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: 4px;
  box-shadow:
    inset 0 0 0 1px rgba(180,160,100,0.08),
    inset 0 0 60px rgba(0,0,0,0.4);
  z-index: 2;
}

/* Responsive youtube */
@media (max-width: 768px) {
  .youtube-film-reel { margin: 0 -0.5rem; border-radius: 3px; }
  .film-reel-sprockets { margin: 0 16px; height: 14px; }
  .youtube-frame { margin: 0 16px; }
}
@media (max-width: 480px) {
  .youtube-film-reel { margin: 0 -1rem; border-radius: 2px; padding: 16px 0; }
  .film-reel-sprockets { margin: 0 12px; height: 12px; }
  .youtube-frame { margin: 0 12px; }
}
