/* J&M prototype — structural styles. Brand values come from tokens.css vars. */

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: auto; }
body {
  background: var(--bg); color: var(--ink);
  font-family: var(--font-text);
  font-size: calc(16px * var(--type-scale));
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--link); text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 720px) { .container { padding: 0 20px; } }

/* ---------- type ---------- */
.eyebrow {
  font-family: var(--eyebrow-font); font-weight: var(--eyebrow-weight);
  font-size: calc(11.5px * var(--type-scale)); letter-spacing: var(--eyebrow-ls);
  text-transform: uppercase; color: var(--eyebrow-color); line-height: 1.4;
}
.display {
  font-family: var(--font-display); font-weight: var(--w-display);
  text-transform: var(--case-display); letter-spacing: var(--ls-display);
  line-height: var(--lh-display); color: var(--ink);
  text-wrap: pretty;
}
.display .accent-i { font-style: normal; }
html[data-brand="b"] .display .accent-i { font-style: italic; font-weight: 400; }
.d-hero { font-size: calc(56px * var(--type-scale)); }
.d-1 { font-size: calc(40px * var(--type-scale)); }
.d-2 { font-size: calc(28px * var(--type-scale)); }
.d-3 { font-size: calc(20px * var(--type-scale)); }
html[data-brand="c"] .d-hero { font-size: calc(64px * var(--type-scale)); }
@media (max-width: 720px) {
  .d-hero { font-size: calc(36px * var(--type-scale)); }
  html[data-brand="c"] .d-hero { font-size: calc(42px * var(--type-scale)); }
  .d-1 { font-size: calc(30px * var(--type-scale)); }
  .d-2 { font-size: calc(24px * var(--type-scale)); }
}
.lede { font-size: calc(18px * var(--type-scale)); color: var(--ink-2); max-width: 640px; text-wrap: pretty; }
.body-s { font-size: calc(14px * var(--type-scale)); color: var(--ink-2); }
.micro { font-size: calc(12px * var(--type-scale)); color: var(--muted); }

.numeral {
  font-family: var(--numeral-font); font-weight: var(--numeral-weight);
  font-size: calc(40px * var(--type-scale)); line-height: 1; color: var(--accent);
  letter-spacing: -0.5px;
}
html[data-brand="c"] .numeral { letter-spacing: 0; }
.numeral-l { font-size: calc(26px * var(--type-scale)); }
.numeral + .nlabel, .nlabel {
  font-size: calc(11px * var(--type-scale)); letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--muted); margin-top: 7px; font-weight: 500; line-height: 1.35;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-text); font-weight: 600;
  font-size: calc(14px * var(--type-scale));
  padding: 12px 22px; border-radius: var(--radius);
  border: 1.5px solid transparent; min-height: 44px;
  transition: background .15s, color .15s, border-color .15s;
  text-align: center; white-space: nowrap;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn-secondary:hover { background: var(--accent); color: var(--accent-ink); }
