/* ==========================================================================
   Tactik Studio for Salons — Design System v2
   One stylesheet. Tokens first. No !important. No patch files.
   ========================================================================== */

/* --- 1. Tokens ----------------------------------------------------------- */
:root {
  /* Surfaces — derived from the approved logo (#FE6F57 / #343733) */
  --paper:      #FFFBF8;
  --paper-warm: #FDF1EA;
  --paper-blush:#FBE4DD;
  --ink:        #343733;   /* exact logo charcoal */
  --ink-deep:   #1F221E;   /* dark sections */
  --ink-soft:   #5F635C;
  --ink-mute:   #8C918A;

  /* Signal — exact logo coral, plus an accessible variant for small text */
  --coral:      #FE6F57;   /* brand coral: display, fills, large type */
  --coral-ink:  #C0432B;   /* 5:1 on paper — links, labels, small text */
  --coral-soft: #FFB6A4;
  --clay:       #A63A22;

  /* Structure */
  --line:       rgba(52, 55, 51, 0.15);
  --line-soft:  rgba(52, 55, 51, 0.08);
  --line-dark:  rgba(255, 251, 248, 0.16);

  /* Type — one clean family. The logo supplies the serif character; headlines
     stay geometric so they read instantly at any size. Swap this one line to
     change every headline on the site. */
  --display: 'Outfit', 'Segoe UI', system-ui, sans-serif;
  --text:    'Outfit', 'Segoe UI', system-ui, sans-serif;

  --step--1: clamp(0.78rem, 0.76rem + 0.1vw, 0.84rem);
  --step-0:  clamp(1rem, 0.96rem + 0.2vw, 1.12rem);
  --step-1:  clamp(1.18rem, 1.1rem + 0.4vw, 1.4rem);
  --step-2:  clamp(1.5rem, 1.3rem + 1vw, 2.1rem);
  --step-3:  clamp(1.75rem, 1.5rem + 1.4vw, 2.6rem);
  --step-4:  clamp(2.2rem, 1.7rem + 2.4vw, 3.6rem);
  --step-5:  clamp(2.6rem, 1.9rem + 3.4vw, 4.7rem);

  /* Space — 4px base */
  --s1: 4px;  --s2: 8px;  --s3: 12px; --s4: 16px; --s5: 24px;
  --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px; --s10: 144px;

  /* Shape — brand rule: near-square */
  --r-brand: 2px;
  --r-util:  10px;
  --r-pill:  999px;

  --gutter: clamp(20px, 5vw, 72px);
  --measure: 62ch;
  --shadow-lift: 0 22px 60px -30px rgba(28, 21, 18, 0.42);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 480ms;
}

/* --- 2. Reset ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: var(--step-0);
  line-height: 1.6;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p, figure, blockquote, ul, ol, dl { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }

/* Focus — the v1 site had none. This is non-negotiable. */
:focus-visible {
  outline: 3px solid var(--coral-ink);
  outline-offset: 3px;
  border-radius: var(--r-brand);
}
.on-dark :focus-visible { outline-color: #FFD9C9; }

/* Sticky-header offset so anchor targets are never hidden. */
:target, [id] { scroll-margin-top: clamp(90px, 12vh, 130px); }

.skip {
  position: absolute; left: var(--s4); top: -80px; z-index: 200;
  padding: var(--s3) var(--s5); background: var(--ink); color: var(--paper);
  border-radius: var(--r-util); transition: top 200ms var(--ease);
}
.skip:focus { top: var(--s4); }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* --- 3. Type ------------------------------------------------------------- */
.display, h1, h2 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-4); }
h3 { font-family: var(--text); font-size: var(--step-2); font-weight: 600;
  line-height: 1.15; letter-spacing: -0.015em; }
h4 { font-family: var(--text); font-size: var(--step-1); font-weight: 600; line-height: 1.25; }
em { font-style: normal; color: var(--coral); }
.on-dark em { color: var(--coral-soft); }

p { max-width: var(--measure); }
.lede { font-size: var(--step-1); line-height: 1.5; color: var(--ink-soft); max-width: 46ch; }
.prose p + p, .prose > * + * { margin-top: var(--s5); }
.prose h3 { margin-top: var(--s8); }
/* Lists are marked up two ways: a <ul>/<ol> nested inside a .prose block, and
   a bare list that carries .prose itself. Both need the markers, so every rule
   below is written for both shapes. */
.prose ol, ol.prose { counter-reset: n; }
.prose ol li, ol.prose > li { counter-increment: n; position: relative;
  padding-left: var(--s7); margin-top: var(--s4); }
.prose ol li::before, ol.prose > li::before {
  content: counter(n, decimal-leading-zero); position: absolute; left: 0; top: 0.15em;
  font: 600 var(--step--1)/1 var(--text); letter-spacing: .1em; color: var(--coral-ink);
}
.prose ul li, ul.prose > li { position: relative; padding-left: var(--s6); margin-top: var(--s3); }
.prose ul li::before, ul.prose > li::before { content: ""; position: absolute; left: 6px;
  top: 0.7em; width: 12px; height: 1px; background: var(--coral); }
