/* ═══════════════════════════════════════════════
   CLOUD SECURITY × NAVY THEME
   styles.css — All styling, CSS variables, animations, responsive
   ═══════════════════════════════════════════════ */

/* ── 1. CSS Custom Properties ── */
:root {
  /* Navy Foundations */
  --bg:           #0b1120;
  --bg-warm:      #0f1729;
  --bg-blush:     #111d35;

  /* Text */
  --text:         #e8edf5;
  --text-soft:    #8a9ab5;
  --muted:        #4e5f7a;

  /* Accent — Cyber Teal / Electric Cyan */
  --accent:       #00d4ff;
  --accent-soft:  #4da8c4;
  --accent-glow:  rgba(0, 212, 255, 0.10);

  /* Metallic / Rank */
  --gold:         #c9a96e;

  /* Surfaces */
  --card:         rgba(15, 23, 41, 0.85);
  --edge:         rgba(255, 255, 255, 0.06);

  /* Shadows */
  --shadow-sm:    0 2px 12px rgba(0, 0, 0, 0.30);
  --shadow:       0 16px 60px rgba(0, 0, 0, 0.40);
  --shadow-lg:    0 32px 80px rgba(0, 0, 0, 0.50);

  /* Misc */
  --radius:       20px;

  /* Fonts */
  --font-serif:   'Cormorant Garamond', Georgia, serif;
  --font-sans:    'Space Grotesk', system-ui, sans-serif;
}


/* ── 2. Reset & Base ── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-soft);
  background: var(--bg);
  overflow-x: hidden;
}

/* ── Grid overlay (dashboard feel) ── */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.03;
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.3) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.3) 1px, transparent 1px);
  background-size: 60px 60px;
}

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

a {
  color: var(--accent);
  text-decoration: none;
}


/* ── 3. Film-Grain Overlay ── */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.025;
  z-index: 30;
  background-image: radial-gradient(#fff 0.5px, transparent 0.5px);
  background-size: 4px 4px;
}


/* ── 4. Utility Classes ── */
.accent-text {
  color: var(--accent);
}

.section {
  position: relative;
  padding: 6rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}


/* ═══════════════════════════════════════════════
   5. HERO SECTION
   ═══════════════════════════════════════════════ */

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, var(--bg-blush) 0%, transparent 72%),
    var(--bg);
  padding-bottom: 8rem;
  overflow: hidden;       /* contain canvas */
}

/* ── Hero Canvas (Cloud Under Siege) ── */
#heroCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;   /* let mouse events pass to .hero for tracking */
}

/* Ensure hero text sits above the canvas */
.hero-title,
.hero-sub,
.eyebrow,
.time-line {
  position: relative;
  z-index: 2;
}

.hero-shape {
  position: absolute;
  width: min(60vw, 640px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(0, 212, 255, 0.08),
    transparent 62%
  );
  filter: blur(60px);
  z-index: -1;
  animation: float 8s ease-in-out infinite alternate;
}

.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 1.8rem;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 8.5vw, 6.8rem);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 2rem;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-soft);
  max-width: 540px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.time-line {
  font-size: 0.95rem;
  color: var(--muted);
}

.time-line strong {
  color: var(--text-soft);
}

#elapsed {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(1.2rem, 3vw, 1.9rem);
  color: var(--accent);
  display: inline-block;
}


/* ═══════════════════════════════════════════════
   6. WIPE-TEXT BANNERS
   ═══════════════════════════════════════════════ */

.intro,
.quote-band {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 2rem;
}

.wipe-text {
  --progress: 0;
  position: relative;
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 5vw, 4.2rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.15;
  color: rgba(232, 237, 245, 0.08);
  text-align: center;
  max-width: 900px;
}

.wipe-text::after {
  content: attr(data-copy);
  position: absolute;
  inset: 0;
  color: var(--text);
  clip-path: inset(0 calc(100% - (var(--progress) * 1%)) 0 0);
  letter-spacing: calc(0.14em - (var(--progress) * 0.001em));
}


/* ═══════════════════════════════════════════════
   7. CLUSTERS & PHOTO GRID
   ═══════════════════════════════════════════════ */

