/* ==========================================================================
   Prime Accounting Co. — bespoke styles (Tailwind handles layout utilities)
   ========================================================================== */

@property --h { syntax: '<length>'; inherits: true; initial-value: 0px; }

:root {
  --bg: 250 247 241;
  --surface: 255 255 255;
  --tint: 243 238 227;
  --ink: 14 40 26;
  --muted: 74 88 78;
  --line: 226 218 202;
  --gold-text: 125 90 10;
  --brand: #0a5229;
  --brand-deep: #06361b;
  --night: #04200f;
  --gold: #d2a544;
  --focus: #0a5229;
  --header-h: 96px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}
html.dark {
  --bg: 5 22 13;
  --surface: 11 36 22;
  --tint: 8 29 18;
  --ink: 246 242 232;
  --muted: 182 194 184;
  --line: 30 64 44;
  --gold-text: 226 189 98;
  --focus: #d2a544;
  color-scheme: dark;
}

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
html body { margin: 0; line-height: 1.65; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
main:focus { outline: none; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.hero, .page-hero, .values, .cta, .site-footer, .mobile-menu, .site-header:not(.is-solid), .bot__head, .side__card--cta { --focus: #d2a544; }

.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: 16px; top: -80px; z-index: 200; background: var(--gold); color: var(--brand-deep); font-weight: 700; padding: .7rem 1.1rem; border-radius: 8px; transition: top .2s; }
.skip-link:focus { top: 16px; }

.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2rem); }

/* ------------------------------------------------------------ Typography */
.h2 { font-family: Marcellus, Georgia, serif; font-size: clamp(1.55rem, 1.6vw + 1rem, 2.2rem); line-height: 1.2; letter-spacing: -.005em; margin: .5rem 0 .9rem; max-width: 22ch; text-wrap: balance; }
.h3 { font-family: Marcellus, Georgia, serif; font-size: 1.3rem; margin: 2rem 0 .8rem; }
.lead { font-size: 1.08rem; color: rgb(var(--ink)); margin: 0 0 .9rem; max-width: 60ch; }
.body { color: rgb(var(--muted)); margin: 0 0 .9rem; max-width: 62ch; }

.eyebrow { display: inline-flex; align-items: center; gap: .65rem; font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: .74rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: rgb(var(--gold-text)); margin: 0; }
.eyebrow::before { content: ""; width: 16px; height: 12px; flex: none;
  background:
    linear-gradient(currentColor 0 0) 0 100% / 4px 5px no-repeat,
    linear-gradient(currentColor 0 0) 6px 100% / 4px 8px no-repeat,
    linear-gradient(currentColor 0 0) 12px 100% / 4px 12px no-repeat; }
.eyebrow--light { color: var(--gold); }

