@font-face {
  font-family: "Cinzel";
  src: url("../fonts/cinzel.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --ground: #0B0B0C;
  --ground-lift: #131113;
  --line: #262224;
  --ink: #F4F1EC;
  --ink-sub: #B7B2AC;
  --ink-faint: #7E7973;
  --ink-warm: #FBD9B4;
  --ember: #E4713A;
  --ember-deep: #B23A10;
  --ember-soft: rgba(228, 93, 38, .14);
  --grad-ember: linear-gradient(112deg, #F6C39A 0%, #EE7A32 42%, #C2440F 88%);
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
  --wordmark-font: "Cinzel", Georgia, serif;
  --display-opsz: 96;
  --glow-strength: .5;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* The header is fixed and ~79px tall, so a bare anchor jump parks the target's top
   edge underneath it — measured clearance was 1px, i.e. the heading sits flush against
   the nav bar. scroll-margin-top offsets every jump by more than the header's height.
   Applies to all in-page nav (#demo, #what-we-do, #process), not just the demo. */
:target,
.section,
#main {
  scroll-margin-top: 5.5rem;
}

body {
  margin: 0;
  /* clip, not hidden: a hidden body becomes a scroll container and kills position:sticky */
  overflow-x: clip;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(80% 40% at 50% 0%, rgba(226, 92, 32, .08), transparent 70%),
    var(--ground);
}

a {
  color: inherit;
  text-decoration: none;
}

p {
  margin: 0;
  color: var(--ink-sub);
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 0;
  text-wrap: balance;
  transition: color .45s ease;
}

/* "Reignite" hover: every headline warms toward ember, like type catching heat.
   Colour only — an underline and a glow were both tried and cut. */
h1:hover,
h2:hover,
h3:hover {
  color: var(--ink-warm);
}

h1 {
  font-size: clamp(3rem, 8vw, 6.2rem);
}

h2 {
  max-width: 12ch;
  font-size: clamp(2.4rem, 5.5vw, 5rem);
}

h3 {
  font-size: clamp(1.5rem, 2.4vw, 2.25rem);
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: .75rem;
  z-index: 30;
  transform: translateY(-160%);
  border: 1px solid var(--ember);
  border-radius: 4px;
  background: var(--ground);
  padding: .65rem .9rem;
}

.skip-link:focus {
  transform: translateY(0);
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 20px clamp(1rem, 4vw, 3rem);
  border-bottom: 1px solid transparent;
  transition: background .25s ease, border-color .25s ease, backdrop-filter .25s ease;
}

.site-header.is-scrolled {
  border-color: rgba(244, 241, 236, .08);
  background: rgba(11, 11, 12, .74);
  backdrop-filter: blur(18px);
}

.wordmark {
  flex: 0 0 auto;
  font-family: var(--wordmark-font);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .30em;
}

.site-nav,
.button-row {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.nav-link {
  color: var(--ink-sub);
  font-size: .86rem;
  transition: color .2s ease;
}

.nav-link:hover {
  color: var(--ember);
}

.site-nav .mobile-demo {
  display: none;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  padding: 14px 34px;
  font-weight: 650;
  line-height: 1;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease, color .2s ease;
}

.button-small {
  min-height: 38px;
  padding: 10px 18px;
  font-size: .85rem;
}

.button-primary {
  border: 1px solid var(--ember);
  background: var(--ember);
  color: var(--ink);
}

.button-primary:hover {
  border-color: #EE7A32;
  background: #EE7A32;
  box-shadow: 0 0 32px var(--ember-soft);
}

.button-ghost {
  border: 1px solid rgba(244, 241, 236, .35);
  background: transparent;
  color: var(--ink);
}

.button-ghost:hover {
  border-color: var(--ember);
  color: var(--ember);
}

.hero {
  position: relative;
  height: 320vh;
}

.hero-stage {
  position: sticky;
  top: 0;
  display: grid;
  min-height: 100vh;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
}

.hero-glow {
  position: absolute;
  inset: auto 0 9vh;
  z-index: -1;
  height: 62vh;
  /* softer now that the video carries its own bloom */
  background: radial-gradient(60% 45% at 50% 100%, rgba(226, 92, 32, .16), transparent 70%);
  opacity: var(--glow-strength);
  pointer-events: none;
}

.hero-content {
  position: relative;
  width: min(880px, calc(100% - 2rem));
  padding: 18vh 0 27vh;
  text-align: center;
}

/* keeps the type on near-black even when the video bloom rises behind it */
.hero-content::before {
  content: "";
  position: absolute;
  inset: -6% -14%;
  z-index: -1;
  background: radial-gradient(62% 58% at 50% 52%, rgba(11, 11, 12, .52), transparent 76%);
  pointer-events: none;
}

.eyebrow,
.label {
  color: var(--ember);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .38em;
  line-height: 1.4;
  text-transform: uppercase;
}

.hero-content .eyebrow,
.section .eyebrow {
  margin-bottom: 1.2rem;
}

/* Headline stays all white at rest — ember gradient treatment retired 12 Aug per Chris.
   Inherits rather than pinning --ink so it warms with the rest of the h1 on hover. */
.ember-word {
  color: inherit;
}

.hero-subhead,
.lede {
  max-width: 46ch;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.hero-subhead {
  margin: 1.35rem auto 0;
}

.hero .button-row,
.closing .button-row {
  justify-content: center;
  margin-top: 2rem;
}

.meta-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: min(760px, 100%);
  margin: 2rem auto 0;
  padding: 0;
  border: 1px solid rgba(244, 241, 236, .09);
  background: rgba(19, 17, 19, .42);
}

.meta-strip div {
  padding: 1rem;
}

.meta-strip div + div {
  border-left: 1px solid rgba(244, 241, 236, .09);
}

.meta-strip dt {
  color: var(--ink-faint);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .35em;
  text-transform: uppercase;
}

.meta-strip dd {
  margin: .35rem 0 0;
  color: var(--ink);
  font-size: .9rem;
}

/* Full-bleed scroll-driven ember scene — fills the whole hero stage behind the type */
/* This element IS the hero canvas — the background image is only the no-JS fallback,
   so it uses hero-poster.webp, which is frame-121 already cropped by BOTTOM_CROP.
   Do not add a vertical inset here: it would resize the canvas and crop twice. */
.ember-line {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  background: url("../frames/hero-poster.webp") center bottom / cover no-repeat;
  pointer-events: none;
}

.scroll-cue {
  position: absolute;
  bottom: 2.4rem;
  left: 50%;
  display: grid;
  justify-items: center;
  gap: .6rem;
  transform: translateX(-50%);
  color: var(--ink-faint);
  opacity: 1;
  transition: opacity .3s ease;
}

.scroll-cue.is-hidden {
  opacity: 0;
}

.scroll-cue span {
  width: 1px;
  height: 46px;
  background: rgba(244, 241, 236, .26);
}

.scroll-cue b {
  font-size: .62rem;
  letter-spacing: .42em;
}

.section {
  padding: clamp(5rem, 10vw, 9rem) clamp(1rem, 4vw, 3rem);
  background: var(--ground);
}

.section-inner {
  width: min(1160px, 100%);
  margin: 0 auto;
}

.narrow {
  width: min(920px, 100%);
}

.section h2 + p,
.section .lede {
  margin-top: 1.1rem;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.split p + p {
  margin-top: 1rem;
}

.reveal {
  transform: translateY(14px);
  opacity: 0;
  transition: opacity 500ms ease-out, transform 500ms ease-out;
}

.reveal.visible {
  transform: translateY(0);
  opacity: 1;
}

.crm-panel {
  margin-top: 2rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--ground-lift);
}

.crm-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--line);
}

.crm-row:last-child {
  border-bottom: 0;
}

.crm-row strong,
.check-grid strong {
  display: block;
  color: var(--ink);
}

.crm-row span {
  display: block;
  color: var(--ink-sub);
}

.crm-row em {
  flex: 0 0 auto;
  border: 1px solid rgba(244, 241, 236, .12);
  border-radius: 999px;
  padding: .35rem .65rem;
  color: var(--ink-faint);
  font-size: .78rem;
  font-style: normal;
}

.crm-row.is-lit {
  border-color: rgba(228, 113, 58, .55);
  background: var(--ember-soft);
}

.crm-row.is-lit em {
  border-color: rgba(228, 113, 58, .6);
  background: rgba(228, 113, 58, .16);
  color: var(--ink);
}

.fine-print {
  margin-top: .9rem;
  color: var(--ink-faint);
  font-size: .85rem;
}

.aside-card {
  border: 1px solid rgba(244, 241, 236, .12);
  border-radius: 8px;
  background: rgba(19, 17, 19, .72);
  padding: clamp(1.25rem, 3vw, 2rem);
  backdrop-filter: blur(14px);
}

.aside-card p:last-child {
  margin-top: .85rem;
  color: var(--ink-sub);
  font-size: 1.05rem;
}

.phone {
  width: min(100%, 360px);
  justify-self: center;
  border: 1px solid rgba(244, 241, 236, .14);
  border-radius: 34px;
  background: linear-gradient(180deg, #171417, #0D0D0E);
  padding: 18px 14px 16px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, .38);
}

.phone-speaker {
  width: 74px;
  height: 5px;
  margin: 0 auto 18px;
  border-radius: 999px;
  background: rgba(244, 241, 236, .16);
}

.sms-thread {
  display: grid;
  gap: .7rem;
}

.bubble {
  max-width: 86%;
  border-radius: 16px;
  padding: .78rem .9rem;
  font-size: .9rem;
  line-height: 1.42;
}

.incoming {
  border-bottom-left-radius: 5px;
  background: rgba(244, 241, 236, .09);
  color: var(--ink-sub);
}

.outgoing {
  justify-self: end;
  border-bottom-right-radius: 5px;
  background: rgba(228, 113, 58, .24);
  color: var(--ink);
}

.typing {
  display: flex;
  width: max-content;
  gap: .32rem;
  border-radius: 999px;
  background: rgba(244, 241, 236, .08);
  padding: .62rem .75rem;
}

.typing i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ink-faint);
  animation: pulse 1.2s infinite ease-in-out;
}

