/* ==========================================================================
   Tephera AI — site stylesheet
   Signature idea: "Ashfall" — warm aurora embers, film grain and slow-falling
   ash particles over deep plum. Supporting detail: the "bar cut", the 45deg
   chamfer taken from the ends of the mark's top bar, used on buttons/panels.
   ========================================================================== */

/* ---------- 0. Font: Nohemi (free for personal + commercial use; files unmodified, licence in assets/fonts) */
@font-face { font-family: "Nohemi"; src: url("../fonts/Nohemi-ExtraLight.woff2") format("woff2"); font-weight: 200; font-style: normal; font-display: swap; }
@font-face { font-family: "Nohemi"; src: url("../fonts/Nohemi-ExtraBold.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Nohemi"; src: url("../fonts/Nohemi-Light.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Nohemi"; src: url("../fonts/Nohemi-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Nohemi"; src: url("../fonts/Nohemi-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Nohemi"; src: url("../fonts/Nohemi-SemiBold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Nohemi"; src: url("../fonts/Nohemi-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Nohemi"; src: url("../fonts/Nohemi-Black.woff2") format("woff2"); font-weight: 900; font-style: normal; font-display: swap; }

/* ---------- 1. Tokens ---------------------------------------------------- */
:root {
  /* Colour — values sampled from brand/tephra-mark.jpg + tephra-wordmark.jpg */
  --c-plum-950: #1c0f13;   /* deepest; text on coral */
  --c-plum-900: #2a171d;   /* page background */
  --c-plum-800: #3d2229;   /* surfaces (sampled brand plum) */
  --c-wine-700: #55303a;   /* raised surfaces, hairlines */
  --c-wine-600: #6b3f46;   /* aurora mid-tone, decorative */
  --c-wine-500: #935155;   /* aurora mid-tone, decorative only */
  --c-mauve-400: #a88884;  /* tertiary text (on 900/950 only), input borders */
  --c-coral-400: #e07a72;  /* primary accent / primary button */
  --c-coral-300: #eb9a8f;  /* hover, links, highlights */
  --c-pink-300: #d8aea6;   /* secondary text */
  --c-cream-100: #f8ddd2;  /* primary text + logo (sampled) */
  --c-cream-50: #fcf1ec;   /* hover fill for primary button */
  --c-danger: #ffa899;     /* form errors (always paired with icon + text) */

  /* Roles */
  --bg: var(--c-plum-900);
  --bg-deep: var(--c-plum-950);
  --surface: var(--c-plum-800);
  --surface-2: var(--c-wine-700);
  --line: rgba(216, 174, 166, 0.18);
  --line-strong: var(--c-mauve-400);
  --text: var(--c-cream-100);
  --text-2: var(--c-pink-300);
  --text-3: var(--c-mauve-400);
  --accent: var(--c-coral-400);
  --accent-2: var(--c-coral-300);
  --on-accent: var(--c-plum-950);
  --focus: var(--c-cream-100);

  /* Type */
  --font-display: "Nohemi", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Nohemi", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "Nohemi", ui-sans-serif, system-ui, sans-serif;

  --step--1: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --step-1: clamp(1.1875rem, 1.1rem + 0.45vw, 1.4375rem);
  --step-2: clamp(1.5rem, 1.3rem + 1vw, 2.125rem);
  --step-3: clamp(1.875rem, 1.5rem + 1.9vw, 3.125rem);
  --step-4: clamp(2.375rem, 1.7rem + 3.4vw, 4.75rem);
  --step-5: clamp(2.75rem, 1.6rem + 5.8vw, 7.75rem);

  --lh-tight: 0.98;
  --lh-snug: 1.15;
  --lh-body: 1.6;
  --track-tight: -0.025em;
  --track-mono: 0.08em;

  /* Space (4px base) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --space-10: 8rem;
  --gutter: clamp(1.25rem, 0.8rem + 2.2vw, 3rem);
  --section-y: clamp(4.5rem, 3rem + 6vw, 9rem);
  --container: 90rem;

  /* Shape */
  --cut: 12px;            /* the "bar cut" chamfer */
  --cut-lg: 22px;
  --radius-pill: 999px;
  --header-h: 4.5rem;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-1: 160ms;
  --dur-2: 320ms;
  --dur-3: 800ms;
  --dur-ambient: 32s;

  color-scheme: dark;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: var(--lh-body);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video, canvas { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ol, ul, dl, dd, figure, blockquote { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: var(--track-tight);
  line-height: var(--lh-snug);
  text-wrap: balance;
}
p { text-wrap: pretty; }

a { color: inherit; }

::selection { background: var(--c-coral-400); color: var(--c-plum-950); }

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

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -100px;
  z-index: 100;
  padding: var(--space-3) var(--space-4);
  background: var(--c-cream-100);
  color: var(--c-plum-950);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: var(--space-4); }

/* Placeholder copy the client must replace */
.ph {
  font-family: var(--font-mono);
  font-size: 0.85em;
  letter-spacing: 0.01em;
  color: var(--c-coral-300);
  background: rgba(224, 122, 114, 0.1);
  border: 1px dashed rgba(235, 154, 143, 0.55);
  padding: 0.05em 0.4em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* ---------- 3. Layout ---------------------------------------------------- */
.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}
.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: calc(var(--section-y) * 0.6); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: var(--track-mono);
  text-transform: uppercase;
  color: var(--text-2);
}
.eyebrow::before {
  content: "";
  width: 1.25rem; height: 2px;
  background: var(--accent);
  transform: skewX(-45deg);
}

.lead {
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--text-2);
  max-width: 38ch;
}

.section-head {
  display: grid;
  gap: var(--space-5);
  margin-bottom: var(--space-8);
}
.section-head h2 { font-size: var(--step-4); line-height: 1.02; max-width: 16ch; }
.section-head p:not(.eyebrow) { color: var(--text-2); max-width: 46ch; }
@media (min-width: 60em) {
  .section-head { grid-template-columns: 1fr 1fr; align-items: end; }
  .section-head .eyebrow, .section-head > .product__meta { grid-column: 1 / -1; }
  .section-head p:not(.eyebrow) { justify-self: end; }
}

/* ---------- 4. Brand: logo ---------------------------------------------- */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--c-cream-100);
}
.logo__mark { width: 1.35rem; height: auto; flex: none; }
.logo__word {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  line-height: 1;
}

/* ---------- 5. Buttons & links ------------------------------------------ */
.btn {
  --btn-bg: var(--accent);
  --btn-fg: var(--on-accent);
  --btn-line: transparent;
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  min-height: 3.25rem;
  padding: 0 calc(var(--space-5) + 4px);
  border: 0;
  background: none;
  color: var(--btn-fg);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.0625rem;
  letter-spacing: -0.005em;
  text-decoration: none;
  cursor: pointer;
  transition: color var(--dur-1) var(--ease-out), transform var(--dur-1) var(--ease-out);
}
/* fill layer carries the bar-cut so the focus outline is never clipped */
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--btn-bg);
  clip-path: polygon(0 0, 100% 0, calc(100% - var(--cut)) 100%, var(--cut) 100%);
  transition: background-color var(--dur-1) var(--ease-out);
}
.btn .icon { width: 1.1em; height: 1.1em; transition: transform var(--dur-2) var(--ease-out); }
.btn:hover { --btn-bg: var(--c-cream-50); }
.btn:hover .icon { transform: translate(2px, -2px); }
.btn:active { transform: translateY(1px); --btn-bg: var(--c-coral-300); }
.btn:focus-visible { outline-offset: 4px; }
.btn[disabled], .btn[aria-disabled="true"] {
  --btn-bg: var(--c-wine-700);
  --btn-fg: var(--c-pink-300);
  cursor: not-allowed;
  transform: none;
}

/* Ghost: hairline + transparent fill, for secondary actions */
.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--text);
}
.btn--ghost::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--line-strong);
  clip-path: polygon(evenodd,
    0 0, 100% 0, calc(100% - var(--cut)) 100%, var(--cut) 100%, 0 0,
    1.4px 1px, calc(100% - 1.4px) 1px, calc(100% - var(--cut) - 0.4px) calc(100% - 1px), calc(var(--cut) + 0.4px) calc(100% - 1px), 1.4px 1px);
}
.btn--ghost:hover { --btn-bg: rgba(248, 221, 210, 0.1); }
.btn--ghost:active { --btn-bg: rgba(248, 221, 210, 0.16); }

