/* ==========================================================================
   CapeFlow Plumbing — concept site
   Art direction: Atlantic ink, limestone paper, copper, aqua.
   Type: Fraunces (display) + Archivo (sans). Icons: inline SVG sprite.
   ========================================================================== */

@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-latin-var.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
  font-optical-sizing: auto;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-latin-italic-var.woff2") format("woff2");
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
  font-optical-sizing: auto;
}
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin-var.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #07171c;
  --ink-2: #0b2026;
  --ink-3: #102b32;
  --ink-4: #16373f;
  --paper: #f3ede2;
  --paper-2: #e9e0d0;
  --paper-3: #faf6ee;
  --sage: #dfe4d9;
  --copper: #c47b4b;
  --copper-2: #e3a172;
  --copper-3: #8f4f2d;
  --aqua: #8fd9c8;
  --aqua-deep: #2f7d72;
  --text: #142a2f;
  --muted: #5d6c68;
  --muted-dark: #a3b3af;
  --line: rgba(20, 42, 47, .14);
  --line-dark: rgba(243, 237, 226, .15);
  --white: #fffdf8;
  --shadow: 0 30px 80px rgba(3, 12, 14, .16);
  --shadow-dark: 0 40px 100px rgba(0, 0, 0, .45);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --shell: 1320px;
  --shell-pad: clamp(1.25rem, 5vw, 4rem);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6.5rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9990;
  pointer-events: none;
  opacity: .028;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

::selection { background: var(--copper); color: var(--ink); }

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
h1, h2, h3, h4, p, figure, blockquote { margin: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.025em;
  color: inherit;
  font-optical-sizing: auto;
}
h1 em, h2 em, h3 em {
  font-style: italic;
  font-weight: 400;
  color: var(--copper-3);
}

:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 3px;
}
.section--ink :focus-visible,
.contact :focus-visible { outline-color: var(--aqua); }

.shell {
  width: min(calc(100% - var(--shell-pad) - var(--shell-pad)), var(--shell));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: -6rem;
  z-index: 1000;
  background: var(--paper);
  color: var(--ink);
  padding: .7rem 1rem;
  border-radius: .4rem;
  font-size: .8rem;
  font-weight: 600;
  text-decoration: none;
  transition: top .2s;
}
.skip-link:focus { top: 1rem; }

