/* ============================================================
   BuildFreeSite — "The Night Shift"
   Deep navy field, gold as the single sharp accent.
   Editorial serif against a technical mono: a system with a
   craftsman behind it. Brand colours unchanged.
   ============================================================ */

:root {
  /* brand — unchanged */
  --navy: #00112b;
  --navy-deep: #00081a;
  --navy-soft: #0a1d3a;
  --ink: #0d212c;
  --muted: #273c46;
  --soft: #7a8fa8;
  --gold: #cd9c1f;
  --gold-lit: #e9c464;
  --blue: #386ec8;
  --light: #f6fcff;
  --light-muted: #e0ebf0;

  --font-display: 'Instrument Serif', 'Times New Roman', serif;
  --font-sans: 'Instrument Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', monospace;

  --rule: rgba(255, 255, 255, 0.1);
  --rule-ink: rgba(13, 33, 44, 0.12);

  --shell: min(1280px, 100% - clamp(32px, 7vw, 140px));
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background: var(--navy-deep);
  color: var(--light);
  line-height: 1.55;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

::selection {
  background: var(--gold);
  color: var(--navy-deep);
}

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

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ——— grain + hairline grid, sitewide atmosphere ——— */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ============================================================
   Zones — the page moves between night and daylight
   ============================================================ */
.zone {
  position: relative;
  padding: clamp(88px, 13vw, 180px) 0;
}

.zone--night {
  background: var(--navy);
  color: var(--light);
}

.zone--deep {
  background: var(--navy-deep);
  color: var(--light);
}

.zone--day {
  background: var(--light);
  color: var(--ink);
}

.zone--day .lede {
  color: var(--muted);
}

/* hairline column grid on night zones */
.zone--night::before,
.zone--deep::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(90deg, var(--rule) 1px, transparent 1px);
  background-size: 25% 100%;
  opacity: 0.5;
  mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
}

/* ============================================================
   Type
   ============================================================ */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.tag::before {
  content: '';
  width: 26px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.zone--day .tag {
  color: var(--blue);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 0.98;
}

/* height-aware so the hero still fits on short viewports */
.display {
  font-size: clamp(2.4rem, min(7.2vw, 10.4vh), 6rem);
  line-height: 0.92;
}

.h2 {
  font-size: clamp(2.4rem, 5.6vw, 4.6rem);
  line-height: 0.96;
  max-width: 18ch;
}

.h3 {
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  line-height: 1.05;
}

.it {
  font-style: italic;
  color: var(--gold);
}

.zone--day .it {
  color: var(--gold);
}

.lede {
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  line-height: 1.5;
  color: var(--light-muted);
  max-width: 46ch;
}

.body {
  color: var(--soft);
  max-width: 54ch;
}

.zone--day .body {
  color: var(--muted);
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--soft);
}

.head {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-bottom: clamp(48px, 7vw, 88px);
}

.head--center {
  align-items: center;
  text-align: center;
}

.head--center .h2,
.head--center .lede {
  margin-inline: auto;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 30px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid transparent;
  transition: color 0.4s var(--ease), border-color 0.4s var(--ease);
}

/* gold fill wipes up from the bottom on hover */
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--gold);
  transform: translateY(101%);
  transition: transform 0.5s var(--ease);
}

.btn:hover::before {
  transform: translateY(0);
}

.btn--gold {
  background: var(--gold);
  color: var(--navy-deep);
  font-weight: 600;
}

.btn--gold::before {
  background: var(--gold-lit);
}

.btn--line {
  border-color: rgba(255, 255, 255, 0.28);
  color: var(--light);
}

.btn--line:hover {
  color: var(--navy-deep);
  border-color: var(--gold);
}

.btn--ink {
  border-color: rgba(13, 33, 44, 0.2);
  color: var(--ink);
}

.btn--ink:hover {
  color: var(--navy-deep);
  border-color: var(--gold);
}

.btn--solid-ink {
  background: var(--navy);
  color: var(--light);
  border-color: var(--navy);
}

.btn--solid-ink:hover {
  color: var(--navy-deep);
}

.btn__arrow {
  transition: transform 0.4s var(--ease);
}

.btn:hover .btn__arrow {
  transform: translateX(4px);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* text link with a gold rule that draws in */
.tlink {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 4px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.tlink::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease);
}