.btn--sm { min-height: 2.5rem; padding-inline: var(--space-5); font-size: 0.9375rem; --cut: 9px; }

.link {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--c-coral-400);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
  transition: color var(--dur-1), text-decoration-color var(--dur-1), text-underline-offset var(--dur-1);
}
.link:hover { color: var(--accent-2); text-underline-offset: 0.35em; text-decoration-color: currentColor; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-weight: 500;
  text-decoration: none;
  color: var(--text);
  border-bottom: 1px solid var(--c-coral-400);
  padding-bottom: 2px;
  transition: color var(--dur-1), border-color var(--dur-1);
}
.link-arrow .icon { width: 1em; height: 1em; transition: transform var(--dur-2) var(--ease-out); }
.link-arrow:hover { color: var(--accent-2); border-color: currentColor; }
.link-arrow:hover .icon { transform: translateX(3px); }

.icon { width: 1.25rem; height: 1.25rem; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- 6. Badges / chips ------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-2);
  white-space: nowrap;
}
.badge--live::before {
  content: "";
  width: 0.45rem; height: 0.45rem;
  border-radius: 50%;
  background: var(--c-coral-400);
  box-shadow: 0 0 0 3px rgba(224, 122, 114, 0.25);
}

/* ---------- 7. Header & navigation -------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  height: var(--header-h);
  transition: background-color var(--dur-2) var(--ease-out), border-color var(--dur-2);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(28, 15, 19, 0.78);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}
.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
}

.nav { display: none; }
.nav__list { display: flex; gap: var(--space-1); padding: 0; margin: 0; list-style: none; }
.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 var(--space-4);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-2);
  text-decoration: none;
  transition: color var(--dur-1);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: var(--space-4); right: var(--space-4); bottom: 0.55rem;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0) skewX(-45deg);
  transform-origin: left;
  transition: transform var(--dur-2) var(--ease-out);
}
.nav__link:hover { color: var(--text); }
.nav__link:hover::after { transform: scaleX(1) skewX(-45deg); }
.nav__link[aria-current="page"], .nav__link[aria-current="true"] { color: var(--text); }
.nav__link[aria-current="page"]::after, .nav__link[aria-current="true"]::after { transform: scaleX(1) skewX(-45deg); }

.header-cta { display: none; }

.menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  min-height: 2.75rem;
  padding: 0 var(--space-4);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: rgba(28, 15, 19, 0.4);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: var(--track-mono);
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color var(--dur-1), border-color var(--dur-1);
}
.menu-toggle:hover { background: rgba(248, 221, 210, 0.08); border-color: var(--text); }
.menu-toggle__bars { position: relative; width: 18px; height: 10px; }
.menu-toggle__bars::before, .menu-toggle__bars::after {
  content: "";
  position: absolute; left: 0; right: 0; height: 1.5px;
  background: currentColor;
  transition: transform var(--dur-2) var(--ease-out), top var(--dur-2) var(--ease-out);
}
.menu-toggle__bars::before { top: 0; }
.menu-toggle__bars::after { top: 8px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::before { top: 4px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::after { top: 4px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 35;
  padding: calc(var(--header-h) + var(--space-6)) var(--gutter) var(--space-6);
  background: var(--c-plum-950);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-6);
  overflow-y: auto;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu__list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-2); }
.mobile-menu__link {
  display: flex;
  align-items: baseline;
  gap: var(--space-4);
  padding-block: var(--space-3);
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: var(--step-3);
  font-weight: 500;
  letter-spacing: var(--track-tight);
  text-decoration: none;
  color: var(--text);
}
.mobile-menu__link span { font-family: var(--font-mono); font-size: var(--step--1); color: var(--text-3); letter-spacing: var(--track-mono); }
.mobile-menu__link[aria-current="page"], .mobile-menu__link[aria-current="true"] { color: var(--accent-2); }
.mobile-menu__link:hover { color: var(--accent-2); }
.is-menu-open { overflow: hidden; }

@media (min-width: 56em) {
  .nav {
    display: block;
    padding: var(--space-1);
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    background: rgba(28, 15, 19, 0.35);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }
  .site-header.is-scrolled .nav { background: transparent; border-color: transparent; }
  .header-cta { display: inline-flex; }
  .menu-toggle, .mobile-menu { display: none !important; }
}

/* ---------- 8. Ashfall: aurora + grain + ember -------------------------- */
.aurora {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: var(--c-plum-900);
  pointer-events: none;
}
.aurora__blob {
  position: absolute;
  border-radius: 50%;
  will-change: transform;
  animation: aurora-drift var(--dur-ambient) var(--ease-in-out) infinite alternate;
}
.aurora__blob--pink  { width: 95vmax; height: 50vmax; right: -30vmax; top: -22vmax; background: radial-gradient(closest-side, rgba(226, 184, 174, 0.78), rgba(216, 174, 166, 0.42) 40%, rgba(216, 174, 166, 0.12) 70%, rgba(216, 174, 166, 0)); }
.aurora__blob--coral { width: 80vmax; height: 60vmax; right: -34vmax; top: 22%; background: radial-gradient(closest-side, rgba(224, 122, 114, 0.85), rgba(224, 122, 114, 0.45) 40%, rgba(224, 122, 114, 0.12) 72%, rgba(224, 122, 114, 0)); animation-duration: calc(var(--dur-ambient) * 1.2); animation-delay: -8s; }
.aurora__blob--wine  { width: 110vmax; height: 45vmax; left: -40vmax; bottom: -20vmax; background: radial-gradient(closest-side, rgba(147, 81, 85, 0.8), rgba(147, 81, 85, 0.4) 45%, rgba(147, 81, 85, 0)); animation-duration: calc(var(--dur-ambient) * 0.9); animation-delay: -14s; }
.aurora__blob--mauve { width: 100vmax; height: 30vmax; left: 5%; bottom: -14vmax; background: radial-gradient(closest-side, rgba(168, 136, 132, 0.5), rgba(168, 136, 132, 0.2) 50%, rgba(168, 136, 132, 0)); animation-duration: calc(var(--dur-ambient) * 1.4); animation-delay: -20s; }
/* narrow screens: text spans the full width, so the glow lives in the empty top half */
@media (max-width: 47.99em) {
  .aurora__blob--pink  { width: 140vw; height: 70vh; right: -50vw; top: -28vh; }
  .aurora__blob--coral { width: 130vw; height: 55vh; right: -60vw; top: 6vh; }
  .aurora__blob--wine  { width: 150vw; height: 50vh; left: -70vw; top: 0; bottom: auto; }
  .aurora__blob--mauve { display: none; }
  .aurora::before { background: linear-gradient(0deg, rgba(42, 23, 29, 0.97) 0%, rgba(42, 23, 29, 0.92) 62%, rgba(42, 23, 29, 0.3) 88%, rgba(42, 23, 29, 0.05) 100%) !important; }
  #contact .aurora::before { background: rgba(42, 23, 29, 0.88) !important; }
}
.aurora__ember {
  position: absolute;
  left: 0; top: 0;
  width: 46vmax; height: 46vmax;
  margin: -23vmax 0 0 -23vmax;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(235, 154, 143, 0.32), rgba(235, 154, 143, 0) 70%);
  opacity: 0;
  transition: opacity 600ms var(--ease-out);
  will-change: transform;
}
.aurora.has-ember .aurora__ember { opacity: 1; }
/* scrim keeps the text side of every aurora dark enough for AA */
.aurora::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(42, 23, 29, 0.92) 0%, rgba(42, 23, 29, 0.55) 45%, rgba(42, 23, 29, 0) 75%),
    linear-gradient(0deg, rgba(42, 23, 29, 0.95) 0%, rgba(42, 23, 29, 0) 45%);
}
.aurora::after { /* film grain */
  content: "";
  position: absolute;
  inset: -50%;
  z-index: 2;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 .92 0 0 0 0 .88 0 0 0 1.1 -.35'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.16;
  animation: grain 900ms steps(6) infinite;
}
.aurora--soft .aurora__blob--pink { opacity: 0.55; }
.aurora--soft .aurora__blob--coral { opacity: 0.6; }

@keyframes aurora-drift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(-6vmax, 4vmax, 0) scale(1.08); }
  100% { transform: translate3d(3vmax, -3vmax, 0) scale(0.95); }
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -4%); }
  60% { transform: translate(-4%, -1%); }
  80% { transform: translate(3%, 3%); }
  100% { transform: translate(-1%, 4%); }
}

