/* ==========================================================================
   FIYA-MEDIA — site.css
   One stylesheet. Mobile-first. Dark base + single ember accent.
   Sections: 1 tokens · 2 reset/base · 3 type · 4 buttons/links · 5 header
   6 footer · 7 hero · 8 marquee · 9 cards · 10 before/after · 11 process
   12 testimonials · 13 forms · 14 FAQ · 15 case study · 16 lightbox
   17 404 · 18 reveals/motion · 19 utilities · 20 reduced motion
   ========================================================================== */

/* --- 1. Tokens ---------------------------------------------------------- */
:root {
  --ink:        #0E0E10;   /* base ground */
  --ink-2:      #141417;   /* raised surface */
  --ink-3:      #1B1B1F;   /* hover surface */
  --line:       #26262B;   /* hairline */
  --line-2:     #35353C;
  --paper:      #F4F1EC;   /* primary text */
  --muted:      #A9A49C;   /* secondary text — 7.9:1 on --ink */
  --muted-2:    #78736C;   /* tertiary / meta — decorative + large only */
  --ember:      #FF5A1F;   /* accent — 6.1:1 on --ink */
  --ember-lo:   #E24A12;   /* pressed */
  --gold:       #FFB01F;
  --flame:      linear-gradient(90deg, var(--ember) 0%, var(--gold) 100%);
  --flame-diag: linear-gradient(135deg, var(--ember) 0%, var(--gold) 100%);

  --wrap: 1200px;
  --gut: clamp(1.25rem, 4vw, 2.5rem);
  --s1: .5rem;  --s2: .75rem; --s3: 1rem;   --s4: 1.5rem;
  --s5: 2rem;   --s6: 3rem;   --s7: 4.5rem; --s8: 7rem;

  --r1: 6px; --r2: 12px; --r3: 20px; --r-pill: 999px;

  --font-display: 'Space Grotesk', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  --shadow-1: 0 1px 2px rgba(0,0,0,.4);
  --shadow-2: 0 8px 30px rgba(0,0,0,.45);
  --shadow-3: 0 24px 70px rgba(0,0,0,.55);
  --glow: 0 0 0 1px rgba(255,90,31,.35), 0 12px 40px -12px rgba(255,90,31,.45);

  --header-h: 68px;
}

/* SELF-HOSTING SWAP — when the WOFF2 files are in /fonts/, delete the
   Google Fonts <link> from every page's <head> and uncomment this block.
   Files needed: SpaceGrotesk-Variable.woff2, Inter-Variable.woff2

@font-face {
  font-family: 'Space Grotesk';
  src: url('/fonts/SpaceGrotesk-Variable.woff2') format('woff2-variations');
  font-weight: 300 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/fonts/Inter-Variable.woff2') format('woff2-variations');
  font-weight: 100 900; font-style: normal; font-display: swap;
}
*/

/* --- 2. Reset & base ---------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  text-wrap: pretty;
}
img, svg, video, canvas { display: block; max-width: 100%; }
img, video { height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
ul, ol { padding: 0; list-style: none; }

:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 3px;
  border-radius: 3px;
}
::selection { background: rgba(255,90,31,.28); color: var(--paper); }

/* Film grain — inline SVG, no image request. Sits above ground, below content. */
body::after {
  content: '';
  position: fixed; inset: -50%;
  pointer-events: none;
  z-index: 1;
  opacity: .038;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='160' height='160' filter='url(%23n)'/></svg>");
}

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.wrap-narrow { max-width: 760px; }

main { position: relative; z-index: 2; }

.section { padding-block: clamp(3.5rem, 9vw, 7rem); position: relative; }
.section-tight { padding-block: clamp(2.5rem, 6vw, 4rem); }

/* Ember glow — a soft radial wash behind a section. Decorative. */
.glow { position: relative; isolation: isolate; }
.glow::before {
  content: '';
  position: absolute; z-index: -1;
  left: 50%; top: 0;
  width: min(1100px, 130vw); aspect-ratio: 1;
  translate: -50% -45%;
  background: radial-gradient(circle, rgba(255,90,31,.16) 0%, rgba(255,90,31,.05) 38%, transparent 68%);
  pointer-events: none;
}
.glow-left::before { left: 0; translate: -35% -30%; }
.glow-low::before { top: auto; bottom: 0; translate: -50% 45%; }

.skip {
  position: absolute; left: var(--gut); top: 0;
  translate: 0 -150%;
  z-index: 200;
  background: var(--ember); color: var(--ink);
  font-weight: 600; padding: .6rem 1rem; border-radius: 0 0 var(--r1) var(--r1);
  transition: translate .2s var(--ease);
}
.skip:focus { translate: 0 0; }

/* --- 3. Type ------------------------------------------------------------ */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -.025em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 7.2vw, 5.25rem); }
h2 { font-size: clamp(2rem, 4.6vw, 3.35rem); line-height: 1.08; }
h3 { font-size: clamp(1.3rem, 2.1vw, 1.65rem); line-height: 1.2; }
h4 { font-size: 1.075rem; line-height: 1.3; letter-spacing: -.01em; }

