/* ==========================================================================
   DigiWicks — main stylesheet
   Plain CSS, no build step. In WordPress this file becomes the theme's
   style.css (or is enqueued from functions.php). Colour tokens below map
   one-to-one to a theme.json palette.

   Contents
   1. Tokens          6. Hero + candles      11. Industries
   2. Base            7. In the dark         12. FAQ
   3. Layout          8. Services            13. Audit form
   4. Buttons/links   9. Proverb + promises  14. Footer
   5. Header + logo  10. Process (wick)      15. Placeholder pages
   ========================================================================== */

/* 0. Fonts ----------------------------------------------------------------
   Fraunces and Hanken Grotesk, served from assets/fonts. These are the same
   files Google Fonts serves, split by script so a browser only downloads the
   ones a page needs. Both are under the SIL Open Font Licence (see the OFL
   files in that folder). */
/* Fraunces, italic, vietnamese */
@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/fraunces-italic-vietnamese.woff2") format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* Fraunces, italic, latin-ext */
@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/fraunces-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Fraunces, italic, latin */
@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/fraunces-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Fraunces, normal, vietnamese */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/fraunces-normal-vietnamese.woff2") format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* Fraunces, normal, latin-ext */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/fraunces-normal-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Fraunces, normal, latin */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/fraunces-normal-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Hanken Grotesk, normal, cyrillic-ext */
@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/hanken-grotesk-normal-cyrillic-ext.woff2") format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* Hanken Grotesk, normal, vietnamese */
@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/hanken-grotesk-normal-vietnamese.woff2") format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* Hanken Grotesk, normal, latin-ext */
@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/hanken-grotesk-normal-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Hanken Grotesk, normal, latin */
@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/hanken-grotesk-normal-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* 1. Tokens --------------------------------------------------------------- */
:root {
  /* Brand palette ("Ignite") */
  --night: #0B1F3A;        /* Midnight navy */
  --flame: #FF6B2C;        /* Flame orange  */
  --amber: #FFB627;        /* Amber glow    */
  --wax: #F7F5F0;          /* Warm white    */

  /* Derived tones */
  --night-deep: #071629;
  --night-rise: #14305A;
  --night-line: rgba(247, 245, 240, 0.16);
  --wax-shade: #EDE8DC;
  --wax-line: rgba(11, 31, 58, 0.16);
  --ink: #0B1F3A;
  --ink-soft: #43536E;
  --mist: #B4C0D4;

  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

  --step--1: clamp(0.84rem, 0.81rem + 0.12vw, 0.92rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.5vw, 1.5rem);
  --step-2: clamp(1.5rem, 1.25rem + 1.1vw, 2.1rem);
  --step-3: clamp(2rem, 1.45rem + 2.5vw, 3.5rem);
  --step-4: clamp(2.5rem, 1.5rem + 4.6vw, 5.25rem);

  --gutter: clamp(1rem, 4vw, 2.5rem);
  --band: clamp(4rem, 9vw, 8rem);
  --header-h: 4.5rem;
  --radius-s: 10px;
  --radius-m: 20px;
}

/* 2. Base ----------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  /* A long URL or word wraps instead of pushing the page sideways. */
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, ol, dl, dd, blockquote, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100, "WONK" 0;
  font-optical-sizing: auto;
  font-weight: 540;
  line-height: 1.04;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); line-height: 1.12; letter-spacing: -0.012em; }
p { text-wrap: pretty; }

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
  border-radius: 4px;
}
/* On light surfaces the ring is navy: amber on cream is too faint to see. */
.band--wax :focus-visible,
.band--shade :focus-visible,
.form :focus-visible { outline-color: var(--ink); }
/* The AI search panel is a dark box inside a light section, so it keeps amber. */
.ai-note :focus-visible { outline-color: var(--amber); }

/* Hidden on screen, still read by screen readers. Anything focusable inside becomes visible on focus. */
.visually-hidden:where(:not(:focus-within, :active)) {
  position: absolute !important;
  clip-path: inset(50%) !important;
  overflow: hidden !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  border: 0 !important;
  white-space: nowrap !important;
}

/* The shared SVG symbols take up no room. */
.sprite { position: absolute; }

.skip-link {
  position: absolute;
  left: 1rem; top: -4rem;
  z-index: 100;
  padding: 0.7rem 1rem;
  background: var(--amber);
  color: var(--night);
  font-weight: 700;
  border-radius: var(--radius-s);
}
.skip-link:focus { top: 1rem; }

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

.band { padding-block: var(--band); }
.band--night { background: var(--night); color: var(--wax); }
.band--deep { background: var(--night-deep); color: var(--wax); }
.band--wax { background: var(--wax); color: var(--ink); }
.band--shade { background: var(--wax-shade); color: var(--ink); }
.band--flame { background: var(--flame); color: var(--night); }

.lede {
  max-width: 58ch;
  font-size: var(--step-1);
  line-height: 1.45;
}
.band--night .lede,
.band--deep .lede { color: var(--mist); }
.band--wax .lede,
.band--shade .lede { color: var(--ink-soft); }

/* 4. Buttons and links ---------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3.1rem;
  padding: 0.7rem 1.5rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  line-height: 1.1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.3s;
}
.btn--flame {
  background: var(--flame);
  color: var(--night);
}
.btn--flame:hover {
  background: var(--amber);
  box-shadow: 0 0 0 6px rgba(255, 182, 39, 0.18), 0 0 44px rgba(255, 150, 40, 0.45);
}
.btn--ghost {
  border-color: var(--night-line);
  color: var(--wax);
}
.btn--ghost:hover { border-color: var(--wax); }
.btn--night {
  background: var(--night);
  color: var(--wax);
}
.btn--night:hover { background: var(--night-rise); }
.btn--small { min-height: 2.6rem; padding: 0.5rem 1.15rem; font-size: var(--step--1); }
.btn--wide { width: 100%; }

/* Invisible extra touch area, so the two smallest controls are still easy to tap. */
.btn--small,
.nav-toggle { position: relative; }
.btn--small::after {
  content: "";
  position: absolute;
  inset: -0.2rem 0;
}
.nav-toggle::after {
  content: "";
  position: absolute;
  inset: -0.125rem;
  border-radius: 50%;
}

