/* Anamorphics Website — kit-specific styles. Tokens come from colors_and_type.css.
   Companion JS (load after this stylesheet, before your page script):
     website.js        — scroll reveal, curtain reveal, nav condense-on-scroll,
                          editorial work-list hover preview, live tweak hooks
     smoke.js + smoke-shaders.js  — optional ambient WebGL smoke background;
                          tag a <canvas id="smoke-canvas"> fixed behind the page
                          and mark mood sections with [data-smoke="hero|work|quote|footer"].
                          Falls back to the flat ink ground with no canvas present.
     testimonials.js + this file's .tcar/.tslide/.tedge/.tdots rules — the
                          edge-magnet testimonial carousel; boots automatically
                          against any [data-testimonials] section. */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

/* Focus: one on-brand ring for the whole site, keyboard only (2026-11-19).
   Mouse and touch clicks show nothing (:focus-visible); Tab always shows the
   ring, so keyboard users never lose their place. Replaces the browser's blue
   default. Components that mark focus another way set outline: none locally. */
:focus:not(:focus-visible) { outline: none; }
:focus-visible { outline: var(--focus-ring); outline-offset: 4px; }
body { background: var(--bg); color: var(--fg); font-family: var(--font-sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
ul, ol { list-style: none; margin: 0; padding: 0; }
button { font: inherit; cursor: pointer; }

/* ---------- shared ---------- */
.am-container { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--gutter); }
.am-eyebrow {
  font-family: var(--font-sans); font-weight: 500; font-size: 11px;
  letter-spacing: var(--track-eyebrow); text-transform: uppercase; color: var(--fg-2);
}
.am-section-head { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; padding: var(--s-9) var(--gutter) var(--s-7); align-items: start; }
.am-section-title {
  font-family: var(--font-display); font-weight: 300; font-size: var(--fs-3xl);
  line-height: 1.05; letter-spacing: -0.018em; margin: 0; text-wrap: balance;
}

/* ---------- nav ---------- */
.am-nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gutter);
  background: rgba(14,14,14,0.0);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  border-bottom: 1px solid transparent;
  transition: background var(--dur-base) var(--ease-out),
              backdrop-filter var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out);
}
.am-nav--scrolled {
  background: rgba(14,14,14,0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.am-nav__brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.am-nav__mark { height: 22px; width: auto; }
.am-nav__wordmark {
  font-family: var(--font-sans); font-weight: 500; font-size: 12px;
  letter-spacing: var(--track-wordmark); color: var(--fg);
}
.am-nav__items { display: flex; align-items: center; gap: 32px; }
.am-nav__link {
  font-size: 14px; font-weight: 400; color: var(--fg); text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out);
}
.am-nav__link:hover { color: var(--accent); }
.am-nav__cta {
  background: transparent; color: var(--fg); border: 1px solid var(--line-strong);
  padding: 10px 18px; font-size: 13px; font-weight: 500; letter-spacing: 0.02em; text-decoration: none;
  border-radius: 0; transition: background var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast);
}
.am-nav__cta:hover { background: var(--paper-200); color: var(--ink-900); border-color: var(--paper-200); }

/* ---------- hero ---------- */
.am-hero {
  min-height: calc(100vh - 60px);
  padding: var(--s-9) var(--gutter) var(--s-8);
  display: flex; flex-direction: column; justify-content: space-between;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.am-hero__meta { display: flex; justify-content: space-between; align-items: baseline; }
.am-hero__eyebrow {
  font-family: var(--font-sans); font-weight: 500; font-size: 11px;
  letter-spacing: var(--track-eyebrow); text-transform: uppercase; color: var(--fg-2);
}
.am-hero__loc {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--fg-3);
}
.am-hero__title {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(48px, 8.4vw, 132px); line-height: 1.02; letter-spacing: -0.025em;
  margin: 0; text-wrap: balance; max-width: 1200px;
  font-variation-settings: 'opsz' 72;
  opacity: 0; transform: translateY(8px);
  transition: opacity var(--dur-curtain) var(--ease-out), transform var(--dur-curtain) var(--ease-out);
}
.am-hero__title.is-revealed { opacity: 1; transform: translateY(0); }
.am-hero__title em { font-style: italic; color: var(--accent-500); font-family: var(--font-serif); }
.am-hero__foot {
  display: grid; grid-template-columns: 2fr 1fr; gap: 48px;
  align-items: end; margin-top: var(--s-8);
}
.am-hero__lede {
  font-family: var(--font-serif); font-style: italic; font-weight: 300;
  font-size: var(--fs-xl); line-height: 1.4; max-width: 620px;
  color: var(--fg); margin: 0;
  font-variation-settings: 'opsz' 24;
}
.am-hero__counter {
  display: flex; align-items: center; gap: 12px; justify-content: flex-end;
  font-family: var(--font-mono); font-size: 13px; color: var(--fg-2);
}
.am-hero__counter-num { color: var(--fg); font-weight: 500; }
.am-hero__counter-rule { width: 36px; height: 1px; background: var(--line-strong); }
.am-hero__counter-total { color: var(--fg-3); }

