/* ==========================================================================
   ROHAN FOR VP — ZOHRAN TYPOGRAPHY + IMPECCABLE CRAFT FLOOR
   Fonts: Boheld (SVG mark), Union Gothic (Variable), Coffee Service (Script),
          IBM Plex Serif (Body)
   ========================================================================== */

@font-face {
  font-family: 'unionGothic';
  src: url('assets/fonts/UnionGothic.ttf') format('truetype');
  font-weight: 100 900;
  font-stretch: 75% 125%;
  font-display: swap;
}

:root {
  --marigold: #FFAB00;
  --cobalt: #2619D1;
  --cobalt-deep: #170E8C;
  --red: #E81900;
  --cream: #FFFDF7;
  --ink: #12100B;

  --font-display: 'unionGothic', 'Archivo', sans-serif;
  --font-serif: 'IBM Plex Serif', Georgia, serif;
  --font-script: 'Yellowtail', cursive;
}

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

html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

body {
  background-color: var(--marigold);
  color: var(--cobalt);
  font-family: var(--font-serif);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  text-wrap: balance;
}

p, figcaption {
  text-wrap: pretty;
}

/* Themed Browser Surfaces (Selection, Focus, Scrollbar) */
::selection {
  background-color: var(--cobalt);
  color: #FFFFFF;
}

:focus-visible {
  outline: 3px solid var(--cobalt);
  outline-offset: 3px;
}

::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--marigold);
}
::-webkit-scrollbar-thumb {
  background: var(--cobalt);
  border-radius: 9999px;
}

/* Typography System */
.font-union {
  font-family: var(--font-display);
  font-variation-settings: 'wdth' 94, 'wght' 788;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.font-union-caps {
  font-family: var(--font-display);
  font-variation-settings: 'wdth' 102, 'wght' 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.font-serif-body {
  font-family: var(--font-serif);
}

.font-coffee-script {
  font-family: var(--font-script);
}

/* Borderless 3D Portrait Stage */
#head-stage-wrap {
  position: relative;
  width: 100%;
  height: clamp(500px, 80vh, 740px);
  overflow: visible;
  cursor: none;
  touch-action: none;
  user-select: none;
}

#hair-canvas {
  position: relative;
  z-index: 10;
  width: 100%;
  height: 100%;
  display: block;
}

/* Custom Comb Cursor */
#comb-cursor {
  position: absolute;
  top: 0;
  left: 0;
  width: 92px;
  height: 92px;
  pointer-events: none;
  z-index: 35;
  opacity: 0;
  transform: translate3d(-999px, -999px, 0);
  transition: opacity 0.15s ease;
  will-change: transform;
  filter: drop-shadow(0 8px 14px rgba(18, 16, 11, 0.28));
}

#head-stage-wrap:hover #comb-cursor {
  opacity: 1;
}

@keyframes combWave {
  0%, 100% { transform: translateX(-12px) rotate(-6deg); }
  50% { transform: translateX(12px) rotate(6deg); }
}

.comb-hint-anim {
  animation: combWave 1.5s ease-in-out infinite;
}

/* Floating Policy Speech Pop-Ups when combing Rohan's hair */
.rohan-quip {
  position: absolute;
  z-index: 28;
  pointer-events: none;
  padding: 0.55rem 1rem;
  border-radius: 14px;
  font-family: var(--font-display);
  font-variation-settings: 'wdth' 96, 'wght' 780;
  font-size: 1.05rem;
  line-height: 1.1;
  white-space: nowrap;
  box-shadow: 0 12px 26px -8px rgba(18, 16, 11, 0.32);
  will-change: transform, opacity;
}

.rohan-quip::after {
  content: "";
  position: absolute;
  bottom: -7px;
  left: 22px;
  width: 14px;
  height: 14px;
  transform: rotate(45deg);
  background: inherit;
}

/* Zohran-style Animated Vertical Timeline */
.timeline-rail {
  position: relative;
  padding-left: 2.5rem;
}

.timeline-rail::before {
  content: "";
  position: absolute;
  left: 0.68rem;
  top: 0.65rem;
  bottom: 0.65rem;
  width: 3px;
  background-color: rgba(255, 255, 255, 0.22);
  border-radius: 9999px;
}

.timeline-progress-line {
  position: absolute;
  left: 0.68rem;
  top: 0.65rem;
  bottom: 0.65rem;
  width: 3px;
  background-color: var(--marigold);
  border-radius: 9999px;
  transform-origin: top center;
  transform: scaleY(0);
  z-index: 1;
}

.timeline-node {
  position: relative;
  will-change: transform, opacity;
}

.timeline-dot {
  position: absolute;
  left: -2.5rem;
  top: 0.35rem;
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 9999px;
  background-color: var(--cobalt-deep);
  border: 3px solid rgba(255, 171, 0, 0.55);
  z-index: 2;
  transition: background-color 0.35s ease, border-color 0.35s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.timeline-node.is-active .timeline-dot {
  background-color: var(--marigold);
  border-color: #FFFFFF;
  transform: scale(1.22);
}

.photo-tile {
  will-change: transform, opacity;
}
