/* ==========================================================================
   Forge Flow Verification Studio
   Palette from the material studies: plum ink, vellum mauve paper, ochre,
   copper. Bodoni Moda for display (engraved-card contrast), Instrument Sans
   for reading. Signature details: a measured ruler rule under the header and,
   in EPIC, printer's registration marks and crop frames.
   ========================================================================== */

:root {
  --display: "Bodoni Moda", "Bodoni 72", Didot, Georgia, serif;
  --text: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --head-h: 84px;
  --head-compact: 60px;
  --gutter: clamp(20px, 4.5vw, 64px);
  --max: 1360px;
  --col-gap: clamp(14px, 2vw, 28px);
  --ease-out: cubic-bezier(.2, .7, .2, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --rise: 34px;
  --radius: 3px;
}

html[data-theme="light"] {
  color-scheme: light;
  --paper: #F4EFF1;
  --paper-2: #EAE0E5;
  --paper-3: #DCCFD6;
  --ink: #26121D;
  --ink-soft: #5B4451;
  --rule: rgba(38, 18, 29, .16);
  --tick: rgba(38, 18, 29, .38);
  --field-edge: #7A6170;
  --field-bg: #FBF8F9;
  --accent: #5A1E3F;
  --accent-hover: #722A52;
  --on-accent: #F8F2F5;
  --band: #4A1834;
  --on-band: #F6EEF2;
  --on-band-soft: #DCC6D1;
  --ochre: #B07A1E;
  --copper: #9A4E2C;
  --pattern-ink: #5A1E3F;
  --focus: #8C3A12;
  --error: #9E1B32;
  --success: #2E5B2F;
  --shadow: rgba(38, 18, 29, .45);
  /* Designed scrollbar */
  --sb-track: #E3D8DE;
  --sb-edge: #CDBDC6;
  --sb-thumb: #5A1E3F;
  --sb-thumb-2: #3F1129;
  --sb-thumb-hover: #7A2C57;
  --sb-thumb-active: #B07A1E;
  /* Chatbot Studio */
  --chatbot-color: #5A1E3F;
  --chatbot-on-color: #F8F2F5;
  --chatbot-background: #F4EFF1;
  --chatbot-surface: #FBF8F9;
  --chatbot-text: #26121D;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --paper: #1B0E16;
  --paper-2: #28161F;
  --paper-3: #37212D;
  --ink: #F2E8ED;
  --ink-soft: #CDB8C4;
  --rule: rgba(242, 232, 237, .16);
  --tick: rgba(242, 232, 237, .4);
  --field-edge: #A08896;
  --field-bg: #231219;
  --accent: #E7BF74;
  --accent-hover: #F0CE8E;
  --on-accent: #23111B;
  --band: #3A1529;
  --on-band: #F6EEF2;
  --on-band-soft: #DCC6D1;
  --ochre: #E7BF74;
  --copper: #D98B5F;
  --pattern-ink: #E7BF74;
  --focus: #F2C46B;
  --error: #FF9AAA;
  --success: #A8D8A0;
  --shadow: rgba(0, 0, 0, .6);
  --sb-track: #26141E;
  --sb-edge: #3D2532;
  --sb-thumb: #D9AD5C;
  --sb-thumb-2: #B5862F;
  --sb-thumb-hover: #EBC57C;
  --sb-thumb-active: #F5DCA7;
  --chatbot-color: #E7BF74;
  --chatbot-on-color: #23111B;
  --chatbot-background: #1B0E16;
  --chatbot-surface: #28161F;
  --chatbot-text: #F2E8ED;
}

:root {
  --chatbot-font: var(--text);
  --chatbot-radius: 6px;
}

@media (max-width: 767px) {
  :root { --head-h: 68px; --head-compact: 56px; --rise: 22px; }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--paper);
  scroll-padding-top: calc(var(--head-compact) + 20px);
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.62 var(--text);
  overflow-x: clip;
  transition: background-color .3s, color .3s;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 1px; }
h1, h2, h3 {
  font-family: var(--display);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -.012em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 1.7rem + 3.6vw, 4.8rem); }
h2 { font-size: clamp(2rem, 1.45rem + 2.2vw, 3.3rem); }
h3, .h3 { font-size: clamp(1.35rem, 1.15rem + .7vw, 1.75rem); line-height: 1.15; }
p { margin: 0 0 1em; max-width: 64ch; }
p:last-child { margin-bottom: 0; }
figure { margin: 0; }
.lead { font-size: clamp(1.15rem, 1.05rem + .4vw, 1.35rem); line-height: 1.5; }
.note { color: var(--ink-soft); font-size: .95rem; }
main { display: block; }
main:focus { outline: none; }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.section { padding-block: clamp(56px, 7.5vw, 112px); }
.section--tint { background: var(--paper-2); }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -80px; z-index: 100;
  background: var(--accent); color: var(--on-accent); padding: 12px 18px; text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

/* ---------- designed scrollbar (replaces Follow-Me / Section Signal) ---------- */
html::-webkit-scrollbar { width: 16px; height: 16px; }
html::-webkit-scrollbar-track {
  background: var(--sb-track);
  border-left: 1px solid var(--sb-edge);
  box-shadow: inset 2px 0 0 rgba(255, 255, 255, .25);
}
html::-webkit-scrollbar-thumb {
  background-color: var(--sb-thumb);
  border: 4px solid var(--sb-track);
  border-radius: 9px;
  background-clip: padding-box;
  min-height: 56px;
}
html::-webkit-scrollbar-thumb:hover { background-color: var(--sb-thumb-hover); }
html::-webkit-scrollbar-thumb:active { background-color: var(--sb-thumb-active); }
html::-webkit-scrollbar-corner { background: var(--sb-track); }
/* EPIC: ruler ticks across a two-tone thumb, echoing the header rule. */
html[data-variant="epic"]::-webkit-scrollbar-thumb {
  background-image:
    repeating-linear-gradient(180deg, transparent 0 7px, rgba(255, 255, 255, .28) 7px 8px),
    linear-gradient(90deg, var(--sb-thumb) 0 50%, var(--sb-thumb-2) 50% 100%);
  border-radius: 2px 9px 9px 2px;
}
html[data-variant="epic"]::-webkit-scrollbar-thumb:hover {
  background-image:
    repeating-linear-gradient(180deg, transparent 0 7px, rgba(255, 255, 255, .34) 7px 8px),
    linear-gradient(90deg, var(--sb-thumb-hover) 0 50%, var(--sb-thumb) 50% 100%);
}
html[data-variant="epic"]::-webkit-scrollbar-thumb:active {
  background-image: none;
  background-color: var(--sb-thumb-active);
}
.field__textarea::-webkit-scrollbar { width: 12px; }
.field__textarea::-webkit-scrollbar-track { background: var(--sb-track); }
.field__textarea::-webkit-scrollbar-thumb { background-color: var(--sb-thumb); border: 3px solid var(--sb-track); border-radius: 8px; }
/* Only where the richer pseudo-elements are unsupported, so the standard
   properties never override the Chromium finish. */
