/* ==========================================================================
   JAPANESE CULINARY CLUB — MEMORY ARCHIVE & RAMEN SQUAD STYLESHEET
   Refined Japanese Emerald, Gold & Vermilion Aesthetic
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. THEME TOKENS & CSS VARIABLES
   -------------------------------------------------------------------------- */
:root {
  color-scheme: dark;
  --ink: #040a06;
  --ink-deep: #020503;
  --ink-card: rgba(6, 16, 10, 0.88);
  --forest-green: #113622;
  --emerald: #10b981;
  --emerald-light: #34d399;
  --vermilion: #e0231c;
  --vermilion-glow: rgba(224, 35, 28, 0.4);
  --gold: #d4af37;
  --gold-light: #fef08a;
  --gold-glow: rgba(212, 175, 55, 0.35);
  --bone: #f0fdf4;
  --bone-dim: #cbd5e1;
  --muted: #8fa397;
  --line: rgba(255, 255, 255, 0.12);
  --line-gold: rgba(212, 175, 55, 0.25);
  --pad: clamp(20px, 4vw, 56px);
  --nav-h: 76px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --------------------------------------------------------------------------
   2. GLOBAL RESET & BASE STYLES
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  background: #092015;
}

body {
  margin: 0;
  padding: 0;
  background-color: #092015;
  background-image: url('../forest-bg.png');
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  color: var(--bone);
  font-family: 'Onest', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 300;
  font-size: 15px;
  line-height: 1.68;
  overflow-x: hidden;
  width: 100%;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--vermilion);
  color: #ffffff;
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

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

/* Typography Utility Classes */
.jp { font-family: 'Noto Serif JP', serif; }
.display { font-family: 'Instrument Serif', Georgia, serif; line-height: 1.12; font-weight: normal; }
.cursive { font-family: 'Great Vibes', cursive; }
.cinzel { font-family: 'Cinzel', serif; }

.gold-gradient {
  background: linear-gradient(135deg, #ffffff 20%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

/* Hanko Japanese Stamp */
.hanko-stamp {
  border: 2px solid var(--vermilion);
  color: var(--vermilion);
  box-shadow: 0 0 12px var(--vermilion-glow);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(224, 35, 28, 0.08);
}

/* --------------------------------------------------------------------------
   3. BACKGROUND 3D CANVAS & MYSTICAL FOREST LAYERS
   -------------------------------------------------------------------------- */
#gl {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

.forest-main-bg {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  background-image: url('../forest-bg.png');
  background-size: cover;
  background-position: center center;
  filter: brightness(0.92) contrast(1.08) saturate(1.15);
  transform: scale(1.02);
  transition: transform 0.2s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

.sunbeams-overlay {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse at 50% 0%, rgba(254, 240, 138, 0.22) 0%, transparent 65%),
              linear-gradient(180deg, rgba(6, 25, 16, 0.15) 0%, rgba(5, 20, 13, 0.35) 50%, rgba(4, 18, 11, 0.58) 100%);
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   4. INTRO PORTAL OVERLAY (WELCOME SCREEN)
   -------------------------------------------------------------------------- */
#intro-portal {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: clamp(20px, 3vh, 36px) var(--pad);
  overflow-y: auto;
  overflow-x: hidden;
  transition: opacity 0.85s var(--ease-out), visibility 0.85s;
  background: rgba(3, 12, 7, 0.92);
  min-height: 100vh;
}

#intro-portal.portal-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.intro-bg-layer {
  position: absolute;
  inset: -5%;
  width: 110%;
  height: 110%;
  background-image: url('../welcome-bg.png');
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
  filter: brightness(0.9) contrast(1.08);
  pointer-events: none;
  will-change: transform;
  z-index: 1;
}

.intro-light-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 30%, rgba(255,255,255,0.18) 0%, rgba(4,10,6,0.3) 55%, rgba(2,5,3,0.88) 100%);
  pointer-events: none;
  z-index: 2;
}

.intro-top {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1200px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 6px;
}

.intro-brand-cursive {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(28px, 3.5vw, 40px);
  color: #ffffff;
  text-shadow: 0 2px 14px rgba(0,0,0,0.85);
}

.intro-center {
  position: relative;
  z-index: 10;
  text-align: center;
  margin: 20px 0;
  width: 100%;
  max-width: 860px;
}

.intro-3d-box {
  padding: 10px;
}