p { max-width: 68ch; }
.lede { font-size: clamp(1.075rem, 1.7vw, 1.3rem); color: var(--muted); line-height: 1.6; }
.small { font-size: .875rem; }
.muted { color: var(--muted); }

/* Gradient word — one per headline, per the brand rules. */
.flame-word {
  background: var(--flame);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  padding-right: .06em; /* stops the italic-ish clip at the right edge */
}

.kicker {
  font-family: var(--font-display);
  font-size: .8125rem; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--ember);
  display: flex; align-items: center; gap: .7rem;
  margin-bottom: var(--s3);
}
.kicker::before {
  content: ''; width: 26px; height: 2px; flex: none;
  background: var(--flame); border-radius: 2px;
}

.section-head { margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head p { margin-top: var(--s3); }
.section-head-row { display: flex; flex-wrap: wrap; gap: var(--s4); align-items: end; justify-content: space-between; }

/* --- 4. Buttons & links ------------------------------------------------- */
.btn {
  --btn-bg: transparent;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--font-display);
  font-size: .975rem; font-weight: 500; letter-spacing: -.005em;
  white-space: nowrap;
  padding: .78rem 1.5rem;
  border-radius: var(--r-pill);
  text-decoration: none;
  color: var(--paper);
  background: var(--btn-bg);
  border: 1px solid var(--line-2);
  transition: transform .18s var(--ease), background-color .2s var(--ease),
              border-color .2s var(--ease), box-shadow .25s var(--ease), color .2s var(--ease);
  will-change: transform;
  overflow: visible;
}
.btn:hover { background: var(--ink-3); border-color: var(--line-2); }
.btn:active { transform: translateY(1px) scale(.985); }

.btn-primary {
  background: var(--flame);
  border-color: transparent;
  color: #16100B;
  font-weight: 600;
  box-shadow: 0 10px 30px -14px rgba(255,90,31,.85);
}
.btn-primary:hover { box-shadow: 0 14px 40px -12px rgba(255,90,31,.95); background: linear-gradient(90deg, #FF6A2F 0%, #FFBA35 100%); }
.btn-primary:active { background: linear-gradient(90deg, var(--ember-lo) 0%, #E9A014 100%); }

.btn-ghost { border-color: var(--line-2); }
.btn-sm { padding: .5rem 1rem; font-size: .875rem; }
.btn-lg { padding: .95rem 1.9rem; font-size: 1.05rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s3); }

/* click spark — a few CSS particles, injected by site.js */
.spark {
  position: absolute; left: 50%; top: 50%;
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--gold);
  pointer-events: none;
  animation: spark-fly .6s var(--ease-out) forwards;
}
@keyframes spark-fly {
  from { opacity: 1; transform: translate(-50%, -50%); }
  to   { opacity: 0; transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(.3); }
}

/* Text links — gradient underline that burn-wipes across on hover */
a { color: var(--paper); }
a:hover { color: var(--paper); }
.link {
  color: var(--paper);
  text-decoration: none;
  position: relative;
  display: inline-block;
  padding-bottom: 2px;
  font-weight: 500;
}
.link::after {
  content: '';
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--flame);
  border-radius: 2px;
  transform-origin: left;
  transform: scaleX(0);
  transition: transform .38s var(--ease-out);
}
.link:hover::after, .link:focus-visible::after { transform: scaleX(1); }
.link-arrow { display: inline-flex; align-items: center; gap: .45rem; }
.link-arrow svg { transition: transform .3s var(--ease-out); }
.link-arrow:hover svg { transform: translateX(4px); }

/* prose links inside body copy */
.prose a { color: var(--ember); text-decoration: underline; text-underline-offset: .18em; text-decoration-thickness: 1px; }
.prose a:hover { color: var(--gold); }

/* --- 5. Header & nav ---------------------------------------------------- */
.fuse {
  position: fixed; inset: 0 0 auto 0;
  height: 3px; z-index: 120;
  pointer-events: none;
}
.fuse-trail {
  height: 100%; width: 100%;
  transform-origin: left; transform: scaleX(0);
  background: var(--flame);
  box-shadow: 0 0 12px rgba(255,90,31,.8);
}
.fuse-tip {
  position: absolute; top: 50%; left: 0;
  width: 10px; height: 10px; border-radius: 50%;
  translate: -50% -50%;
  background: #FFD79A;
  box-shadow: 0 0 10px 3px rgba(255,140,40,.85), 0 0 22px 8px rgba(255,90,31,.4);
  opacity: 0;
}

.site-header {
  position: fixed; inset: 0 0 auto 0;
  z-index: 110;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background-color .3s var(--ease), backdrop-filter .3s var(--ease), border-color .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-stuck {
  background: rgba(14,14,16,.82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); width: 100%; }

.brand {
  display: inline-flex; align-items: center; gap: .55rem;
  text-decoration: none; color: var(--paper);
  font-family: var(--font-display);
  font-weight: 700; font-size: 1.0625rem;
  letter-spacing: .01em;
  white-space: nowrap;
}
.brand .flame-mark { width: 22px; height: 26px; flex: none; }
.brand em { font-style: normal; color: var(--muted-2); font-weight: 400; }

.nav { display: none; }
@media (min-width: 900px) {
  .nav { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2rem); }
}
.nav a {
  position: relative;
  text-decoration: none; color: var(--paper);
  font-size: .95rem; font-weight: 450;
  padding: .35rem 0;
  opacity: .82;
  transition: opacity .2s var(--ease);
}
.nav a:hover { opacity: 1; }
.nav a::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  height: 2px; width: 100%; border-radius: 2px;
  background: var(--flame);
  transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease-out);
}
.nav a:hover::after, .nav a:focus-visible::after { transform: scaleX(1); }
.nav a[aria-current="page"] { opacity: 1; }
.nav a[aria-current="page"]::after { transform: scaleX(1); }

