/* ==========================================================================
   Belvedere Deluxe — AI Automation
   Classical / old-money editorial system. No gradients, no bright color.
   ========================================================================== */

:root {
  --bg: #F5F0E8;
  --surface: #EEE7DB;
  --surface-2: #E8E0D2;
  --ink: #1A1A1A;
  --ink-2: #6B6560;
  --rule: #D6CDBE;
  --rule-strong: #1A1A1A;
  --dark: #1A1A1A;
  --on-dark: #F5F0E8;
  --on-dark-2: #B9B1A5;
  --rule-dark: #3A3835;
  --error: #8B2E22;

  --font-serif: "Playfair Display", "Didot", "Bodoni 72", Georgia, serif;
  --font-sans: "Montserrat", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section: clamp(4.5rem, 10vw, 8rem);
  --header-h: 72px;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* Reset ------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 400; line-height: 1.12; margin: 0; letter-spacing: -.005em; text-wrap: balance; }
p { margin: 0 0 1.1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.on-dark :focus-visible, .site-footer :focus-visible { outline-color: var(--on-dark); }

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 200;
  background: var(--ink); color: var(--bg); padding: .75rem 1.25rem; text-decoration: none;
}
.skip-link:focus { top: 1rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Layout ------------------------------------------------------------------ */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 780px; }
.section { padding-block: var(--section); position: relative; }
.section--surface { background: var(--surface); }
.section--dark { background: var(--dark); color: var(--on-dark); }
.section--tight { padding-block: clamp(3rem, 7vw, 5rem); }

/* Type -------------------------------------------------------------------- */
.eyebrow {
  font-family: var(--font-sans);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin: 0 0 1.25rem;
}
.on-dark .eyebrow, .section--dark .eyebrow { color: var(--on-dark-2); }

.ruled-label {
  display: flex; align-items: center; gap: clamp(1rem, 3vw, 2rem);
  font-size: .8125rem; font-weight: 500; letter-spacing: .38em; text-transform: uppercase;
  margin: 0 0 clamp(2.5rem, 6vw, 4rem);
  text-align: center;
}
.ruled-label::before, .ruled-label::after { content: ""; flex: 1; height: 1px; background: currentColor; opacity: .7; }
.ruled-label span { margin-right: -.38em; }

.h1 { font-size: clamp(2.5rem, 6.4vw, 4.75rem); line-height: 1.06; }
.h2 { font-size: clamp(2rem, 4.4vw, 3.25rem); }
.h3 { font-size: clamp(1.4rem, 2.4vw, 1.75rem); line-height: 1.25; }
.lede { font-size: clamp(1.0625rem, 1.6vw, 1.1875rem); color: var(--ink-2); max-width: 60ch; }
.section--dark .lede, .on-dark .lede { color: var(--on-dark-2); }
.muted { color: var(--ink-2); }
em.serif, .serif-italic { font-family: var(--font-serif); font-style: italic; }
.center { text-align: center; }
.center .lede { margin-inline: auto; }

.section-head { max-width: 760px; margin-bottom: clamp(2.5rem, 6vw, 4rem); }
.section-head.center { margin-inline: auto; }
.section-head .h2 + .lede { margin-top: 1.25rem; }