.intro-jp-sub {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(13px, 1.6vw, 17px);
  color: var(--gold);
  letter-spacing: 0.35em;
  margin-bottom: 4px;
  text-shadow: 0 2px 14px rgba(0,0,0,0.9);
}

.intro-title-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 6px;
}

.intro-welcome-text {
  font-family: 'Cinzel', serif;
  font-size: clamp(40px, 7.5vw, 90px);
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1;
  color: #ffffff;
  text-shadow: 0 10px 40px rgba(0,0,0,0.95), 0 2px 15px var(--gold-glow);
}

.intro-sun-dot {
  color: var(--vermilion);
  display: inline-block;
  text-shadow: 0 0 25px rgba(224,35,28,0.8);
}

.intro-tag-phrase {
  font-size: clamp(11px, 1.4vw, 14px);
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--bone);
  text-shadow: 0 2px 16px rgba(0,0,0,0.9);
  margin-bottom: 8px;
  text-transform: uppercase;
}

.intro-cursive-japan {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(28px, 5vw, 56px);
  color: var(--gold);
  text-shadow: 0 4px 20px rgba(0,0,0,0.9), 0 0 15px var(--gold-glow);
  margin-bottom: clamp(18px, 3vh, 32px);
}

.intro-enter-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(135deg, #a51d2d, #520912);
  border: 1px solid rgba(212, 175, 55, 0.7);
  color: #ffffff;
  padding: 14px 36px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: 0 10px 30px rgba(0,0,0,0.8), 0 0 20px var(--vermilion-glow);
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, filter 0.25s ease;
  transform-origin: center center;
}

/* Invisible buffer zone preventing edge-hunting cursor flicker */
.intro-enter-btn::after {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 999px;
  pointer-events: auto;
}

.intro-enter-btn * {
  pointer-events: none;
}

.intro-enter-btn:hover {
  transform: scale(1.04);
  box-shadow: 0 15px 40px rgba(0,0,0,0.9), 0 0 35px var(--gold-glow), 0 0 20px var(--vermilion-glow);
  border-color: var(--gold);
  filter: brightness(1.08);
}

.intro-enter-btn:active {
  transform: scale(0.98);
}

.intro-bottom-cols {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1200px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 2vw, 24px);
  margin-top: 10px;
}

.intro-col {
  background: rgba(4, 10, 6, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line-gold);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  text-align: left;
}

.intro-col b {
  display: block;
  font-size: 13.5px;
  color: var(--gold);
  margin-bottom: 5px;
  font-family: 'Onest', sans-serif;
  font-weight: 600;
}

.intro-col p {
  font-size: 12px;
  color: var(--bone-dim);
  margin: 0;
  line-height: 1.55;
}

/* --------------------------------------------------------------------------
   5. NAVIGATION BAR
   -------------------------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  padding: 0 var(--pad);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(4, 10, 6, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line-gold);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--vermilion), #7f1d1d);
  border: 1px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Noto Serif JP', serif;
  font-weight: 700;
  color: var(--gold);
  font-size: 20px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

.brand-tx b {
  display: block;
  font-family: 'Cinzel', serif;
  font-size: 15px;
  letter-spacing: 0.08em;
  color: #ffffff;
  line-height: 1.2;
}

.brand-tx i {
  font-size: 9.5px;
  letter-spacing: 0.18em;
  color: var(--gold);
  display: block;
  font-style: normal;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.8vw, 26px);
}

.nav-link {
  font-size: 13.5px;
  color: var(--bone-dim);
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 400;
}

.nav-link:hover {
  color: var(--gold);
}

/* Common Button Styles */
.kage-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #a51d2d, #520912);
  border: 1px solid var(--gold);
  color: #ffffff;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  box-shadow: 0 4px 14px rgba(0,0,0,0.6);
  transition: all 0.25s ease;
  white-space: nowrap;
}

.kage-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--gold-glow);
  border-color: var(--gold-light);
}