.text-link {
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--flame);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.3em;
  transition: text-decoration-color 0.2s, text-underline-offset 0.2s;
}
.text-link:hover {
  text-decoration-color: var(--amber);
  text-underline-offset: 0.42em;
}

/* 5. Header + logo -------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  color: var(--wax);
  transition: background-color 0.3s, box-shadow 0.3s;
}
.site-header.is-solid,
.site-header.is-open {
  background: rgba(7, 22, 41, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--night-line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 100%;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-right: auto;
  color: var(--wax);
  text-decoration: none;
}
.logo__mark {
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  background: var(--wax);
  border-radius: 28%;
}
.logo__mark svg { width: 52%; }
.logo__word {
  font-family: var(--font-body);
  font-size: 1.62rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.012em;
}
/* The "i" in Wicks is a candle: a dotless i with a flame for a dot. */
.logo__i {
  position: relative;
  display: inline-block;
  color: transparent;
  background: linear-gradient(180deg, var(--amber) 34%, var(--wax) 72%);
  -webkit-background-clip: text;
  background-clip: text;
}
.logo__flame {
  position: absolute;
  left: calc(50% - 0.18em);
  bottom: 0.7em;
  width: 0.36em;
  max-width: none;
  transform-origin: 50% 100%;
  filter: drop-shadow(0 0 0.28em rgba(255, 182, 39, 0.75));
  animation: logo-flame 2.2s ease-in-out infinite;
}
/* The logo flame is small, so it sways and stretches more than the hero flames
   do, or the movement would not be visible at this size. */
@keyframes logo-flame {
  0%, 100% { transform: rotate(-3deg) scale(1, 1); }
  18% { transform: rotate(4deg) scale(0.94, 1.1); }
  36% { transform: rotate(-5deg) scale(1.05, 0.93); }
  55% { transform: rotate(3deg) scale(0.95, 1.14); }
  78% { transform: rotate(-2deg) scale(1.03, 0.97); }
}

.nav { display: flex; align-items: center; gap: 1.75rem; }
.nav__list { display: flex; gap: 1.6rem; }
.nav__link {
  padding-block: 0.4rem;
  font-size: var(--step--1);
  font-weight: 600;
  text-decoration: none;
  color: var(--mist);
  transition: color 0.2s;
}
.nav__link:hover,
.nav__link[aria-current="page"] { color: var(--wax); }
.nav__link[aria-current="page"] { box-shadow: 0 2px 0 var(--flame); }

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  background: none;
  border: 1.5px solid var(--night-line);
  border-radius: 50%;
  color: var(--wax);
  cursor: pointer;
}
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 1.1rem;
  height: 2px;
  margin-inline: auto;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.25s, background-color 0.25s;
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before,
.nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
.is-open .nav-toggle__bars { background: transparent; }
.is-open .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.is-open .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 60rem) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 1.25rem;
    padding: 1.25rem var(--gutter) 1.75rem;
    background: var(--night-deep);
    border-bottom: 1px solid var(--night-line);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-0.5rem);
  }
  /* The fade lives on the open state only, so the menu never ghosts over the
     page when a desktop window is resized across the breakpoint. */
  .is-open .nav {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity 0.2s, transform 0.2s;
  }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__link {
    display: block;
    padding-block: 0.85rem;
    font-size: var(--step-1);
    font-family: var(--font-display);
    font-variation-settings: "SOFT" 100;
    color: var(--wax);
    border-bottom: 1px solid var(--night-line);
  }
  .nav__link[aria-current="page"] { box-shadow: none; color: var(--amber); }
}

/* 6. Hero + candles ------------------------------------------------------- */
.hero {
  /* --table is the strip under the table line. It holds the candle labels
     (--label) and the two small-print lines, and nothing else may enter it. */
  --label: 2.6rem;
  --table: 7.5rem;
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: min(100svh, 60rem);
  padding-top: calc(var(--header-h) + clamp(1rem, 2.5vw, 2.25rem));
  background: var(--night);
  color: var(--wax);
  overflow: hidden;
  isolation: isolate;
}
/* The room brightens as each candle catches. --lit runs from 0 to 1. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(46% 58% at 76% 70%, rgba(255, 182, 39, 0.3), rgba(255, 107, 44, 0.12) 42%, transparent 72%),
    radial-gradient(90% 80% at 80% 100%, rgba(24, 56, 104, 0.95), transparent 70%);
  opacity: var(--lit, 1);
  transition: opacity 0.9s ease-out;
}
/* The table surface: a faint sheen below the line that warms as the candles light. */
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  height: var(--table);
  background: linear-gradient(180deg, rgba(36, 72, 128, 0.5), rgba(11, 31, 58, 0) 85%);
  opacity: calc(0.3 + 0.7 * var(--lit, 1));
  transition: opacity 0.9s ease-out;
}
.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: end;
}
/* The copy always stops above the table line. */
.hero__copy { padding-bottom: calc(var(--table) + clamp(1.25rem, 2.5vw, 2.25rem)); }
/* Sized against viewport height too, so the hero fits a short laptop screen. */
.hero h1 { font-size: clamp(2.5rem, min(1.5rem + 4.6vw, 9vh), 5.25rem); }
.hero__lede {
  max-width: 54ch;
  margin-top: 1.3rem;
  font-size: var(--step-1);
  line-height: 1.45;
  color: var(--mist);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.8rem;
}
/* Small print sits on the table, under the line, opposite the candle caption. */
.hero__note {
  position: absolute;
  left: 0;
  top: calc(100% - var(--table) + 0.95rem);
  max-width: min(46ch, 46%);
  font-size: var(--step--1);
  line-height: 1.5;
  color: var(--mist);
}