.icon {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.icon--fill { fill: currentColor; stroke: none; }

.mono {
  display: block;
  font-family: var(--font-mono);
  font-size: .6rem;
  line-height: 1.4;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

.pulse-dot {
  display: inline-block;
  width: .45rem;
  height: .45rem;
  border-radius: 50%;
  background: var(--aqua-deep);
  box-shadow: 0 0 0 4px rgba(47, 125, 114, .14);
  flex: none;
  animation: pulse 2.6s ease-in-out infinite;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: .7rem;
  font-family: var(--font-mono);
  font-size: .64rem;
  line-height: 1.5;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before {
  content: "";
  width: 1.8rem;
  height: 1px;
  background: var(--copper);
  flex: none;
}
.eyebrow span { color: var(--copper-3); font-weight: 700; }
.section--ink .eyebrow { color: var(--muted-dark); }
.section--ink .eyebrow span { color: var(--copper-2); }

.lead {
  font-size: clamp(1.05rem, 1.25vw, 1.2rem);
  line-height: 1.65;
  color: var(--muted);
  max-width: 36rem;
}
.lead--dark { color: var(--muted-dark); }

.fineprint {
  font-family: var(--font-mono);
  font-size: .66rem;
  line-height: 1.6;
  letter-spacing: .02em;
  color: var(--muted);
}
.section--ink .fineprint { color: var(--muted-dark); }

/* Buttons ------------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 3rem;
  padding: .75rem 1.3rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: .86rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: .01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform .25s var(--ease), background .25s, color .25s, border-color .25s, box-shadow .25s;
}
.btn .icon { width: 1rem; height: 1rem; transition: transform .25s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }

.btn-primary {
  background: var(--copper);
  border-color: var(--copper);
  color: var(--ink);
}
.btn-primary:hover {
  background: var(--copper-2);
  border-color: var(--copper-2);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(196, 123, 75, .28);
}
.btn-dark { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn-dark:hover { background: var(--ink-2); border-color: var(--ink-2); transform: translateY(-2px); }
.btn-ghost { background: rgba(243, 237, 226, .03); border-color: var(--line-dark); color: var(--paper); }
.btn-ghost:hover { background: rgba(243, 237, 226, .09); border-color: rgba(243, 237, 226, .32); }
.btn-outline { background: transparent; border-color: rgba(20, 42, 47, .28); color: var(--ink); }
.btn-outline:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn-whatsapp { background: #1f7a5c; border-color: #1f7a5c; color: #fff; }
.btn-whatsapp:hover { background: #176249; border-color: #176249; transform: translateY(-1px); }
.btn-sm, .btn-small { min-height: 2.5rem; padding: .55rem 1rem; font-size: .76rem; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding-bottom: .2rem;
  border-bottom: 1px solid var(--copper);
  color: var(--ink);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .01em;
  text-decoration: none;
  transition: gap .25s var(--ease), color .25s;
}
.text-link .icon { width: .95rem; height: .95rem; color: var(--copper-3); }
.text-link:hover { gap: .8rem; color: var(--copper-3); }
.section--ink .text-link { color: var(--paper); }
.section--ink .text-link .icon { color: var(--copper-2); }
.section--ink .text-link:hover { color: var(--copper-2); }

/* Demo bar ----------------------------------------------------------------- */
.demo-bar {
  position: relative;
  z-index: 110;
  background: var(--ink);
  border-bottom: 1px solid rgba(243, 237, 226, .06);
  color: var(--muted-dark);
  font-family: var(--font-mono);
  font-size: .59rem;
  line-height: 1.4;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.demo-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 2.2rem;
  padding-block: .42rem;
}
.demo-bar p { display: flex; align-items: center; gap: .55rem; }
.demo-dot {
  width: .4rem;
  height: .4rem;
  border-radius: 50%;
  background: var(--copper);
  box-shadow: 0 0 0 3px rgba(196, 123, 75, .14);
  flex: none;
}
.demo-tag { color: var(--copper-2); white-space: nowrap; }

/* Header ------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 23, 28, .9);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
  backdrop-filter: blur(18px) saturate(120%);
  border-bottom: 1px solid var(--line-dark);
  color: var(--paper);
  transition: background .3s, box-shadow .3s;
}
.site-header.is-scrolled {
  background: rgba(7, 23, 28, .98);
  box-shadow: 0 14px 44px rgba(0, 0, 0, .26);
}
.header-inner {
  position: relative;
  z-index: 102;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: 4.6rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  flex: none;
  color: var(--paper);
  text-decoration: none;
}
.brand-mark { width: 2.3rem; height: 2.3rem; color: var(--copper-2); }
.brand-text strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  line-height: .95;
  letter-spacing: -.02em;
}
.brand-text small {
  display: block;
  margin-top: .32rem;
  color: var(--muted-dark);
  font-family: var(--font-mono);
  font-size: .48rem;
  line-height: 1;
  letter-spacing: .17em;
  text-transform: uppercase;
}
.site-nav ul {
  display: flex;
  align-items: center;
  gap: clamp(.8rem, 1.8vw, 1.55rem);
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav a:not(.btn) {
  position: relative;
  display: inline-block;
  padding: .3rem 0;
  color: rgba(243, 237, 226, .78);
  font-size: .81rem;
  font-weight: 500;
  text-decoration: none;
  transition: color .2s;
}
.site-nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--copper-2);
  transition: width .25s var(--ease);
}
.site-nav a:not(.btn):hover { color: var(--paper); }
.site-nav a:not(.btn):hover::after { width: 100%; }
.nav-cta { margin-left: .2rem; }
.nav-foot { display: none; }

.brand, .menu-toggle { position: relative; z-index: 103; }
.menu-toggle {
  display: none;
  align-items: center;
  gap: .6rem;
  padding: .5rem .8rem;
  background: transparent;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: .6rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
}
.menu-lines { display: grid; gap: 4px; width: 1rem; }
.menu-lines span { display: block; height: 1.5px; background: currentColor; transition: transform .3s var(--ease); }
.menu-toggle[aria-expanded="true"] .menu-lines span:first-child { transform: translateY(2.75px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-lines span:last-child { transform: translateY(-2.75px) rotate(-45deg); }

@media (max-width: 1100px) {
  .menu-toggle { display: inline-flex; }
  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 101;
    display: block;
    height: 100dvh;
    padding: 7.6rem var(--shell-pad) 2rem;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--ink);
    transform: translateY(-105%);
    visibility: hidden;
    transition: transform .45s var(--ease), visibility .45s;
  }
  /* A backdrop-filter on the header would make it the containing block for
     this fixed menu. Remove it while the menu is open so the overlay fills
     the viewport instead of only the header strip. */
  body.nav-open .site-header {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  body.nav-open .chat-toggle {
    opacity: 0;
    pointer-events: none;
  }
  body.nav-open .mobile-bar { transform: translateY(110%); }
  .site-nav.open { transform: none; visibility: visible; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
  .site-nav li { border-bottom: 1px solid var(--line-dark); }
  .site-nav a:not(.btn) {
    display: block;
    padding: .92rem 0;
    color: var(--paper);
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 6vw, 2.2rem);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -.02em;
  }
  .site-nav a:not(.btn)::after { display: none; }
  .nav-cta { border-bottom: 0 !important; margin-top: 1.4rem; }
  .nav-cta .btn { width: 100%; min-height: 3.3rem; }
  .nav-foot {
    display: block;
    margin-top: 1.8rem;
    padding-top: 1.4rem;
    border-top: 1px solid var(--line-dark);
  }
  .nav-foot-label {
    margin-bottom: .5rem;
    color: var(--muted-dark);
    font-family: var(--font-mono);
    font-size: .58rem;
    letter-spacing: .14em;
    text-transform: uppercase;
  }
  .nav-foot-phone {
    display: block;
    color: var(--paper);
    font-family: var(--font-display);
    font-size: 1.75rem;
    line-height: 1.2;
    text-decoration: none;
  }
  .nav-foot-mail { display: inline-block; margin-top: .25rem; color: var(--copper-2); font-size: .88rem; text-decoration: none; }
  .nav-foot-note { margin-top: .75rem; color: var(--muted-dark); font-size: .7rem; }
  body.nav-open { overflow: hidden; }
}
/* Hero --------------------------------------------------------------------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: calc(100svh - 6.8rem);
  padding: clamp(3.2rem, 7vh, 6rem) 0 clamp(4.8rem, 8vh, 7rem);
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
}
.hero-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 74% 18%, rgba(196, 123, 75, .19), transparent 55%),
    radial-gradient(ellipse at 6% 88%, rgba(47, 125, 114, .3), transparent 56%),
    linear-gradient(160deg, #07171c 0%, #0a2027 54%, #061419 100%);
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(243, 237, 226, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(243, 237, 226, .045) 1px, transparent 1px);
  background-size: 86px 86px;
  mask-image: radial-gradient(ellipse at 64% 45%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse at 64% 45%, #000 0%, transparent 72%);
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .45;
}
.hero-orb-a { width: 38rem; height: 38rem; right: -14rem; top: -18rem; background: #7b3f22; opacity: .22; }
.hero-orb-b { width: 34rem; height: 34rem; left: -16rem; bottom: -20rem; background: #2f7d72; opacity: .32; }
.hero-orb-c { width: 18rem; height: 18rem; left: 46%; top: 34%; background: #c47b4b; opacity: .1; }
.hero-grid { position: absolute; inset: 0; }

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, .84fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5.5rem);
}
.hero-copy { max-width: 47rem; }
.hero-kicker {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin-bottom: 1.5rem;
  color: var(--muted-dark);
  font-family: var(--font-mono);
  font-size: .62rem;
  line-height: 1.4;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.hero-kicker .pulse-dot { background: var(--aqua); box-shadow: 0 0 0 4px rgba(143, 217, 200, .12); }
.hero h1 {
  font-size: clamp(3.4rem, 7.4vw, 7.05rem);
  line-height: .9;
  letter-spacing: -.04em;
  text-wrap: balance;
}
.hero h1 em { color: var(--copper-2); }
.hero-lead {
  max-width: 34rem;
  margin-top: 1.7rem;
  color: #c6d3cf;
  font-size: clamp(1rem, 1.2vw, 1.13rem);
  line-height: 1.7;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 2.1rem; }
.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
  margin: 2.7rem 0 0;
  padding: 1.4rem 0 0;
  border-top: 1px solid var(--line-dark);
  list-style: none;
}
.hero-proof strong {
  display: block;
  color: var(--paper);
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.6vw, 1.45rem);
  font-weight: 500;
  line-height: 1.1;
}
.hero-proof span {
  display: block;
  margin-top: .35rem;
  color: var(--muted-dark);
  font-size: .72rem;
  line-height: 1.45;
}
.hero-proof em { font-style: normal; opacity: .7; }

/* Instrument panel --------------------------------------------------------- */
.hero-panel-wrap {
  position: relative;
  justify-self: end;
  width: min(100%, 28.5rem);
}
.instrument {
  position: relative;
  padding: 1rem;
  overflow: hidden;
  border: 1px solid rgba(243, 237, 226, .18);
  border-radius: 1.5rem;
  background: linear-gradient(158deg, rgba(16, 43, 50, .96), rgba(7, 23, 28, .985));
  box-shadow: var(--shadow-dark);
}
.instrument::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 36%, rgba(47, 125, 114, .22), transparent 58%);
  pointer-events: none;
}
.instrument::after {
  content: "";
  position: absolute;
  inset: .55rem;
  border: 1px solid rgba(243, 237, 226, .055);
  border-radius: 1.1rem;
  pointer-events: none;
}
.instrument-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.instrument-head .mono { color: var(--muted-dark); }
.live {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: var(--aqua);
  font-family: var(--font-mono);
  font-size: .55rem;
  line-height: 1.2;
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
}
.live i {
  width: .4rem;
  height: .4rem;
  border-radius: 50%;
  background: var(--aqua);
  box-shadow: 0 0 0 4px rgba(143, 217, 200, .12);
  animation: pulse 2.6s ease-in-out infinite;
}
.instrument-art { position: relative; z-index: 1; margin: .55rem -.35rem .2rem; }
.valve-svg { width: 100%; height: auto; }
.instrument-foot {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .6rem;
  padding-top: .95rem;
  border-top: 1px solid var(--line-dark);
}
.instrument-foot .mono { color: var(--muted-dark); font-size: .5rem; letter-spacing: .11em; }
.instrument-foot strong {
  display: block;
  margin-top: .25rem;
  color: var(--paper);
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2vw, 1.65rem);
  font-weight: 500;
  line-height: 1;
}
.instrument-foot small {
  margin-left: .15rem;
  color: var(--muted-dark);
  font-family: var(--font-mono);
  font-size: .5rem;
  font-weight: 400;
  letter-spacing: .04em;
}

