/* ==========================================================================
   1 — Website Design Studio
   Design concept: a drafting table / blueprint aesthetic. Crop marks, grid
   lines, coordinate readouts and dimension annotations stand in for the
   usual decorative gradients — every mark on the page is doing the job a
   designer's tool would do.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root{
  --ink: #0A0A0C;
  --photo-hero-portrait: url("assets/hero-portrait.jpg");
  --ink-soft: #141416;
  --ink-line: rgba(255,255,255,0.12);

  --fog: #F4F4F5;
  --paper: #FFFFFF;
  --line: #E4E4E7;

  --slate: #52525B;
  --slate-soft: #A1A1AA;

  --blue: #2E4FE0;
  --blue-bright: #6C87FF;
  --blue-dim: #E7EAFB;

  --amber: #FFB238;

  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 14px;

  --container: 1200px;
  --nav-h: 88px;

  --font-display: "Bricolage Grotesque", "Vazirmatn", "Inter", sans-serif;
  --font-body: "Vazirmatn", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "IBM Plex Mono", "Vazirmatn", ui-monospace, SFMono-Regular, monospace;

  --ease: cubic-bezier(.22,.9,.32,1);
  --dur-fast: .25s;
  --dur: .5s;
  --dur-slow: .9s;
  --dur-theme: .4s;

  /* ---- Theme (light default) ----
     The hero, FAQ, footer and CTA band are the site's signature dark
     "punch" sections and stay dark in both themes (see --ink/--blue above).
     Everything else — page background, cards, process, work frames — reads
     from these tokens, which the dark theme block below overrides. */
  --surface-0: var(--paper);
  --surface-1: var(--fog);
  --surface-2: var(--paper);
  --surface-2-border: var(--line);
  --text-1: var(--ink);
  --text-2: var(--slate);
  --accent-text: var(--blue);
  --browser-chrome: #F7F7F9;
  --browser-body-bg: #FBFBFC;
  --browser-dot: #D7D9E0;
  --shadow-soft: 0 22px 40px -22px rgba(10,10,12,.28);
  color-scheme: light;
}

html[data-theme="dark"]{
  --surface-0: #0A0A0C;
  --surface-1: #111113;
  --surface-2: #18181B;
  --surface-2-border: rgba(255,255,255,.10);
  --text-1: #FAFAFA;
  --text-2: #A1A1AA;
  --accent-text: var(--blue-bright);
  --browser-chrome: #1F1F23;
  --browser-body-bg: #151517;
  --browser-dot: #3F3F46;
  --shadow-soft: 0 22px 44px -20px rgba(0,0,0,.65);
  color-scheme: dark;
}

