/* ==========================================================================
   YUGTEE — DESIGN TOKENS
   ========================================================================== */
:root{
  --navy: #000D2F;
  --navy-soft: #051333;
  --navy-line: rgba(255,255,255,0.08);
  --red: #F10919;
  --white: #FFFFFF;
  --white-soft: rgba(255,255,255,0.62);
  --white-faint: rgba(255,255,255,0.32);

  --font-display: "Neue Montreal", "Inter", sans-serif;
  --font-body: "Inter", sans-serif;

  --ease: cubic-bezier(.22,1,.36,1);
  --container: 1280px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: auto; background: var(--navy); }
body{
  margin:0;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 400;
  overflow-x: hidden;
  cursor: default;
}
body.loading{ overflow: hidden; height: 100vh; }

h1,h2,h3{ font-family: var(--font-display); margin:0; font-weight: 500; letter-spacing: -0.01em; }
p{ margin:0; }
a{ color: inherit; text-decoration: none; }
ul{ list-style: none; margin:0; padding:0; }
img{ max-width: 100%; display: block; }

::selection{ background: var(--red); color: var(--white); }

.text-accent{ color: var(--red); }

/* ==========================================================================
   LOADER
   ========================================================================== */
#loader{
  position: fixed; inset:0; z-index: 200;
  background: var(--navy);
  display:flex; align-items:center; justify-content:center;
}
.loader-inner{ text-align:center; }
.loader-word{
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 4rem);
  letter-spacing: 0.08em;
  display:inline-block;
}
.loader-line{
  width: 220px; height:1px; background: var(--navy-line); margin-top: 20px; overflow:hidden;
}
.loader-line span{ display:block; height:100%; width:0%; background: var(--red); }

/* ==========================================================================
   SCROLL PROGRESS
   ========================================================================== */
#scroll-progress{
  position: fixed; top:0; left:0; height:2px; width:0%;
  background: var(--red); z-index: 150; transform-origin: left;
}

/* ==========================================================================
   CANVAS
   ========================================================================== */
#scene-canvas{
  position: fixed; inset:0; width:100vw; height:100vh; z-index:1;
  pointer-events:none;
}

/* ==========================================================================
   CUSTOM CURSOR
   ========================================================================== */
#cursor{
  position: fixed; top:0; left:0; width:0; height:0; z-index: 300;
  pointer-events:none; mix-blend-mode: difference;
}
#cursor-dot{
  position:absolute; width:8px; height:8px; border-radius:50%;
  background: var(--white); transform: translate(-50%,-50%);
  transition: width .25s var(--ease), height .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease);
}
#cursor.hovering #cursor-dot{
  width: 64px; height:64px; background: transparent; border:1px solid var(--red);
}
#cursor-label{
  position:absolute; transform: translate(-50%,-50%);
  font-size: 10px; letter-spacing: .08em; font-weight:600; color: var(--white);
  opacity:0; transition: opacity .2s var(--ease); pointer-events:none;
}
#cursor.hovering #cursor-label{ opacity:1; }
@media (hover:none), (max-width: 900px){ #cursor{ display:none; } }

/* ==========================================================================
   HEADER / NAV
   ========================================================================== */
#site-header{
  position: fixed; top:0; left:0; width:100%; z-index: 100;
}
.nav-wrap{
  max-width: var(--container); margin:0 auto;
  display:flex; align-items:center; justify-content:space-between;
  padding: 26px 32px;
}
.nav-logo{
  font-family: var(--font-display); font-size: 18px; letter-spacing:.08em;
}
.nav-links{ display:flex; gap: 36px; }
.nav-links a{
  font-size: 13px; letter-spacing: .04em; color: var(--white-soft);
  position: relative; padding-bottom:4px;
}
.nav-links a::after{
  content:''; position:absolute; left:0; bottom:0; width:0; height:1px; background: var(--red);
  transition: width .3s var(--ease);
}
.nav-links a:hover{ color: var(--white); }
.nav-links a:hover::after{ width:100%; }
.nav-links a.active{ color: var(--white); }
.nav-links a.active::after{ width:100%; }
.nav-cta-link{ color: var(--white) !important; }

#menu-btn{
  display:none; background:none; border:1px solid var(--navy-line); color: var(--white);
  width:42px; height:42px; align-items:center; justify-content:center; border-radius:2px;
}

