/* ============================================================
   OBSILINE — style.css
   Design language derived from the logo:
   emerald = structure · gold = momentum (only moves upward)
   navy = ground · geometry = the system
   ============================================================ */

/* ----------------------------------------------------------
   0. DESIGN TOKENS
---------------------------------------------------------- */
:root {
  /* Brand */
  --navy:        #0F172A;
  --navy-800:    #131c31;
  --navy-700:    #1b2740;
  --emerald:     #10B981;
  --emerald-lt:  #34D399;
  --gold:        #D4AF37;
  --gold-lt:     #F0D27A;
  --white:       #FFFFFF;
  --gray:        #F8FAFC;

  /* Semantic surfaces */
  --bg:          var(--navy);
  --bg-alt:      #0c1424;
  --surface:     rgba(255, 255, 255, 0.03);
  --surface-2:   rgba(255, 255, 255, 0.05);
  --line:        rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);

  /* Text */
  --text:        #EAF0F7;
  --text-soft:   #9fb0c6;
  --text-dim:    #6b7c95;

  /* Effects */
  --glass:       rgba(255, 255, 255, 0.045);
  --glass-brd:   rgba(255, 255, 255, 0.10);
  --shadow-sm:   0 2px 10px rgba(0,0,0,.25);
  --shadow-md:   0 20px 50px -20px rgba(0,0,0,.6);
  --shadow-glow: 0 0 60px -12px rgba(16,185,129,.45);
  --shadow-gold: 0 0 50px -14px rgba(212,175,55,.5);

  /* Type */
  --f-display: 'Space Grotesk', system-ui, sans-serif;
  --f-body:    'Manrope', system-ui, sans-serif;
  --f-mono:    'Inter', system-ui, sans-serif;

  /* Fluid scale */
  --step--1: clamp(0.82rem, 0.78rem + 0.2vw, 0.92rem);
  --step-0:  clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --step-1:  clamp(1.2rem, 1.1rem + 0.5vw, 1.5rem);
  --step-2:  clamp(1.6rem, 1.3rem + 1.5vw, 2.4rem);
  --step-3:  clamp(2.2rem, 1.6rem + 3vw, 4rem);
  --step-4:  clamp(3rem, 1.8rem + 6vw, 7rem);

  /* Rhythm */
  --container: 1240px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-y: clamp(6rem, 12vh, 11rem);
  --radius: 22px;
  --radius-sm: 14px;
  --radius-lg: 32px;

  --ease: cubic-bezier(0.4, 0, 0.1, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ----------------------------------------------------------
   1. RESET / BASE
---------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

body {
  font-family: var(--f-body);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Ambient gradient wash tied to brand */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(120% 90% at 80% -10%, rgba(16,185,129,.10), transparent 55%),
    radial-gradient(90% 80% at 0% 100%, rgba(212,175,55,.07), transparent 55%),
    var(--bg);
}

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }
::selection { background: var(--emerald); color: var(--navy); }

.container {
  width: min(100% - (var(--gutter) * 2), var(--container));
  margin-inline: auto;
}

.section { padding-block: var(--section-y); position: relative; }

/* Focus visibility (a11y) */
:focus-visible {
  outline: 2px solid var(--gold-lt);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ----------------------------------------------------------
   2. TYPOGRAPHY PRIMITIVES
---------------------------------------------------------- */
.h2 {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: var(--step-3);
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: 18ch;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--f-mono);
  font-size: var(--step--1);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 1.4rem;
}
.eyebrow__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 12px var(--gold);
}
.section-head { margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.section-head--center { text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--center .h2 { margin-inline: auto; }

/* Split-text helpers (populated by JS) */
.split-lines .s-line { display: block; overflow: hidden; }
.split-lines .s-line > span { display: block; will-change: transform; }
.word-wrap { display: inline-block; overflow: hidden; vertical-align: top; }
.word-in { display: inline-block; will-change: transform; }

/* ----------------------------------------------------------
   3. BUTTONS
---------------------------------------------------------- */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: 1rem 1.7rem;
  border-radius: 100px;
  font-family: var(--f-body);
  font-weight: 600;
  font-size: var(--step-0);
  letter-spacing: -0.01em;
  color: var(--btn-fg);
  background: var(--btn-bg);
  overflow: hidden;
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out);
  will-change: transform;
}
.btn > span { position: relative; z-index: 2; }
.btn::after { /* ripple / fill */
  content: "";
  position: absolute; inset: 0;
  background: currentColor;
  opacity: 0;
  transform: scale(0);
  border-radius: inherit;
  transition: transform .5s var(--ease-out), opacity .5s var(--ease-out);
  z-index: 1;
}
.btn--sm { padding: .65rem 1.15rem; font-size: var(--step--1); }
.btn--lg { padding: 1.25rem 2.4rem; font-size: var(--step-1); }

