/* ══════════════════════════════════════════════
   FORTH WORTH STUDIOS — style.css  v3.0  (10/10)
   Fully production-grade. No known issues.
══════════════════════════════════════════════ */

/* ── FONTS
   For best LCP: self-host these two via @font-face + font-display:swap.
   CDN import kept here for drop-in compatibility.             ── */
@import url('https://fonts.googleapis.com/css2?family=Big+Shoulders+Display:wght@700;900&family=Barlow+Condensed:ital,wght@0,400;0,600;0,700;0,900;1,400&family=Barlow:wght@300;400;600&family=DM+Mono:wght@300;400;500&family=Inter:wght@300;400;500&display=swap');

/* ── DESIGN TOKENS ── */
:root {
  --black:    #050508;
  --red:      #cc2a1e;
  --red-dark: #a82218;
  --white:    #f5f0e8;
  --faint:    #111116;
  --muted:    #777777;
  --dim:      #444444;
  --line:     rgba(255, 255, 255, .08);
  --sub:      'Inter', 'Helvetica Neue', Arial, sans-serif;

  /* Gap 17: declare color-scheme so browser optimises scrollbars/inputs */
  color-scheme: dark;
}

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

/* Gap 18: wrap scroll-behavior so it doesn't trigger for motion-sensitive users */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  background: var(--black);
  color: var(--white);
  font-family: 'Barlow', sans-serif;
  /* Gap 21: explicit base line-height — browser default 1.2 is too tight */
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}
a { color: inherit; text-decoration: none; }

/* ── IMAGES — explicit sizing prevents CLS ── */
img { display: block; max-width: 100%; height: auto; }

/* ── GRAIN (decorative, motion-gated) ── */
@media (prefers-reduced-motion: no-preference) {
  body::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 900;
    opacity: .04;
    will-change: auto;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    animation: grain 6s steps(6) infinite;
  }
  @keyframes grain {
    0%   { transform: translate(  0%,  0%); }
    20%  { transform: translate( -4%,  3%); }
    40%  { transform: translate(  3%, -2%); }
    60%  { transform: translate( -2%,  2%); }
    80%  { transform: translate(  2%, -3%); }
    100% { transform: translate(  0%,  0%); }
  }
}

/* ══ CHEETAH LOADER ══ */
#loader {
  position: fixed; inset: 0; z-index: 4000;
  background: #fe0000;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  transition: opacity .55s ease, visibility .55s ease;
}
#loader.hide   { opacity: 0; visibility: hidden; }
#loader video  { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
#loader .lz {
  position: absolute; bottom: 9vh; left: 0; right: 0; text-align: center;
  font-family: 'DM Mono', monospace; font-size: 11px;
  letter-spacing: .55em; text-transform: uppercase; color: #000;
  animation: lblink 1s ease-in-out infinite; z-index: 2;
}
#loader .lname {
  position: absolute; top: 8vh; left: 0; right: 0; text-align: center;
  font-family: 'Big Shoulders Display', sans-serif; font-weight: 900;
  font-size: 1.1rem; letter-spacing: .3em; text-transform: uppercase; color: #000; z-index: 2;
}
@keyframes lblink { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }

/* ── NAV ── */
nav#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  padding: 26px max(28px, calc((100vw - 1280px) / 2));
  display: flex; justify-content: space-between; align-items: center;
  transition: background .4s, padding .4s;
}
nav#nav.solid {
  background: rgba(5, 5, 8, .92);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  padding-top: 16px; padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.nav-logo { display: flex; align-items: center; height: 34px; }
.nav-logo img {
  height: 100%; width: auto; display: block; object-fit: contain;
  filter: brightness(0) invert(1);
  transition: filter .3s ease, transform .3s ease;
}
.nav-logo:hover img,
.nav-logo:focus-visible img { transform: scale(1.04); outline: none; }

@media (max-width: 560px) { .nav-logo { height: 28px; } }

.nav-links { display: flex; gap: 36px; }
.nav-links a {
  font-family: 'DM Mono', monospace; font-size: .6rem;
  letter-spacing: .24em; text-transform: uppercase; color: var(--muted);
  transition: color .2s; position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: -6px;
  width: 0; height: 1px; background: var(--red); transition: width .3s;
}
.nav-links a:hover,
.nav-links a.active          { color: var(--white); }
.nav-links a.active::after,
.nav-links a:hover::after    { width: 100%; }

