/* ============================================
   Index Page Styles
   ============================================ */

:root {
  --font-serif: 'Playfair Display', 'Georgia', serif;
  --font-serif-display: 'DM Serif Display', 'Georgia', serif;
}

/* --- Hero --- */
.hero {
  height: 100vh;
  height: 100dvh;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 80% 90%, rgba(200, 100, 70, 0.05) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, transparent 50%, rgba(0, 0, 0, 0.25) 100%),
    #010400;
  cursor: none;
}

.hero a { cursor: pointer; }

/* --- Hidden Text Layer --- */
.hero-hidden-layer {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  background: #e8622b;
  -webkit-mask-image: radial-gradient(circle 0px at 50% 50%, black 100%, transparent 100%);
  mask-image: radial-gradient(circle 0px at 50% 50%, black 100%, transparent 100%);
}

.hidden-blurb {
  position: absolute;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1rem, 1.6vw, 1.5rem);
  color: #0a0a0a;
  white-space: nowrap;
  letter-spacing: 0.01em;
  line-height: 1;
  font-weight: 700;
  pointer-events: none;
  cursor: default;
  text-decoration: none;
}

.hidden-blurb--lg {
  font-size: clamp(1.6rem, 3vw, 2.8rem);
  font-style: normal;
  font-family: var(--font-serif-display);
}

/* --- Spotlight Overlay (above portrait, same mask as hidden layer) --- */
.hero-spotlight-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  z-index: 20;
  pointer-events: none;
  background: #e8622b;
  -webkit-mask-image: radial-gradient(circle 0px at 50% 50%, black 100%, transparent 100%);
  mask-image: radial-gradient(circle 0px at 50% 50%, black 100%, transparent 100%);
}

.hero-spotlight-overlay.active {
  pointer-events: auto;
}

.hero-spotlight-overlay.active .hidden-blurb {
  pointer-events: none;
}

/* --- Cursor Spotlight --- */
.hero-cursor {
  position: fixed;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 25;
  transform: translate(-50%, -50%);
  opacity: 1;
  transition: width 0.3s, height 0.3s;
  background: none;
  display: flex;
  align-items: center;
  justify-content: center;
}



.hero-grain {
  display: none;
}

/* --- Film Sprocket Rails --- */
.hero-sprocket {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 28px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  padding: 2vh 0;
  background: #000;
}

.hero-sprocket--left { left: 0; }
.hero-sprocket--right { right: 0; }

.sprocket-hole {
  width: 12px;
  height: 8px;
  border-radius: 2px;
  border: 1px solid rgba(200, 160, 120, 0.4);
  background: rgba(200, 160, 120, 0.1);
}

/* --- Scroll Indicator (bottom-left) --- */
.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 3rem;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.hero-scroll-text {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.35);
}

.hero-scroll-arrow {
  color: rgba(255, 255, 255, 0.35);
  animation: scroll-bounce 2s ease-in-out infinite;
}

@keyframes scroll-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* --- Hover Hint (curved text on dark bg, outside spotlight lower-left) --- */
.hero-hint-arc {
  position: absolute;
  z-index: 3;
  pointer-events: none;
  overflow: visible;
  opacity: 0.35;
  transition: opacity 0.5s ease;
}

.hero-hint-arc.hidden {
  opacity: 0;
}