.kage-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--line-gold);
  color: var(--bone);
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.kage-btn-secondary:hover {
  background: rgba(212,175,55,0.15);
  border-color: var(--gold);
  color: #ffffff;
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   6. CARD SYSTEM & SECTION BASE
   -------------------------------------------------------------------------- */
.page {
  position: relative;
  z-index: 10;
  width: 100%;
}

.sec {
  padding: clamp(60px, 8vw, 110px) var(--pad);
  max-width: 1240px;
  margin: 0 auto;
  width: 100%;
}

.sec-header {
  text-align: center;
  margin-bottom: clamp(36px, 5vw, 56px);
}

.sec-title {
  font-size: clamp(32px, 4.5vw, 52px);
  margin: 8px 0 12px;
  color: #ffffff;
}

.kage-card {
  background: var(--ink-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line-gold);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 36px rgba(0,0,0,0.6);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.kage-card:hover {
  transform: translateY(-2px);
  border-color: var(--gold);
  box-shadow: 0 20px 44px rgba(0,0,0,0.8), 0 0 16px rgba(212,175,55,0.18);
}

/* --------------------------------------------------------------------------
   7. HERO SECTION (#beranda)
   -------------------------------------------------------------------------- */
.hero {
  min-height: calc(90vh - var(--nav-h));
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(48px, 6vw, 90px) var(--pad);
  max-width: 1240px;
  margin: 0 auto;
  position: relative;
}

.hero-main {
  max-width: 820px;
  position: relative;
  z-index: 2;
}

.hero-side-v {
  position: absolute;
  right: var(--pad);
  top: clamp(60px, 8vw, 110px);
  writing-mode: vertical-rl;
  font-family: 'Noto Serif JP', serif;
  font-size: 15px;
  letter-spacing: 0.35em;
  color: rgba(212, 175, 55, 0.4);
  user-select: none;
  pointer-events: none;
  display: block;
}

.hero-cue {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-cue .track {
  width: 50px;
  height: 2px;
  background: var(--line-gold);
  position: relative;
  overflow: hidden;
}

.hero-cue .track i {
  position: absolute;
  left: -20px;
  width: 20px;
  height: 100%;
  background: var(--gold);
  animation: trackFlow 2s infinite ease-in-out;
}

@keyframes trackFlow {
  0% { left: -20px; }
  100% { left: 50px; }
}

/* Chapter Navigation Grid */
.chapters-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.chip {
  background: rgba(4, 10, 6, 0.8);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line-gold);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition: all 0.25s ease;
}

.chip:hover {
  background: rgba(10, 26, 16, 0.95);
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.6), 0 0 16px rgba(212,175,55,0.25);
}

.chip .num {
  font-family: 'Cinzel', serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--gold);
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid var(--line-gold);
  padding: 4px 8px;
  border-radius: 6px;
  flex-shrink: 0;
  line-height: 1;
}

.chip b {
  display: block;
  font-size: 13.5px;
  color: #ffffff;
  margin-bottom: 3px;
  font-weight: 600;
}

.chip p {
  font-size: 11.5px;
  color: var(--bone-dim);
  margin: 0;
  line-height: 1.45;
}

/* --------------------------------------------------------------------------
   8. ABOUT & SQUAD MEMBER HIERARCHY (#tentang & #anggota)
   -------------------------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(24px, 3.5vw, 40px);
  align-items: stretch;
}

.leaders-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(20px, 3vw, 28px);
  margin-bottom: 24px;
}

.divisions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2.5vw, 24px);
  margin-bottom: 24px;
}

.members-subgrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2vw, 20px);
}

.member-card {
  padding: clamp(22px, 3vw, 32px);
  position: relative;
  overflow: visible;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* ==========================================================================
   REACT BITS: BORDER GLOW COMPONENT
   ========================================================================== */
.border-glow-card {
  --edge-sensitivity: 30px;
  --glow-radius: 40px;
  --glow-intensity: 1.0;
  --cone-spread: 25deg;
  --edge-proximity: 0;
  --cursor-angle: 0deg;
  --mouse-x: 50%;
  --mouse-y: 50%;
  --glow-rgb: 212, 175, 55;
  --glow-color-1: #d4af37;
  --glow-color-2: #f472b6;
  --glow-color-3: #38bdf8;
  --border-radius: var(--radius-lg);
  --bg-color: var(--ink-card);

  position: relative;
  border-radius: var(--border-radius);
  background-color: var(--bg-color);
  isolation: isolate;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.25s ease;
}

.border-glow-card:hover {
  transform: translateY(-3px);
}