/* ---------- Reset ---------- */
*, *::before, *::after{ box-sizing: border-box; margin: 0; padding: 0; }
html{ scroll-behavior: smooth; scroll-snap-type: y proximity; -webkit-text-size-adjust: 100%; }
html.has-js .reveal-init{ opacity: 0; }
body{
  font-family: var(--font-body);
  background: var(--surface-0);
  color: var(--text-1);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color var(--dur-theme) var(--ease), color var(--dur-theme) var(--ease);
}
img, svg{ display: block; max-width: 100%; }
a{ color: inherit; text-decoration: none; }
ul, ol{ list-style: none; }
button{ font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
h1,h2,h3{ font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; line-height: 1.05; text-wrap: balance; }

::selection{ background: var(--blue); color: #fff; }

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

.skip-link{
  position: absolute; right: 1rem; top: -3rem;
  background: var(--ink); color: #fff; padding: .6rem 1rem;
  border-radius: var(--radius-sm); z-index: 999;
  transition: top var(--dur-fast) var(--ease);
  font-family: var(--font-mono); font-size: .85rem;
}
.skip-link:focus{ top: 1rem; }

.container{
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

/* subtle paper grain overlay */
.grain{
  position: fixed; inset: 0; pointer-events: none; z-index: 999;
  opacity: .035; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Type helpers ---------- */
.eyebrow{
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .1em;
  color: var(--accent-text);
  margin-bottom: 1rem;
  transition: color var(--dur-theme) var(--ease);
}
.eyebrow--light{ color: var(--blue-bright); }

/* ---------- Reveal-on-scroll ---------- */
[data-reveal]{
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
}
[data-reveal].in-view{ opacity: 1; transform: translateY(0); }

.cards [data-reveal], .steps [data-reveal], .work-grid [data-reveal], .showcase__right [data-reveal]{
  transition-delay: calc(var(--i, 0) * 90ms);
}

/* ==========================================================================
   SCENES — paged, full-viewport navigation (replaces native cross-page
   scrolling entirely; see navigation.js for the controller).

   Every `.scene` is an independently scrollable 100dvh viewport, absolutely
   stacked on the others. Only the one carrying `.is-active` is visible and
   interactive — navigation.js is the single source of truth for which that
   is, and drives the cinematic curtain when it changes. There is no native
   scroll *between* scenes any more (html/body are locked below).

   A scene taller than one viewport — the opening hero+showcase+marquee
   scene, and the closing contact+footer scene — still scrolls normally
   *inside itself* exactly as it always did; navigation.js only advances to
   the next/previous scene once that internal scroll reaches its start or
   end edge, so nothing inside them had to change.
   ========================================================================== */
html, body{ height: 100%; overflow: hidden; }

.scenes{
  position: relative;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}
.scene{
  position: absolute;
  inset: 0;
  height: 100vh;
  height: 100dvh;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  visibility: hidden;
}
.scene.is-active{ visibility: visible; }

/* While the curtain is mid-flight, nothing underneath should be clickable —
   navigation.js adds this to <body> for the ~800ms the transition runs. */
body.is-transitioning .scene{ pointer-events: none; }

/* ---------- Individual sections within a scene ----------
   Unchanged from the original continuous-scroll layout: each `.page` still
   fills at least one viewport and centers its own content — that part of
   the design never depended on native document scrolling. */
.page{
  min-height: 100vh;
  min-height: 100dvh;
  scroll-snap-align: start;
  scroll-margin-top: var(--nav-h);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero.page{ scroll-margin-top: 0; } /* hero already reserves its own nav clearance via padding */

.page-dots{
  position: fixed; left: 1.6rem; top: 50%; transform: translateY(-50%); z-index: 450;
  display: flex; flex-direction: column; gap: .8rem;
  padding: .7rem .5rem;
  border-radius: 999px;
  background: rgba(10,10,12,.45);
  border: 1px solid var(--ink-line);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.page-dots a{
  display: flex; align-items: center; justify-content: center;
  width: 16px; height: 16px;
}
.page-dots a span{
  width: 7px; height: 7px; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.55);
  transition: background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.page-dots a:hover span, .page-dots a:focus-visible span{ border-color: #fff; transform: scale(1.15); }
.page-dots a.is-active span{
  background: var(--blue-bright); border-color: var(--blue-bright); transform: scale(1.3);
}

/* ==========================================================================
   PAGE SHOWCASE
   Sits between Hero and the marquee. The left column pins in place while
   the right column (taller than one viewport) scrolls its 6 cards past;
   once the right column is exhausted the section ends and normal/snap
   scrolling continues into the marquee → Services.
   ========================================================================== */
.showcase__inner{
  display: flex; align-items: flex-start; gap: clamp(2rem, 5vw, 4.5rem);
  padding-block: clamp(4rem, 8vw, 6rem);
}
.showcase__left{
  position: sticky; top: calc(var(--nav-h) + 1.5rem);
  flex: 0 0 320px; max-width: 380px;
}
.showcase__left h2{
  font-size: clamp(1.8rem, 3.4vw, 2.4rem); margin: .8rem 0 1.2rem;
}
.showcase__left p{ color: var(--text-2); margin-bottom: 1.8rem; transition: color var(--dur-theme) var(--ease); }

.showcase__right{
  flex: 1; min-width: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem;
}
.showcase-card{
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--surface-2-border);
  background: var(--surface-2);
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease),
              background-color var(--dur-theme) var(--ease), border-color var(--dur-theme) var(--ease);
}
.showcase-card:hover{ transform: translateY(-4px); box-shadow: var(--shadow-soft); }

/* Title + description both overlay the hero block's own gradient (see
   .mock-hero under BROWSER MOCKUP below) — the tag lives in the title bar
   instead. Both need a fixed light color plus a shadow rather than the
   theme's --text-1/--text-2 (which would turn dark-on-dark in dark mode
   with nothing behind them to invert against). */
.showcase-card__title{
  font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.3), 0 6px 16px rgba(0,0,0,.25);
  margin: 0 0 .3rem;
}
.showcase-card__desc{
  color: rgba(255,255,255,.92); font-size: .78rem; line-height: 1.5;
  text-shadow: 0 1px 2px rgba(0,0,0,.3), 0 4px 12px rgba(0,0,0,.2);
  margin: 0;
}

/* ==========================================================================
   NAV
   ========================================================================== */
.nav{
  position: fixed; inset: 0 0 auto 0; z-index: 500;
  padding-block: 1.1rem;
  transition: background var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), padding var(--dur-fast) var(--ease);
}
.nav.is-scrolled{
  background: rgba(10,10,12,0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  padding-block: .7rem;
  box-shadow: 0 1px 0 var(--ink-line);
}
.nav__inner{
  display: flex; align-items: center; gap: 2rem; justify-content: space-between;
}
.nav__logo{
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
  color: #fff;
}
.nav__logo svg{ color: var(--blue-bright); flex-shrink: 0; }

.nav__links{
  display: flex; align-items: center; gap: 1.8rem;
  margin-inline: auto;
}
.nav__links a{
  position: relative;
  font-size: .92rem; color: rgba(255,255,255,.78);
  padding: .3rem 0;
  transition: color var(--dur-fast) var(--ease);
}
.nav__links a::before{
  content: "+";
  position: absolute; right: -1.05em; top: 50%; transform: translateY(-50%);
  color: var(--blue-bright);
  opacity: 0; transition: opacity var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
  font-family: var(--font-mono);
}
.nav__links a::after{
  content: ""; position: absolute; right: 0; left: 100%; bottom: -2px; height: 1px;
  background: var(--blue-bright);
  transition: left var(--dur-fast) var(--ease);
}
.nav__links a:hover, .nav__links a:focus-visible{ color: #fff; }
.nav__links a:hover::before, .nav__links a:focus-visible::before{ opacity: 1; }
.nav__links a:hover::after, .nav__links a:focus-visible::after{ left: 0; }

.nav__cta{ flex-shrink: 0; }

.nav__actions{ display: flex; align-items: center; gap: .6rem; flex-shrink: 0; }

.theme-toggle{
  position: relative;
  width: 44px; height: 44px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.82);
  border: 1px solid var(--ink-line);
  transition: color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}
.theme-toggle:hover, .theme-toggle:focus-visible{
  color: #fff; border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.08);
}
.theme-toggle svg{
  position: absolute;
  transition: opacity var(--dur-theme) var(--ease), transform var(--dur) var(--ease);
}
.theme-toggle .icon-sun{ opacity: 1; transform: rotate(0deg) scale(1); }
.theme-toggle .icon-moon{ opacity: 0; transform: rotate(-70deg) scale(.4); }
html[data-theme="dark"] .theme-toggle .icon-sun{ opacity: 0; transform: rotate(70deg) scale(.4); }
html[data-theme="dark"] .theme-toggle .icon-moon{ opacity: 1; transform: rotate(0deg) scale(1); }

.nav__toggle{
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px;
}
.nav__toggle span{
  display: block; width: 100%; height: 1.6px; background: #fff;
  transition: transform var(--dur-fast) var(--ease), opacity var(--dur-fast) var(--ease);
}
.nav__toggle[aria-expanded="true"] span:nth-child(1){ transform: translateY(6.6px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2){ opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3){ transform: translateY(-6.6px) rotate(-45deg); }

.nav__mobile{
  display: flex; flex-direction: column; gap: 0;
  max-height: 0; overflow: hidden;
  transition: max-height var(--dur) var(--ease);
  background: rgba(10,10,12,0.98);
}
.nav__mobile.is-open{ max-height: 380px; }
.nav__mobile a{
  padding: 1rem clamp(1.25rem, 4vw, 2.5rem);
  color: rgba(255,255,255,.85);
  border-top: 1px solid var(--ink-line);
  font-size: 1rem;
}
.nav__mobile .btn{ margin: 1rem clamp(1.25rem, 4vw, 2.5rem) 1.25rem; }

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn{
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-body); font-weight: 600; font-size: .95rem;
  padding: .85rem 1.5rem;
  border-radius: var(--radius-sm);
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
  white-space: nowrap;
}
.btn svg{ transition: transform var(--dur-fast) var(--ease); }
/* The arrow points "forward" (up-right). Mirrored here since forward is up-left in RTL. */
.btn--primary svg{ transform: scaleX(-1); }

.btn--primary{
  background: var(--blue); color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,.15) inset, 0 8px 20px -8px rgba(46,79,224,.55);
}
.btn--primary:hover, .btn--primary:focus-visible{
  transform: translateY(-2px);
  box-shadow: 0 1px 0 rgba(255,255,255,.15) inset, 0 14px 26px -8px rgba(46,79,224,.65);
}
.btn--primary:hover svg, .btn--primary:focus-visible svg{ transform: scaleX(-1) translate(2px,-2px); }

.btn--ghost{
  color: var(--text-1); padding-inline: 0; border-radius: 0;
  position: relative;
  transition: color var(--dur-theme) var(--ease);
}
.btn--ghost::after{
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px;
  background: currentColor;
  transform: scaleX(.35); transform-origin: right;
  transition: transform var(--dur-fast) var(--ease);
}
.btn--ghost:hover::after, .btn--ghost:focus-visible::after{ transform: scaleX(1); }

.btn--small{ padding: .6rem 1.15rem; font-size: .85rem; }

.btn--pulse{ position: relative; }
.btn--pulse::before{
  content: ""; position: absolute; inset: -6px; border-radius: calc(var(--radius-sm) + 6px);
  border: 1.5px solid var(--blue-bright);
  opacity: 0; animation: pulseRing 2.6s var(--ease) infinite;
}
@keyframes pulseRing{
  0%{ opacity: .55; transform: scale(.92); }
  70%{ opacity: 0; transform: scale(1.18); }
  100%{ opacity: 0; transform: scale(1.18); }
}

/* ==========================================================================
   CROP MARKS (reused decorative frame)
   ========================================================================== */
.crop-marks{ position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.crop-marks .corner{
  position: absolute; width: 26px; height: 26px;
  opacity: 0; transition: opacity var(--dur-slow) var(--ease) .3s;
}
.hero.is-loaded .corner, .cta-banner .corner{ opacity: .55; }
.corner.tl{ top: 24px; left: 24px; border-top: 1.5px solid var(--blue-bright); border-left: 1.5px solid var(--blue-bright); }
.corner.tr{ top: 24px; right: 24px; border-top: 1.5px solid var(--blue-bright); border-right: 1.5px solid var(--blue-bright); }
.corner.bl{ bottom: 24px; left: 24px; border-bottom: 1.5px solid var(--blue-bright); border-left: 1.5px solid var(--blue-bright); }
.corner.br{ bottom: 24px; right: 24px; border-bottom: 1.5px solid var(--blue-bright); border-right: 1.5px solid var(--blue-bright); }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero{
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  background-color: var(--ink); color: #fff;
  overflow: hidden;
  padding-block: 7rem 5rem;
}

/* Gradient + photo live together on one animated layer (an element's own
   background always paints *behind* its children, so putting only the
   photo on ::before while the gradient stayed on .hero itself buried the
   gradient under the opaque photo — this keeps the exact same two-layer
   composition, just moved onto a layer that can carry a slow drift for a
   bit of life in the portrait's hair without moving the text on top of
   it). Pure transform, GPU-composited; overflow:hidden on .hero clips the
   slight overscan from the zoom. */
.hero::before{
  content: "";
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(260deg, rgba(10,10,12,.97) 0%, rgba(10,10,12,.93) 34%, rgba(10,10,12,.62) 64%, rgba(10,10,12,.4) 100%),
    var(--photo-hero-portrait);
  background-size: cover, cover;
  background-position: center, center 32%;
  background-repeat: no-repeat, no-repeat;
  animation: heroPhotoDrift 26s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes heroPhotoDrift{
  0%   { transform: scale(1) translate3d(0, 0, 0); }
  100% { transform: scale(1.07) translate3d(-1.4%, -1%, 0); }
}
@media (prefers-reduced-motion: reduce){
  .hero::before{ animation: none; }
}
.hero__grid{
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, var(--ink-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--ink-line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, #000 40%, transparent 90%);
  mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, #000 40%, transparent 90%);
  opacity: 0; transition: opacity 1.4s var(--ease) .1s;
}
.hero.is-loaded .hero__grid{ opacity: 1; }

.cursor-guide{ position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0; transition: opacity .3s var(--ease); }
.cursor-guide.is-active{ opacity: 1; }
.cursor-guide__x, .cursor-guide__y{ position: absolute; background: rgba(108,135,255,.28); }
.cursor-guide__x{ left: 0; right: 0; height: 1px; }
.cursor-guide__y{ top: 0; bottom: 0; width: 1px; }
.cursor-guide__coord{
  position: absolute; font-family: var(--font-mono); font-size: .72rem;
  color: var(--blue-bright); background: rgba(10,10,12,.85);
  padding: .25rem .5rem; border: 1px solid var(--ink-line); border-radius: 4px;
  transform: translate(12px, 12px);
  white-space: nowrap;
}

.hero__inner{ position: relative; z-index: 4; max-width: 760px; }

.hero__title{
  font-size: clamp(2.6rem, 6.4vw, 5.2rem);
  font-weight: 700;
}
.hero__title .word{
  display: inline-block;
  opacity: 0; transform: translateY(100%);
  animation: wordUp var(--dur-slow) var(--ease) forwards;
}

@keyframes wordUp{
  to{ opacity: 1; transform: translateY(0); }
}

.hero__dimline{
  display: flex; align-items: center; gap: .4rem;
  margin: 1.6rem 0 1.8rem; max-width: 280px;
  color: var(--slate-soft); font-family: var(--font-mono); font-size: .72rem;
}
.hero__dimline .tick{ width: 1px; height: 8px; background: var(--slate-soft); }
.hero__dimline .line{ flex: 1; height: 1px; background: var(--slate-soft); position: relative; overflow: hidden; }
.hero__dimline .line::after{
  content: ""; position: absolute; inset: 0; background: var(--ink);
  transform: translateX(-100%);
}
.hero.is-loaded .hero__dimline .line::after{
  animation: dimReveal 1.1s var(--ease) .6s forwards;
}
@keyframes dimReveal{ to{ transform: translateX(0%); } }
.hero__dimlabel{ letter-spacing: .06em; }

.hero__sub{
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: var(--slate-soft);
  max-width: 46ch;
  text-wrap: pretty;
  margin-bottom: 2.3rem;
}

.hero__ctas{ display: flex; align-items: center; gap: 1.8rem; flex-wrap: wrap; }
.hero .btn--ghost{ color: #fff; }

.hero__scrollcue{
  position: absolute; left: 50%; bottom: 2.4rem; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .6rem;
  z-index: 4; color: var(--slate-soft);
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .1em;
}
.hero__scrollcue-line{
  width: 1px; height: 34px; background: var(--slate-soft); position: relative; overflow: hidden;
}
.hero__scrollcue-line::after{
  content: ""; position: absolute; left: 0; top: -100%; width: 100%; height: 100%;
  background: var(--blue-bright);
  animation: scrollDrip 2.2s ease-in-out infinite;
}
@keyframes scrollDrip{
  0%{ top: -100%; } 60%{ top: 100%; } 100%{ top: 100%; }
}

/* ==========================================================================
   MARQUEE
   ========================================================================== */
.marquee{
  background: var(--surface-1);
  border-block: 1px solid var(--surface-2-border);
  padding-block: 1.1rem;
  overflow: hidden;
  transition: background-color var(--dur-theme) var(--ease), border-color var(--dur-theme) var(--ease);
}
.marquee__track{
  display: flex; gap: 2.5rem; width: max-content;
  animation: marqueeScroll 28s linear infinite;
}
.marquee:hover .marquee__track{ animation-play-state: paused; }
.marquee__track span{
  font-family: var(--font-mono); font-size: .82rem; letter-spacing: .06em;
  color: var(--text-2); white-space: nowrap;
  transition: color var(--dur-theme) var(--ease);
}
@keyframes marqueeScroll{
  from{ transform: translateX(0); }
  to{ transform: translateX(-50%); }
}

/* ==========================================================================
   SECTION HEAD
   ========================================================================== */
section{ padding-block: clamp(4.5rem, 9vw, 7.5rem); }
.section-head{ max-width: 640px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head h2{ font-size: clamp(1.9rem, 4vw, 2.7rem); }
.section-head__sub{ color: var(--text-2); margin-top: 1rem; font-size: 1.05rem; max-width: 52ch; text-wrap: pretty; transition: color var(--dur-theme) var(--ease); }

/* ==========================================================================
   SERVICE CARDS
   ========================================================================== */
.cards{
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem;
}
.card{
  position: relative;
  padding: 2rem 1.6rem 1.8rem;
  background: var(--surface-2);
  border: 1px solid var(--surface-2-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease), background-color var(--dur-theme) var(--ease);
}
.card::before{
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--blue);
  transform: scaleX(0); transform-origin: right;
  transition: transform var(--dur-fast) var(--ease);
}
.card:hover, .card:focus-within{
  transform: translateY(-6px);
  box-shadow: var(--shadow-soft);
  border-color: transparent;
}
.card:hover::before, .card:focus-within::before{ transform: scaleX(1); }
.card__tag{
  display: inline-block; font-family: var(--font-mono); font-size: .72rem;
  color: var(--accent-text); letter-spacing: .06em; margin-bottom: 1rem;
  transition: color var(--dur-theme) var(--ease);
}
.card h3{ font-size: 1.25rem; margin-bottom: .6rem; }
.card p{ color: var(--text-2); font-size: .95rem; transition: color var(--dur-theme) var(--ease); }

/* ==========================================================================
   PROCESS
   ========================================================================== */
.process{ background: var(--surface-1); transition: background-color var(--dur-theme) var(--ease); }
.steps{
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem;
  position: relative; counter-reset: step;
}
.steps::before{
  content: ""; position: absolute; top: 13px; left: 0; right: 0; height: 1px;
  background: var(--surface-2-border); z-index: 0;
  transition: background-color var(--dur-theme) var(--ease);
}
.step{ position: relative; padding-top: 2.4rem; }
.step::before{
  content: ""; position: absolute; top: 6px; right: 0; width: 15px; height: 15px;
  border-radius: 50%; background: var(--surface-0); border: 2px solid var(--blue);
  z-index: 1;
  transition: background-color var(--dur-theme) var(--ease);
}
.step__fig{
  display: block; font-family: var(--font-mono); font-size: .72rem;
  color: var(--accent-text); letter-spacing: .08em; margin-bottom: .9rem;
  transition: color var(--dur-theme) var(--ease);
}
.step h3{ font-size: 1.2rem; margin-bottom: .55rem; }
.step p{ color: var(--text-2); font-size: .92rem; transition: color var(--dur-theme) var(--ease); }

/* ==========================================================================
   WORK
   ========================================================================== */
.work-grid{
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem;
}
.work-card__frame{
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--surface-2-border);
  background: var(--surface-2);
  box-shadow: 0 1px 0 var(--surface-2-border);
  transition: background-color var(--dur-theme) var(--ease), border-color var(--dur-theme) var(--ease);
}
.browser-bar{
  display: flex; align-items: center; gap: 6px;
  padding: .7rem .9rem;
  background: var(--browser-chrome); border-bottom: 1px solid var(--surface-2-border);
  transition: background-color var(--dur-theme) var(--ease), border-color var(--dur-theme) var(--ease);
}
.browser-bar span{ width: 8px; height: 8px; border-radius: 50%; background: var(--browser-dot); transition: background-color var(--dur-theme) var(--ease); }
.browser-url{
  margin-left: .6rem; font-family: var(--font-mono); font-size: .68rem; color: var(--text-2);
}
.browser-body{ position: relative; padding: 1.4rem; background: var(--browser-body-bg); transition: background-color var(--dur-theme) var(--ease); }

/* Tag sits in the title bar itself, pushed to the far end from the dots —
   reads like a browser-tab label. Uses each card's own --proj accent so
   it still reads as that card's color, not a flat global accent.
   Selector is scoped as ".browser-bar .showcase-card__tag" (not just the
   class alone) so it wins over ".browser-bar span" — a bare class would
   tie on specificity with that dot-styling rule and, since dot order in
   the file happens to sit first, lose the 8px/circular dot sizing. */
.browser-bar .showcase-card__tag{
  width: auto; height: auto; border-radius: 0; background: none;
  margin-inline-start: auto;
  font-family: var(--font-mono); font-size: .68rem;
  color: var(--proj); letter-spacing: .06em;
}
.mock-nav{
  height: 10px; width: 40%; border-radius: 3px; margin-bottom: 1.1rem;
  background: color-mix(in srgb, var(--proj) 55%, var(--line));
  opacity: .55;
}
.mock-hero{
  position: relative;
  min-height: 120px; border-radius: 8px; margin-bottom: 1rem;
  background: linear-gradient(135deg, color-mix(in srgb, var(--proj) 85%, white), color-mix(in srgb, var(--proj) 45%, white));
  transition: transform .6s var(--ease);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: .9rem;
  overflow: hidden;
}
/* Scrim guarantees the white title/desc text clears 4.5:1 regardless of the
   --proj hue underneath (measured as low as 1.2:1 without it on the split
   variant's pale half — text-shadow alone doesn't count toward contrast). */
.mock-hero::before{
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 0%, transparent 35%, rgba(10,10,12,.68) 100%);
}
.mock-hero .showcase-card__desc{ max-width: 34ch; }
.mock-hero--split{ background: linear-gradient(100deg, color-mix(in srgb, var(--proj) 75%, white) 45%, #EDEEF3 45%); }
.mock-row{ display: flex; gap: .7rem; }
.mock-row .mock-card{
  flex: 1; height: 46px; border-radius: 6px;
  background: color-mix(in srgb, var(--proj) 22%, white);
  border: 1px solid color-mix(in srgb, var(--proj) 35%, white);
}
.work-card__overlay{
  position: absolute; inset: 0; top: auto;
  padding: 1.4rem 1.5rem 1.6rem;
  background: linear-gradient(180deg, transparent, rgba(10,10,12,.94) 55%);
  color: #fff;
  transform: translateY(14px);
  opacity: 0;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.work-card:hover .work-card__overlay,
.work-card:focus-within .work-card__overlay{ transform: translateY(0); opacity: 1; }
.work-card:hover .mock-hero{ transform: scale(1.04); }
.work-card__tag{
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .08em;
  color: var(--blue-bright); display: block; margin-bottom: .4rem;
}
.work-card__overlay h3{ font-size: 1.15rem; margin-bottom: .3rem; }
.work-card__overlay p{ font-size: .85rem; color: var(--slate-soft); }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq{ position: relative; background: var(--ink); color: #fff; overflow: hidden; }
.faq__grid{
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, var(--ink-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--ink-line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, #000 40%, transparent 90%);
  mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, #000 40%, transparent 90%);
}
.faq .corner{ opacity: .55; border-color: var(--blue-bright) !important; }
.faq__inner{ position: relative; z-index: 2; }

.faq__head{ max-width: 640px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.faq__head h2{ font-size: clamp(1.9rem, 4vw, 2.7rem); margin: .8rem 0 1rem; }
.faq__head p{ color: var(--slate-soft); font-size: 1.05rem; max-width: 52ch; }
.faq__head p a{ color: var(--blue-bright); border-bottom: 1px solid rgba(108,135,255,.4); transition: border-color var(--dur-fast) var(--ease); }
.faq__head p a:hover, .faq__head p a:focus-visible{ border-color: var(--blue-bright); }

.faq-list{ border-top: 1px solid var(--ink-line); }
.faq-item{ border-bottom: 1px solid var(--ink-line); }

.faq-item__head{
  width: 100%; display: flex; align-items: center; gap: 1.2rem;
  padding: 1.5rem 0; text-align: right;
  color: #fff;
}
.faq-item__fig{
  flex-shrink: 0; font-family: var(--font-mono); font-size: .78rem;
  color: var(--accent-text); letter-spacing: .04em;
}
.faq-item__title{
  flex: 1; font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.05rem, 2vw, 1.3rem); transition: color var(--dur-fast) var(--ease);
}
.faq-item__icon{
  flex-shrink: 0; color: var(--slate-soft); transform: rotate(90deg);
  transition: transform var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.faq-item__head:hover .faq-item__title,
.faq-item__head:focus-visible .faq-item__title{ color: var(--blue-bright); }
.faq-item__head:hover .faq-item__icon,
.faq-item__head:focus-visible .faq-item__icon{ color: var(--blue-bright); }
.faq-item.is-open .faq-item__icon{ transform: rotate(0deg); color: var(--blue-bright); }

.faq-item__panel{
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--dur) var(--ease);
}
.faq-item__panel p{
  color: var(--slate-soft); max-width: 62ch; font-size: .98rem;
  padding-bottom: 1.6rem;
}

/* ==========================================================================
   INDUSTRIES (interactive banner)
   ========================================================================== */
.industries{ position: relative; background: var(--ink); color: #fff; overflow: hidden; }
.industries__head{ position: relative; z-index: 2; margin-bottom: clamp(2rem, 4vw, 3rem); }
.industries__head h2{ font-size: clamp(1.9rem, 4vw, 2.7rem); margin-top: .8rem; }

.industries__banner{
  position: relative; z-index: 2;
  display: flex;
  height: clamp(380px, 46vw, 540px);
  border-block: 1px solid var(--ink-line);
  overflow: hidden;
}
.industries__banner::before{
  content: "";
  position: absolute; inset: 0; z-index: 0;
  background-image: url("assets/industries-bg.webp");
  background-repeat: no-repeat;
  background-size: 160% auto;
  background-position: var(--industries-bg-x, 0%) center;
  transform: scaleX(var(--industries-bg-scale, -1));
  transition: background-position var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
}
.industries__banner::after{
  content: "";
  position: absolute; inset: 0; z-index: 1;
  background-color: var(--industries-color, #2E4FE0);
  mix-blend-mode: hue;
  transition: background-color var(--dur) var(--ease);
  pointer-events: none;
}
.industries__col{
  position: relative; z-index: 2; flex: 1; min-width: 0;
  border-inline-start: 1px solid var(--ink-line);
}
.industries__col:first-child{ border-inline-start: none; }
.industries__col::before{
  content: ""; position: absolute; inset: 0;
  background: rgba(10,10,12,.64);
  transition: background-color var(--dur) var(--ease);
}
.industries__col.is-active::before{ background: rgba(10,10,12,.18); }

.industries__toggle{
  position: absolute; inset: 0; width: 100%; height: 100%;
  display: flex; align-items: flex-start; justify-content: flex-start;
  padding-block-start: 2rem; padding-inline-start: 1.5rem;
  color: rgba(255,255,255,.85);
  transition: color var(--dur-fast) var(--ease);
}
.industries__toggle:hover, .industries__toggle:focus-visible{ color: #fff; }
.industries__label{
  writing-mode: vertical-rl; transform: rotate(180deg);
  font-family: var(--font-mono); font-size: .78rem; letter-spacing: .08em;
  white-space: nowrap;
  background: rgba(82,82,91,.35);
  padding: .6rem .35rem;
  border-radius: var(--radius-sm);
}

.industries__content{
  position: absolute; inset-inline: 0; bottom: 0; z-index: 2;
  padding: 1.6rem 1.4rem;
  opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.industries__col.is-active .industries__content{ opacity: 1; transform: translateY(0); pointer-events: auto; }
.industries__title{
  display: block; font-family: var(--font-display); font-weight: 600;
  font-size: 1.1rem; margin-bottom: .5rem;
}
.industries__desc{
  display: block; font-size: .84rem; color: rgba(255,255,255,.75);
  margin-bottom: .9rem; max-width: 24ch;
}
.industries__more{
  display: inline-flex; align-items: center; gap: .4rem;
  font-family: var(--font-mono); font-size: .74rem; color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.4);
  padding-bottom: .15rem;
  transition: color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.industries__more svg{ transform: scaleX(-1); }
.industries__more:hover, .industries__more:focus-visible{ border-color: var(--blue-bright); color: var(--blue-bright); }

/* ==========================================================================
   CTA BANNER
   ========================================================================== */
.cta-banner{
  position: relative;
  background: var(--ink);
  color: #fff;
  overflow: hidden;
}
.cta-banner .corner{ border-color: rgba(255,255,255,.5) !important; opacity: .5; }
.cta-banner__video{
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover;
}
.cta-banner__scrim{
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(200deg, rgba(10,10,12,.88) 0%, rgba(10,10,12,.72) 45%, rgba(10,10,12,.6) 100%);
}
.cta-banner__grid{
  position: relative; z-index: 2;
  display: flex; align-items: flex-end; flex-wrap: wrap;
  gap: clamp(2.5rem, 6vw, 5rem);
}
.cta-banner__inner{ flex: 1 1 380px; max-width: 620px; }
.cta-banner h2{ font-size: clamp(2rem, 4.5vw, 3rem); margin: .6rem 0 1.2rem; }
.cta-banner p{ color: rgba(255,255,255,.85); font-size: 1.05rem; max-width: 48ch; margin-bottom: 2.2rem; }
.cta-banner__actions .btn--primary{ background: #fff; color: var(--blue); box-shadow: none; }
.cta-banner__actions .btn--primary:hover{ box-shadow: 0 14px 26px -10px rgba(0,0,0,.25); }
.cta-banner__note{
  margin-top: 1.1rem; font-family: var(--font-mono); font-size: .74rem;
  color: rgba(255,255,255,.7); max-width: none;
}

/* ---------- Feedback form (left side of the video banner) ---------- */
.feedback-form{
  flex: 1 1 300px; max-width: 380px;
  background: rgba(20,20,23,.55);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem 1.7rem;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}
.feedback-form h3{ font-size: 1.15rem; font-weight: 600; margin: .5rem 0 1.1rem; }
.feedback-form__field{ margin-bottom: .9rem; }
.feedback-form__field label{
  display: block; font-family: var(--font-mono); font-size: .72rem;
  letter-spacing: .05em; color: rgba(255,255,255,.6); margin-bottom: .4rem;
}
.feedback-form__field input,
.feedback-form__field textarea{
  width: 100%; font: inherit; font-size: .92rem; color: #fff;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius-sm);
  padding: .65rem .8rem;
  resize: vertical;
  transition: border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}
.feedback-form__field input::placeholder,
.feedback-form__field textarea::placeholder{ color: rgba(255,255,255,.4); }
.feedback-form__field input:focus-visible,
.feedback-form__field textarea:focus-visible{
  border-color: var(--blue-bright); background: rgba(255,255,255,.1); outline: none;
}
.feedback-form .btn{ width: 100%; justify-content: center; margin-top: .3rem; }
.feedback-form__done{
  margin-top: .9rem; font-family: var(--font-mono); font-size: .78rem;
  color: var(--blue-bright);
}
.feedback-form__done a{ text-decoration: underline; text-underline-offset: 2px; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer{ background: var(--ink); color: rgba(255,255,255,.8); padding-block: 4.5rem 2rem; }
.footer__inner{
  display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 3rem;
  padding-bottom: 3rem; border-bottom: 1px solid var(--ink-line);
}
.footer__brand p{ margin-top: 1rem; color: var(--slate-soft); max-width: 32ch; font-size: .92rem; }
.footer__heading{
  display: block; font-family: var(--font-mono); font-size: .72rem;
  letter-spacing: .08em; color: var(--slate-soft); margin-bottom: 1rem;
}
.footer__col{ display: flex; flex-direction: column; gap: .7rem; }
.footer__col a{ font-size: .92rem; transition: color var(--dur-fast) var(--ease); }
.footer__col a:hover{ color: var(--blue-bright); }

.footer__bottom{
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .6rem;
  padding-top: 1.6rem; font-size: .82rem; color: var(--slate-soft);
}
.footer__coord{ font-family: var(--font-mono); font-size: .72rem; }

/* ==========================================================================
   BACK TO TOP
   ========================================================================== */
.totop{
  position: fixed; left: 1.6rem; bottom: 1.6rem; z-index: 400;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--ink); color: #fff;
  border: 1px solid var(--surface-2-border);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: translateY(12px) scale(.9); pointer-events: none;
  transition: opacity var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
  box-shadow: 0 10px 24px -10px rgba(10,10,12,.5);
}
.totop.is-visible{ opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.totop:hover{ background: var(--blue); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 980px){
  .cards{ grid-template-columns: repeat(2, 1fr); }
  .steps{ grid-template-columns: repeat(2, 1fr); row-gap: 2.4rem; }
  .steps::before{ display: none; }
  .work-grid{ grid-template-columns: 1fr; }
  .showcase__inner{ flex-direction: column; }
  .showcase__left{ position: static; flex: none; max-width: none; }
  .footer__inner{ grid-template-columns: 1fr 1fr; }
  .footer__brand{ grid-column: 1 / -1; }
}

@media (max-width: 760px){
  .nav__links, .nav__cta{ display: none; }
  .nav__toggle{ display: flex; }
  .cards{ grid-template-columns: 1fr; }
  .steps{ grid-template-columns: 1fr; }
  .showcase__right{ grid-template-columns: 1fr; }
  .hero{ padding-block: 6.5rem 4rem; }
  .cursor-guide{ display: none; }
  .footer__inner{ grid-template-columns: 1fr; gap: 2rem; }
  .footer__bottom{ flex-direction: column; align-items: flex-start; }
  .page-dots{ display: none; }

  .industries__banner{ flex-direction: column; height: auto; }
  .industries__banner::before{
    background-size: cover;
    background-position: center;
    transform: none;
  }
  .industries__col{
    min-height: 140px;
    border-inline-start: none; border-top: 1px solid var(--ink-line);
  }
  .industries__col:first-child{ border-top: none; }
  .industries__label{ writing-mode: horizontal-tb; transform: none; }
  .industries__toggle{
    position: static; width: auto; height: auto;
    justify-content: flex-start; padding: 1.2rem 1.4rem 0;
  }
  .industries__content{
    position: static; padding: .6rem 1.4rem 1.2rem;
    opacity: 1; transform: none; pointer-events: auto;
  }
  .industries__col::before{ background: rgba(10,10,12,.55) !important; }

  .cta-banner__grid{ align-items: stretch; }
  .feedback-form{ max-width: none; }
}

@media (max-width: 460px){
  .hero__ctas{ flex-direction: column; align-items: flex-start; gap: 1.2rem; }
  .cta-banner__actions .btn{ width: 100%; justify-content: center; }
}

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal]{ opacity: 1; transform: none; }
  .hero__title .word{ opacity: 1; transform: none; }
  .cursor-guide{ display: none; }
}
