/*
 * chrome/chrome.css — header + footer, one stylesheet for every page.
 *
 * Component-only on purpose: it is linked by the composed secondary routes AND
 * by standalone pages that bring their own page reset, so it does not restate
 * html/body defaults. §1 the tone-aware header, §2 the approved footer.
 * Frozen tokens only: timber #1a2b2b, loblolly #bac5cb, accent #f0d074.
 */

/* ── 1 · header — the canonical menu (locked from exp-c2, 2026-11-24) ──
   The homepage's own menu (secondary-pages-motion-lab/homepage-ref/exp-c2.html)
   is the one menu for the whole site: chrome/header.html carries its markup and
   this section its styles, ported from the page's component sheet with the
   three page-facts made portable (SVG mark instead of the per-page logo img
   pair, restored mailto links, inert data-chrome-lang switchers). Tone: the
   menu ships the over-dark authored variant and reacts to
   <html data-header-tone> exactly as the homepage does — ink, mark and burger
   flip loblolly/timber, and the light tone repaints the fixed bar with the 88%
   loblolly tint. The homepage keeps its own inline copy; the two deliveries
   are visual twins. Tokens are defined on .site-header so the ported rules
   resolve on pages that define none. */
.site-header{
  --color-timber:#1a2b2b;
  --color-loblolly:#bac5cb;
  --color-paper:#f1f3f5;
  --font-family:'TLB','Arial Narrow',Arial,sans-serif;
  --surface-inverse:#1a2b2b;
  --text-inverse:#f1f3f5;
}

/* base component (Astro scoping attributes dropped; bare selectors are
   scoped under .site-header) */