/* ---------- what we do ---------- */
.am-wwd { padding-bottom: var(--s-9); border-bottom: 1px solid var(--line); }
.am-wwd__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; padding: 0 var(--gutter); }
.am-wwd__col { padding: var(--s-7) var(--s-6) var(--s-7) 0; border-left: 1px solid var(--line); padding-left: var(--s-6); display: flex; flex-direction: column; gap: var(--s-5); }
.am-wwd__col:first-child { border-left: 0; padding-left: 0; }
.am-wwd__col-head { display: flex; align-items: baseline; gap: 16px; }
.am-wwd__num { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; color: var(--accent-500); }
.am-wwd__col-title { font-family: var(--font-display); font-weight: 300; font-size: 36px; letter-spacing: -0.02em; margin: 0; }
.am-wwd__col-body { font-size: 15px; line-height: 1.62; color: var(--fg); margin: 0; max-width: 36ch; }
.am-wwd__list { display: flex; flex-direction: column; gap: 8px; padding-top: var(--s-3); border-top: 1px solid var(--line); }
.am-wwd__list li { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--fg-2); }

/* ---------- placeholder ---------- */
.am-ph { position: relative; width: 100%; aspect-ratio: 16/10; overflow: hidden; }
.am-ph__overlay { position: absolute; inset: 0; background: radial-gradient(ellipse at 70% 50%, rgba(255,255,255,0.04), transparent 60%); }
.am-ph__meta { position: absolute; left: 16px; bottom: 14px; display: flex; flex-direction: column; gap: 4px; }
.am-ph__label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(245,241,234,0.7); }
.am-ph__project { font-family: var(--font-serif); font-style: italic; font-weight: 300; font-size: 15px; color: rgba(245,241,234,0.85); }

/* ---------- selected work ---------- */
.am-sw { padding-bottom: var(--s-9); border-bottom: 1px solid var(--line); position: relative; }
.am-sw__list { padding: 0 var(--gutter); }
.am-sw__row {
  display: grid;
  grid-template-columns: 112px 1.4fr 1.2fr 100px;   /* 112px fits "2023—present" (was 80px) */
  align-items: baseline;
  gap: 24px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  cursor: pointer;
  transition: padding-left var(--dur-base) var(--ease-out), color var(--dur-fast);
}
.am-sw__row:last-child { border-bottom: 1px solid var(--line); }
.am-sw__row.is-hover { padding-left: 24px; }
.am-sw__row.is-hover .am-sw__name { color: var(--accent-500); }
.am-sw__year { font-family: var(--font-mono); font-size: 12px; color: var(--fg-3); letter-spacing: 0.04em; }
.am-sw__name { font-family: var(--font-display); font-weight: 300; font-size: 36px; letter-spacing: -0.02em; transition: color var(--dur-fast); }
.am-sw__disc { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-2); }
.am-sw__view { font-size: 13px; text-align: right; color: var(--fg-2); }
.am-sw__row.is-hover .am-sw__view { color: var(--fg); }
.am-sw__arrow { display: inline-block; transition: transform var(--dur-base) var(--ease-out); }
.am-sw__row.is-hover .am-sw__arrow { transform: translateX(6px); }