/* Buttons ----------------------------------------------------------------- */
.btn {
  --btn-fg: var(--ink); --btn-bg: transparent; --btn-bd: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: .9em;
  min-height: 52px; padding: .95rem 2rem;
  border: 1px solid var(--btn-bd); background: var(--btn-bg); color: var(--btn-fg);
  font-family: var(--font-serif); font-size: 1rem; letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; border-radius: 2px;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn svg { width: 1.15em; height: 1.15em; flex: none; transition: transform .25s var(--ease); }
.btn:hover { --btn-bg: var(--ink); --btn-fg: var(--bg); }
.btn:hover svg { transform: translateX(4px); }
.btn--solid { --btn-bg: var(--ink); --btn-fg: var(--bg); }
.btn--solid:hover { --btn-bg: #000; }
.btn--light { --btn-fg: var(--on-dark); --btn-bd: var(--on-dark); }
.btn--light:hover { --btn-bg: var(--on-dark); --btn-fg: var(--ink); }
.btn--lg { padding: 1.15rem 2.25rem; font-size: clamp(.95rem, 1.8vw, 1.125rem); }
.btn--sm { min-height: 44px; padding: .6rem 1.25rem; font-size: .8125rem; }
.btn[disabled] { opacity: .6; cursor: progress; }

.text-link {
  display: inline-flex; align-items: center; gap: .6em;
  font-size: .8125rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  text-decoration: none; padding-block: .5rem; min-height: 44px;
  border-bottom: 1px solid currentColor;
}
.text-link svg { width: 1.1em; height: 1.1em; transition: transform .25s var(--ease); }
.text-link:hover svg { transform: translateX(4px); }

/* Header ------------------------------------------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--rule); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 1.5rem; }

.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; min-height: 44px; }
.brand img { width: 38px; height: 38px; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--font-serif); font-size: 1.0625rem; letter-spacing: .34em; margin-right: -.34em; }
.brand__sub { font-size: .625rem; font-weight: 500; letter-spacing: .42em; color: var(--ink-2); margin-top: .4rem; text-transform: uppercase; }

.nav { display: none; }
.nav__list { list-style: none; display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2rem); }
.nav__link {
  display: inline-flex; align-items: center; min-height: 44px;
  font-size: .75rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; text-decoration: none;
  color: var(--ink-2); transition: color .2s var(--ease); position: relative;
}
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--ink); }
.nav__link[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: .2em; bottom: 9px; height: 1px; background: var(--ink); }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; margin-right: -12px; background: none; border: 0; cursor: pointer;
}
.nav-toggle svg { width: 26px; height: 26px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.mobile-nav {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 99;
  background: var(--bg); padding: 2rem var(--gutter) 3rem;
  display: flex; flex-direction: column; gap: 2rem; overflow-y: auto;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s linear .25s;
}
.mobile-nav.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.mobile-nav ul { list-style: none; border-top: 1px solid var(--rule); }
.mobile-nav li { border-bottom: 1px solid var(--rule); }
.mobile-nav a:not(.btn) {
  display: flex; justify-content: space-between; align-items: center; min-height: 64px;
  font-family: var(--font-serif); font-size: 1.625rem; text-decoration: none;
}
.mobile-nav a[aria-current="page"] { font-style: italic; }
.mobile-nav .btn { width: 100%; }
body.nav-open { overflow: hidden; }

@media (min-width: 960px) {
  .nav { display: flex; align-items: center; gap: 2rem; }
  .nav-toggle, .mobile-nav { display: none; }
}

/* Hero -------------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; padding: clamp(3rem, 8vw, 6rem) 0 clamp(4rem, 9vw, 7rem); text-align: center; }
.hero__columns { position: absolute; inset: 0; pointer-events: none; color: var(--ink); opacity: .055; }
.hero__columns svg { position: absolute; top: -4%; height: 112%; width: auto; }
.hero__columns .col-l { left: -3%; }
.hero__columns .col-r { right: -3%; }
@media (max-width: 767px) { .hero__columns { display: none; } }

.hero__inner { position: relative; }
.hero__rotunda { width: clamp(128px, 20vw, 196px); height: auto; margin: 0 auto clamp(1.25rem, 3vw, 2rem); }

.wordmark { display: flex; flex-direction: column; align-items: center; margin-bottom: clamp(2.5rem, 6vw, 4rem); }
.wordmark__name { font-family: var(--font-serif); font-size: clamp(1.75rem, 6vw, 3.25rem); letter-spacing: .4em; margin-right: -.4em; line-height: 1; }
.wordmark__deluxe {
  display: flex; align-items: center; gap: 1.25rem; width: min(100%, 30rem); margin-top: 1rem;
  font-family: var(--font-serif); font-size: clamp(.95rem, 2vw, 1.25rem); letter-spacing: .5em;
}
.wordmark__deluxe::before, .wordmark__deluxe::after { content: ""; flex: 1; height: 1px; background: var(--ink); }
.wordmark__deluxe span { margin-right: -.5em; }
.wordmark__ai { margin-top: .75rem; font-size: clamp(.75rem, 1.5vw, .9375rem); font-weight: 500; letter-spacing: .5em; margin-right: -.5em; }

.hero .h1 { max-width: 22ch; margin: 0 auto; }
.hero .lede { margin: 1.75rem auto 2.5rem; max-width: 56ch; }
.hero__meta {
  margin-top: 2rem; display: flex; justify-content: center; align-items: center; gap: .6rem;
  font-size: .75rem; font-weight: 500; letter-spacing: .28em; text-transform: uppercase; color: var(--ink-2);
}
.hero__meta svg { width: 16px; height: 16px; }

/* Page hero (inner pages) ------------------------------------------------- */
.page-hero { padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(3rem, 7vw, 5rem); border-bottom: 1px solid var(--rule); position: relative; overflow: hidden; }
.page-hero .h1 { font-size: clamp(2.5rem, 6vw, 4.25rem); max-width: 18ch; }
.page-hero .lede { margin-top: 1.5rem; }
.page-hero__mark { position: absolute; right: var(--gutter); bottom: -8px; width: clamp(140px, 22vw, 280px); opacity: .08; pointer-events: none; }
@media (max-width: 767px) { .page-hero__mark { display: none; } }

/* Services grid ----------------------------------------------------------- */
.services-grid { display: grid; gap: 0; grid-template-columns: 1fr; border-top: 1px solid var(--rule); }
@media (min-width: 720px) { .services-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }

.service-card {
  position: relative; display: flex; flex-direction: column; gap: 1rem;
  padding: 2.25rem clamp(0rem, 2vw, 2rem) 2.5rem;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  transition: background-color .3s var(--ease);
}
@media (min-width: 720px) {
  .service-card { padding-inline: 2rem; }
  .service-card:nth-child(odd) { border-right: 1px solid var(--rule); }
}
@media (min-width: 1080px) {
  .service-card:nth-child(odd) { border-right: 0; }
  .service-card:not(:nth-child(3n)) { border-right: 1px solid var(--rule); }
}
.service-card:hover { background: var(--surface); }
.service-card__top { display: flex; align-items: center; justify-content: space-between; }
.numeral { font-family: var(--font-serif); font-size: .9375rem; letter-spacing: .12em; color: var(--ink-2); }
.icon-disc {
  width: 64px; height: 64px; border-radius: 50%; background: var(--surface-2);
  display: grid; place-items: center; flex: none;
}
.icon-disc svg { width: 28px; height: 28px; stroke: var(--ink); fill: none; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.service-card h3 { font-family: var(--font-sans); font-size: .875rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; line-height: 1.5; margin-top: .5rem; }
.service-card p { color: var(--ink-2); font-size: 1rem; }
.service-card .text-link { margin-top: auto; align-self: flex-start; font-size: .75rem; }

/* Stats ------------------------------------------------------------------- */
.stats { display: grid; grid-template-columns: 1fr; }
.stat { padding: 2.25rem 1rem; text-align: center; border-bottom: 1px solid var(--rule-dark); }
.stat:last-child { border-bottom: 0; }
@media (min-width: 768px) {
  .stats { grid-template-columns: repeat(3, 1fr); }
  .stat { border-bottom: 0; border-right: 1px solid var(--rule-dark); padding-block: 1rem; }
  .stat:last-child { border-right: 0; }
}
.stat__value { font-family: var(--font-serif); font-size: clamp(2.75rem, 6vw, 4.25rem); line-height: 1; font-variant-numeric: lining-nums tabular-nums; }
.stat__value small { font-size: .45em; letter-spacing: .02em; color: var(--on-dark-2); margin-left: .1em; }
.stat__label { margin-top: 1rem; font-size: .75rem; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; }
.stat__note { margin-top: .5rem; font-size: .9375rem; color: var(--on-dark-2); }

/* Case preview / ledger --------------------------------------------------- */
.split { display: grid; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1fr; } }
.split--top { align-items: start; }

.ledger { border: 1px solid var(--ink); background: var(--bg); padding: clamp(1.5rem, 4vw, 2.5rem); }
.ledger__head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--ink); margin-bottom: .25rem; }
.ledger__title { font-family: var(--font-serif); font-size: 1.25rem; font-style: italic; }
.ledger__tag { font-size: .6875rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-2); }
.ledger dl { margin: 0; }
.ledger__row { display: flex; justify-content: space-between; align-items: baseline; gap: 1.5rem; padding: 1rem 0; border-bottom: 1px solid var(--rule); }
.ledger__row:last-child { border-bottom: 0; padding-bottom: 0; }
.ledger dt { font-size: .9375rem; color: var(--ink-2); }
.ledger dd { margin: 0; font-family: var(--font-serif); font-size: 1.375rem; text-align: right; font-variant-numeric: lining-nums tabular-nums; }
.ledger dd.small { font-family: var(--font-sans); font-size: .875rem; font-weight: 500; letter-spacing: .02em; }