/* The generic child spacing would otherwise double up on list items. */
ul.prose > li + li, ol.prose > li + li { margin-top: var(--s3); }
ol.prose > li + li { margin-top: var(--s4); }
.prose a { color: var(--coral-ink); text-decoration: underline;
  text-underline-offset: 4px; text-decoration-thickness: 1px; }
.prose a:hover { text-decoration-thickness: 2px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: var(--s3);
  font-size: 11px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--coral-ink);
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: currentColor; }
.on-dark .eyebrow { color: var(--coral-soft); }

.label { font-size: 11px; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--ink-mute); }

/* --- 4. Layout ----------------------------------------------------------- */
.wrap { width: min(1360px, 100% - var(--gutter) * 2); margin-inline: auto; }
/* Section rhythm. A sections bottom padding meets the next sections top padding,
   so the real gap between two sections is double this number — keep it modest. */
.section { padding-block: clamp(46px, 5.4vw, 82px); position: relative; }
.section--tight { padding-block: clamp(34px, 4vw, 58px); }
.section--warm { background: var(--paper-warm); }
.section--blush { background: var(--paper-blush); }
.section--dark { background: var(--ink-deep); color: var(--paper); }
.section--dark h3, .section--dark h4 { color: var(--paper); }

.on-dark { color: var(--paper); }
.on-dark .lede, .on-dark p { color: rgba(255, 251, 247, 0.74); }
.on-dark .label { color: rgba(255, 251, 247, 0.5); }

/* The heading column always starts at the top of the row. With align-items:end
   a long supporting line makes the row taller than the heading column, which
   pushes the eyebrow and title down and opens a gap above every section title. */
.section-head { display: grid; gap: var(--s5) var(--s7);
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: start; margin-bottom: clamp(28px, 3.2vw, 52px); }
.section-head > div:last-child { align-self: end; padding-bottom: var(--s2); }
.section-head--solo { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 900px) { .section-head { grid-template-columns: minmax(0, 1fr); } }

.rule { height: 1px; background: var(--line); border: 0; margin: 0; }
.grid { display: grid; gap: var(--s5); }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px)  { .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px)  { .g2, .g3, .g4 { grid-template-columns: minmax(0, 1fr); } }

/* --- 5. Buttons ---------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: var(--s3);
  padding: 15px var(--s6); border: 1px solid transparent; border-radius: var(--r-pill);
  font-size: var(--step-0); font-weight: 500; cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
              transform 220ms var(--ease), border-color var(--dur) var(--ease);
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--coral); color: #fff; }
.btn--primary:hover { background: var(--clay); }
.btn--ghost { border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.on-dark .btn--ghost { border-color: var(--line-dark); color: var(--paper); }
.on-dark .btn--ghost:hover { background: var(--paper); color: var(--ink); }
.btn__dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor;
  transition: transform var(--dur) var(--ease); }
.btn:hover .btn__dot { transform: scale(1.6); }

.arrow-link {
  display: inline-flex; align-items: center; gap: var(--s3); font-weight: 500;
  padding-bottom: 6px; border-bottom: 1px solid var(--line); width: max-content;
  transition: border-color var(--dur) var(--ease), gap var(--dur) var(--ease);
}
.arrow-link::after { content: "→"; transition: transform var(--dur) var(--ease); }
.arrow-link:hover { border-color: var(--coral); gap: var(--s4); }
.arrow-link:hover::after { transform: translateX(4px); }

/* --- 6. Header ----------------------------------------------------------- */
.progress { position: fixed; inset: 0 auto auto 0; z-index: 120; height: 2px;
  width: 100%; transform: scaleX(0); transform-origin: 0 50%; background: var(--coral); }

/* The header floats. Over a media hero it is transparent with the light lockup;
   once scrolled it condenses into a solid pill with the dark lockup. */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  padding: 14px var(--gutter) 0;
  transition: padding 460ms var(--ease), transform 420ms var(--ease);
}
.site-header[data-hidden="true"] { transform: translateY(-118%); }

.header-inner {
  display: flex; align-items: center; gap: var(--s5);
  width: min(1360px, 100%); margin-inline: auto;
  padding: 9px 9px 9px var(--s6); border-radius: var(--r-pill);
  background: transparent; border: 1px solid transparent;
  transition: background 460ms var(--ease), border-color 460ms var(--ease),
              box-shadow 460ms var(--ease), padding 460ms var(--ease);
}
.site-header[data-scrolled="true"] .header-inner,
body:not(.media-hero) .header-inner {
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(16px) saturate(1.15);
  border-color: var(--line-soft);
  box-shadow: 0 18px 44px -34px rgba(28, 21, 18, .5);
}
.site-header[data-scrolled="true"] { padding-top: 10px; }