.header-cta { display: none; }
@media (min-width: 900px) { .header-cta { display: inline-flex; } }

.burger {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: var(--r1);
  margin-right: -8px;
}
@media (min-width: 900px) { .burger { display: none; } }
.burger span {
  display: block; width: 22px; height: 2px; border-radius: 2px;
  background: var(--paper);
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.burger span + span { margin-top: 5px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0;
  z-index: 105;
  background: var(--ink);
  display: flex; flex-direction: column; justify-content: center;
  padding: var(--header-h) var(--gut) var(--s6);
  opacity: 0; visibility: hidden;
  transition: opacity .3s var(--ease), visibility .3s;
}
.mobile-menu::before {
  content: ''; position: absolute; inset: auto 0 0 0; height: 60%;
  background: radial-gradient(ellipse at 20% 100%, rgba(255,90,31,.16), transparent 65%);
  pointer-events: none;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; }
.mobile-menu ul { display: flex; flex-direction: column; gap: var(--s2); }
.mobile-menu a {
  font-family: var(--font-display);
  font-size: clamp(2rem, 9vw, 2.75rem);
  font-weight: 500; letter-spacing: -.02em;
  text-decoration: none; color: var(--paper);
  display: inline-block;
  opacity: 0; transform: translateY(14px);
}
.mobile-menu.is-open a { animation: menu-in .45s var(--ease-out) forwards; animation-delay: var(--d, 0ms); }
@keyframes menu-in { to { opacity: 1; transform: none; } }
.mobile-menu .btn { margin-top: var(--s5); align-self: start; }
body.menu-open { overflow: hidden; }

/* --- 6. Footer ---------------------------------------------------------- */
.cta-band {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--ink-2), var(--ink));
  padding-block: clamp(3.5rem, 8vw, 6rem);
}
.cta-band::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 90% at 50% 120%, rgba(255,90,31,.22), transparent 70%);
  opacity: .55;
  transition: opacity .6s var(--ease);
  pointer-events: none;
}
.cta-band:hover::before { opacity: 1; }
.cta-band .wrap { position: relative; text-align: center; display: grid; justify-items: center; gap: var(--s4); }
.cta-band p { margin-inline: auto; }
.cta-embers { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.cta-ember {
  position: absolute; bottom: -10px;
  width: 3px; height: 3px; border-radius: 50%;
  background: var(--gold);
  opacity: 0;
}
.cta-band:hover .cta-ember { animation: ember-rise 3.6s linear infinite; animation-delay: var(--d, 0s); }
@keyframes ember-rise {
  0%   { opacity: 0; transform: translateY(0) scale(.6); }
  12%  { opacity: .9; }
  80%  { opacity: .5; }
  100% { opacity: 0; transform: translateY(-260px) translateX(var(--dx, 12px)) scale(.2); }
}

.site-footer {
  padding-block: clamp(3rem, 6vw, 4.5rem) var(--s5);
  border-top: 1px solid transparent;
  color: var(--muted);
  font-size: .9375rem;
  position: relative; z-index: 2;
}
.footer-grid {
  display: grid; gap: var(--s6);
  grid-template-columns: 1fr;
}
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1.2fr; gap: var(--s5); } }
.footer-grid h4 {
  font-family: var(--font-display);
  font-size: .75rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted-2); margin-bottom: var(--s3); font-weight: 500;
}
.footer-grid ul { display: grid; gap: .55rem; }
.footer-grid a { color: var(--muted); text-decoration: none; transition: color .2s var(--ease); }
.footer-grid a:hover { color: var(--ember); }
.footer-tagline { color: var(--muted); max-width: 34ch; margin-top: var(--s3); }
.socials { display: flex; gap: var(--s2); margin-top: var(--s4); }
.socials a {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  transition: border-color .2s var(--ease), background-color .2s var(--ease), transform .2s var(--ease);
}
.socials a:hover { border-color: var(--ember); background: rgba(255,90,31,.1); transform: translateY(-2px); }
.footer-bottom {
  margin-top: var(--s6);
  padding-top: var(--s4);
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4);
  justify-content: space-between;
  color: var(--muted-2); font-size: .875rem;
}

