/* ABC CASEWORK LLC — "Elevation A". Own styles, prefix ac-. */
@font-face {
  font-family: "Marcellus";
  src: url("/assets/fonts/marcellus-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/assets/fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800; font-style: normal; font-display: swap;
}

:root {
  --plaster: #ece2d3;
  --paper: #faf6ef;
  --ink: #2b2420;
  --oak: #dcb27a;
  --walnut: #6b4632;
  --clay: #a9562f;
  --clay-ink: #864024;
  --olive: #6b6a3e;
  --rule: #b2a698;
  --muted: #5c5148;
  --display: "Marcellus", "Times New Roman", serif;
  --text: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --bank-h: 74px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--plaster); color: var(--ink);
  font-family: var(--text); font-size: 1.0625rem; line-height: 1.6;
  padding-bottom: calc(var(--bank-h) + 28px);
  background-image: radial-gradient(rgba(91, 68, 46, .05) 1px, transparent 1.2px);
  background-size: 7px 7px;
}
img, svg { max-width: 100%; }
a { color: var(--clay-ink); text-underline-offset: .18em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--clay); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.12; margin: 0 0 .5em; letter-spacing: .005em; }
h2 { font-size: clamp(1.9rem, 1.2rem + 2.4vw, 3rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.ac-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ac-skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 4px; }
.ac-skip:focus { top: 12px; }

/* ---------- top line ---------- */
.ac-top {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  max-width: 1240px; margin: 0 auto; padding: 18px 24px 10px;
  border-bottom: 1px solid var(--rule);
}
.ac-brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; margin-right: auto; }
.ac-brand__mark { width: 38px; height: 38px; fill: none; stroke: var(--ink); stroke-width: 2; }
.ac-brand__mark rect:last-child { fill: var(--ink); }
.ac-brand__name { font-family: var(--display); font-size: 1.45rem; letter-spacing: .08em; }
.ac-brand__name small { font-family: var(--text); font-size: .72rem; letter-spacing: .14em; color: var(--muted); }
.ac-top__lic { margin: 0; font-size: .86rem; }
.ac-top__lic a { color: var(--ink); text-decoration: none; border-bottom: 1px dashed var(--clay); }
.ac-top__tel { font-weight: 700; color: var(--ink); text-decoration: none; font-size: .95rem; }

/* ---------- buttons ---------- */
.ac-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 10px 22px; border-radius: 3px; font: 600 1rem/1.2 var(--text);
  text-decoration: none; cursor: pointer; border: 2px solid var(--ink);
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s;
}
.ac-btn--clay { background: var(--clay); border-color: var(--clay); color: #fff; box-shadow: 0 3px 0 var(--clay-ink); }
.ac-btn--clay:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 5px 0 var(--clay-ink); }
.ac-btn--line { background: transparent; color: var(--ink); }
.ac-btn--line:hover { background: var(--paper); }
.ac-btn:active { transform: translateY(1px); box-shadow: none; }