@supports not selector(::-webkit-scrollbar) {
  html { scrollbar-color: var(--sb-thumb) var(--sb-track); scrollbar-width: auto; }
}

/* ---------- buttons and links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: .72em 1.35em;
  border: 1.5px solid transparent; border-radius: var(--radius);
  font: 600 1rem/1.15 var(--text); letter-spacing: .005em;
  text-decoration: none; text-align: center; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease-out), box-shadow .2s;
}
.btn--solid { background: var(--accent); color: var(--on-accent); }
.btn--solid:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 6px 14px -8px var(--shadow); }
.btn--solid:active { transform: translateY(0); box-shadow: none; }
.btn--line { border-color: currentColor; color: var(--ink); background: transparent; }
.btn--line:hover { background: color-mix(in srgb, var(--ink) 8%, transparent); }
.btn[disabled], fieldset[disabled] .btn { cursor: not-allowed; opacity: .72; transform: none; box-shadow: none; }
.text-link { font-weight: 600; text-decoration: underline; text-decoration-color: var(--ochre); text-decoration-thickness: 2px; text-underline-offset: .28em; }
.text-link:hover { text-decoration-color: currentColor; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- band (plum surfaces) ---------- */
.band {
  background: var(--band); color: var(--on-band);
  --ink: var(--on-band); --ink-soft: var(--on-band-soft);
  --accent: #EFC879; --accent-hover: #F6D89C; --on-accent: #2A1220;
  --focus: #F2C46B; --rule: rgba(246, 238, 242, .24); --pattern-ink: #EFC879;
}

/* ---------- pattern: registration marks ---------- */
.pattern {
  pointer-events: none;
  background-color: var(--pattern-ink);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72'%3E%3Cg fill='none' stroke='%23000' stroke-width='1.1'%3E%3Ccircle cx='36' cy='36' r='7'/%3E%3Cpath d='M36 23v26M23 36h26M3 12V3h9M69 60v9h-9'/%3E%3C/g%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72'%3E%3Cg fill='none' stroke='%23000' stroke-width='1.1'%3E%3Ccircle cx='36' cy='36' r='7'/%3E%3Cpath d='M36 23v26M23 36h26M3 12V3h9M69 60v9h-9'/%3E%3C/g%3E%3C/svg%3E");
  -webkit-mask-size: 56px 56px; mask-size: 56px 56px;
  -webkit-mask-repeat: repeat; mask-repeat: repeat;
  opacity: .32;
}
.pattern--wide { -webkit-mask-size: 132px 132px; mask-size: 132px 132px; opacity: .16; }
.pattern--fine { -webkit-mask-size: 34px 34px; mask-size: 34px 34px; opacity: .22; }

/* Crop marks: eight hairlines at the four corners, no extra DOM. */
.cropframe {
  --cm: var(--on-band);
  --cl: 26px;
  position: absolute; inset: 14px; pointer-events: none;
  background:
    linear-gradient(var(--cm), var(--cm)) left top / var(--cl) 1.5px no-repeat,
    linear-gradient(var(--cm), var(--cm)) left top / 1.5px var(--cl) no-repeat,
    linear-gradient(var(--cm), var(--cm)) right top / var(--cl) 1.5px no-repeat,
    linear-gradient(var(--cm), var(--cm)) right top / 1.5px var(--cl) no-repeat,
    linear-gradient(var(--cm), var(--cm)) left bottom / var(--cl) 1.5px no-repeat,
    linear-gradient(var(--cm), var(--cm)) left bottom / 1.5px var(--cl) no-repeat,
    linear-gradient(var(--cm), var(--cm)) right bottom / var(--cl) 1.5px no-repeat,
    linear-gradient(var(--cm), var(--cm)) right bottom / 1.5px var(--cl) no-repeat;
  opacity: .9;
}

/* ---------- masthead ---------- */
.masthead-slot { height: var(--head-h); }
.masthead {
  position: fixed; inset: 0 0 auto; z-index: 60;
  height: var(--head-h);
  background: var(--paper);
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  backdrop-filter: saturate(1.2) blur(10px);
  transition: height .28s var(--ease-out), background-color .28s, box-shadow .28s;
}
.masthead.is-compact {
  height: var(--head-compact);
  background: var(--paper);
  box-shadow: 0 10px 22px -18px var(--shadow);
}
.masthead__inner {
  height: 100%;
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
  display: flex; align-items: center; gap: clamp(14px, 2vw, 32px);
}
.masthead__rule {
  position: absolute; left: 0; right: 0; bottom: 0; height: 8px; pointer-events: none;
  background:
    linear-gradient(var(--rule), var(--rule)) left bottom / 100% 1px no-repeat,
    repeating-linear-gradient(90deg, var(--tick) 0 1px, transparent 1px 120px) left bottom / 100% 8px no-repeat,
    repeating-linear-gradient(90deg, var(--tick) 0 1px, transparent 1px 24px) left bottom / 100% 4px no-repeat;
  transition: opacity .28s;
  opacity: .7;
}
.masthead.is-compact .masthead__rule {
  --tick: var(--ochre);
  opacity: 1;
}

.wordmark {
  position: relative; display: inline-flex; flex-direction: column; justify-content: center;
  min-height: 44px; padding: 4px 10px; margin-left: -10px;
  text-decoration: none; line-height: 1; white-space: nowrap;
  transform-origin: left center;
  transition: transform .28s var(--ease-out);
}
.wordmark__name { font-family: var(--display); font-size: 1.6rem; font-weight: 600; letter-spacing: -.01em; }
.wordmark__sub { font-size: .78rem; color: var(--ink-soft); margin-top: 5px; letter-spacing: .03em; }
.wordmark::before, .wordmark::after {
  content: ""; position: absolute; width: 8px; height: 8px; border-color: var(--ochre); border-style: solid; opacity: .9;
}
.wordmark::before { left: 0; top: 0; border-width: 1.5px 0 0 1.5px; }
.wordmark::after { right: 0; bottom: 0; border-width: 0 1.5px 1.5px 0; }
.masthead.is-compact .wordmark { transform: scale(.88); }