/* CTA band ---------------------------------------------------------------- */
.cta-band { position: relative; overflow: hidden; text-align: center; padding-bottom: 0; }
.cta-band .h2 { max-width: 20ch; margin-inline: auto; }
.cta-band .lede { margin: 1.25rem auto 2.25rem; }
.cta-band__tag { margin-top: 1.75rem; font-size: .75rem; font-weight: 500; letter-spacing: .38em; text-transform: uppercase; color: var(--ink-2); }
.aqueduct { display: block; width: 100%; height: auto; margin-top: clamp(3rem, 7vw, 5rem); color: var(--ink); opacity: .9; }
.aqueduct--faint { opacity: .12; }

/* Services detail --------------------------------------------------------- */
.svc-index { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin-top: 2.5rem; }
.svc-index a { display: inline-flex; align-items: center; min-height: 44px; font-size: .8125rem; letter-spacing: .08em; color: var(--ink-2); text-decoration: none; border-bottom: 1px solid var(--rule); }
.svc-index a:hover { color: var(--ink); border-color: var(--ink); }

.svc { padding-block: clamp(3.5rem, 8vw, 6rem); border-bottom: 1px solid var(--rule); }
.svc:last-of-type { border-bottom: 0; }
.svc__grid { display: grid; gap: 2rem 4rem; }
@media (min-width: 960px) { .svc__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.svc__label { display: flex; align-items: center; gap: 1.25rem; margin-bottom: 1.5rem; }
.svc__num { font-family: var(--font-serif); font-size: clamp(3rem, 7vw, 5rem); line-height: .9; color: var(--ink); }
.svc h2 { font-size: clamp(1.875rem, 3.6vw, 2.625rem); }
.svc__summary { margin-top: 1.25rem; font-family: var(--font-serif); font-style: italic; font-size: 1.25rem; line-height: 1.5; color: var(--ink-2); }
.svc__body > p { font-size: 1.0625rem; }
.detail-cols { display: grid; gap: 2rem; margin-top: 2rem; }
@media (min-width: 640px) { .detail-cols { grid-template-columns: 1fr 1fr; } }
.detail-cols h3 { font-family: var(--font-sans); font-size: .75rem; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; padding-bottom: .75rem; border-bottom: 1px solid var(--ink); margin-bottom: .75rem; }
.ticks { list-style: none; }
.ticks li { position: relative; padding: .55rem 0 .55rem 1.5rem; border-bottom: 1px solid var(--rule); font-size: .9375rem; }
.ticks li:last-child { border-bottom: 0; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 1.15rem; width: 8px; height: 1px; background: var(--ink); }

/* Case study page --------------------------------------------------------- */
.facts { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
@media (min-width: 900px) { .facts { grid-template-columns: repeat(4, 1fr); } }
.fact { padding: 1.75rem 1rem 1.75rem 0; }
.fact + .fact { padding-left: 1rem; }
@media (max-width: 899px) {
  .fact:nth-child(odd) { padding-left: 0; border-right: 1px solid var(--rule); }
  .fact:nth-child(-n+2) { border-bottom: 1px solid var(--rule); }
}
@media (min-width: 900px) { .fact:not(:last-child) { border-right: 1px solid var(--rule); } .fact + .fact { padding-left: 1.5rem; } }
.fact__value { font-family: var(--font-serif); font-size: clamp(2rem, 5vw, 3rem); line-height: 1; font-variant-numeric: lining-nums tabular-nums; }
.fact__label { margin-top: .75rem; font-size: .8125rem; color: var(--ink-2); line-height: 1.5; }

.prose h2 { font-size: clamp(1.75rem, 3.4vw, 2.375rem); margin: 3.5rem 0 1.25rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-family: var(--font-sans); font-size: .8125rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; margin: 2.25rem 0 .75rem; }
.prose p, .prose li { font-size: 1.0625rem; }
.prose ul { padding-left: 1.25rem; margin-bottom: 1.1em; }
.prose li { margin-bottom: .5em; }
.prose a { text-underline-offset: 3px; }

.pipeline { list-style: none; display: grid; gap: 0; margin: 2.5rem 0; counter-reset: step; }
@media (min-width: 900px) { .pipeline { grid-template-columns: repeat(4, 1fr); } }
.pipeline li { position: relative; padding: 1.75rem 1.5rem; border: 1px solid var(--ink); background: var(--bg); counter-increment: step; }
.pipeline li + li { border-top: 0; }
@media (min-width: 900px) { .pipeline li + li { border-top: 1px solid var(--ink); border-left: 0; } }
.pipeline li::before { content: counter(step, upper-roman); display: block; font-family: var(--font-serif); font-size: .9375rem; letter-spacing: .1em; color: var(--ink-2); margin-bottom: .75rem; }
.pipeline strong { display: block; font-family: var(--font-serif); font-weight: 400; font-size: 1.375rem; margin-bottom: .4rem; }
.pipeline span { font-size: .9375rem; color: var(--ink-2); line-height: 1.55; display: block; }
.pipeline li:not(:last-child)::after {
  content: ""; position: absolute; z-index: 1; background: var(--bg); border: 1px solid var(--ink);
  width: 12px; height: 12px; transform: rotate(45deg);
  left: calc(50% - 6px); bottom: -7px;
}
@media (min-width: 900px) { .pipeline li:not(:last-child)::after { left: auto; right: -7px; bottom: auto; top: calc(50% - 6px); } }

.quote {
  margin: 0; padding: clamp(2rem, 5vw, 3rem) 0; border-top: 1px solid var(--rule-dark); border-bottom: 1px solid var(--rule-dark);
  font-family: var(--font-serif); font-size: clamp(1.5rem, 3.2vw, 2.25rem); line-height: 1.35; font-style: italic;
}

/* About ------------------------------------------------------------------- */
.portrait { border: 1px solid var(--ink); padding: 14px; background: var(--bg); max-width: 440px; width: 100%; }
.portrait__inner { background: var(--surface); overflow: hidden; }
.portrait__inner img.photo { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 30%; }
.portrait__label { margin-top: 1rem; font-size: .6875rem; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--ink-2); }

.principles { display: grid; gap: 0; border-top: 1px solid var(--rule-dark); }
@media (min-width: 900px) { .principles { grid-template-columns: repeat(3, 1fr); } }
.principle { padding: 2.25rem 0; border-bottom: 1px solid var(--rule-dark); }
@media (min-width: 900px) {
  .principle { padding: 2.5rem 2rem; border-bottom: 0; }
  .principle:first-child { padding-left: 0; }
  .principle:not(:last-child) { border-right: 1px solid var(--rule-dark); }
}
.principle .numeral { color: var(--on-dark-2); }
.principle h3 { font-size: 1.625rem; margin: .75rem 0 .75rem; }
.principle p { color: var(--on-dark-2); }

.areas { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: .25rem 0; }
.areas li { font-size: .75rem; font-weight: 500; letter-spacing: .28em; text-transform: uppercase; }
.areas li:not(:last-child)::after { content: "/"; margin: 0 1rem; color: var(--ink-2); letter-spacing: 0; }

/* Contact ----------------------------------------------------------------- */
.contact-grid { display: grid; gap: clamp(3rem, 6vw, 5rem); }
@media (min-width: 960px) { .contact-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); } }
.contact-aside dl { margin: 2rem 0 0; }
.contact-aside dt { font-size: .6875rem; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--ink-2); margin-top: 1.75rem; }
.contact-aside dd { margin: .35rem 0 0; font-family: var(--font-serif); font-size: 1.25rem; }
.contact-aside dd a { text-decoration: none; border-bottom: 1px solid var(--rule); }
.contact-aside dd a:hover { border-color: var(--ink); }