/* --- 7. Hero ------------------------------------------------------------ */
.hero {
  position: relative;
  min-height: min(94svh, 900px);
  display: flex; align-items: center;
  padding-top: calc(var(--header-h) + var(--s6));
  padding-bottom: var(--s7);
  overflow: hidden;
}
.hero-canvas { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-glow {
  position: absolute; z-index: 0; pointer-events: none;
  left: 50%; top: 58%; translate: -50% -50%;
  width: min(1200px, 150vw); aspect-ratio: 1.35;
  background: radial-gradient(ellipse at center, rgba(255,90,31,.20) 0%, rgba(255,90,31,.07) 34%, transparent 66%);
}
.hero .wrap { position: relative; z-index: 2; }
.hero-inner { max-width: 62ch; }
.hero h1 { max-width: 15ch; }
.hero .lede { margin-top: var(--s4); max-width: 52ch; }
.hero .btn-row { margin-top: var(--s5); }
.hero-trust {
  margin-top: var(--s5);
  display: flex; flex-wrap: wrap; gap: .55rem 1rem;
  font-size: .875rem; color: var(--muted-2);
  font-family: var(--font-display); letter-spacing: .04em;
}
.hero-trust span { display: inline-flex; align-items: center; gap: 1rem; }
.hero-trust span:not(:last-child)::after { content: '·'; color: var(--line-2); }

/* headline ignition entrance */
.ignite-line { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .06em; }
.ignite-word { display: inline-block; }
.js .hero h1 .ignite-word { transform: translateY(105%); opacity: 0; }
.js .hero h1.lit .ignite-word {
  animation: word-rise .85s var(--ease-out) forwards;
  animation-delay: var(--d, 0ms);
}
@keyframes word-rise { to { transform: none; opacity: 1; } }

/* the sweep that "lights" the headline */
.js .hero h1 .flame-word { color: transparent; background: var(--flame); background-size: 200% 100%; background-position: 100% 0; -webkit-background-clip: text; background-clip: text; }
.js .hero h1.swept .flame-word { animation: sweep 1.1s var(--ease) forwards; }
@keyframes sweep { to { background-position: 0 0; } }

.js .hero-fade { opacity: 0; transform: translateY(16px); }
.js .hero.ready .hero-fade { animation: hero-fade-up .7s var(--ease-out) forwards; animation-delay: var(--d, 0ms); }
@keyframes hero-fade-up { to { opacity: 1; transform: none; } }

/* --- 8. Client marquee -------------------------------------------------- */
.marquee {
  position: relative;
  border-block: 1px solid var(--line);
  padding-block: var(--s4);
  overflow: hidden;
}
.marquee-label {
  font-size: .75rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted-2); font-family: var(--font-display);
  margin-bottom: var(--s3);
}
.marquee-viewport {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex; align-items: center; gap: clamp(2.5rem, 6vw, 5rem);
  width: max-content;
  animation: marquee 38s linear infinite;
  will-change: transform;
}
.marquee-viewport:hover .marquee-track,
.marquee-viewport:focus-within .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee-item {
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.7vw, 1.25rem);
  font-weight: 500; letter-spacing: .02em;
  color: var(--muted-2);
  white-space: nowrap;
  text-decoration: none;
  transition: color .25s var(--ease);
  display: inline-flex; align-items: center; gap: .6rem;
}
.marquee-item::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--line-2); flex: none;
  transition: background .25s var(--ease);
}
.marquee-item:hover, .marquee-item:focus-visible { color: var(--paper); }
.marquee-item:hover::before { background: var(--ember); }
.marquee-item img { height: 46px; width: auto; display: block; opacity: .85; transition: opacity .25s; filter: drop-shadow(0 0 9px rgba(255, 190, 130, .3)); }
.marquee-item:hover img, .marquee-item:focus-visible img { opacity: 1; }

/* --- 9. Cards ----------------------------------------------------------- */
.grid { display: grid; gap: var(--s4); }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
@media (min-width: 700px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 700px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

/* Work card — the "heat up" card */
.work-card {
  position: relative;
  display: block;
  text-decoration: none; color: inherit;
  border-radius: var(--r3);
  background: var(--ink-2);
  border: 1px solid var(--line);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform .35s var(--ease-out), border-color .3s var(--ease), box-shadow .35s var(--ease);
  will-change: transform;
}
.work-card::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--flame-diag);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0;
  transition: opacity .35s var(--ease);
  pointer-events: none; z-index: 3;
}
.work-card:hover, .work-card:focus-visible, .work-card.is-active { box-shadow: var(--shadow-3), 0 0 50px -18px rgba(255,90,31,.55); }
.work-card:hover::before, .work-card:focus-visible::before, .work-card.is-active::before { opacity: 1; }

.work-card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--ink-3);
}
.work-card-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s var(--ease-out), filter .5s var(--ease);
  filter: saturate(.9);
}
.work-card:hover .work-card-media img,
.work-card.is-active .work-card-media img { transform: scale(1.03); filter: saturate(1.05); }
.work-card-media::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(14,14,16,.78) 100%);
  pointer-events: none;
}

.work-card-body { padding: var(--s4); position: relative; z-index: 2; }
.work-card-industry {
  font-size: .75rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted-2); font-family: var(--font-display);
}
.work-card h3 { margin-top: .35rem; }
.work-card-cta {
  margin-top: var(--s3);
  display: inline-flex; align-items: center; gap: .4rem;
  color: var(--ember); font-size: .9rem; font-weight: 500;
  font-family: var(--font-display);
}
.work-card-cta svg { transition: transform .3s var(--ease-out); }
.work-card:hover .work-card-cta svg { transform: translateX(4px); }