.hero-seal {
  position: absolute;
  top: -2.8rem;
  right: -2rem;
  z-index: 3;
  width: 8.4rem;
  height: 8.4rem;
  color: var(--copper-2);
  filter: drop-shadow(0 14px 30px rgba(0, 0, 0, .4));
}
.hero-seal svg { width: 100%; height: 100%; }
.seal-ring {
  transform-origin: 90px 90px;
  animation: spin 34s linear infinite;
}
.hero-coord {
  position: absolute;
  left: -2.5rem;
  bottom: 2.6rem;
  color: var(--muted-dark);
  font-family: var(--font-mono);
  font-size: .52rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  opacity: .65;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 1.1rem;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .55rem;
  color: var(--muted-dark);
  font-family: var(--font-mono);
  font-size: .52rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  transform: translateX(-50%);
}
.scroll-cue i {
  position: relative;
  display: block;
  width: 1px;
  height: 2.1rem;
  overflow: hidden;
  background: rgba(243, 237, 226, .16);
}
.scroll-cue i::after {
  content: "";
  position: absolute;
  left: 0;
  top: -100%;
  width: 1px;
  height: 100%;
  background: var(--aqua);
  animation: scrollLine 2.6s var(--ease) infinite;
}

.hero [data-hero] {
  animation: heroRise .9s var(--ease) both;
  animation-delay: calc(.1s + var(--i, 0) * .08s);
}

/* Ticker ------------------------------------------------------------------- */
.ticker {
  position: relative;
  z-index: 3;
  overflow: hidden;
  border-block: 1px solid rgba(7, 23, 28, .16);
  background: var(--copper);
  color: var(--ink);
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: marquee 36s linear infinite;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-group { display: flex; align-items: center; padding: .95rem 0; }
.ticker-group span {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.8vw, 1.45rem);
  font-style: italic;
  letter-spacing: -.01em;
}
.ticker-group span::after {
  content: "";
  width: .38rem;
  height: .38rem;
  margin: 0 1.5rem;
  background: var(--ink);
  opacity: .5;
  transform: rotate(45deg);
}

@keyframes pulse {
  0%, 100% { opacity: .75; transform: scale(.92); }
  50% { opacity: 1; transform: scale(1.08); }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes heroRise {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: none; }
}
@keyframes scrollLine {
  0% { top: -100%; }
  55%, 100% { top: 100%; }
}
@keyframes flow { to { stroke-dashoffset: -40; } }
@keyframes drip {
  0% { transform: translateY(0); opacity: 0; }
  18% { opacity: .9; }
  70% { opacity: .8; }
  100% { transform: translateY(34px); opacity: 0; }
}
.flow { stroke-dashoffset: 0; animation: flow 3.2s linear infinite; }
.drip { animation: drip 3.4s ease-in infinite; }
.drip.d2 { animation-delay: 1.7s; }

@media (max-width: 980px) {
  .hero { min-height: 0; padding-top: 3.4rem; padding-bottom: 4.6rem; }
  .hero-inner { grid-template-columns: 1fr; gap: 3.4rem; }
  .hero-copy { max-width: 42rem; }
  .hero-panel-wrap { justify-self: start; width: min(100%, 30rem); }
  .hero-seal { top: -2.1rem; right: -1.1rem; width: 7rem; height: 7rem; }
  .hero-coord { display: none; }
  .scroll-cue { display: none; }
}
@media (max-width: 620px) {
  .hero h1 { font-size: clamp(3rem, 14.5vw, 4.3rem); }
  .hero-lead { margin-top: 1.3rem; }
  .hero-actions { margin-top: 1.7rem; }
  .hero-actions .btn { flex: 1 1 auto; }
  .hero-proof { grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2.1rem; }
  .hero-proof li:last-child { grid-column: 1 / -1; }
  .hero-panel-wrap { width: 100%; }
  .instrument { border-radius: 1.2rem; }
  .hero-seal { width: 5.8rem; height: 5.8rem; top: -1.6rem; right: -.4rem; }
  .instrument-foot strong { font-size: 1.22rem; }
  .scroll-cue { display: none; }
}
/* Sections ----------------------------------------------------------------- */
.section { position: relative; padding: clamp(4.5rem, 9vw, 8rem) 0; }
.section--paper { background: var(--paper); color: var(--text); }
.section--paper-2 { background: var(--paper-2); color: var(--text); }
.section--paper-3 { background: var(--paper-3); color: var(--text); }
.section--ink { background: var(--ink); color: var(--paper); }
.section--sage { background: var(--sage); color: var(--text); }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  align-items: end;
  gap: clamp(1.5rem, 6vw, 5rem);
  margin-bottom: clamp(2.6rem, 5vw, 4.2rem);
}
.section-title h2 {
  margin-top: 1rem;
  font-size: clamp(2.5rem, 4.55vw, 4.45rem);
  line-height: .94;
  letter-spacing: -.035em;
}
.section-side {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.15rem;
  padding-bottom: .35rem;
}
.section-intro { max-width: 28rem; color: var(--muted); font-size: .98rem; line-height: 1.65; }
.section--ink .section-intro { color: var(--muted-dark); }
.section--ink h2 em { color: var(--copper-2); }

.price-chip {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .45rem .7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper-3);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: .57rem;
  line-height: 1.3;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.price-chip .icon { width: .85rem; height: .85rem; color: var(--copper-3); }
.price-chip em { font-style: normal; color: var(--muted); }
.sample-tag {
  display: inline-block;
  padding: .4rem .65rem;
  border: 1px dashed var(--line);
  border-radius: .35rem;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: .55rem;
  line-height: 1.3;
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* Services ----------------------------------------------------------------- */
.services { background: var(--paper); }
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1.4rem;
  background: var(--line);
}
.service-card {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.4rem;
  min-height: 16.5rem;
  padding: clamp(1.3rem, 2.2vw, 1.9rem);
  overflow: hidden;
  background: var(--paper-3);
  transition: background .4s, color .4s;
}
.service-card:hover { background: var(--ink); color: var(--paper); }
.service-card--feature {
  grid-column: span 2;
  grid-row: span 2;
  min-height: 33rem;
  background: var(--ink);
  color: var(--paper);
}
.service-card--feature:hover { background: var(--ink-2); }
.service-card--feature::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(143, 217, 200, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143, 217, 200, .055) 1px, transparent 1px);
  background-size: 34px 34px;
  -webkit-mask-image: radial-gradient(ellipse at 72% 28%, #000 0%, transparent 66%);
  mask-image: radial-gradient(ellipse at 72% 28%, #000 0%, transparent 66%);
  pointer-events: none;
}
.service-card--feature::after {
  content: "01";
  position: absolute;
  top: -1.8rem;
  right: 1rem;
  z-index: 0;
  color: transparent;
  font-family: var(--font-display);
  font-size: clamp(9rem, 15vw, 15rem);
  line-height: .8;
  letter-spacing: -.07em;
  -webkit-text-stroke: 1px rgba(143, 217, 200, .14);
  pointer-events: none;
  transition: transform .7s var(--ease), opacity .4s;
}
.service-card--feature:hover::after { transform: translateY(-8px); -webkit-text-stroke-color: rgba(143, 217, 200, .2); }
.service-top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}
.service-num {
  color: var(--copper-3);
  font-family: var(--font-mono);
  font-size: .6rem;
  letter-spacing: .1em;
}
.service-card:hover .service-num,
.service-card--feature .service-num { color: var(--copper-2); }
.service-icon {
  display: grid;
  place-items: center;
  width: 2.8rem;
  height: 2.8rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--copper-3);
  transition: border-color .4s, color .4s, transform .4s var(--ease);
}
.service-icon .icon { width: 1.25rem; height: 1.25rem; }
.service-card:hover .service-icon {
  border-color: var(--line-dark);
  color: var(--copper-2);
  transform: rotate(-8deg);
}
.service-card--feature .service-icon { border-color: var(--line-dark); color: var(--copper-2); }
.service-body { position: relative; z-index: 2; max-width: 22rem; }
.service-body h3 { margin-bottom: .55rem; font-size: clamp(1.3rem, 1.9vw, 1.55rem); line-height: 1.05; }
.service-body p { color: var(--muted); font-size: .87rem; line-height: 1.55; transition: color .4s; }
.service-card:hover .service-body p { color: var(--muted-dark); }
.service-card--feature .service-body { max-width: 27rem; }
.service-card--feature .service-body h3 { margin-bottom: .8rem; font-size: clamp(2.2rem, 4vw, 3.35rem); line-height: .95; }
.service-card--feature .service-body p { color: var(--muted-dark); font-size: .98rem; }
.service-link {
  position: absolute;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  text-decoration: none;
  transition: background .35s, border-color .35s, color .35s, transform .35s var(--ease);
}
.service-link .icon { width: 1rem; height: 1rem; }
.service-card:hover .service-link {
  border-color: var(--copper);
  background: var(--copper);
  color: var(--ink);
  transform: rotate(-45deg);
}
.service-card--feature .service-link { border-color: var(--line-dark); color: var(--paper); }
.service-card--feature:hover .service-link { border-color: var(--copper); background: var(--copper); color: var(--ink); }
.feature-doodle {
  position: absolute;
  right: -2.2rem;
  bottom: -1.4rem;
  z-index: 1;
  width: 18rem;
  color: var(--aqua);
  opacity: .26;
  transition: transform .6s var(--ease), opacity .4s;
}
.service-card--feature:hover .feature-doodle { transform: translateY(-8px); opacity: .34; }
.service-fineprint { max-width: 46rem; margin-top: 1.3rem; }

