/* ==========================================================================
   Beck Systems — Editorial Design System
   Brand tokens matched to becksystems.vercel.app (ink / gold / warm paper).
   ========================================================================== */

:root {
  /* Brand — carried over verbatim from the existing site */
  --ink:        #111111;
  --paper:      #FFFFFF;
  --paper-warm: #FAFAF8;
  --gold:       #B39850;
  --muted:      #6B6B6B;
  --hairline:   #E5E3DF;

  /* Editorial extensions */
  --bone:       #FAFAF8;
  --linen:      #F2F0EB;
  --ink-soft:   #3A3A3A;
  --gold-soft:  rgba(179, 152, 80, 0.14);

  /* Type — matched to the existing site */
  --display: "Cormorant Garamond", Georgia, serif;
  --sans:    "Inter", -apple-system, BlinkMacSystemFont, sans-serif;

  /* Rhythm */
  --gut:  clamp(16px, 2.2vw, 34px);
  --pad:  clamp(20px, 5vw, 92px);
  --sect: clamp(96px, 15vh, 210px);
  --max:  1120px;

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

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }

body {
  background: var(--paper-warm);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

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

#smooth-wrapper { overflow: hidden; }

/* ---------- Logo ---------- */
.logo { display: flex; align-items: center; gap: 0.7em; }
.logo svg { width: 34px; height: auto; flex: none; display: block; }
.logo__word {
  font-family: var(--display);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ---------- Type scale ---------- */
.display {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.0;
  letter-spacing: -0.012em;
}
.d-xl { font-size: clamp(3.2rem, 11vw, 11.5rem); }
.d-lg { font-size: clamp(2.6rem, 7vw, 6.4rem); }
.d-md { font-size: clamp(2rem, 4.2vw, 3.8rem); }
.d-sm { font-size: clamp(1.5rem, 2.4vw, 2.2rem); line-height: 1.1; }

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

.eyebrow {
  font-family: var(--sans);
  font-size: 0.66rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--muted);
}
.eyebrow .idx { color: var(--gold); margin-right: 0.9em; }

.lead {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.3rem, 2.3vw, 2rem);
  line-height: 1.45;
  color: var(--ink-soft);
}

.body-copy {
  font-size: clamp(0.94rem, 1.05vw, 1.02rem);
  line-height: 1.75;
  color: var(--ink-soft);
  max-width: 52ch;
}

/* ---------- Layout ---------- */
.wrap { padding-inline: var(--pad); }
.section { padding-block: var(--sect); position: relative; }
.grid12 { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gut); }
.rule { height: 1px; background: var(--hairline); transform-origin: left center; }

/* ==========================================================================
   Preloader
   ========================================================================== */
.loader {
  position: fixed; inset: 0; z-index: 200;
  background: var(--paper-warm);
  display: flex; align-items: flex-end; justify-content: space-between;
  padding: var(--pad);
}
.loader__mark { font-family: var(--display); font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1; overflow: hidden; }
.loader__mark span { display: block; }
.loader__count { font-family: var(--display); font-size: clamp(3.5rem, 13vw, 10rem); line-height: 0.8; font-variant-numeric: tabular-nums; }
.loader__bar { position: absolute; left: var(--pad); right: var(--pad); bottom: calc(var(--pad) + 0.5rem); height: 1px; background: var(--hairline); }
.loader__bar i { display: block; height: 100%; width: 0%; background: var(--gold); }