#mobile-menu{
  position: fixed; inset:0; background: var(--navy); z-index: 110;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  transform: translateY(-100%); transition: transform .5s var(--ease);
}
#mobile-menu.open{ transform: translateY(0); }
#mobile-menu ul{ display:flex; flex-direction:column; gap: 22px; text-align:center; }
#mobile-menu a{ font-family: var(--font-display); font-size: 28px; }
#menu-close{ position:absolute; top:26px; right:32px; background:none; border:none; color:var(--white); }

@media (max-width: 900px){
  .nav-links{ display:none; }
  #menu-btn{ display:flex; }
}

/* ==========================================================================
   LAYOUT
   ========================================================================== */
main{ position: relative; z-index: 5; }
.section{
  position: relative; min-height: 100vh; width:100%;
  padding: 140px 32px; display:flex; flex-direction:column; justify-content:center;
  overflow: hidden;
}
.section-center{ align-items:center; text-align:center; }
.section-inner{ max-width: var(--container); margin:0 auto; width:100%; position:relative; z-index: 3; }

.eyebrow{
  font-size: 12px; letter-spacing: .12em; color: var(--white-soft); margin-bottom: 20px;
}
.section-title{
  font-size: clamp(2rem, 4.2vw, 3.4rem); line-height: 1.12; max-width: 780px; margin-bottom: 26px;
}
.section-lead{
  font-size: clamp(1rem, 1.4vw, 1.15rem); color: var(--white-soft); max-width: 620px; line-height:1.6;
}

/* text reveal lines */
.line{ display:block; overflow:hidden; }
.reveal{ display:inline-block; transform: translateY(110%); }

/* ==========================================================================
   HERO
   ========================================================================== */
#hero{ padding-top: 0; }
.hero-bg-type{
  position:absolute; top:50%; left:50%; transform: translate(-50%,-50%);
  font-family: var(--font-display); font-size: min(26vw, 340px);
  color: rgba(255,255,255,0.025); white-space:nowrap; z-index:0; letter-spacing: .02em;
  pointer-events:none;
}
.hline{ position:absolute; background: var(--navy-line); pointer-events:none; }
.hline-1{ top:22%; left:0; width:38%; height:1px; }
.hline-2{ bottom:18%; right:0; width:26%; height:1px; }

.hero-inner{ padding-top: 100px; }
.hero-copy{ max-width: 640px; }
.hero-title{ font-size: clamp(2.6rem, 7vw, 5.2rem); line-height: 1.02; margin-bottom: 24px; }
.hero-support{ font-size: 1.1rem; color: var(--white); margin-bottom: 10px; }
.hero-desc{ color: var(--white-soft); max-width: 460px; margin-bottom: 40px; line-height:1.6; }
.hero-actions{ display:flex; flex-wrap:wrap; gap: 18px; }