.candles-wrap { position: relative; }
.candles {
  --stage: clamp(14rem, min(34vw, 46vh), 27rem);
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: clamp(0.45rem, 1.5vw, 1.25rem);
  height: calc(var(--stage) + var(--label));
  padding-bottom: var(--label);
}
/* The table the candles stand on, running the full width of the screen. */
.candles::after {
  content: "";
  position: absolute;
  left: -100vw;
  right: -100vw;
  bottom: var(--label);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(247, 245, 240, 0.28) 30%, rgba(247, 245, 240, 0.28) 70%, transparent);
}
.candles__item {
  position: relative;
  flex: 1 1 0;
  max-width: 4rem;
  height: calc(var(--h) * 1%);
}
.candle {
  position: absolute;
  inset: 0;
  display: block;
  text-decoration: none;
  color: var(--mist);
}
/* Wax: a vertical colour ramp under a side-to-side sheen, so it reads as a cylinder. */
.candle__wax {
  position: absolute;
  inset: 0;
  border-radius: 0.85rem 0.85rem 0.12rem 0.12rem / 0.6rem 0.6rem 0.12rem 0.12rem;
  background:
    linear-gradient(90deg, rgba(11, 31, 58, 0.2) 0, rgba(11, 31, 58, 0) 26%, rgba(255, 255, 255, 0.6) 50%, rgba(255, 255, 255, 0) 70%, rgba(11, 31, 58, 0.24) 100%),
    linear-gradient(180deg, #FFD98C 0, #FBEFD8 1.7rem, var(--wax) 5rem, #CBC3B1 100%);
  box-shadow: 0 0 3.5rem rgba(255, 182, 39, 0.26);
  transition: box-shadow 0.7s;
}
/* The molten pool around the wick. */
.candle__wax::before {
  content: "";
  position: absolute;
  left: 9%;
  right: 9%;
  top: 0.16rem;
  height: 0.55rem;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 55%, #FFFAEA 0, #FFDD95 55%, rgba(255, 205, 120, 0) 100%);
}
/* A wax drip. Odd and even candles drip on different sides. */
.candle__wax::after {
  content: "";
  position: absolute;
  top: 0.4rem;
  right: 15%;
  width: 15%;
  min-width: 5px;
  height: clamp(1rem, 22%, 2.8rem);
  border-radius: 0 0 99px 99px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.7), rgba(203, 195, 177, 0.55));
  box-shadow: 1px 1px 0 rgba(11, 31, 58, 0.1);
}
.candles__item:nth-child(even) .candle__wax::after {
  right: auto;
  left: 16%;
  height: clamp(0.8rem, 13%, 1.8rem);
}
.candle--source .candle__wax {
  background:
    linear-gradient(90deg, rgba(120, 30, 0, 0.22) 0, rgba(120, 30, 0, 0) 26%, rgba(255, 255, 255, 0.4) 50%, rgba(255, 255, 255, 0) 70%, rgba(120, 30, 0, 0.26) 100%),
    linear-gradient(180deg, #FFC64F 0, var(--flame) 55%, #D64C16 100%);
  box-shadow: 0 0 3.5rem rgba(255, 107, 44, 0.4);
}
.candle--source .candle__wax::before { background: radial-gradient(ellipse at 50% 55%, #FFF3C9 0, #FFC64F 60%, rgba(255, 198, 79, 0) 100%); }
.candle--source .candle__wax::after { background: linear-gradient(90deg, rgba(255, 214, 140, 0.9), rgba(226, 85, 27, 0.6)); }

/* With JavaScript and motion on, main.js draws the drips itself (see "Wax on
   the hero candles") and the still CSS drip above steps aside. */
.candle.has-drips .candle__wax::after { content: none; }
.candle__drips {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  overflow: hidden;
  pointer-events: none;
}

/* Darkness: an unlit candle is the same candle under a veil that lifts when it catches. */
.candle::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: 0.85rem 0.85rem 0.12rem 0.12rem / 0.6rem 0.6rem 0.12rem 0.12rem;
  background: linear-gradient(180deg, rgba(16, 40, 76, 0.8), rgba(9, 25, 50, 0.9));
  box-shadow: inset 0 0 0 1px rgba(247, 245, 240, 0.07);
  opacity: 0;
  transition: opacity 0.7s ease-out;
  pointer-events: none;
}
/* Light pooling on the table under a lit candle. */
.candle::after {
  content: "";
  position: absolute;
  left: -45%;
  right: -45%;
  top: 100%;
  height: 3.4rem;
  background: radial-gradient(ellipse 50% 100% at 50% 0, rgba(255, 196, 90, 0.42), rgba(255, 140, 40, 0.1) 55%, transparent 100%);
  transition: opacity 0.9s ease-out;
  pointer-events: none;
}
.candle__wick {
  position: absolute;
  left: 50%;
  bottom: 100%;
  width: 2px;
  height: 0.55rem;
  margin-left: -1px;
  background: #5B4A3A;
  border-radius: 2px 2px 0 0;
}
.candle__flame {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.3rem);
  width: clamp(1.25rem, 46%, 1.9rem);
  transform: translateX(-50%) scale(1);
  transform-origin: 50% 100%;
  transition: transform 0.55s cubic-bezier(0.3, 1.7, 0.5, 1);
}
.candle__flame::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10rem;
  height: 10rem;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255, 190, 60, 0.46), rgba(255, 107, 44, 0.13) 42%, transparent 68%);
  pointer-events: none;
}
.candle__flame svg {
  position: relative;
  width: 100%;
  transform-origin: 50% 100%;
  animation: flicker 2.6s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * -0.37s);
}
.candle__label {
  position: absolute;
  left: 50%;
  top: calc(100% + 0.7rem);
  z-index: 1;
  transform: translateX(-50%);
  font-size: var(--step--1);
  font-weight: 700;
  white-space: nowrap;
  transition: color 0.3s;
}
.candle.is-lit .candle__label { color: var(--wax); }
.candle:hover .candle__label,
.candle:focus-visible .candle__label { color: var(--amber); }
.candle:hover .candle__flame,
.candle:focus-visible .candle__flame { transform: translateX(-50%) scale(1.22); }