/* tags slide in on hover, but exist in the DOM always */
.tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: var(--s3); }
.tag {
  font-size: .75rem; letter-spacing: .04em;
  padding: .22rem .6rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-2);
  color: var(--muted);
  background: rgba(255,255,255,.02);
  white-space: nowrap;
}
.work-card .tags .tag { transition: transform .4s var(--ease-out), opacity .35s var(--ease); }
@media (hover: hover) and (min-width: 700px) {
  .js .work-card .tags .tag { opacity: 0; transform: translateY(8px); }
  .js .work-card:hover .tags .tag,
  .js .work-card:focus-visible .tags .tag { opacity: 1; transform: none; transition-delay: var(--d, 0ms); }
}
.tag-accent { border-color: rgba(255,90,31,.4); color: #FFB48D; background: rgba(255,90,31,.08); }

/* Service card */
.service-card {
  display: block; text-decoration: none; color: inherit;
  padding: var(--s4);
  border-radius: var(--r2);
  border: 1px solid var(--line);
  background: var(--ink-2);
  transition: border-color .3s var(--ease), background-color .3s var(--ease), transform .3s var(--ease-out);
}
.service-card:hover { border-color: rgba(255,90,31,.45); background: var(--ink-3); transform: translateY(-3px); }
.service-card .icon { color: var(--ember); margin-bottom: var(--s3); }
.service-card h3 { font-size: 1.2rem; }
.service-card p { color: var(--muted); margin-top: .5rem; font-size: .9375rem; }
.service-card .work-card-cta { margin-top: var(--s3); }

/* Line-icon draw-in */
.icon svg { width: 34px; height: 34px; }
.icon path, .icon circle, .icon line, .icon rect, .icon polyline, .icon polygon {
  fill: none; stroke: currentColor; stroke-width: 1.4;
  stroke-linecap: round; stroke-linejoin: round;
}
.js .icon-draw path, .js .icon-draw circle, .js .icon-draw line,
.js .icon-draw rect, .js .icon-draw polyline, .js .icon-draw polygon {
  stroke-dasharray: var(--len, 200); stroke-dashoffset: var(--len, 200);
}
.js .icon-draw.drawn path, .js .icon-draw.drawn circle, .js .icon-draw.drawn line,
.js .icon-draw.drawn rect, .js .icon-draw.drawn polyline, .js .icon-draw.drawn polygon {
  animation: draw .9s var(--ease-out) forwards; animation-delay: var(--d, 0ms);
}
@keyframes draw { to { stroke-dashoffset: 0; } }

/* Value props */
.prop {
  padding-top: var(--s4);
  border-top: 1px solid var(--line);
}
.prop-num {
  font-family: var(--font-display);
  font-size: .8125rem; letter-spacing: .16em;
  color: var(--ember); margin-bottom: var(--s3);
}
.prop h3 { font-size: 1.2rem; }
.prop p { color: var(--muted); margin-top: .6rem; font-size: .9375rem; }
.counter { font-variant-numeric: tabular-nums; color: var(--paper); font-weight: 600; }

/* --- 10. Before / after ------------------------------------------------- */
.ba {
  position: relative;
  border-radius: var(--r3);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--ink-2);
  aspect-ratio: 16 / 10;
  touch-action: pan-y;
  cursor: ew-resize;
  user-select: none; -webkit-user-select: none;
}
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-after { clip-path: inset(0 0 0 var(--pos, 50%)); }
.ba-handle {
  position: absolute; top: 0; bottom: 0;
  left: var(--pos, 50%);
  width: 2px;
  background: var(--flame);
  box-shadow: 0 0 18px rgba(255,90,31,.7);
  z-index: 3;
  translate: -50% 0;
}
.ba-knob {
  position: absolute; top: 50%; left: 50%;
  translate: -50% -50%;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--ink);
  border: 1px solid rgba(255,90,31,.7);
  display: grid; place-items: center;
  box-shadow: 0 6px 24px rgba(0,0,0,.6), 0 0 24px -6px rgba(255,90,31,.8);
  color: var(--ember);
  cursor: grab;
}
.ba-knob:active { cursor: grabbing; }
.ba-label {
  position: absolute; bottom: var(--s3);
  z-index: 4;
  font-family: var(--font-display);
  font-size: .75rem; letter-spacing: .14em; text-transform: uppercase;
  padding: .3rem .7rem; border-radius: var(--r-pill);
  background: rgba(14,14,16,.75);
  backdrop-filter: blur(6px);
  border: 1px solid var(--line);
  color: var(--muted);
}
.ba-label-before { left: var(--s3); }
.ba-label-after { right: var(--s3); color: #FFB48D; border-color: rgba(255,90,31,.35); }
.ba-hint { margin-top: var(--s3); font-size: .875rem; color: var(--muted-2); }

/* --- 11. Process strip -------------------------------------------------- */
.process { position: relative; }
.process-layout { display: grid; gap: var(--s5); }
@media (min-width: 940px) {
  .process-layout { grid-template-columns: 340px 1fr; gap: var(--s7); align-items: start; }
  .process-sticky { position: sticky; top: calc(var(--header-h) + var(--s5)); }
}
.process-steps { display: grid; gap: var(--s4); }
@media (min-width: 940px) { .process-steps { gap: clamp(3rem, 9vh, 5.5rem); } }
.step {
  position: relative;
  padding-left: 3.25rem;
  min-height: 64px;
}
.step::before { /* the fuse rail */
  content: '';
  position: absolute; left: 17px; top: 6px; bottom: -2rem;
  width: 2px;
  background: var(--line);
}
@media (min-width: 940px) { .step::before { bottom: calc(-1 * clamp(3rem, 9vh, 5.5rem)); } }
.step:last-child::before { display: none; }
.step-dot {
  position: absolute; left: 8px; top: 2px;
  width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid var(--line-2);
  background: var(--ink);
  transition: border-color .4s var(--ease), box-shadow .4s var(--ease), background-color .4s var(--ease);
}
.step.lit .step-dot {
  border-color: var(--ember);
  background: var(--ember);
  box-shadow: 0 0 0 5px rgba(255,90,31,.14), 0 0 22px rgba(255,90,31,.7);
}
.step .icon { color: var(--muted-2); transition: color .4s var(--ease); margin-bottom: .75rem; }
.step.lit .icon { color: var(--ember); }
.step h3 { font-size: 1.35rem; transition: color .4s var(--ease); }
.step p { color: var(--muted); margin-top: .4rem; }
.js .step { opacity: .45; transition: opacity .5s var(--ease); }
.js .step.lit { opacity: 1; }
.process-fuse {
  position: absolute; left: 17px; top: 6px;
  width: 2px;
  background: var(--flame);
  box-shadow: 0 0 12px rgba(255,90,31,.6);
  height: var(--h, 0px);
  transition: height .25s linear;
  z-index: 1;
}

/* --- 12. Testimonials --------------------------------------------------- */
.quotes { position: relative; }
.quotes-viewport { overflow: hidden; margin-inline: calc(var(--gut) * -1); padding-inline: var(--gut); }
.quotes-track {
  display: flex; gap: var(--s4);
  transition: transform .5s var(--ease-out);
  cursor: grab;
}
.quotes-track.dragging { cursor: grabbing; transition: none; }
.quote {
  flex: 0 0 min(88%, 420px);
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--r2);
  padding: var(--s5) var(--s4) var(--s4);
  display: flex; flex-direction: column; gap: var(--s3);
  position: relative;
}
.quote::before {
  content: '';
  position: absolute; left: var(--s4); top: 0;
  width: 34px; height: 2px; border-radius: 2px;
  background: var(--flame);
}
.quote blockquote { font-size: 1.0625rem; line-height: 1.6; flex: 1; }
.quote figcaption { color: var(--muted); font-size: .875rem; margin-top: auto; }
.quote figcaption strong { color: var(--paper); display: block; font-weight: 600; font-size: .9375rem; }
.quotes-controls { display: flex; align-items: center; gap: var(--s3); margin-top: var(--s4); }
.q-btn {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line-2);
  display: grid; place-items: center;
  color: var(--paper);
  transition: border-color .2s var(--ease), background-color .2s var(--ease), opacity .2s;
}
.q-btn:hover:not(:disabled) { border-color: var(--ember); background: rgba(255,90,31,.1); }
.q-btn:disabled { opacity: .35; cursor: default; }
.q-dots { display: flex; gap: .45rem; margin-left: auto; }
.q-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--line-2);
  transition: background .3s var(--ease), width .3s var(--ease);
}
.q-dot[aria-current="true"] { background: var(--ember); width: 20px; border-radius: var(--r-pill); }