/* Conic mesh gradient border tracking the cursor angle */
.border-glow-card::before {
  content: "";
  position: absolute;
  inset: -1.5px;
  border-radius: inherit;
  padding: 1.5px;
  background: conic-gradient(
    from var(--cursor-angle, 0deg) at 50% 50%,
    transparent 0deg,
    var(--glow-color-1, #d4af37) calc(180deg - var(--cone-spread, 25deg)),
    var(--glow-color-2, #f472b6) 180deg,
    var(--glow-color-3, #38bdf8) calc(180deg + var(--cone-spread, 25deg)),
    transparent 360deg
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: calc(var(--edge-proximity, 0) * var(--glow-intensity, 1));
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 2;
}

/* Ambient radial fill when moving near edges */
.border-glow-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(var(--glow-rgb, 212, 175, 55), 0.12) 0%,
    transparent 70%
  );
  opacity: calc(var(--edge-proximity, 0) * var(--glow-intensity, 1));
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 1;
}

/* Outer soft edge glow */
.border-glow-card .edge-light {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: -1;
  box-shadow: 0 0 calc(var(--glow-radius, 40px) * var(--edge-proximity, 0))
    rgba(var(--glow-rgb, 212, 175, 55), calc(0.4 * var(--edge-proximity, 0) * var(--glow-intensity, 1)));
  transition: box-shadow 0.2s ease;
}

.border-glow-inner {
  position: relative;
  z-index: 3;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Squad Member Photo Frame */
.member-photo-box {
  position: relative;
  width: 100%;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--line-gold);
  background: #030805;
  margin-bottom: 16px;
  cursor: pointer;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.member-photo-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.member-card:hover .member-photo-box {
  border-color: rgba(212, 175, 55, 0.6);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7);
}

.member-card:hover .member-photo-box img {
  transform: scale(1.04);
}

.member-photo-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(4,10,6,0.2) 60%, rgba(4,10,6,0.85) 100%);
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.member-photo-box:hover .member-photo-gradient {
  opacity: 0.65;
}

.member-photo-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(4, 10, 6, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--line-gold);
  color: var(--gold);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 6px;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 2;
}

.member-photo-zoom-hint {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(4, 10, 6, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(212, 175, 55, 0.35);
  color: var(--bone-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  opacity: 0;
  transform: scale(0.85);
  transition: all 0.25s ease;
  z-index: 2;
}

.member-photo-box:hover .member-photo-zoom-hint {
  opacity: 1;
  transform: scale(1);
  color: var(--gold);
  border-color: var(--gold);
}

.leaders-grid .member-photo-box {
  height: 260px;
}

.divisions-grid .member-photo-box {
  height: 210px;
}

.members-subgrid .member-photo-box {
  height: 180px;
}

/* --------------------------------------------------------------------------
   9. KOTOWAZA DISPLAY (#pepatah)
   -------------------------------------------------------------------------- */
.kotowaza-box {
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(32px, 5vw, 56px);
  text-align: center;
}

/* --------------------------------------------------------------------------
   10. GALLERY STORIES CAROUSEL & LIGHTBOX (#galeri)
   -------------------------------------------------------------------------- */
.gallery-solid-wrapper {
  background: #06140d !important;
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 24px;
  padding: clamp(20px, 3.5vw, 36px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.95), 0 0 30px rgba(212, 175, 55, 0.15);
  position: relative;
  z-index: 10;
}

/* 3D Coverflow Carousel */
.coverflow-wrapper {
  position: relative;
  width: 100%;
  --cf-card: clamp(190px, 24vw, 290px);
  user-select: none;
  margin-bottom: 20px;
}

.coverflow-stage {
  position: relative;
  width: 100%;
  height: calc(var(--cf-card) * 1.35 + 90px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  outline: none;
  perspective: calc(var(--cf-card) * 3.2);
  touch-action: pan-y;
  overflow: hidden;
  padding: 40px 0;
  border-radius: 20px;
  background: radial-gradient(ellipse at center, rgba(6,78,59,0.18) 0%, rgba(2,6,4,0.7) 80%);
  border: 1px solid rgba(212, 175, 55, 0.25);
  box-shadow: inset 0 0 40px rgba(0,0,0,0.6);
}

.coverflow-stage:active {
  cursor: grabbing;
}

.coverflow-track {
  position: relative;
  width: 100%;
  height: calc(var(--cf-card) * 1.33);
  transform-style: preserve-3d;
}

.coverflow-card {
  position: absolute;
  left: 50%;
  top: 0;
  width: var(--cf-card);
  height: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 18px;
  overflow: hidden;
  background: #020604;
  border: 1.5px solid rgba(212, 175, 55, 0.28);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.85);
  will-change: transform, opacity;
  cursor: pointer;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  transform-origin: center center;
}

.coverflow-card.active {
  border-color: var(--gold);
  box-shadow: 0 24px 50px rgba(0,0,0,0.95), 0 0 30px rgba(212, 175, 55, 0.45);
}

.coverflow-card img,
.coverflow-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.coverflow-card:hover .story-media {
  transform: scale(1.04);
}

.coverflow-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 120;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(4, 10, 6, 0.88);
  border: 1px solid var(--gold);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0,0,0,0.8);
  transition: all 0.25s ease;
  backdrop-filter: blur(8px);
}

