/* ============================================================
   THE SUTURE — Clean Editorial Coming Soon Page
   Inspired by sleek split-screen layout & powered by Anime.js
   Design DNA: Editorial Technology & Medical Humanities
   Palette: Warm Editorial Off-White #FAFAF8, Medical Red #C1121F
   ============================================================ */

/* ── Custom Properties ──────────────────────────────────────── */
:root {
  /* Colors */
  --bg-main: #FAFAF8;
  --bg-surface: #FFFFFF;
  --bg-surface-elevated: #F3F1EC;
  --bg-accent-soft: rgba(193, 18, 31, 0.06);
  --bg-accent-glow: rgba(193, 18, 31, 0.22);
  --bg-pane-visual: #F0EDE6;

  --border-subtle: #E8E5DF;
  --border-medium: #D5D1C8;
  --border-strong: #1A1A18;

  --text-primary: #1A1A18;
  --text-secondary: #5C5A54;
  --text-muted: #8E8C85;
  --text-inverse: #FAFAF8;

  --color-red: #C1121F;
  --color-red-hover: #9E0D18;
  
  /* Typography */
  --font-serif: 'Libre Baskerville', Georgia, serif;
  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(26, 26, 24, 0.04);
  --shadow-md: 0 10px 30px rgba(26, 26, 24, 0.07), 0 2px 8px rgba(26, 26, 24, 0.03);
  --shadow-lg: 0 20px 50px rgba(26, 26, 24, 0.1), 0 6px 16px rgba(193, 18, 31, 0.05);

  /* Curves */
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 24px;
  --radius-full: 9999px;
}

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

html, body {
  height: 100%;
  width: 100%;
}

body {
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Background Grid & Cursor Spotlight ─────────────────────── */
.bg-grid-pattern {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  background-image: 
    radial-gradient(circle at 15% 50%, rgba(193, 18, 31, 0.03) 0%, transparent 60%),
    radial-gradient(circle at 85% 20%, rgba(193, 18, 31, 0.02) 0%, transparent 50%),
    linear-gradient(to right, rgba(230, 227, 220, 0.35) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(230, 227, 220, 0.35) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 48px 48px, 48px 48px;
}

.cursor-glow {
  position: fixed;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(193, 18, 31, 0.045) 0%, rgba(193, 18, 31, 0) 70%);
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
  will-change: transform;
}

/* ── Split Layout Container ─────────────────────────────────── */
.page-container {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  width: 100%;
}

/* ── Left Visual Pane (Angled/Branded Showcase) ──────────────── */
.visual-pane {
  flex: 0 0 45%;
  min-height: 100vh;
  background: var(--bg-pane-visual);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--border-subtle);
  /* Modern diagonal cut inspired by coming soon reference */
  clip-path: polygon(0 0, 100% 0, 92% 100%, 0% 100%);
  background-image: 
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.8) 0%, rgba(240, 237, 230, 0.95) 100%),
    linear-gradient(135deg, rgba(193, 18, 31, 0.05) 0%, transparent 60%);
}

.visual-pane-inner {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
}

/* Anime.js Interactive Background Rings & SVG */
.anime-suture-svg {
  position: absolute;
  width: 560px;
  height: 560px;
  pointer-events: none;
}

.anime-pulse-path {
  stroke-dasharray: 600;
  stroke-dashoffset: 0;
}

/* Central Floating Emblem */
.emblem-container {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.5rem;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  max-width: 320px;
  width: 100%;
  text-align: center;
}

.emblem-glow {
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--bg-accent-glow) 0%, transparent 70%);
  z-index: -1;
  filter: blur(20px);
}

.emblem-image {
  width: 140px;
  height: 140px;
  object-fit: contain;
  margin-bottom: 1.25rem;
  filter: drop-shadow(0 10px 24px rgba(26, 26, 24, 0.12));
  transition: transform 0.4s var(--ease-expo);
}

.emblem-container:hover .emblem-image {
  transform: scale(1.05) translateY(-4px);
}

.emblem-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

.pulse-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-red);
  position: relative;
}

.pulse-indicator::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 50%;
  background-color: var(--color-red);
  animation: pulsePing 2s infinite;
}

@keyframes pulsePing {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(2.8); opacity: 0; }
}

/* Floating Chips */
.floating-chip {
  position: absolute;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-md);
  padding: 0.75rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  z-index: 6;
  pointer-events: none;
}

.chip-top {
  top: 14%;
  left: 10%;
}

.chip-bottom {
  bottom: 14%;
  right: 12%;
}

.chip-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--color-red);
  text-transform: uppercase;
}

.chip-val {
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* ── Right Content Pane ──────────────────────────────────────── */
.content-pane {
  flex: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 3.5rem;
}

.content-inner {
  max-width: 580px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Header & Badge */
.content-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.85rem;
}

.org-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-red);
}

.badge-text {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--text-secondary);
}

.edition-tag {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--color-red);
  background: var(--bg-accent-soft);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
}

/* Brand Hero & Headings */
.brand-hero {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.hero-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--color-red);
  text-transform: uppercase;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 4.5vw, 3.65rem);
  font-weight: 700;
  line-height: 1.05;
  color: var(--text-primary);
  display: flex;
  align-items: baseline;
  gap: 0.35em;
  letter-spacing: -0.02em;
}

.title-the {
  font-size: 0.75em;
  font-style: italic;
  font-weight: 400;
  color: var(--text-secondary);
}

.title-main {
  color: var(--text-primary);
}

.title-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 140px;
  margin: 0.35rem 0 0.5rem 0;
}

.line-segment {
  flex: 1;
  height: 1.5px;
  background: var(--border-medium);
}

.line-diamond {
  width: 5px;
  height: 5px;
  background: var(--color-red);
  transform: rotate(45deg);
}

.hero-tagline {
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.4;
  color: var(--text-primary);
}

.hero-description {
  font-size: 0.925rem;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 540px;
}

/* Highlights Pills Grid */
.pillars-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.pillar-pill {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
}

.pillar-pill:hover {
  border-color: var(--color-red);
  color: var(--text-primary);
  transform: translateY(-2px);
}

.pillar-bullet {
  color: var(--color-red);
  font-size: 1rem;
}



/* ── Content Footer ─────────────────────────────────────────── */
.content-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.5rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.copyright-txt {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.sub-txt {
  font-size: 0.725rem;
  color: var(--text-muted);
}

.footer-nav {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.footer-action-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: color 0.2s ease;
}

.footer-action-link:hover {
  color: var(--color-red);
}

.sep-dot {
  color: var(--border-medium);
  font-size: 0.75rem;
}

/* ── Screen-Reader Utility ──────────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ── Responsive Queries ─────────────────────────────────────── */
@media (max-width: 1024px) {
  .page-container {
    flex-direction: column;
  }

  .visual-pane {
    flex: none;
    min-height: 380px;
    clip-path: polygon(0 0, 100% 0, 100% 92%, 0% 100%);
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
  }

  .floating-chip {
    display: none;
  }

  .content-pane {
    padding: 3rem 1.5rem 4rem 1.5rem;
  }
}

@media (max-width: 600px) {
  .visual-pane {
    min-height: 300px;
  }

  .emblem-image {
    width: 100px;
    height: 100px;
  }

  .emblem-container {
    padding: 1.5rem;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .content-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ── Accessibility: Reduced Motion ──────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .cursor-glow {
    display: none !important;
  }
}