.link-arrow { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; color: rgb(var(--ink)); border-bottom: 2px solid var(--gold); padding-bottom: 2px; margin-top: .6rem; }
.link-arrow svg { transition: transform .3s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------------------------------------------------------------- Buttons */
.btn { display: inline-flex; align-items: center; gap: .55rem; font-weight: 600; font-size: .95rem; line-height: 1.2; padding: .85rem 1.35rem; border-radius: 10px; border: 1.5px solid transparent; cursor: pointer; transition: transform .25s var(--ease), background-color .2s, border-color .2s, color .2s, box-shadow .25s; }
.btn svg { transition: transform .3s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:hover svg { transform: translateX(3px); }
.btn--sm { padding: .62rem 1rem; font-size: .88rem; }
.btn--accent { background: var(--gold); color: var(--brand-deep); }
.btn--accent:hover { background: #e0ba62; box-shadow: 0 10px 24px -10px rgba(210, 165, 68, .7); }
.btn--ghost { border-color: rgba(255, 255, 255, .7); color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--brand-deep); }
.btn--navy { background: var(--brand); color: #fff; }
.btn--navy:hover { background: #0e6a35; }
html.dark .btn--navy { background: #13713c; }
.btn--outline { border-color: rgb(var(--line)); color: rgb(var(--ink)); background: rgb(var(--surface)); }
.btn--outline:hover { border-color: rgb(var(--ink)); }

/* ----------------------------------------------------------------- Header */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 60; height: var(--header-h); color: #fff; transition: background-color .3s, box-shadow .3s, height .3s, color .3s; }
.site-header__bar { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.site-header.is-solid { --header-h: 76px; background: rgb(var(--surface) / .96); color: rgb(var(--ink)); box-shadow: 0 1px 0 rgb(var(--line)), 0 10px 30px -18px rgba(4, 24, 13, .35); backdrop-filter: blur(10px); }

.brand { display: block; flex: none; }
.brand img { height: calc(var(--header-h) - 14px); width: auto; transition: height .3s; }
.brand__dark { display: none; }
html:not(.dark) .site-header.is-solid .brand__light { display: none; }
html:not(.dark) .site-header.is-solid .brand__dark { display: block; }

.nav { display: none; }
.nav__list { display: flex; align-items: center; gap: .35rem; list-style: none; margin: 0; padding: 0; }
.nav__item { position: relative; display: flex; align-items: center; }
.nav__link { position: relative; display: block; padding: .55rem .8rem; font-weight: 600; font-size: .94rem; }
.nav__link::after { content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .25rem; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav__toggle { display: grid; place-items: center; width: 26px; height: 26px; margin-left: -.5rem; border-radius: 6px; transition: transform .25s; }
.nav__item--has-sub.is-open .nav__toggle { transform: rotate(180deg); }
.nav__sub { position: absolute; top: calc(100% + 10px); left: -.4rem; min-width: 290px; list-style: none; margin: 0; padding: .5rem; background: rgb(var(--surface)); color: rgb(var(--ink)); border: 1px solid rgb(var(--line)); border-radius: 12px; box-shadow: 0 24px 50px -24px rgba(4, 24, 13, .45); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .25s var(--ease), visibility .2s; --focus: rgb(var(--ink)); }
.nav__sub::before { content: ""; position: absolute; inset: -12px 0 100% 0; }
.nav__item--has-sub:hover .nav__sub, .nav__item--has-sub.is-open .nav__sub { opacity: 1; visibility: visible; transform: none; }
.nav__sub a { display: flex; align-items: baseline; gap: .8rem; padding: .6rem .75rem; border-radius: 8px; font-size: .92rem; font-weight: 500; }
.nav__sub a:hover { background: rgb(var(--tint)); }
.nav__num { font-family: "IBM Plex Mono", monospace; font-size: .72rem; color: rgb(var(--gold-text)); }

.site-header__actions { display: flex; align-items: center; gap: .6rem; }
.site-header__cta { display: none; }
.menu-btn { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; border: 1.5px solid currentColor; }
@media (min-width: 1024px) {
  .nav { display: block; }
  .site-header__cta { display: inline-flex; }
  .site-header .menu-btn { display: none; }
}

.mobile-menu { position: fixed; inset: 0; z-index: 100; background: var(--night); color: #fff; padding: 1rem clamp(1.1rem, 4vw, 2rem) 2rem; display: flex; flex-direction: column; gap: 1.5rem; overflow-y: auto; }
.mobile-menu[hidden] { display: none; }
.mobile-menu__top { display: flex; align-items: center; justify-content: space-between; }
.mobile-menu__logo { height: 62px; width: auto; }
.mobile-menu__list { list-style: none; margin: 0; padding: 0; }
.mobile-menu__list > li { border-bottom: 1px solid rgba(255, 255, 255, .14); }
.mobile-menu__list > li > a { display: block; padding: .95rem 0; font-family: Marcellus, serif; font-size: 1.35rem; }
.mobile-menu__list a[aria-current="page"] { color: var(--gold); }
.mobile-menu__sub { list-style: none; margin: 0; padding: 0 0 .8rem .2rem; display: grid; gap: .1rem; }
.mobile-menu__sub a { display: block; padding: .45rem 0; color: #d3dcd2; font-size: .95rem; }

/* ------------------------------------------------------------------- Hero */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 540px; display: flex; flex-direction: column; color: #fff; overflow: hidden; background: var(--night); }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: heroDrift 24s ease-in-out infinite alternate; }
.hero__shade { position: absolute; inset: 0; background: rgba(0, 0, 0, .5); }
@keyframes heroDrift { from { transform: scale(1.02); } to { transform: scale(1.1) translateY(-1.5%); } }

.hero__inner { position: relative; flex: 1; min-height: 0; display: grid; align-items: center; gap: 2rem; padding-top: var(--header-h); }
.hero__copy { max-width: 600px; }
.hero__title { font-family: Marcellus, Georgia, serif; font-size: clamp(2rem, 3.2vw + 1rem, 3.35rem); line-height: 1.08; margin: .9rem 0 1.1rem; }
.hero__title em { font-style: normal; color: var(--gold); }
.hero__line { display: block; overflow: hidden; padding-bottom: .08em; }
.hero__line > span { display: block; }
.hero__lead { font-size: clamp(1rem, .4vw + .92rem, 1.12rem); color: #eef0e8; max-width: 52ch; margin: 0 0 1.6rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; }

.js .hero__line > span { transform: translateY(110%); transition: transform 1s var(--ease); }
.js .hero__line:nth-child(2) > span { transition-delay: .14s; }
.js .hero__in { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease) var(--d, 0s), transform .8s var(--ease) var(--d, 0s); }
.js.is-ready .hero__line > span, .js.is-ready .hero__in { transform: none; opacity: 1; }

/* 3D rising bars (CSS only) */
.hero__viz { display: none; position: relative; width: 420px; height: 380px; justify-self: end; perspective: 1100px; }
.scene { position: absolute; left: 44px; top: 96px; width: 320px; height: 240px; transform-style: preserve-3d; transform: rotateX(calc(58deg + var(--rx, 0deg))) rotateZ(calc(-38deg + var(--rz, 0deg))); transition: transform .5s ease-out; }
.scene__floor { position: absolute; inset: 0; border: 1px solid rgba(255, 255, 255, .28); border-radius: 6px;
  background:
    linear-gradient(rgba(255, 255, 255, .13) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, rgba(255, 255, 255, .13) 1px, transparent 1px) 0 0 / 32px 32px,
    rgba(6, 54, 27, .45);
  opacity: 0; transition: opacity 1s ease .1s; }
.is-ready .scene__floor { opacity: 1; }
.bar { position: absolute; left: var(--x); top: var(--y); width: 46px; height: 46px; transform-style: preserve-3d; --h: 0px; transition: --h 1.3s var(--ease) var(--d, 0s); }
.is-ready .bar, html:not(.js) .bar { --h: var(--to); }
.bar i { position: absolute; display: block; backface-visibility: hidden; }
.bar__t { inset: 0; transform: translateZ(var(--h)); background: var(--c1); }
.bar__f { left: 0; bottom: 0; width: 100%; height: var(--h); transform-origin: bottom; transform: rotateX(-90deg); background: var(--c2); }
.bar__s { top: 0; left: 0; height: 100%; width: var(--h); transform-origin: left; transform: rotateY(-90deg); background: var(--c3); }
.bar--green { --c1: #2c9a5a; --c2: #13713c; --c3: #0a5229; }
.bar--gold { --c1: #f0d48a; --c2: #d2a544; --c3: #a67c1e; }

.hero__swoosh { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.hero__swoosh path:first-child { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.4s var(--ease) 1.2s; }
.hero__swoosh-tip { opacity: 0; transition: opacity .3s ease 2.3s; }
.is-ready .hero__swoosh path:first-child, html:not(.js) .hero__swoosh path:first-child { stroke-dashoffset: 0; }
.is-ready .hero__swoosh-tip, html:not(.js) .hero__swoosh-tip { opacity: 1; }

.chip { position: absolute; display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .75rem; font-family: "IBM Plex Mono", monospace; font-size: .72rem; letter-spacing: .04em; color: #fff; background: rgba(4, 24, 13, .78); border: 1px solid rgba(255, 255, 255, .22); border-radius: 99px; opacity: 0; transition: opacity .6s ease 2.2s; animation: chipFloat 6s ease-in-out infinite; }
.chip svg { color: var(--gold); }
.chip--a { left: 0; top: 108px; }
.chip--b { right: 0; bottom: 34px; animation-delay: -3s; }
.is-ready .chip { opacity: 1; }
@keyframes chipFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

@media (min-width: 1024px) {
  .hero__inner { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
  .hero__viz { display: block; }
}
@media (max-height: 640px) and (min-width: 1024px) { .hero__viz { transform: scale(.82); transform-origin: right center; } }

/* Service ticker along the bottom edge of the hero */
.ticker { position: relative; flex: none; border-top: 1px solid rgba(255, 255, 255, .22); background: rgba(4, 24, 13, .55); overflow: hidden; }
.ticker__track { display: flex; width: max-content; list-style: none; margin: 0; padding: 0; animation: ticker 38s linear infinite; }
.ticker:hover .ticker__track, .ticker:focus-within .ticker__track { animation-play-state: paused; }
.ticker li { display: flex; align-items: center; }
.ticker li::after { content: ""; width: 6px; height: 6px; background: var(--gold); transform: rotate(45deg); margin: 0 1.6rem; }
.ticker a { display: block; padding: .95rem 0; font-family: "IBM Plex Mono", monospace; font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; color: #eef0e8; }
.ticker a:hover { color: var(--gold); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* --------------------------------------------------------------- Sections */
.sec { padding-block: clamp(2.8rem, 5vw, 4.6rem); }
.sec--tint { background: rgb(var(--tint)); }
.sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 2.5rem; margin-bottom: clamp(1.4rem, 3vw, 2.2rem); }
.sec-head .h2, .sec-head .body { margin-bottom: 0; }

/* Scroll reveals (only when JS is running) */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease) var(--d, 0s), transform .8s var(--ease) var(--d, 0s); }
.js [data-reveal].in { opacity: 1; transform: none; }
.js [data-reveal="wipe"] { opacity: 1; transform: none; background: rgb(var(--tint)); }
.js [data-reveal="wipe"] > img { clip-path: inset(0 100% 0 0); transform: scale(1.12); transition: clip-path 1.1s var(--ease), transform 1.4s var(--ease); }
.js [data-reveal="wipe"].in > img { clip-path: inset(0 0 0 0); transform: none; }

/* Intro image with "statement" card */
.intro-media { position: relative; border-radius: 16px; overflow: hidden; }
.intro-media__img { width: 100%; height: auto; }
.statement { position: absolute; left: 16px; bottom: 16px; right: 16px; max-width: 320px; list-style: none; margin: 0; padding: .35rem .95rem; background: rgb(var(--surface) / .96); color: rgb(var(--ink)); border-radius: 12px; box-shadow: 0 20px 40px -20px rgba(4, 24, 13, .6); font-family: "IBM Plex Mono", monospace; font-size: .76rem; }
.statement li { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px dashed rgb(var(--line)); }
.statement li:last-child { border-bottom: 0; }
.statement__v { display: inline-flex; align-items: center; gap: .35rem; color: rgb(var(--gold-text)); font-weight: 500; }
.js .statement[data-reveal] { opacity: 1; transform: none; }
.js .statement .statement__v { opacity: 0; transform: translateX(-8px); transition: opacity .5s ease, transform .5s var(--ease); }
.js .statement.in .statement__v { opacity: 1; transform: none; }
.js .statement.in li:nth-child(1) .statement__v { transition-delay: .9s; }
.js .statement.in li:nth-child(2) .statement__v { transition-delay: 1.25s; }
.js .statement.in li:nth-child(3) .statement__v { transition-delay: 1.6s; }

.ticks { list-style: none; margin: 1.1rem 0 .6rem; padding: 0; display: grid; gap: .55rem; }
.ticks li { display: flex; align-items: center; gap: .65rem; font-weight: 500; }
.ticks svg, .checks svg { flex: none; color: var(--brand-deep); background: var(--gold); border-radius: 50%; padding: 3px; width: 20px; height: 20px; }

/* Services ledger */
.ledger { display: grid; gap: 2.5rem; align-items: start; }
.ledger__rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgb(var(--line)); }
.ledger__row { position: relative; display: grid; grid-template-columns: auto auto 1fr auto; align-items: center; gap: 1rem; padding: 1.05rem 1rem 1.05rem 1.1rem; border-bottom: 1px solid rgb(var(--line)); transition: background-color .3s, padding-left .35s var(--ease); }
.ledger__row::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--gold); transform: scaleY(0); transform-origin: bottom; transition: transform .35s var(--ease); }
.ledger__row:hover, .ledger__row.is-active { background: rgb(var(--surface)); padding-left: 1.5rem; }
.ledger__row:hover::before, .ledger__row.is-active::before { transform: scaleY(1); }
.ledger__num { font-family: "IBM Plex Mono", monospace; font-size: .78rem; color: rgb(var(--muted)); }
.ledger__icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; background: rgb(var(--surface)); border: 1px solid rgb(var(--line)); color: var(--brand); transition: background-color .3s, color .3s, border-color .3s; }
html.dark .ledger__icon { color: var(--gold); }
.ledger__row:hover .ledger__icon, .ledger__row.is-active .ledger__icon { background: var(--brand); border-color: var(--brand); color: #fff; }
.ledger__text { display: grid; gap: .1rem; min-width: 0; }
.ledger__title { font-family: Marcellus, serif; font-size: 1.16rem; line-height: 1.3; }
.ledger__desc { color: rgb(var(--muted)); font-size: .9rem; line-height: 1.5; }
.ledger__go { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgb(var(--line)); transition: transform .35s var(--ease), background-color .3s, color .3s, border-color .3s; }
.ledger__row:hover .ledger__go, .ledger__row.is-active .ledger__go { background: var(--gold); border-color: var(--gold); color: var(--brand-deep); transform: rotate(-45deg); }
.ledger__preview { display: none; position: sticky; top: calc(var(--header-h) + 20px); aspect-ratio: 3 / 2; border-radius: 16px; overflow: hidden; background: var(--brand-deep); }
.ledger__shot { position: absolute; inset: 0; margin: 0; clip-path: inset(100% 0 0 0); transition: clip-path .7s var(--ease); z-index: 1; }
.ledger__shot.is-active { clip-path: inset(0); z-index: 2; }
.ledger__shot.was-active { clip-path: inset(0); z-index: 1; transition: none; }
.ledger__shot img { width: 100%; height: 100%; object-fit: cover; }
.ledger__shot figcaption { position: absolute; left: 14px; bottom: 14px; display: flex; align-items: center; gap: .7rem; padding: .5rem .85rem; background: rgba(4, 24, 13, .85); color: #fff; border-radius: 8px; font-size: .88rem; font-weight: 600; }
.ledger__shot figcaption span { font-family: "IBM Plex Mono", monospace; font-size: .72rem; color: var(--gold); }
@media (min-width: 1024px) {
  .ledger { grid-template-columns: 1.1fr 1fr; gap: 3rem; }
  .ledger__preview { display: block; }
}
@media (max-width: 540px) {
  .ledger__row { grid-template-columns: auto 1fr auto; }
  .ledger__num { display: none; }
}

/* Values band */
.values { position: relative; background: var(--brand-deep); color: #fff; padding-block: clamp(2.8rem, 5vw, 4.2rem);
  background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px); background-size: 56px 56px; }
.values__head { margin-bottom: 1.8rem; }
.values__grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .16); border-radius: 14px; overflow: hidden; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.values__grid li { background: var(--brand-deep); padding: 1.5rem 1.4rem; transition: background-color .35s; }
.values__grid li:hover { background: #0a4523; }
.values__icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: rgba(210, 165, 68, .14); color: var(--gold); margin-bottom: 1rem; transition: transform .4s var(--ease); }
.values__grid li:hover .values__icon { transform: translateY(-4px) rotate(-6deg); }
.values__grid h3 { font-family: Marcellus, serif; font-size: 1.15rem; margin: 0 0 .35rem; }
.values__grid p { margin: 0; color: #d3dcd2; font-size: .93rem; }

/* Process: rising bars */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.4rem; }
.step { display: flex; flex-direction: column; gap: .9rem; }
.step h3 { font-family: Marcellus, serif; font-size: 1.18rem; margin: 0 0 .3rem; }
.step p { margin: 0; color: rgb(var(--muted)); font-size: .93rem; }
.step__bar { display: flex; align-items: center; height: 34px; width: calc(40% + var(--i) * 20%); padding: 0 .8rem; border-radius: 6px; background: var(--brand); color: #fff; font-family: "IBM Plex Mono", monospace; font-size: .8rem; transform-origin: left; }
.step:nth-child(even) .step__bar { background: var(--gold); color: var(--brand-deep); }
html.dark .step:nth-child(odd) .step__bar { background: #13713c; }
.js .step[data-reveal] .step__bar { transform: scaleX(0); transition: transform 1s var(--ease) calc(var(--d, 0s) + .15s); }
.js .step[data-reveal].in .step__bar { transform: none; }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, 1fr); align-items: end; gap: 1.6rem; }
  .step__bar { width: 100%; height: calc(54px + var(--i) * 46px); align-items: flex-start; padding: .7rem .9rem; border-radius: 8px 8px 0 0; transform-origin: bottom; }
  .js .step[data-reveal] .step__bar { transform: scaleY(0); }
  .steps { border-bottom: 2px solid rgb(var(--ink)); }
}

/* FAQ */
.faq { border-top: 1px solid rgb(var(--line)); }
.faq__item { border-bottom: 1px solid rgb(var(--line)); }
.faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.05rem .2rem; font-weight: 600; cursor: pointer; list-style: none; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary svg { flex: none; width: 30px; height: 30px; padding: 7px; border-radius: 50%; border: 1px solid rgb(var(--line)); transition: transform .35s var(--ease), background-color .3s, color .3s; }
.faq__item[open] summary svg { transform: rotate(45deg); background: var(--gold); border-color: var(--gold); color: var(--brand-deep); }
.faq__item p { margin: 0; padding: 0 2.6rem 1.2rem .2rem; color: rgb(var(--muted)); animation: faqIn .4s var(--ease); }
@keyframes faqIn { from { opacity: 0; transform: translateY(-6px); } }

/* CTA band */
.cta { position: relative; background: var(--brand); color: #fff; overflow: hidden; }
.cta::after { content: ""; position: absolute; right: 4%; bottom: 0; width: 230px; height: 78%; opacity: .2; pointer-events: none;
  background:
    linear-gradient(#fff 0 0) 0 100% / 40px 30% no-repeat,
    linear-gradient(var(--gold) 0 0) 62px 100% / 40px 52% no-repeat,
    linear-gradient(#fff 0 0) 124px 100% / 40px 74% no-repeat,
    linear-gradient(var(--gold) 0 0) 186px 100% / 40px 100% no-repeat; }
.cta__inner { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; padding-block: clamp(2.4rem, 4.5vw, 3.6rem); }
.cta__title { font-family: Marcellus, serif; font-size: clamp(1.45rem, 1.4vw + 1rem, 2rem); line-height: 1.2; margin: .5rem 0 .4rem; max-width: 24ch; }
.cta__text { margin: 0; color: #e2e8de; max-width: 46ch; }
.cta__actions { display: flex; flex-wrap: wrap; gap: .8rem; }

/* ------------------------------------------------------------ Inner pages */
.page-hero { position: relative; color: #fff; background: var(--night); overflow: hidden; }
.page-hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero__shade { position: absolute; inset: 0; background: rgba(0, 0, 0, .5); }
.page-hero__inner { position: relative; padding-top: calc(var(--header-h) + clamp(1.6rem, 4vw, 2.8rem)); padding-bottom: clamp(1.8rem, 4vw, 2.8rem); }
.page-hero__title { font-family: Marcellus, serif; font-size: clamp(1.8rem, 2.4vw + 1rem, 2.6rem); line-height: 1.15; margin: .7rem 0 .4rem; }
.page-hero__lead { margin: 0; color: #eef0e8; max-width: 56ch; }
.crumbs { display: flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; font-family: "IBM Plex Mono", monospace; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: #e2e8de; }
.crumbs li + li::before { content: "/"; margin: 0 .6rem; color: var(--gold); }
.crumbs a:hover { color: var(--gold); }
.js .page-hero__title, .js .page-hero__lead, .js .page-hero .crumbs { opacity: 0; transform: translateY(16px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .page-hero__title { transition-delay: .1s; }
.js .page-hero__lead { transition-delay: .2s; }
.js.is-ready .page-hero__title, .js.is-ready .page-hero__lead, .js.is-ready .page-hero .crumbs { opacity: 1; transform: none; }

.deflist { margin: 1rem 0 0; display: grid; gap: 0; border-top: 1px solid rgb(var(--line)); }
.deflist > div { display: grid; gap: .2rem 1.5rem; padding: .9rem 0; border-bottom: 1px solid rgb(var(--line)); }
.deflist dt { font-weight: 700; }
.deflist dd { margin: 0; color: rgb(var(--muted)); font-size: .95rem; }
@media (min-width: 640px) { .deflist > div { grid-template-columns: 200px 1fr; } }

/* Services list page */
.svc-list { display: grid; gap: 1.4rem; }
.svc { display: grid; align-items: center; background: rgb(var(--surface)); border: 1px solid rgb(var(--line)); border-radius: 16px; overflow: hidden; transition: box-shadow .4s, border-color .3s; }
.svc:hover { box-shadow: 0 26px 50px -30px rgba(4, 24, 13, .45); border-color: rgb(var(--ink) / .25); }
.svc__media { display: block; overflow: hidden; margin: 12px; border-radius: 10px; }
.svc__media img { width: 100%; height: auto; transition: transform .9s var(--ease); }
.svc:hover .svc__media img { transform: scale(1.04); }
.svc__body { padding: clamp(1.2rem, 3vw, 2rem); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.svc__num { font-family: "IBM Plex Mono", monospace; font-size: .8rem; color: rgb(var(--gold-text)); margin: 0 0 .4rem; }
.svc__num span { color: rgb(var(--muted)); }
.svc__title { display: flex; align-items: center; gap: .65rem; font-family: Marcellus, serif; font-size: 1.4rem; margin: 0 0 .5rem; }
.svc__title svg { color: var(--brand); flex: none; }
html.dark .svc__title svg { color: var(--gold); }
.svc__tags { list-style: none; margin: .2rem 0 .5rem; padding: 0; display: grid; gap: .35rem; font-size: .92rem; }
.svc__tags li { display: flex; align-items: center; gap: .5rem; }
.svc__tags svg { color: rgb(var(--gold-text)); flex: none; }
@media (min-width: 800px) {
  .svc { grid-template-columns: 5fr 6fr; }
  .svc:nth-child(even) .svc__media { order: 2; }
}

/* Service detail */
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: .65rem 1.5rem; }
.checks li { display: flex; align-items: flex-start; gap: .65rem; }
.checks svg { margin-top: 3px; }
@media (min-width: 640px) { .checks { grid-template-columns: 1fr 1fr; } }
.outcomes { margin: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.outcomes > div { background: rgb(var(--surface)); border: 1px solid rgb(var(--line)); border-top: 3px solid var(--gold); border-radius: 12px; padding: 1.1rem 1.15rem; transition: transform .35s var(--ease); }
.outcomes > div:hover { transform: translateY(-4px); }
.outcomes dt { font-weight: 700; margin-bottom: .3rem; }
.outcomes dt span { display: block; font-family: "IBM Plex Mono", monospace; font-size: .72rem; font-weight: 500; color: rgb(var(--gold-text)); margin-bottom: .3rem; }
.outcomes dd { margin: 0; color: rgb(var(--muted)); font-size: .93rem; }

.side { display: grid; gap: 1.2rem; align-content: start; }
@media (min-width: 1024px) { .side { position: sticky; top: calc(var(--header-h) + 16px); } }
.side__card { background: rgb(var(--surface)); border: 1px solid rgb(var(--line)); border-radius: 14px; padding: 1.3rem; }
.side__card h2 { font-family: Marcellus, serif; font-size: 1.2rem; margin: 0 0 .5rem; line-height: 1.3; }
.side__card--cta { background: var(--brand-deep); border-color: var(--brand-deep); color: #fff; }
.side__card--cta p { color: #d3dcd2; margin: 0 0 1rem; font-size: .95rem; }
.side__phone { display: flex; align-items: center; justify-content: center; gap: .5rem; margin-top: .9rem; font-weight: 600; }
.side__list { list-style: none; margin: 0; padding: 0; }
.side__list a { display: flex; align-items: center; gap: .7rem; padding: .62rem .6rem; border-radius: 8px; font-weight: 500; font-size: .95rem; transition: background-color .2s, padding-left .3s var(--ease); }
.side__list a:hover { background: rgb(var(--tint)); padding-left: .9rem; }
.side__list a[aria-current="page"] { background: var(--brand); color: #fff; }
.side__list svg { color: rgb(var(--gold-text)); flex: none; }
.side__list a[aria-current="page"] svg { color: var(--gold); }

/* Legal pages */
.legal { max-width: 780px; }
.legal h2 { font-family: Marcellus, serif; font-size: 1.35rem; margin: 1.8rem 0 .5rem; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { color: rgb(var(--muted)); }
.legal ul { padding-left: 1.2rem; list-style: disc; display: grid; gap: .35rem; }
.legal a, .form__small a, .a11y__note a { color: rgb(var(--ink)); text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* ------------------------------------------------------------------ Forms */
.contact-cards { list-style: none; margin: 1.4rem 0 0; padding: 0; display: grid; gap: .8rem; }
.contact-cards li { display: flex; align-items: center; gap: 1rem; padding: .95rem 1.05rem; background: rgb(var(--surface)); border: 1px solid rgb(var(--line)); border-radius: 12px; transition: transform .3s var(--ease), border-color .3s; }
.contact-cards li:hover { transform: translateX(6px); border-color: var(--gold); }
.contact-cards__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; background: var(--brand); color: #fff; flex: none; }
.contact-cards h3 { margin: 0; font-family: "IBM Plex Mono", monospace; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: rgb(var(--muted)); font-weight: 500; }
.contact-cards a, .contact-cards p, .contact-cards__link { margin: 0; font-weight: 600; word-break: break-word; text-align: left; }
.contact-cards a:hover, .contact-cards__link:hover { text-decoration: underline; }

.form-card { background: rgb(var(--surface)); border: 1px solid rgb(var(--line)); border-radius: 16px; padding: clamp(1.2rem, 3vw, 2rem); box-shadow: 0 30px 60px -40px rgba(4, 24, 13, .4); }
.form { display: grid; gap: 1rem; }
.form__row { display: grid; gap: 1rem; }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }
.form__field { display: grid; gap: .35rem; }
.form label { font-weight: 600; font-size: .92rem; }
.form__opt { font-weight: 400; color: rgb(var(--muted)); }
.form input, .form select, .form textarea { width: 100%; font: inherit; color: rgb(var(--ink)); background: rgb(var(--bg)); border: 1.5px solid rgb(var(--muted) / .55); border-radius: 10px; padding: .75rem .9rem; transition: border-color .2s, box-shadow .2s; }
.form textarea { resize: vertical; min-height: 130px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px rgb(var(--ink) / .16); }
.form [aria-invalid="true"] { border-color: #c62828; }
html.dark .form [aria-invalid="true"] { border-color: #ff8a8a; }
.form__error { margin: 0; font-size: .86rem; font-weight: 600; color: #b3261e; }
html.dark .form__error { color: #ff9c9c; }
.form__hint, .form__small { margin: 0; font-size: .86rem; color: rgb(var(--muted)); }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { justify-self: start; }
.form__notice { display: flex; gap: .8rem; align-items: flex-start; padding: .95rem 1.1rem; border-radius: 12px; margin-bottom: 1.1rem; }
.form__notice--ok { background: rgba(210, 165, 68, .16); border: 1px solid rgb(var(--gold-text)); }
.form__notice--ok svg { color: rgb(var(--gold-text)); flex: none; margin-top: 2px; }
.form__notice--err { background: rgba(198, 40, 40, .1); border: 1px solid #c62828; }

/* ----------------------------------------------------------------- Footer */
.site-footer { background: var(--night); color: #d3dcd2; font-size: .95rem; }
html.dark .site-footer { border-top: 1px solid rgb(var(--line)); }
.site-footer__grid { display: grid; gap: 2rem; padding-block: clamp(2.4rem, 5vw, 3.6rem) 2rem; }
@media (min-width: 640px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .site-footer__grid { grid-template-columns: 1.5fr .8fr 1.2fr 1.2fr; gap: 3rem; } }
.site-footer__brand img { height: 92px; width: auto; margin-bottom: 1rem; }
.site-footer__brand p { margin: 0; max-width: 34ch; }
.site-footer__h { font-family: "IBM Plex Mono", monospace; font-size: .74rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin: 0 0 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.site-footer a:not(.btn) { transition: color .2s; }
.site-footer a:not(.btn):hover { color: #fff; text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }
.site-footer__contact li { display: flex; align-items: flex-start; gap: .65rem; word-break: break-word; }
.site-footer__contact svg { color: var(--gold); flex: none; margin-top: 5px; }
.site-footer__social { display: flex !important; gap: .6rem; margin-top: 1rem !important; }
.site-footer__social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); }
.site-footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem 2rem; padding-block: 1.1rem 5.5rem; border-top: 1px solid rgba(255, 255, 255, .14); font-size: .86rem; }
.site-footer__base p { margin: 0; }
.site-footer__base ul { display: flex; gap: 1.4rem; }
@media (min-width: 1024px) { .site-footer__base { padding-bottom: 1.4rem; } }

/* ------------------------------------------- Floating dock (ADA + theme) */
.dock { position: fixed; left: 18px; bottom: 18px; z-index: 80; display: flex; flex-direction: column; gap: 10px; }
.dock__btn { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; box-shadow: 0 10px 26px -10px rgba(4, 24, 13, .7); transition: transform .3s var(--ease); --focus: #d2a544; }
.dock__btn:hover { transform: scale(1.08); }
.dock__btn:focus-visible { outline-color: var(--gold); box-shadow: 0 0 0 3px var(--brand-deep), 0 0 0 6px var(--gold); outline: none; }
.dock__btn--a11y { background: var(--brand); color: #fff; border: 2px solid #fff; }
.dock__btn--theme { background: rgb(var(--surface)); color: rgb(var(--ink)); border: 2px solid rgb(var(--ink) / .7); }
.dock__sun { display: none; }
html.dark .dock__sun { display: block; }
html.dark .dock__moon { display: none; }

.a11y { position: fixed; left: 18px; bottom: 142px; z-index: 90; width: min(330px, calc(100vw - 36px)); max-height: calc(100vh - 170px); overflow-y: auto; background: rgb(var(--surface)); color: rgb(var(--ink)); border: 1px solid rgb(var(--line)); border-radius: 16px; box-shadow: 0 30px 70px -20px rgba(4, 24, 13, .6); padding: 1rem; animation: panelIn .3s var(--ease); }
.a11y[hidden], .bot[hidden] { display: none; }
@keyframes panelIn { from { opacity: 0; transform: translateY(12px); } }
.a11y__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .8rem; }
.a11y__head h2 { font-family: Marcellus, serif; font-size: 1.15rem; margin: 0; }
.a11y__close { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 8px; }
.a11y__close:hover { background: rgb(var(--tint)); }
.a11y__grid { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.a11y__grid button { display: grid; gap: .25rem; justify-items: start; text-align: left; padding: .7rem .75rem; border: 1.5px solid rgb(var(--line)); border-radius: 10px; font-size: .84rem; font-weight: 600; transition: border-color .2s, background-color .2s; }
.a11y__grid button b { font-size: 1.05rem; line-height: 1.25rem; }
.a11y__grid button:hover { border-color: rgb(var(--ink)); }
.a11y__grid button[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.a11y__reset { width: 100%; margin-top: .7rem; padding: .65rem; border-radius: 10px; background: rgb(var(--tint)); font-weight: 600; font-size: .88rem; }
.a11y__reset:hover { background: rgb(var(--line)); }
.a11y__note { margin: .7rem 0 0; font-size: .82rem; text-align: center; }

/* ---------------------------------------------------------------- Chatbot */
.bot-launch { position: fixed; right: 18px; bottom: 96px; z-index: 80; display: inline-flex; align-items: center; gap: .5rem; padding: .7rem 1rem .7rem .85rem; border-radius: 99px; background: var(--brand); color: #fff; border: 2px solid #fff; font-weight: 600; font-size: .9rem; box-shadow: 0 10px 26px -10px rgba(4, 24, 13, .7); transition: transform .3s var(--ease); }
.bot-launch:hover { transform: translateY(-3px); }
.bot-launch:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--brand-deep), 0 0 0 6px var(--gold); }
.bot-launch svg { color: var(--gold); }
.bot { position: fixed; right: 18px; bottom: 156px; z-index: 90; width: min(370px, calc(100vw - 36px)); height: min(500px, calc(100vh - 180px)); display: flex; flex-direction: column; background: rgb(var(--surface)); color: rgb(var(--ink)); border: 1px solid rgb(var(--line)); border-radius: 16px; overflow: hidden; box-shadow: 0 30px 70px -20px rgba(4, 24, 13, .6); animation: panelIn .3s var(--ease); }
.bot__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem 1rem; background: var(--brand-deep); color: #fff; }
.bot__head h2 { font-family: Marcellus, serif; font-size: 1.08rem; margin: 0; }
.bot__head p { margin: 0; font-size: .78rem; color: #d3dcd2; }
.bot__head button { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 8px; }
.bot__head button:hover { background: rgba(255, 255, 255, .12); }
.bot__log { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .6rem; background: rgb(var(--bg)); }
.bot__msg { max-width: 86%; padding: .6rem .8rem; border-radius: 12px; font-size: .9rem; line-height: 1.5; animation: faqIn .3s var(--ease); }
.bot__msg--bot { align-self: flex-start; background: rgb(var(--surface)); border: 1px solid rgb(var(--line)); border-bottom-left-radius: 4px; }
.bot__msg--user { align-self: flex-end; background: var(--brand); color: #fff; border-bottom-right-radius: 4px; }
.bot__msg a { font-weight: 600; text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.bot__chips { display: flex; flex-wrap: wrap; gap: .4rem; padding: .6rem .8rem 0; }
.bot__chips button { padding: .38rem .7rem; border: 1.5px solid rgb(var(--line)); border-radius: 99px; font-size: .8rem; font-weight: 600; transition: border-color .2s, background-color .2s; }
.bot__chips button:hover { border-color: rgb(var(--ink)); background: rgb(var(--tint)); }
.bot__form { display: flex; gap: .5rem; padding: .7rem .8rem .8rem; }
.bot__form input { flex: 1; min-width: 0; font: inherit; font-size: .92rem; color: rgb(var(--ink)); background: rgb(var(--bg)); border: 1.5px solid rgb(var(--muted) / .55); border-radius: 10px; padding: .6rem .8rem; }
.bot__form input:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px rgb(var(--ink) / .16); }
.bot__form button { display: grid; place-items: center; width: 44px; border-radius: 10px; background: var(--gold); color: var(--brand-deep); }

/* -------------------------------------------------- Accessibility modes */
html.a11y-text-lg { font-size: 112.5%; }
html.a11y-text-xl { font-size: 125%; }
html.a11y-contrast { --bg: 255 255 255; --surface: 255 255 255; --tint: 240 240 240; --ink: 0 0 0; --muted: 20 20 20; --line: 0 0 0; --gold-text: 90 60 0; --brand: #053018; --brand-deep: #021a0c; --night: #000; }
html.a11y-contrast.dark { --bg: 0 0 0; --surface: 0 0 0; --tint: 18 18 18; --ink: 255 255 255; --muted: 240 240 240; --line: 255 255 255; --gold-text: 255 220 120; }
html.a11y-contrast .hero__shade, html.a11y-contrast .page-hero__shade { background: rgba(0, 0, 0, .78); }
html.a11y-contrast .values__grid p, html.a11y-contrast .site-footer, html.a11y-contrast .cta__text, html.a11y-contrast .hero__lead { color: #fff; }
html.a11y-links a { text-decoration: underline !important; text-decoration-thickness: 2px !important; text-underline-offset: 3px; outline: 2px dashed currentColor; outline-offset: 2px; }
html.a11y-font body, html.a11y-font body * { font-family: Verdana, Arial, Helvetica, sans-serif !important; letter-spacing: .01em; }
html.a11y-spacing body { line-height: 2; }
html.a11y-spacing p, html.a11y-spacing li, html.a11y-spacing dd, html.a11y-spacing span { line-height: 2 !important; letter-spacing: .04em; word-spacing: .14em; }
html.a11y-gray { filter: grayscale(1); }
html.a11y-cursor, html.a11y-cursor * { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44' viewBox='0 0 24 24'%3E%3Cpath d='M4 2l15 11h-8l-3 8z' fill='%23000' stroke='%23fff' stroke-width='1.5' stroke-linejoin='round'/%3E%3C/svg%3E") 6 3, auto !important; }

html.a11y-motion *, html.a11y-motion *::before, html.a11y-motion *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
html.a11y-motion [data-reveal], html.a11y-motion .hero__in, html.a11y-motion .hero__line > span, html.a11y-motion .chip, html.a11y-motion .scene__floor, html.a11y-motion .statement__v, html.a11y-motion .step__bar,
html.a11y-motion .page-hero__title, html.a11y-motion .page-hero__lead, html.a11y-motion .crumbs, html.a11y-motion .hero__swoosh-tip { opacity: 1 !important; transform: none !important; clip-path: none !important; }
html.a11y-motion .bar { --h: var(--to); }
html.a11y-motion .hero__swoosh path:first-child { stroke-dashoffset: 0; }
html.a11y-motion [data-reveal="wipe"] img { transform: none !important; clip-path: none !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal], .js .hero__in, .js .hero__line > span, .chip, .scene__floor, .js .statement .statement__v, .js .step[data-reveal] .step__bar,
  .js .page-hero__title, .js .page-hero__lead, .js .page-hero .crumbs, .hero__swoosh-tip { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .bar { --h: var(--to); }
  .hero__swoosh path:first-child { stroke-dashoffset: 0; }
  .js [data-reveal="wipe"] img { transform: none !important; clip-path: none !important; }
}

@media print {
  .site-header, .dock, .a11y, .bot, .bot-launch, .ticker, .hero__viz, .cta { display: none !important; }
  .js [data-reveal] { opacity: 1 !important; transform: none !important; clip-path: none !important; }
}