/* Logo lockup swap — both are in the DOM so there is no flash on scroll. */
.brand { display: block; margin-right: auto; line-height: 0; position: relative; }
.brand img { width: auto; height: 30px; transition: opacity 380ms var(--ease); }
.brand .logo-light { position: absolute; inset: 0; }
body.media-hero .site-header:not([data-scrolled="true"]) .brand .logo-dark { opacity: 0; }
body.media-hero .site-header:not([data-scrolled="true"]) .brand .logo-light { opacity: 1; }
.brand .logo-light { opacity: 0; }
.brand:hover img { filter: brightness(1.08); }
.footer-brand img { height: 42px; }
.footer-brand .logo-dark { display: none; }
.footer-brand .logo-light { position: static; opacity: 1; }
.drawer .brand img { height: 32px; }
.drawer .brand .logo-dark { display: none; }
.drawer .brand .logo-light { position: static; opacity: 1; }
@media (max-width: 480px) { .brand img { height: 26px; } }

.site-nav { display: flex; align-items: center; gap: 2px; }
.site-nav > a, .nav-trigger {
  position: relative; padding: 10px var(--s4); border: 0; background: none;
  font-size: 15px; border-radius: var(--r-pill); cursor: pointer;
  color: var(--ink); transition: color 320ms var(--ease), opacity 320ms var(--ease);
}
body.media-hero .site-header:not([data-scrolled="true"]) :is(.site-nav > a, .nav-trigger) { color: #fff; }
.site-nav > a::after, .nav-trigger::after {
  content: ""; position: absolute; left: var(--s4); right: var(--s4); bottom: 6px;
  height: 1px; background: currentColor; transform: scaleX(0); transform-origin: 0 50%;
  transition: transform 340ms var(--ease);
}
.site-nav > a:hover::after, .nav-trigger[aria-expanded="true"]::after,
.site-nav > a[aria-current="page"]::after { transform: scaleX(1); }
.site-nav > a[aria-current="page"] { color: var(--coral-ink); }

.header-cta { padding: 12px var(--s5) 12px var(--s5); font-size: 15px; }

.has-menu { position: relative; }
.nav-trigger { display: inline-flex; align-items: center; gap: 7px; }
.nav-trigger i { width: 5px; height: 5px; border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-1px);
  transition: transform 300ms var(--ease); }
.nav-trigger[aria-expanded="true"] i { transform: rotate(225deg) translateY(-1px); }

.mega {
  position: absolute; top: calc(100% + 16px); left: 50%; translate: -50% 8px;
  width: min(660px, calc(100vw - var(--gutter) * 2));
  padding: var(--s4); background: var(--paper); border: 1px solid var(--line-soft);
  border-radius: 18px; box-shadow: var(--shadow-lift);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2px;
  opacity: 0; visibility: hidden;
  transition: opacity 280ms var(--ease), translate 280ms var(--ease), visibility 280ms;
}
.has-menu[data-open="true"] .mega { opacity: 1; visibility: visible; translate: -50% 0; }
.mega a { display: grid; gap: 3px; padding: var(--s3) var(--s4);
  border-radius: 12px; color: var(--ink);
  transition: background 220ms var(--ease); }
.mega a:hover { background: var(--paper-warm); }
.mega b { font-weight: 600; font-size: 15px; }
.mega span { font-size: 13px; color: var(--ink-mute); line-height: 1.4; }

.burger { display: none; width: 46px; height: 46px; border: 1px solid var(--line);
  border-radius: 50%; background: var(--paper); color: var(--ink); cursor: pointer; }
body.media-hero .site-header:not([data-scrolled="true"]) .burger {
  background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.32); color: #fff;
  backdrop-filter: blur(8px); }
.burger span { display: block; width: 16px; height: 1.5px; margin: 3.5px auto;
  background: currentColor; transition: transform 300ms var(--ease), opacity 200ms; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 1120px) {
  .site-nav, .header-cta { display: none; }
  .burger { display: block; }
  .header-inner { padding-right: 9px; }
}

.drawer {
  position: fixed; inset: 0; z-index: 99; background: var(--ink-deep); color: var(--paper);
  padding: 104px var(--gutter) var(--s7); overflow-y: auto;
  clip-path: inset(0 0 100% 0); transition: clip-path 620ms var(--ease);
}
.drawer[data-open="true"] { clip-path: inset(0 0 0 0); }
.drawer nav { display: grid; gap: 2px; }
.drawer nav a { display: flex; align-items: baseline; gap: var(--s5);
  padding: var(--s4) 0; border-bottom: 1px solid var(--line-dark);
  font-family: var(--display); font-weight: 700;
  font-size: clamp(1.7rem, 6.5vw, 2.6rem); letter-spacing: -0.035em; }