.masthead__descriptor {
  font-family: var(--display); font-style: italic; font-size: 1rem; color: var(--ink-soft);
  white-space: nowrap; padding-left: 16px; border-left: 1px solid var(--rule);
}
.primary-nav { margin-left: auto; }
.primary-nav ul { display: flex; gap: clamp(2px, .8vw, 12px); list-style: none; margin: 0; padding: 0; }
.primary-nav__link {
  position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 .6em;
  text-decoration: none; font-weight: 500; white-space: nowrap;
}
.primary-nav__link::after {
  content: ""; position: absolute; left: .6em; right: .6em; bottom: 7px; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease-out);
}
.primary-nav__link:hover::after, .primary-nav__link[aria-current="page"]::after { transform: scaleX(1); }
.primary-nav__link[aria-current="page"] { font-weight: 600; }

.masthead__tools { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 1.5px solid var(--field-edge); border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer;
  transition: background-color .2s, transform .3s var(--ease-out);
}
.icon-btn:hover { background: var(--paper-2); }
html[data-theme="dark"] .icon-btn svg { transform: rotate(180deg); }
.icon-btn svg { transition: transform .4s var(--ease-out); }
.masthead__cta { white-space: nowrap; }
.menu-btn {
  display: none; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px;
  border: 1.5px solid var(--field-edge); border-radius: var(--radius); background: transparent; color: var(--ink);
  font: 600 .95rem/1 var(--text); cursor: pointer;
}
.menu-btn__bars { position: relative; width: 18px; height: 12px; }
.menu-btn__bars::before, .menu-btn__bars::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor;
  transition: transform .25s var(--ease-out), top .25s;
}
.menu-btn__bars::before { top: 2px; }
.menu-btn__bars::after { top: 9px; }
.menu-btn[aria-expanded="true"] .menu-btn__bars::before { top: 5.5px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__bars::after { top: 5.5px; transform: rotate(-45deg); }

.mobile-nav {
  position: fixed; left: 0; right: 0; bottom: 0; top: var(--head-h); z-index: 59;
  background: var(--paper); border-top: 1px solid var(--rule);
  padding: 20px var(--gutter) 40px; overflow-y: auto; overscroll-behavior: contain;
  opacity: 0; transform: translateY(-8px);
  transition: opacity .24s var(--ease-out), transform .24s var(--ease-out);
}
.mobile-nav.is-open { opacity: 1; transform: none; }
.mobile-nav[hidden] { display: none; }
.mobile-nav__list { list-style: none; margin: 0 0 28px; padding: 0; }
.mobile-nav__link {
  display: flex; align-items: center; min-height: 56px; border-bottom: 1px solid var(--rule);
  font-family: var(--display); font-size: 1.9rem; text-decoration: none;
}
.mobile-nav__link[aria-current="page"] { color: var(--accent); }
.mobile-nav__cta { width: 100%; }
.mobile-nav__note { margin-top: 20px; color: var(--ink-soft); font-family: var(--display); font-style: italic; }
html.nav-open, html.nav-open body { overflow: hidden; }

@media (max-width: 1279px) { .masthead__descriptor { display: none; } }
@media (max-width: 1099px) {
  .primary-nav { display: none; }
  .menu-btn { display: inline-flex; }
  .masthead__tools { margin-left: auto; }
}
@media (max-width: 519px) {
  .masthead__cta { display: none; }
  .wordmark__name { font-size: 1.4rem; }
}
@media (max-width: 359px) {
  .menu-btn__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .menu-btn { padding: 0 12px; }
}

/* ---------- shared hero type ---------- */
.hero__studio { font-family: var(--display); font-style: italic; font-size: 1.1rem; margin-bottom: 18px; color: var(--ink-soft); }
.hero__title { font-size: clamp(2.3rem, 1.4rem + 4.3vw, 5.4rem); line-height: 1.02; }
.hero__lede { font-size: clamp(1.08rem, 1rem + .35vw, 1.28rem); margin-top: 22px; max-width: 40ch; }
.mask-line { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.mask-line > span { display: block; }

/* ---------- EPIC hero: layered planes ---------- */
.hero-epic {
  position: relative; isolation: isolate;
  width: min(100% - 2 * var(--gutter), var(--max));
  margin: clamp(10px, 2vw, 24px) auto 0;
  padding-bottom: clamp(56px, 6vw, 88px);
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap);
  min-height: clamp(580px, calc(100vh - var(--head-h) - 24px), 880px);
  min-height: clamp(580px, calc(100svh - var(--head-h) - 24px), 880px);
}
.hero-epic__media {
  grid-column: 5 / -1; grid-row: 1; position: relative; overflow: hidden; z-index: 1;
  min-height: 460px; background: var(--paper-3); border-radius: var(--radius);
}
.hero-epic__layer { position: absolute; inset: -8% 0; translate: 0 var(--depth-y, 0px); }
.hero-epic__layer img { width: 100%; height: 100%; object-fit: cover; object-position: 58% 50%; }
.hero-epic__frame { --cm: #F6EEF2; z-index: 2; }
.hero-epic__pattern {
  grid-column: 1 / 7; grid-row: 1; z-index: 0; margin: -18px 0 -30px -18px;
  translate: 0 var(--depth-y, 0px); opacity: .28;
}
.hero-epic__copy {
  grid-column: 1 / 7; grid-row: 1; align-self: center; z-index: 3; position: relative;
  padding: clamp(28px, 3.6vw, 56px);
  border-radius: var(--radius);
  box-shadow: 0 30px 60px -36px var(--shadow);
}
.hero-epic__copy .hero__studio { color: var(--on-band-soft); }
.hero-epic__copy .hero__title { font-size: clamp(2.2rem, 1.2rem + 3.6vw, 4.9rem); }
.hero-epic__inset {
  grid-column: 10 / 13; grid-row: 1; align-self: end; z-index: 4; position: relative;
  margin-bottom: clamp(-56px, -4vw, -32px); margin-right: clamp(-12px, -1vw, 0px);
  aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius);
  outline: 6px solid var(--paper);
  box-shadow: 0 26px 50px -28px var(--shadow);
  translate: 0 var(--depth-y, 0px);
}
.hero-epic__inset img { width: 100%; height: 100%; object-fit: cover; }

@media (prefers-reduced-motion: no-preference) {
  .hero-epic__layer img { animation: ffs-push 1.5s var(--ease-out) both; }
  .hero-epic .mask-line > span { animation: ffs-line .9s var(--ease-out) both; animation-delay: calc(var(--l, 0) * 110ms + 180ms); }
  .hero-epic__inset { animation: ffs-lift 1s var(--ease-out) .55s both; }
  .hero-epic__frame { animation: ffs-frame 1.1s var(--ease-out) .35s both; }
  .hero-epic__pattern { animation: ffs-fade 1.4s ease .2s both; }
}
@keyframes ffs-push { from { transform: scale(1.1); } to { transform: scale(1); } }
@keyframes ffs-line { from { transform: translateY(108%); } to { transform: none; } }
@keyframes ffs-lift { from { transform: translateY(44px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes ffs-frame { from { transform: scale(.94); opacity: 0; } to { transform: none; opacity: .9; } }
@keyframes ffs-fade { from { opacity: 0; } }
@keyframes ffs-rise { from { transform: translateY(18px); opacity: 0; } to { transform: none; opacity: 1; } }

@media (max-width: 899px) {
  .hero-epic { grid-template-columns: repeat(6, minmax(0, 1fr)); min-height: 0; padding-bottom: 40px; }
  .hero-epic__media { grid-column: 1 / -1; grid-row: 1; min-height: 0; aspect-ratio: 4 / 3.1; max-height: 58svh; }
  .hero-epic__pattern { grid-column: 1 / -1; grid-row: 2; margin: -40px -12px 0; }
  .hero-epic__copy { grid-column: 1 / -1; grid-row: 2; margin: -56px 10px 0; }
  .hero-epic__inset {
    grid-column: 5 / -1; grid-row: 1; align-self: start; margin: 14px 14px 0 0;
    outline-width: 4px;
  }
}
@media (max-width: 479px) {
  .hero-epic__copy { margin: -40px 0 0; }
  .hero-epic__inset { grid-column: 4 / -1; width: 78%; justify-self: end; }
  .hero-epic .actions .btn { flex: 1 1 100%; }
}

/* ---------- Standard hero: calm split ---------- */
.hero-std {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 4vw, 72px);
  align-items: center; padding-block: clamp(32px, 5vw, 80px);
}
.hero-std__media { aspect-ratio: 3 / 2; overflow: hidden; border-radius: 6px; background: var(--paper-3); }
.hero-std__media img { width: 100%; height: 100%; object-fit: cover; }
@media (prefers-reduced-motion: no-preference) {
  .hero-std__media { animation: ffs-rise .8s var(--ease-out) .1s both; }
  .hero-std__copy { animation: ffs-rise .7s var(--ease-out) both; }
}
@media (max-width: 767px) {
  .hero-std { grid-template-columns: 1fr; padding-top: 24px; }
  .hero-std .actions .btn { flex: 1 1 100%; }
}

/* ---------- page heads ---------- */
.page-head {
  position: relative;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap);
  align-items: end; padding-block: clamp(40px, 6vw, 96px) clamp(32px, 4vw, 56px);
}
.page-head__title { grid-column: 1 / 8; font-size: clamp(2.8rem, 1.8rem + 4.2vw, 5.6rem); line-height: 1; }
.page-head__lede { grid-column: 8 / -1; margin: 0; padding-bottom: .4em; }
.page-head__rule {
  grid-column: 1 / -1; height: 8px; margin-top: clamp(24px, 3vw, 40px);
  background:
    linear-gradient(var(--rule), var(--rule)) left bottom / 100% 1px no-repeat,
    repeating-linear-gradient(90deg, var(--tick) 0 1px, transparent 1px 96px) left bottom / 100% 8px no-repeat;
}
html[data-variant="standard"] .page-head__rule { background: var(--rule); height: 1px; }
@media (max-width: 899px) {
  .page-head__title, .page-head__lede { grid-column: 1 / -1; }
  .page-head__lede { margin-top: 18px; }
}

/* ---------- home: intro ---------- */
.intro__grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); align-items: center;
}
.intro__text { grid-column: 1 / 6; }
.intro__text h2 { margin-bottom: 22px; }
.intro__text .note { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--rule); }
.intro__media {
  grid-column: 7 / -1; position: relative; overflow: hidden; aspect-ratio: 3 / 2;
  border-radius: var(--radius); background: var(--paper-3);
}
.intro__layer { position: absolute; inset: -8% 0; translate: 0 var(--depth-y, 0px); }
.intro__layer img { width: 100%; height: 100%; object-fit: cover; }
html[data-variant="epic"] .intro__media { grid-column: 6 / -1; margin-right: calc(-1 * min(var(--gutter), 64px)); border-radius: var(--radius) 0 0 var(--radius); }
@media (max-width: 899px) {
  .intro__text, .intro__media, html[data-variant="epic"] .intro__media { grid-column: 1 / -1; }
  .intro__media { margin-top: 32px; }
  html[data-variant="epic"] .intro__media { margin-right: 0; border-radius: var(--radius); }
}