/* ==========================================================================
   Navigation
   ========================================================================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: clamp(16px, 2vw, 26px) var(--pad);
  transition: background 0.5s var(--ease), border-color 0.5s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav--solid {
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--hairline);
}
.nav--onDark { color: var(--paper); }
.nav--onDark .logo__word { color: var(--paper); }
.nav--onDark .logo .c-ink { stroke: #FFFFFF; }

.nav__menu { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 38px); }
.nav__link {
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.17em;
  font-weight: 500; position: relative; padding-block: 4px;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: right center;
  transition: transform 0.55s var(--ease);
}
.nav__link:hover::after { transform: scaleX(1); transform-origin: left center; }

.nav__cta {
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.16em; font-weight: 500;
  border: 1px solid currentColor; border-radius: 100px; padding: 0.65em 1.5em;
  transition: background 0.45s var(--ease), color 0.45s var(--ease), border-color 0.45s var(--ease);
}
.nav__cta:hover { background: var(--gold); border-color: var(--gold); color: var(--paper); }

.nav__burger { display: none; width: 26px; height: 12px; position: relative; }
.nav__burger i { position: absolute; left: 0; width: 100%; height: 1px; background: currentColor; }
.nav__burger i:first-child { top: 0; }
.nav__burger i:last-child { bottom: 0; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { position: relative; height: 100svh; min-height: 620px; overflow: hidden; }
.hero__media { position: absolute; inset: 0; overflow: hidden; will-change: clip-path; }
.hero__media img { width: 100%; height: 120%; object-fit: cover; position: absolute; top: -10%; left: 0; will-change: transform; }
.hero__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(17,17,17,0.46) 0%, rgba(17,17,17,0.16) 42%, rgba(17,17,17,0.62) 100%);
}
.hero__inner {
  position: relative; z-index: 2; height: 100%;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: var(--pad); padding-bottom: clamp(34px, 5vh, 68px);
  color: var(--paper);
}
.hero__title { color: var(--paper); max-width: 15ch; }
.hero__meta {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: var(--gut); margin-top: clamp(26px, 4vh, 52px);
  border-top: 1px solid rgba(255,255,255,0.28); padding-top: 20px;
}
.hero__meta p { color: rgba(255,255,255,0.86); max-width: 34ch; font-size: 0.92rem; line-height: 1.65; }

.scroll-cue { display: flex; align-items: center; gap: 12px; }
.scroll-cue span { font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.24em; color: rgba(255,255,255,0.72); }
.scroll-cue i { display: block; width: 1px; height: 42px; background: rgba(255,255,255,0.4); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; inset: 0; background: var(--paper); animation: cue 2.4s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(-100%); } 55% { transform: translateY(0); } 100% { transform: translateY(100%); } }

/* Scroll cue on a light ground */
.scroll-cue--dark span { color: var(--muted); }
.scroll-cue--dark i { background: var(--hairline); }
.scroll-cue--dark i::after { background: var(--gold); }

.line-mask { overflow: hidden; display: block; }

/* ==========================================================================
   Manifesto
   ========================================================================== */
.manifesto__text {
  grid-column: 2 / 12;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.6rem, 3.4vw, 3.2rem);
  line-height: 1.3;
}
.manifesto__text .w { color: rgba(17,17,17,0.15); }

/* ==========================================================================
   Marquee — CSS-driven (compositor), independent of any JS ticker
   ========================================================================== */
/* Level, full-bleed band. */
.marquee {
  border-block: 1px solid var(--hairline);
  padding-block: clamp(14px, 1.8vw, 24px);
  overflow: hidden;
  background: var(--paper);
  position: relative;
  width: 100%;
  margin-inline: 0;
  transform: none;
}
/* Optional second band, travelling the other way */
.marquee--rev { border-top: 0; }

.marquee__track {
  display: flex;
  align-items: center;
  width: max-content;
  /* reversed: runs from -50% back to 0, i.e. left → right */
  animation: marq 22s linear infinite reverse;
  will-change: transform;
}
.marquee--rev .marquee__track { animation-duration: 28s; animation-direction: normal; }

.marquee:hover .marquee__track { animation-play-state: paused; }