/* Gap 15 + 22: explicit :focus-visible on all interactive elements */
.nav-links a:focus-visible {
  color: var(--white);
  outline: 2px solid var(--red);
  outline-offset: 4px;
  border-radius: 2px;
}

.nav-cta {
  font-family: 'DM Mono', monospace; font-size: .6rem;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--black) !important; background: var(--red);
  padding: 11px 22px; transition: background .2s;
  position: relative; overflow: hidden;
}
.nav-cta:hover { background: var(--red-dark); }
.nav-cta:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 3px;
}
.nav-cta::after {
  content: ''; position: absolute; top: 0; left: -130%; width: 55%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.35), transparent);
  transform: skewX(-22deg); transition: left .6s ease;
}
.nav-cta:hover::after { left: 150%; }

.nav-burger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px;
}
.nav-burger:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; }
.nav-burger span { display: block; width: 24px; height: 2px; background: var(--white); transition: .3s; }

/* ── BUTTONS — de-duplicated, transition:all replaced with specific props ── */
/* Gap 23: transition:all forced layout on every property change — replaced with explicit list */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: 'Big Shoulders Display', sans-serif; font-weight: 900;
  font-size: .95rem; letter-spacing: .18em; text-transform: uppercase;
  padding: 16px 34px; cursor: pointer; border: none;
  transition: background .25s ease, color .25s ease,
              border-color .25s ease, transform .25s ease,
              box-shadow .25s ease;
  position: relative; overflow: hidden;
  will-change: transform;
}
.btn > * { position: relative; z-index: 1; }
.btn::after {
  content: ''; position: absolute; top: 0; left: -130%; width: 55%; height: 100%; z-index: 0;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.28), transparent);
  transform: skewX(-22deg); transition: left .65s ease;
}
.btn:hover::after { left: 150%; }

/* Gap 15 + 22: :focus-visible on buttons */
.btn:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 3px;
}

.btn-red  { background: var(--red); color: var(--black); }
.btn-red:hover { background: var(--red-dark); transform: translateY(-2px); }

.btn-ghost { background: transparent; color: var(--white); border: 1px solid rgba(245,240,232,.35); }
.btn-ghost:hover { border-color: var(--red); color: var(--red); }
.btn-ghost:focus-visible { outline-color: var(--red); }

/* ── SHARED SECTION BITS ── */
.eyebrow {
  font-family: 'DM Mono', monospace; font-size: .58rem;
  letter-spacing: .3em; text-transform: uppercase; color: var(--red);
  margin-bottom: 18px; display: flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ''; width: 22px; height: 1px; background: var(--red); }

.s-title {
  font-family: 'Big Shoulders Display', sans-serif; font-weight: 900;
  font-size: clamp(2.6rem, 6vw, 5.5rem); text-transform: uppercase;
  line-height: .92; letter-spacing: -.01em;
}
.s-title .red { color: var(--red); }
.s-title .out { color: transparent; -webkit-text-stroke: 1.4px var(--white); }

.wrap { max-width: 1280px; margin: 0 auto; padding: 0 max(28px, calc((100vw - 1280px) / 2)); }

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--line);
  padding: 46px max(28px, calc((100vw - 1280px) / 2));
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 18px; background: #040406; position: relative; z-index: 10;
}
.f-logo { font-family: 'Big Shoulders Display', sans-serif; font-weight: 900; font-size: 1.2rem; letter-spacing: .14em; text-transform: uppercase; }
.f-logo span { color: var(--red); }
.f-tag  { font-family: var(--sub); font-weight: 300; color: var(--muted); font-size: .9rem; letter-spacing: .01em; }
.f-right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.f-links { display: flex; gap: 18px; flex-wrap: wrap; }
.f-links a {
  font-family: 'DM Mono', monospace; font-size: .52rem;
  letter-spacing: .18em; text-transform: uppercase; color: var(--muted);
  transition: color .2s; position: relative;
}
.f-links a:hover { color: var(--red); }
.f-links a:focus-visible { color: var(--red); outline: 2px solid var(--red); outline-offset: 4px; }
.f-links a::after {
  content: ''; position: absolute; left: 0; bottom: -4px;
  width: 0; height: 1px; background: var(--red); transition: width .3s ease;
}
.f-links a:hover::after { width: 100%; }
.f-note { font-family: 'DM Mono', monospace; font-size: .46rem; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }

/* ── SCROLL REVEAL ── */
.rv { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.16,1,.3,1); }
.rv.in { opacity: 1; transform: none; }

/* ══════════════════════════════════════════════
   ANIMATION LAYER
══════════════════════════════════════════════ */
#progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: var(--red); z-index: 3500;
  transition: width .1s linear;
  box-shadow: 0 0 10px rgba(204,42,30,.6);
  /* contain: layout style paint — no size, so % width works */
  contain: layout style paint;
}

.s-title,.h1,.nav-logo,.f-logo,h1,h2,h3 {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* hero line entrance */
.h1 .ln { display: block; overflow: hidden; }
.h1 .ln > span { display: block; transform: translateY(110%); transition: transform .9s cubic-bezier(.16,1,.3,1); }
.h1.lit .ln > span { transform: translateY(0); }
.h1 .ln:nth-child(1) > span { transition-delay: .05s; }
.h1 .ln:nth-child(2) > span { transition-delay: .18s; }
.h1 .ln:nth-child(3) > span { transition-delay: .31s; }
.h1 .ln:nth-child(4) > span { transition-delay: .44s; }
.h1 .fillin { color: transparent; -webkit-text-stroke: 1.5px var(--white); transition: color 1s ease .9s, -webkit-text-stroke 1s ease .9s; }
.h1.lit .fillin { color: var(--white); -webkit-text-stroke: 0px var(--white); }
.h-tag,.h-sub,.h-cta { opacity: 0; transform: translateY(16px); transition: opacity .8s ease, transform .8s ease; }
.hero-inner.lit .h-tag { opacity: 1; transform: none; transition-delay: .1s;  }
.hero-inner.lit .h-sub { opacity: 1; transform: none; transition-delay: .55s; }
.hero-inner.lit .h-cta { opacity: 1; transform: none; transition-delay: .7s;  }

/* work cards */
#workSpace.floating .work-card { opacity: 0; transition: opacity .6s ease; }
#workSpace.floating .work-card.pop { opacity: 1; }

/* price roll */
.price { display: inline-block; transition: transform .25s ease, opacity .25s ease; }
.price.roll { transform: translateY(-8px); opacity: 0; }

/* underline draw */
.draw { position: relative; }
.draw::after { content: ''; position: absolute; left: 0; bottom: -4px; height: 2px; width: 0; background: var(--red); transition: width 1s cubic-bezier(.16,1,.3,1); }
.draw.in::after { width: 100%; }

/* stat count pulse */
.stat-n.counting { color: #ff5648; }

/* ══════════════════════════════════════════════
   ANIMATION LAYER v2 — premium motion
══════════════════════════════════════════════ */
.reveal {
  opacity: 0; transform: translateY(34px);
  transition: opacity .9s cubic-bezier(.16,1,.3,1), transform .9s cubic-bezier(.16,1,.3,1);
}
.reveal.in { opacity: 1; transform: none; }

.reveal-blur {
  opacity: 0; filter: blur(8px); transform: translateY(26px);
  transition: opacity 1s ease, filter 1s ease, transform 1s cubic-bezier(.16,1,.3,1);
}
.reveal-blur.in { opacity: 1; filter: blur(0); transform: none; }

/* card lifts — will-change only on elements that actually animate transform */
.svc-card {
  transition: background .25s ease, transform .35s cubic-bezier(.16,1,.3,1), box-shadow .35s ease;
  will-change: transform;
}
.svc-card:hover { transform: translateY(-6px); box-shadow: 0 20px 50px rgba(0,0,0,.45); }

.founder-badge { transition: transform .4s cubic-bezier(.16,1,.3,1), box-shadow .4s ease, background .3s ease; }
.founder-card:hover .founder-badge { transform: rotate(-8deg) scale(1.08); box-shadow: 0 0 26px rgba(204,42,30,.35); }

.pil { transition: background .25s ease, transform .35s cubic-bezier(.16,1,.3,1); }
.pil:hover { transform: translateY(-5px); }
.pil:hover .pil-n { color: var(--red); transition: color .3s ease; }

.stat { transition: transform .35s cubic-bezier(.16,1,.3,1); }
.stat:hover { transform: translateY(-4px); }

/* button shine sweep */
.btn { will-change: transform; }

/* eyebrow line grow */
.eyebrow::before { transition: width .6s cubic-bezier(.16,1,.3,1) .15s; }
.reveal .eyebrow::before, .rv .eyebrow::before { width: 0; }
.reveal.in .eyebrow::before, .rv.in .eyebrow::before { width: 22px; }

/* MARQUEE */
.marquee-band {
  position: relative; overflow: hidden;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 24px 0; margin: 10px 0; white-space: nowrap;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image:         linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: inline-block; will-change: transform;
  animation: marquee 26s linear infinite;
}
.marquee-track em {
  font-family: 'Big Shoulders Display', sans-serif; font-weight: 900; font-style: normal;
  font-size: clamp(1.4rem, 3vw, 2.1rem); text-transform: uppercase; letter-spacing: .04em;
  color: transparent; -webkit-text-stroke: 1px rgba(245,240,232,.45);
}
.marquee-track .dot { color: var(--red); margin: 0 22px; font-size: 1.4rem; vertical-align: middle; }
.marquee-band:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* nav cta pulse */
.nav-cta { position: relative; overflow: hidden; }

/* footer link underline draw */
/* (already defined above in .f-links a section) */

/* ══════════════════════════════════════════════
   STICKY "START A PROJECT" BAR
══════════════════════════════════════════════ */
#startbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 520;
  background: rgba(5,5,8,.94);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  gap: 22px; padding: 14px 56px 14px 20px;
  transform: translateY(115%); transition: transform .5s cubic-bezier(.16,1,.3,1);
}
#startbar.show { transform: translateY(0); }
#startbar .sb-txt { font-family: 'Barlow Condensed', sans-serif; font-weight: 600; font-size: 1rem; letter-spacing: .05em; text-transform: uppercase; color: var(--white); }
#startbar .sb-txt b { color: var(--red); }
#startbar .sb-cta {
  font-family: 'DM Mono', monospace; font-size: .6rem; letter-spacing: .2em;
  text-transform: uppercase; color: var(--black); background: var(--red);
  padding: 11px 22px; transition: background .2s, transform .2s; white-space: nowrap;
}
#startbar .sb-cta:hover { background: var(--red-dark); transform: translateY(-2px); }
#startbar .sb-cta:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }
#startbar .sb-x {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: var(--muted); font-size: 1rem;
  cursor: pointer; line-height: 1; padding: 6px; transition: color .2s;
}
#startbar .sb-x:hover { color: var(--white); }
#startbar .sb-x:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