.coverflow-nav-btn:hover {
  background: var(--gold);
  color: #000;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 0 22px var(--gold-glow);
}

.coverflow-nav-prev { left: 16px; }
.coverflow-nav-next { right: 16px; }

.coverflow-controls-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  flex-wrap: wrap;
  gap: 12px;
  padding: 0 8px;
}

.coverflow-counter-badge {
  font-size: 12px;
  color: var(--gold);
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid var(--line-gold);
  padding: 4px 14px;
  border-radius: 20px;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.coverflow-instruction {
  font-size: 11.5px;
  color: var(--bone-dim);
  display: flex;
  align-items: center;
  gap: 8px;
}

.gallery-stories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: clamp(14px, 2vw, 22px);
}

.story-card {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 16px;
  overflow: hidden;
  background: #020604;
  border: 1px solid rgba(212, 175, 55, 0.22);
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.7);
  user-select: none;
  display: block;
}

.story-card:hover, .story-card:focus-visible {
  transform: translateY(-6px) scale(1.03);
  border-color: var(--gold);
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.9), 0 0 24px rgba(212, 175, 55, 0.4);
  outline: none;
  z-index: 5;
}

.story-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, opacity 0.3s ease;
  display: block;
  background: #000;
}

.story-card:hover .story-media {
  transform: scale(1.08);
}

.story-vid-badge {
  font-size: 9px;
  font-weight: 700;
  background: rgba(165, 29, 45, 0.92);
  color: #fff;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid rgba(212, 175, 55, 0.4);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.6);
}

#lightbox-img-wrap video {
  width: 100%;
  max-height: 68vh;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  background: #000;
  border-radius: 12px;
}

/* --------------------------------------------------------------------------
   11. GUESTBOOK / MEMORY WALL (#pesan)
   -------------------------------------------------------------------------- */
.guestbook-layout {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: clamp(24px, 3.5vw, 40px);
  align-items: start;
}

.kage-input {
  width: 100%;
  background: #030a06;
  border: 1px solid var(--line-gold);
  color: var(--bone);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.kage-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 14px var(--gold-glow);
}

/* --------------------------------------------------------------------------
   12. GOOGLE LOGIN MODAL & MEME REACTION CARD
   -------------------------------------------------------------------------- */