/* Track holds the sequence twice, so shifting by half is seamless */
@keyframes marq {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

.marquee__track span {
  font-family: var(--display);
  font-size: clamp(1.6rem, 3.2vw, 3rem);
  padding-inline: 0.55em;
  white-space: nowrap;
  color: var(--ink);
}
.marquee--rev .marquee__track span { color: var(--muted); font-size: clamp(1.2rem, 2.2vw, 2.1rem); }

/* The separators literally rotate, continuously */
.marquee__track .dot {
  display: inline-block;
  color: var(--gold);
  font-size: 0.42em;
  padding-inline: 0.2em;
  animation: dotspin 4s linear infinite;
  transform-origin: 50% 50%;
}
@keyframes dotspin {
  from { transform: translateY(-0.55em) rotate(0deg); }
  to   { transform: translateY(-0.55em) rotate(360deg); }
}
/* Scroll-velocity skew, layered on top by GSAP */
.marquee__skew { display: block; will-change: transform; }

/* ==========================================================================
   Services
   ========================================================================== */
.service {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gut);
  align-items: center; padding-block: clamp(48px, 7vw, 96px);
  border-top: 1px solid var(--hairline);
}
.service__media { grid-column: 1 / 7; position: relative; overflow: hidden; aspect-ratio: 4 / 3; }
.service:nth-child(even) .service__media { grid-column: 7 / 13; order: 2; }
.service:nth-child(even) .service__body { grid-column: 1 / 6; order: 1; }
.service__media img { width: 100%; height: 116%; object-fit: cover; position: absolute; top: -8%; left: 0; will-change: transform; }
.service__body { grid-column: 8 / 13; }
.service__title { margin-block: 0.3em 0.45em; }
.service__list { margin-top: 1.9rem; border-top: 1px solid var(--hairline); }
.service__list li {
  display: flex; gap: 1rem; align-items: baseline;
  padding-block: 0.72rem; border-bottom: 1px solid var(--hairline);
  font-size: 0.92rem; color: var(--ink-soft);
}
.service__list li::before {
  content: ""; width: 4px; height: 4px; border-radius: 50%;
  background: var(--gold); flex: none; transform: translateY(-2px);
}
.price { font-family: var(--display); font-size: 2rem; color: var(--ink); }
.price small { font-family: var(--sans); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

/* ==========================================================================
   Pinned transcript
   ========================================================================== */
.pinned { position: relative; background: var(--linen); }
.pinned__inner {
  height: 100svh; display: grid; grid-template-columns: repeat(12, 1fr);
  gap: var(--gut); align-items: center; padding-inline: var(--pad);
}
.pinned__aside { grid-column: 1 / 5; }
.pinned__stage { grid-column: 6 / 13; position: relative; }
.pinned__progress { margin-top: 2rem; height: 1px; background: var(--hairline); }
.pinned__progress i { display: block; height: 100%; width: 0%; background: var(--gold); }

.turn { padding-block: 1.1rem; border-bottom: 1px solid var(--hairline); opacity: 0.18; will-change: opacity; }
.turn__who { font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.22em; color: var(--gold); margin-bottom: 0.5rem; display: block; }
.turn__what { font-family: var(--display); font-size: clamp(1.15rem, 1.9vw, 1.6rem); line-height: 1.4; color: var(--ink); }
.turn[data-caller] .turn__who { color: var(--muted); }

/* ==========================================================================
   Gallery
   ========================================================================== */
.gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gut); }
.thumb { position: relative; }
.thumb__frame { position: relative; overflow: hidden; background: var(--linen); }
.thumb__frame img { width: 100%; height: 100%; object-fit: cover; will-change: transform; transition: filter 0.7s var(--ease); }
.thumb__cap { display: flex; justify-content: space-between; align-items: baseline; margin-top: 0.85rem; gap: 1rem; }
.thumb__cap h4 { font-family: var(--display); font-size: 1.3rem; font-weight: 500; }
.thumb__cap span { font-size: 0.6rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.thumb:hover .thumb__frame img { filter: saturate(1.05) contrast(1.03); }

.g-a { grid-column: 1 / 5; }
.g-b { grid-column: 6 / 10; margin-top: clamp(40px, 9vw, 140px); }
.g-c { grid-column: 10 / 13; }
.g-d { grid-column: 2 / 6; margin-top: clamp(20px, 4vw, 60px); }
.g-e { grid-column: 7 / 13; }
.g-a .thumb__frame { aspect-ratio: 3 / 4; }
.g-b .thumb__frame { aspect-ratio: 4 / 5; }
.g-c .thumb__frame { aspect-ratio: 2 / 3; }
.g-d .thumb__frame { aspect-ratio: 1 / 1; }
.g-e .thumb__frame { aspect-ratio: 16 / 10; }

/* ==========================================================================
   Stats
   ========================================================================== */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gut); border-top: 1px solid var(--hairline); }
.stat { padding-top: 1.7rem; border-right: 1px solid var(--hairline); padding-right: var(--gut); }
.stat:last-child { border-right: 0; }
.stat__n { font-family: var(--display); font-size: clamp(2.6rem, 5.2vw, 4.4rem); line-height: 1; font-variant-numeric: tabular-nums; }
.stat__n sup { font-size: 0.4em; vertical-align: super; color: var(--gold); }
.stat__l { font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.17em; color: var(--muted); margin-top: 0.85rem; }

/* ==========================================================================
   Quote / CTA
   ========================================================================== */
.quote { text-align: center; padding-inline: var(--pad); }
.quote blockquote { max-width: 18ch; margin-inline: auto; }
.quote figcaption { margin-top: 2.4rem; }

