/* ============================================
   ROOT & THEME
============================================ */
:root {
  --bg: #0a0908;
  --bg-card: #111210;
  --cream: #f2ead8;
  --cream-dim: #c9bfa8;
  --gold: #c9922a;
  --gold-light: #e8b84b;
  --gold-shine: #ffd97a;
  --red: #b8291e;
  --red-bright: #e03422;
  --border: rgba(201,146,42,0.25);
  --border-strong: rgba(201,146,42,0.6);
}

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

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg);
  color: var(--cream);
  font-family: 'Crimson Pro', Georgia, serif;
  overflow-x: hidden;
  cursor: default;
}

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

.bg-gradient {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(184,41,30,0.18) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 90%, rgba(201,146,42,0.10) 0%, transparent 55%),
    radial-gradient(ellipse 50% 60% at 10% 60%, rgba(184,41,30,0.08) 0%, transparent 50%);
  pointer-events: none;
}

.hearts-canvas {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.heart {
  position: absolute;
  bottom: -60px;
  font-size: 14px;
  opacity: 0;
  animation: floatHeart linear infinite;
  filter: blur(0.5px);
}

@keyframes floatHeart {
  0%   { transform: translateY(0) rotate(0deg) scale(0.8); opacity: 0; }
  10%  { opacity: 0.12; }
  90%  { opacity: 0.06; }
  100% { transform: translateY(-110vh) rotate(25deg) scale(1.1); opacity: 0; }
}

/* ============================================
   LAYOUT WRAPPER
============================================ */
.page {
  position: relative;
  z-index: 2;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================
   FIX #1 & #2 — TOP / BOTTOM BARS
   SVG icons + 2-line layout on mobile
============================================ */
.classification-bar {
  width: 100%;
  background: var(--red);
  color: #fff;
  text-align: center;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  padding: 9px 16px;
  text-transform: uppercase;
  position: relative;
  z-index: 10;
}

.top-bar {
  opacity: 0;
  animation: fadeSlideDown 0.5s ease forwards;
  animation-delay: 0.1s;
}

/* Inner flex row: icon — text — icon */
.bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

/* SVG warning icons — pure SVG, no emoji, renders on all browsers */
.bar-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  stroke: rgba(255,255,255,0.9);
  overflow: visible;
}

/* Text container */
.bar-text {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 2px;
  line-height: 1.5;
}

.bar-line1,
.bar-line2 {
  display: inline;
  white-space: nowrap;
}

/* Desktop: em-dash separator visible */
.bar-sep {
  display: inline;
}

img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* This does the magic cropping */
  object-position: center 20%; /* Optional: Shifts the crop focus (e.g., slightly higher to keep faces in frame) */
}
/* ============================================
   HERO SECTION
============================================ */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px 60px;
  position: relative;
}

/* Official seal */
.seal {
  width: 90px;
  height: 90px;
  margin-bottom: 36px;
  opacity: 0;
  animation: fadeIn 0.8s ease forwards;
  animation-delay: 0.4s;
}

.seal-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2.5px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow:
    0 0 0 4px rgba(201,146,42,0.1),
    0 0 30px rgba(201,146,42,0.15),
    inset 0 0 20px rgba(201,146,42,0.05);
  animation: sealSpin 40s linear infinite;
}

@keyframes sealSpin { to { transform: rotate(360deg); } }

.seal-text-ring {
  position: absolute;
  inset: 0;
}

.seal-text-ring text {
  font-family: 'DM Mono', monospace;
  font-size: 8.5px;
  fill: var(--gold);
  letter-spacing: 2.5px;
}

.seal-icon {
  font-size: 26px;
  position: absolute;
  animation: sealSpinReverse 40s linear infinite;
  filter: drop-shadow(0 0 6px rgba(201,146,42,0.5));
}

@keyframes sealSpinReverse { to { transform: rotate(-360deg); } }