.tlink:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* ============================================================
   Chrome — progress bar + nav
   ============================================================ */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--gold), var(--gold-lit));
  z-index: 9999;
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: var(--shell);
  margin-inline: auto;
  padding: 22px 0;
  transition: padding 0.4s var(--ease);
}

.nav::before {
  content: '';
  position: absolute;
  inset: -22px calc((100vw - var(--shell)) / -2);
  background: color-mix(in oklab, var(--navy-deep) 82%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--rule);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}

.nav.is-stuck::before {
  opacity: 1;
}

.nav.is-stuck {
  padding: 14px 0;
}

.wordmark {
  position: relative;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  z-index: 1;
}

.wordmark b {
  font-weight: 400;
  font-style: italic;
  color: var(--gold);
}

.nav__links {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 34px;
}

.nav__links a {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(246, 252, 255, 0.62);
  transition: color 0.3s var(--ease);
}

.nav__links a:hover {
  color: var(--gold);
}

/* sized down from the page buttons so the header stays one compact band */
.nav__cta {
  position: relative;
  z-index: 1;
  min-height: 44px;
  padding: 0 22px;
  font-size: 0.86rem;
  gap: 8px;
}

.nav__burger {
  display: none;
  position: relative;
  z-index: 1;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
}

.nav__burger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.4s var(--ease), opacity 0.3s;
}

.nav__burger span + span {
  margin-top: 6px;
}

.nav.is-open .nav__burger span:first-child {
  transform: translateY(3.75px) rotate(45deg);
}

.nav.is-open .nav__burger span:last-child {
  transform: translateY(-3.75px) rotate(-45deg);
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: clamp(112px, 15vh, 168px) 0 clamp(48px, 8vh, 88px);
  background: var(--navy-deep);
  overflow: hidden;
}

/* aurora that tracks the cursor */
.hero__aura {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120vmax;
  height: 120vmax;
  translate: -50% -50%;
  pointer-events: none;
  background:
    radial-gradient(circle at 34% 32%, rgba(205, 156, 31, 0.2), transparent 42%),
    radial-gradient(circle at 68% 58%, rgba(56, 110, 200, 0.22), transparent 46%);
  filter: blur(30px);
  will-change: transform;
}

.hero__grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(90deg, var(--rule) 1px, transparent 1px);
  background-size: 25% 100%;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000, transparent);
}

.hero .shell {
  position: relative;
  z-index: 2;
}

.hero__top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: clamp(20px, 4vh, 40px);
}

.hero h1 {
  max-width: 19ch;
  margin-bottom: clamp(20px, 3vh, 36px);
}

/* SplitText targets */
.line {
  display: block;
  overflow: hidden;
}

.hero__foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 40px;
  margin-top: clamp(24px, 4vh, 48px);
  padding-top: clamp(20px, 3vh, 36px);
  border-top: 1px solid var(--rule);
}

.hero__note {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  line-height: 1.9;
  text-transform: uppercase;
  color: var(--soft);
  max-width: 34ch;
}

.scroll-cue {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--soft);
  white-space: nowrap;
}

.scroll-cue i {
  display: block;
  width: 1px;
  height: 46px;
  background: linear-gradient(var(--gold), transparent);
  animation: cue 2.2s var(--ease) infinite;
  transform-origin: top;
}

@keyframes cue {
  0% {
    transform: scaleY(0);
    opacity: 0;
  }
  40% {
    transform: scaleY(1);
    opacity: 1;
  }
  100% {
    transform: scaleY(1) translateY(46px);
    opacity: 0;
  }
}

/* ============================================================
   Marquee — oversized text driven horizontally by scroll
   ============================================================ */
.marquee {
  position: relative;
  padding: clamp(10px, 1.4vw, 18px) 0;
  background: var(--gold);
  color: var(--navy-deep);
  overflow: hidden;
  white-space: nowrap;
}

.marquee__track {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  will-change: transform;
}

.marquee__track span {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  padding-right: 0.5em;
}

.marquee__track em {
  font-style: italic;
  color: var(--navy);
}

.marquee__track i {
  font-style: normal;
  opacity: 0.4;
}

/* ============================================================
   Split — the two components
   ============================================================ */
.split {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}

.split__aside {
  grid-column: span 4;
  position: sticky;
  top: 130px;
}

