/* =============================================================
   Deacon Web v2 — "Van Livery"
   Racing green ground, cream type, one brass accent (~3% of the page).
   Values taken from the premium-agency research: H1:body ≈ 5:1,
   heading tracking -2.5%, 900ms reveals, 160ms hovers.
   ============================================================= */

@font-face { font-family: "Fraunces"; font-weight: 300 700; font-display: swap; src: url(../assets/fonts/fraunces-latin.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 300 700; font-display: swap; src: url(../assets/fonts/inter-latin.woff2) format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 500; font-display: swap; src: url(../assets/fonts/jetbrains-mono-500-latin.woff2) format("woff2"); }

/* --head: sticky header height; everything that sits under the header reads it */
:root {
  --head: 72px;
  interpolate-size: allow-keywords;   /* lets the FAQ animate to height:auto */
  --green: #0f2a22;
  --green-2: #133328;
  --green-deep: #0a1f19;
  --cream: #efe9dc;
  --cream-2: #e6dfcf;
  --ink: #0f2a22;
  --brass: #c9a45c;
  --brass-dark: #7a5e22;        /* brass for text on cream (AA) */
  --muted: rgba(239, 233, 220, 0.72);
  --line: rgba(239, 233, 220, 0.16);

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;

  --gutter: clamp(1rem, 5vw, 3rem);
  --section: clamp(5.5rem, 12vw, 10rem);
  --slow: 900ms;
  --fast: 160ms;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--head) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--green);
  color: var(--cream);
  font: 400 clamp(1rem, 0.95rem + 0.25vw, 1.0625rem)/1.65 var(--sans);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--brass); color: var(--green); }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }

.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--brass); color: var(--green); padding: .6rem 1rem; }
.skip:focus { top: 1rem; }
.wrap { width: min(100% - 2 * var(--gutter), 1440px); margin-inline: auto; }

/* ---------- Type ---------- */
.display, .h2, .h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.025em; line-height: 1; font-variation-settings: "opsz" 144; }
.display { font-size: clamp(3rem, 1.2rem + 7.6vw, 7.5rem); max-width: 15ch; }
.display em { font-style: italic; color: var(--brass); padding-right: .1em; }
.h2 { font-size: clamp(2.25rem, 1.5rem + 3.2vw, 4.5rem); max-width: 16ch; }
.h3 { font-size: clamp(1.5rem, 1.25rem + 1vw, 2.1rem); letter-spacing: -0.015em; line-height: 1.1; }
.lead { font-size: clamp(1.15rem, 1.05rem + 0.5vw, 1.4rem); line-height: 1.5; color: var(--muted); max-width: 46ch; }
.label { font: 500 0.75rem/1.4 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--brass); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  min-height: 52px; padding: .9rem 1.5rem;
  background: var(--brass); color: var(--green);
  border: 1px solid var(--brass); border-radius: 3px;
  font: 600 1rem/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: background var(--fast), color var(--fast), transform var(--fast);
}
.btn span { transition: transform var(--fast); }
.btn:hover { background: var(--cream); border-color: var(--cream); }
.btn:hover span { transform: translateX(4px); }
.btn:active { transform: translateY(1px); }
.btn--ghost { background: transparent; color: var(--cream); border-color: var(--line); }
.btn--ghost:hover { background: transparent; border-color: var(--cream); }
.btn--sm { min-height: 44px; padding: .7rem 1.1rem; font-size: .95rem; }

/* ---------- Header ---------- */
.head {
  position: sticky; top: 0; z-index: 50;
  background: var(--green);
}
.head-in { display: flex; align-items: center; gap: 2rem; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; font: 400 1.35rem/1 var(--serif); letter-spacing: -0.01em; }
.brand-mark { width: 34px; height: 34px; color: var(--cream); }
.head nav { margin-left: auto; }
.nav { display: flex; gap: 2rem; }
.nav a { text-decoration: none; color: var(--muted); font-size: .95rem; transition: color var(--fast); }
.nav a { position: relative; }
.nav a:hover, .nav a[aria-current] { color: var(--cream); }
/* scrollspy marker: brass rule under the section you're in */
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--brass); transform: scaleX(0); transform-origin: left; transition: transform var(--slow) var(--ease); }
.nav a[aria-current]::after { transform: scaleX(1); }
.head .btn { margin-left: 0; }
@media (max-width: 760px) {
  /* ponytail: one-page site, the four sections are a scroll away; add a menu if pages are split out */
  :root { --head: 94px; }
  .head-in { flex-wrap: wrap; gap: 0 1rem; }
  .head .btn { margin-left: auto; }
  .head nav { display: block; order: 3; width: 100%; margin: 0; overflow-x: auto; }
  .nav { gap: .75rem; justify-content: space-between; padding-block: .7rem; white-space: nowrap; }
}

