/* site.css - company-registration-italy.com. DESIGN.md is the contract; tokens in tokens.css; the owner's reference,
   clause by clause, in context/design-brief.md. */

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 32px); }
body { margin: 0; background: var(--bg); color: var(--text); font: var(--fw-text) var(--fs-body)/var(--lh-body) var(--font); overflow-x: hidden; }
img, svg, video { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--text-strong); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--accent-text); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { color: var(--text-strong); font-weight: var(--fw-display); line-height: var(--lh-head); letter-spacing: var(--track-display); margin: 0 0 var(--s-4); text-wrap: balance; }
h1 { font-size: var(--fs-h1); line-height: var(--lh-tight); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: var(--fw-text); letter-spacing: 0; }
h4 { font-size: 1.125rem; font-weight: var(--fw-label); letter-spacing: 0; }
p { margin: 0 0 var(--s-4); }
strong { font-weight: var(--fw-strong); color: var(--text-strong); }
code { font-size: .92em; background: var(--stone-200); padding: .05em .35em; border-radius: 4px; }
ul, ol { padding-left: 1.2em; margin: 0 0 var(--s-4); }
li { margin-bottom: var(--s-2); }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--navy-700); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 16px; }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.anchor { display: block; position: relative; top: calc(-1 * var(--header-h)); }
.eyebrow { font-size: var(--fs-label); font-weight: var(--fw-label); letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); margin: 0 0 var(--s-4); }
.on-dark { color: var(--text-on-band); }
.on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4, .on-dark strong { color: var(--text-on-band-strong); }
.on-dark a { color: var(--accent-on-band); text-decoration-color: currentColor; }
.on-dark a:hover { color: #fff; }
.on-dark .eyebrow { color: var(--accent-on-band); }
.tone { color: var(--accent); }

/* ---------- buttons (brief clauses 5, 25) ---------- */
.btnrow { display: flex; flex-wrap: wrap; gap: var(--s-3); margin: var(--s-5) 0 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s-3); min-height: var(--btn-h); padding: 0 var(--s-5); border-radius: var(--r-ctl); border: 1px solid var(--navy-700); background: transparent; color: var(--navy-700); font: var(--fw-label) 1rem/1.2 var(--font); text-decoration: none; cursor: pointer; transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast); }
.btn:hover { background: var(--navy-700); color: #fff; }
.btn--primary { background: var(--apricot-400); border-color: var(--apricot-400); color: var(--navy-900); border-radius: var(--r-pill); }
.btn--primary:hover { background: var(--apricot-300); border-color: var(--apricot-300); color: var(--navy-900); }
.btn--ghost { padding-right: 8px; }
.chip { display: inline-grid; place-items: center; width: var(--chip); height: var(--chip); border-radius: 6px; background: var(--apricot-400); color: var(--navy-900); flex: none; }
.chip svg { width: 14px; height: 14px; }
.on-dark .btn { border-color: rgba(255, 255, 255, .7); color: #fff; }
.on-dark .btn:hover { background: #fff; color: var(--navy-700); }
.on-dark .btn--primary { border-color: var(--apricot-400); color: var(--navy-900); }
.on-dark .btn--primary:hover { background: var(--apricot-300); color: var(--navy-900); }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }

/* ---------- header: the floating rounded bar (brief clause 7) ---------- */
.site-header { position: fixed; z-index: 50; top: 16px; left: 0; right: 0; padding-inline: var(--gutter); pointer-events: none; }
.site-header__bar { pointer-events: auto; max-width: var(--wrap); margin-inline: auto; height: var(--header-h); display: flex; align-items: center; gap: var(--s-5); padding: 0 12px 0 22px; border-radius: var(--r-card); background: var(--header-bg); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); box-shadow: var(--shadow-float); transition: background var(--t-mid); }
.site-header.is-scrolled .site-header__bar { background: rgba(250, 245, 239, .94); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--navy-700); text-decoration: none; flex: none; }
.brand__mark { width: 30px; height: 30px; color: var(--navy-700); }
.brand__word { font-size: 1.375rem; font-weight: var(--fw-display); letter-spacing: -.01em; line-height: 1; color: var(--navy-700); }
.brand__word b { font-weight: var(--fw-strong); }
.nav { margin-left: auto; }
.nav > ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav__group { position: relative; margin: 0; }
.nav__group > a { display: block; padding: 10px 12px; border-radius: 8px; color: var(--navy-900); text-decoration: none; font-size: .9375rem; font-weight: var(--fw-label); }
.nav__group > a:hover, .nav__group.is-current > a { background: rgba(255, 255, 255, .55); }
.nav__menu { position: absolute; top: calc(100% + 10px); left: -8px; min-width: 300px; padding: 10px; background: var(--cream-50); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow-float); opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity var(--t-fast), transform var(--t-fast), visibility var(--t-fast); }
.nav__menu::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.nav__group:hover .nav__menu, .nav__group:focus-within .nav__menu { opacity: 1; visibility: visible; transform: none; }
.nav__menu ul { list-style: none; margin: 0; padding: 0; }
.nav__menu li { margin: 0; }
.nav__menu a { display: block; padding: 9px 12px; border-radius: 8px; color: var(--navy-700); text-decoration: none; font-size: .9375rem; }
.nav__menu a:hover, .nav__menu a[aria-current] { background: var(--cream-100); color: var(--navy-900); }
.btn--head { min-height: 46px; padding: 0 20px; flex: none; }
.burger { display: none; width: 46px; height: 46px; border: 0; border-radius: 10px; background: transparent; cursor: pointer; margin-left: auto; }
.burger__lines, .burger__lines::before, .burger__lines::after { display: block; width: 22px; height: 1.6px; background: var(--navy-700); margin: auto; position: relative; transition: transform var(--t-fast); }
.burger__lines::before, .burger__lines::after { content: ""; position: absolute; left: 0; }
.burger__lines::before { top: -7px; } .burger__lines::after { top: 7px; }
.drawer-open .burger__lines { background: transparent; }
.drawer-open .burger__lines::before { transform: translateY(7px) rotate(45deg); }
.drawer-open .burger__lines::after { transform: translateY(-7px) rotate(-45deg); }
.drawer { display: none; pointer-events: auto; max-width: var(--wrap); margin: 10px auto 0; max-height: calc(100vh - var(--header-h) - 48px); overflow: auto; padding: var(--s-5); background: var(--cream-50); border-radius: var(--r-card); box-shadow: var(--shadow-float); }
.drawer.is-open { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: var(--s-5); }
.drawer__group { font-size: var(--fs-label); text-transform: uppercase; letter-spacing: .08em; color: var(--accent-text); font-weight: var(--fw-label); margin: 0 0 var(--s-2); }
.drawer ul { list-style: none; padding: 0; margin: 0; }
.drawer li { margin: 0; }
.drawer a { display: block; padding: 8px 0; color: var(--navy-700); text-decoration: none; border-bottom: 1px solid var(--line); }
@media (max-width: 1199px) {
  .nav { display: none; }
  .burger { display: block; }
  .btn--head { margin-left: auto; }
  .btn--head + .burger { margin-left: 0; }
}
@media (max-width: 599px) {
  .site-header { top: 10px; }
  .site-header__bar { height: 64px; padding: 0 8px 0 16px; }
  .btn--head { display: none; }
  .brand__word { font-size: 1.25rem; }
}