.kage-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(2, 5, 3, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.kage-modal.open {
  opacity: 1;
  visibility: visible;
}

.modal-dialog {
  width: 100%;
  max-width: 440px;
  background: #08140c;
  border: 1px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: 32px 28px 28px;
  position: relative;
  transform: scale(0.92);
  transition: transform 0.35s var(--ease-out);
  box-shadow: 0 30px 60px rgba(0,0,0,0.85), 0 0 30px var(--gold-glow);
  max-height: 92vh;
}

.kage-modal.open .modal-dialog {
  transform: scale(1);
}

.login-mascot-wrap {
  width: 92px;
  height: 92px;
  margin: 4px auto 16px;
  position: relative;
  filter: drop-shadow(0 10px 24px rgba(0,0,0,0.85));
}

.login-mascot-img-box {
  width: 100%;
  height: 100%;
  border-radius: 20px;
  border: 2px solid var(--gold);
  overflow: hidden;
  box-shadow: 0 0 20px rgba(212, 168, 83, 0.45);
  position: relative;
  background: radial-gradient(circle at center, rgba(165, 29, 45, 0.25) 0%, #06120a 75%);
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.35s var(--ease-bounce), border-color 0.35s ease, box-shadow 0.35s ease;
}

.login-mascot-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.login-mascot-bubble {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  background: #06120a;
  border: 1px solid var(--gold);
  color: var(--bone);
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 11px;
  white-space: nowrap;
  box-shadow: 0 6px 20px rgba(0,0,0,0.8);
  pointer-events: none;
  transition: all 0.3s;
  z-index: 10;
}

.login-mascot-bubble::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid var(--gold);
}

.happy-sparkles {
  position: absolute;
  inset: -10px;
  pointer-events: none;
  display: none;
  z-index: 20;
}

/* Meme Reaction States */
.mascot-state-fail1 .login-mascot-bubble { display: none; }
.mascot-state-fail1 .login-mascot-img-box {
  border-color: #ef4444;
  box-shadow: 0 0 30px rgba(239, 68, 68, 0.75);
  animation: memePop 0.45s var(--ease-bounce);
}

.mascot-state-fail2 .login-mascot-bubble { display: none; }
.mascot-state-fail2 .login-mascot-img-box {
  border-color: #dc2626;
  box-shadow: 0 0 38px rgba(220, 38, 38, 0.9);
  animation: memeShockShake 0.25s infinite alternate;
}

.mascot-state-success .happy-sparkles { display: block; }
.mascot-state-success .login-mascot-bubble { display: none; }
.mascot-state-success .login-mascot-wrap { animation: happyBounce 0.45s infinite alternate; }
.mascot-state-success .login-mascot-img-box {
  border-color: #eab308;
  box-shadow: 0 0 35px rgba(234, 179, 8, 0.85);
}

@keyframes memePop {
  0% { transform: scale(0.6) rotate(-8deg); opacity: 0.5; }
  70% { transform: scale(1.12) rotate(4deg); opacity: 1; }
  100% { transform: scale(1) rotate(0deg); }
}

@keyframes memeShockShake {
  0% { transform: translateX(-4px) rotate(-3deg) scale(1.04); }
  100% { transform: translateX(4px) rotate(3deg) scale(1.04); }
}

@keyframes happyBounce {
  0% { transform: translateY(0) scale(1); }
  100% { transform: translateY(-12px) scale(1.06); }
}

/* Google Sign-In Button Component */
.google-auth-box {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.google-btn-main {
  width: 100%;
  background: #ffffff;
  color: #1f2937;
  border: 1px solid #dadce0;
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.35);
  transition: all 0.25s ease;
  cursor: pointer;
}

.google-btn-main:hover {
  background: #f8fafc;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.45);
}

.google-icon-svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   13. CORNER COMPANION MASCOT (STATIONARY CORNER CHIBI)
   -------------------------------------------------------------------------- */
#chibi-companion {
  position: fixed;
  right: clamp(20px, 3vw, 40px);
  bottom: clamp(16px, 3vh, 28px);
  z-index: 75;
  width: 86px;
  height: 86px;
  pointer-events: auto;
  cursor: pointer;
  user-select: none;
  transition: transform 0.3s var(--ease-bounce);
}

#chibi-companion:hover {
  transform: scale(1.08) translateY(-4px);
}

.chibi-avatar-wrap {
  width: 100%;
  height: 100%;
  position: relative;
  transition: transform 0.3s var(--ease-bounce);
  animation: chibiIdle 2.8s ease-in-out infinite;
}

.chibi-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.8));
  background: transparent;
}

.chibi-shadow {
  position: absolute;
  bottom: 0px;
  left: 18%;
  width: 64%;
  height: 10px;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0.75) 0%, transparent 70%);
  border-radius: 50%;
  z-index: -1;
}

@keyframes chibiIdle {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-4px) rotate(2deg); }
}

/* Walking bounce — aktif saat chibi bergerak */
#chibi-companion.walking .chibi-avatar-wrap {
  animation: chibiWalkBounce 0.45s ease-in-out infinite;
}

@keyframes chibiWalkBounce {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-5px) rotate(-2deg); }
  75% { transform: translateY(-3px) rotate(2deg); }
}

#chibi-companion.dance .chibi-avatar-wrap {
  animation: chibiDance 0.85s var(--ease-bounce);
}

@keyframes chibiDance {
  0% { transform: scale(1) rotate(0deg); }
  25% { transform: translateY(-18px) scale(1.18) rotate(-14deg); }
  60% { transform: translateY(-8px) scale(1.12) rotate(14deg); }
  100% { transform: scale(1) rotate(0deg); }
}

.chibi-bubble {
  position: absolute;
  bottom: 92px;
  right: 0;
  transform: translateY(10px) scale(0.9);
  background: #08160e;
  border: 1px solid var(--gold);
  color: var(--bone);
  padding: 6px 14px;
  border-radius: 12px;
  font-size: 11.5px;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0,0,0,0.85);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  z-index: 80;
}