.am-sw__preview {
  position: fixed;
  right: 32px; bottom: 32px;
  width: 360px;
  z-index: 30;
  pointer-events: none;
  border: 1px solid var(--line);
  background: var(--ink-800);
  display: flex; flex-direction: column;
}
.am-sw__preview-tag { padding: 14px 16px; font-size: 13px; line-height: 1.5; color: var(--fg); margin: 0; }

/* ---------- approach (cream) ---------- */
.am-approach { padding-bottom: var(--s-9); }
.am-approach__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; padding: 0 var(--gutter); border-top: 1px solid var(--paper-400); }
.am-approach__cell { padding: var(--s-6) var(--s-5) var(--s-7) 0; display: flex; flex-direction: column; gap: var(--s-4); border-right: 1px solid var(--paper-400); padding-left: var(--s-5); }
.am-approach__cell:first-child { padding-left: 0; }
.am-approach__cell:last-child { border-right: 0; }
.am-approach__num-row { display: flex; align-items: center; gap: 12px; }
.am-approach__num { font-family: var(--font-mono); font-size: 12px; color: var(--accent-700-text); letter-spacing: 0.04em; }
.am-approach__hr { flex: 1; height: 1px; background: var(--paper-500); }
.am-approach__title { font-family: var(--font-display); font-weight: 300; font-size: 32px; letter-spacing: -0.02em; margin: 0; }
.am-approach__body { font-size: 14px; line-height: 1.6; color: var(--fg); margin: 0; }

/* ---------- testimonial ---------- */
.am-quote { padding: var(--s-9) var(--gutter); border-bottom: 1px solid var(--line); }
.am-quote__inner { max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: 80px 1fr; gap: 24px; align-items: start; }
.am-quote__mark { font-family: var(--font-serif); font-weight: 300; font-size: 96px; line-height: 0.7; color: var(--accent); margin-top: -8px; }
.am-quote__body { font-family: var(--font-serif); font-style: italic; font-weight: 300; font-size: 36px; line-height: 1.32; letter-spacing: -0.005em; color: var(--fg); margin: 0; max-width: 24ch; text-wrap: balance; }
.am-quote__cite { display: flex; flex-direction: column; gap: 4px; margin-top: var(--s-5); }
.am-quote__name { font-family: var(--font-sans); font-weight: 500; font-size: 14px; color: var(--fg); letter-spacing: 0.01em; }
.am-quote__role { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--fg-3); }

/* ---------- footer ---------- */
.am-footer { padding: var(--s-9) var(--gutter) var(--s-6); }
.am-footer__hero { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; align-items: end; padding-bottom: var(--s-8); }
.am-footer__pitch { grid-column: 2; font-family: var(--font-display); font-weight: 300; font-size: clamp(40px, 5.5vw, 80px); line-height: 1.04; letter-spacing: -0.02em; margin: 0; max-width: 16ch; text-wrap: balance; }
.am-footer__email { grid-column: 2; font-family: var(--font-serif); font-style: italic; font-size: 28px; color: var(--accent-500); text-decoration: none; border-bottom: 1px solid var(--accent-700); padding-bottom: 4px; align-self: start; justify-self: start; margin-top: var(--s-5); }
.am-footer__email:hover { color: var(--accent); border-bottom-color: var(--accent); }
.am-footer__cols { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr 1.5fr; gap: 32px; padding-top: var(--s-7); border-top: 1px solid var(--line); }
.am-footer__col { display: flex; flex-direction: column; gap: 14px; }
.am-footer__col--mark { align-items: flex-end; justify-content: flex-end; }
.am-footer__lockup { width: 240px; opacity: 0.92; }
.am-footer__col-h { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-3); }
.am-footer__col-list { display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--fg); }
.am-footer__rule { height: 1px; background: var(--line); margin: var(--s-7) 0 var(--s-5); }
.am-footer__base { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--fg-3); }