.split__main {
  grid-column: span 8;
}

.pillar {
  position: relative;
  padding: clamp(34px, 4vw, 56px) 0;
  border-top: 1px solid var(--rule);
}

.zone--day .pillar {
  border-color: var(--rule-ink);
}

.pillar:last-child {
  border-bottom: 1px solid var(--rule);
}

.zone--day .pillar:last-child {
  border-color: var(--rule-ink);
}

.pillar__no {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: 18px;
  display: block;
}

.pillar h3 {
  margin-bottom: 16px;
  max-width: 20ch;
  transition: transform 0.5s var(--ease);
}

.pillar:hover h3 {
  transform: translateX(10px);
}

.pillar__body {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 48px);
}

.ticks {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ticks li {
  position: relative;
  padding-left: 24px;
  font-size: 0.95rem;
  color: var(--soft);
}

.zone--day .ticks li {
  color: var(--muted);
}

.ticks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 10px;
  height: 1px;
  background: var(--gold);
}

/* ============================================================
   Pinned jobs
   ============================================================ */
.pinwrap {
  position: relative;
}

.jobs {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  min-height: 62vh;
}

.jobs__label {
  grid-column: span 5;
}

.jobs__label .h2 {
  max-width: 12ch;
}

.jobs__stack {
  grid-column: span 7;
  position: relative;
}

.job {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 26px;
  padding: 28px 0;
  border-top: 1px solid var(--rule);
  opacity: 0.32;
  transition: opacity 0.5s var(--ease);
}

.job.is-live {
  opacity: 1;
}

.job:last-child {
  border-bottom: 1px solid var(--rule);
}

.job__no {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  color: var(--gold);
  padding-top: 0.5em;
}

.job h3 {
  font-size: clamp(1.35rem, 2.1vw, 1.9rem);
  margin-bottom: 8px;
}

.job p {
  color: var(--soft);
  font-size: 0.95rem;
  max-width: 48ch;
}

/* ============================================================
   Chat simulation — a replica of the live BuildFreeSite widget
   (ai.buildfreesite.com), replaying a scripted demo. Tokens,
   radii, easing and the dot animation are lifted from the widget
   itself so the two don't drift apart.
   ============================================================ */
.demo {
  display: grid;
  /* the widget track is fixed — `auto` sizes to its max-content and swallows the row */
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}

.demo__copy {
  max-width: 46ch;
}

.demo__note {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--rule-ink);
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--muted);
}

.zone--night .demo__note,
.zone--deep .demo__note {
  border-color: var(--rule);
  color: var(--soft);
}

.demo__stamp {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.demo__stamp::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.chatsim {
  --a: #4f46e5;
  --a2: #7c3aed;
  --c-bg: #fff;
  --c-bg2: #f7f8fa;
  --c-fg: #111827;
  --c-fg2: #6b7280;
  --c-line: #e6e8ec;
  --c-ab: #fff;
  --c-f: system-ui, -apple-system, 'Segoe UI', Roboto, 'Noto Sans Thai', 'Noto Sans SC', sans-serif;
  --c-ease: cubic-bezier(0.22, 1, 0.36, 1);

  width: 100%;
  max-width: 380px;
  height: min(560px, 76vh);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--c-line);
  background: var(--c-bg);
  box-shadow: 0 24px 64px -16px rgba(0, 0, 0, 0.45);
  font-family: var(--c-f);
  color: var(--c-fg);
  /* the widget is a fixed UI object — its type must not scale with the page */
  font-size: 14px;
  line-height: 1.55;
  transition: background 0.35s var(--c-ease), border-color 0.35s var(--c-ease),
    color 0.35s var(--c-ease);
}

/* same dark tokens the live widget uses for :host(.dark) */
.chatsim.is-dark {
  --c-bg: #18181b;
  --c-bg2: #0c0c0e;
  --c-fg: #f4f4f5;
  --c-fg2: rgba(255, 255, 255, 0.5);
  --c-line: rgba(255, 255, 255, 0.09);
  --c-ab: #27272a;
}

.chatsim__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 11px 12px 11px 14px;
  border-bottom: 1px solid var(--c-line);
}

.chatsim__who {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.chatsim__av {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--a), var(--a2));
  display: grid;
  place-items: center;
}