/* ---------- home hero (brief clause 8) ---------- */
.hero-home { position: relative; min-height: max(640px, 100svh); display: grid; grid-template-rows: 1fr auto; background: var(--navy-900); isolation: isolate; overflow: hidden; }
.hero-home__media { position: absolute; inset: 0; z-index: -1; }
.hero-home__media img, .hero-home__media picture { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.hero-home__media::after { content: ""; position: absolute; inset: 0; z-index: 2; background: linear-gradient(180deg, rgba(0, 30, 56, .78) 0%, rgba(0, 44, 80, .62) 45%, rgba(0, 30, 56, .92) 100%); }
.hero-home__media::before { content: ""; position: absolute; inset: 0; z-index: 1; background: var(--navy-700); mix-blend-mode: color; opacity: .9; }
.hero-home__inner { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; padding: calc(var(--header-h) + 96px) 0 var(--s-7); display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 340px); grid-template-areas: "kick kick" "h1 h1" ". aside"; column-gap: var(--s-7); align-content: end; }
.hero-home .eyebrow { grid-area: kick; }
.hero-home h1 { grid-area: h1; font-size: var(--fs-hero); font-weight: var(--fw-display); line-height: 1.02; letter-spacing: -.02em; color: #fff; max-width: 15ch; margin-bottom: var(--s-6); }
.hero-home__aside { grid-area: aside; }
.hero-home__aside .hero__sub { color: #fff; font-size: 1rem; line-height: 1.55; }
.hero-home__foot { border-top: 1px solid var(--line-on-band); }
.hero__chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-6); }
.hero-home__foot .hero__chips { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; padding: var(--s-4) 0; }
.hero__chips li { margin: 0; font-size: var(--fs-small); display: flex; align-items: center; gap: 10px; }
.hero__chips li::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--accent); flex: none; }
@media (max-width: 767px) {
  .hero-home { min-height: 0; }
  .hero-home__inner { grid-template-columns: 1fr; grid-template-areas: "kick" "h1" "aside"; padding-top: calc(var(--header-h) + 64px); }
  .hero-home h1 { max-width: none; }
}

/* ---------- service hero (brief clause 20) ---------- */
.hero-svc { position: relative; padding-top: 0; }
.hero-svc__media { height: clamp(420px, 62vh, 640px); overflow: hidden; border-radius: 0 0 var(--r-panel) var(--r-panel); }
.hero-svc__media img, .hero-svc__media picture { width: 100%; height: 100%; object-fit: cover; }
.hero-svc__card { position: relative; width: min(100% - 2 * var(--gutter), 760px); margin: -220px 0 0 max(var(--gutter), calc((100% - var(--wrap)) / 2)); padding: var(--s-6) var(--s-6) var(--s-5); background: var(--navy-700); border-radius: var(--r-card); box-shadow: var(--shadow-float); }
.hero-svc__card h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.5rem); color: #fff; }
.hero-svc__card .hero__sub { font-size: var(--fs-lead); color: var(--text-on-band); }
.hero-svc__foot .hero__chips { width: min(100% - 2 * var(--gutter), var(--wrap)); margin: var(--s-5) auto 0; padding-top: var(--s-4); border-top: 1px solid var(--line); }
.hero-svc__foot .hero__chips li { color: var(--navy-700); }
@media (max-width: 767px) {
  .hero-svc__media { height: 300px; border-radius: 0 0 var(--r-card) var(--r-card); }
  .hero-svc__card { margin: -60px auto 0; padding: var(--s-5); }
}