/* Unlit state only exists when JavaScript is running the lighting sequence. */
.js .candle:not(.is-lit)::before { opacity: 1; }
.js .candle:not(.is-lit)::after { opacity: 0; }
.js .candle:not(.is-lit) .candle__wax { box-shadow: 0 0 0 rgba(255, 182, 39, 0); }
.js .candle:not(.is-lit) .candle__flame { transform: translateX(-50%) scale(0); }
.js .candle:not(.is-lit) .candle__label { color: var(--mist); }

/* The caption fills the rest of the table strip, so the strip height never changes. */
.candles__note {
  /* A minimum, not a fixed height, so the caption is never cut off if a visitor enlarges text spacing. */
  min-height: calc(var(--table) - var(--label));
  padding-top: 0.95rem;
  font-size: var(--step--1);
  line-height: 1.5;
  text-align: right;
  color: var(--mist);
}
.candles__note strong { color: var(--wax); }

/* Entrance (Anime.js). The copy is held back only while "motion-pending" is
   on <html>; the script in <head> removes it after 4 seconds no matter what. */
.motion-pending .hero__copy > * { opacity: 0; }

/* The spark that carries the flame from one candle to the next. */
.candles__spark {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
  width: 0.6rem;
  height: 0.6rem;
  margin: -0.3rem 0 0 -0.3rem;
  border-radius: 50%;
  background: radial-gradient(circle, #FFF6DC 0, var(--amber) 45%, rgba(255, 107, 44, 0) 72%);
  box-shadow: 0 0 0.9rem 0.3rem rgba(255, 182, 39, 0.7);
  opacity: 0;
  pointer-events: none;
  will-change: transform;
}

/* Embers that drift up from the lit candles. Added by main.js, never under reduced motion. */
.ember {
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #FFD98A;
  box-shadow: 0 0 6px 1px rgba(255, 160, 50, 0.9);
  opacity: 0;
  pointer-events: none;
  animation: ember var(--dur, 6s) linear var(--delay, 0s) infinite;
}

@keyframes flicker {
  0%, 100% { transform: rotate(-1.5deg) scale(1, 1); }
  22% { transform: rotate(2deg) scale(0.96, 1.05); }
  47% { transform: rotate(-2.5deg) scale(1.03, 0.97); }
  71% { transform: rotate(1.5deg) scale(0.98, 1.04); }
}
@keyframes ember {
  0% { opacity: 0; transform: translate(var(--x), var(--y)) scale(1); }
  10% { opacity: 0.9; }
  65% { opacity: 0.45; }
  100% { opacity: 0; transform: translate(calc(var(--x) + var(--drift)), calc(var(--y) - var(--rise))) scale(0.3); }
}

@media (max-width: 60rem) {
  .hero { display: block; min-height: 0; }
  .hero__grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .hero__copy { padding-bottom: 0; }
  .hero__note { position: static; max-width: 46ch; margin-top: 1.4rem; }
  .candles { --stage: clamp(12rem, 52vw, 20rem); justify-content: center; }
  .candles__note { text-align: left; }
  .hero::before {
    background:
      radial-gradient(90% 46% at 50% 80%, rgba(255, 182, 39, 0.28), rgba(255, 107, 44, 0.1) 45%, transparent 72%);
  }
}
@media (max-width: 30rem) {
  .candle__label { font-size: 0.72rem; }
}

/* 7. In the dark ---------------------------------------------------------- */
.dark__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: end;
}
.dark__field {
  --mx: 50%;
  --my: 50%;
  --r: 15rem;
  position: relative;
  height: clamp(15rem, 30vw, 23rem);
  margin-block: clamp(2.5rem, 5vw, 4rem);
  overflow: hidden;
  border-block: 1px solid var(--night-line);
}
.dark__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle calc(var(--r) * 1.25) at var(--mx) var(--my), rgba(255, 182, 39, 0.2), rgba(255, 107, 44, 0.06) 45%, transparent 70%);
}
.dark__queries {
  position: absolute;
  inset: 0;
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  gap: 0.35em 1.3em;
  padding: 1rem var(--gutter);
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100;
  font-style: italic;
  font-size: clamp(1.15rem, 2.5vw, 2.15rem);
  line-height: 1.25;
  white-space: nowrap;
  user-select: none;
}
.dark__queries--dim { color: rgba(247, 245, 240, 0.075); }
.dark__queries--lit {
  color: var(--wax);
  -webkit-mask-image: radial-gradient(circle var(--r) at var(--mx) var(--my), #000 0, rgba(0, 0, 0, 0.55) 38%, transparent 72%);
  mask-image: radial-gradient(circle var(--r) at var(--mx) var(--my), #000 0, rgba(0, 0, 0, 0.55) 38%, transparent 72%);
}
.dark__hint {
  position: absolute;
  right: var(--gutter);
  bottom: 0.8rem;
  font-size: var(--step--1);
  color: var(--mist);
}
@media (hover: none) { .dark__hint { display: none; } }

.pains {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 3rem);
}
.pain { position: relative; padding-top: 1.4rem; border-top: 2px solid var(--flame); }
/* With motion on, the border is swapped for a rule that draws itself in. */
.pain.has-rule { border-top-color: transparent; }
.pain__rule {
  position: absolute;
  left: 0;
  right: 0;
  top: -2px;
  height: 2px;
  background: var(--flame);
  transform-origin: 0 50%;
}
.pain__quote {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100;
  font-size: var(--step-2);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.012em;
}
.pain__text { margin-top: 0.9rem; color: var(--mist); }
.pain__link { display: inline-block; margin-top: 1.1rem; }

@media (max-width: 60rem) {
  .dark__head { grid-template-columns: 1fr; }
  .pains { grid-template-columns: 1fr; }
  .dark__field { --r: 10rem; }
}

/* 8. Services ------------------------------------------------------------- */
.services__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}
.services__intro { position: sticky; top: calc(var(--header-h) + 2rem); }
.services__intro .lede { margin-top: 1.4rem; }
.services__intro .text-link { display: inline-block; margin-top: 1.6rem; }