.hero-hint-text {
  font-family: var(--font-mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  fill: rgba(255, 255, 255, 0.9);
}

/* --- SVG Filters (hidden) --- */
.hero-svg-filters {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* --- Name Block — right-aligned, bottom corner --- */
.hero-name-block {
  position: absolute;
  bottom: 2.5rem;
  right: 3rem;
  z-index: 2;
  text-align: right;
}

.knockout-name {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.knockout-intro {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(0.85rem, 1.4vw, 1.2rem);
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 0.5rem;
}

.knockout-line {
  display: block;
  font-size: clamp(5rem, 16vw, 16rem);
  line-height: 0.85;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  position: relative;
}

/* First line — italic serif, soft purple-to-lavender */
.knockout-line--first {
  font-family: var(--font-serif);
  font-weight: 700;
  font-style: italic;

  background:
    linear-gradient(135deg,
      #c8b8e0 0%, #a090c8 20%, #d0c4e0 42%,
      #8878b8 60%, #c0b4d8 80%, #a898d0 100%
    );
  background-size: 250% 250%;
  animation: spicy-shift 10s ease-in-out infinite;

  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Last line — display serif, warm lilac into cool slate-violet */
.knockout-line--last {
  font-family: var(--font-serif-display);
  font-weight: 400;

  background:
    linear-gradient(135deg,
      #d4c8e0 0%, #b0a0c8 25%, #9888b8 50%,
      #c4b8d8 75%, #d4c8e0 100%
    );
  background-size: 250% 250%;
  animation: spicy-shift 10s ease-in-out infinite reverse;

  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

@keyframes spicy-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* --- Resume Download Button --- */
.resume-btn {
  position: fixed;
  top: 1.5rem;
  right: 2.5rem;
  z-index: 180;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 2rem;
  text-decoration: none;
  transition: color 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.resume-btn:hover {
  color: rgba(255, 255, 255, 0.85);
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.06);
}

.resume-btn-icon {
  flex-shrink: 0;
}

/* --- About portrait: pulled up so eyes peek into hero --- */
.about-portrait {
  flex: 0 0 35%;
  position: relative;
  overflow: visible;
  margin-top: -46vh;
  will-change: transform;
  pointer-events: none;
}

.about-portrait-img {
  width: 100%;
  height: calc(100% + 46vh);
  object-fit: contain;
  object-position: top center;
  display: block;
  pointer-events: none;
  mix-blend-mode: lighten;
}

/* --- Split Screen --- */
.split-screen { display: flex; min-height: 100vh; }

.split-side {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  padding-bottom: 8rem;
  position: relative;
  overflow: hidden;
  transition: flex 0.6s var(--ease-out);
}

.split-side:hover { flex: 1.15; }
.split-dark { background: #000; color: #fff; }
.split-light { background: #fff; color: #000; }
.split-content { text-align: center; z-index: 2; }

.split-title {
  font-family: var(--font-serif-display);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.split-cta {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.split-side:hover .split-cta { opacity: 1; transform: translateY(0); }

/* --- About --- */
.about {
  padding: 0;
  background: #000;
  color: #fff;
  overflow: visible;
  position: relative;
  z-index: 3;
}

.about-layout {
  max-width: none;
  margin: 0;
  display: flex;
  align-items: stretch;
  gap: 0;
  min-height: 100vh;
  min-height: 100dvh;
}

.about-text {
  flex: 1;
  min-width: 0;
  flex: 0.92;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 4rem 4rem 6rem;
}

.about .section-title {
  color: #e8622b;
}

.about-title-raised {
  margin-bottom: 2.5rem;
}

.about-body p {
  color: rgba(255, 255, 255, 0.8);
}

/* Paragraph slide-in */
.about-body p {
  font-size: 0.95rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.6s ease, transform 0.6s var(--ease-out);
}

.about-body p.in-view {
  opacity: 1;
  transform: translateX(0);
}

/* --- Timeline --- */
.timeline-section {
  padding: 6rem 2rem;
  border-top: none;
  overflow: hidden;
}

/* Section title slide-up */
.timeline-section .section-title {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s var(--ease-out);
}

.timeline-section .section-title.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Education — black bg, purple accents */
.timeline-section#education {
  background: #000;
}

.timeline-section#education .section-title {
  color: #e8622b;
}

.timeline-section#education .timeline-item {
  border-left-color: #e8622b;
}

.timeline-section#education .timeline-place {
  color: #e8622b;
}

/* Education items slide from left */
.timeline-section#education .timeline-item {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.5s ease, transform 0.5s var(--ease-out), border-color var(--transition-base);
}

.timeline-section#education .timeline-item.in-view {
  opacity: 1;
  transform: translateX(0);
}

/* Experience — white bg, red accents */
.timeline-section#experience {
  background: #0a0a0a;
  color: #fff;
}

.timeline-section#experience .section-title {
  color: #e8622b;
}

.timeline-section#experience .timeline-item {
  border-left-color: #e8622b;
}