/* Process ------------------------------------------------------------------ */
.process { background: var(--ink); }
.process-grid {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  align-items: start;
  gap: clamp(2rem, 7vw, 6rem);
}
.process-lead {
  position: sticky;
  top: 7rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
}
.process-note {
  display: flex;
  gap: .8rem;
  align-items: flex-start;
  max-width: 22rem;
  padding: 1rem 0;
  border-block: 1px solid var(--line-dark);
}
.process-note .pulse-dot { margin-top: .4rem; background: var(--aqua); box-shadow: 0 0 0 4px rgba(143, 217, 200, .1); }
.process-note strong { display: block; color: var(--paper); font-size: .85rem; font-weight: 600; }
.process-note span { display: block; margin-top: .15rem; color: var(--muted-dark); font-size: .76rem; line-height: 1.5; }
.steps { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line-dark); }
.steps li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 1.4rem;
  align-items: start;
  padding: 2rem 0;
  border-bottom: 1px solid var(--line-dark);
}
.step-num {
  color: transparent;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  line-height: 1;
  -webkit-text-stroke: 1px var(--copper);
}
.steps h3 { margin-bottom: .4rem; font-size: clamp(1.35rem, 2vw, 1.7rem); }
.steps p { max-width: 28rem; color: var(--muted-dark); font-size: .89rem; line-height: 1.6; }
.step-icon {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  color: var(--copper-2);
}
.step-icon .icon { width: 1.05rem; height: 1.05rem; }
.promise-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 3.5rem;
  overflow: hidden;
  border: 1px solid var(--line-dark);
  border-radius: 1.2rem;
  background: var(--line-dark);
}
.promise-bar > div { display: flex; gap: .9rem; padding: 1.4rem; background: var(--ink-2); }
.promise-bar .icon { width: 1.5rem; height: 1.5rem; margin-top: .1rem; color: var(--copper-2); }
.promise-bar strong { display: block; margin-bottom: .25rem; font-family: var(--font-display); font-size: 1.08rem; font-weight: 500; line-height: 1.2; }
.promise-bar p { color: var(--muted-dark); font-size: .76rem; line-height: 1.5; }
.promise-bar em { font-style: normal; opacity: .7; }

/* About -------------------------------------------------------------------- */
.about { background: var(--paper); }
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
  align-items: center;
  gap: clamp(2.5rem, 6vw, 6rem);
}
.about-copy h2 { margin-top: 1rem; font-size: clamp(2.5rem, 4.6vw, 4.4rem); line-height: .96; letter-spacing: -.035em; }
.about-copy .lead { margin-top: 1.3rem; }
.about-copy > p:not(.eyebrow):not(.lead) { max-width: 34rem; margin-top: 1rem; color: var(--muted); font-size: .94rem; }
.checks { display: grid; gap: .8rem; margin: 2rem 0 0; padding: 0; list-style: none; }
.checks li { display: flex; gap: .7rem; align-items: flex-start; color: var(--text); font-size: .86rem; }
.checks .icon { width: 1.05rem; height: 1.05rem; margin-top: .25rem; color: var(--copper-3); }
.checks em { font-style: normal; color: var(--muted); }
.about-sign { display: flex; align-items: center; gap: .8rem; margin-top: 2.2rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.about-sign-mark { width: 2.2rem; height: 2.2rem; color: var(--copper-3); }
.about-sign strong { display: block; font-family: var(--font-display); font-size: 1.05rem; font-weight: 500; }
.about-sign small { display: block; margin-top: .2rem; color: var(--muted); font-family: var(--font-mono); font-size: .55rem; letter-spacing: .12em; text-transform: uppercase; }
.about-figure { position: relative; z-index: 1; margin: 0; }
.about-figure::before {
  content: "";
  position: absolute;
  inset: 1.1rem -1.1rem -1.1rem 1.1rem;
  z-index: -1;
  border: 1px solid var(--copper);
  border-radius: 18rem 18rem 1.2rem 1.2rem;
  opacity: .55;
}
.arch-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18rem 18rem 1.2rem 1.2rem;
  background: var(--paper-2);
  box-shadow: var(--shadow);
}
.arch-frame img { width: 100%; height: 100%; object-fit: cover; }
.about-figure figcaption { margin-top: .9rem; color: var(--muted); font-family: var(--font-mono); font-size: .57rem; line-height: 1.5; letter-spacing: .03em; }
.about-figure figcaption em { font-style: normal; opacity: .7; }
.about-badge {
  position: absolute;
  left: -1.4rem;
  bottom: 3.4rem;
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .9rem 1rem;
  border: 1px solid var(--line-dark);
  border-radius: .8rem;
  background: var(--ink);
  color: var(--paper);
  box-shadow: var(--shadow);
}
.about-badge .icon { width: 1.4rem; height: 1.4rem; color: var(--copper-2); }
.about-badge span { display: block; color: var(--muted-dark); font-family: var(--font-mono); font-size: .5rem; letter-spacing: .12em; text-transform: uppercase; }
.about-badge strong { display: block; margin-top: .15rem; font-family: var(--font-display); font-size: .95rem; font-weight: 500; }

/* Areas -------------------------------------------------------------------- */
.areas { background: var(--sage); }
.areas-grid {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
}
.area-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}
.area-list li {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  line-height: 1.2;
}
.area-list span { color: var(--copper-3); font-family: var(--font-mono); font-size: .54rem; letter-spacing: .1em; }
.areas-note {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.2rem;
  margin-top: 1.6rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}
.areas-note strong { display: block; font-size: .84rem; }
.areas-note p { max-width: 18rem; margin-top: .25rem; color: var(--muted); font-size: .77rem; line-height: 1.5; }
.map-card {
  padding: 1rem;
  border-radius: 1.4rem;
  background: var(--ink);
  color: var(--paper);
  box-shadow: var(--shadow);
}
.map-head, .map-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .2rem .25rem; }
.map-head .mono { color: var(--muted-dark); font-size: .54rem; }
.map-canvas {
  position: relative;
  aspect-ratio: 9 / 7;
  margin: .8rem 0;
  overflow: hidden;
  border-radius: .9rem;
  background: var(--ink-2);
}
.map-svg { width: 100%; height: 100%; }
.map-pin {
  position: absolute;
  left: var(--x);
  top: var(--y);
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .22rem .4rem;
  border-radius: .25rem;
  background: rgba(7, 23, 28, .66);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: .49rem;
  line-height: 1.2;
  letter-spacing: .05em;
  text-transform: uppercase;
  white-space: nowrap;
  transform: translate(-50%, -50%);
}
.map-pin::before {
  content: "";
  width: .45rem;
  height: .45rem;
  border-radius: 50%;
  background: var(--copper-2);
  box-shadow: 0 0 0 4px rgba(227, 161, 114, .15), 0 0 16px rgba(227, 161, 114, .55);
  flex: none;
}
.map-pin--main { border: 1px solid rgba(143, 217, 200, .25); color: var(--aqua); }
.map-pin--main::before { background: var(--aqua); box-shadow: 0 0 0 4px rgba(143, 217, 200, .14), 0 0 16px rgba(143, 217, 200, .55); }
.map-foot { color: var(--muted-dark); font-family: var(--font-mono); font-size: .49rem; letter-spacing: .06em; }