.btn--emerald {
  --btn-bg: var(--emerald);
  --btn-fg: #04241a;
  box-shadow: var(--shadow-glow);
}
.btn--emerald:hover { box-shadow: 0 0 70px -8px rgba(16,185,129,.7); transform: translateY(-2px); }

.btn--gold {
  --btn-bg: linear-gradient(135deg, var(--gold-lt), var(--gold));
  --btn-fg: #2a2000;
  box-shadow: var(--shadow-gold);
}
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 0 66px -8px rgba(212,175,55,.75); }

.btn--ghost {
  --btn-fg: var(--text);
  border: 1px solid var(--line-strong);
  background: var(--glass);
  backdrop-filter: blur(10px);
}
.btn--ghost:hover { border-color: var(--emerald); box-shadow: var(--shadow-glow); transform: translateY(-2px); }
.btn--ghost::after { background: var(--emerald); }
.btn--ghost:hover > span { color: #04241a; }
.btn--ghost:hover::after { opacity: 1; transform: scale(1); }

/* ----------------------------------------------------------
   4. CUSTOM CURSOR
---------------------------------------------------------- */
.cursor { position: fixed; inset: 0; pointer-events: none; z-index: 9999; mix-blend-mode: difference; }
.cursor__dot, .cursor__ring {
  position: absolute; top: 0; left: 0;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  will-change: transform;
}
.cursor__dot { width: 7px; height: 7px; background: var(--white); }
.cursor__ring {
  width: 40px; height: 40px;
  border: 1.5px solid var(--white);
  transition: width .3s var(--ease), height .3s var(--ease), background .3s;
}
.cursor.is-hover .cursor__ring { width: 64px; height: 64px; background: rgba(255,255,255,.08); }
.cursor.is-down .cursor__ring { width: 30px; height: 30px; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* Scroll progress */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--emerald), var(--gold));
  z-index: 9998;
  box-shadow: 0 0 12px rgba(16,185,129,.6);
}

/* ----------------------------------------------------------
   5. PRELOADER
---------------------------------------------------------- */
.preloader {
  position: fixed; inset: 0; z-index: 10000;
  display: grid; place-content: center; justify-items: center;
  gap: 2rem;
  background: var(--bg);
}
.preloader__mark { width: 120px; }
.preloader__mark img {
  width: 100%; height: auto;
  animation: plPop 1.2s var(--ease-out) forwards, plFloat 2.4s ease-in-out 1.2s infinite;
  opacity: 0;
}
@keyframes plPop {
  0%   { opacity: 0; transform: scale(.7) translateY(10px); filter: blur(6px); }
  100% { opacity: 1; transform: scale(1) translateY(0); filter: blur(0); }
}
@keyframes plFloat {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-8px); }
}
.preloader__count {
  font-family: var(--f-mono);
  font-size: var(--step-1);
  color: var(--text-soft);
  letter-spacing: .05em;
}
.preloader__count i { color: var(--gold); font-style: normal; }
.preloader.is-done { pointer-events: none; }