.cluster h2 {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  color: var(--text);
  text-align: center;
  line-height: 1.1;
  margin-bottom: 4rem;
}

.photo-group {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2rem;
  padding: 0 1rem;
}

.photo-card {
  border-radius: var(--radius);
  overflow: hidden;
  transform: translateY(var(--photo-offset, 0px)) rotate(var(--tilt, 0deg));
  box-shadow: var(--shadow);
  border: 1px solid var(--edge);
  transition: transform 0.2s linear, box-shadow 0.4s ease, border-color 0.4s ease;
  position: relative;
}

.photo-card:hover {
  box-shadow:
    var(--shadow-lg),
    0 0 20px rgba(0, 212, 255, 0.15);
  border-color: rgba(0, 212, 255, 0.2);
}

/* Grid sizing */
.photo-card.tall   { grid-column: span 4; }
.photo-card.square { grid-column: span 3; }
.photo-card.wide   { grid-column: span 5; }
.photo-card.team-wide { grid-column: span 8; }

.photo-image {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
}

/* Placeholder for photos (since no images provided) */
.photo-placeholder {
  background: linear-gradient(145deg, var(--bg-blush), var(--bg-warm));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  min-height: 280px;
}

.photo-card.tall .photo-placeholder { min-height: 380px; }
.photo-card.wide .photo-placeholder { min-height: 240px; }

.placeholder-icon {
  font-size: 3rem;
}

.placeholder-label {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

/* Photo note (glass pill) */
.photo-note {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  background: rgba(11, 17, 32, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 999px;
  padding: 0.4rem 1rem;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text);
}


/* ═══════════════════════════════════════════════
   8. COMMAND PALETTE — PINNED INCIDENT FLOW
   ═══════════════════════════════════════════════ */

.command-palette {
  position: relative;
  height: 920vh;
  max-width: none;
  padding: 0;
  margin: 0;
}

.command-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  width: 100%;
  background: var(--bg);
  z-index: 12;
  overflow: hidden;
  overscroll-behavior: none;
}

.command-view {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(0.8rem, 2.4vw, 1.8rem);
}

.command-view.active {
  opacity: 1;
  pointer-events: auto;
}

.command-view-terminal {
  align-items: stretch;
}

.command-view-terminal .terminal-wrapper {
  width: min(100%, 1320px);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.7rem;
  padding: 0;
}

.terminal-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4.2vw, 3.3rem);
  color: var(--text);
  text-align: center;
  line-height: 1.1;
}

.terminal-subtitle {
  text-align: center;
  color: var(--muted);
  font-size: 0.86rem;
  margin-bottom: 0.4rem;
}

