/* ============================================================
   TOKENS
   ============================================================ */
:root{
  --bg:        #FFFBE4;
  --bg-alt:    #FBF5D6;
  --panel:     #FFFFFF;
  --card:      #F5EFC8;
  --line:      #E8E0B8;
  --text:      #1C1C1C;
  --text-dim:  #4A4A40;
  --text-faint:#7A7A68;
  --lime:      #DBFF00;
  --teal:      #92D0C1;
  --coral:     #FF7A54;
  --accent:    #4E9C89;
  --accent-2:  #3E7F70;
  --accent-glow: rgba(146, 208, 193, 0.35);
  --accent-on: #000000;

  --font-display: 'Press Start 2P', monospace;
  --font-body:    'VT323', monospace;
  --font-mono:    'VT323', monospace;

  --wrap: 1160px;
}

/* ============================================================
   RESET / BASE
   ============================================================ */
*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 20px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img,svg{ display:block; max-width:100%; }
a{ color: inherit; text-decoration:none; }
h1,h2,h3{ font-family: var(--font-display); margin:0; line-height:1.4; }
p{ margin:0; }
ul{ margin:0; padding:0; list-style:none; }

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

.wrap{
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 28px;
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* ============================================================
   EYEBROW / SHARED
   ============================================================ */
.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-family: var(--font-display);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  line-height:1.8;
}
.eyebrow .dot{
  width:7px; height:7px; border-radius:50%;
  background: var(--accent);
  box-shadow: 0 0 10px 2px var(--accent-glow);
  flex-shrink:0;
}
.eyebrow-dark{ color: var(--accent-2); }