/* ---------- inquire overlay ---------- */
.am-overlay { position: fixed; inset: 0; background: rgba(10,10,10,0.84); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); z-index: 100; display: flex; align-items: center; justify-content: center; padding: 32px; }
.am-overlay__inner { background: var(--ink-800); border: 1px solid var(--line); width: 100%; max-width: 640px; padding: var(--s-7); display: flex; flex-direction: column; gap: var(--s-5); position: relative; }
.am-overlay__close { position: absolute; top: 16px; right: 16px; background: transparent; border: 1px solid var(--line); color: var(--fg-2); width: 32px; height: 32px; display: grid; place-items: center; }
.am-overlay__close:hover { color: var(--fg); border-color: var(--line-strong); }
.am-overlay h3 { font-family: var(--font-display); font-weight: 300; font-size: 36px; letter-spacing: -0.02em; margin: 0; }
.am-field { display: flex; flex-direction: column; gap: 6px; }
.am-field label { font-family: var(--font-sans); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--fg-2); }
.am-field input, .am-field textarea { background: var(--ink-900); box-shadow: inset 0 0 0 1px var(--line); border: 0; padding: 14px 16px; font-family: var(--font-sans); font-size: 15px; color: var(--fg); border-radius: 2px; outline: none; transition: box-shadow var(--dur-fast); }
.am-field input:focus, .am-field textarea:focus { box-shadow: inset 0 0 0 1.5px var(--accent); }
.am-overlay__submit { background: var(--paper-200); color: var(--ink-900); border: 0; padding: 14px 26px; font-family: var(--font-sans); font-weight: 500; font-size: 14px; letter-spacing: 0.02em; align-self: flex-start; }
.am-overlay__submit:hover { background: var(--paper-100); }

/* ============================================================================
   SITE LAYER — motion, chrome, and the components that carry the current
   site's editorial character. Ported from the live Anamorphics site build;
   this is now the default expression of the kit, not an optional extra.
   ============================================================================ */

/* ---------- scroll reveal + image curtain (website.js drives .is-in) ---- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal--d1 { transition-delay: 70ms; } .reveal--d2 { transition-delay: 140ms; }
.reveal--d3 { transition-delay: 210ms; } .reveal--d4 { transition-delay: 280ms; }
.curtain { position: relative; overflow: hidden; }
.curtain::after { content: ""; position: absolute; inset: 0; background: var(--paper-200); transform: scaleY(1); transform-origin: top; transition: transform var(--dur-curtain) var(--ease-out); }
.curtain.is-in::after { transform: scaleY(0); transform-origin: bottom; }
.reveal-forced { opacity: 1 !important; transform: none !important; transition: none !important; }
.reveal-forced.curtain::after { display: none !important; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .curtain::after { display: none; } }
body[data-motion="off"] .reveal { opacity: 1; transform: none; transition: none; }
body[data-motion="off"] .curtain::after { display: none; }
@media print { .reveal, .curtain { opacity: 1 !important; transform: none !important; } .curtain::after { display: none !important; } }

/* ---------- nav condense-on-scroll: full lockup -> mark, on one sticky bar */
html { overflow-anchor: none; } /* prevents size-pulsing as the header height changes */
.am-nav { /* size tokens + position: fixed live in site.css (see the header-condense notes there) */
  padding-top: var(--nav-pad-top); padding-bottom: var(--nav-pad-top);
  transition: background var(--dur-base) var(--ease-out), backdrop-filter var(--dur-base) var(--ease-out),
    border-color var(--dur-base) var(--ease-out), padding-top var(--dur-base) var(--ease-out), padding-bottom var(--dur-base) var(--ease-out); }
.am-nav.is-condensed { padding-top: var(--nav-pad-condensed); padding-bottom: var(--nav-pad-condensed);
  background: rgba(14,14,14,0.72); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.am-nav__brand { display: grid; align-items: center; gap: 0; }
.am-nav__brand > img { grid-area: 1 / 1; justify-self: start; align-self: center; width: auto; transform-origin: left center; }
.am-nav__logo-full { height: var(--nav-logo-h); transition: height var(--dur-base) var(--ease-out), opacity var(--dur-base) var(--ease-out); }
.am-nav__logo-mark { height: var(--nav-mark-h); opacity: 0; transition: height var(--dur-base) var(--ease-out), opacity var(--dur-base) var(--ease-out); }
.am-nav.is-condensed .am-nav__logo-full { height: var(--nav-mark-h); opacity: 0; }
.am-nav.is-condensed .am-nav__logo-mark { opacity: 1; }
.am-nav__brand:hover .am-nav__wordmark { color: var(--accent-500); }
@media (prefers-reduced-motion: reduce) { .am-nav, .am-nav__logo-full, .am-nav__logo-mark { transition: none; } }

/* ---------- selected-work hover preview tile (fixed, follows the list) -- */
.am-sw__preview, .pvtile { position: fixed; right: 32px; bottom: 32px; width: 360px; z-index: 30;
  pointer-events: none; border: 1px solid var(--line); background: var(--ink-800);
  opacity: 0; transform: translateY(10px); transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out); }