.cta { position: relative; overflow: hidden; color: var(--paper); }
.cta__media { position: absolute; inset: 0; }
.cta__media img { width: 100%; height: 118%; object-fit: cover; position: absolute; top: -9%; will-change: transform; }
.cta__media::after { content: ""; position: absolute; inset: 0; background: rgba(17,17,17,0.62); }
.cta__inner { position: relative; z-index: 2; padding: clamp(90px, 15vw, 190px) var(--pad); text-align: center; }

.btn-line {
  display: inline-flex; align-items: center; gap: 0.9em;
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.2em; font-weight: 500;
  padding-bottom: 0.7em; position: relative;
}
.btn-line::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px;
  background: var(--gold); transform-origin: left center; transition: transform 0.6s var(--ease);
}
.btn-line:hover::after { transform: scaleX(0); transform-origin: right center; }
.btn-line .arrow { transition: transform 0.6s var(--ease); }
.btn-line:hover .arrow { transform: translateX(7px); }

.btn-solid {
  display: inline-flex; align-items: center; gap: 0.8em;
  background: var(--ink); color: var(--paper);
  border-radius: 100px; padding: 1.05em 2.3em;
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.18em; font-weight: 500;
  transition: background 0.45s var(--ease);
}
.btn-solid:hover { background: var(--gold); }
.cta .btn-solid { background: var(--paper); color: var(--ink); }
.cta .btn-solid:hover { background: var(--gold); color: var(--paper); }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { background: var(--ink); color: var(--paper); padding: clamp(60px, 9vw, 120px) var(--pad) clamp(28px, 3vw, 44px); }
.footer a { color: rgba(255,255,255,0.68); transition: color 0.4s var(--ease); }
.footer a:hover { color: var(--gold); }
.footer .logo__word { color: var(--paper); }
.footer .logo .c-ink { stroke: #FFFFFF; }
.footer__top { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gut); padding-bottom: clamp(50px, 7vw, 90px); }
.footer__col:nth-child(1) { grid-column: 1 / 5; }
.footer__col:nth-child(2) { grid-column: 6 / 8; }
.footer__col:nth-child(3) { grid-column: 8 / 10; }
.footer__col:nth-child(4) { grid-column: 10 / 13; }
.footer .eyebrow { color: rgba(255,255,255,0.44); margin-bottom: 1.5rem; display: block; }
.footer__col li { padding-block: 0.32rem; font-size: 0.92rem; }
.footer__wordmark {
  font-family: var(--display); font-size: clamp(3rem, 15vw, 14rem);
  line-height: 0.86; letter-spacing: -0.02em;
  border-top: 1px solid rgba(255,255,255,0.16);
  padding-top: clamp(24px, 3vw, 44px); white-space: nowrap;
}
.footer__base {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  margin-top: clamp(24px, 3vw, 40px);
  font-size: 0.66rem; letter-spacing: 0.13em; text-transform: uppercase;
  color: rgba(255,255,255,0.44);
}

/* ==========================================================================
   Interior pages / forms
   ========================================================================== */
.page-head { padding: clamp(140px, 20vh, 230px) var(--pad) clamp(50px, 7vw, 90px); }
.page-head .display { max-width: 16ch; }
.page-head .lead { max-width: 46ch; margin-top: 1.8rem; }

.form { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(22px, 3vw, 40px); }
.field { position: relative; display: flex; flex-direction: column; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.2em; color: var(--muted); margin-bottom: 0.8rem; }
.field input, .field textarea, .field select {
  font-family: var(--display); font-size: 1.15rem; color: var(--ink); background: transparent;
  border: 0; border-bottom: 1px solid var(--hairline); padding: 0.55rem 0; border-radius: 0;
  transition: border-color 0.5s var(--ease); width: 100%;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-bottom-color: var(--gold); }
.field input::placeholder, .field textarea::placeholder { color: #BFBCB5; }

.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gut); }
.slot {
  border: 1px solid var(--hairline); padding: clamp(20px, 2.4vw, 32px);
  display: flex; flex-direction: column; gap: 0.7rem; text-align: left;
  transition: border-color 0.5s var(--ease), background 0.5s var(--ease); background: transparent;
}
.slot:hover { border-color: var(--ink); background: var(--paper); }
.slot[aria-pressed="true"] { border-color: var(--gold); background: var(--gold-soft); }
.slot__t { font-family: var(--display); font-size: 1.7rem; }
.slot__d { font-size: 0.85rem; color: var(--ink-soft); }
.slot__m { font-size: 0.6rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); }