/* ---------- bottom navigation: a bank of drawers ---------- */
.ac-bank {
  position: fixed; left: 50%; bottom: 10px; transform: translateX(-50%); z-index: 30;
  width: min(900px, calc(100% - 24px));
  background: var(--walnut); border: 2px solid var(--ink); border-radius: 4px 4px 2px 2px;
  padding: 6px 6px 0; box-shadow: 0 10px 30px rgba(43, 36, 32, .25);
}
.ac-bank__run, .ac-bank__mini { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.ac-bank__run { grid-template-columns: repeat(5, 1fr) 1.35fr; }
.ac-bank__mini { display: none; grid-template-columns: 1.2fr 1fr 1.3fr; }
.ac-front {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  height: 52px; padding: 4px 6px; background: var(--oak); color: var(--ink);
  border: 1.5px solid #3a2a1e; border-radius: 2px; text-decoration: none;
  font: 600 .8rem/1.15 var(--text); text-align: center; cursor: pointer;
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, .12);
  transition: transform .25s cubic-bezier(.2, .7, .2, 1), box-shadow .25s, background-color .2s;
}
.ac-front:hover { color: var(--ink); background: #e6c08c; }
.ac-front[aria-current="true"] {
  transform: translateY(-9px);
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, .12), 0 9px 0 -2px #2a1d14;
}
.ac-front--go { background: var(--clay); color: #fff; }
.ac-front--go:hover { background: #b9653a; color: #fff; }
.ac-front--btn { width: 100%; }
.ac-pull { display: block; width: 34px; height: 5px; border-radius: 3px; background: var(--ink); box-shadow: 0 1px 0 rgba(255, 255, 255, .35); }
.ac-front--go .ac-pull { background: #fff2e6; }
.ac-bank__kick { display: block; height: 10px; margin: 6px -6px 0; background: #1f1814; }

/* ---------- hero ---------- */
.ac-hero {
  display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 13fr); gap: clamp(24px, 4vw, 56px); align-items: center;
  max-width: 1240px; margin: 0 auto; padding: clamp(28px, 4vw, 56px) 24px clamp(40px, 5vw, 72px);
}
.ac-hero h1 { font-size: clamp(2.2rem, 1.2rem + 2.5vw, 3.5rem); margin-bottom: .4em; }
.ac-hero h1 em { font-style: normal; color: var(--clay-ink); background: linear-gradient(transparent 86%, rgba(199, 154, 94, .6) 86%); }
.ac-hero__lead { font-size: 1.12rem; max-width: 36em; color: #3d342d; }
.ac-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 20px; }
.ac-hero__facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .9rem; color: var(--muted); }
.ac-hero__facts li::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border: 1.5px solid var(--olive); transform: rotate(45deg) translateY(-1px); }
.ac-hero__sheet { margin: 0; background: var(--paper); border: 1px solid var(--rule); padding: 14px 14px 10px; box-shadow: 0 1px 0 #fff inset; }
.ac-hero__sheet figcaption { font-size: .82rem; color: var(--muted); padding-top: 6px; border-top: 1px solid #e3d8c7; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.ac-hero__sheet figcaption span { font-family: var(--display); color: var(--ink); font-size: .95rem; }
.ac-redraw { font: inherit; color: var(--clay-ink); background: none; border: 0; padding: 4px 2px; text-decoration: underline; cursor: pointer; }

.ac-elev { display: block; width: 100%; height: auto; }
.ac-elev .ac-ln { fill: none; stroke: var(--ink); stroke-width: 1.4; }
.ac-elev__dims .ac-ln { stroke: var(--clay); stroke-width: 1; }
.ac-elev__dims text { font: 600 13px var(--text); fill: var(--clay-ink); text-anchor: middle; }
.ac-elev__wall rect { fill: #efe6d8; }
.ac-elev__wall path { stroke: #dccdb8; stroke-width: 1; fill: none; }
.ac-elev__top { fill: #d9cfc0; stroke: var(--ink); stroke-width: 1.2; }
.ac-elev__kick { fill: #3b302a; }
.ac-elev__floor { stroke: var(--ink); stroke-width: 2; }
.ac-elev__fronts rect { fill: var(--oak); stroke: #4a3423; stroke-width: 1; }
.ac-elev__fronts rect.ac-pn { fill: url(#grain-hero) #c99f66; stroke: #5d432d; stroke-width: .8; }
.ac-elev__pulls path { stroke: var(--ink); stroke-width: 3; stroke-linecap: round; fill: none; }

/* drawing sequence: dims → boxes → fronts fill left to right → pulls */
.has-js .ac-elev .ac-ln { stroke-dasharray: 1; stroke-dashoffset: 1; }
.has-js .ac-elev__fronts g, .has-js .ac-elev__wall { opacity: 0; }
.has-js .ac-elev__pulls { opacity: 0; }
.has-js .ac-elev.is-drawn .ac-elev__dims .ac-ln { animation: ac-pen .7s ease-out forwards; }
.has-js .ac-elev.is-drawn .ac-elev__boxes .ac-ln { animation: ac-pen .8s ease-out .45s forwards; }
.has-js .ac-elev.is-drawn .ac-elev__wall { animation: ac-fade .5s ease 1s forwards; }
.has-js .ac-elev.is-drawn .ac-elev__fronts g { animation: ac-fill .45s ease calc(1.2s + var(--i) * .22s) forwards; }
.has-js .ac-elev.is-drawn .ac-elev__pulls { animation: ac-fade .35s ease 2.3s forwards; }
@keyframes ac-pen { to { stroke-dashoffset: 0; } }
@keyframes ac-fade { to { opacity: 1; } }
@keyframes ac-fill { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* ---------- section modules ---------- */
.ac-mod { max-width: 1240px; margin: 0 auto; padding: clamp(48px, 6vw, 88px) 24px; scroll-margin-top: 12px; }
.ac-mod:focus { outline: none; }
.ac-mod__head { max-width: 760px; margin-bottom: 32px; }
.ac-mod__head p { color: #3d342d; }
.ac-dim { position: relative; height: 22px; margin-bottom: 22px; }
.ac-dim::before { content: ""; position: absolute; left: 0; right: 0; top: 10px; height: 1px; background: var(--clay); transform-origin: 50% 50%; }
.ac-dim::after { content: ""; position: absolute; left: 0; right: 0; top: 2px; height: 17px; border-left: 1px solid var(--clay); border-right: 1px solid var(--clay); }
.ac-dim span { position: relative; z-index: 1; display: table; margin: 0 auto; padding: 0 12px; background: var(--plaster); font: 600 .78rem/22px var(--text); letter-spacing: .12em; text-transform: uppercase; color: var(--clay-ink); }
.has-js .ac-dim::before { transform: scaleX(.04); transition: transform .9s cubic-bezier(.3, .7, .2, 1); }
.has-js .ac-dim::after { opacity: 0; transition: opacity .3s .6s; }
.has-js .ac-dim.is-in::before { transform: none; }
.has-js .ac-dim.is-in::after { opacity: 1; }

/* What we build: a run of units of different widths */
.ac-units { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1.5fr 1fr 1.25fr 1fr 1.25fr; border: 2px solid var(--ink); background: var(--paper); }
.ac-unit { padding: 22px 18px 20px; border-right: 1px solid var(--rule); display: flex; flex-direction: column; }
.ac-unit:last-child { border-right: 0; }
.ac-unit svg { width: 100%; max-width: 150px; height: auto; margin-bottom: 14px; }
.ac-sk { fill: none; stroke: var(--walnut); stroke-width: 1.6; stroke-linejoin: round; }
.has-js .ac-unit .ac-sk { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.2s ease; }
.has-js .ac-unit.is-in .ac-sk { stroke-dashoffset: 0; }
.ac-unit h3 { font-size: 1.25rem; }
.ac-unit p { font-size: .96rem; }
.ac-unit__note { margin-top: auto; margin-bottom: 0; padding-top: 10px; border-top: 1px dashed var(--rule); font-size: .86rem !important; color: var(--muted); }

/* Door & finish study */
.ac-study { background: linear-gradient(var(--plaster), var(--plaster)); }
.ac-study__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.ac-pick { border: 0; padding: 0; margin: 0 0 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.ac-pick legend { font: 700 .78rem var(--text); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; padding: 0; }
.ac-pick label {
  position: relative; display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  padding: 9px 16px; border: 1.5px solid var(--ink); border-radius: 2px; background: var(--paper); font-weight: 600; font-size: .95rem;
}
.ac-pick input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.ac-pick label:has(input:checked) { background: var(--ink); color: var(--paper); }
.ac-pick label:has(input:focus-visible) { outline: 3px solid var(--clay); outline-offset: 2px; }
.ac-chip { width: 18px; height: 18px; border-radius: 50%; background: var(--c); border: 1.5px solid rgba(0, 0, 0, .35); flex: none; }
.ac-study__fig { margin: 0; background: var(--paper); border: 2px solid var(--ink); padding: 18px; }
.ac-vanity { display: block; width: 100%; max-width: 560px; height: auto; margin: 0 auto; }
.ac-vanity [data-vanity] * { transition: fill .35s ease; }
.ac-vanity__dim path { fill: none; stroke: var(--clay); stroke-width: 1; }
.ac-vanity__dim text { font: 600 12px var(--text); fill: var(--clay-ink); text-anchor: middle; paint-order: stroke; stroke: var(--paper); stroke-width: 6px; }
.ac-study__out { margin: 14px 0 0; display: grid; gap: 4px; font-size: .96rem; }
.ac-study__out strong { font-family: var(--display); font-weight: 400; font-size: 1.2rem; }
.ac-study__act { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--rule); }
.ac-study__note { margin: 0; font-size: .82rem; color: var(--muted); flex: 1 1 220px; }

/* Cut list */
.ac-cut__sheet { background: var(--paper); border: 2px solid var(--ink); }
.ac-cut__cols, .ac-row { display: grid; grid-template-columns: 64px minmax(160px, 1fr) minmax(0, 2.4fr) 64px; gap: 0 18px; align-items: start; }
.ac-cut__cols { padding: 10px 18px; background: var(--ink); color: var(--paper); font: 700 .74rem var(--text); letter-spacing: .14em; text-transform: uppercase; }
.ac-cut__list { list-style: none; margin: 0; padding: 0; }
.ac-row { padding: 18px; border-top: 1px solid var(--rule); }
.ac-row:first-child { border-top: 0; }
.ac-row__part { font-family: var(--display); font-size: 1.8rem; line-height: 1; color: var(--clay-ink); }
.ac-row__step { margin: 0; font-size: 1.2rem; }
.ac-row__what p { margin: 0 0 6px; font-size: .97rem; }
.ac-row__get { color: var(--muted); font-size: .9rem !important; }
.ac-row--key { background: repeating-linear-gradient(135deg, transparent 0 10px, rgba(176, 79, 44, .06) 10px 12px); }
.ac-row--key .ac-row__step::after { content: "No signature, no saw."; display: block; margin-top: 6px; font: 600 .78rem var(--text); color: var(--clay-ink); letter-spacing: .04em; }
.ac-tick { justify-self: center; width: 34px; height: 34px; border: 1.5px solid var(--ink); background: #fff; }
.ac-tick svg { width: 100%; height: 100%; fill: none; stroke: var(--olive); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.has-js .ac-tick path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .5s ease .15s; }
.has-js .ac-row.is-cut .ac-tick path { stroke-dashoffset: 0; }

/* Company */
.ac-firm__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.ac-firm__text h3 { margin-top: 1.4em; }
.ac-person { display: flex; gap: 14px; align-items: center; margin: 18px 0; padding: 14px; background: var(--paper); border-left: 4px solid var(--oak); }
.ac-person p { margin: 0; }
.ac-person__mono { flex: none; display: grid; place-items: center; width: 54px; height: 54px; background: var(--walnut); color: var(--paper); font-family: var(--display); font-size: 1.3rem; letter-spacing: .06em; }
.ac-firm__list { margin: 0; padding-left: 1.2em; }
.ac-firm__list li { margin-bottom: 6px; }
.ac-firm__list li::marker { content: "▭  "; color: var(--clay); }
.ac-card { background: var(--paper); border: 2px solid var(--ink); padding: 22px; position: relative; }
.ac-card::before { content: ""; position: absolute; left: -2px; right: -2px; top: -12px; height: 10px; background: var(--oak); border: 2px solid var(--ink); border-bottom: 0; }
.ac-card__k { font: 700 .76rem var(--text); letter-spacing: .14em; text-transform: uppercase; color: var(--clay-ink); }
.ac-card dl { margin: 0 0 18px; }
.ac-card dl div { display: grid; grid-template-columns: 120px 1fr; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--rule); }
.ac-card dt { font-weight: 700; font-size: .9rem; }
.ac-card dd { margin: 0; font-size: .95rem; }

/* FAQ: drawers */
.ac-drawers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 10px; background: var(--walnut); border: 2px solid var(--ink); align-items: start; }
.ac-drawer h3 { margin: 0; }
.ac-drawer button {
  width: 100%; min-height: 96px; display: flex; flex-direction: column; justify-content: space-between; align-items: center; gap: 12px;
  padding: 16px 16px 12px; text-align: center; font: 600 1rem/1.3 var(--text); color: var(--ink);
  background: var(--oak); border: 1.5px solid #3a2a1e; border-radius: 2px; cursor: pointer;
  box-shadow: inset 0 0 0 5px rgba(255, 255, 255, .12); transition: background-color .2s;
}
.ac-drawer button:hover { background: #e6c08c; }
.ac-drawer button[aria-expanded="true"] { background: #ecca98; }
.ac-drawer__box { background: var(--paper); border: 1.5px solid #3a2a1e; border-top: 0; margin: 0 8px; padding: 14px 16px 6px; font-size: .96rem; box-shadow: inset 0 8px 10px -8px rgba(0, 0, 0, .35); }
.ac-drawer__box[hidden] { display: none; }
.has-js .ac-drawer__box:not([hidden]) { animation: ac-slide .35s cubic-bezier(.2, .7, .2, 1); transform-origin: top; }
@keyframes ac-slide { from { transform: scaleY(.6); opacity: 0; } to { transform: none; opacity: 1; } }

/* Order sheet */
.ac-sheet { background: var(--paper); border: 2px solid var(--ink); padding: clamp(18px, 3vw, 36px); max-width: 1000px; margin: 0 auto; position: relative; }
.ac-sheet__block { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 24px; padding-bottom: 20px; margin-bottom: 22px; border-bottom: 2px solid var(--ink); }
.ac-stamp { position: relative; margin: 0; border: 1.5px solid var(--ink); align-self: start; font-size: .88rem; }
.ac-stamp div { display: grid; grid-template-columns: 70px 1fr; border-top: 1px solid var(--rule); }
.ac-stamp div:first-child { border-top: 0; }
.ac-stamp dt { padding: 6px 8px; font-weight: 700; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); border-right: 1px solid var(--rule); }
.ac-stamp dd { margin: 0; padding: 6px 8px; overflow-wrap: anywhere; }
.ac-stamp .ac-stamp__rcv {
  display: none; position: absolute; inset: auto 10px 10px auto; border: 2.5px solid var(--olive); color: var(--olive);
  padding: 2px 10px; font: 800 .9rem var(--text); letter-spacing: .2em; text-transform: uppercase; transform: rotate(-8deg); background: rgba(250, 246, 239, .9);
}
.ac-sheet.is-sent .ac-stamp__rcv { display: block; animation: ac-stamp .4s cubic-bezier(.3, 1.4, .5, 1); }
@keyframes ac-stamp { from { transform: rotate(-8deg) scale(1.6); opacity: 0; } to { transform: rotate(-8deg) scale(1); opacity: 1; } }
.ac-sheet__fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 22px; }
.ac-f { margin: 0 0 8px; min-width: 0; }
.ac-f--wide { grid-column: 1 / -1; }
.ac-f label, .ac-f legend { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 4px; }
.ac-f input[type=text], .ac-f input[type=tel], .ac-f input[type=email], .ac-f select, .ac-f textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: #fff;
  border: 0; border-bottom: 2px solid var(--ink); border-radius: 0; padding: 10px 6px; min-height: 46px;
}
.ac-f textarea { border: 2px solid var(--ink); resize: vertical; }
.ac-f [aria-invalid="true"] { border-color: #a3261b; background: #fff5f2; }
.ac-f--radio { border: 1px solid var(--rule); padding: 10px 12px 6px; display: flex; flex-wrap: wrap; gap: 4px 16px; }
.ac-f--radio legend { padding: 0 6px; }
.ac-f--radio label { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; font-size: .93rem; margin: 0; min-height: 32px; }
.ac-f--radio input { accent-color: var(--clay); width: 18px; height: 18px; }
.ac-err { min-height: 1.2em; margin: 4px 0 0; color: #a3261b; font-size: .86rem; font-weight: 600; }
.ac-hint { margin: 4px 0 0; color: var(--muted); font-size: .86rem; }
.ac-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ac-sheet__foot { margin-top: 16px; display: grid; gap: 10px; justify-items: start; }
.ac-sheet__small { margin: 0; font-size: .86rem; color: var(--muted); max-width: 60em; }
.ac-status { margin: 0; font-weight: 600; }
.ac-status[data-state="ok"] { color: #3f4a1d; background: #ecebd8; padding: 10px 14px; border-left: 4px solid var(--olive); }
.ac-status[data-state="error"] { color: #8a2016; background: #fbe9e4; padding: 10px 14px; border-left: 4px solid #a3261b; }
.ac-btn[aria-busy="true"] { opacity: .7; cursor: progress; }

/* ---------- footer: countertop over a base ---------- */
.ac-counter { margin-top: 40px; color: var(--paper); }
.ac-counter__top { height: 22px; background: #d9cfc0; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.ac-counter__body {
  display: grid; grid-template-columns: 1fr 1.4fr auto; gap: 28px; padding: 34px max(24px, calc((100% - 1192px) / 2));
  background: var(--walnut); font-size: .95rem;
}
.ac-counter a, .ac-counter button { color: #f6e9d5; }
.ac-counter__name { font-family: var(--display); font-size: 1.4rem; letter-spacing: .06em; }
.ac-counter__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; align-content: start; }
.ac-counter__links button { font: inherit; background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; text-underline-offset: .18em; }
.ac-counter__copy { margin: 0; padding: 12px max(24px, calc((100% - 1192px) / 2)); background: #47301f; font-size: .85rem; }
.ac-counter__kick { height: 18px; background: #1f1814; }

/* ---------- cookie banner: a finish sample chip ---------- */
.ac-consent {
  position: fixed; right: 16px; bottom: calc(var(--bank-h) + 28px); z-index: 40; width: min(380px, calc(100% - 32px));
  background: var(--paper); color: var(--ink); border: 2px solid var(--ink); padding: 26px 18px 16px;
  box-shadow: 0 14px 34px rgba(43, 36, 32, .3);
}
.ac-consent::before { content: ""; position: absolute; left: -2px; right: -2px; top: -2px; height: 12px; background: var(--oak) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='12'%3E%3Cpath d='M0 4c10-2 20 2 40 0M0 9c14 2 26-2 40 1' fill='none' stroke='%235a3b28' stroke-opacity='.35'/%3E%3C/svg%3E"); border: 2px solid var(--ink); }
.ac-consent::after { content: ""; position: absolute; right: 14px; top: 22px; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--ink); background: var(--plaster); }
.ac-consent[hidden] { display: none; }
.ac-consent h2 { font-size: 1.2rem; margin-bottom: .4em; padding-right: 20px; }
.ac-consent p { font-size: .86rem; margin-bottom: 12px; }
.ac-consent__row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ac-consent__btn { min-height: 44px; font: 600 .92rem var(--text); background: var(--ink); color: var(--paper); border: 2px solid var(--ink); border-radius: 2px; cursor: pointer; }
.ac-consent__btn:hover { background: #46392f; }
.ac-consent__more { grid-column: 1 / -1; min-height: 40px; font: 600 .9rem var(--text); background: transparent; color: var(--ink); border: 1.5px dashed var(--ink); border-radius: 2px; cursor: pointer; }
.ac-prefs { max-width: 520px; width: calc(100% - 32px); border: 2px solid var(--ink); background: var(--paper); color: var(--ink); padding: 24px; }
.ac-prefs::backdrop { background: rgba(43, 36, 32, .55); }
.ac-prefs h2 { font-size: 1.5rem; }
.ac-prefs p { font-size: .92rem; }
.ac-prefs__cat { display: grid; grid-template-columns: 1fr auto; gap: 2px 14px; padding: 12px 0; border-top: 1px dashed var(--rule); }
.ac-prefs__cat h3 { font-family: var(--text); font-weight: 700; font-size: 1rem; margin: 0; }
.ac-prefs__cat p { grid-column: 1 / -1; margin: 0; color: var(--muted); }
.ac-prefs__cat > span { font-size: .85rem; color: var(--olive); font-weight: 700; }
.ac-prefs__switch { position: relative; width: 48px; height: 26px; }
.ac-prefs__switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.ac-prefs__switch span { position: absolute; inset: 0; background: #cfc3b1; border: 1.5px solid var(--ink); border-radius: 14px; transition: background-color .2s; }
.ac-prefs__switch span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 17px; height: 17px; border-radius: 50%; background: var(--ink); transition: transform .2s; }
.ac-prefs__switch input:checked + span { background: var(--olive); }
.ac-prefs__switch input:checked + span::after { transform: translateX(21px); background: #fff; }
.ac-prefs__switch input:focus-visible + span { outline: 3px solid var(--clay); outline-offset: 2px; }
.ac-prefs__row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
.ac-prefs__row button { min-height: 44px; font: 600 .92rem var(--text); background: var(--ink); color: var(--paper); border: 2px solid var(--ink); border-radius: 2px; cursor: pointer; }
.ac-prefs__row button[data-d="save"] { grid-column: 1 / -1; background: transparent; color: var(--ink); border-style: dashed; }

/* ---------- legal pages ---------- */
body.ac-page { padding-bottom: 0; }
body.ac-page .ac-consent { bottom: 16px; }
.ac-inline-btn { font: inherit; color: var(--clay-ink); background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; text-underline-offset: .18em; }
.ac-doc { max-width: 860px; margin: 0 auto; padding: 40px 24px 60px; }
.ac-doc h1 { font-size: clamp(2.1rem, 1.4rem + 2.4vw, 3.1rem); }
.ac-doc h2 { font-size: 1.6rem; margin-top: 1.8em; padding-top: .6em; border-top: 1px solid var(--rule); }
.ac-doc h3 { font-size: 1.15rem; margin-top: 1.3em; }
.ac-doc ul { padding-left: 1.2em; }
.ac-doc li { margin-bottom: .4em; }
.ac-doc__date { color: var(--muted); font-size: .92rem; }
.ac-doc table { width: 100%; border-collapse: collapse; font-size: .9rem; margin: 12px 0 20px; background: var(--paper); }
.ac-doc th, .ac-doc td { text-align: left; padding: 8px 10px; border: 1px solid var(--rule); vertical-align: top; }
.ac-doc th { background: #e4d8c5; }
.ac-tablewrap { overflow-x: auto; }
.ac-lost { max-width: 760px; margin: 0 auto; padding: 50px 24px 70px; text-align: center; }
.ac-lost svg { width: min(320px, 100%); height: auto; margin: 0 auto 18px; display: block; }
.ac-lost .ac-ln { fill: none; stroke: var(--ink); stroke-width: 1.6; }
.ac-lost .ac-gap { fill: none; stroke: var(--clay); stroke-width: 1.4; stroke-dasharray: 5 4; }
.ac-lost text { font: 600 13px var(--text); fill: var(--clay-ink); text-anchor: middle; }
.ac-lost__nav { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 22px; }
.ac-pagebank { display: flex; justify-content: center; gap: 6px; padding: 6px; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .ac-units { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ac-unit:nth-child(3) { border-right: 0; }
  .ac-unit:nth-child(n+4) { border-top: 1px solid var(--rule); }
  .ac-drawers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .ac-hero, .ac-study__grid, .ac-firm__grid { grid-template-columns: minmax(0, 1fr); }
  .ac-counter__body { grid-template-columns: 1fr 1fr; }
  .ac-counter__links { grid-column: 1 / -1; grid-template-columns: repeat(2, auto); justify-content: start; gap: 8px 24px; }
}
@media (max-width: 760px) {
  :root { --bank-h: 62px; }
  .ac-bank { bottom: 0; width: 100%; border-radius: 0; border-width: 2px 0 0; padding: 5px 5px 0; }
  .ac-bank__mini { display: grid; }
  .ac-bank__mini .ac-front { height: 46px; }
  .ac-bank__run { display: none; position: absolute; left: 8px; right: 8px; bottom: calc(100% + 8px); grid-template-columns: 1fr; padding: 8px; background: var(--walnut); border: 2px solid var(--ink); }
  .ac-bank.is-open .ac-bank__run { display: grid; }
  .ac-bank__run .ac-front { flex-direction: row; justify-content: space-between; height: 48px; padding: 0 16px; font-size: .95rem; }
  .ac-bank__run .ac-front[aria-current="true"] { transform: translateX(6px); box-shadow: inset 0 0 0 4px rgba(255, 255, 255, .12), -6px 0 0 -1px #2a1d14; }
  .ac-bank__kick { height: 6px; }
  .ac-top { padding: 12px 16px 8px; gap: 4px 14px; }
  .ac-brand__name { font-size: 1.2rem; }
  .ac-top__lic { order: 3; width: 100%; font-size: .8rem; }
  .ac-hero { padding: 20px 16px 36px; }
  .ac-hero h1 { font-size: clamp(2rem, 1.3rem + 3.2vw, 2.4rem); }
  .ac-hero__lead { font-size: 1rem; }
  .ac-hero__cta { margin: 16px 0 14px; }
  .ac-hero__cta .ac-btn { flex: 1 1 160px; }
  .ac-mod { padding: 44px 16px; }
  .ac-units { grid-template-columns: minmax(0, 1fr); }
  .ac-unit { border-right: 0; border-top: 1px solid var(--rule); display: grid; grid-template-columns: 84px 1fr; gap: 0 14px; }
  .ac-unit:first-child { border-top: 0; }
  .ac-unit svg { grid-row: 1 / span 3; margin: 0; }
  .ac-drawers { grid-template-columns: minmax(0, 1fr); }
  .ac-drawer button { min-height: 72px; }
  .ac-cut__cols { display: none; }
  .ac-row { grid-template-columns: 40px minmax(0, 1fr) 40px; gap: 4px 12px; padding: 16px 14px; }
  .ac-row__what { grid-column: 2 / 3; }
  .ac-row__part { grid-row: 1 / span 2; }
  .ac-tick { grid-column: 3; grid-row: 1 / span 2; width: 30px; height: 30px; }
  .ac-sheet__block { grid-template-columns: minmax(0, 1fr); }
  .ac-sheet__fields { grid-template-columns: minmax(0, 1fr); }
  .ac-card dl div { grid-template-columns: 1fr; gap: 0; }
  .ac-counter__body { grid-template-columns: 1fr; }
  .ac-consent { left: 8px; right: 8px; width: auto; bottom: calc(var(--bank-h) + 8px); padding: 20px 14px 12px; }
  .ac-consent h2 { font-size: 1.05rem; }
  .ac-consent p { font-size: .8rem; margin-bottom: 8px; }
  .ac-consent__btn, .ac-consent__more { min-height: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .has-js .ac-elev .ac-ln, .has-js .ac-unit .ac-sk, .has-js .ac-tick path { stroke-dashoffset: 0; }
  .has-js .ac-elev__fronts g, .has-js .ac-elev__wall, .has-js .ac-elev__pulls { opacity: 1; }
  .has-js .ac-dim::before { transform: none; }
  .has-js .ac-dim::after { opacity: 1; }
}

/* Cookie settings dialog: Cookie Policy + Privacy Policy links next to the buttons; cookies.html inline button */
.ac-prefs .ac-prefs__links { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 2px 0 0; font-size: .86rem; }
.ac-prefs__links a { color: var(--clay-ink); text-decoration: underline; text-underline-offset: .18em; }