/* ----------------------------------------------------------
   6. NAVIGATION
---------------------------------------------------------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  padding: 1.1rem 0;
  transition: padding .4s var(--ease), background .4s var(--ease), border-color .4s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  padding: .6rem 0;
  background: rgba(15,23,42,.72);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav__inner {
  width: min(100% - (var(--gutter) * 2), var(--container));
  margin-inline: auto;
  display: flex; align-items: center; gap: 1.5rem;
}
.nav__brand { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--f-display); font-weight: 600; font-size: 1.2rem; }
.nav__logo { width: 34px; height: 34px; object-fit: contain; transition: transform .5s var(--ease-out); }
.nav__brand:hover .nav__logo { transform: translateY(-3px) scale(1.04); }
.nav__name { letter-spacing: -0.02em; }

.nav__links { margin-left: auto; display: flex; gap: 2rem; }
.nav__links a {
  position: relative;
  font-size: var(--step--1);
  color: var(--text-soft);
  transition: color .3s;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 100%; height: 1.5px; background: var(--gold);
  transform: scaleX(0); transform-origin: left;
  transition: transform .4s var(--ease-out);
}
.nav__links a:hover { color: var(--text); }
.nav__links a:hover::after { transform: scaleX(1); }
.nav__cta { margin-left: 0; }

.nav__burger {
  display: none; width: 44px; height: 44px; margin-left: auto;
  flex-direction: column; justify-content: center; align-items: center; gap: 6px;
}
.nav__burger span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .4s var(--ease), opacity .3s; }
.nav__burger.is-open span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 899;
  background: rgba(12,20,36,.96);
  backdrop-filter: blur(20px);
  display: grid; place-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity .5s var(--ease), visibility .5s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; }
.mobile-menu__links { display: flex; flex-direction: column; gap: 1.5rem; text-align: center; }
.mobile-menu__links a { font-family: var(--f-display); font-size: var(--step-2); color: var(--text); }
.mobile-menu__links .btn { align-self: center; margin-top: 1rem; }

@media (max-width: 880px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; }
}

/* ----------------------------------------------------------
   7. HERO
---------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}
.hero__canvas { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; }
.hero__grid {
  position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(80% 70% at 50% 45%, #000 20%, transparent 75%);
  opacity: .5;
}

/* assembling logo behind content */
.hero__mark {
  position: absolute;
  top: 50%; left: 50%;
  width: min(70vw, 640px);
  transform: translate(-50%, -52%);
  z-index: -1;
  opacity: .9;
  will-change: transform;
}
.hero__mark img { width: 100%; height: auto; will-change: transform, opacity; }

.hero__content { position: relative; text-align: center; z-index: 2; }
.hero__eyebrow {
  font-family: var(--f-mono);
  font-size: var(--step--1);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 1.6rem;
}
.hero__title {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: var(--step-4);
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin-bottom: 1.8rem;
}
.hero__title .line { display: block; overflow: hidden; }
.hero__title .line > * { display: inline-block; will-change: transform; }
.hero__title em {
  font-style: normal;
  background: linear-gradient(120deg, var(--emerald-lt), var(--gold-lt));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero__sub {
  max-width: 48ch;
  margin: 0 auto 2.6rem;
  color: var(--text-soft);
  font-size: var(--step-1);
}
.hero__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.hero__scroll {
  position: absolute; bottom: 2.2rem; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .6rem;
  color: var(--text-dim);
  font-family: var(--f-mono); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase;
}
.hero__scroll-line { width: 1px; height: 42px; background: linear-gradient(var(--gold), transparent); position: relative; overflow: hidden; }
.hero__scroll-line::after {
  content: ""; position: absolute; top: -50%; left: 0; width: 100%; height: 50%;
  background: var(--gold);
  animation: scrollDot 2s var(--ease-in-out) infinite;
}
@keyframes scrollDot { 0%{transform:translateY(-100%)} 60%,100%{transform:translateY(300%)} }

/* ----------------------------------------------------------
   8. ABOUT
---------------------------------------------------------- */
.about__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.about__title { max-width: 20ch; margin: .4rem 0 1.6rem; }
.about__body { color: var(--text-soft); max-width: 46ch; font-size: var(--step-1); }
.about__philosophy { margin-top: 2.2rem; display: grid; gap: 1rem; }
.about__philosophy li { display: flex; align-items: baseline; gap: .9rem; color: var(--text); }
.dash { width: 22px; height: 2px; background: var(--emerald); flex: none; translate: 0 -5px; }

.about__illo { aspect-ratio: 1; display: grid; place-items: center; }
.about__illo svg { width: 100%; overflow: visible; }

/* Counters */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: clamp(4rem, 8vw, 7rem);
  padding-top: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--line);
}
.stat__num {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: var(--step-3);
  line-height: 1;
  letter-spacing: -0.03em;
  background: linear-gradient(120deg, var(--white), var(--emerald-lt));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.stat__num--word {
  font-size: clamp(1.5rem, 1rem + 2vw, 2.6rem);
  line-height: 1.05;
}
.stat__label { color: var(--text-dim); font-size: var(--step--1); margin-top: .5rem; text-transform: uppercase; letter-spacing: .1em; }

/* Timeline */
.timeline {
  position: relative;
  margin-top: clamp(4rem, 8vw, 7rem);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.timeline__track {
  position: absolute; top: 7px; left: 0; height: 2px; width: 100%;
  background: var(--line);
}
.timeline__track::after {
  content: ""; position: absolute; inset: 0; width: var(--tl, 0%);
  background: linear-gradient(90deg, var(--emerald), var(--gold));
  transition: width .1s linear;
}
.timeline__item { position: relative; padding-top: 2.4rem; }
.timeline__item::before {
  content: ""; position: absolute; top: 2px; left: 0;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--navy); border: 2px solid var(--emerald);
}
.timeline__year { font-family: var(--f-mono); font-size: var(--step--1); color: var(--gold); letter-spacing: .1em; }
.timeline__item h3 { font-family: var(--f-display); font-size: var(--step-1); margin: .4rem 0 .5rem; }
.timeline__item p { color: var(--text-soft); font-size: var(--step--1); }

@media (max-width: 880px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__illo { max-width: 340px; margin-inline: auto; }
  .stats-row { grid-template-columns: repeat(2, 1fr); gap: 2rem 1rem; }
  .timeline { grid-template-columns: 1fr 1fr; }
  .timeline__track { display: none; }
}
@media (max-width: 520px) {
  .timeline { grid-template-columns: 1fr; }
}

/* ----------------------------------------------------------
   9. SERVICES
---------------------------------------------------------- */
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.s-card {
  position: relative;
  padding: 2rem 1.9rem 2.1rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: border-color .5s var(--ease), background .5s var(--ease);
  will-change: transform;
}
.s-card:hover { border-color: var(--line-strong); background: var(--surface-2); }
.s-card__glow {
  position: absolute; width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(16,185,129,.28), transparent 70%);
  filter: blur(10px);
  left: var(--mx, 50%); top: var(--my, 0%);
  translate: -50% -50%;
  opacity: 0; transition: opacity .5s var(--ease);
  pointer-events: none;
}
.s-card:hover .s-card__glow { opacity: 1; }
.s-card__num {
  font-family: var(--f-mono); font-size: var(--step--1);
  color: var(--text-dim); letter-spacing: .1em;
  transform: translateZ(20px);
}
.s-card__icon {
  width: 52px; height: 52px; margin: 1.4rem 0 1.5rem;
  transform: translateZ(30px);
}
.s-card h3 {
  font-family: var(--f-display); font-weight: 600;
  font-size: var(--step-1); margin-bottom: .5rem;
  letter-spacing: -0.01em;
  transform: translateZ(24px);
}
.s-card p { color: var(--text-soft); font-size: var(--step--1); transform: translateZ(14px); }