.drawer nav a small { font-family: var(--text); font-size: 11px; letter-spacing: .18em;
  color: var(--coral-soft); font-weight: 500; }
.drawer .btn { margin-top: var(--s7); }

/* --- 7. Hero ------------------------------------------------------------- */
/* Full-bleed media hero. The image fills every pixel; the copy sits on it.
   No empty column, no letterboxing at any aspect ratio. */
.hero-full {
  position: relative; min-height: 100svh; display: flex; flex-direction: column;
  justify-content: flex-end; padding-top: 128px; color: #fff; isolation: isolate;
}
.hero-full > .wrap { position: relative; z-index: 2; }
.hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 42%; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(20,17,15,.62) 0%, rgba(20,17,15,.18) 30%,
                            rgba(20,17,15,.55) 66%, rgba(20,17,15,.88) 100%),
    linear-gradient(94deg, rgba(20,17,15,.66) 0%, rgba(20,17,15,.12) 58%, rgba(20,17,15,0) 100%);
}

.hero-copy { max-width: none; }
/* ch on the h1 resolves against the h1 own size, so the headline holds ~3 lines
   at every width. Setting it on the parent would measure the body font instead. */
.hero-full h1 { font-size: clamp(2.3rem, 1.4rem + 3.4vw, 4.4rem); margin-block: 20px 0; max-width: 13ch; }
.hero-full .eyebrow { color: var(--coral-soft); }
.hero-full .lede { color: rgba(255,255,255,.82); max-width: 48ch; margin-top: var(--s5); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s4); margin-top: var(--s6); }
.hero-full .btn--ghost { border-color: rgba(255,255,255,.42); color: #fff; }
.hero-full .btn--ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }

/* Bottom bar: proof + service categories. Fills the base of the frame. */
.hero-bar {
  position: relative; z-index: 2; margin-top: clamp(40px, 6vw, 72px);
  border-top: 1px solid rgba(255,255,255,.22);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: var(--s5); padding-block: var(--s5) var(--s6); align-items: end;
}
.hero-bar div { display: grid; gap: 3px; }
.hero-bar b { font-family: var(--display); font-weight: 700; font-size: var(--step-1);
  letter-spacing: -0.03em; }
.hero-bar span { font-size: 13px; color: rgba(255,255,255,.66); }
.hero-bar .hero-cats { justify-self: end; text-align: right; max-width: 30ch; }
.hero-bar .hero-cats span { color: rgba(255,255,255,.78); line-height: 1.5; }
@media (max-width: 900px) {
  .hero-bar { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-bar .hero-cats { display: none; }
}
@media (max-width: 560px) {
  .hero-bar { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s4); }
  .hero-full { min-height: 92svh; padding-top: 104px; }
}

/* Floating evidence cards over the media */
.hero-floats { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.float {
  position: absolute; display: grid; gap: 4px;
  padding: var(--s3) var(--s4); border-radius: 14px;
  background: rgba(255,251,248,.94); color: var(--ink);
  border: 1px solid rgba(255,255,255,.5);
  box-shadow: 0 26px 60px -28px rgba(0,0,0,.65);
  font-size: 12px; line-height: 1.35; backdrop-filter: blur(6px);
  animation: floatY 7s ease-in-out infinite;
}
.float b { font-size: 12.5px; font-weight: 600; }
.float span { color: var(--ink-mute); font-size: 11px; }
.float i { display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--coral); margin-right: 6px; }
.float--a { top: 21%; right: 6%; animation-delay: -0.6s; }
.float--b { top: 44%; right: 17%; animation-delay: -2.6s; }
.float--c { top: 63%; right: 5%; animation-delay: -4.4s; }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@media (max-width: 1100px) { .hero-floats { display: none; } }

/* Scroll cue */
.hero-cue { position: absolute; left: 50%; bottom: 14px; z-index: 3; translate: -50% 0;
  width: 1px; height: 42px; background: linear-gradient(rgba(255,255,255,0), rgba(255,255,255,.7));
  animation: cue 2.4s ease-in-out infinite; }
@keyframes cue { 0%, 100% { opacity: .25; transform: scaleY(.55); transform-origin: 50% 100%; }
                 50% { opacity: 1; transform: scaleY(1); } }

/* Inner hero used on every non-home page */
.hero { position: relative; padding-block: clamp(120px, 15vh, 180px) clamp(48px, 6vw, 88px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (max-width: 1000px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } }

/* --- 8. Marquee ---------------------------------------------------------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line);
  background: var(--paper-warm); padding-block: var(--s4); }
.marquee-track { display: flex; gap: var(--s7); width: max-content;
  animation: slide 38s linear infinite; }
.marquee span { display: inline-flex; align-items: center; gap: var(--s7);
  font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  white-space: nowrap; }
.marquee span::after { content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--coral); }
@keyframes slide { to { transform: translateX(-50%); } }
.marquee:hover .marquee-track { animation-play-state: paused; }

/* --- 9. Problem cards ---------------------------------------------------- */
/* Illustration first, words second — the visual has to land before the copy. */
.leak-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s5); }
.leak {
  display: grid; gap: var(--s5); align-content: start;
  padding: var(--s6); border-radius: 18px;
  background: var(--paper); border: 1px solid var(--line);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}