/* ============================================
   FIX #3 — Hello Brother: 2-line on mobile
   Uses flex on the h1 itself
============================================ */
.hello-line {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(68px, 18vw, 160px);
  line-height: 0.9;
  letter-spacing: 0.04em;
  color: var(--cream);
  text-shadow:
    0 0 80px rgba(242,234,216,0.06),
    2px 2px 0 rgba(0,0,0,0.5);
  opacity: 0;
  animation: fadeSlideUp 0.9s cubic-bezier(0.16,1,0.3,1) forwards;
  animation-delay: 0.7s;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.hello-word  { /* inherits */ }
.hello-brother { color: var(--red-bright); }

/* Divider rule */
.rule {
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 28px auto;
  animation: expandRule 0.8s ease forwards;
  animation-delay: 1.3s;
}

@keyframes expandRule {
  to { width: min(340px, 80%); }
}

.sadly-line {
  font-family: 'Crimson Pro', Georgia, serif;
  font-style: italic;
  font-size: clamp(22px, 5vw, 36px);
  color: var(--cream-dim);
  letter-spacing: 0.04em;
  margin-bottom: 8px;
  opacity: 0;
  animation: fadeSlideUp 0.8s cubic-bezier(0.16,1,0.3,1) forwards;
  animation-delay: 1.6s;
}

.name-block {
  position: relative;
  margin: 8px 0 12px;
  opacity: 0;
  animation: nameReveal 1.2s cubic-bezier(0.16,1,0.3,1) forwards;
  animation-delay: 2.1s;
}

@keyframes nameReveal {
  0%   { opacity: 0; transform: scale(0.92) translateY(12px); filter: blur(4px); }
  60%  { filter: blur(0); }
  100% { opacity: 1; transform: scale(1) translateY(0); filter: blur(0); }
}

.name-main {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 900;
  font-style: italic;
  font-size: clamp(42px, 11vw, 96px);
  line-height: 1.0;
  background: linear-gradient(
    135deg,
    var(--gold) 0%,
    var(--gold-light) 30%,
    var(--gold-shine) 50%,
    var(--gold-light) 70%,
    var(--gold) 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s linear infinite;
  animation-delay: 3.2s;
  filter: drop-shadow(0 0 30px rgba(201,146,42,0.35));
  display: block;
}

@keyframes shimmer {
  0%   { background-position: 0% center; }
  100% { background-position: 200% center; }
}

.name-underline {
  display: block;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-light), transparent);
  margin: 6px auto 0;
  animation: expandRule 0.6s ease forwards;
  animation-delay: 2.8s;
}

.taken-line {
  font-family: 'Crimson Pro', Georgia, serif;
  font-size: clamp(20px, 4.5vw, 32px);
  color: var(--cream-dim);
  letter-spacing: 0.06em;
  margin-top: 8px;
  opacity: 0;
  animation: fadeSlideUp 0.7s ease forwards;
  animation-delay: 2.9s;
}

.yours-line {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(28px, 7vw, 58px);
  letter-spacing: 0.14em;
  color: var(--cream);
  margin-top: 4px;
  opacity: 0;
  animation: fadeSlideUp 0.7s ease forwards;
  animation-delay: 3.3s;
}

/* ============================================
   FIX #1 — STAMP: SVG checkmark (cross-browser)
============================================ */
.stamp-wrap {
  margin-top: 48px;
  opacity: 0;
  animation: stampSlap 0.55s cubic-bezier(0.36,0.07,0.19,0.97) forwards;
  animation-delay: 3.9s;
  transform-origin: center;
}

@keyframes stampSlap {
  0%   { opacity: 0; transform: scale(2.5) rotate(-12deg); filter: blur(2px); }
  60%  { opacity: 1; transform: scale(0.92) rotate(3deg); filter: blur(0); }
  75%  { transform: scale(1.06) rotate(-1.5deg); }
  90%  { transform: scale(0.98) rotate(0.5deg); }
  100% { opacity: 1; transform: scale(1) rotate(-2deg); }
}

.stamp {
  display: inline-block;
  border: 4px solid var(--gold);
  border-radius: 6px;
  padding: 10px 22px;
  position: relative;
  box-shadow:
    inset 0 0 0 2px rgba(201,146,42,0.2),
    0 0 20px rgba(201,146,42,0.25),
    4px 4px 0 rgba(0,0,0,0.5);
  background: rgba(201,146,42,0.06);
}

.stamp::before {
  content: '';
  position: absolute;
  inset: 3px;
  border: 1px dashed rgba(201,146,42,0.35);
  border-radius: 3px;
  pointer-events: none;
}

.stamp-text {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(22px, 5vw, 38px);
  letter-spacing: 0.18em;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Pure SVG circle-check — no emoji, no Unicode, renders everywhere */
.stamp-checkmark-svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  display: block;
}

/* ============================================
   VERDICT & SCROLL HINT
============================================ */
.verdict {
  margin-top: 36px;
  font-family: 'DM Mono', monospace;
  font-size: clamp(10px, 2.5vw, 13px);
  letter-spacing: 0.2em;
  color: rgba(201,146,42,0.6);
  text-transform: uppercase;
  opacity: 0;
  animation: fadeIn 1s ease forwards;
  animation-delay: 4.5s;
}

