/* Site styles. Every value comes from tokens.css (generated from site.json); never hardcode
   a color or font here. */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font-family: var(--sans); font-weight: 400; line-height: 1.7; font-size: 17px; }
a { color: var(--accent); }
img { max-width: 100%; height: auto; }
.wrap { max-width: var(--max-width); margin: 0 auto; padding: 0 clamp(16px, 5vw, 48px); }

.site-nav { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: 72px; padding: 0 clamp(16px, 5vw, 48px); background: var(--bg); border-bottom: 1px solid var(--border); }
.site-logo img { height: 44px; width: auto; display: block; }
.site-links { display: flex; gap: clamp(16px, 3vw, 36px); }
.site-links a { color: var(--text-secondary); text-decoration: none; font-size: 14px; font-weight: 500; letter-spacing: .04em; }
.site-links a:hover { color: var(--text); }

.hero { padding: clamp(72px, 12vw, 160px) 0 clamp(56px, 8vw, 104px); }
.eyebrow { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin: 0 0 20px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.15; color: var(--text); }
h1 { font-size: clamp(40px, 6vw, 72px); margin: 0 0 24px; letter-spacing: -0.01em; }
h2 { font-size: clamp(28px, 3.5vw, 40px); margin: 0 0 16px; }
.lede { font-size: clamp(18px, 2vw, 21px); color: var(--text-secondary); max-width: 640px; margin: 0; }
.section { padding: clamp(56px, 8vw, 96px) 0; border-top: 1px solid var(--border); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; }
.card { background: var(--surface); border: 1px solid var(--border); padding: 28px; }
.card p { color: var(--text-secondary); margin: 0; }
.prose { max-width: 720px; }
.prose p { color: var(--text-secondary); }

form.contact { display: grid; gap: 18px; max-width: 560px; }
form.contact label { font-size: 13px; color: var(--text-secondary); }
form.contact input, form.contact textarea { width: 100%; padding: 12px; font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--border); }
form.contact input::placeholder, form.contact textarea::placeholder { color: var(--text-muted); }
form.contact button, .cookie button { font: inherit; font-size: 14px; font-weight: 500; padding: 12px 20px; border: 1px solid var(--accent); cursor: pointer; }
form.contact button { background: var(--accent); color: var(--surface); justify-self: start; }

.site-footer { border-top: 1px solid var(--border); padding: 40px 0 56px; font-size: 13px; color: var(--text-muted); }
.site-footer p { margin: 0 0 8px; }
.legal-links a { color: var(--text-secondary); margin-right: 16px; }

.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 20; max-width: 560px; margin: 0 auto; padding: 20px;
  background: var(--surface); border: 1px solid var(--border); box-shadow: 0 12px 40px rgba(0,0,0,.12); font-size: 14px; }
.cookie p { margin: 0 0 14px; color: var(--text-secondary); }
.cookie-actions { display: flex; gap: 12px; }
.cookie button { flex: 1; background: var(--surface); color: var(--accent); }
.cookie button[data-consent="accept"] { background: var(--accent); color: var(--surface); }

@media (max-width: 640px) { .site-links { gap: 14px; } .site-links a { font-size: 13px; } }