@media (max-width: 900px) { .services__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .services__grid { grid-template-columns: 1fr; } }

/* ----------------------------------------------------------
   10. WHY OBSILINE (comparison)
---------------------------------------------------------- */
.why__compare {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: clamp(1rem, 3vw, 2.5rem);
  align-items: stretch;
}
.why__col {
  padding: 2.4rem 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
}
.why__col h3 {
  font-family: var(--f-display); font-size: var(--step-2);
  margin-bottom: 1.6rem; letter-spacing: -0.02em;
}
.why__col ul { display: grid; gap: 1.1rem; }
.why__col li { display: flex; align-items: flex-start; gap: .9rem; color: var(--text-soft); }
.why__col--old { opacity: .78; }
.why__col--old h3 { color: var(--text-soft); }

.why__col--new { position: relative; border-color: rgba(16,185,129,.35); background: linear-gradient(180deg, rgba(16,185,129,.06), transparent); overflow: hidden; }
.why__col--new li { color: var(--text); }
.why__col-glow {
  position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
  background: radial-gradient(120% 80% at 50% 0%, rgba(16,185,129,.18), transparent 60%);
}

/* tick / cross glyphs (pure CSS) */
.check, .x { width: 20px; height: 20px; flex: none; border-radius: 50%; position: relative; translate: 0 2px; }
.check { background: rgba(16,185,129,.14); }
.check::after { content: ""; position: absolute; left: 6px; top: 4px; width: 5px; height: 9px; border: solid var(--emerald); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.x { background: rgba(255,255,255,.06); }
.x::before, .x::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.6px; background: var(--text-dim); }
.x::before { transform: translate(-50%,-50%) rotate(45deg); }
.x::after  { transform: translate(-50%,-50%) rotate(-45deg); }