/* ---------- Focus Zone ---------- */
.fz { --fz-step: 55vh; --fz-step: 55svh; position: relative; padding-top: clamp(56px, 7vw, 104px); }
.fz__head {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--col-gap);
  align-items: end; margin-bottom: clamp(24px, 3vw, 40px);
}
.fz__intro { margin: 0; color: var(--ink-soft); }
.fz__states { list-style: none; margin: 0; padding: 0; }
.fz__meter { display: none; }

/* Static flow: the default, the reduced-motion layout and the failure state. */
.fz__state {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(20px, 3vw, 48px);
  align-items: center; padding-block: 22px; border-top: 1px solid var(--rule);
}
.fz__shot { position: relative; overflow: hidden; aspect-ratio: 3 / 2; border-radius: var(--radius); background: var(--paper-3); }
.fz__shot img { width: 100%; height: 100%; object-fit: cover; }
.fz__state--concept .fz__shot img { object-position: 72% 74%; transform: scale(1.7); transform-origin: 70% 74%; }
.fz__state--detail .fz__shot img { object-position: 50% 42%; }
.fz__num {
  font-family: var(--display); font-size: clamp(2.6rem, 2rem + 2vw, 4rem); line-height: 1; color: var(--accent); margin-bottom: 10px;
}
.fz__title { margin-bottom: 12px; }
.fz__copy { color: var(--ink-soft); font-size: 1.08rem; max-width: 36ch; }
.fz__after {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px;
  padding-block: clamp(28px, 4vw, 48px) 0;
}
.fz__after p { margin: 0; font-family: var(--display); font-size: 1.35rem; }