.form-card { border: 1px solid var(--ink); padding: clamp(1.5rem, 4vw, 3rem); background: var(--bg); }
.form-grid { display: grid; gap: 1.5rem; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .field--full { grid-column: 1 / -1; } }
.field { display: flex; flex-direction: column; gap: .5rem; }
.field label { font-size: .75rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
.field label .opt { font-weight: 400; letter-spacing: .06em; text-transform: none; color: var(--ink-2); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: .8rem 1rem;
  font-size: 1rem; background: #FBF8F3; border: 1px solid #BDB4A6; border-radius: 2px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
  -webkit-appearance: none; appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%231A1A1A' stroke-width='1.4'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; cursor: pointer;
}
.field textarea { min-height: 150px; resize: vertical; line-height: 1.6; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink-2); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.field .hint { font-size: .8125rem; color: var(--ink-2); }
.field .error { font-size: .8125rem; color: var(--error); display: none; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--error); }
.field.has-error .error { display: block; }
.form-foot { margin-top: 2rem; display: flex; flex-direction: column; gap: 1.25rem; align-items: flex-start; }
.form-foot small { font-size: .8125rem; color: var(--ink-2); }
.form-status { font-size: .9375rem; color: var(--error); }
.hp { position: absolute; left: -9999px; }

.form-success { text-align: center; padding: clamp(1rem, 4vw, 2.5rem) 0; }
.form-success img { width: 88px; margin: 0 auto 1.5rem; }
.form-success h2 { font-size: clamp(1.875rem, 4vw, 2.5rem); margin-bottom: 1rem; }
.form-success p { color: var(--ink-2); max-width: 44ch; margin-inline: auto; }