/* Section responsive ------------------------------------------------------- */
@media (max-width: 1000px) {
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-card--feature { grid-column: span 2; grid-row: auto; min-height: 26rem; }
  .process-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .process-lead { position: static; max-width: 38rem; }
  .about-grid { grid-template-columns: 1fr; gap: 3.5rem; }
  .about-figure { width: min(100%, 32rem); }
  .areas-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .map-card { width: 100%; }
}
@media (max-width: 900px) {
  .section-head { grid-template-columns: 1fr; align-items: start; gap: 1.5rem; }
  .section-side { max-width: 36rem; }
  .promise-bar { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .service-grid { grid-template-columns: 1fr; border-radius: 1rem; }
  .service-card--feature { grid-column: span 1; min-height: 23rem; }
  .service-card { min-height: 13.5rem; }
  .feature-doodle { width: 13rem; opacity: .2; }
  .service-card--feature .service-body h3 { font-size: 2.3rem; }
  .steps li { grid-template-columns: auto minmax(0, 1fr); }
  .step-icon { display: none; }
  .step-num { font-size: 2.2rem; }
  .about-figure::before { inset: .8rem -.8rem -.8rem .8rem; }
  .about-badge { left: -.5rem; bottom: 2rem; }
  .area-list { grid-template-columns: 1fr; }
  .areas-note { align-items: flex-start; flex-direction: column; }
  .map-pin { font-size: .42rem; padding: .18rem .3rem; }
  .map-pin--minor { display: none; }
  .promise-bar > div { padding: 1.1rem; }
}
/* Work / compare ----------------------------------------------------------- */
.work { background: var(--ink); }
.work-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr);
  align-items: start;
  gap: clamp(2rem, 5vw, 4rem);
}
.compare-shell { min-width: 0; }
.compare {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid var(--line-dark);
  border-radius: 1.2rem;
  background: var(--ink-2);
  box-shadow: var(--shadow-dark);
  --pos: 50%;
}
.compare img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  pointer-events: none;
}
.compare-before {
  position: absolute;
  inset: 0;
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
  will-change: clip-path;
}
.compare-tag {
  position: absolute;
  top: 1rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  padding: .35rem .6rem;
  border-radius: .3rem;
  background: rgba(7, 23, 28, .7);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: .5rem;
  line-height: 1.2;
  letter-spacing: .14em;
  text-transform: uppercase;
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}
.compare-tag--before { left: 1rem; }
.compare-tag--after { right: 1rem; color: var(--aqua); }
.compare-handle {
  position: absolute;
  left: var(--pos);
  top: 0;
  bottom: 0;
  z-index: 3;
  width: 1px;
  background: rgba(243, 237, 226, .85);
  transform: translateX(-.5px);
  pointer-events: none;
}
.compare-handle span {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 3.1rem;
  height: 3.1rem;
  border: 1px solid rgba(7, 23, 28, .2);
  border-radius: 50%;
  background: var(--paper);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
  transform: translate(-50%, -50%);
}
.compare-handle span::before,
.compare-handle span::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 0;
  height: 0;
  border-block: 4px solid transparent;
  transform: translateY(-50%);
}
.compare-handle span::before { left: .65rem; border-right: 6px solid var(--ink); }
.compare-handle span::after { right: .65rem; border-left: 6px solid var(--ink); }
.compare input {
  position: absolute;
  inset: 0;
  z-index: 5;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
}
.compare input::-webkit-slider-thumb { -webkit-appearance: none; width: 3rem; height: 3rem; }
.compare input::-moz-range-thumb { width: 3rem; height: 3rem; border: 0; background: transparent; }
.compare-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .85rem .1rem 0;
  color: var(--muted-dark);
  font-family: var(--font-mono);
  font-size: .54rem;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.work-side { padding-top: .4rem; }
.work-side > .eyebrow { margin-bottom: 1.2rem; }
.work-checks { display: grid; gap: 0; margin: 0 0 1.6rem; padding: 0; list-style: none; border-top: 1px solid var(--line-dark); }
.work-checks li { display: flex; gap: .8rem; padding: .9rem 0; border-bottom: 1px solid var(--line-dark); }
.work-checks li > span { color: var(--copper-2); font-family: var(--font-mono); font-size: .52rem; line-height: 1.6; letter-spacing: .08em; }
.work-checks strong { display: block; color: var(--paper); font-size: .82rem; font-weight: 600; }
.work-checks p { margin-top: .15rem; color: var(--muted-dark); font-size: .74rem; line-height: 1.5; }
.work-badge {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: 1rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--line-dark);
  border-radius: .8rem;
  background: var(--ink-2);
}
.work-badge .icon { width: 1.5rem; height: 1.5rem; color: var(--copper-2); }
.work-badge strong { display: block; color: var(--paper); font-family: var(--font-display); font-size: 1.15rem; font-weight: 500; line-height: 1.1; }
.work-badge span { display: block; margin-top: .18rem; color: var(--muted-dark); font-size: .7rem; line-height: 1.4; }
.work-badge em { font-style: normal; opacity: .7; }

/* Reviews ------------------------------------------------------------------ */
.reviews { background: var(--paper); }
.review-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: start;
}
.review-card {
  position: relative;
  grid-column: 1 / span 5;
  padding: clamp(1.7rem, 3vw, 2.5rem);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1.2rem;
  background: var(--paper-3);
}
.review-card::before {
  content: "“";
  position: absolute;
  top: 1.2rem;
  right: 1.5rem;
  color: var(--copper);
  font-family: var(--font-display);
  font-size: 8rem;
  line-height: .7;
  opacity: .22;
  pointer-events: none;
}
.review-card--dark {
  grid-column: 7 / span 5;
  margin-top: 3.8rem;
  border-color: var(--line-dark);
  background: var(--ink);
  color: var(--paper);
}
.review-card--dark::before { color: var(--copper-2); opacity: .28; }
.review-stars { display: flex; gap: .18rem; margin-bottom: 1.4rem; color: var(--copper); }
.review-stars .icon { width: .95rem; height: .95rem; }
.review-card--dark .review-stars { color: var(--copper-2); }
.review-card blockquote {
  margin-bottom: 1.8rem;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.2vw, 1.95rem);
  line-height: 1.22;
  letter-spacing: -.02em;
}
.review-card figcaption { display: flex; align-items: center; gap: .75rem; }
.review-avatar {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--paper-2);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: .58rem;
  letter-spacing: .04em;
}
.review-card--dark .review-avatar { background: var(--ink-3); color: var(--paper); }
.review-card figcaption strong { display: block; font-size: .8rem; font-weight: 600; }
.review-card figcaption small { display: block; margin-top: .12rem; color: var(--muted); font-size: .7rem; }
.review-card--dark figcaption small { color: var(--muted-dark); }
.review-aside {
  grid-column: 2 / span 10;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-top: 1.2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.review-aside .eyebrow { width: 100%; }
.review-aside h3 { font-size: 1.55rem; }
.review-aside > p { flex: 1; min-width: 14rem; max-width: 27rem; color: var(--muted); font-size: .82rem; line-height: 1.55; }
.review-aside .btn { flex: none; }

/* FAQ ---------------------------------------------------------------------- */
.faq { background: var(--paper-3); }
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  align-items: start;
  gap: clamp(2rem, 6vw, 5rem);
}
.faq-aside { position: sticky; top: 7rem; }
.faq-aside h2 { margin-top: 1rem; font-size: clamp(2.5rem, 4.6vw, 4.3rem); line-height: .95; letter-spacing: -.035em; }
.faq-aside .lead { margin-top: 1.1rem; max-width: 25rem; }
.ask-card {
  position: relative;
  margin-top: 2rem;
  padding: 1.4rem;
  overflow: hidden;
  border-radius: 1rem;
  background: var(--ink);
  color: var(--paper);
}
.ask-card::after {
  content: "";
  position: absolute;
  right: -4rem;
  bottom: -5rem;
  width: 12rem;
  height: 12rem;
  border-radius: 50%;
  background: var(--aqua-deep);
  filter: blur(60px);
  opacity: .35;
  pointer-events: none;
}
.ask-kicker { position: relative; z-index: 1; color: var(--copper-2); font-family: var(--font-mono); font-size: .55rem; letter-spacing: .14em; text-transform: uppercase; }
.ask-card h3 { position: relative; z-index: 1; margin-top: .5rem; font-size: 1.4rem; }
.ask-card p { position: relative; z-index: 1; margin-top: .4rem; color: var(--muted-dark); font-size: .78rem; line-height: 1.5; max-width: 20rem; }
.ask-card .btn { position: relative; z-index: 1; margin-top: 1rem; }
.ask-call { position: relative; z-index: 1; display: flex; align-items: center; gap: .4rem; margin-top: .8rem; color: var(--muted-dark); font-size: .68rem; text-decoration: none; }
.ask-call .icon { width: .85rem; height: .85rem; color: var(--copper-2); }
.ask-call:hover { color: var(--paper); }