/* Live: bounded sticky stage driven by native scrolling. */
.fz.fz-live .fz__track {
  --fz-top: calc(var(--head-compact) + 12px);
  --fz-stage-h: min(680px, calc(100vh - var(--head-compact) - 28px));
  --fz-stage-h: min(680px, calc(100svh - var(--head-compact) - 28px));
  position: relative;
  height: calc(var(--fz-stage-h) + (var(--fz-count) - 1) * var(--fz-step));
}
.fz.fz-live .fz__stage {
  position: sticky; top: var(--fz-top); height: var(--fz-stage-h);
  isolation: isolate;
}
.fz.fz-live .fz__states { position: relative; height: 100%; }
.fz.fz-live .fz__state {
  position: absolute; inset: 0; padding: 0; border: 0;
  grid-template-rows: minmax(0, 1fr); align-items: stretch;
  pointer-events: none;
}
.fz.fz-live .fz__state[data-fz-state="0"] { z-index: 1; }
.fz.fz-live .fz__state[data-fz-state="1"] { z-index: 2; }
.fz.fz-live .fz__state[data-fz-state="2"] { z-index: 3; }
.fz.fz-live .fz__state[data-fz-state="3"] { z-index: 4; }
.fz.fz-live .fz__shot { aspect-ratio: auto; height: auto; min-height: 0; align-self: stretch; }
.fz.fz-live .fz__text {
  align-self: center; padding-bottom: 56px;
  transition: opacity .45s var(--ease-out), transform .55s var(--ease-out);
}
.fz.fz-live .is-future .fz__text { opacity: 0; transform: translateY(26px); }
.fz.fz-live .is-past .fz__text { opacity: 0; transform: translateY(-18px); }
.fz.fz-live .is-active .fz__text { opacity: 1; transform: none; }
.fz.fz-live .fz__meter {
  display: flex; gap: 8px; position: absolute; z-index: 6; right: 0; bottom: 8px;
  width: calc(5 / 12 * 100% - var(--col-gap));
}
.fz__tick { flex: 1; height: 3px; background: var(--rule); transition: background-color .3s; }
.fz__tick.is-on { background: var(--accent); }

/* Standard: crossfade the four crops in a single frame. */
.fz.fz-live .fz__shot { transition: opacity .6s var(--ease-out); }
.fz.fz-live .is-future .fz__shot { opacity: 0; }

/* EPIC: a collage that builds, then a full wipe for the handover. */
html[data-variant="epic"] .fz.fz-live .fz__shot {
  opacity: 1;
  transition: clip-path .8s var(--ease-io), filter .6s ease;
  clip-path: inset(0 0 0 0);
  box-shadow: 0 24px 48px -28px var(--shadow);
}
html[data-variant="epic"] .fz.fz-live .is-future .fz__shot { clip-path: inset(100% 0 0 0); }
html[data-variant="epic"] .fz.fz-live .fz__state--concept.is-future .fz__shot { clip-path: inset(0 0 0 100%); }
html[data-variant="epic"] .fz.fz-live .fz__state--handover.is-future .fz__shot { clip-path: inset(50% 50% 50% 50%); }
html[data-variant="epic"] .fz.fz-live .is-past .fz__shot { filter: saturate(.75) brightness(.86); }
html[data-variant="epic"] .fz.fz-live .fz__state--concept .fz__shot { margin: 9% 5% 9% 36%; outline: 6px solid var(--paper); }
html[data-variant="epic"] .fz.fz-live .fz__state--detail .fz__shot { margin: 4% 46% 4% 5%; outline: 6px solid var(--paper); }
html[data-variant="epic"] .fz.fz-live .is-active .fz__shot img {
  transform: scale(calc(var(--crop, 1) * (1.07 - var(--fz-local, 0) * .07)));
  transition: transform .2s linear;
}
html[data-variant="epic"] .fz.fz-live .fz__state--concept { --crop: 1.7; }
html[data-variant="epic"] .fz.fz-live .fz__state--handover .fz__shot::after {
  content: ""; position: absolute; inset: 16px; pointer-events: none;
  border: 1px solid rgba(246, 238, 242, .7);
}
html[data-variant="epic"] .fz .fz__num { color: var(--copper); }

@media (max-width: 767px) {
  .fz { --fz-step: 42vh; --fz-step: 42svh; }
  .fz__head { grid-template-columns: 1fr; }
  .fz__state { grid-template-columns: 1fr; gap: 16px; }
  .fz.fz-live .fz__track { --fz-cap: 12.5rem; --fz-stage-h: min(720px, calc(100svh - var(--head-compact) - 20px)); --fz-top: calc(var(--head-compact) + 8px); }
  .fz.fz-live .fz__state { grid-template-rows: minmax(0, 1fr) var(--fz-cap); gap: 14px; }
  .fz.fz-live .fz__text { align-self: start; padding: 0 0 22px; }
  .fz.fz-live .fz__num { font-size: 2rem; margin-bottom: 4px; display: inline-block; margin-right: 10px; }
  .fz.fz-live .fz__title { display: inline; font-size: 1.45rem; }
  .fz.fz-live .fz__copy { margin-top: 8px; font-size: 1rem; }
  .fz.fz-live .fz__meter { left: 0; right: 0; width: auto; bottom: 0; }
  html[data-variant="epic"] .fz.fz-live .fz__state--concept .fz__shot { margin: 7% 4% 7% 32%; outline-width: 4px; }
  html[data-variant="epic"] .fz.fz-live .fz__state--detail .fz__shot { margin: 4% 40% 4% 4%; outline-width: 4px; }
}
@media (max-width: 767px) and (max-height: 640px) {
  .fz.fz-live .fz__track { --fz-cap: 10.5rem; }
  .fz.fz-live .fz__copy { font-size: .95rem; line-height: 1.45; }
}