.greet-plain{ color: var(--text); }
.greet-gradient{
  background: linear-gradient(90deg, var(--accent-2), #6FA82E);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.02em;
  padding: 16px 30px;
  border-radius: 999px;
  border: 2px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, background .3s ease, border-color .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn-primary{
  background: var(--lime);
  color: var(--accent-on);
  font-weight: 400;
}
.btn-primary:hover{
  background: var(--text);
  color: var(--lime);
  box-shadow: 0 0 0 3px var(--lime), 0 0 26px rgba(219,255,0,0.45);
  transform: translateY(-2px) scale(1.03);
}
.btn-ghost{
  border-color: var(--accent);
  color: #0F2E27;
  background: var(--teal);
}
.btn-ghost:hover{
  border-color: var(--accent-2);
  background: var(--accent-2);
  color: #FFFBE4;
  transform: translateY(-2px) scale(1.03);
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header{
  position: sticky;
  top:0;
  z-index: 100;
  background: rgba(255,251,228,0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s ease;
}
.site-header.scrolled{
  box-shadow: 0 1px 0 var(--line), 0 8px 24px -12px rgba(28,28,28,0.14);
}
.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  height: 76px;
}
.logo-mark{
  display:flex;
  align-items:center;
  gap:12px;
}
.logo-box{
  font-family: var(--font-display);
  font-size: 11px;
  color: var(--accent-on);
  background: var(--teal);
  width: 34px; height:34px;
  display:flex; align-items:center; justify-content:center;
  border-radius: 8px;
  transition: transform .3s ease;
  flex-shrink: 0;
}
.logo-mark:hover .logo-box{ transform: rotate(-8deg) scale(1.08); }
.logo-text{
  font-family: var(--font-body);
  font-size: 20px;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.site-nav{
  display:flex;
  align-items:center;
  gap: 34px;
  font-size: 17px;
  color: var(--text-dim);
}
.site-nav a:not(.nav-cta){
  position: relative;
  transition: color .2s ease;
}
.site-nav a:not(.nav-cta)::after{
  content:"";
  position:absolute;
  left:0; bottom:-4px;
  width:100%; height:2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.site-nav a:not(.nav-cta):hover::after{ transform: scaleX(1); }
.site-nav a:hover{ color: var(--text); }
.nav-cta{
  color: var(--text) !important;
  border: 2px solid var(--line);
  padding: 9px 18px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 11px;
  transition: background .25s ease, border-color .25s ease, transform .2s ease;
}
.nav-cta:hover{
  border-color: var(--lime);
  background: var(--lime);
  transform: translateY(-1px);
}

.nav-toggle{
  display:none;
  flex-direction:column;
  justify-content:center;
  gap:5px;
  width: 36px; height:36px;
  background:none; border:none;
  cursor:pointer;
}
.nav-toggle span{
  display:block;
  width: 100%;
  height: 2px;
  background: var(--text);
}
.mobile-nav{
  display:none;
  flex-direction: column;
  padding: 8px 28px 20px;
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.mobile-nav a{
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text-dim);
  font-size: 18px;
}
.mobile-nav.open{ display:flex; }

/* ============================================================
   HERO
   ============================================================ */
.hero{
  padding-top: 112px;
  overflow:hidden;
  background:
    radial-gradient(ellipse 900px 500px at 80% -10%, var(--accent-glow), transparent 60%),
    var(--bg);
}
.hero-flex{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 48px;
  flex-wrap: wrap;
  padding-bottom: 48px;
}
.hero-inner{
  max-width: 640px;
  flex: 1 1 460px;
}
.hero-visual{
  position: relative;
  flex: 0 0 280px;
  max-width: 280px;
}
.hero-visual img{
  width: 100%;
  height: auto;
}
.hero-badge{
  position: absolute;
  font-family: var(--font-display);
  font-size: 9px;
  letter-spacing: 0.01em;
  padding: 9px 14px;
  border-radius: 999px;
  border: 2px solid var(--text);
  box-shadow: 0 10px 20px -10px rgba(28,28,28,0.35);
  white-space: nowrap;
  animation: badge-float 3.6s ease-in-out infinite;
  z-index: 2;
}
.badge-1{ top: 4%; left: -12%; background: var(--lime); animation-delay: 0s; }
.badge-2{ top: 46%; right: -16%; background: var(--panel); animation-delay: 0.7s; }
.badge-3{ bottom: 2%; left: -8%; background: var(--teal); animation-delay: 1.4s; }
@keyframes badge-float{
  0%, 100%{ transform: translateY(0); }
  50%{ transform: translateY(-10px); }
}
.hero-greeting{
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.1vw, 1.65rem);
  letter-spacing: 0.01em;
  margin-bottom: 24px;
  line-height: 1.6;
}
.hero-title{
  font-size: clamp(1.3rem, 2.6vw, 2rem);
  line-height: 1.4;
  letter-spacing: -0.01em;
  margin-bottom: 26px;
}
.hero-rotate-line{
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  color: var(--text-dim);
  max-width: 600px;
  margin-bottom: 40px;
  line-height: 1.5;
}
.rotate-word-wrap{
  display:inline-block;
  vertical-align: bottom;
  overflow: hidden;
  height: 1.6em;
  position: relative;
  min-width: 130px;
}
.rotate-word{
  display:inline-block;
  font-family: var(--font-display);
  font-size: 0.62em;
  color: var(--text);
  background: var(--lime);
  padding: 4px 12px;
  border-radius: 6px;
  transition: opacity .35s ease, transform .35s ease;
}
.rotate-word.swap{
  opacity: 0;
  transform: translateY(10px);
}
.hero-actions{
  display:flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* Hero entrance sequence */
.hero-anim{
  opacity: 0;
  transform: translateY(18px);
  animation: hero-in .7s cubic-bezier(.22,1,.36,1) forwards;
  animation-delay: var(--d, 0s);
}
@keyframes hero-in{
  to{ opacity:1; transform: translateY(0); }
}

/* Scroll indicator */
.scroll-indicator{
  display:flex;
  justify-content:center;
  padding-bottom: 26px;
}
.scroll-mouse{
  width: 26px;
  height: 42px;
  border: 2px solid var(--text);
  border-radius: 14px;
  position: relative;
  opacity: 0.6;
}
.scroll-dot{
  width: 4px;
  height: 8px;
  background: var(--accent);
  border-radius: 2px;
  position: absolute;
  top: 7px;
  left: 50%;
  transform: translateX(-50%);
  animation: scroll-dot-move 1.6s ease-in-out infinite;
}
@keyframes scroll-dot-move{
  0%{ transform: translate(-50%, 0); opacity: 1; }
  70%{ opacity: 1; }
  100%{ transform: translate(-50%, 14px); opacity: 0; }
}

/* Ticker — signature element */
.ticker{
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--text);
  overflow: hidden;
  white-space: nowrap;
  padding: 16px 0;
}
.ticker-track{
  display: inline-flex;
  align-items:center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 16px;
  letter-spacing: 0.04em;
  color: var(--lime);
  animation: ticker-scroll 32s linear infinite;
  width: max-content;
}
.ticker-track span{ flex-shrink:0; }
.ticker-track .sep{ color: var(--teal); opacity:0.9; }
@keyframes ticker-scroll{
  from{ transform: translateX(0); }
  to{ transform: translateX(-50%); }
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal{
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1);
  transition-delay: var(--rd, 0s);
}
.reveal.in-view{
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   SECTIONS (shared)
   ============================================================ */
.section{
  padding: 96px 0;
}
.section-alt{
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section-title{
  font-size: clamp(1.3rem, 2.4vw, 1.9rem);
  letter-spacing: -0.01em;
  margin-bottom: 48px;
  max-width: 620px;
  line-height: 1.5;
}

/* ============================================================
   DUAL-TONE: light-teal section variant (#92D0C1)
   ============================================================ */
.section-dark{
  background: #92D0C1;
  color: #0F2E27;
  border-color: #7CC1B0;
}
.section-dark .eyebrow,
.section-dark .eyebrow-dark{
  color: #0F2E27;
}
.section-dark .section-title,
.section-dark .contact-title{
  color: #0F2E27;
}
.section-dark .greet-gradient{
  background: linear-gradient(90deg, #0F2E27, var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.section-dark .win-card{
  background: #FBFEFC;
  border-color: #7CC1B0;
}
.section-dark .stat-card:hover{
  background: #FFFFFF;
}
.section-dark .win-stat{
  background: linear-gradient(90deg, var(--accent-2), var(--lime));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.section-dark .win-label{
  color: var(--text-dim);
}
.section-dark .btn-ghost{
  border-color: #0F2E27;
  background: transparent;
  color: #0F2E27;
}
.section-dark .btn-ghost:hover{
  background: #0F2E27;
  color: var(--lime);
}

/* ============================================================
   STAT / RESULT CARDS
   ============================================================ */
.stats-grid, .results-grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.results-grid{ grid-template-columns: repeat(3, 1fr); }

.win-card{
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 36px 28px;
  display:flex;
  flex-direction:column;
  gap: 10px;
  min-height: 160px;
  justify-content:center;
  transition: transform .3s ease, box-shadow .3s ease, background .3s ease;
}
.win-card:hover{
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 16px 32px -16px rgba(28,28,28,0.25);
  z-index: 1;
}
.stat-card:hover{
  background: var(--panel);
}
.stat-card:hover .win-stat{
  filter: brightness(1.2);
}
.win-stat{
  font-family: var(--font-display);
  font-size: 1.9rem;
  background: linear-gradient(90deg, var(--accent-2), var(--teal) 60%, var(--lime));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: filter .3s ease;
}
.win-label{
  font-size: 17px;
  color: var(--text-dim);
  line-height: 1.4;
}

/* ============================================================
   TIMELINE — vertical (mobile / default)
   ============================================================ */
.timeline{
  position: relative;
  max-width: 720px;
  padding-left: 8px;
  --line-progress: 0;
}
.timeline::before{
  content:"";
  position:absolute;
  left: 5px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--line);
  transform-origin: top;
  transform: scaleY(var(--line-progress));
}
.timeline-item{
  position: relative;
  display:flex;
  gap: 24px;
  padding-left: 34px;
  padding-bottom: 40px;
}
.timeline-item:last-child{ padding-bottom: 0; }
.timeline-content{
  order: 2;
}
.timeline-dot{
  position:absolute;
  left: 0;
  top: 5px;
  width: 12px; height:12px;
  border-radius: 50%;
  background: var(--panel);
  border: 2px solid var(--accent);
  transition: transform .3s ease, box-shadow .3s ease;
}
.timeline-dot.current{
  background: var(--lime);
  border-color: var(--lime);
  box-shadow: 0 0 0 4px var(--accent-glow);
}
.timeline-item:hover .timeline-dot{
  transform: scale(1.3);
  box-shadow: 0 0 0 5px var(--accent-glow);
}
.timeline-date{
  display:block;
  font-family: var(--font-body);
  font-size: 15px;
  letter-spacing: 0.03em;
  color: var(--accent-2);
  margin-bottom: 6px;
}
.timeline-role{
  font-size: 0.72rem;
  line-height: 1.5;
  margin-bottom: 8px;
}
.timeline-company{
  font-size: 16px;
  color: var(--text-dim);
}

/* ============================================================
   LEFT BRAIN / RIGHT BRAIN
   ============================================================ */
.brain-row{
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 32px;
  align-items: center;
}
.brain-portrait{
  max-width: 240px;
}
.brain-portrait img{
  width: 100%;
  height: auto;
  border-radius: 12px;
}
.brain-card{
  background: var(--card);
  border-radius: 20px;
  padding: 40px 36px;
  transition: transform .3s ease, box-shadow .3s ease, background .3s ease;
  height: 100%;
}
.brain-card:hover{
  background: var(--panel);
}
.brain-card:hover{
  transform: translateY(-4px);
  box-shadow: 0 14px 30px -18px rgba(28,28,28,0.2);
  z-index: 1;
}
.brain-tag{
  display:inline-block;
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.brain-left .brain-tag{ background: var(--teal); color: #0F2E27; }
.brain-right .brain-tag{ background: var(--lime); color: #2C3000; }
.brain-desc{
  color: var(--text-dim);
  font-size: 18px;
  line-height: 1.5;
  margin-bottom: 22px;
}
.brain-list li{
  position: relative;
  padding-left: 22px;
  margin-bottom: 12px;
  font-size: 17px;
  color: var(--text);
}
.brain-list li::before{
  content:"";
  position:absolute;
  left:0; top: 8px;
  width:8px; height:8px;
  border-radius:2px;
}
.brain-left .brain-list li::before{ background: var(--teal); }
.brain-right .brain-list li::before{ background: var(--lime); }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-section{
  text-align:center;
  background:
    radial-gradient(ellipse 700px 400px at 50% 110%, var(--accent-glow), transparent 60%),
    var(--bg);
}
.contact-section.section-dark{
  background:
    radial-gradient(ellipse 700px 400px at 50% 110%, rgba(219,255,0,0.18), transparent 60%),
    #92D0C1;
}
.contact-inner{
  display:flex;
  flex-direction:column;
  align-items:center;
}
.contact-title{
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  line-height: 1.5;
  margin-bottom: 36px;
}
.contact-section .hero-actions{ justify-content:center; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer{
  position: relative;
  overflow: hidden;
  background: var(--text);
  color: var(--bg);
  padding: 32px 0;
}
.cursor-glow{
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(219,255,0,0.22), transparent 70%);
  transform: translate(-50%, -50%);
  left: 50%;
  top: 50%;
  opacity: 0;
  transition: opacity .3s ease;
  filter: blur(6px);
}
.site-footer:hover .cursor-glow{ opacity: 1; }
.footer-inner{
  position: relative;
  z-index: 1;
  display:flex;
  align-items: center;
  justify-content:space-between;
  gap: 16px;
  font-family: var(--font-body);
  font-size: 17px;
  color: var(--bg-alt);
}
.footer-role{ color: var(--teal); }
.back-to-top{
  font-family: var(--font-display);
  font-size: 10px;
  background: var(--lime);
  color: #000;
  border: none;
  border-radius: 999px;
  padding: 12px 20px;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}
.back-to-top:hover{
  transform: translateY(-3px);
  box-shadow: 0 10px 20px -8px rgba(219,255,0,0.5);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Desktop-only: crisscross timeline */
@media (min-width: 861px){
  .timeline{
    max-width: none;
    padding-left: 0;
    display: flex;
    align-items: stretch;
    height: 380px;
  }
  .timeline::before{
    left: 0;
    right: 0;
    top: 50%;
    bottom: auto;
    width: auto;
    height: 2px;
    transform-origin: left center;
    transform: translateY(-50%) scaleX(var(--line-progress));
  }
  .timeline-item{
    flex: 1;
    display: grid;
    grid-template-rows: 1fr 24px 1fr;
    justify-items: center;
    padding: 0 10px;
    gap: 0;
  }
  .timeline-content{
    max-width: 190px;
    text-align: center;
    grid-row: 1;
    align-self: end;
    padding-bottom: 18px;
    position: relative;
  }
  .timeline-item:nth-child(even) .timeline-content{
    grid-row: 3;
    align-self: start;
    padding-bottom: 0;
    padding-top: 18px;
  }
  .timeline-dot{
    position: static;
    grid-row: 2;
    align-self: center;
  }
  .timeline-item:nth-child(odd).reveal{ transform: translateY(-30px); }
  .timeline-item:nth-child(even).reveal{ transform: translateY(30px); }
  .timeline-item.reveal.in-view{ transform: translateY(0); }
}

@media (max-width: 860px){
  .site-nav{ display:none; }
  .nav-toggle{ display:flex; }
  .stats-grid{ grid-template-columns: repeat(2, 1fr); }
  .results-grid{ grid-template-columns: 1fr; }
  .brain-row{ grid-template-columns: 1fr; justify-items: center; }
  .hero-flex{ flex-direction: column-reverse; }
  .hero-visual{ max-width: 220px; flex-basis: auto; margin: 0 auto 20px; }
  .hero-badge{ font-size: 8px; padding: 7px 11px; }
  .badge-1{ left: -6%; }
  .badge-2{ right: -8%; }
  .badge-3{ left: -4%; }
  .footer-inner{ flex-wrap: wrap; justify-content: center; text-align: center; }
}
@media (max-width: 520px){
  .stats-grid{ grid-template-columns: 1fr; }
  .hero{ padding-top: 96px; }
  .section{ padding: 68px 0; }
  .timeline-item{ padding-left: 28px; gap: 16px; }
}