.faq-list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.35rem 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.7vw, 1.4rem);
  line-height: 1.25;
  letter-spacing: -.015em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--copper-3); }
.faq-plus {
  position: relative;
  display: block;
  width: 2.1rem;
  height: 2.1rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  flex: none;
  transition: background .25s, border-color .25s, transform .25s;
}
.faq-plus::before,
.faq-plus::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: .75rem;
  height: 1px;
  background: var(--ink);
  transform: translate(-50%, -50%);
  transition: transform .25s, opacity .25s;
}
.faq-plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq details[open] .faq-plus { border-color: var(--copper); background: var(--copper); }
.faq details[open] .faq-plus::after { opacity: 0; transform: translate(-50%, -50%) rotate(0deg); }
.faq-answer { padding: 0 3rem 1.4rem 0; }
.faq-answer p { color: var(--muted); font-size: .9rem; line-height: 1.65; max-width: 40rem; animation: answerIn .35s var(--ease); }
@keyframes answerIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

@media (max-width: 1000px) {
  .work-grid { grid-template-columns: 1fr; }
  .work-side { max-width: 42rem; }
  .faq-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .faq-aside { position: static; }
  .ask-card { max-width: 28rem; }
}
@media (max-width: 860px) {
  .review-card { grid-column: 1 / span 6; }
  .review-card--dark { grid-column: 7 / span 6; margin-top: 2.5rem; }
  .review-aside { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .compare { aspect-ratio: 4 / 3; border-radius: .9rem; }
  .compare-tag { top: .7rem; font-size: .45rem; }
  .compare-tag--before { left: .7rem; }
  .compare-tag--after { right: .7rem; }
  .compare-handle span { width: 2.6rem; height: 2.6rem; }
  .compare-caption { font-size: .48rem; }
  .review-card { grid-column: 1 / -1; }
  .review-card--dark { grid-column: 1 / -1; margin-top: 1.5rem; }
  .review-card blockquote { font-size: 1.45rem; }
  .review-aside { grid-column: 1 / -1; }
  .review-aside h3 { font-size: 1.35rem; }
  .faq summary { font-size: 1.1rem; }
  .faq-answer { padding-right: 0; }
}
/* Quote -------------------------------------------------------------------- */
.quote {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
}
.quote-glow {
  position: absolute;
  right: -16rem;
  bottom: -18rem;
  width: 48rem;
  height: 48rem;
  border-radius: 50%;
  background: var(--copper-3);
  opacity: .16;
  filter: blur(100px);
  pointer-events: none;
}
.quote::before {
  content: "";
  position: absolute;
  left: -12rem;
  top: -14rem;
  width: 36rem;
  height: 36rem;
  border-radius: 50%;
  background: var(--aqua-deep);
  opacity: .12;
  filter: blur(90px);
  pointer-events: none;
}
.quote-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: start;
  gap: clamp(2.5rem, 6vw, 5.5rem);
}
.quote-copy { position: sticky; top: 7rem; }
.quote-copy h2 { margin-top: 1rem; font-size: clamp(2.8rem, 5vw, 5rem); line-height: .93; letter-spacing: -.04em; }
.quote-copy .lead { margin-top: 1.3rem; max-width: 27rem; }
.quote-contact { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.9rem; }
.quote-contact a {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  padding: .65rem .9rem;
  border: 1px solid var(--line-dark);
  border-radius: .65rem;
  color: var(--paper);
  text-decoration: none;
  transition: border-color .25s, background .25s;
}
.quote-contact a:hover { border-color: rgba(243, 237, 226, .34); background: rgba(243, 237, 226, .05); }
.quote-contact .icon { width: 1.2rem; height: 1.2rem; color: var(--copper-2); }
.quote-contact small { display: block; color: var(--muted-dark); font-family: var(--font-mono); font-size: .48rem; line-height: 1.2; letter-spacing: .12em; text-transform: uppercase; }
.quote-contact span { display: block; font-size: .78rem; font-weight: 600; line-height: 1.3; }
.mini-steps { display: grid; gap: .55rem; margin: 2rem 0 0; padding: 1.4rem 0 0; border-top: 1px solid var(--line-dark); list-style: none; }
.mini-steps li { display: flex; align-items: center; gap: .7rem; color: var(--muted-dark); font-size: .78rem; }
.mini-steps span { color: var(--copper-2); font-family: var(--font-mono); font-size: .52rem; letter-spacing: .08em; }
.quote-copy .fineprint { max-width: 27rem; margin-top: 1.5rem; }