.am-sw__preview.is-on, .pvtile.is-on { opacity: 1; transform: none; }
.pvtile__img { aspect-ratio: 16/10; }
.pvtile__tag { padding: 14px 16px; font-size: 13px; line-height: 1.5; color: var(--fg); margin: 0; }
@media (max-width: 980px) { .am-sw__preview, .pvtile { display: none; } }
.am-sw__row:hover, .am-sw__row.is-hover { padding-left: 24px; }
.am-sw__row:hover .am-sw__name, .am-sw__row.is-hover .am-sw__name { color: var(--accent-500); }
.am-sw__row:hover .am-sw__view, .am-sw__row.is-hover .am-sw__view { color: var(--fg); }
.am-sw__row:hover .am-sw__arrow, .am-sw__row.is-hover .am-sw__arrow { transform: translateX(6px); }

/* ---------- clients marquee — two rows, opposing directions, seamless loop
   Alternative to the static .clients__grid wall; JS duplicates each row's
   markup once (via [data-marquee]) so the -50% loop is gapless. Prefer the
   marquee for long client lists; the static wall for a short, deliberate set. */
.mstrip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; padding: 26px 0; display: grid; gap: 14px; }
.mrow { display: flex; width: max-content; animation: marq 72s linear infinite; will-change: transform; }
.mrow--rev { animation-direction: reverse; }
body[data-motion="off"] .mrow { animation: none; }
@keyframes marq { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.mrow__item { display: inline-flex; align-items: center; font-family: var(--font-display); font-weight: 400; font-size: 26px; color: var(--fg-2); letter-spacing: -0.01em; white-space: nowrap; }
.mrow__name { padding: 0 28px; }
.mrow__sep { color: var(--accent-500); font-size: 18px; line-height: 1; }
body[data-accent="low"] .mrow__sep { color: var(--fg-3); }

/* ---------- clients wall (static grid alternative to the marquee) ------- */
.clients__grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.clients__cell { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 26px 24px; min-height: 92px; display: flex; align-items: center;
  font-family: var(--font-display); font-weight: 300; font-size: 19px; letter-spacing: -0.01em; color: var(--fg-2);
  transition: color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out); }
.clients__cell:hover { color: var(--fg); background: var(--ink-800); }
.on-paper .clients__cell:hover { background: var(--paper-300); }
.clients__cell .since { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; color: var(--accent-500); margin-left: auto; padding-left: 14px; text-transform: uppercase; }
body[data-accent="low"] .clients__cell .since { color: var(--fg-3); }

/* ---------- ambient smoke background scrims — for [data-smoke] windows -- */
#smoke-canvas { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; pointer-events: none; }
.solid-ink { background: var(--ink-900); }
.smoke-window { background: transparent; position: relative; }
.smoke-window > :not(.sw-scrim) { position: relative; z-index: 1; }
.sw-scrim { position: absolute; inset: 0; z-index: 0; pointer-events: none; }

/* ---------- footer refinements: link hover, social row, pref badge ----- */
.am-footer__col-list a { color: inherit; text-decoration: none; transition: color var(--dur-fast) var(--ease-out); cursor: pointer; }
.am-footer__col-list a:hover { color: var(--accent-500); }
.am-footer__pref { font-size: 10px; font-weight: 700; letter-spacing: 0.12em; color: inherit; margin-left: 9px; vertical-align: middle; }
.am-footer__social { display: inline-flex; align-items: center; gap: 9px; color: inherit; text-decoration: none; transition: color var(--dur-fast) var(--ease-out); }
.am-footer__social span { font: inherit; letter-spacing: inherit; }
.am-footer__social:hover { color: var(--accent-500); }
.am-footer__social svg { display: block; width: 24px; height: 24px; }
.am-footer__base { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--fg-3); }