.why__divider {
  display: grid; place-items: center;
  position: relative;
}
.why__divider::before { content: ""; position: absolute; top: 0; bottom: 0; width: 1px; background: linear-gradient(var(--gold), transparent, var(--emerald)); }
.why__divider span {
  font-family: var(--f-mono); font-size: var(--step--1);
  color: var(--gold); background: var(--bg);
  padding: .5rem; border: 1px solid var(--line); border-radius: 50%;
  width: 46px; height: 46px; display: grid; place-items: center;
  position: relative; z-index: 1;
}
@media (max-width: 820px) {
  .why__compare { grid-template-columns: 1fr; }
  .why__divider { padding: .5rem 0; }
  .why__divider::before { top: auto; bottom: auto; left: 0; right: 0; width: auto; height: 1px; }
}

/* ----------------------------------------------------------
   11. PROCESS (responsive grid + trajectory line)
---------------------------------------------------------- */
.process { position: relative; background: var(--bg-alt); }
.process__head { margin-bottom: clamp(2.5rem, 6vw, 4rem); }
.process__head .eyebrow { margin-bottom: 1rem; }

.process__grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.p-step { z-index: 1; }

.p-step {
  position: relative;
  padding: 2.2rem 1.9rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 1rem;
  overflow: hidden;
  transition: border-color .5s var(--ease), transform .5s var(--ease-out), background .5s var(--ease);
  will-change: transform;
}
.p-step::before {
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: var(--fill, 0%);
  background: linear-gradient(90deg, var(--emerald), var(--gold));
  transition: width .6s var(--ease-out);
}
/* ambient glow that follows the card on hover */
.p-step::after {
  content: ""; position: absolute; width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(16,185,129,.22), transparent 70%);
  top: -60px; right: -60px; opacity: 0; transition: opacity .5s var(--ease);
  pointer-events: none;
}
.p-step:hover {
  border-color: var(--line-strong);
  background: var(--surface-2);
  transform: translateY(-6px);
}
.p-step:hover::before { width: 100%; }
.p-step:hover::after { opacity: 1; }

.p-step__idx {
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(2.6rem, 6vw, 3.6rem); line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px var(--line-strong);
  position: relative; z-index: 1;
  transition: -webkit-text-stroke-color .5s var(--ease), transform .5s var(--ease-out);
}
.p-step:hover .p-step__idx { -webkit-text-stroke-color: var(--emerald); transform: translateY(-2px); }
.p-step__body h3 { font-family: var(--f-display); font-size: var(--step-2); margin-bottom: .5rem; letter-spacing: -0.02em; }
.p-step__body p { color: var(--text-soft); font-size: var(--step--1); }

@media (max-width: 860px) {
  .process__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .process__grid { grid-template-columns: 1fr; }
}