.typing i:nth-child(2) {
  animation-delay: .16s;
}

.typing i:nth-child(3) {
  animation-delay: .32s;
}

@keyframes pulse {
  0%, 80%, 100% { opacity: .35; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-2px); }
}

.check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 2rem;
  border: 1px solid var(--line);
  background: var(--line);
}

.check-grid article {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: .9rem;
  background: var(--ground);
  padding: 1.25rem;
}

.check-grid svg {
  width: 22px;
  height: 22px;
  color: var(--ember);
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.check-grid p {
  margin-top: .25rem;
}

.steps {
  display: grid;
  gap: 0;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.steps li {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 1.2rem;
  padding: 1.4rem 0;
  border-top: 1px solid var(--line);
}

.steps li:last-child {
  border-bottom: 1px solid var(--line);
}

.steps span {
  color: var(--ember);
  font-family: var(--serif);
  font-size: 1.6rem;
}

.steps p {
  margin-top: .35rem;
}

.closing {
  padding-top: 2rem;
}

.closing-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--ground-lift);
  padding: clamp(2rem, 8vw, 5rem);
  text-align: center;
}

.closing-panel::after {
  content: "";
  position: absolute;
  inset: auto 0 -20% 0;
  height: 70%;
  background: radial-gradient(60% 45% at 50% 100%, rgba(226, 92, 32, .25), transparent 70%);
  pointer-events: none;
}