.scroll-cue{
  position:absolute; bottom: 40px; left: 32px; display:flex; align-items:center; gap:10px;
}
.scroll-cue span{
  width:1px; height:44px; background: var(--white-faint); position:relative; display:block; overflow:hidden;
}
.scroll-cue span::after{
  content:''; position:absolute; top:-100%; left:0; width:100%; height:100%; background: var(--red);
  animation: cue 1.8s ease-in-out infinite;
}
@keyframes cue{ 0%{ top:-100%;} 50%{ top:0;} 100%{ top:100%;} }

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn{
  display:inline-flex; align-items:center; gap:10px; padding: 16px 26px;
  font-size: 13px; letter-spacing:.06em; font-weight:600; border-radius: 2px;
  border: 1px solid transparent; transition: all .3s var(--ease);
}
.btn i{ width:16px; height:16px; }
.btn-primary{ background: var(--red); color: var(--white); }
.btn-primary:hover{ background: #d40714; transform: translateY(-2px); }
.btn-ghost{ border-color: var(--navy-line); color: var(--white); }
.btn-ghost:hover{ border-color: var(--white-faint); transform: translateY(-2px); }

/* ==========================================================================
   INTRO
   ========================================================================== */
.giant-index{
  position:absolute; top: -4%; right: 4%; font-family: var(--font-display);
  font-size: min(30vw, 380px); color: rgba(255,255,255,0.03); z-index:0; pointer-events:none;
}

/* ==========================================================================
   SERVICES
   ========================================================================== */
.service-list{ margin-top: 40px; border-top: 1px solid var(--navy-line); }
.service-row{
  display:grid; grid-template-columns: 60px 1fr 1fr 40px; align-items:center;
  gap: 20px; padding: 30px 0; border-bottom: 1px solid var(--navy-line);
  cursor: pointer; position:relative; transition: padding .3s var(--ease);
}
.service-num{ font-size: 14px; color: var(--white-faint); transition: color .3s var(--ease); font-family: var(--font-display);}
.service-name{ font-family: var(--font-display); font-size: clamp(1.3rem, 2.6vw, 2rem); transition: transform .35s var(--ease); }
.service-desc{
  color: var(--white-soft); font-size: 14px; max-width: 360px;
  opacity:0; transform: translateY(6px); transition: all .35s var(--ease);
}
.service-arrow{ display:flex; justify-content:flex-end; transition: transform .35s var(--ease); color: var(--white-faint); }
.service-arrow i{ width:20px; height:20px; }

.service-row::before{
  content:''; position:absolute; left:0; bottom:-1px; height:1px; width:0; background: var(--red);
  transition: width .4s var(--ease);
}
.service-row:hover, .service-row:focus-visible{ padding-left: 14px; outline:none; }
.service-row:hover .service-num, .service-row:focus-visible .service-num{ color: var(--red); }
.service-row:hover .service-name, .service-row:focus-visible .service-name{ transform: translateX(10px); }
.service-row:hover .service-desc, .service-row:focus-visible .service-desc{ opacity:1; transform: translateY(0); }
.service-row:hover .service-arrow, .service-row:focus-visible .service-arrow{ transform: translateX(6px); color: var(--red); }
.service-row:hover::before, .service-row:focus-visible::before{ width:100%; }

@media (max-width: 720px){
  .service-row{ grid-template-columns: 40px 1fr 30px; }
  .service-desc{ grid-column: 1 / -1; opacity:1; transform:none; height:0; overflow:hidden; padding-top:0; }
  .service-row.open .service-desc{ height:auto; padding-top: 12px; }
}

/* ==========================================================================
   FEATURED WORK
   ========================================================================== */
.project-list{ margin-top: 60px; max-width: var(--container); margin-left:auto; margin-right:auto; padding: 0 32px; }
.project-row{
  padding: 60px 0; border-top: 1px solid var(--navy-line); position:relative;
}
.project-row:last-child{ border-bottom: 1px solid var(--navy-line); }
.project-num{ font-size: 13px; color: var(--white-faint); font-family: var(--font-display); }
.project-name{ font-size: clamp(1.8rem, 4vw, 3rem); margin: 14px 0 10px; }
.project-tag{ color: var(--white-soft); font-size: 14px; }
.project-line{
  display:block; height:1px; width:0; background: var(--red); margin-top: 24px;
}

/* ==========================================================================
   PROCESS
   ========================================================================== */
.process-track-wrap{ margin-top: 60px; overflow: hidden; }
.process-track{ display:flex; gap: 40px; width: max-content; padding: 0 32px; }
.process-step{
  width: min(78vw, 360px); flex-shrink:0; border: 1px solid var(--navy-line); padding: 40px 30px;
  border-radius: 2px; background: rgba(255,255,255,0.015);
}
.process-num{ color: var(--red); font-family: var(--font-display); font-size: 14px; }
.process-step h3{ font-size: 1.6rem; margin: 18px 0 12px; }
.process-step p{ color: var(--white-soft); font-size: 14px; line-height:1.6; }

@media (max-width: 900px){
  .process-track{ flex-direction: column; width: 100%; padding: 0; }
  .process-step{ width: 100%; }
}

/* ==========================================================================
   TECHNOLOGY
   ========================================================================== */
.tech-list{
  margin-top: 50px; display:flex; flex-wrap:wrap; gap: 14px 40px;
}
.tech-list li{
  font-family: var(--font-display); font-size: clamp(1.4rem, 3.4vw, 2.4rem);
  color: var(--white-faint); position:relative; cursor:default;
  transition: color .3s var(--ease), transform .3s var(--ease);
}
.tech-list li::after{
  content:''; position:absolute; left:0; bottom:-4px; width:0; height:1px; background: var(--red);
  transition: width .3s var(--ease);
}
.tech-list li:hover{ color: var(--red); transform: scale(1.04); }
.tech-list li:hover::after{ width: 100%; }

/* ==========================================================================
   WHY YUGTEE
   ========================================================================== */
.why-words{ display:flex; flex-direction:column; gap: 6px; align-items:center; }
.why-word{
  font-family: var(--font-display); font-size: clamp(2.6rem, 9vw, 7rem); line-height: 1;
}

/* ==========================================================================
   STATS
   ========================================================================== */
.stats-grid{
  display:grid; grid-template-columns: repeat(4, 1fr); gap: 40px; text-align:center;
}
.stat{ display:flex; flex-direction:column; gap: 10px; }
.stat-num, .stat-num-static{
  font-family: var(--font-display); font-size: clamp(2.4rem, 5vw, 3.6rem); color: var(--red);
}
.stat-label{ font-size: 13px; letter-spacing:.04em; color: var(--white-soft); }
@media (max-width: 720px){ .stats-grid{ grid-template-columns: repeat(2,1fr); } }

/* ==========================================================================
   CTA
   ========================================================================== */
.cta-inner{ text-align:center; display:flex; flex-direction:column; align-items:center; gap: 26px; }
.cta-title{ font-size: clamp(2.4rem, 7vw, 5rem); line-height: 1.05; }
.cta-title .line{ text-align:center; }

/* ==========================================================================
   CONTACT / FORM
   ========================================================================== */
#contact-form{ margin-top: 50px; max-width: 720px; }
.form-row{ display:grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.field{ margin-bottom: 22px; display:flex; flex-direction:column; gap:8px; }
.field label{ font-size: 12px; letter-spacing:.05em; color: var(--white-soft); }
.field input, .field select, .field textarea{
  background: transparent; border: 1px solid var(--navy-line); color: var(--white);
  padding: 14px 16px; border-radius: 2px; font-family: var(--font-body); font-size: 14px;
  transition: border-color .25s var(--ease);
}
.field select{ appearance: none; }
.field input:focus, .field select:focus, .field textarea:focus{
  outline: none; border-color: var(--red);
}
.field.error input, .field.error select, .field.error textarea{ border-color: var(--red); }
.field-error{ font-size: 12px; color: var(--red); min-height: 14px; display:block; }

#submit-btn{ border:none; cursor:pointer; font-family: inherit; margin-top: 10px; }
#submit-btn.loading .btn-label::after{ content:'...'; }
#submit-btn:disabled{ opacity:.7; cursor: default; }
#form-status{ margin-top: 16px; font-size: 13px; color: var(--white-soft); min-height: 16px; }
#form-status.success{ color: var(--red); }

@media (max-width: 640px){ .form-row{ grid-template-columns: 1fr; } }

/* ==========================================================================
   FOOTER
   ========================================================================== */
#site-footer{ position:relative; z-index:5; padding: 90px 32px 30px; }
.footer-line{ height:1px; background: var(--red); opacity:.5; max-width: var(--container); margin: 0 auto 60px; }
.footer-inner{
  max-width: var(--container); margin: 0 auto; display:flex; flex-wrap:wrap;
  justify-content:space-between; gap: 40px; align-items:flex-start;
}
.footer-logo{ font-family: var(--font-display); font-size: 2.2rem; display:block; margin-bottom:10px; }
.footer-brand p{ color: var(--white-soft); font-size: 14px; }
.footer-links{ display:flex; flex-direction:column; gap: 12px; }
.footer-links a{ color: var(--white-soft); font-size: 14px; transition: color .25s; }
.footer-links a:hover{ color: var(--white); }
.footer-social{ display:flex; gap: 16px; }
.footer-social a{ width:38px; height:38px; border:1px solid var(--navy-line); border-radius:50%; display:flex; align-items:center; justify-content:center; transition: border-color .25s; }
.footer-social a:hover{ border-color: var(--red); }
.footer-social i{ width:16px; height:16px; }
.footer-bottom{ text-align:center; color: var(--white-faint); font-size: 12px; margin-top: 70px; }

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce){
  *{ animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal{ transform: none !important; }
}

/* focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible{
  outline: 2px solid var(--red); outline-offset: 2px;
}