.service {
  position: relative;
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  gap: 0 1.25rem;
  padding-block: 2rem;
  border-top: 1px solid var(--wax-line);
}
.service:last-child { border-bottom: 1px solid var(--wax-line); }
/* A small candle per service. It lights when the row is hovered or focused. */
.service__candle {
  position: relative;
  width: 1.1rem;
  height: 2.6rem;
  margin: 1.35rem 0 0 0.4rem;
  background: var(--wax-shade);
  border: 1.5px solid var(--ink);
  border-radius: 0.3rem 0.3rem 0.1rem 0.1rem;
  transition: background-color 0.3s;
}
.service__candle svg {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.2rem);
  width: 1rem;
  transform: translateX(-50%) scale(0);
  transform-origin: 50% 100%;
  transition: transform 0.4s cubic-bezier(0.3, 1.7, 0.5, 1);
}
.service:hover .service__candle,
.service:focus-within .service__candle { background: #FFE1A6; }
.service:hover .service__candle svg,
.service:focus-within .service__candle svg { transform: translateX(-50%) scale(1); }
.service__title a { text-decoration: none; }
.service__title a::after { content: ""; position: absolute; inset: 0; }
.service__title a:hover { text-decoration: underline; text-decoration-color: var(--flame); text-decoration-thickness: 3px; text-underline-offset: 0.18em; }
.service__text { max-width: 56ch; margin-top: 0.8rem; color: var(--ink-soft); }
.service__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.5rem;
  margin-top: 1.1rem;
}
.service__tags li {
  padding: 0.22rem 0.75rem;
  font-size: var(--step--1);
  font-weight: 600;
  border: 1px solid var(--wax-line);
  border-radius: 999px;
}

.ai-note {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
  margin-top: clamp(3rem, 6vw, 5rem);
  padding: clamp(1.75rem, 4.5vw, 3.5rem);
  background: var(--night);
  color: var(--wax);
  border-radius: var(--radius-m);
}
.ai-note__text { margin-top: 1rem; max-width: 60ch; color: var(--mist); }
.ai-note__asks {
  display: grid;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100;
  font-style: italic;
  font-size: var(--step-1);
  line-height: 1.3;
}
.ai-note__asks li {
  padding: 0.7rem 1rem;
  background: var(--night-rise);
  border-radius: 1rem 1rem 1rem 0.2rem;
}
.ai-note .btn { margin-top: 1.6rem; }

@media (max-width: 60rem) {
  .services__grid { grid-template-columns: 1fr; }
  .services__intro { position: static; }
  .ai-note { grid-template-columns: 1fr; }
}
@media (max-width: 30rem) {
  .service { grid-template-columns: 1.8rem minmax(0, 1fr); gap: 0 0.75rem; }
  .service__candle { margin-left: 0.2rem; }
}