.contact-list li { border-bottom: 1px solid var(--hairline); padding-block: 1.15rem; }
.contact-list .k { font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.2em; color: var(--muted); display: block; margin-bottom: 0.4rem; }
.contact-list .v { font-family: var(--display); font-size: clamp(1.3rem, 2vw, 1.8rem); }

.reveal-img { overflow: hidden; }
.fade-up { will-change: transform, opacity; }

/* Custom cursor */
.cursor { position: fixed; top: 0; left: 0; z-index: 300; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); pointer-events: none; transform: translate(-50%, -50%); }
.cursor--ring { width: 38px; height: 38px; background: transparent; border: 1px solid rgba(179,152,80,0.5); }
@media (hover: none) { .cursor { display: none; } }

/* ==========================================================================
   Cloud chat widget — carried over from becksystems.vercel.app
   ========================================================================== */
#chatToggle {
  position: fixed; top: 50%; right: 18px; z-index: 120;
  transform: translateY(-50%);
  width: 86px; height: 60px;
  background: none; border: none; padding: 0; cursor: pointer;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,0.16));
  animation: bob 3.2s ease-in-out infinite;
  transition: transform .35s var(--ease);
}
#chatToggle:hover { transform: translateY(-50%) scale(1.08); }
#chatToggle svg { width: 100%; height: 100%; }
@keyframes bob { 0%, 100% { margin-top: 0; } 50% { margin-top: -8px; } }

#chatPanel {
  position: fixed; top: 50%; right: 118px; z-index: 120;
  width: 320px; max-width: calc(100vw - 40px);
  background: var(--paper); border: 1px solid var(--hairline);
  box-shadow: 0 20px 50px rgba(0,0,0,0.18);
  display: flex; flex-direction: column; overflow: hidden;
  height: 420px; max-height: calc(100vh - 60px);
  transform: translateY(-50%) scale(.9); transform-origin: right center;
  opacity: 0; pointer-events: none;
  transition: opacity .35s var(--ease), transform .4s cubic-bezier(.34,1.56,.64,1);
}
#chatPanel::after {
  content: ""; position: absolute; top: 50%; right: -9px;
  width: 16px; height: 16px; background: var(--paper);
  border-right: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline);
  transform: translateY(-50%) rotate(-45deg);
}
#chatPanel.open { opacity: 1; pointer-events: auto; transform: translateY(-50%) scale(1); }

.chat-header { padding: 16px 20px; border-bottom: 1px solid var(--hairline); display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; }
.chat-header .chat-title { display: flex; align-items: center; gap: 9px; }
.chat-header svg { width: 26px; height: 18px; }
.chat-header span { font-family: var(--display); font-size: 14px; letter-spacing: 0.16em; font-weight: 600; text-transform: uppercase; }
.chat-close { cursor: pointer; font-size: 18px; color: var(--muted); line-height: 1; background: none; border: none; padding: 4px; transition: color .25s var(--ease), transform .25s var(--ease); }
.chat-close:hover { color: var(--ink); transform: rotate(90deg); }

.chat-messages { flex: 1; overflow-y: auto; padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; scroll-behavior: smooth; }
.chat-msg { max-width: 82%; font-size: 13.5px; line-height: 1.55; padding: 10px 13px; white-space: pre-wrap; animation: msgIn .3s var(--ease) both; }
@keyframes msgIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.chat-msg.user { align-self: flex-end; background: var(--ink); color: var(--paper); }
.chat-msg.assist { align-self: flex-start; background: var(--paper-warm); border: 1px solid var(--hairline); color: var(--ink); }
.chat-input-row { display: flex; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--hairline); flex-shrink: 0; }
.chat-input-row input { flex: 1; border: 1px solid var(--hairline); padding: 9px 12px; font-family: var(--sans); font-size: 13px; background: var(--paper); }
.chat-input-row input:focus { outline: none; border-color: var(--gold); }
.chat-input-row button { background: var(--ink); color: var(--paper); padding: 9px 16px; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; transition: background .3s var(--ease); }
.chat-input-row button:hover { background: var(--gold); }