/* page-wide faint grain so lower sections share the texture */
.page-grain {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 .92 0 0 0 0 .88 0 0 0 1.1 -.35'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.07;
}

/* falling ash (canvas drawn by main.js) */
.ashfall {
  position: fixed;
  inset: 0;
  z-index: 30;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* ---------- 9. Hero (home) ---------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  align-content: end;
  padding-top: calc(var(--header-h) + var(--space-8));
  padding-bottom: clamp(2.5rem, 2rem + 3vw, 5rem);
}
.hero__inner { display: grid; gap: var(--space-6); }
.hero__title {
  font-size: var(--step-5);
  font-weight: 700;
  line-height: var(--lh-tight);
  letter-spacing: -0.035em;
  max-width: 13ch;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero__title .line > span { display: inline-block; }
.hero__title em { font-style: normal; font-weight: 300; color: var(--accent-2); }
.hero__foot { display: grid; gap: var(--space-6); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4) var(--space-6); }
.hero__scroll {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(2.5rem, 2rem + 3vw, 5rem);
  display: none;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: var(--track-mono);
  text-transform: uppercase;
  color: var(--text-2);
  writing-mode: vertical-rl;
}
.hero__scroll::after {
  content: "";
  width: 1px; height: 3.5rem;
  background: linear-gradient(var(--text-2), transparent);
}
@media (min-width: 60em) {
  .hero__foot { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
  .hero__scroll { display: inline-flex; }
  .hero__inner { padding-right: 4rem; }
}

/* load-in: lines rise once fonts are ready */
.js .hero__title .line > span { transform: translateY(105%); }
.js.is-loaded .hero__title .line > span { transform: none; transition: transform 1.1s var(--ease-out); }
.js.is-loaded .hero__title .line:nth-child(2) > span { transition-delay: 90ms; }
.js.is-loaded .hero__title .line:nth-child(3) > span { transition-delay: 180ms; }

/* ---------- 10. Page hero (inner pages) --------------------------------- */
.page-hero {
  position: relative;
  isolation: isolate;
  min-height: 72vh;
  min-height: 72svh;
  display: grid;
  align-content: end;
  padding-top: calc(var(--header-h) + var(--space-8));
  padding-bottom: var(--space-8);
}
.page-hero h1 {
  font-size: var(--step-5);
  line-height: var(--lh-tight);
  letter-spacing: -0.035em;
  max-width: 14ch;
  margin-block: var(--space-5) var(--space-6);
}
.page-hero h1 em { font-style: normal; color: var(--accent-2); }
.jump-list { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-7); padding: 0; list-style: none; }
.jump-list a {
  display: inline-flex; align-items: center; gap: var(--space-2);
  min-height: 2.75rem; padding: 0 var(--space-4);
  border: 1px solid var(--line-strong); border-radius: var(--radius-pill);
  font-family: var(--font-display); font-weight: 500; font-size: 0.9375rem;
  text-decoration: none; color: var(--text);
  background: rgba(28, 15, 19, 0.35);
  transition: background-color var(--dur-1), border-color var(--dur-1), color var(--dur-1);
}
.jump-list a span { font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-2); }
.jump-list a:hover { background: var(--c-cream-100); color: var(--c-plum-950); border-color: var(--c-cream-100); }
.jump-list a:hover span { color: var(--c-plum-800); }

/* ---------- 11. Intro statement (home) ---------------------------------- */
.statement {
  font-family: var(--font-display);
  font-size: var(--step-3);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -0.02em;
  max-width: 28ch;
  margin-top: var(--space-6);
}
.statement strong { font-weight: 500; color: var(--accent-2); }

.pillars {
  display: grid;
  gap: var(--space-6);
  margin-top: var(--space-9);
  padding: 0;
  list-style: none;
  counter-reset: pillar;
}
.pillar { padding-top: var(--space-5); border-top: 1px solid var(--line); }
.pillar__num { font-family: var(--font-mono); font-size: var(--step--1); color: var(--text-3); letter-spacing: var(--track-mono); }
.pillar h3 { font-weight: 500; font-size: var(--step-2); margin-block: var(--space-4) var(--space-3); }
.pillar p { color: var(--text-2); max-width: 34ch; }
@media (min-width: 48em) { .pillars { grid-template-columns: repeat(3, 1fr); } }

/* ---------- 12. Product index (home) ------------------------------------ */
.index { list-style: none; padding: 0; margin: 0; border-bottom: 1px solid var(--line); }
.index__row {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas:
    "num name arrow"
    "num desc arrow"
    "num status arrow";
  column-gap: var(--space-4);
  row-gap: var(--space-2);
  align-items: center;
  padding: var(--space-6) 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
  color: var(--text);
  overflow: hidden;
}
.index__row::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(224, 122, 114, 0.16), rgba(224, 122, 114, 0) 70%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 600ms var(--ease-out);
}
.index__num { grid-area: num; align-self: start; padding-top: 0.6em; font-family: var(--font-mono); font-size: var(--step--1); color: var(--text-3); }
.index__name {
  grid-area: name;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: min(var(--step-4), 4.25rem);
  line-height: 1;
  letter-spacing: -0.03em;
  transition: transform 600ms var(--ease-out), color var(--dur-2);
}
.index__desc { grid-area: desc; color: var(--text-2); max-width: 44ch; }
.index__status { grid-area: status; justify-self: start; }
.index__arrow {
  grid-area: arrow;
  display: grid; place-items: center;
  width: 3rem; height: 3rem;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  transition: background-color var(--dur-2), color var(--dur-2), transform 600ms var(--ease-out), border-color var(--dur-2);
}
.index__row:hover::before, .index__row:focus-visible::before { transform: scaleX(1); }
.index__row:hover .index__name { transform: translateX(0.4rem); color: var(--accent-2); }
.index__row:hover .index__arrow { background: var(--c-cream-100); color: var(--c-plum-950); border-color: var(--c-cream-100); transform: rotate(-45deg); }
.index__row:focus-visible { outline-offset: -2px; }
@media (min-width: 60em) {
  .index__row {
    grid-template-columns: 3rem minmax(0, 1.6fr) minmax(0, 1fr) auto auto;
    grid-template-areas: "num name desc status arrow";
    column-gap: var(--space-6);
    padding: var(--space-7) var(--space-4) var(--space-7) 0;
  }
  .index__num { align-self: center; padding-top: 0; }
  .index__status { justify-self: end; }
}

/* ---------- 13. CTA band ------------------------------------------------- */
.cta-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(5rem, 3rem + 9vw, 11rem);
}
.cta-band .aurora::before {
  background: linear-gradient(90deg, rgba(42, 23, 29, 0.9) 0%, rgba(42, 23, 29, 0.6) 50%, rgba(42, 23, 29, 0.1) 85%);
}
.cta-band__inner { display: grid; gap: var(--space-6); justify-items: start; }
.cta-band h2 { font-size: var(--step-5); line-height: var(--lh-tight); letter-spacing: -0.035em; max-width: 14ch; }
.cta-band__inner p:not(.eyebrow) { color: var(--text-2); max-width: 44ch; font-size: var(--step-1); }

/* ---------- 14. Footer --------------------------------------------------- */
.site-footer {
  position: relative;
  background: var(--c-plum-950);
  border-top: 1px solid var(--line);
  padding-block: var(--space-8) var(--space-6);
  font-size: 0.9375rem;
}
.footer-grid { display: grid; gap: var(--space-7); }
.footer-brand .logo__mark { width: 2.25rem; }
.footer-brand .logo__word { font-size: 2.25rem; }
.footer-brand p { margin-top: var(--space-4); color: var(--text-2); max-width: 30ch; }
.footer-col h2 {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: var(--track-mono);
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: var(--space-4);
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.footer-col a { color: var(--text); text-decoration: none; display: inline-block; padding-block: 0.2rem; }
.footer-col a:hover { color: var(--accent-2); text-decoration: underline; text-underline-offset: 0.25em; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-4);
  margin-top: var(--space-8);
  padding-top: var(--space-5);
  border-top: 1px solid var(--line);
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}
.footer-bottom a { color: var(--text-2); }
.footer-giant {
  display: flex;
  align-items: flex-end;
  gap: 0.06em;
  margin-top: var(--space-8);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 19.5vw;
  font-size: 22.6cqi; /* fills the footer width exactly: "Tephera" + mark ≈ 4.37em wide */
  line-height: 0.78;
  letter-spacing: -0.045em;
  color: var(--c-plum-800);
  user-select: none;
  overflow: hidden;
}
.site-footer > .container { container-type: inline-size; }
.footer-giant svg { width: 0.62em; height: auto; flex: none; margin-bottom: 0.02em; }
@media (min-width: 48em) {
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; }
}