/* Legal ------------------------------------------------------------------- */
.legal .prose h2 { font-size: clamp(1.5rem, 2.8vw, 1.875rem); margin-top: 3rem; }
.legal .prose p, .legal .prose li { font-size: 1rem; }
.legal-toc { list-style: none; border-top: 1px solid var(--rule); margin-bottom: 3rem; }
.legal-toc li { border-bottom: 1px solid var(--rule); }
.legal-toc a { display: flex; align-items: center; gap: 1rem; min-height: 48px; font-size: .9375rem; text-decoration: none; color: var(--ink-2); }
.legal-toc a:hover { color: var(--ink); }
.legal-toc a span { font-family: var(--font-serif); width: 2.5rem; color: var(--ink); }

/* Footer ------------------------------------------------------------------ */
.site-footer { background: var(--dark); color: var(--on-dark); padding: clamp(3.5rem, 8vw, 5.5rem) 0 2rem; }
.footer-grid { display: grid; gap: 2.75rem; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-brand img { width: 64px; height: 64px; filter: invert(1) sepia(.25); margin-bottom: 1.25rem; }
.footer-brand .brand__name { font-size: 1.25rem; }
.footer-brand p { margin-top: 1.25rem; color: var(--on-dark-2); max-width: 32ch; font-size: .9375rem; }
.footer-col h2 { font-family: var(--font-sans); font-size: .6875rem; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; color: var(--on-dark-2); margin-bottom: 1rem; }
.footer-col ul { list-style: none; }
.footer-col a, .footer-col li { display: inline-flex; align-items: center; min-height: 40px; font-size: .9375rem; text-decoration: none; color: var(--on-dark); }
.footer-col li { display: flex; }
.footer-col a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-serving { margin-top: clamp(3rem, 6vw, 4.5rem); padding-top: 2rem; border-top: 1px solid var(--rule-dark); text-align: center; }
.footer-serving .label { display: inline-flex; align-items: center; gap: .6rem; font-size: .75rem; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; margin-bottom: 1rem; }
.footer-serving .label svg { width: 16px; height: 16px; }
.footer-serving .areas li { color: var(--on-dark-2); }
.footer-serving .areas li::after { color: var(--rule-dark) !important; }
.footer-legal { margin-top: 2.5rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: .8125rem; color: var(--on-dark-2); }
.footer-legal a { color: var(--on-dark-2); }
.footer-legal nav { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-legal button { background: none; border: 0; padding: 0; cursor: pointer; color: var(--on-dark-2); text-decoration: underline; font-size: inherit; }

/* Cookie banner ----------------------------------------------------------- */
.cookie {
  position: fixed; z-index: 150; left: 1rem; right: 1rem; bottom: 1rem;
  max-width: 560px; margin-inline: auto;
  background: var(--dark); color: var(--on-dark);
  padding: 1.5rem; border-radius: 2px;
  box-shadow: 0 18px 40px -18px rgba(26, 26, 26, .45);
  transform: translateY(calc(100% + 2rem)); visibility: hidden;
  transition: transform .45s var(--ease), visibility 0s linear .45s;
}
.cookie.is-visible { transform: none; visibility: visible; transition-delay: 0s; }
@media (min-width: 768px) { .cookie { left: 1.5rem; right: auto; bottom: 1.5rem; margin: 0; } }
.cookie h2 { font-size: 1.25rem; margin-bottom: .5rem; }
.cookie p { font-size: .875rem; color: var(--on-dark-2); line-height: 1.6; }
.cookie p a { color: var(--on-dark); }
.cookie__actions { display: flex; gap: .75rem; margin-top: 1.25rem; flex-wrap: wrap; }
.cookie__actions .btn { flex: 1 1 auto; font-size: .8125rem; }

/* Reveal ------------------------------------------------------------------ */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal[data-delay="1"] { transition-delay: .08s; }
.js .reveal[data-delay="2"] { transition-delay: .16s; }
.js .reveal[data-delay="3"] { transition-delay: .24s; }
.js .reveal[data-delay="4"] { transition-delay: .32s; }
.js .reveal[data-delay="5"] { transition-delay: .40s; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