.leak:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: transparent; }
.leak-head { display: flex; align-items: center; justify-content: space-between;
  gap: var(--s3) var(--s4); flex-wrap: wrap; }
/* Both are short labels — let them stack rather than break mid-word. */
.leak-head > * { white-space: nowrap; }
@media (max-width: 430px) {
  .leak-head { flex-direction: column; align-items: flex-start; gap: 6px; }
}
.leak h3 { font-size: var(--step-2); }
.leak p { font-size: 15px; color: var(--ink-soft); }
.leak-out { display: inline-flex; align-items: center; gap: 7px;
  font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--coral-ink); }
.leak-out::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--coral); }
@media (max-width: 860px) { .leak-grid { grid-template-columns: minmax(0, 1fr); } }

/* --- 9b. SVG scenes ------------------------------------------------------ */
.scene { width: 100%; height: auto; display: block; border-radius: 14px; overflow: hidden; }
.scene .s-t { font-family: var(--text); }
.s-8 { font-size: 8px; } .s-9 { font-size: 9px; } .s-10 { font-size: 10px; } .s-11 { font-size: 11px; }
.s-12 { font-size: 12px; } .s-13 { font-size: 13px; } .s-14 { font-size: 14px; }
.s-16 { font-size: 16px; } .s-18 { font-size: 18px; }
.s-mid { text-anchor: middle; } .s-end { text-anchor: end; }
.s-track { letter-spacing: .12em; }
.s-serif { font-family: Georgia, serif; font-style: italic; }

/* Motion inside the scenes — restrained, and it explains something. */
.s-cursor { animation: blink 1.15s steps(1) infinite; }
@keyframes blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
.leak:hover .s-rank { transform: translateX(4px); }
.s-rank { transition: transform 520ms var(--ease); }
.s-you { transition: opacity 520ms var(--ease); opacity: .72; }
.leak:hover .s-you { opacity: 1; }
.s-panel { transition: transform 520ms var(--ease); }
.leak:hover .s-panel:nth-of-type(1) { transform: translateY(-4px) rotate(-1.1deg); }
.leak:hover .s-panel:nth-of-type(2) { transform: translateY(3px); }
.leak:hover .s-panel:nth-of-type(3) { transform: translateY(-4px) rotate(1.1deg); }
.s-gap { transition: opacity 520ms var(--ease); }
.leak:hover .s-gap { opacity: .55; }
.s-week { opacity: .85; transition: opacity 520ms var(--ease); transition-delay: calc(var(--i) * 90ms); }
.leak:hover .s-week { opacity: .35; }
.s-ghost { transition: opacity 520ms var(--ease); }
.leak:hover .s-ghost { opacity: .55; }
.s-orbit { transform-origin: 230px 150px; animation: orbit 26s linear infinite; }
@keyframes orbit { to { transform: rotate(360deg); } }
.s-node { transform-origin: 230px 150px; animation: nodeIn 700ms var(--ease) both;
  animation-delay: calc(var(--i) * 110ms); }
@keyframes nodeIn { from { opacity: 0; transform: scale(.9); } }

/* --- 9c. Editorial image block ------------------------------------------- */
.figure { border-radius: 18px; overflow: hidden; background: var(--paper-warm); }
.figure img { width: 100%; height: 100%; object-fit: cover; }
.figure--tall { aspect-ratio: 3 / 4; }
.split { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 5vw, 80px); align-items: center; }
/* When the right column is a long list, pin the image instead of centring it —
   centring leaves a large void above a short column next to a tall one. */
.split--pinned { align-items: start; }
.split--pinned > .figure { position: sticky; top: 118px; }
@media (max-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .split--pinned > .figure { position: static; }
  .split--pinned .figure--tall { aspect-ratio: 16 / 10; }
}

/* --- 10. System / wheel -------------------------------------------------- */
.system { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0;
  border-top: 1px solid var(--line-dark); }
.system-step { padding: var(--s6) var(--s5); border-right: 1px solid var(--line-dark);
  display: grid; gap: var(--s3); align-content: start;
  transition: background var(--dur) var(--ease); }