/* ---------- 15. Product sections (products page) ------------------------ */
.product { border-top: 1px solid var(--line); }
.product__grid { display: grid; gap: var(--space-8); align-items: start; }
.product__meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); }
.product__num { font-family: var(--font-mono); font-size: var(--step--1); color: var(--text-3); letter-spacing: var(--track-mono); }
.product h2 { font-size: var(--step-4); line-height: 1; letter-spacing: -0.03em; margin-block: var(--space-5); }
.product__intro { color: var(--text-2); font-size: var(--step-1); line-height: 1.5; max-width: 34ch; }
.feature-list { list-style: none; padding: 0; margin: var(--space-6) 0 0; display: grid; gap: 0; }
.feature-list li {
  display: grid; grid-template-columns: 1.5rem 1fr; gap: var(--space-3);
  padding-block: var(--space-3);
  border-bottom: 1px solid var(--line);
}
.feature-list li::before {
  content: "";
  width: 0.75rem; height: 2px;
  margin-top: 0.8em;
  background: var(--accent);
  transform: skewX(-45deg);
}
.product__note { margin-top: var(--space-5); font-size: var(--step--1); color: var(--text-3); }
.product__actions { margin-top: var(--space-6); display: flex; flex-wrap: wrap; gap: var(--space-4) var(--space-6); align-items: center; }
@media (min-width: 64em) {
  .product__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-9); }
  .product__grid--flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .product__grid--flip .product__copy { order: 2; }
  .product__copy { position: sticky; top: calc(var(--header-h) + var(--space-6)); }
}

/* Panel: bar-cut container shared by both demos */
.panel {
  position: relative;
  isolation: isolate;
  padding: clamp(1rem, 0.6rem + 1.6vw, 1.75rem);
  min-width: 0;
}
.panel::before, .panel::after {
  content: "";
  position: absolute;
  z-index: -1;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut-lg)), calc(100% - var(--cut-lg)) 100%, 0 100%);
}
.panel::before { inset: 0; background: var(--line-strong); opacity: 0.55; }
.panel::after { inset: 1px; background: linear-gradient(160deg, var(--c-plum-800), var(--c-plum-950) 70%); }

.panel__bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--line);
}
.panel__title { font-family: var(--font-display); font-weight: 500; font-size: 1.0625rem; }
.panel__sub { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.05em; color: var(--text-2); }
.panel__disclaimer { margin-top: var(--space-4); font-size: 0.8125rem; color: var(--text-2); }

/* Tabs */
.tabs { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-block: var(--space-4); }
.tab {
  min-height: 2.5rem;
  padding: 0 var(--space-4);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: transparent;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-2);
  cursor: pointer;
  transition: background-color var(--dur-1), color var(--dur-1), border-color var(--dur-1);
}
.tab:hover { color: var(--text); border-color: var(--text); }
.tab[aria-selected="true"] { background: var(--c-cream-100); color: var(--c-plum-950); border-color: var(--c-cream-100); }

/* Receptionist call UI */
.call { display: grid; gap: var(--space-5); }
.call__status { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4); }
.call__timer { font-family: var(--font-mono); font-size: 0.875rem; color: var(--text-2); font-variant-numeric: tabular-nums; }
.wave { display: flex; align-items: center; gap: 3px; height: 28px; }
.wave span {
  width: 3px; height: 30%;
  border-radius: 2px;
  background: var(--c-pink-300);
  opacity: 0.5;
  transition: height 160ms;
}
.call.is-speaking .wave span { animation: wave 900ms var(--ease-in-out) infinite; opacity: 1; }
.call.is-speaking[data-speaker="ai"] .wave span { background: var(--c-coral-400); }
.wave span:nth-child(2n) { animation-delay: -200ms !important; }
.wave span:nth-child(3n) { animation-delay: -450ms !important; }
.wave span:nth-child(5n) { animation-delay: -650ms !important; }
@keyframes wave { 0%, 100% { height: 20%; } 50% { height: 100%; } }

.call__body { display: grid; gap: var(--space-5); }
.transcript {
  list-style: none;
  margin: 0; padding: 0 var(--space-2) 0 0;
  display: flex; flex-direction: column; gap: var(--space-3);
  height: 22rem;
  overflow-y: auto;
  scroll-behavior: smooth;
  overscroll-behavior: contain;
}
.transcript:focus-visible { outline-offset: 2px; }
.msg { max-width: 88%; display: grid; gap: 0.2rem; animation: msg-in 420ms var(--ease-out) both; }
.msg__who { font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-2); }
.msg__text {
  padding: var(--space-3) var(--space-4);
  font-size: 0.9375rem;
  line-height: 1.5;
  background: var(--c-wine-700);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}
.msg--ai { align-self: flex-start; }
.msg--caller { align-self: flex-end; text-align: right; }
.msg--caller .msg__text { background: var(--c-cream-100); color: var(--c-plum-950); clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%); text-align: left; }
.msg--typing .msg__text { display: inline-flex; gap: 4px; width: max-content; }
.msg--typing .msg__text i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: 0.6; animation: dot 1s infinite; }
.msg--typing .msg__text i:nth-child(2) { animation-delay: 0.15s; }
.msg--typing .msg__text i:nth-child(3) { animation-delay: 0.3s; }
@keyframes dot { 0%, 100% { opacity: 0.25; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-2px); } }
@keyframes msg-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.summary {
  padding: var(--space-4);
  border: 1px solid var(--line);
  background: rgba(28, 15, 19, 0.5);
}
.summary h3 { font-family: var(--font-mono); font-size: 0.75rem; font-weight: 400; letter-spacing: var(--track-mono); text-transform: uppercase; color: var(--text-2); margin-bottom: var(--space-3); }
.summary dl { display: grid; gap: var(--space-3); }
.summary dt { font-size: 0.8125rem; color: var(--text-2); }
.summary dd { font-family: var(--font-display); font-weight: 500; min-height: 1.5em; }
.summary dd.is-empty { color: var(--text-3); font-family: var(--font-mono); font-weight: 400; font-size: 0.875rem; }
.summary dd.is-filled { animation: fill-in 600ms var(--ease-out); }
@keyframes fill-in { from { color: var(--c-coral-300); } to { color: var(--text); } }

.call__controls { display: flex; flex-wrap: wrap; gap: var(--space-3); }
@media (min-width: 40em) {
  .call__body { grid-template-columns: minmax(0, 1fr) 13rem; }
}

/* Website-builder mock */
.builder { display: grid; gap: var(--space-5); }
.prompt {
  display: flex; align-items: flex-start; gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--line-strong);
  background: rgba(28, 15, 19, 0.6);
  font-size: 0.9375rem;
  min-height: 3.25rem;
}
.prompt__label { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-2); padding-top: 0.2rem; white-space: nowrap; }
.prompt__text::after { content: ""; display: inline-block; width: 2px; height: 1.1em; margin-left: 2px; vertical-align: -0.2em; background: var(--accent); animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }

.choice { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }
.choice legend { float: left; margin-right: var(--space-3); font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-2); }
.choice label { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span {
  display: inline-flex; align-items: center; min-height: 2.5rem; padding: 0 var(--space-4);
  border: 1px solid var(--line-strong); border-radius: var(--radius-pill);
  font-family: var(--font-display); font-size: 0.9375rem; font-weight: 500; color: var(--text-2);
  transition: background-color var(--dur-1), color var(--dur-1), border-color var(--dur-1);
}
.choice input:hover + span { color: var(--text); border-color: var(--text); }
.choice input:checked + span { background: var(--c-cream-100); color: var(--c-plum-950); border-color: var(--c-cream-100); }
.choice input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 3px; }