/* 9. Proverb + promises --------------------------------------------------- */
.proverb { padding-block: clamp(3.5rem, 8vw, 7rem); }
.proverb__quote {
  max-width: 17ch;
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100, "WONK" 1;
  font-size: clamp(2.8rem, 1.2rem + 6.6vw, 7rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.proverb__gloss {
  max-width: 52ch;
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
  margin-left: auto;
  font-size: var(--step-1);
  line-height: 1.45;
  font-weight: 500;
}

.why__head { max-width: 46rem; }
.why__head .lede { margin-top: 1.4rem; }
.promises {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 clamp(1.5rem, 4vw, 4rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
.promise { padding-block: 1.6rem; border-top: 1px solid var(--wax-line); }
.promise__term {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100;
  font-size: var(--step-1);
  font-weight: 600;
  line-height: 1.2;
}
.promise__term svg { flex: none; width: 0.8em; transform: translateY(0.08em); }
.promise__text { margin-top: 0.6rem; color: var(--ink-soft); }

@media (max-width: 60rem) { .promises { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 38rem) { .promises { grid-template-columns: 1fr; } }

/* 10. Process (the burning wick) ------------------------------------------ */
.process__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}
.process__intro { position: sticky; top: calc(var(--header-h) + 2rem); }
.process__intro .lede { margin-top: 1.4rem; }
.process__intro .btn { margin-top: 2rem; }

.steps {
  --burn: 0;
  position: relative;
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
  padding-left: 4rem;
}
/* Unburnt wick */
.steps::before {
  content: "";
  position: absolute;
  left: 1.2rem;
  top: 0.4rem;
  bottom: 0;
  width: 2px;
  background: repeating-linear-gradient(180deg, var(--night-line) 0 6px, transparent 6px 10px);
}
/* Burning part: its height follows scroll (set from main.js). */
.steps__burn {
  position: absolute;
  left: 1.2rem;
  top: 0.4rem;
  width: 2px;
  height: calc((100% - 0.4rem) * var(--burn));
  background: linear-gradient(180deg, rgba(255, 182, 39, 0.25), var(--amber) 60%, var(--flame));
  box-shadow: 0 0 12px rgba(255, 182, 39, 0.6);
}
.steps__burn svg {
  position: absolute;
  left: 50%;
  top: 100%;
  width: 1.5rem;
  max-width: none;
  transform: translate(-50%, -78%);
  filter: drop-shadow(0 0 0.6rem rgba(255, 182, 39, 0.8));
}
.step { position: relative; }
.step__num {
  position: absolute;
  left: -4rem;
  top: 0;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  background: var(--night);
  border: 2px solid var(--night-line);
  border-radius: 50%;
  font-weight: 800;
  color: var(--mist);
  transition: background-color 0.4s, border-color 0.4s, color 0.4s, box-shadow 0.4s;
}
.step.is-lit .step__num {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--night);
  box-shadow: 0 0 2rem rgba(255, 182, 39, 0.5);
}
.step__title { transition: color 0.4s; }
.step__title span { color: var(--amber); }
.step__text { max-width: 54ch; margin-top: 0.8rem; color: var(--mist); }
.step__when {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.22rem 0.8rem;
  font-size: var(--step--1);
  font-weight: 700;
  color: var(--wax);
  border: 1px solid var(--night-line);
  border-radius: 999px;
}

@media (max-width: 60rem) {
  .process__grid { grid-template-columns: 1fr; }
  .process__intro { position: static; }
}
@media (max-width: 30rem) {
  .steps { padding-left: 3.25rem; }
  .steps::before, .steps__burn { left: 1rem; }
  .step__num { left: -3.25rem; width: 2.1rem; height: 2.1rem; }
}

/* 11. Industries ---------------------------------------------------------- */
.industries__head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: end;
}
.ledger { margin-top: clamp(2.5rem, 5vw, 4rem); }
.ledger__row {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 0.75rem clamp(1rem, 3vw, 3rem);
  align-items: start;
  padding-block: 1.5rem;
  border-top: 1px solid var(--wax-line);
}
.ledger__row:last-child { border-bottom: 1px solid var(--wax-line); }
.ledger__name { font-size: var(--step-2); }
.ledger__label {
  display: block;
  margin-bottom: 0.2rem;
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-style: normal;
  font-weight: 600;
  color: var(--ink-soft);
}
.ledger__search {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100;
  font-style: italic;
  font-size: var(--step-1);
  line-height: 1.3;
}
@media (max-width: 52rem) {
  .industries__head { grid-template-columns: 1fr; }
  .ledger__row { grid-template-columns: 1fr; }
}

/* 12. FAQ ----------------------------------------------------------------- */
.faq__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}
.faq__intro .lede { margin-top: 1.4rem; }
.faq__item { border-top: 1px solid var(--wax-line); }
.faq__item:last-child { border-bottom: 1px solid var(--wax-line); }
.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.35rem;
  cursor: pointer;
  list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
/* A span, not a heading: screen readers drop headings placed inside a summary. */
.faq__q {
  text-wrap: balance;
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100;
  font-size: var(--step-1);
  font-weight: 560;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
/* The marker is a wick that catches when the answer is open. */
.faq__mark {
  position: relative;
  flex: none;
  width: 2.2rem;
  height: 2.2rem;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  transition: background-color 0.25s, border-color 0.25s;
}
.faq__mark::before,
.faq__mark::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0.8rem;
  height: 2px;
  margin: -1px 0 0 -0.4rem;
  background: var(--ink);
  transition: transform 0.25s;
}
.faq__mark::after { transform: rotate(90deg); }
.faq__item[open] .faq__mark { background: var(--flame); border-color: var(--flame); }
.faq__item[open] .faq__mark::after { transform: rotate(0deg); }
.faq__a { max-width: 62ch; padding-bottom: 1.6rem; color: var(--ink-soft); }
.faq__a a { color: var(--ink); }
@media (max-width: 60rem) { .faq__grid { grid-template-columns: 1fr; } }

/* 13. Audit form ---------------------------------------------------------- */
.audit {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.audit::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(48% 70% at 18% 100%, rgba(255, 182, 39, 0.2), rgba(255, 107, 44, 0.07) 45%, transparent 72%);
}
.audit__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
}
.audit__copy .lede { margin-top: 1.4rem; }
.audit__list { display: grid; gap: 0.8rem; margin-top: 2rem; }
.audit__list li { display: flex; gap: 0.8rem; align-items: baseline; }
.audit__list svg { flex: none; width: 0.95rem; transform: translateY(0.12em); }
.audit__contact { margin-top: 2rem; font-size: var(--step--1); color: var(--mist); }

.form {
  padding: clamp(1.5rem, 4vw, 2.75rem);
  background: var(--wax);
  color: var(--ink);
  border-radius: var(--radius-m);
}
.form__title { font-size: var(--step-2); }
.form__hint { margin-top: 0.4rem; color: var(--ink-soft); font-size: var(--step--1); }
.form__fields { display: grid; gap: 1.1rem; margin-top: 1.6rem; }
.field { display: grid; gap: 0.4rem; }
.field__label { font-size: var(--step--1); font-weight: 700; }
.field__input {
  width: 100%;
  min-height: 3.1rem;
  padding: 0.7rem 0.9rem;
  font: inherit;
  color: var(--ink);
  background: #fff;
  /* Dark enough to be seen against white (above 3:1 contrast). */
  border: 1.5px solid rgba(11, 31, 58, 0.6);
  border-radius: var(--radius-s);
}
.field__input:focus-visible { border-color: var(--ink); }
.field__input[aria-invalid="true"] { border-color: #B3261E; }
.field__error { font-size: var(--step--1); font-weight: 600; color: #B3261E; }
.form .btn { margin-top: 0.5rem; }
.form__status {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  font-size: var(--step--1);
  font-weight: 600;
  background: #FFE9BF;
  border-radius: var(--radius-s);
}
.form__status[hidden] { display: none; }
.form__small { margin-top: 1rem; font-size: var(--step--1); color: var(--ink-soft); }

@media (max-width: 60rem) { .audit__grid { grid-template-columns: 1fr; } }

/* 14. Footer -------------------------------------------------------------- */
.site-footer {
  padding-block: clamp(3rem, 6vw, 5rem) 2rem;
  background: var(--night-deep);
  color: var(--mist);
  font-size: var(--step--1);
}
.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: 2.5rem clamp(1.5rem, 4vw, 4rem);
}
.site-footer__about { max-width: 34ch; margin-top: 1.2rem; line-height: 1.6; }
.site-footer__title {
  margin-bottom: 1rem;
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0;
  color: var(--wax);
}
.site-footer__list { display: grid; gap: 0.6rem; }
.site-footer__list a { text-decoration: none; }
.site-footer__list a:hover { color: var(--wax); text-decoration: underline; text-decoration-color: var(--flame); text-underline-offset: 0.3em; }
.site-footer__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--night-line);
}
@media (max-width: 52rem) { .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 30rem) { .site-footer__grid { grid-template-columns: 1fr; } }