/* ---------- studies strip ---------- */
.studies-strip__head {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--col-gap); align-items: end;
  margin-bottom: clamp(28px, 3.5vw, 48px);
}
.studies-strip__aside p { color: var(--ink-soft); margin-bottom: 10px; }
.studies-strip__grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); align-items: start;
}
.ss img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.ss figcaption { margin-top: 10px; font-family: var(--display); font-style: italic; font-size: 1.05rem; }
.ss--a { grid-column: 1 / 6; }
.ss--a img { aspect-ratio: 4 / 3; }
.ss--b { grid-column: 6 / 9; margin-top: clamp(40px, 5vw, 80px); }
.ss--b img { aspect-ratio: 4 / 5; }
.ss--c { grid-column: 9 / -1; margin-top: clamp(16px, 2vw, 28px); }
.ss--c img { aspect-ratio: 1 / 1; }
html[data-variant="standard"] .ss--b, html[data-variant="standard"] .ss--c { margin-top: 0; }
html[data-variant="standard"] .ss--a { grid-column: 1 / 5; }
html[data-variant="standard"] .ss--b { grid-column: 5 / 9; }
html[data-variant="standard"] .ss--b img, html[data-variant="standard"] .ss--c img { aspect-ratio: 4 / 3; }
@media (max-width: 767px) {
  .studies-strip__head { grid-template-columns: 1fr; }
  .studies-strip__grid { grid-template-columns: 1fr 1fr; row-gap: 20px; }
  .ss--a, html[data-variant="standard"] .ss--a { grid-column: 1 / -1; }
  .ss--b, html[data-variant="standard"] .ss--b { grid-column: 1; margin-top: 0; }
  .ss--c, html[data-variant="standard"] .ss--c { grid-column: 2; margin-top: 0; }
  html[data-variant="epic"] .ss--c { margin-top: 36px; }
}

/* ---------- request explainer + lists ---------- */
.rx__grid, .brief__grid, .terms__grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: 32px;
}
.rx__lead { grid-column: 1 / 6; }
.rx__lead h2 { margin-bottom: 20px; }
.rx__body { grid-column: 7 / -1; }
.rx__subtitle { margin-bottom: 14px; }
.rule-list { list-style: none; margin: 0; padding: 0; }
.rule-list > li { position: relative; padding: 14px 0 14px 34px; border-top: 1px solid var(--rule); }
.rule-list > li:last-child { border-bottom: 1px solid var(--rule); }
.rule-list > li::before {
  content: ""; position: absolute; left: 4px; top: 1.32em; width: 14px; height: 14px;
  border: 1.5px solid var(--copper); border-radius: 50%;
  background: linear-gradient(var(--copper), var(--copper)) center / 1.5px 20px no-repeat, linear-gradient(var(--copper), var(--copper)) center / 20px 1.5px no-repeat;
}
html[data-variant="standard"] .rule-list > li::before { background: none; width: 8px; height: 8px; top: 1.5em; left: 8px; background-color: var(--copper); border: 0; }
.rule-list--compact > li { padding-block: 12px; font-size: .98rem; }
@media (max-width: 899px) {
  .rx__lead, .rx__body { grid-column: 1 / -1; }
}

/* ---------- CTA band ---------- */
.cta-band { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(64px, 9vw, 128px); }
.cta-band__pattern { position: absolute; inset: 0; z-index: -1; }
.cta-band__inner { position: relative; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 20px var(--col-gap); align-items: end; }
.cta-band__title { grid-column: 1; font-size: clamp(2.2rem, 1.5rem + 2.8vw, 3.9rem); }
.cta-band__text { grid-column: 2; color: var(--on-band-soft); margin: 0; }
.cta-band__action { grid-column: 2; margin: 0; }
.cta-band__frame { --cm: #EFC879; inset: clamp(16px, 2.5vw, 32px); }
@media (max-width: 767px) {
  .cta-band__inner { grid-template-columns: 1fr; }
  .cta-band__title, .cta-band__text, .cta-band__action { grid-column: 1; }
  .cta-band__action .btn { width: 100%; }
}

/* ---------- work ---------- */
.work-feature__grid { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); }
.work-feature__media {
  grid-column: 1 / -1; grid-row: 1; position: relative; overflow: hidden; aspect-ratio: 21 / 9;
  border-radius: var(--radius); background: var(--paper-3);
}
.work-feature__layer { position: absolute; inset: -8% 0; translate: 0 var(--depth-y, 0px); }
.work-feature__layer img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 52%; }
.work-feature__media .cropframe { --cm: #F6EEF2; }
.work-card { background: var(--paper); }
.work-card__meta { font-family: var(--display); font-style: italic; color: var(--copper); margin-bottom: 8px; }
html[data-theme="light"] .work-card__meta { color: #8A4526; }
.work-card__title { font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.5rem); margin-bottom: 14px; }
.work-feature .work-card { grid-column: 1 / 7; grid-row: 2; padding-top: 28px; }
html[data-variant="epic"] .work-feature .work-card {
  grid-column: 7 / 12; grid-row: 2; margin-top: clamp(-120px, -9vw, -56px); position: relative; z-index: 2;
  padding: clamp(24px, 3vw, 40px); box-shadow: 0 30px 50px -36px var(--shadow); border-radius: var(--radius);
}
.work-pair__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: 48px; align-items: start; }
.work-item--b { grid-column: 1 / 6; }
.work-item--c { grid-column: 7 / -1; margin-top: clamp(48px, 9vw, 140px); translate: 0 var(--depth-y, 0px); }
html[data-variant="standard"] .work-item--c { margin-top: 0; }
.work-item__media { position: relative; overflow: hidden; aspect-ratio: 3 / 2; border-radius: var(--radius); background: var(--paper-3); margin-bottom: 22px; }
.work-item__media--tall { aspect-ratio: 4 / 5; }
.work-item__media img { width: 100%; height: 100%; object-fit: cover; }
.work-credits { padding-bottom: clamp(56px, 7vw, 104px); }
.work-credits__inner { border-top: 1px solid var(--rule); padding-top: 24px; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--col-gap); }
@media (max-width: 899px) {
  .work-feature__media { aspect-ratio: 4 / 3; }
  .work-feature .work-card, html[data-variant="epic"] .work-feature .work-card { grid-column: 1 / -1; }
  html[data-variant="epic"] .work-feature .work-card { margin: -48px 12px 0; }
  .work-item--b, .work-item--c { grid-column: 1 / -1; margin-top: 0; }
  .work-credits__inner { grid-template-columns: 1fr; }
}