.chatsim__av svg {
  width: 17px;
  height: 17px;
}

.chatsim__who h3 {
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.3;
  color: var(--c-fg);
}

.chatsim__who p {
  font-size: 11px;
  color: var(--c-fg2);
}

.chatsim__tools {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--c-fg2);
  font-size: 14px;
}

.chatsim__font {
  font-family: inherit;
  background: var(--c-ab);
  color: var(--c-fg);
  border: 1px solid var(--c-line);
  border-radius: 8px;
  font-size: 11px;
  padding: 3px 4px;
  cursor: pointer;
  outline: 0;
}

.chatsim__theme {
  color: var(--c-fg2);
  line-height: 1;
  padding: 4px 6px;
  border-radius: 8px;
  font-size: 14px;
  transition: background 0.25s var(--c-ease), color 0.25s var(--c-ease);
}

.chatsim__theme:hover {
  background: var(--c-ab);
  color: var(--c-fg);
}

.chatsim__x {
  font-size: 18px;
  padding: 4px 6px;
  color: var(--c-fg2);
}

.chatsim__log {
  flex: 1;
  overflow: hidden;
  padding: 14px;
  background: var(--c-bg2);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 12px;
}

.chatsim__row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  animation: chatsim-in 0.35s var(--c-ease);
}

.chatsim__row--u {
  flex-direction: row-reverse;
}

/* the transcript is revealed one turn at a time as the section scrolls;
   display:none → flex is what replays the entrance animation each time */
.chatsim__row.is-held {
  display: none;
}

.chatsim__m {
  max-width: 78%;
  padding: 9px 13px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.55;
}

.chatsim__row--u .chatsim__m {
  border-top-right-radius: 6px;
  color: #fff;
  background: linear-gradient(90deg, var(--a), var(--a2));
  box-shadow: 0 8px 24px -6px rgba(79, 70, 229, 0.45);
}

.chatsim__row--a .chatsim__m {
  border-top-left-radius: 6px;
  background: var(--c-ab);
  color: var(--c-fg);
  border: 1px solid var(--c-line);
}

.chatsim__dots {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  padding: 3px 0;
}

.chatsim__dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-fg2);
  animation: chatsim-bob 0.8s infinite ease-in-out;
}

.chatsim__dots i:nth-child(2) {
  animation-delay: 0.15s;
}

.chatsim__dots i:nth-child(3) {
  animation-delay: 0.3s;
}

.chatsim__form {
  padding: 10px;
  border-top: 1px solid var(--c-line);
}

.chatsim__ib {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 5px 5px 13px;
  border-radius: 14px;
  border: 1px solid var(--c-line);
  background: var(--c-ab);
  transition: border-color 0.25s var(--c-ease), background 0.35s var(--c-ease);
}

.chatsim.is-typing .chatsim__ib {
  border-color: var(--a);
}

.chatsim__field {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  padding: 6px 0;
  color: var(--c-fg);
  white-space: nowrap;
  overflow: hidden;
}

.chatsim__field.is-empty .chatsim__text::before {
  content: 'Type your question…';
  color: var(--c-fg2);
}

.chatsim__caret {
  display: none;
  width: 1px;
  height: 15px;
  margin-left: 1px;
  background: var(--a);
  vertical-align: -2px;
  animation: chatsim-caret 1s steps(1) infinite;
}

.chatsim.is-typing .chatsim__caret {
  display: inline-block;
}

.chatsim__send {
  flex: 0 0 32px;
  height: 32px;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, var(--a), var(--a2));
  display: grid;
  place-items: center;
  opacity: 0.4;
  transition: opacity 0.25s var(--c-ease), transform 0.25s var(--c-ease);
}

.chatsim.is-typing .chatsim__send {
  opacity: 1;
}

.chatsim.is-sending .chatsim__send {
  transform: scale(0.86);
}

.chatsim__send svg {
  width: 15px;
  height: 15px;
}

@keyframes chatsim-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes chatsim-bob {
  0%,
  100% {
    opacity: 0.4;
    transform: none;
  }
  50% {
    opacity: 1;
    transform: translateY(-4px);
  }
}