.scroll-hint {
  margin-top: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: fadeIn 1s ease forwards;
  animation-delay: 5s;
}

.scroll-hint span {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: rgba(242,234,216,0.3);
  text-transform: uppercase;
}

.scroll-arrow {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(201,146,42,0.5), transparent);
  animation: arrowBob 1.8s ease-in-out infinite;
}

@keyframes arrowBob {
  0%, 100% { transform: translateY(0); opacity: 0.7; }
  50%       { transform: translateY(8px); opacity: 0.3; }
}

/* ============================================
   EVIDENCE SECTION
============================================ */
.evidence-section {
  padding: 80px 0 100px;
  position: relative;
}

.evidence-header {
  text-align: center;
  margin-bottom: 56px;
  padding: 0 24px;
}

.evidence-badge {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 2px;
  margin-bottom: 16px;
}

.evidence-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(40px, 10vw, 80px);
  letter-spacing: 0.06em;
  color: var(--cream);
  line-height: 0.95;
}

.evidence-subtitle {
  font-family: 'Crimson Pro', serif;
  font-style: italic;
  font-size: clamp(16px, 3.5vw, 22px);
  color: var(--cream-dim);
  margin-top: 12px;
}

/* ============================================
   PHOTO GRID
============================================ */
.photo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 20px;
  padding: 0 24px;
  max-width: 860px;
  margin: 0 auto;
}

.photo-card {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow:
    0 4px 30px rgba(0,0,0,0.6),
    0 0 0 1px rgba(201,146,42,0.08);
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1), box-shadow 0.4s ease;
  cursor: default;
}

.photo-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow:
    0 16px 50px rgba(0,0,0,0.7),
    0 0 0 1px var(--border-strong),
    0 0 30px rgba(201,146,42,0.1);
}

.photo-card.couple-1 { grid-column: 1; grid-row: 1; }
.photo-card.couple-2 { grid-column: 2; grid-row: 1; }
.photo-card.solo-full { grid-column: 1 / -1; grid-row: 2; }

/* Polaroid variant */
.photo-card.polaroid {
  background: #f2ead8;
  border-color: #e0d5c0;
  padding: 12px 12px 40px;
  box-shadow:
    0 8px 40px rgba(0,0,0,0.7),
    0 2px 6px rgba(0,0,0,0.4),
    inset 0 1px 0 rgba(255,255,255,0.1);
  transform: rotate(-1.5deg);
}

.photo-card.polaroid:nth-of-type(2) { transform: rotate(1deg); }

.photo-card.polaroid:hover {
  transform: rotate(0deg) translateY(-6px) scale(1.02);
}

.photo-img-wrap {
  width: 100%;
  aspect-ratio: 4/5;
  overflow: hidden;
  position: relative;
  background: #1a1916;
}

/* Desktop solo: wide cinematic */
.photo-card.solo-full .photo-img-wrap {
  aspect-ratio: 16/7;
}

.photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background:
    repeating-linear-gradient(
      45deg,
      rgba(201,146,42,0.03) 0px,
      rgba(201,146,42,0.03) 1px,
      transparent 1px,
      transparent 28px
    ),
    linear-gradient(160deg, #141311 0%, #0f0d0c 100%);
}

.photo-placeholder-icon {
  font-size: 36px;
  opacity: 0.3;
  filter: grayscale(1);
}

.photo-placeholder-label {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.22em;
  color: rgba(201,146,42,0.4);
  text-transform: uppercase;
  text-align: center;
  line-height: 1.6;
  padding: 0 20px;
}

.photo-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

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

.polaroid-caption {
  padding: 10px 4px 2px;
  text-align: center;
  font-family: 'Crimson Pro', serif;
  font-style: italic;
  font-size: 14px;
  color: #3a2e22;
  letter-spacing: 0.02em;
}

/* Solo card — desktop: gradient from left */
.solo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0,0,0,0.72) 0%,
    rgba(0,0,0,0.1) 55%,
    rgba(0,0,0,0.0) 100%
  );
  display: flex;
  align-items: center;
  padding: 32px;
}

.solo-text-block {
  max-width: 320px;
}

.solo-eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.25em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.solo-name {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 900;
  font-size: clamp(28px, 6vw, 52px);
  background: linear-gradient(135deg, var(--gold), var(--gold-shine), var(--gold));
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s linear infinite;
  line-height: 1.1;
  margin-bottom: 10px;
}