.chibi-bubble::after {
  content: '';
  position: absolute;
  bottom: -6px;
  right: 32px;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid var(--gold);
}

.chibi-bubble.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* --------------------------------------------------------------------------
   14. FLOATING MUSIC WIDGET & TOAST NOTIFICATION
   -------------------------------------------------------------------------- */
#audio-player-widget {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 70;
  background: rgba(4, 10, 6, 0.9);
  border: 1px solid var(--line-gold);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 8px 16px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.75);
}

.music-toggle-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), #92400e);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000000;
  font-size: 12px;
  transition: transform 0.2s ease;
}

.music-toggle-btn:hover {
  transform: scale(1.08);
}

.music-waves {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 14px;
}

.music-bar {
  width: 3px;
  background: var(--gold);
  border-radius: 2px;
  animation: wavePulse 0.8s infinite ease-in-out alternate;
}

.music-bar:nth-child(1) { height: 6px; animation-delay: 0.1s; }
.music-bar:nth-child(2) { height: 14px; animation-delay: 0.3s; }
.music-bar:nth-child(3) { height: 9px; animation-delay: 0.2s; }
.music-bar:nth-child(4) { height: 12px; animation-delay: 0.4s; }
.music-waves.paused .music-bar { animation: none; height: 4px; opacity: 0.4; }

@keyframes wavePulse {
  0% { transform: scaleY(0.3); }
  100% { transform: scaleY(1); }
}

#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  right: auto;
  z-index: 100;
  background: #08160e;
  border: 1px solid var(--gold);
  color: var(--bone);
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  box-shadow: 0 12px 30px rgba(0,0,0,0.85);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateX(-50%) translateY(80px);
  opacity: 0;
  transition: all 0.35s var(--ease-bounce);
  pointer-events: none;
  max-width: calc(100vw - 48px);
}

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

/* --------------------------------------------------------------------------
   15. SCROLL REVEAL SYSTEM
   -------------------------------------------------------------------------- */
[data-rv] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

[data-rv].rv-in {
  opacity: 1;
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   16. RESPONSIVE MEDIA QUERIES (MOBILE / TABLET / DESKTOP)
   -------------------------------------------------------------------------- */
@media (max-width: 1200px) {
  .sticky-footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
  }
}

@media (max-width: 1024px) {
  :root {
    --pad: clamp(18px, 3vw, 36px);
  }

  .hero-side-v {
    display: none;
  }

  .chapters-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .divisions-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }

  .members-subgrid {
    grid-template-columns: repeat(2, 1fr);
  }

  .sticky-footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-brand-col {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  :root {
    --pad: 20px;
    --nav-h: 68px;
  }

  .intro-top {
    justify-content: center;
    text-align: center;
  }

  .intro-nav-tags {
    display: none;
  }

  .intro-bottom-cols {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .nav-links {
    display: none;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .guestbook-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 768px) {
  :root {
    --pad: 16px;
    --nav-h: 64px;
  }

  .leaders-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .divisions-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .members-subgrid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .divisions-grid .member-photo-box,
  .members-subgrid .member-photo-box {
    height: 200px;
  }

  .coverflow-wrapper {
    --cf-card: clamp(180px, 38vw, 250px);
  }

  .coverflow-stage {
    height: calc(var(--cf-card) * 1.35 + 74px);
    padding: 24px 0;
  }

  .coverflow-nav-btn {
    width: 40px;
    height: 40px;
  }
  .coverflow-nav-prev { left: 10px; }
  .coverflow-nav-next { right: 10px; }
}

@media (max-width: 580px) {
  .divisions-grid,
  .members-subgrid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

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

  .gallery-stories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .sticky-footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .sticky-footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .intro-welcome-text {
    font-size: 34px;
  }

  .intro-cursive-japan {
    font-size: 26px;
  }

  .brand-tx b {
    font-size: 12px;
  }

  .brand-tx i {
    font-size: 8px;
  }

  .brand-icon {
    width: 32px;
    height: 32px;
    font-size: 15px;
  }

  .kage-btn-primary,
  .kage-btn-secondary {
    padding: 10px 16px;
    font-size: 12px;
    min-height: 44px;
  }

  .coverflow-wrapper {
    --cf-card: clamp(165px, 58vw, 220px);
  }

  .coverflow-stage {
    height: calc(var(--cf-card) * 1.35 + 64px);
    padding: 16px 0;
    border-radius: 16px;
  }

  .coverflow-nav-btn {
    width: 36px;
    height: 36px;
    font-size: 12px;
  }
  .coverflow-nav-prev { left: 6px; }
  .coverflow-nav-next { right: 6px; }

  #audio-player-widget {
    bottom: 12px;
    left: 10px;
    padding: 6px 10px;
    font-size: 10px;
    gap: 6px;
    max-width: 48vw;
  }

  #chibi-companion {
    bottom: 12px;
    right: 10px;
    left: auto;
    width: 58px;
    height: 58px;
  }

  .chibi-bubble {
    bottom: 66px;
    font-size: 10px;
    padding: 4px 8px;
    right: 0;
    max-width: 160px;
    white-space: normal;
    text-align: right;
  }
  .chibi-bubble::after {
    right: 18px;
  }

  .modal-dialog {
    padding: 22px 16px 18px;
    border-radius: 18px;
    max-width: calc(100vw - 24px);
  }

  .login-mascot-wrap {
    width: 80px;
    height: 80px;
    margin: 2px auto 12px;
  }

  #toast {
    font-size: 11.5px;
    padding: 8px 14px;
    max-width: calc(100vw - 24px);
  }
}