@keyframes chatsim-caret {
  50% {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .chatsim__row,
  .chatsim__dots i,
  .chatsim__caret {
    animation: none;
  }

  /* nothing replays — the transcript is rendered in full, so let it grow */
  .chatsim {
    height: auto;
  }

  .chatsim__log {
    justify-content: flex-start;
  }
}

/* ============================================================
   Steps — editorial numbered rows
   ============================================================ */
.steps {
  counter-reset: s;
  border-top: 1px solid var(--rule-ink);
}

.zone--night .steps,
.zone--deep .steps {
  border-color: var(--rule);
}

.step {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(16px, 3vw, 48px);
  align-items: baseline;
  padding: clamp(26px, 3.4vw, 44px) 0;
  border-bottom: 1px solid var(--rule-ink);
  transition: background 0.5s var(--ease);
}

.zone--night .step,
.zone--deep .step {
  border-color: var(--rule);
}

.step__no {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--gold);
}

.step h3 {
  font-size: clamp(1.4rem, 2.2vw, 2rem);
}

.step p {
  color: var(--muted);
  font-size: 0.95rem;
}

.zone--night .step p,
.zone--deep .step p {
  color: var(--soft);
}

/* ============================================================
   Stats
   ============================================================ */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 4vw, 56px);
}

.stat {
  border-top: 1px solid var(--rule);
  padding-top: 26px;
}

.stat__n {
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 7vw, 5.6rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: var(--gold);
  display: flex;
  align-items: baseline;
  gap: 2px;
}

/* odometer — motion.js swaps the plain figure for digit reels; without JS the
   markup's own number stays put, so the stat always reads correctly */
.odo {
  display: inline-flex;
}

.odo__d {
  display: block;
  height: 1em;
  overflow: hidden;
}

.odo__r {
  display: block;
}

.odo__r i {
  display: block;
  height: 1em;
  line-height: 1;
  font-style: normal;
}

.stat__n sup {
  font-size: 0.36em;
  font-family: var(--font-mono);
  letter-spacing: 0;
  top: -0.1em;
}

.stat p {
  margin-top: 14px;
  color: var(--soft);
  font-size: 0.92rem;
  max-width: 26ch;
}

/* ============================================================
   Showcase
   ============================================================ */
.reel {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  /* fixed row height keeps the asymmetric 5/7 spans level with each other */
  grid-auto-rows: clamp(200px, 23vw, 340px);
  gap: 16px;
}

.shot {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid var(--rule);
  background: var(--navy);
  height: 100%;
}

.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease), filter 0.6s var(--ease);
  filter: saturate(0.72) brightness(0.82);
}

.shot:hover img {
  transform: scale(1.05);
  filter: saturate(1) brightness(1);
}

.shot:nth-child(4n + 1) {
  grid-column: span 5;
}
.shot:nth-child(4n + 2) {
  grid-column: span 7;
}
.shot:nth-child(4n + 3) {
  grid-column: span 7;
}
.shot:nth-child(4n + 4) {
  grid-column: span 5;
}

/* ============================================================
   Founder
   ============================================================ */
.founder {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}

.founder__pic {
  position: relative;
  overflow: hidden;
  border-radius: 999px;
  border: 1px solid var(--rule);
}

.founder__pic img {
  width: 100%;
  transition: transform 0.9s var(--ease);
}

.founder__pic:hover img {
  transform: scale(1.03);
}

.founder blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.1vw, 2.7rem);
  line-height: 1.14;
  letter-spacing: -0.02em;
  margin-bottom: 26px;
}

.founder blockquote em {
  font-style: italic;
  color: var(--gold);
}

.founder cite {
  display: block;
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--soft);
}

.founder cite b {
  display: block;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  color: var(--light);
  font-weight: 500;
  margin-bottom: 6px;
}

/* ============================================================
   Straight answers list
   ============================================================ */
.plain {
  border-top: 1px solid var(--rule);
  max-width: 900px;
}

.plain li {
  list-style: none;
  padding: 24px 0;
  border-bottom: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 20px;
  color: var(--soft);
  font-size: 0.98rem;
}

.plain li::before {
  content: '—';
  color: var(--gold);
  font-family: var(--font-mono);
}

/* ============================================================
   Closer
   ============================================================ */
.closer {
  text-align: center;
}

.closer .display {
  max-width: 16ch;
  margin: 0 auto 28px;
}

.closer .lede {
  margin: 0 auto 40px;
}