.site-header .sr-only{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}
.site-header--over-dark{z-index:100;height:80px;color:var(--color-loblolly,#bac5cb);background:#1a2b2b;position:fixed;inset:0 0 auto}
@supports (animation-timeline:scroll()){
  .site-header--over-dark{background:0 0;animation:linear both hdr-bg scroll();animation-range:0 30vh}
}
@keyframes hdr-bg{0%{background:0 0}to{background:#1a2b2b}}
.hdr-inner{box-sizing:border-box;align-items:center;width:100%;max-width:1126px;height:100%;margin-inline:auto;padding-inline:20px;display:flex}
.hdr-brand img{width:150px;height:auto;display:block}
.hdr-brand .hdr-logo{width:150px;height:auto;display:block}
.hdr-nav{flex:auto;justify-content:flex-end;display:flex}
.hdr-nav ul{align-items:center;gap:30px;margin:0;padding:0;list-style:none;display:flex}
.hdr-nav a{font:500 16px/1 var(--font-family,"TLB", Arial, sans-serif);color:var(--color-loblolly,#bac5cb);white-space:nowrap;text-decoration:none}
.hdr-nav a:hover{text-underline-offset:6px;text-decoration:underline}
.hdr-nav>ul>li{position:relative}
.hdr-nav .svc-arrow{width:8px;height:5px;color:var(--color-loblolly,#bac5cb);pointer-events:none;margin-left:6px;position:absolute;top:50%;left:100%;transform:translateY(-50%)}
.hdr-nav .svc-sub{z-index:120;box-sizing:border-box;background:#1a2b2b;width:max-content;min-width:180px;margin:0;padding:12px 18px;list-style:none;display:none;position:absolute;top:53px;left:50%;transform:translate(-50%)}
.hdr-nav li.has-sub:hover .svc-sub,.hdr-nav li.has-sub:focus-within .svc-sub{display:block}
.hdr-nav li.has-sub:hover .svc-arrow,.hdr-nav li.has-sub:focus-within .svc-arrow{transform:translateY(-50%)rotate(180deg)}
.hdr-nav .svc-sub li+li{margin-top:12px}
.hdr-nav .svc-sub a{font:400 14px/19px var(--font-family,"TLB", Arial, sans-serif);color:var(--color-loblolly,#bac5cb);white-space:nowrap;text-decoration:none;display:block}
.hdr-nav .svc-sub a:hover{text-underline-offset:4px;text-decoration:underline}
.hdr-nav li.has-sub:after{content:"";width:224px;min-width:180px;height:27px;position:absolute;top:100%;left:50%;transform:translate(-50%)}
.hdr-cta{box-sizing:border-box;background:var(--color-loblolly,#bac5cb);color:#1a2b2b;height:40px;font:500 14px/1 var(--font-family,"TLB", Arial, sans-serif);justify-content:center;align-items:center;margin-left:26px;padding-inline:30px;text-decoration:none;display:inline-flex}
.hdr-cta:hover{color:#1a2b2b;background:#c87fa2}
.site-header--over-dark a:focus-visible{outline-offset:3px;outline:2px solid #f0d074}
.hdr-lang{font:400 14px/1 var(--font-family,"TLB", Arial, sans-serif);color:var(--color-loblolly,#bac5cb);white-space:nowrap;align-items:center;gap:10px;margin-left:18px;display:flex}
.hdr-lang__item{color:inherit;opacity:.6;text-decoration:none}
.hdr-lang__item:hover{text-underline-offset:4px;opacity:1;text-decoration:underline}
.hdr-lang__item.is-current{color:var(--color-loblolly,#bac5cb);opacity:1;text-underline-offset:4px;font-weight:500;text-decoration:underline}
.hdr-lang__off{opacity:.6}
.hdr-lang__sep{opacity:.45}
.hdr-lang a:focus-visible{outline-offset:3px;outline:2px solid #f0d074}
.hdr-menu{display:none}
.skip{z-index:100;background:var(--surface-inverse);color:var(--text-inverse);padding:8px 16px;position:absolute;left:-9999px}
.skip:focus{left:16px}

/* ≤980: the bar nav, CTA and lang step aside; the burger and the fullscreen
   panel take over (native <details>, no script). */
@media (width<=980px){
  .hdr-lang{display:none}
  .hdr-nav,.hdr-cta{display:none}
  .hdr-inner{justify-content:space-between}
  .hdr-brand .hdr-logo{width:auto;height:40px}
  .hdr-menu{display:block}
  .hdr-menu>summary{cursor:pointer;width:28px;height:20px;list-style:none;position:relative}
  .hdr-menu>summary::-webkit-details-marker{display:none}
  .hdr-menu>summary>span{background:var(--color-loblolly,#bac5cb);width:28px;height:3px;position:absolute;left:0}
  .hdr-menu>summary>span:first-child{top:0}
  .hdr-menu>summary>span:nth-child(2){top:8px}
  .hdr-menu>summary>span:nth-child(3){width:20px;top:16px}
  .hdr-menu[open]>summary>span:first-child{top:8px;transform:rotate(45deg)}
  .hdr-menu[open]>summary>span:nth-child(2){opacity:0}
  .hdr-menu[open]>summary>span:nth-child(3){width:28px;top:8px;transform:rotate(-45deg)}
  .hdr-panel{z-index:-1;background:#1a2b2b;flex-direction:column;justify-content:center;display:flex;position:fixed;inset:0}
  .hdr-panel ul{flex-direction:column;align-items:flex-start;gap:22px;margin:0;padding:0 20px;list-style:none;display:flex}
  .hdr-panel a{font:500 30px/1 var(--font-family,"TLB", Arial, sans-serif);color:var(--color-loblolly,#bac5cb);text-transform:uppercase;text-decoration:none}
  .hdr-panel a:hover{color:#f1f3f5;text-underline-offset:8px;text-decoration:underline}
  .hdr-panel .svc-details summary{cursor:pointer;min-height:36px;font:500 30px/1 var(--font-family,"TLB", Arial, sans-serif);color:var(--color-loblolly,#bac5cb);text-transform:uppercase;align-items:center;gap:12px;list-style:none;display:flex}
  .hdr-panel .svc-details summary::-webkit-details-marker{display:none}
  .hdr-panel .svc-details summary svg{width:8px;height:5px;color:var(--color-loblolly,#bac5cb)}
  .hdr-panel .svc-details[open] summary svg{transform:rotate(180deg)}
  .hdr-panel .svc-details[open] summary{color:#f1f3f5}
  .hdr-panel .svc-children{gap:12px;margin:16px 0 0 20px;padding:0;list-style:none;display:grid}
  .hdr-panel .svc-children a{font:400 16px/1 var(--font-family,"TLB", Arial, sans-serif);color:var(--color-loblolly,#bac5cb);text-transform:uppercase}
  .hdr-panel .svc-children a:hover{color:#f1f3f5;text-underline-offset:6px;text-decoration:underline}
  .hdr-lang--panel{color:var(--color-loblolly,#bac5cb);margin:30px 0 0;padding:0 20px;font-size:16px;display:flex}
}

/* hover layer (Phase 2), verbatim: animated underline for the top-level nav,
   CTA pink at the live pace, burger third-line growth, panel underline. */
.hdr-nav>ul>li>a::after{content:"";position:absolute;left:0;right:0;top:0;bottom:20%;border-bottom:1px solid #bac5cb;opacity:0;pointer-events:none;transition:all .3s ease}
.hdr-nav>ul>li>a:hover::after,.hdr-nav>ul>li>a:focus-visible::after{opacity:1;bottom:-1px}
.hdr-nav>ul>li>a:hover{text-decoration:none}
.hdr-cta{transition:background-color .2s ease-in-out}
@media (hover:none){
  .hdr-cta:hover{background:var(--color-loblolly,#bac5cb)}
}
.hdr-menu>summary>span{transition:width .2s ease}
.hdr-menu>summary:hover>span:nth-child(3){width:28px}
.hdr-panel ul>li{position:relative}
.hdr-panel ul>li>a::after{content:"";position:absolute;left:0;right:0;top:0;bottom:20%;border-bottom:1px solid #bac5cb;opacity:0;pointer-events:none;transition:all .3s ease}
.hdr-panel ul>li>a:hover::after{opacity:1;bottom:-1px}
.hdr-panel ul>li>a:hover{text-decoration:none}

/* tone bridge (ported from the homepage's page-level rules). Ink flips with
   the band under the bar; the light tone also repaints the fixed bar with the
   88% loblolly tint, as authored. The dead `.contact` selector from the
   homepage copy is dropped (the CTA is .hdr-cta here). */
html[data-header-tone="light"] .site-header .hdr-nav a,
html[data-header-tone="light"] .site-header .hdr-nav .svc-arrow,
html[data-header-tone="light"] .site-header .hdr-lang,
html[data-header-tone="light"] .site-header .hdr-lang__item{color:#1a2b2b;border-color:#1a2b2b}
html[data-header-tone="light"] .site-header.site-header--over-dark{
  background:color-mix(in srgb, var(--color-loblolly,#bac5cb) 88%, transparent);
  -webkit-backdrop-filter:blur(8px); backdrop-filter:blur(8px); animation:none;
}
/* the mark: one path set, ink per tone — replaces the homepage's img pair */
.hdr-logo{color:var(--color-loblolly,#bac5cb)}
html[data-header-tone="light"] .site-header .hdr-logo{color:var(--color-timber,#1a2b2b)}
/* dropdown contrast guard: the services panel is timber in BOTH tones, so its
   links hold loblolly there at every tone (~8.2:1) */
html[data-header-tone="light"] .site-header .hdr-nav .svc-sub a{color:var(--color-loblolly,#bac5cb)}
/* burger contrast guard: the bars flip with the tone like the logo, and hold
   loblolly over the panel's timber plate while it is open */
html[data-header-tone="light"] .site-header .hdr-menu>summary>span{background:var(--color-timber,#1a2b2b)}
html[data-header-tone="light"] .site-header .hdr-menu[open]>summary>span{background:var(--color-loblolly,#bac5cb)}

/* Reduced-motion guard for chrome-level continuous motion.
   ---------------------------------------------------------------------------
   Evidence of the gap: RECON/parity/dist-baseline__about.json →
   routes.about[*].reducedMotion.marqueeAnimation was still a live animation
   name while `prefers-reduced-motion: reduce` was emulated (MOTION.md §4, F5).
   The carousel already guards itself (testimonials-band.css); the running line
   is chrome-level, so its guard lives here rather than in the component.
   Nothing changes for a visitor who has not asked for reduced motion, and the
   composed frame (the visible band) is unchanged — only the travel stops. */
@media (prefers-reduced-motion: reduce) {
  .t1003__content { animation: none !important; }
}

/* ── 2 · footer ────────────────────────────────────────────────────── */

.ftr {
  --gutter: clamp(20px, 6vw, 60px);
  --content-width: 1100px;
  --content-box: calc(var(--content-width) + 2 * var(--gutter));
}
.ftr { font-family: "TLB", "Arial Narrow", Arial, sans-serif; font-weight: 400; line-height: 1.6; }
.ftr, .ftr *, .ftr *::before, .ftr *::after { box-sizing: border-box; }
.ftr img { max-width: 100%; height: auto; display: block; }

/* ---- footer (homepage · Figma footer-final) ---- */
.ftr{background:#1a2b2b;color:#bac5cb}
.ftr a{color:#bac5cb;text-decoration:none}
.ftr a:hover{color:#ffffff}
.ftr a:focus-visible,.ftr__logo:focus-visible{outline:2px solid #bac5cb;outline-offset:2px}
.ftr__inner{max-width:var(--content-box);margin-inline:auto;padding:60px var(--gutter) 44px}
.ftr__logo{display:none}
.ftr__logo img{display:block}
.ftr__nav{display:flex;flex-wrap:wrap;gap:10px 28px}
.ftr__nav a,.ftr__rows,.ftr__addr{font-size:16px;line-height:1.2}
.ftr__news{margin-top:72px;max-width:473px}
.ftr__news-error{margin:12px 0 0;font-size:14px}
.ftr__news-label{display:block;font-size:17px;padding:0 10px 5px 0}
.ftr__news-field{border-bottom:1px solid #a5adb2;height:55px;display:flex;align-items:center}
.ftr__news-field input{appearance:none;-webkit-appearance:none;border:0;background:none;width:100%;font-family:inherit;font-size:20px;color:#bac5cb;padding:0;outline:none;min-width:0}
.ftr__news-field ::placeholder{color:#bac5cb;opacity:.5}
.ftr__news-field:focus-within{border-bottom-width:2px}
.ftr__news-field.is-invalid{border-bottom:2px solid #f0d074}
.ftr__consent{display:flex;gap:10px;align-items:flex-start;margin:20px 0 0;cursor:pointer;position:relative}
.ftr__consent input{position:absolute;opacity:0;width:1px;height:1px}
.ftr__box{flex:0 0 auto;width:20px;height:20px;border:2px solid rgba(186,197,203,.6);position:relative}
.ftr__consent input:checked~.ftr__box{background:#bac5cb;border-color:#bac5cb}
.ftr__consent input:checked~.ftr__box::after{content:"";position:absolute;left:4px;top:0;width:5px;height:10px;border:solid #1a2b2b;border-width:0 2px 2px 0;transform:rotate(45deg)}
.ftr__consent input:focus-visible~.ftr__box{outline:2px solid #bac5cb;outline-offset:2px}
.ftr__consent input.is-invalid~.ftr__box{border-color:#f0d074}
.ftr__consent-text{font-size:12px;line-height:1.5;color:#bac5cb}
.ftr__consent-text a{text-decoration:underline;text-underline-position:from-font}
.ftr__news-btn{margin-top:20px;width:100%;height:61px;background:#6a787b;color:#ffffff;border:0;cursor:pointer;font-family:inherit;font-size:14px;letter-spacing:.02em}
.ftr__news-btn:hover{background:#5b686b}
.ftr__news-btn:focus-visible{outline:2px solid #bac5cb;outline-offset:2px}
.ftr__news-done{margin:20px 0 0;font-size:16px;color:#bac5cb}
.ftr__cols{margin-top:73px}
/* Accessible Marketing Charter badge — the AMI founding-signatory roundel,
   carried once via this stylesheet so the footer partial itself stays
   asset-free: the url() resolves against chrome.css, so every page depth
   loads the same file (chrome/ami-charter-badge.png, localized from the live
   footer, 320px square, rendered 1:1 at 160). */
.ftr__charter{margin-top:73px;display:flex;flex-wrap:wrap;align-items:center;gap:24px}
.ftr__charter-badge{flex:0 0 auto;display:block}
.ftr__charter-img{display:block;width:160px;height:160px;background:url("ami-charter-badge.png") center/contain no-repeat}
.ftr__charter-text{margin:0;font-size:16px;line-height:1.4;max-width:34ch}
.ftr__rule{border:0;height:1px;background:#6a787b;opacity:.8;margin:94px 0 0}
.ftr__label{margin:0;font-size:15px;line-height:1.2}
.ftr__block+.ftr__block{margin-top:47px}
/* Services group rides under the main nav, above the rule (canonical footer,
   saved from exp-c2 2026-11-24): label at the rows' own size, Bold 700 —
   ExtraBold stays reserved for all-caps h1/h2 at display scale (D-M12). */
.ftr__services{margin-top:47px}
.ftr__services .ftr__label{font-weight:700;font-size:16px}
.ftr__rows{display:flex;flex-wrap:wrap;align-items:center;margin:15px 0 0;gap:4px 10px}
.ftr__rows a:hover,.ftr__nav a:hover{color:#ffffff}

/* ── Footer nav · M5 underline (canonical menu motion, owner decision D-M10) ──
   The nav row joins the header's menu grammar (full-height ::after, opacity
   0→1, bottom 20%→−1px, .3s ease, currentColor); every other footer link keeps
   the M12 instant-colour register. Reduced motion: instant via 00-chrome.css. */
.ftr__nav a{position:relative}
.ftr__nav a::after{content:'';position:absolute;left:0;bottom:20%;opacity:0;width:100%;height:100%;border-bottom:1px solid currentColor;box-shadow:inset 0 -1px 0 0 currentColor;transition:all .3s ease;pointer-events:none}
.ftr__nav a:hover::after,.ftr__nav a:focus-visible::after{opacity:1;bottom:-1px}
.ftr__sep{color:#bac5cb}
.ftr__addr{margin:14px 0 0}
.ftr__legal{margin-top:54px;display:flex;flex-direction:column;gap:34px}
.ftr__terms{font-size:14px;text-decoration:underline;text-underline-position:from-font;color:#bac5cb;opacity:.68}
.ftr__terms:hover{color:#ffffff;opacity:1}
.ftr__copy{margin:0;font-size:14px;color:#bac5cb;opacity:.68}
@media (min-width:640px){
  .ftr__inner{padding-top:85px}
  .ftr__logo{display:inline-block;margin-bottom:70px}
  .ftr__logo img{width:163px;height:44px}
  .ftr__news{margin-top:96px}
  .ftr__news-btn{width:192px;height:60px}
  .ftr__rule{margin-top:86px}
  .ftr__legal{margin-top:70px;gap:30px}
}
@media (min-width:1200px){
  .ftr__inner{padding-top:71px;padding-bottom:45px}
  .ftr__top{display:flex;justify-content:space-between;align-items:flex-start;gap:40px}
  .ftr__logo{margin-bottom:51px}
  .ftr__nav{gap:34px}
  .ftr__nav a,.ftr__rows,.ftr__addr{font-size:18px}
  .ftr__services .ftr__label{font-size:18px}
  .ftr__news{max-width:473px;flex:0 0 auto}
  .ftr__news-field{height:45px}
  .ftr__news-field input{font-size:30px}
  .ftr__consent-text{font-size:10px}
  .ftr__news-btn{width:160px;height:50px}
  .ftr__rule{margin-top:47px}
  .ftr__cols{display:grid;grid-template-columns:543px 1fr;margin-top:48px}
  .ftr__block+.ftr__block{margin-top:0}
  .ftr__legal{margin-top:75px;flex-direction:row;justify-content:space-between;align-items:flex-end;gap:24px}
}