/* 15. Placeholder pages --------------------------------------------------- */
.stub {
  min-height: 82vh;
  display: grid;
  align-items: center;
  padding-top: calc(var(--header-h) + var(--band));
}
.stub__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: end;
}
.stub .lede { margin-top: 1.4rem; }
.stub__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2.2rem; }
.stub__candle {
  position: relative;
  justify-self: center;
  width: 4rem;
  height: 13rem;
  border-radius: 0.8rem 0.8rem 0.15rem 0.15rem;
  background: linear-gradient(180deg, #1D3A64, #152D51);
  box-shadow: inset 0 0 0 1px rgba(247, 245, 240, 0.12);
}
.stub__candle::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 100%;
  width: 2px;
  height: 0.7rem;
  margin-left: -1px;
  background: #6B5A49;
}
.stub__candle-note {
  position: absolute;
  top: calc(100% + 0.8rem);
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: var(--step--1);
  color: var(--mist);
}
@media (max-width: 52rem) {
  .stub__grid { grid-template-columns: 1fr; }
  .stub__candle { display: none; }
}

/* 16. Finish: texture and wax drips ------------------------------------------ */

/* A fine grain over the dark surfaces, so the navy reads as a material and not a flat fill. */
.hero,
.band--night,
.band--deep,
.stub,
.site-footer {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .055 0'/%3E%3C/filter%3E%3Crect width='100%' height='100%' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Wax drips: where a light section meets a dark one, the light section's
   colour runs down into the dark. Add "band--drip" plus the colour modifier
   to the dark section. */
.band--drip {
  position: relative;
  padding-top: calc(var(--band) + 2.5rem);
}
.band--drip::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4.5rem;
  background-repeat: repeat-x;
  background-position: 30% 0;
  background-size: 45rem 4.5rem;
  pointer-events: none;
}
.band--drip-wax::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 720 72' width='720' height='72' fill='%23F7F5F0'%3E%3Cpath d='M0 0H720V9C690 16 664 5 630 10C596 15 572 17 540 10C508 3 486 4 450 10C414 16 392 16 360 10C328 4 304 5 270 10C236 15 214 16 180 10C146 4 124 4 90 10C56 16 34 16 0 9Z'/%3E%3Cpath d='M42 0V12.8C50 12.8 53.5 15.8 53.5 22V30A6.5 6.5 0 1 0 62.5 30V22C62.5 13.9 66 10.9 74 10.9V0Z'/%3E%3Cpath d='M132 0V4C140 4 143.5 7 143.5 22V54A6.5 6.5 0 1 0 152.5 54V22C152.5 9 156 6 164 6V0Z'/%3E%3Cpath d='M220 0V12.6C228 12.6 231.5 15.6 231.5 21V23A6.5 6.5 0 1 0 240.5 23V21C240.5 13.8 244 10.8 252 10.8V0Z'/%3E%3Cpath d='M314 0V4.4C322 4.4 325.5 7.4 325.5 22V41A6.5 6.5 0 1 0 334.5 41V22C334.5 9.2 338 6.2 346 6.2V0Z'/%3E%3Cpath d='M388 0V12.4C396 12.4 399.5 15.4 399.5 16V18A6.5 6.5 0 1 0 408.5 18V16C408.5 15.3 412 12.3 420 12.3V0Z'/%3E%3Cpath d='M470 0V5.5C478 5.5 481.5 8.5 481.5 22V62A6.5 6.5 0 1 0 490.5 62V22C490.5 6.7 494 3.7 502 3.7V0Z'/%3E%3Cpath d='M550 0V10.4C558 10.4 561.5 13.4 561.5 22V29A6.5 6.5 0 1 0 570.5 29V22C570.5 16 574 13 582 13V0Z'/%3E%3Cpath d='M632 0V8.2C640 8.2 643.5 11.2 643.5 22V46A6.5 6.5 0 1 0 652.5 46V22C652.5 10.7 656 7.7 664 7.7V0Z'/%3E%3C/svg%3E"); }
.band--drip-shade::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 720 72' width='720' height='72' fill='%23EDE8DC'%3E%3Cpath d='M0 0H720V9C690 16 664 5 630 10C596 15 572 17 540 10C508 3 486 4 450 10C414 16 392 16 360 10C328 4 304 5 270 10C236 15 214 16 180 10C146 4 124 4 90 10C56 16 34 16 0 9Z'/%3E%3Cpath d='M42 0V12.8C50 12.8 53.5 15.8 53.5 22V30A6.5 6.5 0 1 0 62.5 30V22C62.5 13.9 66 10.9 74 10.9V0Z'/%3E%3Cpath d='M132 0V4C140 4 143.5 7 143.5 22V54A6.5 6.5 0 1 0 152.5 54V22C152.5 9 156 6 164 6V0Z'/%3E%3Cpath d='M220 0V12.6C228 12.6 231.5 15.6 231.5 21V23A6.5 6.5 0 1 0 240.5 23V21C240.5 13.8 244 10.8 252 10.8V0Z'/%3E%3Cpath d='M314 0V4.4C322 4.4 325.5 7.4 325.5 22V41A6.5 6.5 0 1 0 334.5 41V22C334.5 9.2 338 6.2 346 6.2V0Z'/%3E%3Cpath d='M388 0V12.4C396 12.4 399.5 15.4 399.5 16V18A6.5 6.5 0 1 0 408.5 18V16C408.5 15.3 412 12.3 420 12.3V0Z'/%3E%3Cpath d='M470 0V5.5C478 5.5 481.5 8.5 481.5 22V62A6.5 6.5 0 1 0 490.5 62V22C490.5 6.7 494 3.7 502 3.7V0Z'/%3E%3Cpath d='M550 0V10.4C558 10.4 561.5 13.4 561.5 22V29A6.5 6.5 0 1 0 570.5 29V22C570.5 16 574 13 582 13V0Z'/%3E%3Cpath d='M632 0V8.2C640 8.2 643.5 11.2 643.5 22V46A6.5 6.5 0 1 0 652.5 46V22C652.5 10.7 656 7.7 664 7.7V0Z'/%3E%3C/svg%3E"); }