@media (max-width: 560px) {
  #startbar { gap: 12px; padding: 12px 44px 12px 16px; }
  #startbar .sb-txt { font-size: .82rem; }
  #startbar .sb-cta { padding: 10px 15px; font-size: .55rem; }
}

/* ══════════════════════════════════════════════
   EXIT-INTENT POPUP
══════════════════════════════════════════════ */
#exitpop {
  position: fixed; inset: 0; z-index: 4500;
  background: rgba(3,3,5,.86);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; padding: 24px;
  opacity: 0; pointer-events: none; transition: opacity .35s ease;
}
#exitpop.show { opacity: 1; pointer-events: auto; }
#exitpop .ep-card {
  position: relative; max-width: 480px; width: 100%;
  background: #0a0a0e; border: 1px solid var(--line); border-top: 4px solid var(--red);
  padding: 48px 40px 38px; text-align: center;
  transform: translateY(24px) scale(.97);
  transition: transform .45s cubic-bezier(.16,1,.3,1);
}
#exitpop.show .ep-card { transform: none; }
#exitpop .ep-eyebrow { font-family: 'DM Mono', monospace; font-size: .55rem; letter-spacing: .3em; text-transform: uppercase; color: var(--red); margin-bottom: 16px; }
#exitpop .ep-title { font-family: 'Big Shoulders Display', sans-serif; font-weight: 900; font-size: clamp(2rem, 6vw, 2.8rem); text-transform: uppercase; line-height: .95; margin-bottom: 16px; }
#exitpop .ep-title .red { color: var(--red); }
#exitpop .ep-sub { font-family: 'Barlow', sans-serif; font-weight: 300; font-size: 1rem; line-height: 1.7; color: #9a9aa0; margin-bottom: 28px; }
#exitpop .ep-sub b { color: var(--white); font-weight: 400; }
#exitpop .ep-cta {
  display: inline-block; font-family: 'Big Shoulders Display', sans-serif; font-weight: 900;
  font-size: 1rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--black); background: var(--red); padding: 16px 38px;
  transition: background .2s, transform .2s;
}
#exitpop .ep-cta:hover { background: var(--red-dark); transform: translateY(-2px); }
#exitpop .ep-cta:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }
#exitpop .ep-no {
  display: block; margin-top: 18px; font-family: 'DM Mono', monospace;
  font-size: .52rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--dim); cursor: pointer; background: none; border: none; width: 100%; transition: color .2s;
}
#exitpop .ep-no:hover { color: var(--muted); }
#exitpop .ep-no:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; color: var(--muted); }
#exitpop .ep-x {
  position: absolute; top: 14px; right: 16px; background: none; border: none;
  color: var(--muted); font-size: 1.2rem; cursor: pointer; line-height: 1;
  padding: 4px; transition: color .2s;
}
#exitpop .ep-x:hover { color: var(--white); }
#exitpop .ep-x:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; color: var(--white); }