.btn-quiet { background: transparent; color: var(--ink-2); border-color: var(--line-strong); }
.btn-quiet:hover { border-color: var(--ink); color: var(--ink); }
.btn-text {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  font-weight: 600; font-size: calc(14px * var(--type-scale)); color: var(--link);
  border-bottom: 2px solid var(--link); padding-bottom: 2px; min-height: 0;
}
.btn-text:hover { opacity: .75; }
html[data-brand="c"] .btn { text-transform: uppercase; letter-spacing: .8px; font-family: "Barlow", sans-serif; }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 90;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 14px; height: 72px; }
.logo-box {
  background: #005a93; color: #fff; border-radius: 2px;
  padding: 7px 12px 6px; line-height: 1.05; flex: none;
  font-family: "Archivo", sans-serif; text-align: center;
}
.logo-box .l1 { font-size: 16px; font-weight: 800; letter-spacing: .5px; display: block; }
.logo-box .l2 { font-size: 6px; font-weight: 600; letter-spacing: 1.1px; display: block; margin-top: 2px; text-transform: uppercase; white-space: nowrap; }
.nav-links { display: flex; gap: 1px; flex: 1 1 auto; min-width: 0; justify-content: flex-end; align-items: center; }
.nav-item { position: relative; }
.nav-top {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: calc(14px * var(--type-scale)); font-weight: 500; color: var(--ink-2);
  padding: 9px 10px; border-radius: var(--radius); white-space: nowrap; cursor: pointer;
}
.nav-top:hover, .nav-item.open .nav-top { color: var(--ink); background: var(--surface-2); }
.nav-top.active { color: var(--accent); font-weight: 600; }
.nav-caret { font-size: 9px; opacity: .5; transition: transform .15s, opacity .15s; }
.nav-item.open .nav-caret { transform: rotate(180deg); opacity: .9; }
.nav-drop {
  position: absolute; top: 100%; left: 0; transform: translateY(6px);
  min-width: 234px; padding-top: 10px; z-index: 95;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .14s ease, transform .14s ease;
}
.nav-item.wide .nav-drop { min-width: 372px; }
.nav-links > .nav-item:nth-last-of-type(2) .nav-drop { left: auto; right: 0; }
.nav-item.open .nav-drop {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0);
}
.nav-drop-inner {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-card); box-shadow: 0 18px 44px rgba(16,22,28,.18);
  padding: 8px;
}
.nav-drop-head {
  display: block; font-family: var(--font-display); text-transform: var(--case-display);
  font-weight: var(--w-display-sub); font-size: calc(12px * var(--type-scale));
  color: var(--muted); letter-spacing: .4px; padding: 7px 12px 9px;
  border-bottom: 1px solid var(--line); margin-bottom: 6px;
}
.nav-drop-head:hover { color: var(--accent); }
.nav-drop-list { display: grid; grid-template-columns: 1fr; gap: 1px; }
.nav-item.wide .nav-drop-list { grid-template-columns: 1fr 1fr; }
.nav-drop-link {
  display: block; font-size: calc(13.5px * var(--type-scale)); font-weight: 500;
  color: var(--ink-2); padding: 9px 12px; border-radius: var(--radius); white-space: nowrap;
}
.nav-drop-link:hover { background: var(--surface-2); color: var(--accent); }
.nav-cta { flex: none; margin-left: 2px; }
.nav-burger { display: none; }
@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .nav-inner { justify-content: space-between; height: 62px; }
  .nav-burger {
    display: flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border: 1px solid var(--line-strong);
    border-radius: var(--radius); background: var(--surface); color: var(--ink); font-size: 18px;
  }
}
.mobile-menu {
  position: fixed; inset: 0; z-index: 200; background: var(--bg);
  display: flex; flex-direction: column; padding: 20px;
}
.mobile-menu .mm-head { display: flex; justify-content: space-between; align-items: center; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 2px; margin-top: 28px; overflow-y: auto; }
.mobile-menu nav > a, .mobile-menu .mm-row a {
  font-family: var(--font-display); font-weight: var(--w-display-sub);
  text-transform: var(--case-display);
  font-size: calc(24px * var(--type-scale)); color: var(--ink); padding: 12px 6px;
}
.mobile-menu nav > a { border-bottom: 1px solid var(--line); }
.mobile-menu .mm-group { border-bottom: 1px solid var(--line); }
.mobile-menu .mm-row { display: flex; align-items: center; justify-content: space-between; }
.mobile-menu .mm-row a { flex: 1; }
.mobile-menu .mm-toggle {
  width: 40px; height: 40px; flex: none; border: 1px solid var(--line-strong);
  border-radius: var(--radius); background: var(--surface); color: var(--ink-2);
  font-size: 20px; line-height: 1; display: flex; align-items: center; justify-content: center;
}
.mobile-menu .mm-sub { display: flex; flex-direction: column; gap: 1px; padding: 2px 6px 14px; }
.mobile-menu .mm-sub a {
  font-size: calc(15px * var(--type-scale)); font-weight: 500; color: var(--ink-2);
  padding: 9px 12px; border-radius: var(--radius);
}
.mobile-menu .mm-sub a:hover { background: var(--surface-2); color: var(--accent); }
.mobile-menu .mm-cta { margin-top: 28px; display: flex; flex-direction: column; gap: 10px; }