.solo-caption {
  font-family: 'Crimson Pro', serif;
  font-style: italic;
  font-size: clamp(13px, 2.5vw, 17px);
  color: var(--cream-dim);
  line-height: 1.4;
}

/* ============================================
   CLOSING SECTION
============================================ */
.closing-section {
  padding: 100px 24px 80px;
  text-align: center;
  position: relative;
}

.closing-section::before {
  content: '';
  display: block;
  width: 1px;
  height: 80px;
  background: linear-gradient(to bottom, var(--border-strong), transparent);
  margin: 0 auto 60px;
}

.closing-mono {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 20px;
  opacity: 0.8;
}

/* FIX #5 — "luck won't help you there" line: much tighter top spacing */
.closing-mono--tight {
  margin-top: 6px;
  margin-bottom: 28px;
}

.closing-verdict {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(32px, 9vw, 72px);
  letter-spacing: 0.06em;
  color: var(--cream);
  line-height: 1.0;
  margin-bottom: 8px;
}

.closing-verdict .red { color: var(--red-bright); }

.closing-subtext {
  font-family: 'Crimson Pro', serif;
  font-style: italic;
  font-size: clamp(17px, 4vw, 26px);
  color: var(--cream-dim);
  margin-top: 8px;
  margin-bottom: 12px; /* tight — the mono line follows immediately */
}

.case-file {
  display: inline-block;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 20px 32px;
  background: rgba(201,146,42,0.04);
  text-align: left;
}

.case-file-row {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.15em;
  color: rgba(201,146,42,0.5);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.case-file-row:last-child { margin-bottom: 0; }
.case-file-row span:first-child { color: rgba(201,146,42,0.3); }

/* ============================================
   KEYFRAMES
============================================ */
@keyframes fadeSlideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ============================================
   MOBILE — max 600px
============================================ */
@media (max-width: 600px) {

  /* FIX #2 — bars: 2-line, icons flank the stacked text */
  .bar-inner {
    gap: 8px;
    align-items: center;
  }

  .bar-text {
    flex-direction: column;
    flex: 1;
    gap: 1px;
    line-height: 1.4;
  }

  /* Hide the em-dash on mobile */
  .bar-sep { display: none; }

  .bar-line1,
  .bar-line2 {
    display: block;
    white-space: normal;
    text-align: center;
  }

  .classification-bar {
    padding: 10px 12px;
    font-size: 10px;
    letter-spacing: 0.12em;
  }

  .bar-icon {
    width: 18px;
    height: 18px;
    align-self: center;
  }

  /* FIX #3 — Hello / Brother on separate lines */
  .hello-line {
    flex-direction: column;
    gap: 0;
    line-height: 0.92;
  }

  /* FIX #4 — Solo card: portrait + text at bottom */
  .photo-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .photo-card.couple-1 { grid-column: 1; grid-row: 1; }
  .photo-card.couple-2 { grid-column: 1; grid-row: 2; }
  .photo-card.solo-full { grid-column: 1; grid-row: 3; }

  /* Tall portrait: photo is the hero */
  .photo-card.solo-full .photo-img-wrap {
    aspect-ratio: 3/4;
  }

  /* Bottom-up gradient so text sits legibly at the foot */
  .solo-overlay {
    background: linear-gradient(
      to top,
      rgba(0,0,0,0.90) 0%,
      rgba(0,0,0,0.45) 42%,
      rgba(0,0,0,0.0) 100%
    );
    align-items: flex-end;
    text-align: center;
    margin-top: 12px;
    padding: 22px 20px;
  }

  .solo-text-block {
    max-width: 100%;
    width: 100%;
  }

  .solo-name {
    font-size: clamp(32px, 10vw, 48px);
  }

  /* FIX #5 — tight second mono line */
  .closing-mono--tight {
    margin-top: 4px;
    margin-bottom: 24px;
  }

  .closing-subtext {
    margin-bottom: 8px;
  }

  .case-file {
    padding: 16px 20px;
    width: 100%;
  }

  .case-file-row {
    flex-direction: column;
    gap: 2px;
    margin-bottom: 12px;
  }
}

/* ============================================
   TABLET — 601px–768px
============================================ */
@media (min-width: 601px) and (max-width: 768px) {
  .photo-card.solo-full .photo-img-wrap {
    aspect-ratio: 16/8;
  }
}