/* --- 13. Forms ---------------------------------------------------------- */
.form { display: grid; gap: var(--s4); }
.field { position: relative; }
.field input, .field textarea, .field select {
  width: 100%;
  background: var(--ink-2);
  border: 1px solid var(--line-2);
  border-radius: var(--r2);
  padding: 1.4rem .95rem .6rem;
  color: var(--paper);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), background-color .25s var(--ease);
  appearance: none;
}
.field textarea { min-height: 150px; resize: vertical; line-height: 1.6; }
.field select { cursor: pointer; padding-right: 2.5rem; }
.field-select::after {
  content: ''; position: absolute; right: 1.1rem; top: 60%;
  width: 8px; height: 8px;
  border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted);
  transform: translateY(-50%) rotate(45deg);
  pointer-events: none;
}
.field label {
  position: absolute; left: 1rem; top: 1.05rem;
  color: var(--muted);
  font-size: 1rem;
  pointer-events: none;
  transform-origin: left top;
  transition: transform .2s var(--ease), color .2s var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--ember);
  box-shadow: 0 0 0 3px rgba(255,90,31,.16), 0 0 26px -8px rgba(255,90,31,.6);
  background: var(--ink-3);
}
.field textarea + label { top: 1.05rem; }
.field input:focus + label, .field textarea:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:not(:placeholder-shown) + label,
.field select + label { transform: translateY(-.62rem) scale(.72); color: var(--muted-2); }
.field input:focus + label, .field textarea:focus + label, .field select:focus + label { color: var(--ember); }
.field .req { color: var(--ember); }
.field-error {
  display: block; min-height: 1.15rem;
  font-size: .8125rem; color: #FF9166; margin-top: .35rem;
}
.field.invalid input, .field.invalid textarea, .field.invalid select { border-color: #FF6B3D; }
.field.invalid { animation: shake .4s var(--ease); }
@keyframes shake {
  0%,100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  50% { transform: translateX(5px); }
  75% { transform: translateX(-3px); }
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-submit { justify-self: start; min-width: 190px; }
.form-submit[data-state="sending"] { pointer-events: none; }
.form-submit .flame-loader { display: none; width: 18px; height: 18px; }
.form-submit[data-state="sending"] .flame-loader { display: block; animation: flicker .8s ease-in-out infinite alternate; }
.form-submit[data-state="sending"] .btn-label { opacity: .7; }
@keyframes flicker { from { transform: scale(.85) rotate(-4deg); opacity: .7; } to { transform: scale(1.05) rotate(4deg); opacity: 1; } }
.form-status {
  font-size: .9375rem;
  padding: var(--s3) var(--s4);
  border-radius: var(--r2);
  border: 1px solid var(--line-2);
  background: var(--ink-2);
}
.form-status[hidden] { display: none; }
.form-status.ok { border-color: rgba(255,90,31,.45); color: var(--paper); }
.form-status.err { border-color: #FF6B3D; color: #FFB48D; }

.contact-layout { display: grid; gap: var(--s6); }
@media (min-width: 940px) { .contact-layout { grid-template-columns: 1.25fr .85fr; gap: var(--s7); align-items: start; } }
.contact-direct { display: grid; gap: var(--s4); align-content: start; }
.contact-item { display: grid; gap: .2rem; padding-bottom: var(--s4); border-bottom: 1px solid var(--line); }
.contact-item h4 { font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-2); font-family: var(--font-display); }
.contact-item a { font-family: var(--font-display); font-size: 1.2rem; text-decoration: none; color: var(--paper); }
.contact-item a:hover { color: var(--ember); }

/* --- 14. FAQ ------------------------------------------------------------ */
.faq { display: grid; gap: 0; max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s4);
  padding: var(--s4) 0;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  font-weight: 500; letter-spacing: -.01em;
  list-style: none;
  transition: color .2s var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--ember); }