/* ---------- placeholder imagery ---------- */
.ph {
  position: relative; overflow: hidden; display: flex;
  align-items: flex-end; border-radius: var(--radius-card);
  background:
    radial-gradient(120% 90% at 20% 10%, rgba(255,255,255,.22), transparent 60%),
    var(--ph-bg, var(--ph-1));
  min-height: 80px;
}
.ph::before {
  content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background-image: repeating-linear-gradient(115deg, rgba(0,0,0,.03) 0 1px, transparent 1px 7px),
    repeating-linear-gradient(25deg, rgba(255,255,255,.05) 0 1px, transparent 1px 11px);
}
.ph.ph-img::before { display: none; }
.ph.ph-img > img {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0;
  display: block; background: var(--ph-bg, var(--ph-1));
}
.ph.ph-img .ph-label { color: #fff; background: rgba(20,26,31,.42); }
.jm-icon { flex: none; }
.sector-ico {
  width: 40px; height: 40px; flex: none; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  background: var(--surface-2, rgba(20,26,31,.05)); border: 1px solid var(--line);
}
.sector-ico .jm-icon { opacity: .85; }
.team-mono {
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; letter-spacing: 1px;
  font-size: calc(30px * var(--type-scale)); color: rgba(20,26,31,.5);
  background:
    radial-gradient(120% 90% at 20% 10%, rgba(255,255,255,.3), transparent 60%),
    var(--ph-2);
}
.contact-map {
  aspect-ratio: 4 / 3; border-radius: var(--radius-card); overflow: hidden;
  border: 1px solid var(--line); position: relative; display: flex;
  align-items: flex-end; text-decoration: none; color: var(--ink);
  background-color: var(--ph-1);
  background-image:
    linear-gradient(rgba(20,26,31,.06) 1.5px, transparent 1.5px),
    linear-gradient(90deg, rgba(20,26,31,.06) 1.5px, transparent 1.5px),
    linear-gradient(rgba(20,26,31,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20,26,31,.04) 1px, transparent 1px);
  background-size: 96px 96px, 96px 96px, 24px 24px, 24px 24px;
}
.contact-map::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(150deg, transparent 40%, rgba(42,111,219,.06) 70%, transparent 72%);
}
.contact-map .map-pin {
  position: absolute; top: 42%; left: 50%; transform: translate(-50%, -50%);
  width: 40px; height: 40px; border-radius: 50% 50% 50% 0;
  transform: translate(-50%, -50%) rotate(-45deg);
  background: var(--accent); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 20px rgba(20,26,31,.28);
}
.contact-map .map-pin .jm-icon { transform: rotate(45deg); }
.contact-map .map-card {
  position: relative; z-index: 1; margin: 14px; padding: 12px 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  display: flex; flex-direction: column; gap: 4px; font-size: calc(13.5px * var(--type-scale));
  box-shadow: 0 6px 18px rgba(20,26,31,.1);
}
.contact-map .map-dir {
  display: inline-flex; align-items: center; gap: 6px; color: var(--link);
  font-weight: 600; font-size: calc(12.5px * var(--type-scale));
}
.contact-map:hover .map-dir { text-decoration: underline; }
.ph .ph-label {
  position: relative; z-index: 1; max-width: 100%;
  margin: 10px 12px; padding: 5px 10px;
  font-size: calc(11px * var(--type-scale));
  letter-spacing: .2px; color: rgba(20, 26, 31, .72);
  background: rgba(255,255,255,.6); border-radius: 3px;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  line-height: 1.3;
}
.ph .ph-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 54px; height: 54px; border-radius: 50%; z-index: 2;
  background: rgba(20,26,31,.55); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 18px;
  padding-left: 4px;
}

.ph.hero-ph .ph-play { top: 24%; left: auto; right: clamp(56px, 10vw, 150px); transform: none; }

/* ---------- cards ---------- */
.pcard { display: block; position: relative; border-radius: var(--radius-card); overflow: hidden; }
.pcard .ph { border-radius: 0; align-items: flex-start; }
.pcard .pcard-overlay {
  position: absolute; inset: auto 0 0 0; z-index: 2;
  padding: 40px 20px 20px;
  background: linear-gradient(transparent, rgba(16, 22, 28, .68));
  color: #fff;
}
.pcard .pcard-name {
  display: block;
  font-family: var(--font-display); font-weight: var(--w-display-sub);
  text-transform: var(--case-display);
  font-size: calc(17px * var(--type-scale)); line-height: 1.2; color: #fff;
}
.pcard .pcard-meta { display: block; font-size: calc(11.5px * var(--type-scale)); opacity: .8; margin-top: 3px; }
.pcard:hover .ph { filter: brightness(1.05); }
.pcard:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.pcard .pcard-tag {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  background: rgba(255,255,255,.92); color: var(--ink-2);
  border-radius: 2px; padding: 3px 7px; white-space: nowrap;
}
.pcard.archive .pcard-name { font-size: calc(14px * var(--type-scale)); font-weight: 600; }