.terminal-window {
  background: #0a0e1a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: rgba(255, 255, 255, 0.04);
  padding: 0.62rem 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.terminal-dots {
  display: flex;
  gap: 6px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot.red    { background: #ff5f57; }
.dot.yellow { background: #ffbd2e; }
.dot.green  { background: #28c840; }

.terminal-tab {
  font-size: 0.72rem;
  color: var(--text-soft);
  font-family: var(--font-sans);
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.terminal-body {
  padding: 1rem 1.1rem;
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', 'Consolas', monospace;
  font-size: 0.92rem;
  line-height: 1.55;
  min-height: clamp(280px, 38vh, 460px);
  max-height: clamp(340px, 50vh, 620px);
  overflow: hidden;
  flex: 1;
  color: #c8d2dc;
}

.attack-terminal:not(.muted) .terminal-body {
  min-height: clamp(420px, 60vh, 760px);
  max-height: clamp(500px, 72vh, 900px);
}

.terminal-prompt-line {
  white-space: pre-wrap;
  word-break: break-word;
}

.prompt-user.hostile {
  color: #ff6767;
}

.prompt-user.defender {
  color: #00d4ff;
}

.prompt-sep {
  color: #607089;
}

.prompt-path {
  color: #4da8c4;
}

.prompt-dollar {
  color: #95a4bb;
  margin-right: 0.5rem;
}

.term-line {
  display: block;
  white-space: pre-wrap;
  word-break: break-word;
  opacity: 0;
  animation: term-line-in 0.14s ease-out forwards;
}

@keyframes term-line-in {
  from { opacity: 0; transform: translateX(-4px); }
  to   { opacity: 1; transform: translateX(0); }
}

.term-line.cmd { color: #e8edf5; }
.term-line.output { color: #7f90a8; }
.term-line.error,
.term-line.warn { color: #ff7d7d; }
.term-line.success { color: #48bb78; }
.term-line.highlight { color: #00d4ff; }
.term-line.gold { color: #c9a96e; }

.cursor-blink {
  animation: blink 1s step-end infinite;
  color: var(--accent);
  font-size: 0.9em;
}

@keyframes blink {
  50% { opacity: 0; }
}

.attack-terminal.attacking {
  border-color: rgba(255, 68, 68, 0.35);
  box-shadow: var(--shadow), 0 0 24px rgba(255, 68, 68, 0.09);
}

.attack-terminal.muted {
  opacity: 0.38;
  transform: scale(0.985);
}

.attack-terminal.muted .terminal-body {
  min-height: 82px;
  max-height: 110px;
}

.defense-terminal {
  opacity: 0;
  transform: translateY(16px);
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.35s ease, transform 0.35s ease, max-height 0.35s ease;
  border-color: rgba(0, 212, 255, 0.16);
}

.defense-terminal.active {
  opacity: 1;
  transform: translateY(0);
  max-height: 1300px;
}

.defense-terminal .terminal-header {
  background: rgba(0, 212, 255, 0.06);
}

.defense-terminal.active .terminal-body {
  min-height: clamp(420px, 60vh, 760px);
  max-height: clamp(500px, 72vh, 900px);
}

.defender-character {
  opacity: 0;
  transform: translateY(24px);
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.45s ease, transform 0.45s ease, max-height 0.45s ease;
  text-align: center;
}

.defender-character.active {
  opacity: 1;
  transform: translateY(0);
  max-height: 760px;
}

.ascii-art {
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', 'Consolas', monospace;
  font-size: clamp(0.42rem, 1vw, 0.62rem);
  line-height: 1.25;
  color: var(--accent);
  text-align: left;
  display: inline-block;
  padding: 1rem;
  background: rgba(0, 212, 255, 0.03);
  border: 1px solid rgba(0, 212, 255, 0.12);
  border-radius: 10px;
  text-shadow: 0 0 8px rgba(0, 212, 255, 0.18);
  overflow-x: auto;
}

.defense-status {
  margin-top: 0.7rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
}

.status-line {
  background: rgba(72, 187, 120, 0.08);
  border: 1px solid rgba(72, 187, 120, 0.15);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  font-size: 0.74rem;
  font-weight: 500;
  color: #48bb78;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.status-line.visible {
  opacity: 1;
  transform: translateY(0);
}

.status-icon {
  margin-right: 0.35rem;
  font-weight: 700;
}

.warning-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: var(--warnOpacity, 0);
  z-index: 2;
  transition: opacity 0.45s ease;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 70, 70, 0.18), rgba(11, 17, 32, 0) 62%),
    linear-gradient(180deg, rgba(255, 70, 70, 0.07), rgba(11, 17, 32, 0));
}

.warning-layer.active {
  animation: warning-pulse 1.6s ease-in-out infinite;
}

@keyframes warning-pulse {
  0%, 100% { filter: saturate(1) brightness(1); }
  50% { filter: saturate(1.15) brightness(1.03); }
}

.warning-emoji {
  position: absolute;
  transform: translate(-50%, -50%) scale(0.85);
  opacity: 0;
  font-size: clamp(1.4rem, 4.2vw, 2.4rem);
  text-shadow: 0 0 18px rgba(255, 80, 80, 0.3);
  animation: warning-in 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes warning-in {
  0% { opacity: 0; transform: translate(calc(-50% + var(--fromX, 0px)), -50%) scale(0.78); filter: blur(2px); }
  100% { opacity: 1; transform: translate(calc(-50% + var(--driftX, 0px)), calc(-50% + var(--driftY, 0px))) scale(1); filter: blur(0px); }
}

.explosion-layer {
  position: absolute;
  inset: -34%;
  pointer-events: none;
  opacity: 0;
  z-index: 1;
  filter: blur(0.6px) saturate(1.15);
  background:
    radial-gradient(circle at 50% 52%, rgba(255, 128, 80, 0.55), rgba(255, 90, 40, 0.3) 35%, rgba(255, 90, 40, 0) 70%),
    radial-gradient(circle at 52% 48%, rgba(255, 220, 120, 0.35), rgba(255, 220, 120, 0) 60%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0) 52%);
}

.explosion-layer.active {
  animation: explosion-bloom 1.75s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes explosion-bloom {
  0% { opacity: 0; transform: scale(0.78); }
  12% { opacity: 1; transform: scale(1.12); }
  42% { opacity: 0.62; transform: scale(1.38); }
  100% { opacity: 0; transform: scale(2.15); }
}

@keyframes screen-shake {
  0%, 100% { transform: translate(0, 0); }
  15% { transform: translate(-6px, 4px); }
  30% { transform: translate(6px, -4px); }
  45% { transform: translate(-5px, -2px); }
  60% { transform: translate(5px, 3px); }
  75% { transform: translate(-3px, 2px); }
  90% { transform: translate(3px, -2px); }
}

.terminal-wrapper.shaking {
  animation: screen-shake 0.75s ease;
}

.command-view-incident {
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 70, 70, 0.14), rgba(11, 17, 32, 0.9) 58%),
    linear-gradient(180deg, rgba(11, 17, 32, 0.96), rgba(11, 17, 32, 0.98));
}

.incident-gallery-stage {
  width: min(98vw, 1260px);
  min-height: 86vh;
  border-radius: 20px;
  border: 1px solid rgba(0, 212, 255, 0.12);
  background: linear-gradient(165deg, rgba(12, 22, 44, 0.78), rgba(9, 17, 34, 0.88));
  box-shadow: var(--shadow-lg);
  padding: clamp(0.8rem, 2.4vw, 1.6rem);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  overflow: hidden;
}

.incident-gallery-title {
  text-align: center;
  font-family: var(--font-serif);
  color: var(--text);
  font-size: clamp(1.1rem, 2.2vw, 1.8rem);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.incident-gallery-grid {
  position: relative;
  flex: 1;
  min-height: 72vh;
}

.incident-shot {
  --shot: 1;
  --top: 50%;
  --left: 50%;
  --r: 0deg;
  --w: 28vw;
  position: absolute;
  top: var(--top);
  left: var(--left);
  width: clamp(240px, var(--w), 430px);
  background: rgba(7, 16, 30, 0.86);
  border: 1px solid rgba(0, 212, 255, 0.18);
  border-radius: 12px;
  padding: 0.38rem;
  box-shadow: var(--shadow-sm);
  transform: translate(-50%, -50%) rotate(var(--r)) scale(0.96);
  opacity: 0;
  z-index: var(--shot);
}

.incident-shot img {
  width: 100%;
  height: clamp(132px, 19vh, 220px);
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

.incident-shot p {
  margin-top: 0.32rem;
  font-size: 0.68rem;
  letter-spacing: 0.03em;
  color: #bfd0d8;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.command-view-incident.active .incident-shot {
  animation: shot-in 0.45s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc(var(--shot) * 0.12s);
}

@keyframes shot-in {
  to {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(var(--r)) scale(1);
  }
}


/* ═══════════════════════════════════════════════
   9. FINAL SECTION
   ═══════════════════════════════════════════════ */

.final {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
}

.final-card {
  background: linear-gradient(145deg, var(--bg-blush), var(--bg-warm));
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 4rem 3rem;
  text-align: center;
  max-width: 600px;
  width: 100%;
}

.final-card h2 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--text);
  margin-bottom: 1.5rem;
}

.final-card p {
  color: var(--text-soft);
  margin-bottom: 1.5rem;
}

.final-tagline {
  font-size: 1.3rem;
  font-weight: 700;
}

.certs {
  padding-top: clamp(9.6rem, 21vh, 15rem);
  padding-bottom: clamp(12rem, 27vh, 19.5rem);
}

.certs .section-heading {
  margin-bottom: 4.05rem;
}

.section-heading {
  margin: 0 0 0.75rem;
  text-align: center;
  font-family: var(--font-sans);
  font-size: clamp(0.98rem, 1.2vw, 1.18rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.1rem;
  padding-top: 0.6rem;
}

.cert-card {
  padding: 0;
  transition: transform 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.cert-card img {
  width: 100%;
  max-width: 250px;
  margin: 0 auto;
  border: 0;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: transparent;
  box-shadow: none;
}

.cert-card img.cisco-cert {
  background: #fff;
  border-radius: 14px;
  padding: 0.35rem;
}

.blog-strip {
  padding-top: clamp(9.6rem, 21vh, 15rem);
  padding-bottom: clamp(9.6rem, 21vh, 15rem);
  text-align: center;
}

.blog-link {
  display: inline-flex;
  align-items: center;
  gap: 0.52rem;
  color: var(--accent);
  font-weight: 700;
  font-size: clamp(1.08rem, 1.35vw, 1.36rem);
  letter-spacing: 0.11em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(0, 212, 255, 0.35);
  padding-bottom: 0.12rem;
}

.blog-link-label {
  line-height: 1;
}

.blog-arrow-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.26rem;
  height: 1.26rem;
  color: var(--accent);
  opacity: 0.72;
  transform: translateX(0);
  transition: transform 0.25s ease, opacity 0.25s ease;
  animation: none !important;
}

.blog-arrow-icon svg,
.blog-arrow-icon path {
  animation: none !important;
}

.blog-arrow-icon svg {
  width: 100%;
  height: 100%;
}

.blog-arrow-icon path {
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.blog-link:hover .blog-arrow-icon,
.blog-link:focus-visible .blog-arrow-icon {
  opacity: 1;
  transform: translateX(6px);
}

.blog-link:hover {
  color: #33dfff;
  border-bottom-color: rgba(0, 212, 255, 0.75);
}

.club {
  padding-top: 1.35rem;
  padding-bottom: 0.9rem;
  text-align: center;
  background: linear-gradient(
    180deg,
    rgba(11, 17, 32, 0.2) 0%,
    rgba(15, 23, 41, 0.24) 55%,
    rgba(11, 17, 32, 0.16) 100%
  );
}

.club-row {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.35rem;
}

.club-photo {
  margin: 0;
  max-width: 650px;
  position: relative;
  display: block;
  line-height: 0;
  flex: 1 1 62%;
}

.club-photo img {
  width: auto;
  max-width: 100%;
  max-height: min(38vh, 300px);
  height: auto;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  display: block;
  margin: 0 auto;
}

.club-notes {
  list-style: disc;
  padding-left: 1.2rem;
  margin: 0;
  max-width: 480px;
  text-align: left;
  flex: 1 1 38%;
}

.club-notes li {
  color: var(--text-soft);
  font-size: clamp(0.9rem, 1.16vw, 1.12rem);
  line-height: 1.36;
  margin: 0.28rem 0;
}

.club-row--navy .club-photo img {
  max-height: min(28vh, 220px);
  max-width: 520px;
}

.hobbies {
  padding-top: 1.5rem;
  padding-bottom: 2.4rem;
}

.hobby-photos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.hobby-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(15, 23, 41, 0.18);
  box-shadow: var(--shadow-sm);
}

.cta-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2.5rem;
}

.btn-yes {
  font-family: var(--font-sans);
  background: var(--accent);
  color: #0b1120;
  padding: 1rem 2.2rem;
  font-size: 0.92rem;
  font-weight: 600;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 212, 255, 0.3);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn-yes:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 32px rgba(0, 212, 255, 0.45);
  background: #33dfff;
}

.btn-no {
  font-family: var(--font-sans);
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--edge);
  padding: 1rem 2.2rem;
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: 999px;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.btn-no:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.response-text {
  margin-top: 2rem;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--accent);
  min-height: 2em;
}

.site-footer {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.2rem 2rem 2.2rem;
}

.footer-note {
  max-width: 62ch;
  margin: 0 auto 1rem;
  text-align: center;
  color: var(--text-soft);
  font-size: 0.92rem;
  line-height: 1.55;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-links a {
  color: var(--text-soft);
  font-size: 0.86rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.28rem 0.2rem;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-links a:hover {
  color: var(--accent);
  transform: translateY(-1px);
}


/* ═══════════════════════════════════════════════
   10. SCROLL-REVEAL ANIMATION
   ═══════════════════════════════════════════════ */

.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition:
    opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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


/* ═══════════════════════════════════════════════
   11. FLOATING SHAPE
   ═══════════════════════════════════════════════ */

@keyframes float {
  from { transform: translateY(-6px) scale(1); }
  to   { transform: translateY(6px) scale(1.03); }
}


/* ═══════════════════════════════════════════════
   12. CELEBRATION PARTICLES
   ═══════════════════════════════════════════════ */

@keyframes heart-float {
  0%   { transform: translateY(0) scale(1);      opacity: 1; }
  100% { transform: translateY(-120vh) scale(0.4); opacity: 0; }
}

.floating-heart {
  position: fixed;
  bottom: -20px;
  font-size: 1.8rem;
  animation: heart-float 3.5s ease-out forwards;
  pointer-events: none;
  z-index: 50;
}


/* ═══════════════════════════════════════════════
   13. RESPONSIVE BREAKPOINTS
   ═══════════════════════════════════════════════ */

@media (max-width: 980px) {
  .photo-group {
    grid-template-columns: repeat(6, 1fr);
  }

  .photo-card.tall,
  .photo-card.square,
  .photo-card.wide,
  .photo-card.team-wide {
    grid-column: span 3;
  }

  .command-palette {
    height: 980vh;
  }

  .terminal-body {
    font-size: 0.84rem;
    min-height: 40vh;
    max-height: 56vh;
  }

  .incident-shot {
    width: clamp(210px, 36vw, 360px);
  }

  .incident-shot p {
    font-size: 0.64rem;
  }

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

  .club-row {
    flex-direction: column;
    align-items: center;
    gap: 0.72rem;
  }

  .club-photo {
    order: 1;
    flex: none;
    width: 100%;
    max-width: 760px;
  }

  .club-notes {
    order: 2;
    width: 100%;
    max-width: 760px;
    text-align: left;
  }

  .hobby-photos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

@media (max-width: 720px) {
  .command-palette {
    height: 1080vh;
  }

  .command-view {
    padding: 0.45rem;
  }

  .command-view-terminal .terminal-wrapper {
    justify-content: flex-start;
    height: 100%;
    min-height: 100dvh;
    padding-top: calc(env(safe-area-inset-top, 0px) + 0.35rem);
  }

  .terminal-title {
    font-size: clamp(1.35rem, 5.9vw, 1.9rem);
    margin-bottom: 0.1rem;
  }

  .terminal-subtitle {
    font-size: 0.74rem;
    margin-bottom: 0.35rem;
  }

  .terminal-header {
    padding: 0.5rem 0.68rem;
    gap: 0.56rem;
  }

  .terminal-tab {
    font-size: 0.62rem;
  }

  .terminal-body {
    font-size: 0.76rem;
    line-height: 1.45;
    padding: 0.78rem;
    min-height: 0;
    max-height: none;
  }

  .attack-terminal {
    flex: 1;
    min-height: 0;
  }

  .attack-terminal .terminal-body {
    min-height: 0;
    max-height: none;
  }

  .attack-terminal.muted {
    display: none;
  }

  .defense-terminal.active {
    max-height: none;
    flex: 1;
    min-height: 0;
  }

  .defense-terminal.active .terminal-body {
    min-height: 0;
    max-height: none;
  }

  .defender-character {
    margin-top: 0.25rem;
  }

  .ascii-art {
    width: 100%;
    font-size: 0.34rem;
    padding: 0.72rem;
  }

  .defense-status {
    gap: 0.35rem;
  }

  .status-line {
    font-size: 0.66rem;
    padding: 0.24rem 0.56rem;
  }

  .incident-gallery-stage {
    width: 100%;
    min-height: 100dvh;
    border-radius: 0;
    border-left: none;
    border-right: none;
    padding: 0.65rem 0.45rem;
  }

  .incident-gallery-title {
    font-size: clamp(1rem, 5.3vw, 1.5rem);
  }

  .incident-gallery-grid {
    min-height: 78vh;
  }

  .incident-shot {
    width: clamp(170px, 56vw, 300px);
    padding: 0.28rem;
  }

  .incident-shot img {
    height: clamp(108px, 16vh, 170px);
  }

  .incident-shot p {
    font-size: 0.56rem;
  }

  .section {
    padding: 4rem 1.2rem;
  }

  .site-footer {
    padding: 1rem 1.2rem 1.9rem;
  }

  .footer-note {
    font-size: 0.86rem;
    margin-bottom: 0.85rem;
  }

  .footer-links {
    flex-wrap: wrap;
    gap: 0.8rem;
  }

  .photo-group {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .cert-grid {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .cert-card {
    padding: 0;
  }

  .club {
    padding-top: 1.05rem;
    padding-bottom: 0.72rem;
  }

  .blog-strip {
    padding-top: 7.2rem;
    padding-bottom: 7.2rem;
  }

  .blog-link {
    font-size: 0.98rem;
  }

  .section-heading {
    font-size: 0.92rem;
    letter-spacing: 0.1em;
    margin-bottom: 0.62rem;
  }

  .certs .section-heading {
    margin-bottom: 3.15rem;
  }

  .certs {
    padding-top: 7.8rem;
    padding-bottom: 10.2rem;
  }

  .club-photo {
    margin: 0;
    max-width: 100%;
  }

  .club-photo img {
    max-height: min(30vh, 220px);
  }

  .club-row--navy .club-photo img {
    max-height: min(22vh, 160px);
    max-width: 70%;
  }

  .club-row {
    gap: 0.8rem;
    align-items: center;
  }

  .club-notes {
    max-width: min(26rem, 100%);
    margin: 0 auto;
  }

  .club-notes li {
    font-size: 0.82rem;
    line-height: 1.36;
  }

  .hobbies {
    padding-top: 1.2rem;
    padding-bottom: 1.8rem;
  }

  .hobby-photos {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .photo-card.tall,
  .photo-card.square,
  .photo-card.wide,
  .photo-card.team-wide {
    grid-column: span 1;
  }

  .hero {
    padding: 4rem 1.2rem 6rem;
  }

  .final-card {
    padding: 2.5rem 1.5rem;
  }

  .photo-image {
    min-height: 240px;
  }
}

@media (max-width: 480px) {
  .command-palette {
    height: 1160vh;
  }

  .terminal-body {
    min-height: 0;
    max-height: none;
  }

  .hero-title {
    font-size: clamp(2.4rem, 12vw, 3.8rem);
  }

  .wipe-text {
    font-size: clamp(1.4rem, 6vw, 2.2rem);
  }

  .ascii-art {
    font-size: 0.3rem;
  }
}


/* ═══════════════════════════════════════════════
   14. SCANLINE FLICKER ON ATTACK
   ═══════════════════════════════════════════════ */

@keyframes scanline {
  0%   { background-position: 0 0; }
  100% { background-position: 0 100%; }
}

.attack-terminal.attacking .terminal-body::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(255, 68, 68, 0.02) 2px,
    rgba(255, 68, 68, 0.02) 4px
  );
  animation: scanline 4s linear infinite;
  mix-blend-mode: lighten;
}

.attack-terminal .terminal-body {
  position: relative;
}

/* Shield pulse on defense win */
@keyframes shield-pulse {
  0%, 100% { text-shadow: 0 0 8px rgba(0, 212, 255, 0.25); }
  50%      { text-shadow: 0 0 20px rgba(0, 212, 255, 0.5), 0 0 40px rgba(0, 212, 255, 0.2); }
}

.defender-character.active .ascii-art {
  animation: shield-pulse 3s ease-in-out infinite;
}