.browser { border: 1px solid var(--line); background: var(--c-plum-950); overflow: hidden; }
.browser__bar { display: flex; align-items: center; gap: var(--space-3); padding: 0.6rem 0.8rem; border-bottom: 1px solid var(--line); }
.browser__dots { display: flex; gap: 6px; }
.browser__dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--c-wine-700); }
.browser__url { flex: 1; min-width: 0; padding: 0.25rem 0.6rem; background: var(--c-plum-800); font-family: var(--font-mono); font-size: 0.6875rem; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Sample build preview: the /claylot site in an iframe, drawn at a real screen width and scaled to fit (main.js sets the scale) */
.builder__open { font-size: 0.875rem; }
.site-frame { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #2a1712; }
.site-frame iframe { position: absolute; top: 0; left: 0; border: 0; transform-origin: 0 0; background: #2a1712; }
.builder__hint { font-size: 0.8125rem; color: var(--text-2); }
@media (max-width: 30em) { .site-frame { aspect-ratio: 4 / 5; } }

/* Coming next */
.next-grid { display: grid; gap: var(--space-4); }
@media (min-width: 48em) { .next-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 72em) { .next-grid { grid-template-columns: repeat(3, 1fr); } }
.card {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  min-height: 17rem;
  padding: var(--space-6);
  color: var(--text);
  text-decoration: none;
}
.card::before, .card::after {
  content: "";
  position: absolute;
  z-index: -1;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut-lg)), calc(100% - var(--cut-lg)) 100%, 0 100%);
  transition: background-color var(--dur-2), opacity var(--dur-2);
}
.card::before { inset: 0; background: var(--line-strong); opacity: 0.4; }
.card::after { inset: 1px; background: var(--c-plum-900); }
.card h3 { font-weight: 500; font-size: var(--step-2); margin-top: auto; }
.card h3 .ph { font-size: 0.55em; }
.card p { color: var(--text-2); }
.card__top { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); }
.card--dashed::before { background: repeating-linear-gradient(90deg, var(--line-strong) 0 6px, transparent 6px 12px); opacity: 0.6; }
a.card:hover::before { opacity: 1; background: var(--c-coral-400); }
a.card:hover::after { background: var(--c-plum-800); }
a.card .link-arrow { align-self: flex-start; }

/* ---------- 16. About page ---------------------------------------------- */
.split { display: grid; gap: var(--space-6); }
.split__label { color: var(--text-2); }
.split__body { display: grid; gap: var(--space-5); font-size: var(--step-1); line-height: 1.55; max-width: 40ch; }
@media (min-width: 60em) { .split { grid-template-columns: 1fr 1.4fr; gap: var(--space-9); } }

.principles { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.principle {
  display: grid;
  gap: var(--space-3);
  padding-block: var(--space-6);
  border-top: 1px solid var(--line);
}
.principle:last-child { border-bottom: 1px solid var(--line); }
.principle__num { font-family: var(--font-mono); font-size: var(--step--1); color: var(--text-3); }
.principle h3 { font-weight: 500; font-size: var(--step-3); line-height: 1.05; }
.principle p { color: var(--text-2); max-width: 46ch; }
@media (min-width: 60em) {
  .principle { grid-template-columns: 4rem minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-6); align-items: baseline; }
}

.people { display: grid; gap: var(--space-4); }
@media (min-width: 40em) { .people { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64em) { .people { grid-template-columns: repeat(3, 1fr); } }
.person { display: grid; grid-template-columns: 4rem 1fr; gap: var(--space-4); align-items: center; padding: var(--space-4); border: 1px dashed var(--line-strong); }
.person__avatar { width: 4rem; height: 4rem; display: grid; place-items: center; background: var(--c-plum-800); color: var(--c-pink-300); }
.person__avatar svg { width: 1.4rem; height: auto; }
.person p { font-size: 0.9375rem; }

/* ---------- 17. Contact form -------------------------------------------- */
.contact-grid { display: grid; gap: var(--space-8); }
@media (min-width: 64em) { .contact-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-9); } }
.contact-aside h2 { font-size: var(--step-4); line-height: 1; letter-spacing: -0.03em; margin-block: var(--space-5); }
.contact-aside p { color: var(--text-2); max-width: 36ch; }
.contact-details { margin-top: var(--space-7); display: grid; gap: var(--space-4); }
.contact-details div { padding-top: var(--space-3); border-top: 1px solid var(--line); }
.contact-details dt { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: var(--track-mono); text-transform: uppercase; color: var(--text-2); }
#contact .aurora::before { background: linear-gradient(90deg, rgba(42, 23, 29, 0.94) 0%, rgba(42, 23, 29, 0.78) 50%, rgba(42, 23, 29, 0.4) 100%); }
.contact-details dd { margin-top: var(--space-1); }

.form { display: grid; gap: var(--space-5); }
.form__row { display: grid; gap: var(--space-5); }
@media (min-width: 40em) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: var(--space-2); min-width: 0; }
.field label, .field legend { font-family: var(--font-display); font-weight: 500; font-size: 0.9375rem; }
.field .opt { font-family: var(--font-body); font-weight: 400; color: var(--text-2); }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 3.25rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: rgba(28, 15, 19, 0.55);
  color: var(--text);
  transition: border-color var(--dur-1), background-color var(--dur-1), box-shadow var(--dur-1);
}
.field textarea { min-height: 9rem; resize: vertical; line-height: 1.5; }
.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--c-pink-300) 50%), linear-gradient(135deg, var(--c-pink-300) 50%, transparent 50%);
  background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2.5rem;
}
.field select option { background: var(--c-plum-900); color: var(--c-cream-100); }
.field input::placeholder, .field textarea::placeholder { color: var(--text-3); opacity: 1; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--c-pink-300); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--c-coral-300);
  background-color: rgba(28, 15, 19, 0.85);
  box-shadow: 0 0 0 1px var(--c-coral-300), 0 0 0 4px rgba(235, 154, 143, 0.22);
}
.field [aria-invalid="true"] { border-color: var(--c-danger); }
.field input:disabled, .field textarea:disabled, .field select:disabled { opacity: 0.55; cursor: not-allowed; }
.field__hint { font-size: 0.8125rem; color: var(--text-2); }
.field__error { display: none; align-items: center; gap: var(--space-2); font-size: 0.875rem; color: var(--c-danger); }
.field__error::before { content: "!"; display: inline-grid; place-items: center; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: var(--c-danger); color: var(--c-plum-950); font-weight: 700; font-size: 0.75rem; }
.field.has-error .field__error { display: inline-flex; }

.check { display: grid; grid-template-columns: 1.5rem 1fr; gap: var(--space-3); align-items: start; font-size: 0.9375rem; color: var(--text-2); }
.check input { width: 1.25rem; height: 1.25rem; margin: 0.15rem 0 0; accent-color: var(--c-coral-400); }

.form__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-4); }
.form__note { font-size: 0.8125rem; color: var(--text-2); max-width: 40ch; }
.form-status {
  display: none;
  padding: var(--space-4) var(--space-5);
  border-left: 3px solid var(--c-coral-400);
  background: rgba(224, 122, 114, 0.1);
}
.form-status.is-visible { display: block; }
.form-status strong { font-family: var(--font-display); font-weight: 600; display: block; margin-bottom: var(--space-1); }
.btn.is-loading { pointer-events: none; }
.btn.is-loading .icon { animation: spin 900ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 18. Reveal on scroll ---------------------------------------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity var(--dur-3) var(--ease-out), transform var(--dur-3) var(--ease-out); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal="2"] { transition-delay: 90ms; }
.js [data-reveal="3"] { transition-delay: 180ms; }

/* ---------- 19. Reduced motion ------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0s !important;
  }
  .aurora__blob, .aurora::after { animation: none !important; }
  .aurora__ember { display: none; }
  .ashfall { display: none; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js .hero__title .line > span { transform: none; }
  .transcript { scroll-behavior: auto; }
  .prompt__text::after { animation: none; }
}

/* Forced colours / high contrast */
@media (forced-colors: active) {
  .btn::before, .btn--ghost::after, .panel::before, .panel::after, .card::before, .card::after { forced-color-adjust: none; display: none; }
  .btn { border: 1px solid ButtonText; }
  .aurora, .ashfall, .page-grain { display: none; }
}

/* ---------- Social links (Instagram, TikTok, Facebook) ------------------ */
.socials { list-style: none; margin: var(--space-2) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-3); }
.footer-col .socials--footer { display: flex; gap: var(--space-3); margin-top: var(--space-4); }
.social__link {
  display: inline-grid; place-items: center;
  width: 2.75rem; height: 2.75rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  color: var(--c-cream-100);
  background: rgba(42, 23, 29, 0.45);
  transition: background-color var(--dur-2) var(--ease-out), color var(--dur-2), border-color var(--dur-2), transform var(--dur-2) var(--ease-out);
}
.social__link .icon { width: 1.25rem; height: 1.25rem; }
.footer-col .social__link { padding: 0; display: inline-grid; }
.social__link:hover, .footer-col .social__link:hover {
  background: var(--c-coral-400); border-color: var(--c-coral-400); color: var(--c-plum-950);
  transform: translateY(-2px); text-decoration: none;
}
.social__link:focus-visible { outline: 2px solid var(--c-coral-300); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .social__link:hover { transform: none; } }