/* ---------- inline contact form (alternative to the .am-overlay modal) --
   Sits directly in the footer hero rather than behind an "Inquire" overlay
   trigger. Use whichever suits the page; both read the same field system. */
.cta-form { display: grid; gap: 20px; max-width: 660px; }
.cta-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.cta-field { display: flex; flex-direction: column; gap: 8px; }
.cta-field label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-3); }
.cta-field input, .cta-field select, .cta-field textarea { background: transparent; border: 0; border-bottom: 1px solid var(--line-strong);
  color: var(--fg); font-family: var(--font-sans); font-size: 16px; padding: 11px 0; border-radius: 0; -webkit-appearance: none; appearance: none;
  transition: border-color var(--dur-fast) var(--ease-out); }
.cta-field select { background-image: linear-gradient(45deg, transparent 50%, var(--fg-3) 50%), linear-gradient(135deg, var(--fg-3) 50%, transparent 50%);
  background-position: right 4px center, right 0 center; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 22px; }
.cta-field select option { background: var(--ink-800); color: var(--fg); }
.cta-field input:focus, .cta-field select:focus, .cta-field textarea:focus { outline: none; border-bottom-color: var(--accent-500); }
.cta-field input::placeholder, .cta-field textarea::placeholder { color: var(--ink-400); }
.cta-field textarea { resize: vertical; min-height: 60px; line-height: 1.5; }
.cta-form__foot { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 4px; }
.cta-form__submit { background: var(--paper-200); color: var(--ink-900); border: 0; font-family: var(--font-sans); font-weight: 600; font-size: 14px; letter-spacing: .02em;
  padding: 15px 30px; border-radius: 2px; cursor: pointer; transition: background var(--dur-fast) var(--ease-out); }
.cta-form__submit:hover { background: var(--accent-hover); }
.cta-form__note { font-family: var(--font-mono); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-400); }
@media (max-width: 860px) { .cta-form__row { grid-template-columns: 1fr; } }

/* ---------- generic type helpers used across the site ------------------- */
.eyebrow { font-family: var(--font-sans); font-weight: 500; font-size: 11px; letter-spacing: var(--track-eyebrow); text-transform: uppercase; }
.mono { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-3); }
.lede { font-family: var(--font-serif); font-style: italic; font-weight: 300; font-size: var(--fs-xl); line-height: 1.42; color: var(--fg); max-width: 40ch; }
.accent-em { color: var(--accent-500); font-style: italic; font-family: var(--font-serif); }
.on-paper .accent-em { color: var(--accent-700); }
.accent-num { color: var(--accent-500); }
.on-paper .accent-num { color: var(--accent-700-text); }
.accent-rule { background: var(--line-strong); }
.btn-line { display: inline-flex; align-items: center; gap: 14px; background: transparent; border: 0; padding: 0; cursor: pointer; color: var(--fg);
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; text-decoration: none; transition: color var(--dur-fast) var(--ease-out); }
.btn-line:hover { color: var(--accent-500); }
.btn-line .r { width: 44px; height: 1px; background: currentColor; opacity: .6; transition: width var(--dur-base) var(--ease-out); }
.btn-line:hover .r { width: 64px; }

/* ---------- tweak hooks: type scale / accent intensity / rhythm / motion
   Live-adjustable knobs the site build exposes; set via body attributes or
   a tweaks panel. Defaults (no attribute set) match the values below. */
:root { --tscale: 1; }
.am-hero__title, .am-section-title, .hero-title { font-size: calc(var(--_fs, 1em) * var(--tscale)); }
body[data-accent="high"] .am-eyebrow, body[data-accent="high"] .eyebrow { color: var(--accent-500); }
body[data-accent="low"] .am-eyebrow, body[data-accent="low"] .eyebrow, body[data-accent="low"] .accent-em, body[data-accent="low"] .accent-num { color: var(--fg-3); }
body[data-accent="high"] .accent-rule { background: var(--accent-700); }
/* rhythm "unified": drops the cream .on-paper bands so the page reads all-dark */
body[data-rhythm="unified"] .on-paper { background: var(--ink-900); --bg: var(--ink-900); --bg-raised: var(--ink-800);
  --fg: var(--paper-200); --fg-2: var(--paper-500); --fg-3: var(--ink-300); --line: var(--ink-600); --line-strong: var(--ink-500); color: var(--paper-200); }