/* ---------- services ---------- */
.svc__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: 36px; align-items: center; }
.svc__media {
  grid-column: 1 / 6; position: relative; overflow: hidden; aspect-ratio: 4 / 5;
  border-radius: var(--radius); background: var(--paper-3);
}
.svc__layer { position: absolute; inset: -8% 0; translate: 0 var(--depth-y, 0px); }
.svc__layer img { width: 100%; height: 100%; object-fit: cover; }
.svc__media .cropframe { --cm: #F6EEF2; }
.svc__body { grid-column: 7 / -1; }
.svc__title { margin-bottom: 24px; }
.svc__sub { margin: 32px 0 10px; padding-top: 20px; border-top: 1px solid var(--rule); }
.svc__body .btn { margin-top: 12px; }
.terms__lead { grid-column: 1 / 5; }
.terms__lead h2 { margin-bottom: 18px; }
.terms__list { grid-column: 6 / -1; margin: 0; }
.terms__row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 16px 24px; padding: 20px 0; border-top: 1px solid var(--rule); }
.terms__row:last-child { border-bottom: 1px solid var(--rule); }
.terms__row dt { font-family: var(--display); font-size: 1.3rem; line-height: 1.2; }
.terms__row dd { margin: 0; color: var(--ink-soft); }
@media (max-width: 899px) {
  .svc__media, .svc__body, .terms__lead, .terms__list { grid-column: 1 / -1; }
  .svc__media { aspect-ratio: 4 / 3.4; }
  .terms__row { grid-template-columns: 1fr; gap: 6px; }
}

/* ---------- approach ---------- */
.ap-band {
  position: relative; overflow: hidden; height: clamp(260px, 42vw, 600px);
  width: min(100% - 2 * var(--gutter), var(--max) + 160px); margin-inline: auto; border-radius: var(--radius);
  background: var(--paper-3);
}
html[data-variant="epic"] .ap-band { width: 100%; border-radius: 0; }
.ap-band__layer { position: absolute; inset: -9% 0; translate: 0 var(--depth-y, 0px); }
.ap-band__layer img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.ap-band__frame { --cm: #F6EEF2; inset: clamp(16px, 2.5vw, 32px); }
.brief__lead { grid-column: 1 / 5; align-self: start; }
.brief__lead h2 { margin-bottom: 18px; }
.brief__list { grid-column: 6 / -1; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--col-gap); }
.brief__list li { padding: 18px 0 20px; border-top: 1px solid var(--rule); }
.brief__item-title { font-size: 1.35rem; margin-bottom: 6px; }
.brief__list p { color: var(--ink-soft); margin: 0; }
.steps__head { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--col-gap); align-items: end; margin-bottom: clamp(32px, 4vw, 56px); }
.steps__head p { margin: 0; color: var(--ink-soft); }
.steps__list {
  position: relative; list-style: none; margin: 0; padding: 28px 0 0;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--col-gap);
}
.steps__list::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--accent);
  transform-origin: left center;
}
.steps__num {
  display: inline-grid; place-items: center; width: 44px; height: 44px; margin: -50px 0 14px;
  border-radius: 50%; background: var(--paper-2); border: 2px solid var(--accent);
  font-family: var(--display); font-size: 1.25rem; color: var(--ink);
}
.steps__title { font-size: 1.3rem; margin-bottom: 8px; }
.steps__item p { color: var(--ink-soft); margin: 0; font-size: 1rem; }
.rights__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: 32px; align-items: center; }
.rights__media { grid-column: 1 / 7; position: relative; overflow: hidden; aspect-ratio: 3 / 2; border-radius: var(--radius); background: var(--paper-3); }
.rights__layer { position: absolute; inset: -8% 0; translate: 0 var(--depth-y, 0px); }
.rights__layer img { width: 100%; height: 100%; object-fit: cover; }
.rights__text { grid-column: 8 / -1; }
.rights__text h2 { margin-bottom: 18px; }
@media (max-width: 1023px) {
  .steps__list { grid-template-columns: 1fr; padding: 0 0 0 30px; gap: 0; }
  .steps__list::before { left: 0; right: auto; top: 0; bottom: 0; width: 2px; height: auto; transform-origin: center top; }
  .steps__item { position: relative; padding: 0 0 26px; }
  .steps__num { position: absolute; left: -52px; top: -6px; margin: 0; }
  .steps__item { padding-left: 24px; }
}
@media (max-width: 899px) {
  .brief__lead, .brief__list, .rights__media, .rights__text { grid-column: 1 / -1; }
  .steps__head { grid-template-columns: 1fr; }
}
@media (max-width: 599px) {
  .brief__list { grid-template-columns: 1fr; }
}

/* ---------- contact + forms ---------- */
.contact { padding-top: clamp(24px, 3vw, 40px); }
.contact__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: 48px; align-items: start; }
.contact__main { grid-column: 1 / 8; }
.contact__aside { grid-column: 9 / -1; }
.contact__media { aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); margin-bottom: 24px; background: var(--paper-3); }
.contact__media img { width: 100%; height: 100%; object-fit: cover; }
.contact__aside h2 { margin-bottom: 12px; }
@media (max-width: 899px) {
  .contact__main, .contact__aside { grid-column: 1 / -1; }
}
.notice {
  border: 1.5px solid var(--field-edge); border-left: 6px solid var(--accent);
  background: var(--paper-2); padding: 20px 22px; margin-bottom: 28px; border-radius: var(--radius);
}
.notice__title { font-family: var(--text); font-size: 1.12rem; font-weight: 600; margin-bottom: 6px; letter-spacing: 0; }
.inquiry__title { font-size: 1.8rem; margin-bottom: 18px; }
.inquiry__fields { border: 0; margin: 0; padding: 0; min-width: 0; }
.inquiry__fields[disabled] .field__input { background: var(--paper-2); }
.field { margin-bottom: 20px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
@media (max-width: 599px) { .field-row { grid-template-columns: 1fr; } }
.field__label { display: block; font-weight: 600; margin-bottom: 6px; }
.field__optional { font-weight: 400; color: var(--ink-soft); }
.field__hint { font-size: .93rem; color: var(--ink-soft); margin: -2px 0 8px; }
.field__input {
  display: block; width: 100%; min-height: 48px; padding: 11px 14px;
  font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--field-bg); border: 1.5px solid var(--field-edge); border-radius: var(--radius);
  transition: border-color .2s, box-shadow .2s;
}
.field__input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--focus); }
.field__input[aria-invalid="true"] { border-color: var(--error); }
.field__textarea { min-height: 150px; resize: vertical; }
.field__select {
  appearance: none; padding-right: 40px;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: right 20px center, right 14px center; background-size: 6px 6px; background-repeat: no-repeat;
}
.field__error { color: var(--error); font-weight: 600; font-size: .95rem; margin: 6px 0 0; }
.field__error[hidden] { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.inquiry__consent { font-size: .95rem; color: var(--ink-soft); margin: 4px 0 20px; }
.inquiry__status:empty { display: none; }
.inquiry__status { margin-top: 20px; }
.form-status { padding: 14px 16px; border-radius: var(--radius); border-left: 5px solid; background: var(--paper-2); margin: 0 0 16px; font-weight: 500; }
.form-status--success { border-color: var(--success); }
.form-status--error { border-color: var(--error); }

/* ---------- footer ---------- */
.site-foot { position: relative; background: var(--paper-2); padding: clamp(48px, 6vw, 80px) 0 28px; overflow: hidden; }
.site-foot__pattern { position: absolute; left: 0; right: 0; top: 0; height: 34px; opacity: .2; }
.site-foot__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 3fr) minmax(0, 5fr); gap: 32px var(--col-gap); }
.site-foot__name { font-family: var(--display); font-size: 1.5rem; margin-bottom: 6px; }
.site-foot__nav ul { list-style: none; margin: 0; padding: 0; }
.site-foot__link { display: inline-flex; align-items: center; min-height: 40px; text-decoration: none; }
.site-foot__link:hover, .site-foot__link[aria-current="page"] { text-decoration: underline; }
.site-foot__note p { color: var(--ink-soft); font-size: .95rem; }
.site-foot__base { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--rule); color: var(--ink-soft); font-size: .9rem; }
@media (max-width: 767px) { .site-foot__grid { grid-template-columns: 1fr; } }