.split__tagline { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.35rem, 1rem + 1.2vw, 1.9rem); line-height: 1.2; color: var(--c-coral-300); }
.form__note a, .form-status a { color: var(--c-cream-100); }

/* ---------- Legal page ------------------------------------------------- */
.legal { max-width: 70ch; }
.legal h2 { font-size: clamp(1.35rem, 1.1rem + 0.8vw, 1.75rem); margin-top: var(--space-7); }
.legal h3 { font-size: 1.125rem; margin-top: var(--space-5); }
.legal p, .legal ul { margin-top: var(--space-3); color: var(--c-pink-300); }
.legal ul { padding-left: 1.25rem; display: grid; gap: var(--space-2); }
.legal a { color: var(--c-cream-100); }
.legal address { font-style: normal; margin-top: var(--space-3); color: var(--c-pink-300); }

/* ---------- Nohemi weights for small labels -------------------------------
   Headings 600 · hero 700 with a 300 accent · statement 300 · product names 500
   body 400 · labels, buttons, menu 500 · footer wordmark 900 */
.eyebrow, .badge, .menu-toggle, .footer-col h2, .footer-bottom, .product__num, .index__num,
.pillar__num, .principle__num, .msg__who, .summary h3, .panel__sub, .prompt__label,
.choice legend, .contact-details dt, .mobile-menu__link span, .hero__scroll, .jump-list a span,
.summary dd.is-empty { font-weight: 500; }
.call__timer, .browser__url { font-weight: 400; }

/* ---------- Weight contrast in big headings -------------------------------
   Light lead-in + heavy finish, like the Nohemi specimen. */
.wt-200 { font-weight: 200; letter-spacing: -0.02em; }
.wt-300 { font-weight: 300; }
.wt-800 { font-weight: 800; }
.wt-900 { font-weight: 900; letter-spacing: -0.005em; }
.wt-800 { letter-spacing: -0.01em; }
.hero__title .wt-200 { color: var(--c-cream-100); }
.hero__title em { font-weight: 700; }

/* ---------- Hero photo (Tri-Cities sunset), faded under the glow ---------- */
.aurora__photo {
  position: absolute;
  inset: 0;
  background: url("../img/hero-sunset.webp") center 42% / cover no-repeat;
  opacity: 0.38;
  filter: saturate(0.9) contrast(1.05);
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0.65) 0%, #000 35%, #000 70%, rgba(0,0,0,0.25) 100%);
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.65) 0%, #000 35%, #000 70%, rgba(0,0,0,0.25) 100%);
}
.aurora__photo ~ .aurora__blob { opacity: 0.6; mix-blend-mode: screen; }
@media (max-width: 47.99em) {
  .aurora__photo { background-position: 50% 30%; opacity: 0.45; }
}

/* ---------- Receptionist: sample audio + Try me! call button ------------- */
.try-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); margin-top: var(--space-5); }
.listen {
  display: inline-flex; align-items: center; gap: var(--space-3);
  min-height: 3rem; padding: 0.3rem 1rem 0.3rem 0.3rem;
  border: 1px solid var(--line-strong); border-radius: var(--radius-pill);
  background: rgba(28, 15, 19, 0.45);
}
.listen__btn {
  display: grid; place-items: center; flex: none;
  width: 2.4rem; height: 2.4rem; padding: 0;
  border: 0; border-radius: 50%;
  background: var(--c-coral-400); color: var(--c-plum-950);
  cursor: pointer;
  transition: background-color var(--dur-1), transform var(--dur-1) var(--ease-out);
}
.listen__btn:hover { background: var(--c-cream-50); }
.listen__btn:active { transform: scale(0.94); }
.listen__btn .icon { width: 1rem; height: 1rem; fill: currentColor; stroke: currentColor; stroke-width: 1.5; }
.listen__text { display: grid; line-height: 1.2; }
.listen__title { font-weight: 500; font-size: 0.9375rem; }
.listen__status { font-size: 0.75rem; color: var(--text-2); font-variant-numeric: tabular-nums; }
.listen__bar { width: 4.5rem; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.listen__bar i { display: block; width: 100%; height: 100%; background: var(--c-coral-400); transform: scaleX(0); transform-origin: left; }
.listen.is-missing .listen__btn { animation: listen-nudge 360ms var(--ease-out); }
@keyframes listen-nudge { 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }
.try-me .icon { width: 1.05em; height: 1.05em; }
.try-me__num { font-weight: 400; opacity: 0.85; font-variant-numeric: tabular-nums; }
@media (max-width: 30em) { .listen__bar { display: none; } }

/* ---------- Call demo: play button on the voice-wave bar ------------------ */
.call__player { display: flex; align-items: center; gap: var(--space-3); }
.call__player .wave { flex: 1; min-width: 0; overflow: hidden; }
.call__play {
  display: grid; place-items: center; flex: none;
  width: 2.75rem; height: 2.75rem; padding: 0;
  border: 0; border-radius: 50%;
  background: var(--c-coral-400); color: var(--c-plum-950);
  cursor: pointer;
  box-shadow: 0 0 0 0 rgba(224, 122, 114, 0.45);
  transition: background-color var(--dur-1), transform var(--dur-1) var(--ease-out);
}
.call__play:hover { background: var(--c-cream-50); }
.call__play:active { transform: scale(0.94); }
.call__play .icon { width: 1.05rem; height: 1.05rem; fill: currentColor; stroke: currentColor; stroke-width: 1.5; }
.call__play[aria-pressed="false"] { animation: call-ping 2.4s var(--ease-out) infinite; }
@keyframes call-ping { 0% { box-shadow: 0 0 0 0 rgba(224, 122, 114, 0.45); } 70%, 100% { box-shadow: 0 0 0 12px rgba(224, 122, 114, 0); } }
.call__restart {
  display: grid; place-items: center; flex: none;
  width: 2.25rem; height: 2.25rem; padding: 0;
  border: 1px solid var(--line-strong); border-radius: 50%;
  background: transparent; color: var(--text-2);
  cursor: pointer;
  transition: color var(--dur-1), border-color var(--dur-1);
}
.call__restart:hover { color: var(--text); border-color: var(--text); }
.call__restart .icon { width: 1rem; height: 1rem; }
.transcript__hint { margin: auto; color: var(--text-3); font-size: 0.875rem; text-align: center; }
@media (prefers-reduced-motion: reduce) { .call__play[aria-pressed="false"] { animation: none; } }

/* ---------- "SCROLL" markers in place of scrollbars ----------------------
   Same vertical label + fading line as the hero's scroll cue. */
.scroll-cue {
  position: absolute; top: 0.25rem; right: 0;
  z-index: 3;
  display: inline-flex; align-items: center; gap: var(--space-2);
  writing-mode: vertical-rl;
  font-family: var(--font-mono); font-weight: 500;
  font-size: 0.625rem; letter-spacing: var(--track-mono); text-transform: uppercase;
  color: var(--text-2);
  pointer-events: none;
  transition: opacity var(--dur-2) var(--ease-out);
}
.scroll-cue::after { content: ""; width: 1px; height: 2rem; background: linear-gradient(var(--text-2), transparent); }
.scroll-cue--chip {
  top: 0.6rem; right: 0.6rem;
  padding: 0.5rem 0.25rem 0.4rem;
  border-radius: var(--radius-pill);
  background: rgba(28, 15, 19, 0.72);
  color: var(--c-cream-100);
}
.scroll-cue--chip::after { background: linear-gradient(var(--c-cream-100), transparent); height: 1.75rem; }

/* chat: hide the native scrollbar, leave room for the marker */
.transcript-wrap { position: relative; min-width: 0; }
.transcript { padding-right: 1.75rem; scrollbar-width: none; }
.transcript::-webkit-scrollbar { display: none; }
.transcript-wrap .scroll-cue { opacity: 0; }
.transcript-wrap.can-scroll .scroll-cue { opacity: 1; }

/* SCROLL markers: down arrow instead of a plain line */
.scroll-cue::after, .scroll-cue--chip::after {
  width: 10px; height: 2.25rem;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 40' preserveAspectRatio='none'%3E%3Cpath d='M5 0v38M1 33l4 5 4-5' fill='none' stroke='%23000' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 40' preserveAspectRatio='none'%3E%3Cpath d='M5 0v38M1 33l4 5 4-5' fill='none' stroke='%23000' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.scroll-cue { animation: cue-nudge 2.4s var(--ease-in-out) infinite; }
@keyframes cue-nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }
@media (prefers-reduced-motion: reduce) { .scroll-cue { animation: none; } }

/* preview: marker sits beside the box, not over the demo */
.builder__view { display: flex; align-items: flex-start; gap: var(--space-2); min-width: 0; }
.builder__view .browser { flex: 1; min-width: 0; }
.scroll-cue--side { position: static; flex: none; margin-top: 3rem; color: var(--text-2); }

/* ---------- Call demo: back-and-forth playback ----------------------------
   Each message pops in from its speaker's side; the newest one is highlighted
   and earlier ones step back. */
.msg { animation: msg-pop 520ms var(--ease-out) both; }
.msg--ai { transform-origin: left bottom; }
.msg--caller { transform-origin: right bottom; }
@keyframes msg-pop {
  0%   { opacity: 0; transform: translateY(14px) scale(0.86); }
  60%  { opacity: 1; transform: translateY(-2px) scale(1.03); }
  100% { opacity: 1; transform: none; }
}
.msg .msg__text { transition: opacity 400ms var(--ease-out), box-shadow 400ms var(--ease-out), filter 400ms; }
.transcript .msg:not(.is-current):not(.msg--typing) .msg__text { opacity: 0.62; }
.transcript .msg:not(.is-current):not(.msg--typing) .msg__who { opacity: 0.6; }
.msg.is-current.msg--ai .msg__text { box-shadow: inset 0 0 0 1px var(--c-coral-400), 0 0 22px rgba(224, 122, 114, 0.35); }
.msg.is-current.msg--caller .msg__text { box-shadow: 0 0 22px rgba(248, 221, 210, 0.35); }
.msg.is-current .msg__who { color: var(--accent-2); }
/* reduced motion: same back-and-forth, but a soft fade instead of the pop */
@media (prefers-reduced-motion: reduce) {
  .msg { animation: msg-fade 400ms ease-out both !important; animation-duration: 400ms !important; }
  .msg .msg__text { transition-duration: 300ms !important; }
}
@keyframes msg-fade { from { opacity: 0; } to { opacity: 1; } }

/* slimmer address bar on the sample-site preview */
.browser__bar { padding: 0.3rem 0.7rem; gap: var(--space-2); }
.browser__dots { gap: 5px; }
.browser__dots i { width: 7px; height: 7px; }
.browser__url { padding: 0.1rem 0.5rem; font-size: 0.625rem; line-height: 1.4; }

/* curved arrow after the preview hint, pointing up at the site */
.builder__hint { display: flex; align-items: flex-end; gap: 0.4rem; }
.hint-arrow {
  width: 2.25rem; height: auto; flex: none;
  margin-bottom: 0.35rem;
  fill: none; stroke: var(--text-2); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round;
  animation: hint-nudge 2.4s var(--ease-in-out) infinite;
}
@keyframes hint-nudge { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(2px, -3px); } }
@media (prefers-reduced-motion: reduce) { .hint-arrow { animation: none; } }
/* keep the address text centred in the slimmer bar (Nohemi sits high, so nudge it down a touch) */
.browser__url { display: flex; align-items: center; height: 1.1rem; padding: 0.12em 0.5rem 0; line-height: 1; }