/* ----------------------------------------------------------
   12. WORK
---------------------------------------------------------- */
.work__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.25rem, 3vw, 2rem); }
.w-card {
  border-radius: var(--radius-lg);
  overflow: hidden; border: 1px solid var(--line);
  background: var(--surface);
  transition: transform .6s var(--ease-out), border-color .5s;
  will-change: transform;
}
.w-card:hover { border-color: var(--line-strong); transform: translateY(-6px); }
.w-card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.w-card__mock {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 120% at 20% 10%, rgba(16,185,129,.35), transparent 55%),
    radial-gradient(120% 120% at 90% 90%, rgba(212,175,55,.30), transparent 55%),
    var(--navy-700);
  transition: transform .8s var(--ease-out);
  will-change: transform;
}
.w-card:hover .w-card__mock { transform: scale(1.08); }
/* per-project color themes */
.w-card__media[data-work="1"] .w-card__mock { background: radial-gradient(120% 120% at 20% 10%, rgba(16,185,129,.40), transparent 55%), radial-gradient(120% 120% at 90% 90%, rgba(37,99,235,.30), transparent 55%), var(--navy-700); }
.w-card__media[data-work="2"] .w-card__mock { background: radial-gradient(120% 120% at 20% 10%, rgba(52,211,153,.38), transparent 55%), radial-gradient(120% 120% at 90% 90%, rgba(16,185,129,.28), transparent 55%), var(--navy-700); }
.w-card__media[data-work="3"] .w-card__mock { background: radial-gradient(120% 120% at 20% 10%, rgba(212,175,55,.38), transparent 55%), radial-gradient(120% 120% at 90% 90%, rgba(184,145,43,.30), transparent 55%), var(--navy-700); }
.w-card__media[data-work="4"] .w-card__mock { background: radial-gradient(120% 120% at 20% 10%, rgba(240,210,122,.40), transparent 55%), radial-gradient(120% 120% at 90% 90%, rgba(16,185,129,.26), transparent 55%), var(--navy-700); }
.w-card__media[data-work="5"] .w-card__mock { background: radial-gradient(120% 120% at 20% 10%, rgba(16,185,129,.36), transparent 55%), radial-gradient(120% 120% at 90% 90%, rgba(212,175,55,.34), transparent 55%), var(--navy-700); }
/* floating geometric mockup drawn with pseudo elements */
.w-card__media::before, .w-card__media::after {
  content: ""; position: absolute; z-index: 1; border-radius: 12px;
  border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(6px);
  background: rgba(255,255,255,.05);
  transition: transform .8s var(--ease-out);
}
.w-card__media::before { width: 46%; height: 60%; left: 12%; top: 18%; box-shadow: var(--shadow-md); }
.w-card__media::after  { width: 34%; height: 44%; right: 12%; bottom: 14%; }
.w-card:hover .w-card__media::before { transform: translateY(-10px) rotate(-2deg); }
.w-card:hover .w-card__media::after  { transform: translateY(-16px) rotate(2deg); }
.w-card__meta { padding: 1.8rem 1.9rem 2rem; }
.w-card__tag { font-family: var(--f-mono); font-size: var(--step--1); letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.w-card__meta h3 { font-family: var(--f-display); font-size: var(--step-2); margin: .6rem 0 .5rem; letter-spacing: -0.02em; }
.w-card__meta p { color: var(--text-soft); }
@media (max-width: 760px) { .work__grid { grid-template-columns: 1fr; } }

/* ----------------------------------------------------------
   13. TECH ORBIT
---------------------------------------------------------- */
.tech__inner { display: flex; flex-direction: column; align-items: center; }
.orbit {
  position: relative;
  width: min(92vw, 680px); aspect-ratio: 1;
  display: grid; place-items: center;
  margin-top: 2rem;
}
.orbit__core { width: 100px; z-index: 3; filter: drop-shadow(0 0 30px rgba(16,185,129,.5)); }
.orbit__core img { width: 100%; height: auto; }
.orbit__ring {
  position: absolute; border: 1px solid var(--line); border-radius: 50%;
  inset: 50% auto auto 50%; translate: -50% -50%;
}
.orbit__ring--1 { width: 52%; aspect-ratio: 1; }
.orbit__ring--2 { width: 76%; aspect-ratio: 1; }
.orbit__ring--3 { width: 100%; aspect-ratio: 1; }
.orbit__chip {
  position: absolute; top: 50%; left: 50%;
  font-family: var(--f-mono); font-size: .74rem; letter-spacing: .02em;
  padding: .45rem .8rem; border-radius: 100px;
  background: var(--glass); border: 1px solid var(--glass-brd);
  backdrop-filter: blur(10px); color: var(--text);
  white-space: nowrap; transform: translate(-50%, -50%);
  box-shadow: var(--shadow-sm);
  will-change: transform;
}
.orbit__chip[data-accent="gold"] { border-color: rgba(212,175,55,.4); color: var(--gold-lt); }
.orbit__chip[data-accent="emerald"] { border-color: rgba(16,185,129,.4); color: var(--emerald-lt); }
@media (max-width: 560px) { .orbit__chip { font-size: .6rem; padding: .35rem .6rem; } .orbit__core { width: 74px; } }
@media (prefers-reduced-motion: reduce) { .orbit__chip { transition: none; } }

/* ----------------------------------------------------------
   14. TESTIMONIALS MARQUEE
---------------------------------------------------------- */
.testi { overflow: hidden; }
.marquee {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  perspective: 1400px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__row { display: flex; gap: 1.5rem; width: max-content; will-change: transform; transform-style: preserve-3d; }
.t-card {
  flex: 0 0 min(80vw, 380px);
  padding: 2rem 1.9rem;
  border-radius: var(--radius);
  background: var(--glass); border: 1px solid var(--glass-brd);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-md);
  transition: transform .5s var(--ease-out);
}
.t-card:hover { transform: translateZ(40px) rotateY(-4deg); }
.t-card blockquote { font-size: var(--step-1); line-height: 1.5; letter-spacing: -0.01em; }
.t-card blockquote::before { content: "\201C"; color: var(--gold); font-family: var(--f-display); font-size: 2rem; line-height: 0; vertical-align: -0.3em; margin-right: .1em; }
.t-card figcaption { margin-top: 1.6rem; display: flex; flex-direction: column; }
.t-card figcaption strong { font-family: var(--f-display); font-weight: 600; }
.t-card figcaption span { color: var(--text-dim); font-size: var(--step--1); }

/* client name-wall variant */
.t-card--client {
  display: flex; flex-direction: column; justify-content: center; gap: .6rem;
  min-height: 150px;
}
.t-card--client .t-card__name {
  font-family: var(--f-display); font-weight: 600; font-size: var(--step-1);
  letter-spacing: -0.01em; line-height: 1.15;
}
.t-card--client .t-card__sector {
  font-family: var(--f-mono); font-size: var(--step--1);
  letter-spacing: .1em; text-transform: uppercase; color: var(--gold);
}

/* ----------------------------------------------------------
   15. METRICS
---------------------------------------------------------- */
.metrics__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.m-card {
  padding: 2.4rem 2rem; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
  display: flex; flex-direction: column; align-items: center; gap: 1.4rem; text-align: center;
}
.m-card--wide { grid-column: 1 / -1; }
.m-card p { color: var(--text-soft); font-size: var(--step--1); }

.m-ring { position: relative; width: 150px; height: 150px; }
.m-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.m-ring__bg { fill: none; stroke: var(--line); stroke-width: 8; }
.m-ring__fg {
  fill: none; stroke: var(--emerald);
  stroke-width: 8; stroke-linecap: round;
  stroke-dasharray: 327; stroke-dashoffset: 327;
  transition: stroke-dashoffset 1.4s var(--ease-out);
}
.m-ring[data-done] .m-ring__fg { stroke: var(--gold); }
.m-ring__val {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--f-display); font-weight: 600; font-size: var(--step-2);
}
.m-ring__val--sm {
  font-size: var(--step-0); line-height: 1.15; text-align: center;
  letter-spacing: -0.01em;
}