/* ---------- chips / pills ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: calc(12.5px * var(--type-scale)); font-weight: 500;
  border: 1px solid var(--line-strong); border-radius: 18px;
  padding: 5px 13px; color: var(--ink-2); background: var(--surface);
  transition: all .12s; min-height: 30px;
}
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.flagpill {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: calc(10.5px * var(--type-scale)); font-weight: 600; letter-spacing: .4px;
  background: var(--flag-bg); color: var(--flag); border-radius: 3px; padding: 2px 8px;
  white-space: nowrap;
}
.p2pill {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: calc(10.5px * var(--type-scale)); font-weight: 700; letter-spacing: .8px;
  background: var(--p2-bg); color: var(--p2); border: 1px solid color-mix(in srgb, var(--p2) 35%, transparent);
  border-radius: 3px; padding: 2px 8px; text-transform: uppercase; white-space: nowrap;
}

/* ---------- bands ---------- */
.band { background: var(--band-bg); color: var(--band-ink); }
.band .display, .band .pcard-name { color: var(--band-ink); }
.band .lede, .band .body-s { color: var(--band-muted); }
.band .micro, .band .nlabel { color: var(--band-muted); }
.band .numeral { color: var(--band-accent); }
.band .eyebrow { color: var(--band-accent); }
html[data-brand="b"] .band .eyebrow { color: var(--band-muted); }
.surface-band { background: var(--surface-2); }

/* ---------- logo strip ---------- */
.logo-strip { display: flex; flex-wrap: wrap; gap: 10px; }
.logo-strip.logos { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; }
.brand-logo { height: 44px; width: auto; display: block; }
.site-footer .brand-logo { height: 56px; }
.brand-chip {
  flex: 1 1 132px; min-height: 54px;
  display: flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 16px;
}
.brand-chip img { max-height: 30px; max-width: 100%; width: auto; height: auto; display: block; object-fit: contain; }
.brand-chip.cert { flex: 0 1 132px; }
.brand-chip.cert img { max-height: 48px; }
.band .brand-chip { border-color: transparent; }
@media (max-width: 640px) {
  .brand-chip { min-height: 48px; padding: 8px 12px; }
  .brand-chip img { max-height: 26px; }
}
.logo-chip {
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); color: var(--ink-2);
  padding: 12px 20px; min-height: 52px; flex: 1 1 130px;
  font-family: "Archivo", sans-serif; font-weight: 700;
  font-size: calc(13px * var(--type-scale)); letter-spacing: .6px; text-transform: uppercase;
  text-align: center;
}
.logo-chip.textmode { font-family: var(--font-text); font-weight: 600; text-transform: none; letter-spacing: .2px; color: var(--muted); border-style: dashed; }
.band .logo-chip { background: transparent; border-color: var(--band-line); color: var(--band-ink); opacity: .85; }
.band .logo-chip.textmode { color: var(--band-muted); }

/* ---------- video ---------- */
.video-card { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 0; cursor: pointer; }
.video-thumb { position: relative; display: block; width: 100%; overflow: hidden; border-radius: var(--radius-card); background: var(--ph-3); }
.video-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.video-thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 55%, rgba(16, 22, 28, .45)); }
.video-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 1;
  width: 60px; height: 60px; border-radius: 50%; background: rgba(20, 26, 31, .58);
  display: flex; align-items: center; justify-content: center; padding-left: 3px;
  transition: background .15s, transform .15s;
}
.video-card.big .video-play { width: 76px; height: 76px; }
.video-card:hover .video-play { background: var(--accent); transform: translate(-50%, -50%) scale(1.06); }
.video-card:focus-visible .video-thumb { outline: 3px solid var(--accent); outline-offset: 2px; }
.video-card-cap { display: block; margin-top: 10px; font-weight: 600; font-size: calc(14.5px * var(--type-scale)); color: var(--ink); }
.video-card-loc { color: var(--muted); font-weight: 500; margin-left: 8px; }
.video-modal {
  position: fixed; inset: 0; z-index: 200; background: rgba(10, 14, 18, .86);
  display: flex; align-items: center; justify-content: center; padding: 24px;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.video-frame { position: relative; width: min(1100px, 100%); }
.video-embed { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 8px; overflow: hidden; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-close {
  position: absolute; top: -44px; right: 0; width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255, 255, 255, .15); color: #fff; border: 1px solid rgba(255, 255, 255, .3); font-size: 15px;
}
.video-cap { color: rgba(255,255,255,.9); margin-top: 12px; font-size: calc(14px * var(--type-scale)); }
.logo-chip.cert { flex: 0 1 118px; min-height: 64px; font-size: calc(12px * var(--type-scale)); position: relative; }
.logo-chip.cert::after {
  content: "LOGO"; position: absolute; top: 7px; right: 8px;
  font-size: 7.5px; letter-spacing: 1px; font-weight: 700; color: var(--muted); opacity: .5;
}
.tbd-chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: calc(12.5px * var(--type-scale)); font-weight: 500;
  padding: 6px 12px; border-radius: var(--radius); min-height: 30px;
  border: 1px dashed var(--line-strong); color: var(--muted); background: transparent;
}
.tbd-chip .tbd-tag {
  font-size: calc(9.5px * var(--type-scale)); font-weight: 700; letter-spacing: .8px;
  text-transform: uppercase; color: var(--muted); border: 1px solid var(--line-strong);
  border-radius: 2px; padding: 1px 5px;
}