.system-step:last-child { border-right: 0; }
.system-step:hover { background: rgba(255, 251, 247, .05); }
.system-step b { font-family: var(--display); font-size: var(--step-2); letter-spacing: -.02em; }
.system-step .label { color: var(--coral-soft); }
.system-step p { font-size: 15px; }
@media (max-width: 1000px) { .system { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .system-step { border-bottom: 1px solid var(--line-dark); }
  .system-step:nth-child(2n) { border-right: 0; } }
@media (max-width: 620px) { .system { grid-template-columns: minmax(0, 1fr); }
  .system-step { border-right: 0; } }

/* --- 11. Service rows ---------------------------------------------------- */
.service-row {
  display: grid; grid-template-columns: 56px minmax(0, 1.1fr) minmax(0, 1.3fr) auto;
  gap: var(--s5); align-items: center; padding: var(--s6) var(--s4);
  border-bottom: 1px solid var(--line); position: relative;
  transition: padding-inline var(--dur) var(--ease), color var(--dur) var(--ease);
}
.service-row::before {
  content: ""; position: absolute; inset: 0; background: var(--paper-warm);
  transform: scaleY(0); transform-origin: 50% 100%; z-index: -1;
  transition: transform 420ms var(--ease);
}
.service-row:hover::before { transform: scaleY(1); }
.service-row:hover { padding-inline: var(--s6); }
.service-row:first-of-type { border-top: 1px solid var(--line); }
.service-row h3 { font-family: var(--display); font-weight: 600;
  font-size: var(--step-3); letter-spacing: -0.03em; }
.service-row p { font-size: 15px; color: var(--ink-soft); }
.service-out { font-size: 11px; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--coral-ink); padding: 8px 14px;
  border: 1px solid var(--line); border-radius: var(--r-pill); white-space: nowrap; }
@media (max-width: 900px) {
  .service-row { grid-template-columns: 40px minmax(0, 1fr); gap: var(--s3); }
  .service-row p { grid-column: 2; }
  .service-out { grid-column: 2; justify-self: start; }
}

/* --- 12. Method steps ---------------------------------------------------- */
.method { counter-reset: m; display: grid; gap: 0; }
.method-step { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  gap: var(--s7); padding-block: var(--s7); border-top: 1px solid var(--line); }
.method-step b { font-family: var(--display); font-size: var(--step-3);
  letter-spacing: -.03em; display: flex; gap: var(--s4); align-items: baseline; }
.method-step b i { font: 600 12px/1 var(--text); letter-spacing: .16em; color: var(--coral-ink); }
@media (max-width: 800px) { .method-step { grid-template-columns: minmax(0, 1fr); gap: var(--s4); } }

/* --- 13. Cards ----------------------------------------------------------- */
.card {
  display: grid; gap: var(--s4); align-content: start; padding: var(--s6);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-util);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}
a.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift);
  border-color: transparent; }
.card p { font-size: 15px; color: var(--ink-soft); }
.card--flat { background: transparent; border: 0; padding: 0; }

.article-card { grid-template-rows: auto auto 1fr auto; }
.article-card h3 { font-size: var(--step-1); }

.stat { display: grid; gap: var(--s2); padding: var(--s5) 0; border-top: 2px solid var(--ink); }
.stat b { font-family: var(--display); font-size: var(--step-3); letter-spacing: -.03em; }

.concept-tag {
  display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px;
  border: 1px solid var(--coral); border-radius: var(--r-pill);
  font-size: 11.5px; font-weight: 600; letter-spacing: .14em; color: var(--coral-ink);
}
.concept-tag::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--coral); }

/* --- 14. Accordion (FAQ) ------------------------------------------------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s5);
  padding: var(--s5) 0; cursor: pointer; list-style: none;
  font-family: var(--text); font-size: var(--step-1); font-weight: 500;
  transition: color 240ms var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--coral-ink); }
.faq summary::after {
  content: ""; flex: none; width: 13px; height: 13px;
  background: linear-gradient(currentColor 0 0) center/100% 1.5px no-repeat,
              linear-gradient(currentColor 0 0) center/1.5px 100% no-repeat;
  transition: transform 320ms var(--ease);
}
.faq details[open] summary::after { transform: rotate(135deg); }
.faq .faq-body { padding-bottom: var(--s6); color: var(--ink-soft); }

/* --- 15. Form ------------------------------------------------------------ */
.form { display: grid; gap: var(--s5); }
.field { display: grid; gap: var(--s2); }
.field > span { font-size: 14px; font-weight: 500; }
.field .hint { font-size: 13px; color: var(--ink-mute); font-weight: 400; }
.field input, .field select, .field textarea {
  padding: 14px var(--s4); background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-util); transition: border-color 220ms var(--ease), box-shadow 220ms var(--ease);
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink-mute); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--coral); box-shadow: 0 0 0 3px rgba(228, 86, 58, .16); }
.field :is(input, select, textarea)[aria-invalid="true"] { border-color: var(--clay); }
.field-error { font-size: 13px; color: var(--clay); min-height: 1em; }

fieldset { border: 1px solid var(--line); border-radius: var(--r-util);
  padding: var(--s5); display: grid; gap: var(--s3); }