.notfound { padding-block: 120px; }
.notfound h1 { margin-bottom: 16px; }

/* ---------- image failure: never leave an empty hole ---------- */
.img-failed { background: var(--paper-3); }
.img-failed img { opacity: 0; }
.img-failed::before {
  content: attr(data-alt); position: absolute; inset: auto 16px 16px 16px; z-index: 1;
  font-family: var(--display); font-style: italic; color: var(--ink-soft);
}

/* ---------- entrances (armed only after the runtime initialises) ---------- */
[data-depth] { will-change: translate; }
@media (prefers-reduced-motion: no-preference) {
  html.motion-ready [data-reveal="rise"] { transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
  html.motion-ready [data-reveal="rise"]:not(.is-in) { opacity: 0; transform: translate3d(0, var(--rise), 0); }

  html.motion-ready [data-reveal="mask"] .mask-line > span { transition: transform .85s var(--ease-out); transition-delay: calc(var(--l, 0) * 110ms); }
  html.motion-ready [data-reveal="mask"]:not(.is-in) .mask-line > span { transform: translateY(108%); }

  html.motion-ready [data-reveal="crop"] { transition: clip-path .9s var(--ease-io); }
  html.motion-ready [data-reveal="crop"] img { transition: transform 1.2s var(--ease-out); }
  html.motion-ready [data-reveal="crop"]:not(.is-in) { clip-path: inset(14% 6% 14% 6%); }
  html.motion-ready [data-reveal="crop"]:not(.is-in) img { transform: scale(1.12); }

  html.motion-ready [data-reveal="stagger"] > * { transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); transition-delay: calc(var(--i, 0) * 90ms); }
  html.motion-ready [data-reveal="stagger"]:not(.is-in) > * { opacity: 0; transform: translate3d(0, var(--rise), 0); }

  html.motion-ready [data-reveal="rule"]::before { transition: transform 1.1s var(--ease-io); }
  html.motion-ready [data-reveal="rule"]:not(.is-in)::before { transform: scaleX(0); }
  html.motion-ready [data-reveal="rule"] .steps__item { transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); transition-delay: calc(300ms + var(--i, 0) * 110ms); }
  html.motion-ready [data-reveal="rule"]:not(.is-in) .steps__item { opacity: 0; transform: translate3d(0, 24px, 0); }
  @media (max-width: 1023px) {
    html.motion-ready [data-reveal="rule"]:not(.is-in)::before { transform: scaleY(0); }
  }
}
html[data-variant="standard"] { --rise: 18px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
  .masthead, .wordmark, .mobile-nav { transition-duration: .01ms !important; }
  .masthead.is-compact .wordmark { transform: none; }
  [data-depth] { translate: none !important; }
}

/* ---------- admin ---------- */
.admin { background: var(--paper-2); }
.admin__main { width: min(100% - 32px, 1100px); margin: 0 auto; padding: 40px 0 80px; }
.admin__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.admin__head-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.admin__head-actions form { margin: 0; }
.admin__title { font-size: 2.4rem; }
.admin-card { background: var(--paper); border: 1px solid var(--rule); border-radius: 6px; padding: 24px; margin-bottom: 20px; }
.admin-card h2 { font-size: 1.6rem; margin-bottom: 14px; }
.admin-card--narrow { max-width: 460px; margin: 10vh auto 0; }
.admin-dl { margin: 0 0 20px; }
.admin-dl__row { display: grid; grid-template-columns: 200px 1fr; gap: 12px; padding: 8px 0; border-top: 1px solid var(--rule); }
.admin-dl__row dt { font-weight: 600; }
.admin-dl__row dd { margin: 0; }
.admin-settings { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 16px; align-items: end; }
.admin-settings .btn { margin-bottom: 20px; }
.admin-table-wrap { overflow-x: auto; }
.admin-table { border-collapse: collapse; width: 100%; font-size: .95rem; }
.admin-table th, .admin-table td { text-align: left; padding: 10px 8px; border-top: 1px solid var(--rule); vertical-align: top; }
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .85rem; font-weight: 600; }
.pill--on { background: #DCEBD8; color: #1F4220; }
.pill--off { background: var(--paper-3); color: var(--ink); }
.copy-block { border-top: 1px solid var(--rule); padding: 10px 0; }
.copy-block summary { cursor: pointer; font-weight: 600; min-height: 36px; display: flex; align-items: center; }
.copy-block__text { white-space: pre-wrap; background: var(--paper-2); padding: 14px; border-radius: 4px; font-size: .9rem; line-height: 1.5; }
.admin-brief { white-space: pre-wrap; }
@media (max-width: 599px) { .admin-dl__row { grid-template-columns: 1fr; gap: 2px; } }