.quote-form {
  padding: clamp(1.4rem, 2.5vw, 2.1rem);
  border: 1px solid rgba(243, 237, 226, .2);
  border-radius: 1.25rem;
  background: var(--paper);
  color: var(--text);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .35);
}
.form-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: .9rem;
  margin-bottom: 1.3rem;
  border-bottom: 1px solid var(--line);
}
.form-head .mono { color: var(--muted); font-size: .55rem; }
.form-badge {
  padding: .3rem .55rem;
  border: 1px solid rgba(196, 123, 75, .35);
  border-radius: .3rem;
  background: rgba(196, 123, 75, .1);
  color: var(--copper-3);
  font-family: var(--font-mono);
  font-size: .5rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.field { display: grid; gap: .35rem; }
.field--full { grid-column: 1 / -1; }
.field label {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: .55rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: .78rem .85rem;
  border: 1px solid rgba(20, 42, 47, .22);
  border-radius: .55rem;
  background: var(--white);
  color: var(--text);
  font-size: .88rem;
  line-height: 1.4;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field textarea { min-height: 6.6rem; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: rgba(20, 42, 47, .38); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--copper);
  box-shadow: 0 0 0 3px rgba(196, 123, 75, .14);
  background: #fff;
}
.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.2rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23142a2f' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .85rem center;
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent {
  display: flex;
  align-items: flex-start;
  gap: .55rem;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: .72rem;
  line-height: 1.5;
  cursor: pointer;
}
.consent input { margin-top: .2rem; accent-color: var(--copper); flex: none; }
.consent a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.quote-form .actions { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1.1rem; }
.quote-form .actions .btn { flex: 1 1 auto; }
.q-status { min-height: 1.3rem; margin-top: .8rem; font-size: .78rem; font-weight: 600; line-height: 1.45; }
.q-status.ok { color: #1f6f52; }
.q-status.warn { color: #8a5a00; }
.q-status.error { color: #b42318; }
.q-status.info { color: var(--muted); }
.form-note { margin-top: .7rem; color: var(--muted); font-family: var(--font-mono); font-size: .56rem; line-height: 1.55; }
.quote-form .btn-outline { border-color: rgba(20, 42, 47, .22); }

/* Contact ------------------------------------------------------------------ */
.contact {
  position: relative;
  overflow: hidden;
  padding: clamp(4rem, 7vw, 6rem) 0;
  background: var(--copper);
  color: var(--ink);
}
.contact-watermark {
  position: absolute;
  right: -5rem;
  top: 50%;
  width: 34rem;
  height: 34rem;
  color: var(--ink);
  opacity: .08;
  transform: translateY(-50%) rotate(-12deg);
  pointer-events: none;
}
.contact-watermark svg { width: 100%; height: 100%; }
.contact .eyebrow { color: rgba(7, 23, 28, .7); }
.contact .eyebrow::before { background: var(--ink); }
.contact .eyebrow span { color: var(--ink); }
.contact-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: end;
  gap: clamp(2rem, 6vw, 5rem);
  margin-top: 1rem;
}
.contact h2 { font-size: clamp(2.7rem, 5vw, 4.8rem); line-height: .94; letter-spacing: -.04em; }
.contact h2 em {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-decoration-color: rgba(7, 23, 28, .35);
  text-underline-offset: .08em;
}
.contact-phone {
  display: inline-block;
  margin-top: 1rem;
  padding-bottom: .15rem;
  border-bottom: 2px solid rgba(7, 23, 28, .3);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 4rem);
  line-height: 1;
  letter-spacing: -.03em;
  text-decoration: none;
}
.contact-phone:hover { border-color: var(--ink); }
.contact-note { max-width: 22rem; margin-top: .8rem; color: rgba(7, 23, 28, .68); font-size: .76rem; line-height: 1.5; }
.contact-details { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem 1.5rem; font-style: normal; }
.contact-details div { padding-top: .65rem; border-top: 1px solid rgba(7, 23, 28, .25); }
.contact-details span {
  display: block;
  margin-bottom: .25rem;
  color: rgba(7, 23, 28, .6);
  font-family: var(--font-mono);
  font-size: .52rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.contact-details a, .contact-details div { color: var(--ink); font-size: .82rem; line-height: 1.45; }
.contact-details a { text-decoration: none; font-weight: 500; }
.contact-details a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Footer ------------------------------------------------------------------- */
.site-footer {
  padding: clamp(3rem, 6vw, 4.8rem) 0 1.4rem;
  background: #051318;
  color: var(--muted-dark);
  font-size: .8rem;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  padding-bottom: 2.8rem;
  border-bottom: 1px solid var(--line-dark);
}
.footer-brand .brand-mark { color: var(--copper-2); }
.footer-brand > p { max-width: 23rem; margin-top: 1.1rem; color: var(--muted-dark); font-size: .8rem; line-height: 1.6; }
.studio-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-top: 1.2rem;
  color: var(--copper-2);
  font-family: var(--font-mono);
  font-size: .55rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  text-decoration: none;
}
.studio-link .icon { width: .8rem; height: .8rem; }
.studio-link:hover { color: var(--paper); }
.footer-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.footer-cols h3 {
  margin-bottom: .8rem;
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: .55rem;
  font-weight: 400;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.footer-cols ul { display: grid; gap: .4rem; margin: 0; padding: 0; list-style: none; }
.footer-cols a { color: var(--muted-dark); font-size: .75rem; text-decoration: none; transition: color .2s; }
.footer-cols a:hover { color: var(--copper-2); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.3rem;
  color: rgba(163, 179, 175, .72);
  font-family: var(--font-mono);
  font-size: .55rem;
  line-height: 1.5;
  letter-spacing: .02em;
}
.footer-bottom > div { display: flex; gap: 1.2rem; }
.footer-bottom a { color: var(--paper); text-decoration: none; }
.footer-bottom a:hover { color: var(--copper-2); }
@media (min-width: 901px) {
  /* Leave room for the fixed chat button so it never covers the footer links. */
  body:not(.legal-page) .footer-bottom { padding-right: 10.5rem; }
}

@media (max-width: 1000px) {
  .quote-grid { grid-template-columns: 1fr; }
  .quote-copy { position: static; }
  .quote-form { max-width: 42rem; }
  .contact-grid { grid-template-columns: 1fr; align-items: start; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-cols { max-width: 38rem; }
}
@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; }
  .quote-form .actions { flex-direction: column; }
  .quote-form .actions .btn { width: 100%; }
  .contact-details { grid-template-columns: 1fr; }
  .contact-watermark { width: 22rem; height: 22rem; right: -8rem; }
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .footer-cols > div:last-child { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
/* Chat --------------------------------------------------------------------- */
.chat-toggle {
  position: fixed;
  right: clamp(1rem, 3vw, 1.6rem);
  bottom: clamp(1rem, 3vw, 1.6rem);
  z-index: 150;
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .4rem .9rem .4rem .4rem;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .32);
  cursor: pointer;
  transition: transform .25s var(--ease), border-color .25s, opacity .2s;
}
.chat-toggle:hover { border-color: var(--copper); transform: translateY(-3px); }
.chat-toggle[aria-expanded="true"] { opacity: 0; pointer-events: none; transform: scale(.9); }
.chat-toggle-icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--copper);
  color: var(--ink);
  flex: none;
}
.chat-toggle-icon svg { width: 1.65rem; height: 1.65rem; }
.chat-toggle-text { padding-right: .15rem; text-align: left; line-height: 1.05; }
.chat-toggle-text strong { display: block; font-family: var(--font-display); font-size: 1.02rem; font-weight: 500; }
.chat-toggle-text small { display: block; margin-top: .15rem; color: var(--muted-dark); font-family: var(--font-mono); font-size: .47rem; letter-spacing: .1em; text-transform: uppercase; }

.chat-panel {
  position: fixed;
  right: clamp(1rem, 3vw, 1.6rem);
  bottom: 5.5rem;
  z-index: 140;
  display: flex;
  flex-direction: column;
  width: min(25rem, calc(100vw - 2rem));
  height: min(38rem, calc(100dvh - 8rem));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1.2rem;
  background: var(--paper-3);
  box-shadow: 0 34px 90px rgba(0, 0, 0, .45);
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px) scale(.98);
  transform-origin: bottom right;
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
}
.chat-panel.open { visibility: visible; opacity: 1; pointer-events: auto; transform: none; }
.chat-head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .9rem 1rem;
  background: var(--ink);
  color: var(--paper);
}
.chat-head::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--copper), var(--aqua));
}
.chat-id { display: flex; align-items: center; gap: .7rem; }
.chat-avatar {
  display: grid;
  place-items: center;
  width: 2.65rem;
  height: 2.65rem;
  overflow: hidden;
  border-radius: 50%;
  border: 1px solid var(--line-dark);
  flex: none;
}
.chat-avatar svg { width: 100%; height: 100%; }
.chat-panel.busy .needle { animation: needle 1s ease-in-out infinite alternate; transform-origin: 24px 28px; }
#chat-title { font-family: var(--font-display); font-size: 1.25rem; font-weight: 500; line-height: 1; }
.chat-sub { display: flex; align-items: center; gap: .35rem; margin-top: .25rem; color: var(--muted-dark); font-family: var(--font-mono); font-size: .49rem; line-height: 1.2; letter-spacing: .06em; text-transform: uppercase; }
.chat-sub .dot { width: .38rem; height: .38rem; border-radius: 50%; background: var(--aqua); flex: none; }
.chat-close {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  background: transparent;
  color: var(--paper);
  cursor: pointer;
  transition: background .2s, border-color .2s;
}
.chat-close:hover { background: rgba(243, 237, 226, .08); border-color: rgba(243, 237, 226, .3); }
.chat-close .icon { width: .9rem; height: .9rem; }