legend { padding-inline: var(--s2); font-size: 14px; font-weight: 500; }
.choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s3); }
@media (max-width: 760px) { .choices { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 460px) { .choices { grid-template-columns: minmax(0, 1fr); } }
.choice { display: flex; align-items: center; gap: var(--s3); padding: 12px var(--s4);
  border: 1px solid var(--line); border-radius: var(--r-util); cursor: pointer;
  font-size: 14px; transition: border-color 200ms var(--ease), background 200ms var(--ease); }
.choice:hover { border-color: var(--ink-mute); }
.choice:has(input:checked) { border-color: var(--coral); background: rgba(228, 86, 58, .07); }
.choice input { accent-color: var(--coral); width: 20px; height: 20px; flex: none; }

.form-status { padding: var(--s5); border: 1px solid var(--coral);
  border-radius: var(--r-util); background: rgba(228, 86, 58, .07); }
.form-status[hidden] { display: none; }
.form-status[data-state="error"] { border-color: var(--clay); background: rgba(166, 58, 34, .07); }

/* ---- Audit hero: a warm ground so the form reads as the destination ------
   The form is the whole point of this page, so it gets a surface of its own
   rather than sitting on the same paper as every other section. */
.hero--audit { position: relative; isolation: isolate; overflow: hidden; }
.hero--audit::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(120% 90% at 88% 8%, rgba(254, 111, 87, .22) 0%, rgba(254, 111, 87, 0) 58%),
    radial-gradient(90% 70% at 4% 92%, rgba(254, 111, 87, .10) 0%, rgba(254, 111, 87, 0) 60%),
    linear-gradient(168deg, var(--paper-warm) 0%, var(--paper-blush) 62%, var(--paper-warm) 100%);
}
/* Fine dot grid — reads as studio graph paper, not as texture for its own sake. */
.hero--audit::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(circle, rgba(52, 55, 51, .13) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(72% 60% at 70% 20%, #000 0%, transparent 72%);
          mask-image: radial-gradient(72% 60% at 70% 20%, #000 0%, transparent 72%);
}
/* The card lifts off that ground. */
.hero--audit .form.card {
  background: var(--paper);
  border-color: rgba(52, 55, 51, .10);
  box-shadow: 0 2px 4px rgba(52, 55, 51, .04), 0 32px 70px -34px rgba(52, 55, 51, .40);
}
.hero--audit .alt-route { background: rgba(255, 251, 248, .72); backdrop-filter: blur(3px); }
/* The form column is much taller than the copy. Centring the copy against it
   leaves a large void above the headline, so both columns start at the top. */
.hero--audit .hero-grid { align-items: start; }
@media (max-width: 620px) {
  .hero--audit .form.card { padding: var(--s6) var(--s5); }
}

/* "or" divider between the form submit and the calendar route */
.or-rule { display: flex; align-items: center; gap: var(--s4); margin: 0;
  font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-mute); }
.or-rule::before, .or-rule::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---- WhatsApp -----------------------------------------------------------
   Its own colour, deliberately. A WhatsApp button that is not WhatsApp green
   is not recognised as one, and recognition is the whole point of the channel. */
.btn--wa { background: #1FA855; color: #fff; }
.btn--wa:hover { background: #17843F; }

/* Sticky on small screens, where a form is hardest to fill and WhatsApp is
   already open in the next app. Sits above the fold-out drawer, below modals. */
.wa-float {
  position: fixed; z-index: 90; right: 16px; bottom: 16px;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 20px 13px 17px; border-radius: var(--r-pill);
  background: #1FA855; color: #fff;
  font-family: var(--text); font-size: 15px; font-weight: 500; line-height: 1;
  box-shadow: 0 10px 30px -10px rgba(31, 168, 85, .55), 0 2px 6px rgba(0,0,0,.16);
  transition: transform 260ms var(--ease), background 260ms var(--ease);
}
.wa-float:hover { background: #17843F; transform: translateY(-2px); }
.wa-float svg { flex: none; }
@media (max-width: 620px) {
  /* Icon only on the narrowest screens so it never covers content. */
  .wa-float { right: 14px; bottom: 14px; padding: 14px; gap: 0; }
  .wa-float span { display: none; }
}
@media print { .wa-float { display: none; } }

/* ---- Coverage band ------------------------------------------------------ */
.coverage-grid { display: grid; gap: var(--s7);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, .9fr); }
@media (max-width: 1000px) { .coverage-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (max-width: 640px)  { .coverage-grid { grid-template-columns: minmax(0, 1fr); gap: var(--s6); } }

.coverage-list { display: grid; gap: 0; margin-top: var(--s4); }
.coverage-list li {
  display: flex; align-items: center; gap: var(--s3);
  padding: 11px 0; border-bottom: 1px solid var(--line-dark);
  font-family: var(--display); font-weight: 600; font-size: var(--step-1);
  letter-spacing: -.03em;
}
.coverage-list li::before {
  content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%;
  background: var(--coral);
}
/* Markets we are moving into read as outlined, not filled — the difference
   between "we work here" and "we are heading here" should be visible. */
.coverage-list--soft li { color: rgba(255, 251, 248, .72); }
.coverage-list--soft li::before { background: transparent; border: 1.5px solid var(--coral-soft); }

.coverage-contact .btn--wa { margin-top: var(--s4); }
.coverage-contact .label { color: rgba(255, 251, 248, .5); }

/* Secondary route on the audit page — sits under the numbered steps */
.alt-route { margin-top: var(--s7); padding: var(--s5) var(--s6);
  border: 1px solid var(--line); border-left: 3px solid var(--coral);
  border-radius: 0 var(--r-util) var(--r-util) 0; background: var(--paper);
  display: grid; gap: var(--s3); }
.alt-route p { font-size: 15px; color: var(--ink-soft); }
.alt-route .label { color: var(--coral-ink); }

/* --- 16. Footer ---------------------------------------------------------- */
.site-footer { background: var(--ink-deep); color: var(--paper); }
.footer-cta { padding-block: clamp(64px, 9vw, 128px); border-bottom: 1px solid var(--line-dark); }
.footer-cta-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  gap: var(--s7); align-items: end; }
@media (max-width: 900px) { .footer-cta-grid { grid-template-columns: minmax(0, 1fr); } }
.footer-cta h2 { font-size: var(--step-4); }

.footer-main { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: var(--s7); padding-block: clamp(48px, 6vw, 80px); }
@media (max-width: 1000px) { .footer-main { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (max-width: 620px) { .footer-main { grid-template-columns: minmax(0, 1fr); gap: var(--s6); } }
.footer-main nav { display: grid; gap: var(--s3); align-content: start; }
.footer-main nav a { font-size: 15px; color: rgba(255, 251, 247, .74);
  width: max-content; transition: color 200ms var(--ease); }
.footer-main nav a:hover { color: var(--paper); }
.footer-main .label { margin-bottom: var(--s2); }
.footer-base { display: flex; flex-wrap: wrap; gap: var(--s5);
  justify-content: space-between; padding-block: var(--s5);
  border-top: 1px solid var(--line-dark); font-size: 13px; color: rgba(255,251,247,.55); }
/* WCAG 2.2 target size: these legal links are 16px tall as plain inline text,
   which is under the 24px minimum. Padding grows the hit area without moving anything. */
.footer-base a { display: inline-block; padding-block: 6px; transition: color 200ms var(--ease); }
.footer-base a:hover { color: var(--paper); }
.footer-brand b, .footer-brand span { font-size: 22px; }

/* --- 17. Motion ---------------------------------------------------------- */
/* Hero content animates from first paint using CSS only. It must never wait for
   app.js to execute — that would delay the largest text paint (LCP) by the whole
   script load. Below-the-fold content still uses the IntersectionObserver path. */
@keyframes enter { from { opacity: 0; transform: translateY(20px); } }
.hero .reveal, .hero .lift {
  animation: enter 720ms var(--ease) both;
  animation-delay: var(--delay-static, 0ms);
}
.hero-grid > div > *, .hero > .wrap > * { --delay-static: 0ms; }
.hero-grid > div > *:nth-child(2), .hero > .wrap > *:nth-child(2) { --delay-static: 90ms; }
.hero-grid > div > *:nth-child(3), .hero > .wrap > *:nth-child(3) { --delay-static: 180ms; }
.hero-grid > div > *:nth-child(4), .hero > .wrap > *:nth-child(4) { --delay-static: 270ms; }
.hero-grid > div > *:nth-child(5), .hero > .wrap > *:nth-child(5) { --delay-static: 360ms; }
.js .hero .reveal, .js .hero .lift { opacity: 1; transform: none; clip-path: none; }

/* Progressive enhancement: without JS the .js class is absent and nothing hides. */
.js .reveal { opacity: 0; transform: translateY(28px); }
.js .reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity 700ms var(--ease), transform 900ms var(--ease);
  transition-delay: var(--delay, 0ms);
}
.js .lift { opacity: 0; clip-path: inset(0 0 100% 0); }
.js .lift.is-in { opacity: 1; clip-path: inset(0 0 -10% 0);
  transition: opacity 500ms var(--ease), clip-path 900ms var(--ease);
  transition-delay: var(--delay, 0ms); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important; scroll-behavior: auto !important;
  }
  .js .reveal, .js .lift,
  .hero .reveal, .hero .lift { opacity: 1; transform: none; clip-path: none; animation: none; }
  .marquee-track { animation: none; }
  .btn:hover, a.card:hover { transform: none; }
}

/* --- 18. Print ----------------------------------------------------------- */
@media print {
  .site-header, .drawer, .progress, .marquee, .footer-cta { display: none; }
  body { background: #fff; color: #000; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 11px; }
}