/* ---------- guide and plain heroes ---------- */
.hero-guide { padding: calc(var(--header-h) + 72px) 0 var(--s-7); }
.hero-guide .wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s-7); align-items: end; }
.hero-guide h1 { font-size: var(--fs-h1); }
.hero-guide__media img, .hero-guide__media picture { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-card); }
.hero-guide .meta { font-size: var(--fs-small); color: var(--text-muted); }
.hero-guide .meta a { color: var(--navy-700); }
.hero-plain { padding: calc(var(--header-h) + 72px) 0 var(--s-6); }
.hero-plain .wrap > h1 { max-width: 22ch; }
.hero__sub { font-size: var(--fs-lead); max-width: 62ch; }
@media (max-width: 991px) { .hero-guide .wrap { grid-template-columns: 1fr; } }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: var(--fs-label); margin-bottom: var(--s-4); color: var(--text-muted); }
.crumbs a { color: inherit; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.on-dark .crumbs { color: rgba(255, 255, 255, .7); }
.on-dark .crumbs a { color: rgba(255, 255, 255, .8); }

/* ---------- sections ---------- */
main { counter-reset: sec; }
.section { padding: var(--section-y) 0; }
.section--navy { background: var(--bg-band); }
.section__head { max-width: 900px; margin-bottom: var(--s-6); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head h2 { margin: 0; }
.section__lead { max-width: var(--measure); font-size: var(--fs-lead); }
.section__lead > :last-child { margin-bottom: 0; }
.section__cont { margin-top: var(--s-7); }
.prose { max-width: var(--measure); }
.prose > :last-child { margin-bottom: 0; }
.after-grid { margin-top: var(--s-5); max-width: var(--measure); }
/* the statement head (brief clause 9): the light heading left, the lead right under a hairline and an apricot index */
.statement { counter-increment: sec; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s-5) var(--s-8); align-items: end; margin-bottom: var(--s-7); }
.statement .section__head { margin: 0; }
.statement .section__lead { border-top: 1px solid var(--line); padding-top: var(--s-4); font-size: var(--fs-body); }
.statement .section__lead::before { content: counter(sec, decimal-leading-zero); display: block; color: var(--accent-text); font-size: var(--fs-label); font-weight: var(--fw-label); letter-spacing: .08em; margin-bottom: var(--s-2); }
.on-dark .statement .section__lead { border-color: var(--line-on-band); }
.on-dark .statement .section__lead::before { color: var(--accent-on-band); }
@media (max-width: 991px) { .statement { grid-template-columns: 1fr; } }

/* ---------- the services tab set (brief clause 10) ---------- */
.tabs { display: grid; gap: var(--s-3); }
.tabs__item { border: 1px solid var(--line-on-band); border-radius: var(--r-card); }
.tabs__tab { display: none; }
.tabs__panel { padding: var(--s-5); }
.tabs__panel h3 { font-size: clamp(1.625rem, 1.2rem + 1.6vw, 2.75rem); font-weight: var(--fw-display); margin: var(--s-2) 0 var(--s-4); max-width: 18ch; }
.tabs__panel p { max-width: 48ch; }
.tabs__n { font-size: var(--fs-small); color: #fff; opacity: .85; }
.tabs .links { margin-top: var(--s-5); }
@media (min-width: 992px) {
  .tabs.is-js { display: flex; gap: 10px; min-height: 480px; }
  .tabs.is-js .tabs__item { flex: 0 0 var(--tab-w); display: flex; transition: flex-basis var(--t-mid) var(--ease); overflow: hidden; }
  .tabs.is-js .tabs__item.is-open { flex: 1 1 auto; }
  .tabs.is-js .tabs__tab { display: flex; flex-direction: column; align-items: center; justify-content: space-between; width: var(--tab-w); padding: var(--s-5) 0; background: none; border: 0; color: #fff; cursor: pointer; font: inherit; }
  .tabs.is-js .tabs__item.is-open .tabs__tab { display: none; }
  .tabs.is-js .tabs__label { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 1.0625rem; white-space: nowrap; max-height: 380px; overflow: hidden; text-overflow: ellipsis; }
  .tabs.is-js .tabs__tab:hover { background: rgba(255, 255, 255, .06); }
  .tabs.is-js .tabs__panel { padding: var(--s-6) var(--s-7); }
  .tabs.is-js .tabs__panel[hidden] { display: none; }
}
@media (max-width: 991px) {
  .tabs.is-js .tabs__tab { display: flex; gap: var(--s-4); width: 100%; padding: var(--s-4) var(--s-5); background: none; border: 0; color: #fff; text-align: left; font: inherit; font-size: 1.0625rem; cursor: pointer; }
  .tabs.is-js .tabs__item.is-open .tabs__tab { display: none; }
  .tabs.is-js .tabs__panel[hidden] { display: none; }
}

/* ---------- link lists inside cards ---------- */
.links { list-style: none; padding: 0; margin: var(--s-4) 0 0; border-top: 1px solid var(--line); }
.links li { margin: 0; border-bottom: 1px solid var(--line); }
.links a { display: flex; justify-content: space-between; gap: var(--s-3); padding: 12px 0; text-decoration: none; color: var(--navy-700); }
.links a::after { content: "\2192"; color: var(--accent-text); }
.on-dark .links { border-color: var(--line-on-band); }
.on-dark .links li { border-color: var(--line-on-band); }
.on-dark .links a { color: #fff; }
.on-dark .links a::after { color: var(--accent-on-band); }

/* ---------- cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: var(--s-4); }
.cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--r-card); padding: var(--s-6) var(--s-5); }
.card h3 { margin-bottom: var(--s-3); color: var(--navy-700); }
.card > :last-child, .card__body > :last-child { margin-bottom: 0; }
.card--guide h3 a { text-decoration: none; }
.card__meta { font-size: var(--fs-small); color: var(--text-muted); }
@media (max-width: 991px) { .cards--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) { .cards--3, .cards--2 { grid-template-columns: 1fr; } }
/* staggered columns (brief clause 21) */
.stagger { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-6) var(--s-7); padding-bottom: var(--s-8); }
.stagger .card:nth-child(even) { transform: translateY(var(--s-8)); }
.card--line { background: transparent; border: 0; border-top: 1px solid var(--navy-700); border-radius: 0; padding: var(--s-4) 0 0; }
.card__n { display: block; color: var(--accent-text); font-size: var(--fs-small); font-weight: var(--fw-label); margin-bottom: var(--s-2); }
@media (max-width: 767px) { .stagger { grid-template-columns: 1fr; padding-bottom: 0; } .stagger .card:nth-child(even) { transform: none; } }

/* ---------- steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: none; display: grid; gap: 0; border-top: 1px solid var(--line); }
.step { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: var(--s-5); padding: var(--s-5) 0; border-bottom: 1px solid var(--line); margin: 0; }
.step__n { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--navy-700); color: #fff; font-size: 1.125rem; font-weight: var(--fw-label); }
.step h3 { margin-bottom: var(--s-2); }
.step p:last-child { margin-bottom: 0; }
.steps__band { list-style: none; margin: 0; padding: var(--s-5) 0 var(--s-2); font-size: var(--fs-label); text-transform: uppercase; letter-spacing: .08em; font-weight: var(--fw-label); color: var(--accent-text); border-bottom: 1px solid var(--line); }
.step__meta { font-size: var(--fs-small); color: var(--accent-text); font-weight: var(--fw-label); margin-top: var(--s-2); }
.on-dark .step { border-color: var(--line-on-band); }
.on-dark .step__n { background: var(--apricot-400); color: var(--navy-900); }

/* ---------- rows: the grey tiles of the audience and problem sections (brief clause 22) ---------- */
.rows { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: var(--s-3); margin: 0; }
.row { background: #efefef; border-radius: var(--r-tile); padding: var(--s-5); }
.row__t { color: var(--navy-700); font-size: 1.125rem; font-weight: var(--fw-label); margin-bottom: var(--s-3); }
.row__b { margin: 0; font-size: var(--fs-small); }
.row__b > :last-child { margin-bottom: 0; }

/* ---------- checklist ---------- */
.checklist { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: var(--s-2) var(--s-6); max-width: 1100px; }
.checklist li { position: relative; padding: 10px 0 10px 34px; border-bottom: 1px solid var(--line); margin: 0; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 13px; width: 20px; height: 20px; border-radius: 50%; background: var(--apricot-400) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.6 2.6L14 7.5' fill='none' stroke='%23002c50' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat; }
.checklist li.is-no::before { background: var(--stone-200); }

/* ---------- tables ---------- */
.tablewrap, .table-scroll { overflow-x: auto; background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--r-card); margin: var(--s-5) 0 var(--s-3); }
table { width: 100%; border-collapse: collapse; font-size: var(--fs-small); min-width: 560px; }
th, td { text-align: left; vertical-align: top; padding: 14px 18px; border-bottom: 1px solid var(--line); }
thead th { background: var(--navy-700); color: #fff; font-weight: var(--fw-label); }
thead th a { color: var(--apricot-300); }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:nth-child(even) td { background: var(--cream-50); }
.col--tight { white-space: nowrap; }
.table-caption { font-size: var(--fs-small); color: var(--navy-700); font-weight: var(--fw-label); margin: var(--s-3) 0 var(--s-1); }
.table-note { font-size: var(--fs-label); color: var(--text-muted); }
.shelf-updated { font-size: var(--fs-small); color: var(--text-muted); }

/* ---------- the photo panel (brief clause 11) ---------- */
figure { margin: var(--s-6) 0; }
figure.panel { position: relative; margin: var(--s-7) 0; }
figure.panel img, figure.panel picture { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-card); }
.panel__card { position: absolute; right: var(--s-5); bottom: calc(-1 * var(--s-5)); max-width: min(440px, 80%); padding: var(--s-5); background: var(--navy-700); color: #fff; border-radius: var(--r-card); font-size: var(--fs-lead); line-height: 1.35; box-shadow: var(--shadow-float); }
@media (max-width: 767px) { .panel__card { position: static; max-width: none; margin-top: -24px; margin-inline: var(--s-3); font-size: 1rem; } }

/* ---------- infographics (drafts/infographics/_SPEC.md; brief clauses 12, 24) ---------- */
figure.infographic { margin: var(--s-7) 0; padding: var(--s-6); background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--r-card); }
figure.infographic figcaption { margin-top: var(--s-4); font-size: var(--fs-small); color: var(--text-muted); }
.ig-legend { display: flex; flex-wrap: wrap; gap: var(--s-3); margin: 0 0 var(--s-4); }
.ig-tag { display: inline-block; font-size: var(--fs-label); padding: 3px 10px; border-radius: var(--r-pill); background: var(--stone-200); color: var(--ink-800); }
.ig-tag--law { background: var(--navy-700); color: #fff; }
.ig-tag--est { background: var(--apricot-300); color: var(--navy-900); }
.ig-who { display: block; font-size: var(--fs-small); color: var(--text-muted); margin: 4px 0 8px; }
.ig-tl { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-3); counter-reset: ig; }
.ig-tl li { position: relative; margin: 0; padding: var(--s-4) var(--s-4) var(--s-4) 64px; border: 1px solid var(--line); border-radius: var(--r-ctl); counter-increment: ig; }
.ig-tl li::before { content: counter(ig); position: absolute; left: 16px; top: 16px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--navy-700); color: #fff; font-size: .875rem; }
.ig-tl b { color: var(--navy-700); font-weight: var(--fw-label); }
.ig-tl--h { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ig-tl--h4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 991px) { .ig-tl--h, .ig-tl--h4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) { .ig-tl--h, .ig-tl--h4 { grid-template-columns: 1fr; } }
/* stat tiles: the figures band in the reference's apricot (clause 24) */
figure.infographic:has(.ig-stats) { background: var(--bg-figures); border-color: var(--bg-figures); }
figure.infographic:has(.ig-stats) figcaption { color: var(--navy-900); }
.ig-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); gap: var(--s-5); }
.ig-stats > div { display: flex; flex-direction: column; gap: 6px; }
.ig-stats strong { font-size: var(--fs-figure); font-weight: var(--fw-display); line-height: 1; color: var(--navy-900); letter-spacing: -.02em; }
.ig-stats span { color: var(--navy-900); font-weight: var(--fw-label); }
.ig-stats small { color: var(--navy-900); opacity: .8; font-size: var(--fs-label); }
.ig-dates { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); }
.ig-dates--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ig-dates--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ig-dates > div { border-top: 3px solid var(--apricot-400); padding-top: var(--s-3); }
.ig-dates time { display: block; color: var(--navy-700); font-size: 1.375rem; font-weight: var(--fw-display); }
@media (max-width: 767px) { .ig-dates, .ig-dates--2, .ig-dates--4 { grid-template-columns: 1fr; } }
.ig-bars { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-3); }
.ig-bars li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px var(--s-3); margin: 0; }
.ig-bars__bar { grid-column: 1 / -1; height: 12px; border-radius: 6px; background: linear-gradient(90deg, var(--navy-500) calc(var(--v) * 1%), var(--stone-200) 0); }
.ig-bars li.is-accent .ig-bars__bar { background: linear-gradient(90deg, var(--apricot-400) calc(var(--v) * 1%), var(--stone-200) 0); }
.ig-bars__val { color: var(--navy-700); font-weight: var(--fw-label); }
.ig-compare { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: var(--s-4); }
.ig-compare > div { border: 1px solid var(--line); border-radius: var(--r-ctl); padding: var(--s-4); }
.ig-h { display: block; color: var(--navy-700); font-size: 1.25rem; font-weight: var(--fw-label); margin-bottom: var(--s-3); padding-bottom: var(--s-2); border-bottom: 2px solid var(--apricot-400); }
.ig-compare dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px var(--s-3); font-size: var(--fs-small); }
.ig-compare dt { color: var(--text-muted); }
.ig-compare dd { margin: 0; color: var(--ink-800); }
.ig-compare ul { margin: 0; padding-left: 1.1em; font-size: var(--fs-small); }
.ig-flow { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-3); }
.ig-flow li { margin: 0; padding: var(--s-4); border: 1px solid var(--line); border-radius: var(--r-ctl); display: grid; grid-template-columns: 1fr 1fr; gap: 6px var(--s-4); }
.ig-flow b { grid-column: 1 / -1; color: var(--navy-700); font-weight: var(--fw-label); }
.ig-yes::before { content: "Yes: "; color: var(--navy-700); font-weight: var(--fw-strong); }
.ig-no::before { content: "No: "; color: var(--accent-text); font-weight: var(--fw-strong); }
.ig-layers { display: grid; gap: 6px; justify-items: center; }
.ig-row { display: flex; flex-wrap: wrap; gap: var(--s-3); justify-content: center; }
.ig-node { border: 1px solid var(--line); border-radius: var(--r-ctl); padding: var(--s-3) var(--s-5); text-align: center; background: var(--cream-50); }
.ig-node b { display: block; color: var(--navy-700); font-weight: var(--fw-label); }
.ig-node span { font-size: var(--fs-small); color: var(--text-muted); }
.ig-node--key { background: var(--navy-700); border-color: var(--navy-700); }
.ig-node--key b, .ig-node--key span { color: #fff; }
.ig-link { font-size: var(--fs-small); color: var(--accent-text); padding: 4px 0; }
.ig-link::before { content: "\2193  "; }

/* ---------- FAQ: the accordion with apricot plus discs (brief clause 14) ---------- */
.faq { max-width: 980px; border-top: 1px solid var(--line); }
.section__head--center + .faq { margin-inline: auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr) 30px; gap: var(--s-4); align-items: center; padding: var(--s-5) 0; cursor: pointer; font-size: 1.1875rem; color: var(--navy-700); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--apricot-400); color: var(--navy-900); font-size: 1.25rem; line-height: 1; transition: transform var(--t-fast); }
.faq details[open] summary::after { content: "\2212"; background: var(--navy-700); color: #fff; }
.faq__a { padding: 0 60px var(--s-5) 0; max-width: var(--measure); }
.faq__a > :last-child { margin-bottom: 0; }

/* ---------- CTA band ---------- */
.cta { background: var(--bg-band); padding: clamp(3rem, 2rem + 4vw, 6rem) 0; }
.cta__inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-6); align-items: end; }
.cta h2 { font-size: clamp(1.75rem, 1.3rem + 2vw, 3rem); margin-bottom: var(--s-3); max-width: 22ch; }
.cta p { max-width: 56ch; margin-bottom: 0; }
.cta .btnrow { margin: 0; justify-content: flex-end; }
.cta--light { background: var(--cream-50); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
@media (max-width: 767px) { .cta__inner { grid-template-columns: 1fr; } .cta .btnrow { justify-content: flex-start; } }

/* ---------- forms on navy: underline fields (brief clause 16; form archetype: editorial underline on a navy band) ---------- */
.formpanel { margin-top: var(--s-6); }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5) var(--s-7); }
.field { display: flex; flex-direction: column; gap: 6px; margin: 0; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label, .field legend { font-size: var(--fs-small); font-weight: var(--fw-label); color: var(--navy-700); }
.req { color: var(--accent-text); }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 1.0625rem; color: var(--ink-800); background: transparent; border: 0; border-bottom: 1px solid var(--navy-700); border-radius: 0; padding: 10px 0; }
.field textarea { min-height: 120px; resize: vertical; }
.field select { appearance: none; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23ed9f68' stroke-width='1.6'/%3E%3C/svg%3E") right 4px center / 12px no-repeat; padding-right: 24px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom: 2px solid var(--apricot-400); }
.field__help { font-size: var(--fs-label); color: var(--text-muted); margin: 0; }
.field--check label { display: flex; gap: 12px; align-items: flex-start; font-weight: var(--fw-text); font-size: var(--fs-small); }
.field--check input { width: 20px; height: 20px; flex: none; margin-top: 2px; accent-color: var(--apricot-400); }
.field--radio { border: 0; padding: 0; }
.field--radio label { display: flex; gap: 10px; font-weight: var(--fw-text); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cf-turnstile { margin-top: var(--s-5); min-height: 65px; }
.form .btn--primary { margin-top: var(--s-5); min-width: 220px; }
.form__status { margin-top: var(--s-3); font-size: var(--fs-small); min-height: 1.4em; }
.form__status.is-error { color: #b3261e; }
.form__notice, .form__note { font-size: var(--fs-small); color: var(--text-muted); }
.section--navy .field label, .section--navy .field legend { color: #fff; }
.section--navy .field input, .section--navy .field select, .section--navy .field textarea { color: #fff; border-bottom-color: var(--line-on-band); }
.section--navy .field select option { color: var(--ink-800); }
.section--navy .field__help, .section--navy .form__notice { color: rgba(255, 255, 255, .72); }
.section--navy .form__status.is-error { color: var(--apricot-300); }
.section--navy .section__head h2 { font-size: clamp(2rem, 1.3rem + 3vw, 4rem); max-width: 18ch; }
@media (max-width: 767px) { .fields { grid-template-columns: 1fr; } }

/* ---------- team plates (brief clause 13) and the practice note ---------- */
.trust__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-7); align-items: start; }
.people { list-style: none; padding: 0; margin: var(--s-5) 0 0; display: grid; gap: var(--s-4); }
.person { margin: 0; display: grid; grid-template-columns: 88px minmax(0, 1fr); border-radius: var(--r-card); overflow: hidden; background: var(--navy-700); color: var(--text-on-band); }
.person__mono { display: grid; place-items: center; background: var(--navy-900); color: var(--apricot-400); font-size: 1.75rem; font-weight: var(--fw-display); }
.person > div { padding: var(--s-4) var(--s-5); }
.person h3 { color: #fff; font-size: 1.125rem; margin-bottom: 4px; }
.person p { margin: 0; font-size: var(--fs-small); }
.practice { border-left: 3px solid var(--apricot-400); padding: var(--s-2) 0 var(--s-2) var(--s-5); font-size: var(--fs-lead); color: var(--navy-700); }
.practice p { margin: 0; }
.practice .eyebrow { font-size: var(--fs-label); margin-bottom: var(--s-2); }
.byline { font-size: var(--fs-small); color: var(--text-muted); margin-top: var(--s-4); }
@media (max-width: 991px) { .trust__grid { grid-template-columns: 1fr; } }

/* ---------- related and interlinks ---------- */
.linklist { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: var(--s-3); }
.linklist li { margin: 0; padding: var(--s-5); border: 1px solid var(--line); border-radius: var(--r-card); background: var(--bg-raised); display: flex; flex-direction: column; gap: 6px; }
.linklist li > a { font-size: 1.1875rem; text-decoration: none; color: var(--navy-700); }
.linklist li > a::after { content: " \2192"; color: var(--accent-text); }
.linklist li > span { font-size: var(--fs-small); }
.interlinks { padding: var(--s-7) 0; border-top: 1px solid var(--line); }
.interlinks h2 { font-size: 1.375rem; margin-bottom: var(--s-4); }
.interlinks ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: var(--s-2); }
.interlinks li { margin: 0; }
.interlinks a { display: inline-block; padding: 8px 14px; border: 1px solid var(--line); border-radius: var(--r-pill); text-decoration: none; font-size: var(--fs-small); background: var(--bg-raised); }
.interlinks a:hover { border-color: var(--navy-700); }
.sitelinks { columns: 2; column-gap: var(--s-6); padding-left: 1.1em; }
.chiplinks { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s-2); }
.chiplinks a { display: inline-block; padding: 8px 14px; border-radius: var(--r-pill); border: 1px solid var(--line); text-decoration: none; }
.legal-entity { display: grid; gap: 0; margin: var(--s-4) 0; max-width: 720px; border-top: 1px solid var(--line); }
.legal-entity > div { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: var(--s-4); padding: 12px 0; border-bottom: 1px solid var(--line); }
.legal-entity dt { color: var(--text-muted); font-size: var(--fs-small); }
.legal-entity dd { margin: 0; }
.map__placeholder { padding: var(--s-6); border: 1px solid var(--line); border-radius: var(--r-card); background: var(--bg-raised); }

/* ---------- guides: one article column, contents on the right ---------- */
.section--article { padding-top: var(--s-5); }
.article { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: var(--s-8); align-items: start; }
.article__body { max-width: 760px; }
.article__sec { padding: var(--s-6) 0 0; }
.article__sec h2 { font-size: clamp(1.625rem, 1.3rem + 1.4vw, 2.375rem); }
.article__intro .short-answer { font-size: var(--fs-lead); color: var(--navy-700); border-left: 3px solid var(--apricot-400); padding-left: var(--s-5); }
.toc { position: sticky; top: calc(var(--header-h) + 40px); padding: var(--s-5); border: 1px solid var(--line); border-radius: var(--r-card); background: var(--bg-raised); font-size: var(--fs-small); }
.toc__t { font-weight: var(--fw-label); color: var(--navy-700); margin-bottom: var(--s-3); }
.toc ol { margin: 0; padding-left: 1.2em; }
.toc a { text-decoration: none; color: var(--ink-600); }
.toc li.is-current > a { color: var(--navy-700); font-weight: var(--fw-label); }
.callout { margin: var(--s-6) 0; padding: var(--s-6); background: var(--bg-band); border-radius: var(--r-card); }
.callout h2 { font-size: 1.625rem; }
.callout .btnrow { margin-top: var(--s-4); }
@media (max-width: 1099px) { .article { grid-template-columns: minmax(0, 1fr); } .toc { position: static; order: -1; } }

/* ---------- footer: the navy panel with the cream border (brief clause 17) ---------- */
.site-footer { padding: var(--s-8) var(--gutter) var(--s-5); }
.footer__panel { max-width: var(--wrap); margin-inline: auto; background: var(--navy-700); color: #cfd9e4; border: 1px solid var(--cream-100); outline: 1px solid var(--navy-700); border-radius: var(--r-panel); padding: clamp(2rem, 1rem + 4vw, 4.5rem); }
.footer__top { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--s-8); }
.footer__panel .brand, .footer__panel .brand__word, .footer__panel .brand__mark { color: #fff; }
.footer__tag { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.25rem); font-weight: var(--fw-display); line-height: 1.15; color: #fff; margin: var(--s-6) 0; }
.footer__tag span { display: block; color: var(--apricot-400); }
.footer__nap { font-size: var(--fs-small); line-height: 1.8; }
.footer__nap strong { color: #fff; }
.footer__panel a { color: #e6edf4; text-decoration: none; }
.footer__panel a:hover { color: var(--apricot-400); }
.footer__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr)); gap: var(--s-6); }
.footer__col h2 { font-size: var(--fs-label); text-transform: uppercase; letter-spacing: .08em; font-weight: var(--fw-label); color: var(--apricot-400); margin-bottom: var(--s-3); }
.footer__col ul { list-style: none; padding: 0; margin: 0; }
.footer__col li { margin: 0 0 8px; font-size: var(--fs-small); line-height: 1.4; }
.footer__legal { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); margin-top: var(--s-7); padding-top: var(--s-5); border-top: 1px solid var(--line-on-band); font-size: var(--fs-label); }
@media (max-width: 991px) { .footer__top { grid-template-columns: 1fr; gap: var(--s-6); } }

/* ---------- consent banner ---------- */
.consent { position: fixed; z-index: 60; left: var(--gutter); right: var(--gutter); bottom: 16px; max-width: 900px; margin-inline: auto; background: var(--navy-900); color: #e6edf4; border-radius: var(--r-card); box-shadow: var(--shadow-float); padding: var(--s-5); font-size: var(--fs-small); }
.consent a { color: var(--apricot-400); }
.consent .btnrow { margin-top: var(--s-4); }
.consent .btn { min-height: 44px; border-color: rgba(255, 255, 255, .6); color: #fff; }
.consent .btn--primary { color: var(--navy-900); border-color: var(--apricot-400); }

/* ---------- motion (reduced motion respected; automated browsers see the final state) ---------- */
.rv { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.rv.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
/* two-band timeline (drafts/infographics/_SPEC.md component 8) */
.ig-band { font-size: var(--fs-label); text-transform: uppercase; letter-spacing: .08em; font-weight: var(--fw-label); color: var(--text-muted); margin: 0 0 var(--s-3); }
.ig-band--clock { color: var(--navy-700); margin-top: var(--s-6); }
.ig-tl--prep li { border-style: dashed; }
.ig-tl--prep li::before { background: var(--stone-200); color: var(--navy-700); }
.ig-bracket { width: calc(var(--span, 50) * 1%); margin: 0 0 var(--s-3); padding: 6px 12px 10px; border: 2px solid var(--apricot-400); border-bottom: 0; border-radius: 10px 10px 0 0; font-size: var(--fs-small); font-weight: var(--fw-label); color: var(--accent-text); text-align: center; }
@media (max-width: 991px) { .ig-bracket { width: 100%; } }
.ig-src { font-size: var(--fs-label); color: var(--text-muted); margin: var(--s-4) 0 0; }
.ig-note { margin: var(--s-4) 0 0; padding: var(--s-3) var(--s-4); border-left: 3px solid var(--apricot-400); background: var(--cream-50); font-size: var(--fs-small); font-weight: var(--fw-label); color: var(--accent-text); }

/* touch targets (responsive pass, WCAG 2.5.8): standalone links in lists get 24 px or more of height */
.footer__col li a, .footer__legal a, .footer__legal .linklike, .toc a, .sitelinks a, .hero__chips a, li > a { padding-block: 3px; }
.toc li { margin-bottom: 4px; }
.article__body, .prose, .faq__a { overflow-wrap: anywhere; }
.footer__col li a, .footer__legal a { display: inline-block; min-width: 44px; }
.linklist a { display: inline-block; padding-block: 3px; }
main a[href^="mailto:"], main p { overflow-wrap: anywhere; }
.ig-flow li { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 599px) { .ig-flow li { grid-template-columns: minmax(0, 1fr); } .ig-compare dl { grid-template-columns: minmax(0, 1fr); } }
/* a checklist is a list, not a card grid (layout-lint card-grids): one column up to 8 items, two beyond */
.checklist { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
.checklist:has(li:nth-child(9)) { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 1100px; }
@media (max-width: 767px) { .checklist:has(li:nth-child(9)) { grid-template-columns: minmax(0, 1fr); } }

/* ---------- entrance motion (brief clause 29): the reference animates its hero on load (heading and lede rise and fade
   in), slides the CTA card over a photo in from the right, and fades section headings in on scroll. The classes are set
   by site.js only for a person: never for reduced motion, never for an automated browser (the gates measure the final
   state). ---------- */
@keyframes cri-rise { from { opacity: 0; transform: translate3d(0, 28px, 0); } to { opacity: 1; transform: none; } }
@keyframes cri-slide { from { opacity: 0; transform: translate3d(12%, 0, 0); } to { opacity: 1; transform: none; } }
@keyframes cri-veil { from { transform: scale(1.06); } to { transform: none; } }
.motion .hero-home .eyebrow { animation: cri-rise .8s var(--ease) both; }
.motion .hero-home h1 { animation: cri-rise 1s var(--ease) .12s both; }
.motion .hero-home__aside { animation: cri-rise .9s var(--ease) .38s both; }
.motion .hero-home__foot { animation: cri-rise .8s var(--ease) .55s both; }
.motion .hero-home__media img, .motion .hero-home__media picture { animation: cri-veil 2.4s var(--ease) both; }
.motion .hero-svc__card { animation: cri-rise .9s var(--ease) .1s both; }
.motion .hero-guide__text > * { animation: cri-rise .8s var(--ease) both; }
.motion .hero-guide__text > *:nth-child(2) { animation-delay: .08s; } .motion .hero-guide__text > *:nth-child(3) { animation-delay: .16s; }
.motion .hero-guide__media { animation: cri-rise 1s var(--ease) .2s both; }
.motion .panel__card.rv { opacity: 0; transform: translate3d(20%, 0, 0); }
.motion .panel__card.rv.is-in { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .9s var(--ease); }