/* ---------- Hero ---------- */
.hero { padding-block: clamp(4.5rem, 12vw, 10rem) clamp(3.5rem, 8vw, 6.5rem); }
.hero .label { margin-bottom: 1.75rem; }
.hero-foot { display: grid; gap: 2rem; margin-top: clamp(2.5rem, 5vw, 4rem); align-items: end; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; }
@media (min-width: 900px) { .hero-foot { grid-template-columns: 1fr auto; } }

.js .rise { opacity: 0; transform: translateY(28px); animation: rise var(--slow) var(--ease) forwards; animation-delay: calc(120ms + var(--i) * 110ms); }
@keyframes rise { to { opacity: 1; transform: none; } }

/* home hero: fills the first screen, copy left, deck of example sites right */
.hero--home { min-height: calc(100svh - var(--head)); display: flex; align-items: center; padding-block: clamp(2.5rem, 6vw, 4rem); }
.hero-grid { display: grid; gap: 3rem; align-items: center; }
.hero--home .display { font-size: clamp(2.8rem, 1.2rem + 5.2vw, 6.25rem); }
.hero--home .lead { margin-block: 1.75rem 2.25rem; }
@media (min-width: 1000px) { .hero-grid { grid-template-columns: 0.9fr 1.1fr; gap: clamp(3rem, 5vw, 5rem); } }

.showcase { display: grid; gap: 1.25rem; }
.deck { position: relative; aspect-ratio: 16 / 11.5; margin: 6% 6% 0 0; }
.mock {
  position: absolute; inset: 0; container-type: inline-size;
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: 8px; background: var(--m-bg); color: var(--m-fg);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .75);
  transition: transform var(--slow) var(--ease), opacity var(--slow) var(--ease), filter var(--slow);
  font-family: var(--sans);
}
/* deck positions: 0 front, 1-2 stacked behind, last = the card just dealt away */
.mock[data-pos="0"] { z-index: 5; }
.mock[data-pos="1"] { z-index: 4; transform: translate(4%, -4.5%) scale(.94); filter: brightness(.55); }
.mock[data-pos="2"] { z-index: 3; transform: translate(8%, -9%) scale(.88); filter: brightness(.35); }
.mock[data-pos="3"] { z-index: 2; transform: translate(8%, -9%) scale(.88); opacity: 0; }
.mock[data-pos="4"] { z-index: 6; transform: translate(-14%, 6%) rotate(-5deg); opacity: 0; pointer-events: none; }

.mock-chrome { position: relative; z-index: 2; display: flex; align-items: center; gap: 1cqw; padding: 1.6cqw 2cqw; background: var(--m-bg); border-bottom: 1px solid color-mix(in srgb, var(--m-fg) 10%, transparent); }
.mock-chrome i { width: 1.3cqw; height: 1.3cqw; border-radius: 50%; background: var(--m-fg); opacity: .2; }
.mock-chrome span { flex: 0 1 38%; height: 2.4cqw; margin-inline: auto; border-radius: 99px; background: var(--m-fg); opacity: .1; }

/* each example is a full-bleed photographic hero; the scrim is the
   brand's own colour, solid on the text side and clear over the photo */
.mock-site { position: relative; flex: 1; display: flex; flex-direction: column; padding: 0 5cqw; min-height: 0; overflow: hidden; }
.m-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--m-pos, 65% 50%); }
.mock-site::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--m-bg) 0%, color-mix(in srgb, var(--m-bg) 78%, transparent) 36%, color-mix(in srgb, var(--m-bg) 0%, transparent) 72%),
    linear-gradient(0deg, color-mix(in srgb, var(--m-bg) 80%, transparent), transparent 32%);
}
/* layer order: photo 0, scrim 1, content 2 */
.mock-site::before { z-index: 1; }
.mock-site > :not(.m-bg) { position: relative; z-index: 2; }
.m-nav { display: flex; align-items: center; gap: 3cqw; padding-block: 2.8cqw; font-size: 1.55cqw; }
.m-nav b { font: var(--m-bw, 700) 2.7cqw/1 var(--m-bf, var(--sans)); letter-spacing: -0.02em; margin-right: auto; }
.m-nav span { opacity: .9; text-shadow: 0 1px 8px color-mix(in srgb, var(--m-bg) 80%, transparent); }
.m-nav em { font-style: normal; font-weight: 600; background: var(--m-ac); color: var(--m-on); padding: 1.1cqw 2cqw; border-radius: var(--m-r); }
.m-copy { flex: 1; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2cqw; max-width: 54%; }
.m-copy small { font: 500 1.35cqw/1.3 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--m-kick, var(--m-ac)); display: flex; align-items: center; gap: 1.2cqw; }
.m-copy small::before { content: ""; width: 3.5cqw; height: 1px; background: currentColor; }
.m-copy strong { font: var(--m-hw) 6.2cqw/1 var(--m-hf); letter-spacing: -0.035em; text-transform: var(--m-tt, none); }
.m-copy strong i { color: var(--m-ac); font-style: var(--m-is, italic); }
.m-copy p { font-size: 1.8cqw; line-height: 1.5; opacity: .82; max-width: 34ch; }
.m-btns { display: flex; gap: 1.4cqw; margin-top: .6cqw; }
.m-btns em, .m-btns span { font-style: normal; font-weight: 600; font-size: 1.6cqw; padding: 1.6cqw 2.8cqw; border-radius: var(--m-r); }
.m-btns em { background: var(--m-ac); color: var(--m-on); }
.m-btns span { border: 1px solid color-mix(in srgb, var(--m-fg) 40%, transparent); }
.m-strip { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid color-mix(in srgb, var(--m-fg) 20%, transparent); }
.m-strip span { padding: 2.2cqw 0; font-size: 1.4cqw; opacity: .8; }
.m-strip span + span { padding-left: 2.4cqw; border-left: 1px solid color-mix(in srgb, var(--m-fg) 20%, transparent); }
.m-strip b { font-weight: 700; }