/* placeholder number: looks like the button, isn't a link, but the number can be selected and copied */
.try-me--static { cursor: default; -webkit-user-select: text; user-select: text; }
.try-me--static:hover, .try-me--static:active { --btn-bg: var(--accent); transform: none; }
.try-me--static:hover .icon { transform: none; }
.try-me__num { cursor: text; -webkit-user-select: all; user-select: all; }

/* ---------- "Who we are": faded sunset photo, tinted to the brand palette ---- */
.about-intro { isolation: isolate; overflow: hidden; }
.about-photo {
  position: absolute; inset: 0; z-index: -1;
  background: url("../img/about-sunset.webp") 22% 58% / cover no-repeat;
  /* gold sunset -> coral/plum: drop the colour, warm it, then shift it towards coral */
  filter: sepia(1) hue-rotate(-28deg) saturate(1.5) brightness(0.82) contrast(1.05);
  opacity: 0.42;
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 30%, transparent 82%), linear-gradient(180deg, transparent 0%, #000 22%, #000 72%, transparent 100%);
  -webkit-mask-composite: source-in;
          mask-image: linear-gradient(90deg, #000 0%, #000 30%, transparent 82%), linear-gradient(180deg, transparent 0%, #000 22%, #000 72%, transparent 100%);
          mask-composite: intersect;
}
@media (max-width: 59.99em) {
  .about-photo {
    background-position: 30% 55%;
    opacity: 0.3;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 55%, transparent 100%);
            mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 55%, transparent 100%);
  }
}

/* "Who we are" photo: coastline shot (brighter + blue, so darker and a stronger tint) */
.about-photo {
  background-image: url("../img/about-coast.webp");
  background-position: 24% 50%;
  filter: grayscale(1) sepia(1) hue-rotate(-30deg) saturate(1.7) brightness(0.62) contrast(1.15);
  opacity: 0.5;
}
@media (max-width: 59.99em) {
  .about-photo { background-position: 22% 50%; opacity: 0.34; }
}

/* ---------- Blend the landing section into "Who we are" ------------------ */
/* landing: fade its glow + photo down into the page colour, no hard line */
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 32%; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(42, 23, 29, 0) 0%, rgba(42, 23, 29, 0.75) 60%, var(--bg) 100%);
}
/* Who we are: photo sits lower and eases in from the top */
.about-photo {
  top: 8%;
  background-position: 24% 62%;
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 30%, transparent 82%), linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.5) 18%, #000 38%, #000 74%, transparent 100%);
          mask-image: linear-gradient(90deg, #000 0%, #000 30%, transparent 82%), linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.5) 18%, #000 38%, #000 74%, transparent 100%);
}
@media (max-width: 59.99em) {
  .about-photo {
    top: 6%;
    background-position: 22% 60%;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 26%, #000 58%, transparent 100%);
            mask-image: linear-gradient(180deg, transparent 0%, #000 26%, #000 58%, transparent 100%);
  }
}

/* seamless join v2: instead of painting a flat fade over the landing, make the
   landing's own background (glow, photo, grain) fade to see-through, so the page
   colour and page grain carry on unbroken into "Who we are". */
.hero::after { display: none; }
.hero .aurora {
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 62%, rgba(0,0,0,0.55) 82%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 0%, #000 62%, rgba(0,0,0,0.55) 82%, transparent 100%);
}

/* ---------- Seamless joins between every section --------------------------
   No divider lines or hard colour edges: glows fade in/out to see-through,
   and the footer darkens gradually. */
.product { border-top: 0; }
.cta-band .aurora {
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.55) 14%, #000 30%, #000 72%, rgba(0,0,0,0.55) 88%, transparent 100%);
          mask-image: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.55) 14%, #000 30%, #000 72%, rgba(0,0,0,0.55) 88%, transparent 100%);
}
.page-hero .aurora {
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 62%, rgba(0,0,0,0.55) 82%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 0%, #000 62%, rgba(0,0,0,0.55) 82%, transparent 100%);
}
.site-footer {
  border-top: 0;
  background: linear-gradient(180deg, rgba(28, 15, 19, 0) 0%, rgba(28, 15, 19, 0.6) 5rem, var(--c-plum-950) 11rem);
}

/* ---------- Touch screens: comfortable tap areas (44px), same look ---------- */
@media (pointer: coarse) {
  .logo, .link-arrow, .builder__open, .footer-bottom a, .footer-col a,
  .contact-details a, .form__note a { min-height: 44px; display: inline-flex; align-items: center; }
  .link-arrow { padding-bottom: 0; }
  .call__restart { width: 2.75rem; height: 2.75rem; }
}
@media (pointer: coarse) {
  /* keep the round social icons centred (they're links inside the contact list too) */
  .contact-details .social__link, .footer-col .social__link { display: inline-grid; place-items: center; min-height: 0; }
  /* inline text link: bigger tap area without breaking the sentence onto a new line */
  .form__note a { display: inline; min-height: 0; padding-block: 0.7rem; }
}
.footer-bottom { align-items: center; }