.chat-tip {
  display: flex;
  align-items: flex-start;
  gap: .45rem;
  padding: .6rem 1rem;
  border-bottom: 1px solid var(--line);
  background: rgba(196, 123, 75, .1);
  color: var(--text);
  font-size: .68rem;
  line-height: 1.45;
}
.chat-tip .icon { width: .9rem; height: .9rem; margin-top: .12rem; color: var(--copper-3); flex: none; }
.chat-tip:has(#chat-tip-text:empty) { display: none; }

.chat-log {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: .55rem;
  padding: 1rem;
  overflow-y: auto;
  background: var(--paper);
  background-image: radial-gradient(rgba(7, 23, 28, .055) 1px, transparent 1px);
  background-size: 14px 14px;
}
.msg {
  max-width: 88%;
  padding: .62rem .8rem;
  font-size: .82rem;
  line-height: 1.5;
  animation: msgIn .25s var(--ease);
}
.msg-bot {
  align-self: flex-start;
  border: 1px solid var(--line);
  border-left: 3px solid var(--copper);
  border-radius: .2rem .85rem .85rem .85rem;
  background: var(--white);
  color: var(--text);
}
.msg-user {
  align-self: flex-end;
  border-radius: .85rem .85rem .2rem .85rem;
  background: var(--ink);
  color: var(--paper);
}
.typing { display: flex; align-items: center; gap: .25rem; width: fit-content; padding: .75rem .85rem; }
.typing span { width: .38rem; height: .38rem; border-radius: 50%; background: var(--copper); animation: typing 1s ease-in-out infinite; }
.typing span:nth-child(2) { animation-delay: .14s; }
.typing span:nth-child(3) { animation-delay: .28s; }
.chat-log .msg-cta { align-self: flex-start; margin-top: .15rem; background: var(--copper); border-color: var(--copper); color: var(--ink); text-decoration: none; }
.chat-log .msg-cta:hover { background: var(--copper-2); }

.chat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem;
  max-height: 6.5rem;
  padding: .55rem 1rem;
  overflow-y: auto;
  border-top: 1px solid var(--line);
  background: var(--paper-3);
}
.chip {
  padding: .34rem .55rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: .5rem;
  line-height: 1.3;
  letter-spacing: .03em;
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}
.chip:hover { border-color: var(--copper); background: rgba(196, 123, 75, .1); color: var(--copper-3); }

.chat-form {
  display: flex;
  gap: .45rem;
  padding: .6rem 1rem;
  border-top: 1px solid var(--line);
  background: var(--paper-3);
}
.chat-form input {
  flex: 1;
  min-width: 0;
  padding: .62rem .8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--text);
  font-size: .8rem;
  outline: none;
}
.chat-form input:focus { border-color: var(--copper); box-shadow: 0 0 0 3px rgba(196, 123, 75, .12); }
.chat-send {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 50%;
  background: var(--copper);
  color: var(--ink);
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.chat-send:hover { background: var(--copper-2); transform: scale(1.04); }
.chat-send .icon { width: 1rem; height: 1rem; }
.chat-actions { display: flex; gap: .4rem; padding: .45rem 1rem .8rem; background: var(--paper-3); }
.chat-actions .btn { flex: 1; }

@keyframes typing {
  0%, 100% { opacity: .35; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-3px); }
}
@keyframes msgIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
@keyframes needle {
  from { transform: rotate(-8deg); }
  to { transform: rotate(12deg); }
}

/* Mobile action bar -------------------------------------------------------- */
.mobile-bar { display: none; transition: transform .3s var(--ease); }
@media (max-width: 900px) {
  .mobile-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 125;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding-bottom: env(safe-area-inset-bottom);
    border-top: 1px solid var(--line-dark);
    background: rgba(7, 23, 28, .97);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
  }
  .mobile-bar a, .mobile-bar button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .22rem;
    padding: .62rem .4rem;
    border: 0;
    background: none;
    color: var(--paper);
    font-family: var(--font-mono);
    font-size: .55rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
  }
  .mobile-bar .icon { width: 1.05rem; height: 1.05rem; color: var(--copper-2); }
  .mobile-bar a:active, .mobile-bar button:active { background: rgba(243, 237, 226, .06); }
  /* The mobile bar already has a Chat action, so the floating pill is redundant here. */
  .chat-toggle { display: none; }
  body:not(.legal-page) .site-footer { padding-bottom: 8rem; }
  .legal-page .site-footer { padding-bottom: 2.5rem; }
  .chat-toggle { bottom: calc(4.35rem + env(safe-area-inset-bottom)); }
  .chat-panel {
    left: .7rem;
    right: .7rem;
    bottom: calc(4.35rem + env(safe-area-inset-bottom));
    width: auto;
    height: min(34rem, calc(100dvh - 5.6rem));
    border-radius: 1rem;
  }
}
@media (max-width: 520px) {
  .chat-toggle { padding: .32rem .8rem .32rem .32rem; gap: .5rem; }
  .chat-toggle-text { display: block; }
  .chat-toggle-text strong { font-size: .9rem; }
  .chat-toggle-text small { display: none; }
  .chat-toggle-icon { width: 2.6rem; height: 2.6rem; }
  .chat-panel { height: calc(100dvh - 5.2rem); }
  .chat-chips {
    flex-wrap: nowrap;
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
  }
  .chat-chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
}

/* Reveals ------------------------------------------------------------------ */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: var(--d, 0s);
}
html.js [data-reveal].is-in { opacity: 1; transform: none; }

/* Legal page --------------------------------------------------------------- */
.legal-page { background: var(--paper); }
.legal-header { position: sticky; top: 0; }
.legal-header .header-inner { min-height: 4.2rem; }
.legal-main { padding: clamp(3rem, 7vw, 6rem) 0 clamp(4rem, 8vw, 7rem); }
.legal-grid { display: grid; grid-template-columns: minmax(0, .55fr) minmax(0, 1.45fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.legal-aside { position: sticky; top: 6.5rem; }
.legal-aside h1 { margin-top: 1rem; font-size: clamp(2.4rem, 4vw, 3.8rem); line-height: .95; letter-spacing: -.035em; }
.legal-aside p { margin-top: 1rem; color: var(--muted); font-size: .82rem; line-height: 1.6; max-width: 20rem; }
.legal-aside a { display: inline-flex; align-items: center; gap: .4rem; margin-top: 1.2rem; color: var(--ink); font-size: .78rem; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--copper); padding-bottom: .15rem; }
.legal-article { max-width: 44rem; }
.legal-article .notice { padding: 1rem 1.1rem; border: 1px dashed rgba(196, 123, 75, .5); border-radius: .5rem; background: rgba(196, 123, 75, .07); color: var(--copper-3); font-family: var(--font-mono); font-size: .63rem; line-height: 1.6; }
.legal-article h2 { margin: 2.2rem 0 .6rem; font-size: clamp(1.4rem, 2.2vw, 1.8rem); }
.legal-article p, .legal-article li { color: var(--muted); font-size: .92rem; line-height: 1.7; }
.legal-article p + p { margin-top: .8rem; }
.legal-article ul { margin: .6rem 0 0; padding-left: 1.1rem; }
.legal-article li { margin-top: .35rem; }
.legal-article a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.legal-article .back { display: inline-flex; align-items: center; gap: .4rem; margin-top: 2rem; padding: .7rem 1rem; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); font-size: .78rem; font-weight: 600; text-decoration: none; }
.legal-article .back:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

@media (max-width: 900px) {
  .legal-grid { grid-template-columns: 1fr; }
  .legal-aside { position: static; }
}

/* Reduced motion ----------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .ticker-track { animation: none; }
  html.js [data-reveal] { opacity: 1; transform: none; }
  .hero [data-hero] { opacity: 1; transform: none; }
  .compare-before { will-change: auto; }
}