/* Cosenza components v2 (tokens only) */
.btn { display: inline-block; padding: 14px 22px; background: var(--accent); color: var(--surface); text-decoration: none; font-size: 15px; font-weight: 500; border: 1px solid var(--accent); }
.btn.ghost { background: transparent; color: var(--accent); }
.btn.light { background: var(--surface); color: var(--accent); border-color: var(--surface); }
.btn.line { background: transparent; color: var(--surface); border-color: var(--surface); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.card h3 { font-size: 26px; margin: 0 0 6px; }
.card .role { font-size: 14px; color: var(--text-secondary); margin: 0 0 14px; }
.card ul { margin: 12px 0 0; padding-left: 18px; color: var(--text-secondary); font-size: 15px; }
.card .phone { margin-top: 16px; font-weight: 500; }
.list { list-style: none; margin: 0; padding: 0; }
.list li { padding: 18px 0; border-bottom: 1px solid var(--border); }
.list li strong { display: block; color: var(--text); font-weight: 500; }
.list li span { color: var(--text-secondary); font-size: 15px; }
.note { font-size: 14px; color: var(--text-muted); }
.site-logo { flex-shrink: 0; }
.phero { position: relative; min-height: clamp(460px, 72vh, 760px); display: flex; align-items: flex-end; overflow: hidden; background: var(--text); }
.phero > img, .phero > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (prefers-reduced-motion: reduce) { .phero > video { display: none; } }
.phero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, color-mix(in srgb, var(--text) 88%, transparent) 0%, color-mix(in srgb, var(--text) 62%, transparent) 55%, color-mix(in srgb, var(--text) 28%, transparent) 100%), linear-gradient(to right, color-mix(in srgb, var(--text) 45%, transparent) 0%, transparent 70%); }
.phero .wrap { position: relative; z-index: 1; width: 100%; padding-bottom: clamp(48px, 8vw, 96px); }
.phero h1, .phero .lede, .phero .eyebrow { color: var(--surface); text-shadow: 0 1px 2px rgba(0,0,0,.35), 0 2px 24px rgba(0,0,0,.3); }
.phero .eyebrow { font-weight: 600; letter-spacing: .14em; opacity: 1; }
.phero .lede { max-width: 620px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.split img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.mgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; }
.mcard { background: var(--surface); border: 1px solid var(--border); display: flex; flex-direction: column; text-decoration: none; color: var(--text); }
.mcard img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.mcard .in { padding: 22px 24px 26px; }
.mcard h3 { font-size: 24px; margin: 0 0 6px; }
.mcard p { color: var(--text-secondary); margin: 0; font-size: 15px; }
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; }
.steps > div { border-top: 2px solid var(--accent); padding-top: 18px; }
.steps > div::before { counter-increment: s; content: counter(s, decimal-leading-zero); font-family: var(--serif); font-size: 34px; color: var(--accent); display: block; margin-bottom: 6px; }
.steps h3 { font-size: 22px; margin: 0 0 6px; }
.steps p { color: var(--text-secondary); margin: 0; font-size: 15px; }
.band { background: var(--accent); color: var(--surface); }
.band h2, .band p { color: var(--surface); }
.band .wrap { padding-top: clamp(48px, 7vw, 88px); padding-bottom: clamp(48px, 7vw, 88px); }
.quote { font-family: var(--serif); font-size: clamp(22px, 2.4vw, 28px); line-height: 1.35; color: var(--text); margin: 0 0 12px; }
.who { font-size: 14px; color: var(--text-muted); margin: 0; }
.draft { border: 1px dashed var(--accent); background: var(--surface); padding: 18px 22px; font-size: 15px; color: var(--text-secondary); margin-top: 28px; }
.draft strong { color: var(--accent); font-weight: 600; }
.mono { width: 72px; height: 72px; border-radius: 50%; background: var(--accent); color: var(--surface); display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 28px; margin-bottom: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.chips a { border: 1px solid var(--border); background: var(--surface); padding: 8px 14px; font-size: 14px; color: var(--text); text-decoration: none; }
form.contact select { width: 100%; padding: 12px; font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--border); }
form.contact .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
form.contact .status { font-size: 15px; color: var(--text-secondary); min-height: 1.5em; margin: 0; }
.split.top { align-items: start; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } }
.site-menu { display: none; align-items: center; gap: 10px; min-height: 44px; padding: 0 4px; background: none; border: 0; color: var(--text); font: 500 15px/1 var(--sans); letter-spacing: .02em; cursor: pointer; }
.site-menu-bars, .site-menu-bars::before, .site-menu-bars::after { display: block; width: 20px; height: 2px; background: currentColor; position: relative; transition: transform .2s ease, opacity .2s ease; }
.site-menu-bars::before, .site-menu-bars::after { content: ""; position: absolute; left: 0; }
.site-menu-bars::before { top: -6px; } .site-menu-bars::after { top: 6px; }
.site-nav.open .site-menu-bars { background: transparent; }
.site-nav.open .site-menu-bars::before { transform: translateY(6px) rotate(45deg); }
.site-nav.open .site-menu-bars::after { transform: translateY(-6px) rotate(-45deg); }
.site-links a[aria-current="page"] { color: var(--text); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 6px; text-decoration-thickness: 2px; }
.site-menu:focus-visible, .site-links a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (max-width: 900px) {
  .site-nav { height: 64px; flex-wrap: nowrap; }
  .site-logo img { height: 36px; }
  .site-menu { display: inline-flex; }
  .site-links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--border); box-shadow: 0 18px 40px rgba(0,0,0,.12); padding: 8px clamp(16px, 5vw, 48px) 16px; max-height: calc(100vh - 64px); overflow-y: auto; }
  .site-nav.open .site-links { display: flex; }
  .site-links a { padding: 14px 0; font-size: 17px; color: var(--text); border-bottom: 1px solid var(--border); }
  .site-links a:last-child { border-bottom: 0; }
}
@media (prefers-reduced-motion: reduce) { .site-menu-bars, .site-menu-bars::before, .site-menu-bars::after { transition: none; } }

/* Headshots: portrait frame, keep heads in view */
.mcard img[src*="/family/"] { aspect-ratio: 4 / 5; object-position: center top; }