/* With JavaScript and motion on, main.js replaces that background with an inline
   SVG (class "drips") and redraws each drip frame by frame, so the wax wells up,
   runs, stretches and drops. All of the movement is in main.js. */
.band--drip.has-drip-svg::after { content: none; }
.band--drip-wax { --drip-fill: #F7F5F0; }
.band--drip-shade { --drip-fill: #EDE8DC; }
.drips {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 7.5rem;
  overflow: hidden;
  fill: var(--drip-fill);
  pointer-events: none;
}

/* 17. Client reviews ------------------------------------------------------ */
/* The section is hidden in the page until it holds real reviews. */
.reviews[hidden] { display: none; }
.reviews__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem clamp(1.5rem, 4vw, 4rem);
  align-items: end;
}
.reviews__head h2 { grid-column: 1; max-width: 22ch; }
.reviews__head .lede { grid-column: 1; }
.reviews__head .btn { grid-column: 2; grid-row: 1 / span 2; align-self: end; }

.reviews__stage {
  position: relative;
  margin-top: clamp(2rem, 4vw, 3.5rem);
}
.reviews__track {
  display: flex;
  gap: clamp(1rem, 2vw, 1.5rem);
  /* Room above for the avatars, which sit on the card's top edge. */
  padding: 2.75rem 0.25rem 1.5rem;
  margin-inline: -0.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 0.25rem;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.reviews__track::-webkit-scrollbar { display: none; }
.review {
  flex: 0 0 calc((100% - 2 * clamp(1rem, 2vw, 1.5rem)) / 3);
  min-width: 17rem;
  scroll-snap-align: start;
}
.review__card {
  position: relative;
  height: 100%;
  margin: 0;
  padding: 2.75rem 1.5rem 1.6rem;
  background: var(--wax);
  color: var(--ink);
  border-radius: var(--radius-m);
  text-align: center;
}
.review__who { display: grid; justify-items: center; gap: 0.15rem; }
.review__avatar {
  position: absolute;
  left: 50%;
  top: 0;
  display: grid;
  place-items: center;
  width: 4.1rem;
  height: 4.1rem;
  transform: translate(-50%, -50%);
  background: linear-gradient(160deg, var(--amber), var(--flame));
  color: var(--night);
  border: 3px solid var(--night);
  border-radius: 50%;
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100;
  font-size: 1.35rem;
  font-weight: 600;
}
.review__avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.review__name {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100;
  font-size: var(--step-1);
  font-weight: 600;
  line-height: 1.2;
}
.review__date { font-size: var(--step--1); color: var(--ink-soft); }
.review__stars { margin-top: 0.7rem; }
.review__stars svg { display: inline-block; width: 6.5rem; height: auto; }
.review__text { margin: 0.9rem 0 0; text-align: left; line-height: 1.55; color: var(--ink); }
.review__text p + p { margin-top: 0.7em; }

.reviews__arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  padding: 0;
  transform: translateY(-50%);
  background: var(--wax);
  color: var(--night);
  border: 0;
  border-radius: 50%;
  box-shadow: 0 0.4rem 1.4rem rgba(0, 0, 0, 0.35);
  cursor: pointer;
  transition: background-color 0.2s, opacity 0.2s;
}
.reviews__arrow svg { width: 1.2rem; height: 1.2rem; }
.reviews__arrow:hover:not(:disabled) { background: var(--amber); }
.reviews__arrow:disabled { opacity: 0.35; cursor: default; }
.reviews__arrow--prev { left: -1.25rem; }
.reviews__arrow--next { right: -1.25rem; }
.reviews__track:focus-visible { outline-offset: 2px; border-radius: var(--radius-m); }

@media (max-width: 60rem) {
  .review { flex-basis: calc((100% - clamp(1rem, 2vw, 1.5rem)) / 2); }
  .reviews__head { grid-template-columns: 1fr; }
  .reviews__head .btn { grid-column: 1; grid-row: auto; justify-self: start; margin-top: 0.5rem; }
}
@media (max-width: 40rem) {
  .review { flex-basis: 84%; min-width: 0; }
  .reviews__arrow { display: none; }
}

/* Motion preferences ------------------------------------------------------ */
/* Reduced motion is handled case by case. Looping animations stop, and anything
   that moves, scales or rotates changes instantly. Colour and opacity changes
   keep their short transitions, because those are not motion. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .candle__flame svg,
  .logo__flame,
  .ember { animation: none; }

  .candle__flame,
  .service__candle svg,
  .faq__mark::before,
  .faq__mark::after { transition: none; }

  .nav-toggle__bars,
  .nav-toggle__bars::before,
  .nav-toggle__bars::after { transition: background-color 0.25s; }

  .is-open .nav { transition: opacity 0.2s; }
  .text-link { transition: text-decoration-color 0.2s; }
}