/* each mock's copy settles in once it reaches the front */
.mock .m-copy > * { opacity: 0; transform: translateY(1.5cqw); transition: opacity 600ms var(--ease), transform 600ms var(--ease); }
.mock[data-pos="0"] .m-copy > * { opacity: 1; transform: none; }
.mock[data-pos="0"] .m-copy > :nth-child(2) { transition-delay: 90ms; }
.mock[data-pos="0"] .m-copy > :nth-child(3) { transition-delay: 180ms; }
.mock[data-pos="0"] .m-copy > :nth-child(4) { transition-delay: 270ms; }

/* five trades, five identities */
.m-plumber  { --m-bg: #0a1628; --m-fg: #eef3f8; --m-ac: #e0925c; --m-on: #0a1628; --m-r: 4px;  --m-hf: var(--sans); --m-hw: 700; --m-pos: 70% 50%; }
/* plumber: bold sans headline, copper serif-italic accent */
.m-plumber .m-copy strong i { font-family: var(--serif); font-weight: 400; letter-spacing: -0.02em; }
.m-cafe     { --m-bg: #2b1a11; --m-fg: #f6ece1; --m-ac: #e08a5c; --m-on: #2b1a11; --m-r: 99px; --m-hf: var(--serif); --m-hw: 400; --m-bf: var(--serif); --m-bw: 500; }
.m-electric { --m-bg: #0e0f11; --m-fg: #f1f1ee; --m-ac: #ffd21f; --m-on: #0e0f11; --m-r: 0; --m-hf: var(--sans); --m-hw: 800; --m-tt: uppercase; --m-is: normal; }
.m-garden   { --m-bg: #15271b; --m-fg: #eef1e6; --m-ac: #c3d99b; --m-on: #15271b; --m-r: 3px;  --m-hf: var(--serif); --m-hw: 400; --m-bf: var(--serif); --m-bw: 500; }
.m-build    { --m-bg: #131313; --m-fg: #f2f0ec; --m-ac: #e8662a; --m-on: #fff; --m-r: 0;   --m-hf: var(--sans); --m-hw: 700; --m-kick: #f0a077; --m-is: normal; }
.m-electric .m-copy strong { font-size: 5.4cqw; letter-spacing: -0.01em; }
.mock { background: var(--m-bg); color: var(--m-fg); }

.deck-bar { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; margin-right: 6%; }
.deck-label { color: var(--muted); min-width: 16ch; }
.deck-dots { display: flex; gap: .35rem; margin-left: auto; }
.deck-dots button { width: 32px; height: 32px; padding: 0; border: 0; background: none; cursor: pointer; position: relative; }
.deck-dots button::before { content: ""; position: absolute; inset: 14px 4px; background: var(--line); transition: background var(--fast); }
.deck-dots button[aria-current]::before { background: var(--brass); }
.deck-pause { background: none; border: 1px solid var(--line); color: var(--muted); font: 500 .7rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; padding: .55rem .8rem; border-radius: 3px; cursor: pointer; min-height: 32px; }
.deck-pause:hover { color: var(--cream); border-color: var(--cream); }

@media (max-width: 999px) {
  .deck { margin: 8% 7% 0 0; }
}
@media (max-width: 560px) {
  /* ponytail: phone-width mock drops nav links, tags and body copy; headline, button and photo carry it */
  .m-nav span, .m-strip, .m-copy p { display: none; }
  .m-copy { max-width: 70%; }
  .m-copy strong { font-size: 6.6cqw; }
}

/* ---------- Trust strip ---------- */
.strip { position: relative; display: flex; overflow: hidden; border-block: 1px solid var(--line); padding-block: 1.1rem; }
.strip-track { display: flex; flex-shrink: 0; gap: 3rem; padding-right: 3rem; animation: marquee 38s linear infinite; }
.strip li { font: 500 .8rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; display: flex; align-items: center; gap: 3rem; }
.strip li::after { content: ""; width: 6px; height: 6px; background: var(--brass); transform: rotate(45deg); }
.strip.paused .strip-track { animation-play-state: paused; }
.strip-pause { position: absolute; right: 0; top: 0; bottom: 0; z-index: 1; padding: 0 1.1rem; background: var(--green); color: var(--muted); border: 0; border-left: 1px solid var(--line); font: 500 .7rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; cursor: pointer; }
.strip-pause:hover { color: var(--cream); }
@keyframes marquee { to { transform: translateX(-100%); } }

/* ---------- Signature: the rebuild (tablet, scroll-driven wipe) ---------- */
.rebuild { --w: 1; position: relative; }
.js .rebuild { height: 320vh; --w: 0; }
.rebuild-stick { position: sticky; top: var(--head); min-height: calc(100vh - var(--head)); display: flex; align-items: center; padding-block: 2.5rem; }
.rebuild-grid { display: grid; gap: 2.5rem; align-items: center; }
.rebuild-copy .h2 { margin-block: 1.25rem 2rem; }
.steps { display: grid; gap: 1.25rem; max-width: 30rem; }
.steps li { border-left: 1px solid var(--line); padding-left: 1.25rem; opacity: .6; transition: opacity var(--slow) var(--ease), border-color var(--slow); }
.steps li.on { opacity: 1; border-color: var(--brass); }
.steps p { color: var(--muted); margin-top: .35rem; }
@media (min-width: 1000px) { .rebuild-grid { grid-template-columns: .75fr 1.25fr; gap: 4rem; } }
@media (max-width: 999px) {
  .js .rebuild { height: 280vh; }
  .rebuild-stick { padding-block: 1.25rem; }
  .rebuild-copy .h2 { font-size: 2rem; margin-block: .75rem 1rem; }
  .steps li:not(.on) { display: none; }
  .steps li { opacity: 1; }
  .rebuild-grid { gap: 1.25rem; }
}

.tablet-wrap { display: grid; justify-items: center; gap: 1rem; }
.tablet-wrap .label { color: var(--muted); }
.tablet {
  width: 100%; aspect-ratio: 4 / 3; padding: clamp(10px, 1.4vw, 18px);
  background: #0a0e0c; border-radius: clamp(18px, 2.4vw, 32px);
  border: 1px solid var(--line);
  box-shadow: 0 60px 100px -50px rgba(0, 0, 0, .85), inset 0 0 0 1px rgba(255, 255, 255, .04);
}
.tscreen { position: relative; height: 100%; border-radius: clamp(8px, 1vw, 14px); overflow: hidden; container-type: inline-size; background: #fff; }

/* --- before: realistic 2014 small-business site --- */
.before { position: absolute; inset: 0; background: #e4e4e4; font-family: Arial, Helvetica, sans-serif; color: #333; padding: 1.6cqw 5cqw 0; }
.b-page { background: #fff; height: 100%; border: 1px solid #c9c9c9; box-shadow: 0 0 8px rgba(0, 0, 0, .15); display: flex; flex-direction: column; }
.b-head { display: flex; justify-content: space-between; align-items: flex-end; padding: 2.2cqw 2.4cqw 1.8cqw; background: linear-gradient(#3569b8, #1f4585); color: #fff; }
.b-head b { display: block; font: bold 2.7cqw/1.1 Georgia, "Times New Roman", serif; text-shadow: 0 1px 1px rgba(0, 0, 0, .4); }
.b-head i { display: block; font: italic 1.3cqw/1.4 Georgia, serif; color: #cfdcf2; margin-top: .4cqw; }
.b-head span { font-size: 1.15cqw; color: #e7eefa; }
.b-nav { display: flex; background: linear-gradient(#f4f4f4, #d6d6d6); border-bottom: 1px solid #b5b5b5; font-size: 1.2cqw; }
.b-nav span { padding: .9cqw 1.6cqw; border-right: 1px solid #bdbdbd; color: #1f4585; }
.b-nav .on { background: linear-gradient(#1f4585, #163363); color: #fff; }
.b-body { flex: 1; display: grid; grid-template-columns: 1fr 26%; gap: 2cqw; padding: 2cqw 2.4cqw; min-height: 0; overflow: hidden; }
.b-main h4 { font-size: 1.75cqw; color: #1f4585; margin: 0 0 1.2cqw; font-weight: bold; }
.b-main img { float: right; width: 30%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; margin: 0 0 1cqw 1.6cqw; border: .4cqw solid #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .35); }
.b-main p { font-size: 1.2cqw; line-height: 1.5; margin: 0 0 1.1cqw; }
.b-main u { font-size: 1.2cqw; color: #1f4585; }
.b-side { display: grid; gap: 1.4cqw; align-content: start; }
.b-box { display: grid; gap: .5cqw; background: #f2f2f2; border: 1px solid #d3d3d3; padding: 1.2cqw; font-size: 1.1cqw; }
.b-box b { color: #fff; background: #1f4585; margin: -1.2cqw -1.2cqw .5cqw; padding: .8cqw 1.2cqw; font-size: 1.2cqw; }
.b-box em { font-size: 1cqw; color: #888; }
.b-foot { background: #333; color: #aaa; font-size: 1cqw; text-align: center; padding: 1cqw; }

/* --- after: the rebuild, a full-bleed photographic hero --- */
.after {
  position: absolute; inset: 0; color: #fff; font-family: var(--sans); background: #0b1626;
  display: flex; flex-direction: column; padding: 0 5cqw;
  clip-path: inset(0 calc((1 - var(--w)) * 100%) 0 0);
}
.a-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; }
/* legibility scrim: dark on the text side, clear over the photo */
.after::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 17, 30, .92) 0%, rgba(8, 17, 30, .7) 38%, rgba(8, 17, 30, .1) 72%), linear-gradient(0deg, rgba(8, 17, 30, .75), transparent 30%), linear-gradient(180deg, rgba(8, 17, 30, .6), transparent 22%); }
.after::before { z-index: 1; }
.after > :not(.a-bg) { position: relative; z-index: 2; }
.a-nav { display: flex; align-items: center; gap: 3.2cqw; padding-block: 3cqw; font-size: 1.4cqw; }
.a-nav b { font: 400 2.6cqw/1 var(--serif); letter-spacing: -0.02em; margin-right: auto; }
.a-nav span { opacity: .9; text-shadow: 0 1px 8px rgba(0, 0, 0, .7); }
.a-nav em { font-style: normal; font-weight: 600; border: 1px solid rgba(255, 255, 255, .45); padding: 1cqw 1.9cqw; border-radius: 99px; }
.a-hero { flex: 1; display: grid; align-content: center; justify-items: start; gap: 2.2cqw; max-width: 52%; }
.a-hero small { font: 500 1.2cqw/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: #e3c48a; display: flex; align-items: center; gap: 1.2cqw; }
.a-hero small::before { content: ""; width: 3.5cqw; height: 1px; background: currentColor; }
.a-hero strong { font: 400 6cqw/1 var(--serif); letter-spacing: -0.035em; }
.a-hero strong i { color: #e3c48a; }
.a-hero p { font-size: 1.65cqw; line-height: 1.55; color: rgba(255, 255, 255, .78); max-width: 38ch; }
.a-btns { display: flex; gap: 1.4cqw; margin-top: .8cqw; }
.a-btns em, .a-btns span { font-style: normal; font-weight: 600; font-size: 1.5cqw; padding: 1.5cqw 2.8cqw; border-radius: 99px; }
.a-btns em { background: #fff; color: #0b1626; }
.a-btns span { border: 1px solid rgba(255, 255, 255, .4); }
.after .a-badge { position: absolute; right: 5cqw; top: 10.5cqw; display: flex; align-items: center; gap: 1cqw; background: rgba(255, 255, 255, .95); color: #0b1626; font-size: 1.25cqw; font-weight: 600; padding: 1.2cqw 1.8cqw; border-radius: 99px; }
.a-badge i { width: 1cqw; height: 1cqw; border-radius: 50%; background: #2fb36b; box-shadow: 0 0 0 .5cqw rgba(47, 179, 107, .22); }
.a-strip { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(255, 255, 255, .18); margin-bottom: 1cqw; }
.a-strip span { padding: 2.4cqw 0; font-size: 1.3cqw; color: rgba(255, 255, 255, .7); }
.a-strip span + span { padding-left: 2.4cqw; border-left: 1px solid rgba(255, 255, 255, .18); }
.a-strip b { color: #fff; font-weight: 600; }

/* --- the wipe line and labels --- */
.wipe { position: absolute; top: 0; bottom: 0; left: calc(var(--w) * 100%); width: 0; pointer-events: none; }
.wipe::before { content: ""; position: absolute; top: 0; bottom: 0; left: -1px; width: 2px; background: var(--brass); box-shadow: 0 0 2cqw rgba(201, 164, 92, .6); opacity: calc(min(var(--w), 1 - var(--w)) * 40); }
.wipe-tag { position: absolute; top: 2cqw; font: 500 1.1cqw/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; padding: .9cqw 1.3cqw; border-radius: 3px; white-space: nowrap; }
.wipe-tag--after { right: 1.2cqw; background: var(--brass); color: var(--green); opacity: calc(min(var(--w), 1 - var(--w)) * 30 - 1); }
.wipe-tag--before { left: 1.2cqw; background: #0a0e0c; color: var(--cream); opacity: calc(min(var(--w), 1 - var(--w)) * 30 - 1); }
@media (max-width: 999px) { .wipe-tag { font-size: 1.6cqw; } }

/* ---------- Sections ---------- */
.section { padding-block: var(--section); }
.section--cream { background: var(--cream); color: var(--ink); --muted: #45544d; --line: rgba(15, 42, 34, 0.16); }
.section--cream .label { color: var(--brass-dark); }
.section--cream .btn:hover { background: var(--green); border-color: var(--green); color: var(--cream); }
.section--deep { background: var(--green-deep); }
.sec-head { display: grid; gap: 1.25rem; margin-bottom: clamp(3rem, 6vw, 5rem); }
.num { font: 500 .8rem/1 var(--mono); letter-spacing: .14em; color: var(--brass); }
.section--cream .num { color: var(--brass-dark); }

/* services: ruled rows, not cards */
.services { border-top: 1px solid var(--line); }
.service { display: grid; gap: 1.5rem; padding-block: clamp(2.25rem, 4vw, 3.5rem); border-bottom: 1px solid var(--line); }
.service-main p { color: var(--muted); max-width: 52ch; margin-top: 1rem; }
.service-main .quote { color: var(--ink); font-weight: 600; }
.service-meta { display: grid; gap: .9rem; align-content: start; }
.service-meta dt { font: 500 .72rem/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.service-meta dd { margin-top: .15rem; }
.service-meta a { text-underline-offset: 3px; text-decoration-color: var(--brass-dark); }
@media (min-width: 900px) { .service { grid-template-columns: 5rem 1.5fr 1fr; gap: 3rem; } .num { padding-top: .8rem; } }

/* process: four columns, hairline-topped */
.process { display: grid; gap: 2.5rem; }
.process li { border-top: 1px solid var(--line); padding-top: 1.5rem; display: grid; gap: .9rem; align-content: start; }
.process p { color: var(--muted); }
@media (min-width: 700px) { .process { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .process { grid-template-columns: repeat(4, 1fr); } }

/* about */
.about { display: grid; gap: 2.5rem; }
.about .h2 { margin-top: 1.25rem; }
.about-body { display: grid; gap: 1.5rem; }
.about-body > p:not(.lead) { color: var(--muted); max-width: 58ch; }
.founders { display: flex; flex-wrap: wrap; gap: 2.5rem; margin-top: 1rem; }
.founders li { display: flex; align-items: center; gap: 1rem; }
.founders b { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.3rem; }
.founders small { font: 500 .72rem/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.mono-tag { width: 56px; height: 56px; display: grid; place-items: center; border: 1px solid var(--brass); color: var(--brass); font: 400 1.2rem/1 var(--serif); border-radius: 3px; }
@media (min-width: 900px) { .about { grid-template-columns: 1fr 1fr; gap: 5rem; } }

/* faq */
.faq-grid { display: grid; gap: 1rem; }
@media (min-width: 900px) { .faq-grid { grid-template-columns: 1fr 1.4fr; gap: 5rem; } }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 1.5rem; padding-block: 1.4rem; font: 400 clamp(1.15rem, 1.05rem + .4vw, 1.4rem)/1.3 var(--serif); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--brass); transition: transform var(--fast); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 1.5rem; max-width: 60ch; }

/* contact */
.contact { display: grid; gap: 3rem; align-items: start; }
.contact .h2 { margin-block: 1.25rem 1.5rem; }
.contact-alt { margin-top: 2rem; color: var(--muted); }
.contact-alt a { color: var(--ink); font-weight: 600; text-underline-offset: 4px; text-decoration-color: var(--brass-dark); }
@media (min-width: 900px) { .contact { grid-template-columns: 1fr 1.25fr; gap: 5rem; } }
.form-card { background: var(--cream-2); border: 1px solid var(--line); border-radius: 4px; padding: clamp(1.5rem, 4vw, 2.75rem); }
.form { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .form { grid-template-columns: 1fr 1fr; } .field--wide, .consent, .form-foot { grid-column: 1 / -1; } }
.field { display: grid; gap: .45rem; }
.field label { font-weight: 500; font-size: .95rem; }
.opt { font: 500 .68rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-left: .35rem; }
.field input, .field textarea {
  font: inherit; color: var(--ink); background: #f7f3ea;
  border: 1px solid rgba(15, 42, 34, .3); border-radius: 3px;
  padding: .8rem .95rem; min-height: 48px; width: 100%;
  transition: border-color var(--fast), box-shadow var(--fast);
}
.field input::placeholder { color: #7b857f; }
.field input:focus, .field textarea:focus { outline: 2px solid transparent; border-color: var(--green); box-shadow: 0 0 0 3px rgba(201, 164, 92, .45); }
.field :user-invalid { border-color: #a3261b; }
.field textarea { resize: vertical; }
.consent { font-size: .9rem; color: var(--muted); }
.consent a { color: var(--ink); }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.status { font-size: .95rem; }
.status.err { color: #a3261b; }
.form[aria-busy="true"] .btn { opacity: .7; cursor: progress; }
.hp { position: absolute; left: -9999px; }
.done { display: grid; gap: .75rem; }
.done[hidden] { display: none; }
.done p { color: var(--muted); }

/* ---------- Footer ---------- */
.foot { background: var(--green-deep); padding-block: 4rem 2.5rem; border-top: 1px solid var(--line); }
.foot-in { display: grid; gap: 2rem; }
.foot-note { color: var(--muted); margin-top: 1rem; }
.foot-links { display: flex; gap: 1.75rem; }
.foot-links a, .foot-note a { color: var(--muted); text-underline-offset: 3px; }
.foot-links a:hover, .foot-note a:hover { color: var(--cream); }
.foot-legal { color: var(--muted); grid-column: 1 / -1; letter-spacing: .1em; font-size: .68rem; }
@media (min-width: 800px) { .foot-in { grid-template-columns: 1fr auto; } }

/* ---------- Scroll reveals ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity var(--slow) var(--ease), transform var(--slow) var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* ---------- Legal pages ---------- */
.legal { padding-block: clamp(4rem, 9vw, 7rem) var(--section); }
.legal-body { max-width: 74ch; margin-top: 2.5rem; }
.legal-body h2 { font: 400 1.75rem/1.15 var(--serif); letter-spacing: -0.015em; margin: 3rem 0 1rem; }
.legal-body h3 { font-size: 1.1rem; margin: 2rem 0 .5rem; }
.legal-body p, .legal-body ul, .legal-body ol { color: var(--muted); margin-bottom: 1rem; }
.legal-body ul { list-style: disc; padding-left: 1.25rem; }
.legal-body ol { list-style: decimal; padding-left: 1.25rem; }
.legal-body a { color: var(--cream); text-underline-offset: 3px; }
.legal-body strong { color: var(--cream); }
.legal-body table { border-collapse: collapse; width: 100%; margin-bottom: 1.5rem; font-size: .95rem; }
.legal-body th, .legal-body td { border: 1px solid var(--line); padding: .6rem .8rem; text-align: left; vertical-align: top; }

/* ---------- Reduced motion: show finished states, no loops ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rise, .js [data-reveal] { opacity: 1; transform: none; animation: none; transition: none; }
  .strip-track { animation: none; }
  .strip-pause { display: none; }
  .mock, .mock .m-copy > * { transition: none; }
  .deck-pause { display: none; }
  .js .rebuild { height: auto; --w: 1; }
  .rebuild-stick { position: static; min-height: 0; padding-block: var(--section); }
  .steps li { opacity: 1; display: block; }
}
.legal-meta { font-size: .9rem; border-left: 2px solid var(--brass); padding-left: 1rem; }
.legal-toc { display: grid; gap: .4rem; padding: 1.25rem 1.5rem; border: 1px solid var(--line); border-radius: 4px; margin: 2rem 0; }
.legal-toc a { color: var(--muted); }

/* =============================================================
   Polish pass
   ============================================================= */

/* smooth fade between pages (privacy, terms...) where supported */
@view-transition { navigation: auto; }

/* masked word reveals: each word rises out of its own clip box */
.split .w { display: inline-block; overflow: clip; vertical-align: top; padding: 0 .02em .14em; margin-bottom: -.14em; }
.split .w > span { display: inline-block; transform: translateY(108%); transition: transform var(--slow) var(--ease); transition-delay: calc(var(--wi) * 55ms + 80ms); }
.split.in .w > span { transform: none; }
html:not(.js) .split .w > span { transform: none; }
/* hide the hero headline until it has been split, so it never flashes unsplit */
.js .hero .split:not(.ready) { opacity: 0; }

/* trades band */
.trades { padding-block: clamp(3rem, 7vw, 6rem); overflow: clip; border-block: 1px solid var(--line); }
.trades-line { font: 400 clamp(3.2rem, 1.5rem + 7.5vw, 9.5rem)/1.05 var(--serif); letter-spacing: -0.03em; white-space: nowrap; will-change: transform; transform: translateX(calc(var(--drift) * var(--shift, 0px))); }
.trades-line[data-drift="-1"] { --drift: -1; }
.trades-line[data-drift="1"] { --drift: 1; margin-left: -40%; }
.trades-line--outline { font-style: italic; color: transparent; -webkit-text-stroke: 1.5px var(--brass); }

/* hero deck tilts toward the cursor */
.deck { transform: perspective(1400px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform 400ms var(--ease); transform-style: preserve-3d; }

/* process: a brass rule draws across each step as it arrives */
.process li { position: relative; }
.process li::before { content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 1px; background: var(--brass); transform: scaleX(0); transform-origin: left; transition: transform 1.2s var(--ease); transition-delay: calc(var(--i, 0) * 160ms + 250ms); }
.process li.in::before { transform: none; }

/* services: row answers the cursor */
.service { position: relative; transition: background var(--fast); }
.service .h3 { transition: transform 500ms var(--ease); }
.service::before { content: ""; position: absolute; left: 0; top: -1px; height: 1px; width: 100%; background: var(--brass-dark); transform: scaleX(0); transform-origin: left; transition: transform 600ms var(--ease); }
.service:hover::before { transform: none; }
.service:hover .h3 { transform: translateX(.6rem); }

/* FAQ opens smoothly (progressive: browsers without ::details-content just snap) */
.faq details::details-content { block-size: 0; overflow: clip; transition: block-size 500ms var(--ease), content-visibility 500ms allow-discrete; }
.faq details[open]::details-content { block-size: auto; }

/* footer wordmark: full-bleed, tone-on-tone, rises in */
.foot-mark { grid-column: 1 / -1; font: 400 calc(min(100vw - 2 * var(--gutter), 1440px) / 4.55)/.85 var(--serif); letter-spacing: -0.045em; color: #173a2f; white-space: nowrap; margin-top: 1.5rem; }

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  .split .w > span { transform: none; transition: none; }
  .trades-line { transform: none; }
  .deck { transform: none; }
  .process li::before { transform: none; transition: none; }
}
@media (max-width: 700px) { .foot-mark { font-size: calc((100vw - 2 * var(--gutter)) / 4.95); } }

/* =============================================================
   Bold pass: intro, cursor, grain, smooth scroll, magnetic buttons
   ============================================================= */

/* Lenis smooth scroll (its required base styles) */
html.lenis, html.lenis body { height: auto; }
html.lenis { scroll-behavior: auto; }
.lenis.lenis-stopped { overflow: clip; }

/* --- intro curtain --- */
.curtain { display: none; }
.intro .curtain {
  position: fixed; inset: 0; z-index: 200; display: grid; place-content: center; justify-items: center; gap: 1.25rem;
  background: var(--green-deep); color: var(--cream);
  animation: curtain-up 900ms cubic-bezier(.76, 0, .24, 1) 1500ms forwards;
}
.curtain-mark { width: 88px; height: 88px; fill: none; stroke: var(--cream); stroke-width: 1.6; stroke-linejoin: round; }
.curtain-mark * { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 800ms var(--ease) forwards; }
.curtain-mark path { animation-delay: 250ms; }
.curtain-mark .w { stroke: var(--brass); animation-delay: 500ms; }
.curtain-word { font: 400 1.4rem/1 var(--serif); letter-spacing: -0.01em; opacity: 0; animation: fade-in 600ms var(--ease) 700ms forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade-in { to { opacity: 1; } }
@keyframes curtain-up { to { transform: translateY(-100%); visibility: hidden; } }
/* hero content waits for the curtain */
.intro.js .rise { animation-delay: calc(1900ms + var(--i) * 110ms); }

/* --- film grain over everything --- */
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(4) infinite;
}
@keyframes grain { 25% { transform: translate(-3%, 2%); } 50% { transform: translate(2%, -3%); } 75% { transform: translate(-2%, -2%); } }

/* --- custom cursor ---
   The outer element only moves (translate3d, set straight from pointermove,
   no easing, so it sits exactly on the pointer). The inner dot only scales.
   Both are compositor-only: no layout work per frame. */
.cursor { display: none; }
.has-cursor .cursor {
  display: grid; place-items: center; position: fixed; left: 0; top: 0; z-index: 150; pointer-events: none;
  width: 92px; height: 92px; margin: -46px 0 0 -46px;
  will-change: transform; transform: translate3d(-200px, -200px, 0);
  transition: opacity 200ms;
}
.cursor-dot {
  position: absolute; inset: 0; border-radius: 50%; background: var(--brass);
  transform: scale(.16); will-change: transform;
  transition: transform 300ms var(--ease), background 300ms, box-shadow 300ms;
}
.cursor.is-link .cursor-dot { transform: scale(.6); background: rgba(201, 164, 92, .18); box-shadow: inset 0 0 0 1.5px var(--brass); }
.cursor.is-label .cursor-dot { transform: scale(1); }
.has-cursor .cursor.is-hidden { opacity: 0; }
.cursor-label { position: relative; font: 500 .68rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--green); opacity: 0; transition: opacity 200ms; }
.cursor.is-label .cursor-label { opacity: 1; }
.has-cursor, .has-cursor a, .has-cursor button, .has-cursor summary, .has-cursor .deck { cursor: none; }
.has-cursor input, .has-cursor textarea { cursor: text; }
.deck { cursor: pointer; }

/* --- magnetic buttons --- */
.btn { translate: var(--mx, 0) var(--my, 0); transition: background var(--fast), color var(--fast), transform var(--fast), translate 400ms var(--ease); }

@media (prefers-reduced-motion: reduce) {
  .grain { animation: none; }
  .intro .curtain { display: none; }
}

/* smallest phones: keep logo and button on one row */
@media (max-width: 380px) {
  .brand { font-size: 1.1rem; gap: .5rem; }
  .brand-mark { width: 28px; height: 28px; }
  .head .btn--sm { min-height: 40px; padding: .55rem .8rem; font-size: .875rem; }
  .nav { gap: .5rem; justify-content: space-between; }
  .nav a { font-size: .8125rem; }
}