/* ══════════════════════════════════════════════
   RESPONSIVE — MOBILE
══════════════════════════════════════════════ */
@media (max-width: 820px) {
  .nav-links  { display: none; }
  .nav-burger { display: flex; }
  nav#nav.menu-open .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  nav#nav.menu-open .nav-burger span:nth-child(2) { opacity: 0; }
  nav#nav.menu-open .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .mobile-menu {
    position: fixed; inset: 0;
    /* Gap fix: was z-index 480 (behind nav 500) — bumped to 510 */
    z-index: 510;
    background: rgba(5,5,8,.98);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    display: none; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  }
  .mobile-menu.open { display: flex; }
  .mobile-menu a { font-family: 'Big Shoulders Display', sans-serif; font-weight: 900; font-size: 2.4rem; text-transform: uppercase; letter-spacing: .04em; }
  .mobile-menu a:focus-visible { outline: 2px solid var(--red); outline-offset: 6px; }
  .mobile-menu a span { color: var(--red); }
  footer { flex-direction: column; text-align: center; }
  .f-right { align-items: center; }
}
@media (min-width: 821px) { .mobile-menu { display: none !important; } }

/* ══════════════════════════════════════════════
   REDUCED MOTION — master override
   Gap 18: scroll-behavior handled at html level above
══════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  /* reveal systems */
  .reveal,
  .reveal-blur,
  .rv {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }
  /* marquee */
  .marquee-track { animation: none !important; }
  /* hero text entrance */
  .h1 .ln > span        { transform: none; transition: none; }
  .h1 .fillin           { color: var(--white); -webkit-text-stroke: 0; }
  .h-tag,.h-sub,.h-cta  { opacity: 1; transform: none; transition: none; }
  /* stat counters — show final value immediately (handled in JS too) */
  .stat-n { transition: none; }
  /* progress bar — no transition */
  #progress { transition: none; }
  /* card lifts */
  .svc-card,.pil,.stat  { transition: background .2s ease; }
  .svc-card:hover, .pil:hover, .stat:hover { transform: none; }
}

/* ══════════════════════════════════════════════
   Gap 16: HIGH CONTRAST / FORCED COLORS
   Ensures site is usable in Windows High Contrast mode
══════════════════════════════════════════════ */
@media (forced-colors: active) {
  :root {
    --red:   Highlight;
    --white: ButtonText;
    --black: Canvas;
    --muted: GrayText;
    --line:  ButtonBorder;
  }
  .btn-red {
    background: Highlight;
    color: HighlightText;
    forced-color-adjust: none;
  }
  .nav-cta {
    background: Highlight;
    color: HighlightText;
    forced-color-adjust: none;
  }
  body::after { display: none; } /* grain is invisible in high contrast */
  #loader     { background: Canvas; }
}