.closing-panel > * {
  position: relative;
  z-index: 1;
}

.closing h2,
.closing .lede {
  margin-right: auto;
  margin-left: auto;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
  align-items: center;
  padding: 2rem clamp(1rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
  color: var(--ink-faint);
  font-size: .88rem;
}

.site-footer p:last-child {
  justify-self: end;
  color: var(--ink-faint);
}

/* The global `a` rule is color:inherit with no underline, which makes the footer's
   legal links invisible as links. Carriers reviewing a toll-free registration have
   to be able to find the privacy policy, so these are underlined on purpose. */
.site-footer a:not(.wordmark) {
  color: var(--ink-sub);
  text-decoration: underline;
  text-underline-offset: .18em;
  transition: color .25s ease;
}

.site-footer a:not(.wordmark):hover,
.site-footer a:not(.wordmark):focus-visible {
  color: var(--ink-warm);
}

.motes-canvas,
.grain {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
}

.motes-canvas {
  z-index: 4;
}

.grain {
  z-index: 25;
  opacity: .03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 240 240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

@media (max-width: 760px) {
  .site-header {
    padding: 14px 1rem;
  }

  .nav-full {
    display: none;
  }

  .site-nav .mobile-demo {
    display: inline-flex;
  }

  .site-nav {
    gap: .45rem;
  }

  .button-small {
    min-height: 34px;
    padding: 8px 10px;
    font-size: .76rem;
  }

  .hero-content {
    padding-top: 16vh;
  }

  .button-row {
    flex-wrap: wrap;
    justify-content: center;
  }

  .meta-strip,
  .split,
  .check-grid,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .meta-strip div + div {
    border-top: 1px solid rgba(244, 241, 236, .09);
    border-left: 0;
  }

  .crm-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer,
  .site-footer p:last-child {
    justify-items: start;
  }
}

@media (max-width: 430px) {
  .wordmark {
    font-size: 12px;
    letter-spacing: .24em;
  }

  h1 {
    font-size: clamp(2.75rem, 15vw, 3.5rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }

  .reveal {
    transform: none;
    opacity: 1;
  }

  .scroll-cue,
  .motes-canvas {
    display: none;
  }

  :root {
    --glow-strength: 1;
  }
}