body[data-rhythm="unified"] .on-paper .am-approach__grid { border-top-color: var(--ink-600); }
body[data-rhythm="unified"] .on-paper .am-approach__cell { border-right-color: var(--ink-600); }
body[data-rhythm="unified"] .on-paper .am-approach__hr { background: var(--ink-500); }
body[data-rhythm="unified"] .on-paper .accent-num, body[data-rhythm="unified"] .on-paper .am-approach__num { color: var(--accent-500); }

/* ============================================================================
   TESTIMONIAL CAROUSEL — edge magnet
   Replaces the single static .am-quote block for 2+ testimonials. testimonials.js
   builds this DOM automatically inside any [data-testimonials] section; keep the
   .am-quote__body / .am-quote__cite classes so both single-quote and carousel
   read identically. Hover near the section edge to peek the neighbour quote;
   dwell or click the edge to commit. Ends resist with a soft clamp.
   ============================================================================ */
.tcar { position: relative; overflow: hidden; }
.tcar__vp { position: relative; max-width: 1080px; margin: 0 auto; overflow: visible; }
.tcar__track { position: relative; width: 100%; display: flex; }
.tslide { flex: 0 0 100%; display: grid; grid-template-columns: 80px 1fr; gap: 24px; align-items: start; will-change: transform; }
.tslide__mark { font-family: var(--font-serif); font-weight: 300; font-size: 96px; line-height: 0.7; color: var(--accent-500); margin-top: -8px; grid-row: span 2; }
.tslide__body { max-width: 26ch; text-wrap: balance; }
.tslide__cite { grid-column: 2; }
.tnav { display: flex; align-items: center; justify-content: center; gap: 26px; margin-top: var(--s-7); position: relative; z-index: 4; }
.tnav__arrows { display: flex; align-items: center; gap: 8px; }
.tedge { --p: 0; width: 34px; height: 34px; padding: 0; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-strong); border-radius: 50%; background: transparent; cursor: pointer; color: var(--fg-3); position: relative; overflow: hidden;
  transition: color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out); }
.tedge:not(.is-end) { color: color-mix(in oklab, var(--fg-3), var(--accent-500) calc(var(--p) * 100%)); border-color: color-mix(in oklab, var(--line-strong), var(--accent-500) calc(var(--p) * 80%)); }
.tedge:not(.is-end):hover { color: var(--accent-500); border-color: var(--accent-500); }
.tedge::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--accent-500); transform-origin: center; transform: scale(var(--p, 0)); transition: transform var(--dur-base) var(--ease-out); z-index: 0; }
.tedge.is-end::before { display: none; }
.tedge__arrow { font-family: var(--font-display); font-size: 16px; line-height: 1; position: relative; z-index: 1;
  color: color-mix(in oklab, var(--fg-3), var(--ink-900) calc(var(--p, 0) * 100%)); transition: color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out); }
.tedge:not(.is-end):hover .tedge__arrow { color: var(--ink-900); }
.tedge--next:hover .tedge__arrow { transform: translateX(2px); }
.tedge--prev:hover .tedge__arrow { transform: translateX(-2px); }
.tedge__hint { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tedge.is-end { cursor: default; color: var(--ink-400); border-color: var(--line); }
.tdots { display: flex; gap: 10px; position: relative; }
.tdots__d { width: 7px; height: 7px; border-radius: 50%; border: 1px solid var(--line-strong); background: transparent; padding: 0; cursor: pointer; position: relative; z-index: 1; transition: border-color var(--dur-base) var(--ease-out); }
.tdots__d:hover { border-color: var(--accent-500); }
.tdots__d.is-on { border-color: var(--accent-500); }
.tdots__glide { position: absolute; left: 0; top: 50%; margin-top: -3.5px; z-index: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--accent-500); transform-origin: center; pointer-events: none; will-change: transform; }
@media (prefers-reduced-motion: reduce) { .tdots__glide { will-change: auto; } .tcar__track { transition: none !important; } }
@media (max-width: 860px) {
  .cta-form, .am-footer__pitch { grid-column: 1; }
}