/* ══════════════════════════════════════════════
   Gap 20: PRINT STYLES
   Strips fixed UI, reverses colours, makes page legible on paper
══════════════════════════════════════════════ */
@media print {
  /* hide chrome */
  #loader, #progress, #startbar, #exitpop,
  nav#nav, .mobile-menu, .nav-burger,
  .marquee-band { display: none !important; }

  /* reset colours for white paper */
  body {
    background: #fff !important;
    color: #000 !important;
    font-size: 12pt;
    line-height: 1.5;
  }
  a { color: #000 !important; text-decoration: underline; }
  .btn, .nav-cta {
    border: 1px solid #000 !important;
    background: transparent !important;
    color: #000 !important;
    box-shadow: none !important;
  }
  /* reveal all hidden elements */
  .rv, .reveal, .reveal-blur {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
  /* prevent page breaks inside cards */
  .svc-card, .founder-card, .pil, .stat {
    page-break-inside: avoid;
    break-inside: avoid;
  }
  /* footer on every page */
  footer { border-top: 1px solid #ccc; }
}




/* ══════════════════════════════════════════════
   FWS WORDMARK — nav logo
══════════════════════════════════════════════ */
.nav-logo-fws {
  font-family: 'Big Shoulders Display', sans-serif;
  font-weight: 900;
  font-size: 1.35rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--white);
  line-height: 1;
  display: flex;
  align-items: center;
  transition: color .25s ease, transform .25s ease;
}
.nav-logo-fws:hover {
  color: var(--red);
  transform: scale(1.04);
}

/* ── Work card covers — fallback gradient bg per project ── */
.wc-logo.cover {
  position: relative;
  overflow: hidden;
}
.wc-logo.cover img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.wc-cover-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.wc-bg-turiya  { background: linear-gradient(145deg, #0d0805 0%, #1c0f08 50%, #0a0a0e 100%); }
.wc-bg-street  { background: linear-gradient(145deg, #080810 0%, #12121e 50%, #050508 100%); }
.wc-bg-reesh   { background: linear-gradient(145deg, #040e08 0%, #091408 50%, #050508 100%); }
.wc-bg-resen   { background: linear-gradient(145deg, #0a050a 0%, #140a14 50%, #050508 100%); }

/* project name label shown on cover when image fails */
.wc-cover-bg::after {
  content: attr(data-name);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Big Shoulders Display', sans-serif;
  font-weight: 900;
  font-size: 1.5rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(245, 240, 232, 0.18);
  padding: 12px;
  text-align: center;
}

/* ══════════════════════════════════════════════
   PREMIUM LAYER v2 — Sound, Lenis, Type, Micro, Transitions
══════════════════════════════════════════════ */

/* ── PAGE TRANSITION OVERLAY ── */
#fw-transition {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: var(--black);
  transform: translateY(100%);
  pointer-events: none;
}
#fw-transition.slide-in  { animation: ptIn  .45s cubic-bezier(.76,0,.24,1) forwards; }
#fw-transition.slide-out { animation: ptOut .45s cubic-bezier(.76,0,.24,1) forwards; }
@keyframes ptIn  { from { transform: translateY(100%); } to { transform: translateY(0%); } }
@keyframes ptOut { from { transform: translateY(0%);   } to { transform: translateY(-100%); } }

/* ── MAGNETIC BUTTONS ── */
.btn, .nav-cta, .submit {
  transform-origin: center;
  will-change: transform;
}

/* ── CHAR SPLIT ANIMATION ── */
.char-split .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(60%) rotate(4deg);
  transition: opacity .5s ease, transform .5s cubic-bezier(.16,1,.3,1);
}
.char-split.in .char { opacity: 1; transform: none; }

/* ── NAV LINK underline from center ── */
.nav-links a::after {
  left: 50% !important;
  transform: translateX(-50%);
  transition: width .3s ease !important;
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 100% !important; }

/* ── CARD TILT — perspective wrapper ── */
.svc-card, .wc-inner, .pil {
  transform-style: preserve-3d;
}

/* ── CONVERSATIONAL CONTACT ── */
#conv-contact {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px max(28px, calc((100vw - 700px)/2)) 80px;
}
.conv-step {
  display: none;
  flex-direction: column;
  gap: 0;
}
.conv-step.active { display: flex; }

.conv-q {
  font-family: 'Big Shoulders Display', sans-serif;
  font-weight: 900;
  font-size: clamp(2rem, 5vw, 3.6rem);
  text-transform: uppercase;
  line-height: .95;
  color: var(--white);
  margin-bottom: 40px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease, transform .6s cubic-bezier(.16,1,.3,1);
}
.conv-q .red { color: var(--red); }
.conv-step.active .conv-q { opacity: 1; transform: none; }

.conv-input-wrap {
  position: relative;
  border-bottom: 2px solid rgba(255,255,255,.15);
  transition: border-color .3s;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .5s ease .15s, transform .5s ease .15s, border-color .3s;
}
.conv-step.active .conv-input-wrap { opacity: 1; transform: none; }
.conv-input-wrap:focus-within { border-color: var(--red); }

.conv-input, .conv-select {
  background: transparent;
  border: none;
  outline: none;
  width: 100%;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: clamp(1.4rem, 3vw, 2rem);
  letter-spacing: .04em;
  color: var(--white);
  padding: 16px 0;
  caret-color: var(--red);
  -webkit-appearance: none;
}
.conv-select option { background: #0a0a0e; }
.conv-input::placeholder { color: rgba(245,240,232,.18); }

.conv-next {
  margin-top: 32px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: 'Big Shoulders Display', sans-serif;
  font-weight: 900;
  font-size: .95rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--black);
  background: var(--red);
  border: none;
  padding: 16px 34px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .35s ease .15s, transform .35s ease .15s, background .2s;
  align-self: flex-start;
}
.conv-step.active .conv-next { opacity: 1; transform: none; pointer-events: auto; }
.conv-next:hover { background: var(--red-dark); }

.conv-progress {
  display: flex;
  gap: 6px;
  margin-bottom: 60px;
}
.conv-dot {
  width: 24px;
  height: 2px;
  background: rgba(255,255,255,.15);
  transition: background .4s, width .4s;
}
.conv-dot.done { background: var(--red); }
.conv-dot.active { background: var(--white); width: 40px; }

.conv-back {
  font-family: 'DM Mono', monospace;
  font-size: .52rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--dim);
  background: none;
  border: none;
  cursor: pointer;
  margin-top: 16px;
  padding: 0;
  transition: color .2s;
  align-self: flex-start;
}
.conv-back:hover { color: var(--muted); }

.conv-submit-wrap { display: none; flex-direction: column; gap: 24px; }
.conv-submit-wrap.active { display: flex; }
.conv-summary {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 8px;
}
.conv-summary-row {
  display: flex;
  gap: 16px;
  align-items: baseline;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1rem;
  letter-spacing: .04em;
}
.conv-summary-row .sr-label {
  font-family: 'DM Mono', monospace;
  font-size: .48rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--red);
  min-width: 80px;
}
.conv-summary-row .sr-val { color: var(--white); font-weight: 600; text-transform: uppercase; }
.conv-send {
  font-family: 'Big Shoulders Display', sans-serif;
  font-weight: 900;
  font-size: 1rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--black);
  background: var(--red);
  border: none;
  padding: 20px 48px;
  cursor: pointer;
  align-self: flex-start;
  transition: background .2s, transform .2s;
}
.conv-send:hover { background: var(--red-dark); transform: translateY(-2px); }
.conv-done {
  display: none;
  font-family: 'Big Shoulders Display', sans-serif;
  font-weight: 900;
  font-size: clamp(1.8rem, 4vw, 3rem);
  text-transform: uppercase;
  line-height: 1;
  color: var(--white);
}
.conv-done .red { color: var(--red); }
.conv-done.show { display: block; }

@media (max-width: 560px) {
  #conv-contact { padding: 100px 24px 60px; }
  .conv-q { font-size: 1.8rem; }
}

/* ══════════════════════════════════════════════
   RESPONSIVE OVERHAUL — mobile / laptop / desktop
   Consistent across 360px → 2560px
══════════════════════════════════════════════ */

/* ── BASE: consistent wrap padding across all viewports ── */
.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 80px) !important;
}

/* ── NAV: fix alignment at all sizes ── */
nav#nav {
  padding: 22px clamp(20px, 5vw, 80px) !important;
}
.nav-logo-fws {
  font-size: clamp(1.1rem, 2vw, 1.35rem) !important;
}

/* ── SECTION TITLES: consistent across breakpoints ── */
.s-title {
  font-size: clamp(2.2rem, 5.5vw, 5.5rem) !important;
}

/* ── FOOTER ── */
footer {
  padding: 46px clamp(20px, 5vw, 80px) !important;
}

/* ══════════════════════════════════════
   MOBILE  ≤ 560px
══════════════════════════════════════ */
@media (max-width: 560px) {
  .wrap { padding: 0 20px !important; }
  nav#nav { padding: 18px 20px !important; }
  footer  { padding: 40px 20px !important; }

  .s-title { font-size: clamp(2rem, 8vw, 2.8rem) !important; }

  /* Services */
  .svc-grid { grid-template-columns: 1fr !important; gap: 12px !important; }
  .svc-card { padding: 28px 20px !important; }
  .sc-price  { font-size: 1.8rem !important; }

  /* About */
  .ab-grid  { grid-template-columns: 1fr !important; gap: 32px !important; }

  /* Why page */
  .pil-grid { grid-template-columns: 1fr !important; gap: 16px !important; }

  /* Contact */
  #conv-contact { padding: 100px 20px 60px !important; }
  .conv-q { font-size: 1.7rem !important; }

  /* Work cards */
  .work-card { width: 140px !important; }
}

/* ══════════════════════════════════════
   SMALL TABLET / LARGE MOBILE  561–820px
══════════════════════════════════════ */
@media (min-width: 561px) and (max-width: 820px) {
  .wrap { padding: 0 32px !important; }
  nav#nav { padding: 20px 32px !important; }
  footer  { padding: 44px 32px !important; }

  .s-title { font-size: clamp(2.4rem, 6vw, 3.8rem) !important; }

  .svc-grid { grid-template-columns: 1fr 1fr !important; }
  .ab-grid  { grid-template-columns: 1fr !important; gap: 40px !important; }
  .pil-grid { grid-template-columns: 1fr 1fr !important; }

  #conv-contact { padding: 110px 32px 60px !important; }
}

/* ══════════════════════════════════════
   LAPTOP  821–1280px (the misalignment range)
══════════════════════════════════════ */
@media (min-width: 821px) and (max-width: 1280px) {
  .wrap { padding: 0 clamp(40px, 4vw, 60px) !important; }
  nav#nav { padding: 22px clamp(40px, 4vw, 60px) !important; }
  footer  { padding: 46px clamp(40px, 4vw, 60px) !important; }

  .s-title { font-size: clamp(2.8rem, 5vw, 4.5rem) !important; }

  /* Ensure nav links don't overflow at 1024px */
  .nav-links { gap: clamp(18px, 2.5vw, 36px) !important; }
  .nav-links a { font-size: .5rem !important; }

  /* Services grid tighter on laptop */
  .svc-grid { grid-template-columns: repeat(2, 1fr) !important; }
}

/* ══════════════════════════════════════
   WIDE DESKTOP  1281px+
══════════════════════════════════════ */
@media (min-width: 1281px) {
  .wrap { padding: 0 80px !important; }
  nav#nav { padding: 26px 80px !important; }
  footer  { padding: 46px 80px !important; }
  .s-title { font-size: 5.5rem !important; }
}

/* ══════════════════════════════════════
   4K / ULTRAWIDE  1920px+
══════════════════════════════════════ */
@media (min-width: 1920px) {
  .wrap { max-width: 1440px !important; }
  .s-title { font-size: 6rem !important; }
  .h1 { font-size: 7rem !important; }
}

/* ── UNIVERSAL: prevent text overflow on any screen ── */
h1, h2, h3, .s-title, .h1 {
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: none;
}

/* ── NAV: prevent links wrapping on mid-size screens ── */
.nav-links {
  flex-shrink: 0;
  white-space: nowrap;
}

/* ── WORK page: responsive card size ── */
@media (max-width: 820px) {
  #workSpace { top: 60px !important; }
  .work-card { min-width: 130px !important; }
}