@media (max-width: 760px) {
  #chatToggle { width: 64px; height: 45px; right: 12px; top: auto; bottom: 20px; transform: none; }
  #chatToggle:hover { transform: scale(1.08); }
  #chatPanel { right: 12px; left: 12px; width: auto; top: auto; bottom: 78px; transform: translateY(10px) scale(.96); transform-origin: bottom center; height: 60vh; }
  #chatPanel.open { transform: translateY(0) scale(1); }
  #chatPanel::after { display: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .manifesto__text { grid-column: 1 / 13; }
  .service__media, .service:nth-child(even) .service__media { grid-column: 1 / 13; order: 1; }
  .service__body, .service:nth-child(even) .service__body { grid-column: 1 / 13; order: 2; }
  .pinned__aside, .pinned__stage { grid-column: 1 / 13; }
  .pinned__inner { height: auto; padding-block: var(--sect); align-content: center; }
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 2.4rem; }
  .stat:nth-child(2) { border-right: 0; }
  .footer__col:nth-child(1) { grid-column: 1 / 13; margin-bottom: 2rem; }
  .footer__col:nth-child(2) { grid-column: 1 / 5; }
  .footer__col:nth-child(3) { grid-column: 5 / 9; }
  .footer__col:nth-child(4) { grid-column: 9 / 13; }
  .slots { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav__menu .nav__link { display: none; }
  .nav__burger { display: block; }
  .g-a, .g-b, .g-c, .g-d, .g-e { grid-column: 1 / 13; margin-top: 0; }
  .gallery { row-gap: clamp(30px, 8vw, 54px); }
  .form { grid-template-columns: 1fr; }
  .hero__meta { flex-direction: column; align-items: flex-start; }
  .scroll-cue { display: none; }
  .footer__col:nth-child(2), .footer__col:nth-child(3), .footer__col:nth-child(4) { grid-column: span 6; margin-bottom: 1.5rem; }
  .logo svg { width: 28px; }
  .logo__word { font-size: 0.86rem; letter-spacing: 0.13em; }
}

.mnav {
  position: fixed; inset: 0; z-index: 150;
  background: var(--ink); color: var(--paper); padding: var(--pad);
  display: flex; flex-direction: column; justify-content: center; gap: 0.2rem;
  clip-path: inset(0 0 100% 0); visibility: hidden;
}
.mnav a { font-family: var(--display); font-size: clamp(2.2rem, 9vw, 4rem); line-height: 1.2; }
.mnav__close { position: absolute; top: var(--pad); right: var(--pad); font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; }

/* ==========================================================================
   Scroll progress — a hairline of gold across the top
   ========================================================================== */
.progress {
  position: fixed; top: 0; left: 0; right: 0; z-index: 130;
  height: 2px; background: transparent; pointer-events: none;
}
.progress i {
  display: block; height: 100%; width: 100%; background: var(--gold);
  transform: scaleX(0); transform-origin: left center;
}

/* ==========================================================================
   Typographic hero — no photograph, the way the original opens
   ========================================================================== */
.hero-type {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(120px, 18vh, 200px) var(--pad) clamp(60px, 9vh, 110px);
  overflow: hidden;
}
/* A single soft gold wash — the only "colour" on the page */
.hero-type::before {
  content: "";
  position: absolute; top: -30%; right: -10%;
  width: 70vw; height: 90vh;
  background: radial-gradient(ellipse at center, rgba(179,152,80,0.13) 0%, rgba(179,152,80,0.05) 40%, transparent 70%);
  pointer-events: none;
}
.hero-type__inner { position: relative; z-index: 2; max-width: var(--max); margin-inline: auto; width: 100%; }
.hero-type h1 {
  font-size: clamp(3rem, 10.5vw, 10.5rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
}
.hero-type h1 .l2 { display: block; }
.hero-type__sub {
  font-family: var(--sans); font-size: clamp(0.98rem, 1.35vw, 1.14rem);
  line-height: 1.7; color: var(--ink-soft); max-width: 46ch;
  margin-top: clamp(26px, 3.5vw, 44px);
}
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: clamp(30px, 4vw, 50px); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 0.7em;
  border: 1px solid var(--hairline); border-radius: 100px;
  padding: 1.02em 2.1em; font-size: 0.7rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.18em;
  transition: border-color .45s var(--ease), background .45s var(--ease), color .45s var(--ease);
}
.btn-ghost:hover { border-color: var(--ink); background: var(--ink); color: var(--paper); }