.timeline-section#experience .timeline-role {
  color: #fff;
}

.timeline-section#experience .timeline-place {
  color: #e8622b;
}

.timeline-section#experience .timeline-date {
  color: rgba(255, 255, 255, 0.6);
}

.timeline-section#experience .timeline-desc {
  color: rgba(255, 255, 255, 0.8);
}
.timeline-section#experience .timeline-desc-list {
  color: rgba(255, 255, 255, 0.8);
}

/* Experience items slide from right */
.timeline-section#experience .timeline-item {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.5s ease, transform 0.5s var(--ease-out), border-color var(--transition-base);
}

.timeline-section#experience .timeline-item.in-view {
  opacity: 1;
  transform: translateX(0);
}

.timeline { display: flex; flex-direction: column; gap: 2.5rem; }

.timeline-item {
  padding-left: 1.5rem;
  border-left: 2px solid #333;
  transition: border-color var(--transition-base);
}

.timeline-item:hover { border-left-color: #fff; }

.timeline-date {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  display: block;
  margin-bottom: 0.4rem;
}

.timeline-role {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.25rem;
}

.timeline-place { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 0.4rem; }
.timeline-desc { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; }
.timeline-desc-list { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; margin: 0.4rem 0 0; padding-left: 1.2rem; }
.timeline-desc-list li { margin-bottom: 0.35rem; }
.timeline-btn {
  display: inline-block;
  margin-top: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: #e8622b;
  text-decoration: none;
  transition: opacity 0.2s ease;
}
.timeline-btn:hover { opacity: 0.7; }

/* --- Photo Strip Alt Color --- */
.photo-strip--alt {
  background: #000;
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  .about-body p { opacity: 1; transform: none; transition: none; }
  .timeline-section .section-title { opacity: 1; transform: none; transition: none; }
  .timeline-section .timeline-item { opacity: 1; transform: none; transition: none; }
  .knockout-line--first,
  .knockout-line--last { animation: none; }
  .hero-grain { animation: none; }
  .knockout-name { filter: none; }
}

/* --- Responsive --- */
@media (max-width: 768px) {
  /* Remove spotlight / hidden-text / sprockets — mouse-only features */
  .hero-hidden-layer,
  .hero-spotlight-overlay,
  .hero-cursor,
  .hero-hint-arc,
  .hero-sprocket {
    display: none !important;
    visibility: hidden !important;
  }

  .hero {
    cursor: auto;
  }

  .knockout-line { font-size: clamp(3rem, 14vw, 6rem); }
  .hero-name-block {
    right: 1.5rem;
    bottom: 1.5rem;
    left: 1.5rem;
    text-align: left;
  }
  .knockout-name { align-items: flex-start; }

  /* About section — stack vertically, kill the parallax overlap */
  .about { min-height: auto; }
  .about-layout { flex-direction: column-reverse; min-height: auto; }
  .about-text { padding: 3rem 1.5rem; }
  .about-portrait {
    flex: none;
    height: 60vh;
    margin-top: 0;
    /* kill the JS parallax transform on mobile */
    transform: none !important;
  }
  .about-portrait-img { height: 100%; }
  .about-body p { font-size: 0.9rem; }

  /* Split screen — stack, always show CTA */
  .split-screen { flex-direction: column; min-height: auto; }
  .split-side { min-height: 50vh; }
  .split-side:hover { flex: 1; }
  .split-cta { opacity: 1; transform: translateY(0); }

  /* Photo captions — always visible on touch (no hover) */
  .photo-item-caption {
    transform: translateY(0);
  }

  /* Timeline */
  .timeline-section { padding: 4rem 1.5rem; }
}

@media (max-width: 480px) {
  .knockout-line { font-size: clamp(2.5rem, 16vw, 4rem); }
  .hero-name-block { right: 1rem; bottom: 1rem; left: 1rem; }

  /* Tighter about portrait on small phones */
  .about-portrait { height: 50vh; }
  .about-text { flex: 1; }

  /* Smaller split panels */
  .split-side { min-height: 40vh; }
  .split-title { font-size: clamp(2rem, 10vw, 3rem); }
}