/* ---------- fact block ---------- */
.factblock {
  background: var(--surface); border: 1px solid var(--line);
  border-top: 3px solid var(--accent); border-radius: var(--radius-card);
  padding: 22px 22px 18px;
}
.factblock dl { display: grid; grid-template-columns: 1fr; }
.factblock .frow { display: grid; grid-template-columns: 92px 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.factblock .frow:last-child { border-bottom: 0; }
.factblock dt { font-size: calc(10.5px * var(--type-scale)); letter-spacing: 1.1px; text-transform: uppercase; color: var(--muted); font-weight: 600; padding-top: 3px; }
.factblock dd { font-size: calc(14px * var(--type-scale)); color: var(--ink); font-weight: 500; }
.factblock dd .tbc { color: var(--flag); font-weight: 500; font-size: calc(12.5px * var(--type-scale)); }
.sticky-rail { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 14px; }

/* ---------- stat row ---------- */
.statrow { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.stat {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card);
  padding: 20px 18px 16px; text-align: left;
}
.band .stat { background: transparent; border-color: var(--band-line); }

/* ---------- quote ---------- */
.pull-quote {
  border-left: 3px solid var(--accent); padding: 6px 0 6px 24px;
  font-family: var(--font-display); font-weight: var(--w-display-sub);
  text-transform: none; font-size: calc(22px * var(--type-scale)); line-height: 1.4; color: var(--ink);
}
html[data-brand="b"] .pull-quote { font-style: italic; font-weight: 400; }
.pull-quote .qattr { display: block; margin-top: 12px; font-family: var(--font-text); font-style: normal; font-weight: 500; font-size: calc(13px * var(--type-scale)); color: var(--muted); }

/* ---------- P2 band ---------- */
.p2band {
  border: 1.5px dashed color-mix(in srgb, var(--p2) 45%, transparent);
  background: var(--p2-bg); border-radius: var(--radius-card);
  padding: 26px 28px;
}
@media (max-width: 720px) { .p2band { padding: 20px; } }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: calc(12.5px * var(--type-scale)); font-weight: 600; color: var(--ink-2); letter-spacing: .3px; }
.field input[type="text"], .field input[type="email"], .field select, .field textarea {
  font-family: var(--font-text); font-size: calc(15px * var(--type-scale));
  padding: 12px 14px; border: 1.5px solid var(--line-strong); border-radius: var(--radius);
  background: var(--surface); color: var(--ink); min-height: 46px; width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #b3261e; }
.field .err { font-size: calc(12px * var(--type-scale)); color: #b3261e; }
.checkrow { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--surface); cursor: pointer; }
.checkrow:hover { border-color: var(--line-strong); }
.checkrow.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 5%, var(--surface)); }
.checkrow input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); }

/* ---------- footer ---------- */
.site-footer { background: var(--band-bg); color: var(--band-ink); margin-top: 96px; }
.site-footer a { color: var(--band-ink); }
.site-footer .f-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; padding: 56px 0 40px; }
.site-footer .f-head { font-size: calc(11px * var(--type-scale)); letter-spacing: 1.4px; text-transform: uppercase; color: var(--band-muted); font-weight: 600; margin-bottom: 14px; }
.site-footer .f-links { display: flex; flex-direction: column; gap: 8px; font-size: calc(14px * var(--type-scale)); }
.site-footer .f-links a:hover { color: var(--band-accent); }
.site-footer .f-base { border-top: 1px solid var(--band-line); padding: 18px 0 22px; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: calc(12px * var(--type-scale)); color: var(--band-muted); }
@media (max-width: 860px) { .site-footer .f-grid { grid-template-columns: 1fr 1fr; gap: 28px; } }