/* growth chart card */
.m-card--wide { align-items: stretch; text-align: left; padding: clamp(1.8rem, 4vw, 2.6rem); }
.growth {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center; width: 100%;
}
.growth__title { font-family: var(--f-display); font-size: var(--step-2); letter-spacing: -0.02em; margin-bottom: .8rem; }
.growth__text p { color: var(--text-soft); font-size: var(--step-0); }
.growth__legend { display: flex; gap: 1.4rem; margin-top: 1.4rem; }
.growth__legend span { display: inline-flex; align-items: center; gap: .5rem; font-size: var(--step--1); color: var(--text-dim); }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot--emerald { background: var(--emerald-lt); }
.dot--gold { background: var(--gold-lt); }

.growth__chart {
  display: flex; align-items: flex-end; gap: clamp(.6rem, 2vw, 1.1rem);
  height: 210px;
}
.bar { flex: 1; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: .7rem; }
.bar span {
  width: 100%; height: 0; border-radius: 8px 8px 0 0;
  background: linear-gradient(180deg, var(--emerald-lt), rgba(16,185,129,.22));
  transition: height 1.1s var(--ease-out);
  position: relative;
}
.bar span::after { /* subtle top glow cap */
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; border-radius: 8px 8px 0 0;
  background: var(--emerald-lt); box-shadow: 0 0 12px rgba(16,185,129,.7); opacity: .9;
}
.bar--peak span { background: linear-gradient(180deg, var(--gold-lt), rgba(212,175,55,.28)); }
.bar--peak span::after { background: var(--gold-lt); box-shadow: 0 0 14px rgba(212,175,55,.8); }
.bar em {
  font-family: var(--f-mono); font-style: normal;
  font-size: .68rem; letter-spacing: .05em; text-transform: uppercase; color: var(--text-dim);
  white-space: nowrap;
}
.bar--peak em { color: var(--gold); }
.growth__chart.is-in .bar span { height: var(--h); }

@media (max-width: 820px) { .metrics__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px) { .growth { grid-template-columns: 1fr; } .growth__chart { height: 170px; } }
@media (max-width: 560px) { .metrics__grid { grid-template-columns: 1fr; } .bar em { font-size: .6rem; } }