.faq summary .chev {
  flex: none; width: 22px; height: 22px;
  color: var(--ember);
  transition: transform .3s var(--ease);
}
.faq details[open] summary .chev { transform: rotate(45deg); }
.faq .faq-body { overflow: hidden; }
.faq .faq-body > div { padding-bottom: var(--s4); color: var(--muted); }
.faq .faq-body p + p { margin-top: var(--s3); }

/* --- 15. Case study ----------------------------------------------------- */
.page-head { padding-top: calc(var(--header-h) + clamp(3rem, 8vw, 5.5rem)); padding-bottom: clamp(2rem, 5vw, 3.5rem); }
.page-head .lede { margin-top: var(--s4); }
.breadcrumb { font-size: .875rem; color: var(--muted-2); margin-bottom: var(--s3); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--ember); }

.case-layout { display: grid; gap: var(--s6); }
@media (min-width: 940px) {
  .case-layout { grid-template-columns: 260px 1fr; gap: var(--s7); align-items: start; }
  .case-meta { position: sticky; top: calc(var(--header-h) + var(--s5)); }
}
.case-meta dl { display: grid; gap: var(--s4); }
.case-meta dt { font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-2); font-family: var(--font-display); margin-bottom: .3rem; }
.case-meta dd { margin: 0; color: var(--paper); font-size: .9375rem; }
.case-meta dd ul { display: grid; gap: .3rem; color: var(--muted); }
.case-meta .btn { margin-top: var(--s4); }

.case-body { display: grid; gap: clamp(2.5rem, 6vw, 4rem); }
.case-body h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: var(--s3); }
.case-body p + p { margin-top: var(--s3); }
.case-body p { color: var(--muted); }
.case-body ul.ticks { display: grid; gap: .6rem; margin-top: var(--s3); }
.case-body ul.ticks li { display: flex; gap: .7rem; color: var(--muted); }
.case-body ul.ticks li::before { content: ''; flex: none; width: 6px; height: 6px; margin-top: .62rem; border-radius: 50%; background: var(--flame); }