@media (max-width: 360px) {
  :root {
    --pad: 12px;
  }

  .intro-welcome-text {
    font-size: 28px;
  }

  .coverflow-wrapper {
    --cf-card: 160px;
  }

  .gallery-stories-grid {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   ACCESSIBILITY & REDUCED MOTION (Anti-AI-UI Standards)
   -------------------------------------------------------------------------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  #intro-portal,
  #chibi-companion,
  .gallery-item img {
    transform: none !important;
    transition: none !important;
  }
}

/* --------------------------------------------------------------------------
   17. STICKY / REVEAL FOOTER & INTERACTIVE LINK GROUPS
   -------------------------------------------------------------------------- */
.sticky-footer-wrap {
  position: relative;
  width: 100%;
  border-top: 1px solid var(--line-gold);
  background: #020704;
  overflow: hidden;
}

.sticky-footer-aura {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.sticky-footer-aura-1 {
  position: absolute;
  top: -120px;
  left: 10%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(165,29,45,0.18) 0%, rgba(6,78,59,0.1) 50%, transparent 70%);
  filter: blur(50px);
}

.sticky-footer-aura-2 {
  position: absolute;
  bottom: -100px;
  right: 5%;
  width: 450px;
  height: 450px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,175,55,0.15) 0%, rgba(6,78,59,0.12) 50%, transparent 70%);
  filter: blur(60px);
}

.sticky-footer-content {
  position: relative;
  z-index: 2;
  max-width: 1240px;
  margin: 0 auto;
  padding: 80px var(--pad) 40px;
}

.sticky-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: clamp(24px, 3.5vw, 44px);
  margin-bottom: 60px;
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-hanko {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, #a51d2d, #4e0710);
  border: 1px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Noto Serif JP', serif;
  font-size: 20px;
  color: var(--gold);
  box-shadow: 0 4px 12px rgba(0,0,0,0.6);
}

.footer-brand-title {
  font-family: 'Instrument Serif', serif;
  font-size: 24px;
  color: #fff;
  margin: 0;
  letter-spacing: 0.04em;
}

.footer-brand-tagline {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.footer-brand-desc {
  font-size: 13px;
  color: var(--bone-dim);
  line-height: 1.7;
  margin: 0;
}

.footer-social-row {
  display: flex;
  gap: 10px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.footer-social-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-gold);
  color: var(--bone-dim);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all 0.25s ease;
  cursor: pointer;
  text-decoration: none;
}

.footer-social-btn:hover {
  background: rgba(212, 175, 55, 0.18);
  border-color: var(--gold);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.25);
}

.footer-link-col h4 {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold);
  margin: 0 0 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-link-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-link-list a {
  font-size: 13px;
  color: var(--bone-dim);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.footer-link-list a:hover {
  color: #fff;
  transform: translateX(4px);
  color: var(--gold);
}

.sticky-footer-bottom {
  border-top: 1px solid var(--line-gold);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12.5px;
  color: var(--muted);
}

@media (max-width: 1024px) {
  .sticky-footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-brand-col {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .sticky-footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .sticky-footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}