/* ----------------------------------------------------------
   16. CTA
---------------------------------------------------------- */
.cta { position: relative; overflow: hidden; text-align: center; }
.cta__blobs { position: absolute; inset: 0; z-index: 0; filter: blur(60px); pointer-events: none; }
.blob { position: absolute; border-radius: 50%; opacity: .5; mix-blend-mode: screen; will-change: transform, border-radius; }
.blob--1 { width: 40vw; height: 40vw; left: 10%; top: 10%; background: radial-gradient(circle, var(--emerald), transparent 70%); animation: blob 14s var(--ease) infinite; }
.blob--2 { width: 34vw; height: 34vw; right: 8%; top: 30%; background: radial-gradient(circle, var(--gold), transparent 70%); animation: blob 18s var(--ease) infinite reverse; }
.blob--3 { width: 30vw; height: 30vw; left: 40%; bottom: 0%; background: radial-gradient(circle, #2563eb55, transparent 70%); animation: blob 16s var(--ease) infinite; }
@keyframes blob {
  0%,100% { transform: translate(0,0) scale(1); border-radius: 50% 50% 50% 50%; }
  33% { transform: translate(6%, -8%) scale(1.12); border-radius: 60% 40% 55% 45%; }
  66% { transform: translate(-6%, 6%) scale(.92); border-radius: 42% 58% 48% 52%; }
}
.cta__inner { position: relative; z-index: 1; }
.cta__title {
  font-family: var(--f-display); font-weight: 600;
  font-size: var(--step-4); line-height: 1; letter-spacing: -0.03em;
  max-width: 16ch; margin: 0 auto 1.6rem;
}
.cta__sub { color: var(--text-soft); font-size: var(--step-1); max-width: 44ch; margin: 0 auto 2.4rem; }

/* ----------------------------------------------------------
   17. FOOTER
---------------------------------------------------------- */
.footer { border-top: 1px solid var(--line); background: var(--bg-alt); padding-top: clamp(4rem, 8vw, 6rem); }
.footer__grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 2.5rem;
  padding-bottom: 3.5rem;
}
.footer__logo { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--f-display); font-size: 1.3rem; margin-bottom: 1.2rem; }
.footer__logo img { width: 40px; height: 40px; object-fit: contain; }
.footer__tag { color: var(--text-soft); max-width: 32ch; }
.footer__col h4, .footer__news h4 { font-family: var(--f-display); font-size: var(--step-0); margin-bottom: 1.2rem; }
.footer__col { display: flex; flex-direction: column; gap: .8rem; }
.footer__col a { color: var(--text-soft); transition: color .3s, transform .3s var(--ease-out); width: fit-content; }
.footer__col a:hover { color: var(--gold-lt); transform: translateX(4px); }
.footer__news p { color: var(--text-soft); font-size: var(--step--1); margin-bottom: 1.2rem; }

.news-form { display: flex; gap: .6rem; }
.news-form input {
  flex: 1; padding: .8rem 1rem; border-radius: 100px;
  background: var(--surface); border: 1px solid var(--line);
  color: var(--text); font: inherit; font-size: var(--step--1);
  transition: border-color .3s;
}
.news-form input:focus { outline: none; border-color: var(--emerald); }
.news-form__msg { font-size: var(--step--1); color: var(--emerald-lt); margin-top: .7rem; min-height: 1.2em; }
.news-form__msg.is-error { color: #ff6b6b; }

.footer__bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.6rem 0; border-top: 1px solid var(--line);
  color: var(--text-dim); font-size: var(--step--1);
}
.footer__mark-anim img { width: 34px; height: 34px; object-fit: contain; transition: transform .5s var(--ease-out); }
.footer__mark-anim:hover img { transform: translateY(-4px); }

@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } .footer__bottom { flex-direction: column; gap: 1rem; text-align: center; } }

/* ----------------------------------------------------------
   18. ANIMATION STATE HELPERS (JS-driven / GSAP-safe)
---------------------------------------------------------- */
.reveal-up { opacity: 0; transform: translateY(28px); }
.is-in.reveal-up, .reveal-up.is-in { opacity: 1; transform: none; }
/* When JS is active it removes these via GSAP; when JS fails, show content: */
.no-js .reveal-up, .no-js .split-lines .s-line > span { opacity: 1 !important; transform: none !important; }
.no-js .hero__mark img { opacity: 1 !important; }

/* Utility */
.container-narrow { max-width: 760px; }