.hero-type__foot {
  position: relative; z-index: 2;
  max-width: var(--max); margin: clamp(50px, 8vh, 90px) auto 0; width: 100%;
  display: flex; justify-content: space-between; align-items: flex-end; gap: var(--gut);
  border-top: 1px solid var(--hairline); padding-top: 20px;
}

/* ==========================================================================
   Demo card — the transcript, presented as an object
   ========================================================================== */
.demo-card {
  background: var(--paper);
  border: 1px solid var(--hairline);
  box-shadow: 0 30px 70px -30px rgba(17,17,17,0.18);
  overflow: hidden;
  max-width: 620px; width: 100%;
}
.demo-header {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 18px; border-bottom: 1px solid var(--hairline);
  background: var(--paper-warm);
}
.demo-dots { display: flex; gap: 6px; }
.demo-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--hairline); display: block; }
.demo-dots i:first-child { background: #E5D2A8; }
.demo-label {
  font-size: 0.58rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted); margin-left: auto;
}
.demo-messages { padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.demo-msg {
  max-width: 84%; font-size: 0.9rem; line-height: 1.6;
  padding: 12px 15px; border-radius: 2px;
}
.demo-msg.customer { align-self: flex-end; background: var(--ink); color: var(--paper); }
.demo-msg.ai { align-self: flex-start; background: var(--paper-warm); border: 1px solid var(--hairline); color: var(--ink); }
.demo-msg .tag {
  display: block; font-family: var(--sans); font-size: 0.52rem;
  letter-spacing: 0.2em; text-transform: uppercase; opacity: 0.5; margin-bottom: 5px;
}

/* ==========================================================================
   Pricing cards
   ========================================================================== */
.pricing-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gut); align-items: start; }
.price-card {
  position: relative; background: var(--paper);
  border: 1px solid var(--hairline);
  padding: clamp(28px, 3.6vw, 52px);
  display: flex; flex-direction: column; height: 100%;
  transition: border-color .5s var(--ease), box-shadow .6s var(--ease), transform .6s var(--ease);
}
.price-card:hover { border-color: var(--gold); box-shadow: 0 30px 60px -34px rgba(17,17,17,0.24); }
.price-card.popular { border-color: var(--ink); }
.price-badge {
  position: absolute; top: 0; right: clamp(24px, 3vw, 44px); transform: translateY(-50%);
  background: var(--gold); color: var(--paper);
  font-size: 0.56rem; letter-spacing: 0.2em; text-transform: uppercase;
  padding: 0.55em 1.1em;
}
.price-kind { font-size: 0.6rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
.price-card h3 { font-family: var(--display); font-size: clamp(1.9rem, 3.2vw, 2.7rem); font-weight: 500; margin: 0.5rem 0 0.5rem; }
.price-card > p { font-size: 0.94rem; line-height: 1.65; color: var(--ink-soft); }
.price-feats { margin: 1.9rem 0 2.2rem; border-top: 1px solid var(--hairline); }
.price-feats li {
  display: flex; gap: 0.9rem; align-items: baseline;
  padding-block: 0.7rem; border-bottom: 1px solid var(--hairline);
  font-size: 0.89rem; color: var(--ink-soft);
}
.price-feats li::before {
  content: ""; width: 4px; height: 4px; border-radius: 50%;
  background: var(--gold); flex: none; transform: translateY(-2px);
}
.price-value { font-family: var(--display); font-size: clamp(2.4rem, 4.4vw, 3.6rem); line-height: 1; margin-top: auto; }
.price-value small { font-family: var(--sans); font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.price-card .btn-solid, .price-card .btn-ghost { margin-top: 1.8rem; align-self: flex-start; }

@media (max-width: 860px) {
  .pricing-grid { grid-template-columns: 1fr; }
  .hero-type__foot { flex-direction: column; align-items: flex-start; }
}

/* ==========================================================================
   Reduced motion
   Scoped deliberately: the marquee and cloud stop, page stays fully legible.
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  /* NOTE: the marquee is deliberately NOT stopped here. It is a core brand
     element and was requested to keep moving regardless of the OS setting.
     To restore the accessible behaviour, add:
       .marquee__track, .marquee__track .dot { animation: none; }          */
  #chatToggle { animation: none; }
  .scroll-cue i::after { animation: none; }
  .manifesto__text .w { color: var(--ink) !important; }
  .turn, .demo-msg { opacity: 1 !important; }
}