/* "Who we are." matches the size of the other section headings */
#story-title { font-size: var(--step-4); line-height: 1.02; margin-top: var(--space-4); }

/* ---------- "What's next": light gradient that blends into its neighbours -- */
#next { isolation: isolate; }
#next::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 55% at 18% 40%, rgba(235, 154, 143, 0.24), rgba(235, 154, 143, 0) 70%),
    radial-gradient(55% 60% at 85% 65%, rgba(216, 174, 166, 0.2), rgba(216, 174, 166, 0) 70%),
    linear-gradient(180deg, rgba(61, 34, 41, 0) 0%, rgba(61, 34, 41, 0.55) 50%, rgba(61, 34, 41, 0) 100%);
  /* fade out at the top and bottom so there's no edge against the sections around it */
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 78%, transparent 100%);
          mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 78%, transparent 100%);
}

/* same soft glow behind "Products" (Pick a product), mirrored so it doesn't repeat exactly */
#products { isolation: isolate; }
#products::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(55% 55% at 82% 35%, rgba(235, 154, 143, 0.24), rgba(235, 154, 143, 0) 70%),
    radial-gradient(60% 60% at 15% 70%, rgba(216, 174, 166, 0.2), rgba(216, 174, 166, 0) 70%),
    linear-gradient(180deg, rgba(61, 34, 41, 0) 0%, rgba(61, 34, 41, 0.55) 50%, rgba(61, 34, 41, 0) 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 78%, transparent 100%);
          mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 78%, transparent 100%);
}

/* ---------- Heading words drop in; everything fades in even with reduced motion */
.split-head .word { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.js .split-head .word__in {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.9em) rotate(2deg);
  transition: transform 900ms var(--ease-out), opacity 600ms var(--ease-out);
  transition-delay: calc(var(--wi, 0) * 70ms);
}
.js .split-head.is-in .word__in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  /* no movement, but still a soft, staggered fade so the page feels alive */
  .js .split-head .word__in { transform: none !important; transition: opacity 700ms ease-out !important; transition-delay: calc(var(--wi, 0) * 90ms) !important; }
  .js [data-reveal] { opacity: 0; transform: none; transition: opacity 800ms ease-out !important; }
  .js [data-reveal="2"] { transition-delay: 120ms !important; }
  .js [data-reveal="3"] { transition-delay: 240ms !important; }
  .js [data-reveal].is-in { opacity: 1; }
  .js .hero__title .line > span { opacity: 0; transform: none; }
  .js.is-loaded .hero__title .line > span { opacity: 1; transition: opacity 900ms ease-out !important; }
  .js.is-loaded .hero__title .line:nth-child(2) > span { transition-delay: 150ms !important; }
  .js.is-loaded .hero__title .line:nth-child(3) > span { transition-delay: 300ms !important; }
}

/* Falling ash: lighter, and kept to the empty side margins so it never sits over text. */
.ashfall {
  --ash-edge: max(var(--gutter), calc((100% - var(--container)) / 2));
  -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(var(--ash-edge) * 0.6), transparent var(--ash-edge), transparent calc(100% - var(--ash-edge)), #000 calc(100% - var(--ash-edge) * 0.6), #000 100%);
          mask-image: linear-gradient(90deg, #000 0, #000 calc(var(--ash-edge) * 0.6), transparent var(--ash-edge), transparent calc(100% - var(--ash-edge)), #000 calc(100% - var(--ash-edge) * 0.6), #000 100%);
}
@media (max-width: 900px) { .ashfall { display: none; } }

/* Sample build tabs + "Choose your Business" label */
.builder__pick {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start;
  gap: var(--space-3) var(--space-4); margin-block: var(--space-4) var(--space-5);
}
.builder__pick .builder__tabs { margin-block: 0; }
.builder__choose {
  margin: 0; font-family: var(--font-display); line-height: 1;
  font-size: clamp(1.9rem, 1.3rem + 1.6vw, 2.9rem); letter-spacing: -0.01em; color: var(--text);
  white-space: nowrap;
}
.builder__choose .choose-your { font-weight: 400; color: var(--text-2); }
.builder__choose em { font-style: normal; color: var(--c-coral-300); }
@media (max-width: 560px) {
  .builder__pick { flex-direction: column; align-items: flex-start; }
}

/* "Bilingual" callout beside the Questions call tab, pointing left at it (placed by main.js) */
.tab-callout {
  position: absolute; left: 0; top: 0; margin: 0;
  display: flex; align-items: center; gap: 0.35rem;
  width: max-content; pointer-events: none;
  font-family: var(--font-display); font-weight: 600; font-size: 0.9375rem; line-height: 1;
  color: var(--c-coral-300);
  visibility: hidden;
}
.tab-callout.is-placed { visibility: visible; }
.tab-callout__arrow {
  width: 2.1rem; height: auto; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
  animation: callout-nudge 2.4s var(--ease-in-out) infinite;
}
@keyframes callout-nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(-3px); } }
@media (prefers-reduced-motion: reduce) { .tab-callout__arrow { animation: none; } }
@media (max-width: 400px) { .builder__choose { font-size: 7.6vw; } }

/* Speaker (mute) toggle beside the call wave: smaller and quieter than restart */
.call__mute {
  display: grid; place-items: center; flex: none;
  width: 1.875rem; height: 1.875rem; padding: 0;
  border: 0; border-radius: 50%;
  background: transparent; color: var(--text-2);
  cursor: pointer;
  transition: color var(--dur-1), background-color var(--dur-1);
}
.call__mute:hover { color: var(--text); background: rgba(248, 221, 210, 0.08); }
.call__mute[aria-pressed="true"] { color: var(--c-coral-300); }
.call__mute .icon { width: 1.05rem; height: 1.05rem; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.call__mute .icon path:first-child { fill: currentColor; fill-opacity: 0.18; }
@media (pointer: coarse) { .call__mute { width: 2.75rem; height: 2.75rem; } }
.call__player { min-width: 0; }
.call__player .wave { flex: 1 1 0; min-width: 0; width: auto; }

/* Call transcript: words light up in time with the recording */
.msg__text .w { opacity: 0.16; transition: opacity 140ms ease-out; }
.msg__text .w.is-on { opacity: 1; }

/* Speaker sits right after the wave lines (bigger); restart stays at the far right */
.call__player .wave { flex: 0 1 auto; }
.call__player .call__restart { margin-left: auto; }
.call__mute { width: 2.4rem; height: 2.4rem; margin-left: calc(-1 * var(--space-1)); }
.call__mute .icon { width: 1.4rem; height: 1.4rem; }

/* Voice wave: animate while someone is talking (class sits on the [data-call] panel).
   Live bars follow the recording's loudness; otherwise a looping pulse. Kept on even
   with reduced motion, since it shows who is speaking. */
[data-call].is-speaking .wave span { opacity: 1; animation: wave 900ms var(--ease-in-out) infinite !important; }
[data-call].is-speaking[data-speaker="ai"] .wave span { background: var(--c-coral-400); }
[data-call].is-speaking .wave.is-live span { animation: none !important; transition: height 60ms linear !important; }

/* Small call-volume slider beside the speaker */
.call__volume {
  --fill: 50%;
  flex: none; width: 4.5rem; height: 1.5rem; margin: 0 0 0 calc(-1 * var(--space-1));
  background: transparent; cursor: pointer;
  -webkit-appearance: none; appearance: none;
}
.call__volume:focus-visible { outline: 2px solid var(--c-coral-300); outline-offset: 3px; border-radius: 4px; }
.call__volume::-webkit-slider-runnable-track {
  height: 3px; border-radius: 3px;
  background: linear-gradient(to right, var(--c-coral-300) var(--fill), rgba(248, 221, 210, 0.22) var(--fill));
}
.call__volume::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 11px; height: 11px; margin-top: -4px; border-radius: 50%;
  background: var(--c-cream-100); border: 0;
  box-shadow: 0 0 0 3px rgba(235, 154, 143, 0.25);
}
.call__volume::-moz-range-track { height: 3px; border-radius: 3px; background: rgba(248, 221, 210, 0.22); }
.call__volume::-moz-range-progress { height: 3px; border-radius: 3px; background: var(--c-coral-300); }
.call__volume::-moz-range-thumb { width: 11px; height: 11px; border: 0; border-radius: 50%; background: var(--c-cream-100); }
@media (max-width: 400px) { .call__volume { width: 3.25rem; } }
@media (max-width: 359px) { .call__volume { display: none; } }