.closer .actions {
  justify-content: center;
}

/* ============================================================
   Footer
   ============================================================ */
.foot {
  background: var(--navy-deep);
  border-top: 1px solid var(--rule);
  padding: clamp(64px, 8vw, 110px) 0 44px;
}

/* CTA band across the top */
.foot__top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px 40px;
  padding-bottom: clamp(38px, 4.5vw, 60px);
  margin-bottom: clamp(38px, 4.5vw, 60px);
  border-bottom: 1px solid var(--rule);
}

.foot__line {
  margin-top: 18px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1;
  letter-spacing: -0.02em;
  max-width: 17ch;
}

.foot__cols {
  display: grid;
  grid-template-columns: auto repeat(3, minmax(0, 1fr));
  gap: clamp(30px, 4vw, 56px);
  padding-bottom: clamp(38px, 4.5vw, 56px);
}

.foot__col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}

.foot__h {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--soft);
  margin-bottom: 4px;
}

.foot__col a {
  font-size: 0.98rem;
  color: rgba(246, 252, 255, 0.66);
  transition: color 0.3s var(--ease), transform 0.4s var(--ease);
}

.foot__col a:hover {
  color: var(--gold);
  transform: translateX(5px);
}

/* scoped to beat `.foot__col a`, which is more specific than a bare class */
.foot__col a.foot__phone {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.3vw, 1.85rem);
  letter-spacing: -0.01em;
  line-height: 1.1;
  color: var(--light);
  margin-bottom: 4px;
}

.foot__col a.foot__phone:hover {
  color: var(--gold);
}

/* the QR and the phone are objects, not list links — no nudge on hover */
.foot__col--qr a:hover,
.foot__col a.foot__phone:hover {
  transform: none;
}

.foot__qr {
  width: 104px;
  height: 104px;
  padding: 5px;
  border-radius: 6px;
  background: #fff;
  transition: transform 0.5s var(--ease);
}

.foot__qr:hover {
  transform: scale(1.05);
}

.foot__note {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--soft);
  max-width: 32ch;
}

.foot__mark {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: var(--light);
}

.foot__mark b {
  font-weight: 400;
  font-style: italic;
  color: var(--gold);
}

.foot__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 28px;
  padding-top: 26px;
  border-top: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(246, 252, 255, 0.4);
}

/* ============================================================
   Motion primitives — GSAP sets the rest
   ============================================================ */
[data-anim] {
  will-change: transform, opacity;
}

/* pre-paint state so nothing flashes before GSAP boots */
.js [data-anim='up'],
.js [data-anim='left'],
.js [data-anim='right'],
.js [data-anim='scale'] {
  opacity: 0;
}

.js [data-anim='clip'] {
  clip-path: inset(0 0 100% 0);
}

@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;
  }

  .js [data-anim] {
    opacity: 1 !important;
    clip-path: none !important;
    transform: none !important;
  }

  .job {
    opacity: 1;
  }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1080px) {
  .split__aside,
  .split__main,
  .jobs__label,
  .jobs__stack {
    grid-column: 1 / -1;
  }

  .foot__cols {
    grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr);
  }

  .foot__col--brand {
    grid-column: 1 / -1;
  }

  .split__aside {
    position: static;
  }

  .jobs {
    min-height: 0;
  }

  .job {
    opacity: 1;
  }

  .founder {
    grid-template-columns: 1fr;
  }

  .founder__pic {
    max-width: 320px;
  }

  .shot:nth-child(n) {
    grid-column: span 6;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .stat {
    padding-top: 20px;
  }

  .demo {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .demo__copy {
    max-width: 62ch;
  }
}

@media (max-width: 820px) {
  .nav__links,
  .nav__cta {
    display: none;
  }

  .nav__burger {
    display: flex;
  }

  .nav.is-open .nav__links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 28px 0 34px;
  }

  .nav.is-open .nav__cta {
    display: none;
  }

  .pillar__body,
  .step {
    grid-template-columns: 1fr;
  }

  .step {
    gap: 12px;
  }

  .hero__foot {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .scroll-cue {
    display: none;
  }

  .shot:nth-child(n) {
    grid-column: 1 / -1;
  }

  .actions .btn {
    width: 100%;
  }

  .foot__cols {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .foot__top .btn {
    width: 100%;
  }
}