/* ---------- layout utils ---------- */
.section { padding-block: 72px; }
.section-s { padding-block: 48px; }
@media (max-width: 720px) { .section { padding-block: 52px; } .section-s { padding-block: 36px; } }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }
.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: 1fr 1fr; }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .g4 { grid-template-columns: repeat(2, 1fr); } .g3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .g4, .g3, .g2 { grid-template-columns: 1fr; } }
.hr { border: 0; border-top: 1px solid var(--line); }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.stack-v { display: flex; flex-direction: column; gap: 12px; }

/* project detail layout */
.detail-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; }
@media (max-width: 900px) {
  .detail-grid { grid-template-columns: 1fr; gap: 28px; }
  .sticky-rail { position: static; }
}

/* sector rows: mobile horizontal scroll */
.sector-row-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 860px) {
  .sector-row-cards {
    display: flex; overflow-x: auto; gap: 12px; padding-bottom: 8px;
    scroll-snap-type: x mandatory; margin: 0 -20px; padding-left: 20px; padding-right: 20px;
  }
  .sector-row-cards > * { flex: 0 0 72%; scroll-snap-align: start; }
}

/* finish tiles */
.tile-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 980px) { .tile-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .tile-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }
.ftile { position: relative; border-radius: var(--radius-card); overflow: hidden; border: 1px solid var(--line); background: var(--surface); text-align: left; padding: 0; display: block; width: 100%; }
.ftile .ph { aspect-ratio: 1; border-radius: 0; }
.ftile .ft-name { padding: 11px 13px; font-weight: 600; font-size: calc(13.5px * var(--type-scale)); color: var(--ink); display: flex; align-items: center; gap: 6px; justify-content: space-between; }
.ftile:hover { border-color: var(--accent); }
.ftile.on { outline: 2.5px solid var(--accent); outline-offset: -1px; }

/* testimonial */
.testimonial-shell { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 30px 32px; position: relative; }
.t-dots { display: flex; gap: 7px; margin-top: 18px; }
.t-dots button { width: 9px; height: 9px; border-radius: 50%; border: 0; background: var(--line-strong); padding: 0; }
.t-dots button.on { background: var(--accent); }

/* press rows */
.press-row {
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  padding: 9px 0; border-top: 1px solid var(--line); color: var(--ink-2);
  font-size: calc(13.5px * var(--type-scale)); transition: color .12s;
}
.press-row:hover .press-outlet { color: var(--accent); }
.press-outlet { font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.press-meta { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; flex: none; color: var(--muted); font-size: calc(12px * var(--type-scale)); }

/* filter bar (projects browse + explorer) */
.browse-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px 32px; flex-wrap: wrap; margin-top: 8px; }
.filterbar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px 18px; }
.filter-field { display: flex; flex-direction: column; gap: 6px; }
.filter-field label { font-size: calc(11px * var(--type-scale)); font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.filter-field select {
  font-family: var(--font-text); font-size: calc(14px * var(--type-scale)); font-weight: 500;
  padding: 10px 36px 10px 14px; border: 1.5px solid var(--line-strong); border-radius: var(--radius);
  background-color: var(--surface); color: var(--ink); min-height: 44px; min-width: 198px; cursor: pointer;
  -webkit-appearance: none; appearance: none;
  background-image: 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' stroke='%23667085' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 11px;
}
.filter-field select:hover { border-color: var(--ink-2); }
.filter-field select:focus { outline: none; border-color: var(--accent); }
.filter-clear { background: transparent; border: 0; color: var(--link); font-weight: 600; font-size: calc(13px * var(--type-scale)); padding: 0 4px; min-height: 44px; white-space: nowrap; }
.filter-clear:hover { text-decoration: underline; }

/* toast */
.toast {
  position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%);
  background: var(--ink); color: var(--bg); font-size: 13.5px; font-weight: 500;
  border-radius: 6px; padding: 12px 20px; z-index: 300;
  box-shadow: 0 8px 30px rgba(0,0,0,.25); max-width: 90vw; text-align: center;
  animation: toast-in .2s ease;
}
@keyframes toast-in { from { opacity: 0; transform: translateX(-50%) translateY(8px); } }

/* page transitions: handled inline (CSS keyframe restarts break DOM-clone captures) */
.page-enter { opacity: 1; }