.gallery { display: grid; gap: var(--s3); grid-template-columns: 1fr; }
@media (min-width: 700px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
.gallery button {
  padding: 0; border-radius: var(--r2); overflow: hidden;
  border: 1px solid var(--line);
  background: var(--ink-2);
  transition: border-color .3s var(--ease), transform .3s var(--ease-out);
  display: block;
}
.gallery button:hover { border-color: rgba(255,90,31,.5); transform: translateY(-2px); }
.gallery img { width: 100%; height: auto; }

.case-video { border-radius: var(--r2); overflow: hidden; border: 1px solid var(--line); }
.case-video video, .case-video img { width: 100%; }

.prevnext { display: grid; gap: var(--s3); border-top: 1px solid var(--line); padding-top: var(--s5); }
@media (min-width: 700px) { .prevnext { grid-template-columns: repeat(2, 1fr); } }
.pn-link {
  display: grid; gap: .25rem;
  padding: var(--s4);
  border: 1px solid var(--line); border-radius: var(--r2);
  text-decoration: none; color: inherit;
  background: var(--ink-2);
  transition: border-color .3s var(--ease), background .3s var(--ease);
  position: relative; overflow: hidden;
}
.pn-link:hover { border-color: rgba(255,90,31,.45); background: var(--ink-3); }
.pn-link span { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); font-family: var(--font-display); }
.pn-link strong { font-family: var(--font-display); font-size: 1.2rem; font-weight: 500; }
.pn-link.next { text-align: right; }
.pn-preview {
  position: absolute; right: var(--s4); top: 50%; translate: 0 -50%;
  width: 76px; aspect-ratio: 4/3; object-fit: cover;
  border-radius: var(--r1);
  opacity: 0; transform: translateX(8px);
  transition: opacity .3s var(--ease), transform .35s var(--ease-out);
  pointer-events: none;
}
.pn-link.next .pn-preview { right: auto; left: var(--s4); transform: translateX(-8px); }
.pn-link:hover .pn-preview { opacity: .85; transform: none; }

/* --- 16. Lightbox ------------------------------------------------------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(8,8,9,.94);
  backdrop-filter: blur(8px);
  display: grid; place-items: center;
  padding: var(--gut);
  opacity: 0; visibility: hidden;
  transition: opacity .25s var(--ease), visibility .25s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img { max-width: min(1100px, 100%); max-height: 82svh; object-fit: contain; border-radius: var(--r2); }
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line-2);
  background: rgba(20,20,23,.8);
  color: var(--paper);
}
.lightbox-close { top: var(--gut); right: var(--gut); }
.lightbox-prev { left: var(--gut); top: 50%; translate: 0 -50%; }
.lightbox-next { right: var(--gut); top: 50%; translate: 0 -50%; }
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { border-color: var(--ember); color: var(--ember); }
.lightbox-caption { position: absolute; bottom: var(--gut); left: 50%; translate: -50% 0; color: var(--muted); font-size: .875rem; }

/* --- 17. 404 ------------------------------------------------------------ */
.page-404 { min-height: 100svh; display: grid; place-items: center; text-align: center; position: relative; overflow: hidden; }
.page-404 .wrap { display: grid; justify-items: center; gap: var(--s4); }
.page-404 h1 { font-size: clamp(3rem, 12vw, 7rem); }
.cursor-ember {
  position: fixed; top: 0; left: 0;
  width: 12px; height: 12px; border-radius: 50%;
  background: radial-gradient(circle, #FFD79A 0%, var(--ember) 55%, transparent 72%);
  box-shadow: 0 0 20px 6px rgba(255,90,31,.5);
  pointer-events: none; z-index: 90;
  opacity: 0;
  will-change: transform;
}

/* --- 18. Reveals & page transitions ------------------------------------- */
.js [data-reveal] { opacity: 0; transform: translateY(18px); }
.js [data-reveal].revealed {
  opacity: 1; transform: none;
  transition: opacity .6s var(--ease-out), transform .7s var(--ease-out);
  transition-delay: var(--d, 0ms);
}

@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .18s var(--ease) both; }
::view-transition-new(root) { animation: vt-in .28s var(--ease-out) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(8px); } }

/* --- 19. Utilities ------------------------------------------------------ */
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.stack-sm > * + * { margin-top: var(--s3); }
.stack > * + * { margin-top: var(--s4); }
.center { text-align: center; }
.media-frame { border-radius: var(--r3); overflow: hidden; border: 1px solid var(--line); background: var(--ink-2); }
.about-teaser { display: grid; gap: var(--s5); align-items: center; }
@media (min-width: 800px) { .about-teaser { grid-template-columns: .8fr 1fr; gap: var(--s7); } }

/* --- 20. Reduced motion — content stays, movement stops ----------------- */
@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;
  }
  .js [data-reveal] { opacity: 1 !important; transform: none !important; }
  .js .hero h1 .ignite-word { transform: none !important; opacity: 1 !important; }
  .js .hero h1 .flame-word { background-position: 0 0 !important; }
  .js .hero-fade { opacity: 1 !important; transform: none !important; }
  .js .step { opacity: 1 !important; }
  .js .work-card .tags .tag { opacity: 1 !important; transform: none !important; }
  .marquee-track { animation: none !important; transform: none !important; flex-wrap: wrap; width: 100%; justify-content: center; row-gap: var(--s3); }
  .marquee-viewport { -webkit-mask-image: none; mask-image: none; }
  .cursor-ember, .hero-canvas { display: none !important; }
  .hero-glow { opacity: 1; }
  .js .icon-draw path, .js .icon-draw circle, .js .icon-draw line,
  .js .icon-draw rect, .js .icon-draw polyline, .js .icon-draw polygon {
    stroke-dasharray: none !important; stroke-dashoffset: 0 !important;
  }
  @view-transition { navigation: none; }
}
