*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 var(--fs-md)/1.65 var(--font-body);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img, svg, video, iframe { max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--heading); line-height: 1.18; letter-spacing: -0.015em; margin: 0 0 var(--sp-3); font-weight: 700; }
h1 { font-size: var(--fs-4xl); }
h2 { font-size: var(--fs-3xl); }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); }
p { margin: 0 0 var(--sp-4); }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color var(--dur) var(--ease); }
a:hover { color: var(--link-hover); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
hr { border: 0; height: 1px; background: var(--border); margin: var(--sp-6) 0; }
code, kbd { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: 0.9em; background: var(--surface-2); padding: 0.1em 0.35em; border-radius: 4px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -100px; z-index: 1000; background: var(--gold-300); color: var(--navy-900); padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 700; }
.skip-link:focus { top: 12px; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container-narrow { max-width: 820px; }
main { flex: 1; outline: none; }
/* Content grids may shrink below long titles, URLs and native form widths. */
main { overflow-wrap: anywhere; }
.grid > *, .layout-sidebar > *, .layout-filters > *, .ws-layout > *, .legal-index > *, .editor-split > * { min-width: 0; }

/* ---------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 500;
  background: linear-gradient(180deg, rgba(10, 18, 32, 0.98), rgba(16, 27, 45, 0.97));
  color: var(--white);
  backdrop-filter: saturate(140%) blur(8px);
  box-shadow: 0 1px 0 rgba(214, 170, 82, 0.35), 0 8px 24px -16px rgba(0, 0, 0, 0.6);
}
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 3px; background: var(--grad-flag-line); opacity: 0.9; }
.header-inner { display: flex; align-items: center; gap: var(--sp-4); min-height: var(--header-h); max-width: 1560px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--white); flex-shrink: 0; }
.brand:hover { color: var(--white); }
.brand-emblem { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold-500); box-shadow: 0 0 0 3px rgba(214, 170, 82, 0.18), 0 4px 12px rgba(0, 0, 0, 0.45); background: var(--navy-800); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.wordmark { font-family: var(--font-brand); font-weight: 800; font-size: 1.45rem; letter-spacing: 0.06em; background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.6)); }
.brand-tagline { font-size: 0.6rem; letter-spacing: 0.16em; text-transform: uppercase; color: #c7d0dd; margin-top: 5px; }
.primary-nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.primary-nav a { color: #d5dce7; text-decoration: none; font-size: 0.86rem; font-weight: 600; padding: 9px 10px; border-radius: var(--radius-sm); position: relative; white-space: nowrap; }
.primary-nav a:hover { color: var(--gold-300); background: rgba(255, 255, 255, 0.05); }
.primary-nav a[aria-current="page"] { color: var(--white); }
.primary-nav a[aria-current="page"]::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 2px; height: 2px; background: var(--red-500); border-radius: 2px; box-shadow: 0 0 0 1px rgba(214, 170, 82, 0.3); }
.header-actions { display: flex; align-items: center; gap: var(--sp-2); }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.14); background: rgba(255, 255, 255, 0.04); color: #e6ebf2; position: relative; transition: background var(--dur), border-color var(--dur); }
.icon-btn:hover { background: rgba(214, 170, 82, 0.14); border-color: rgba(214, 170, 82, 0.6); color: var(--gold-300); }
.icon-btn .count { position: absolute; top: -3px; right: -3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--red-600); color: #fff; font-size: 0.68rem; font-weight: 700; display: grid; place-items: center; border: 2px solid var(--navy-900); }
.menu-toggle { display: none; }
.avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; background: var(--blue-700); color: #fff; display: inline-grid; place-items: center; font-weight: 700; font-size: 0.85rem; border: 2px solid var(--gold-500); }
.account-menu { position: relative; display: flex; align-items: center; gap: var(--sp-2); }
.account-menu > button { background: none; border: 0; padding: 0; border-radius: 50%; }
.dropdown { position: absolute; right: 0; top: calc(100% + 10px); min-width: 230px; background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-3); padding: 6px; display: none; z-index: 600; }
.dropdown.open { display: block; animation: pop var(--dur) var(--ease); }
.dropdown .who { padding: 10px 12px 8px; border-bottom: 1px solid var(--border); margin-bottom: 4px; }
.dropdown .who strong { display: block; color: var(--heading); }
.dropdown a, .dropdown button.item { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 9px 12px; border-radius: var(--radius-sm); color: var(--text); text-decoration: none; background: none; border: 0; font-size: 0.92rem; }
.dropdown a:hover, .dropdown button.item:hover { background: var(--surface-2); color: var(--heading); }
@keyframes pop { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

@media (max-width: 1360px) {
  .primary-nav a { padding: 9px 7px; font-size: 0.82rem; }
  .brand-tagline { display: none; }
}
@media (max-width: 1480px) {
  .menu-toggle { display: inline-grid; }
  .primary-nav {
    position: fixed; inset: calc(var(--header-h) + 3px) 0 auto 0; margin: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--navy-900); padding: var(--sp-3) var(--gutter) var(--sp-5);
    border-bottom: 1px solid rgba(214, 170, 82, 0.4);
    box-shadow: 0 24px 40px -12px rgba(0, 0, 0, 0.6);
    max-height: calc(100vh - var(--header-h)); overflow: auto;
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity var(--dur), transform var(--dur), visibility var(--dur);
  }
  .primary-nav.open { transform: none; opacity: 1; visibility: visible; }
  .primary-nav a { font-size: 1.05rem; padding: 14px 6px; border-bottom: 1px solid rgba(255, 255, 255, 0.07); border-radius: 0; }
  .primary-nav a[aria-current="page"]::after { left: 0; right: auto; width: 4px; top: 12px; bottom: 12px; height: auto; }
  .primary-nav a[aria-current="page"] { padding-left: 16px; }
  .header-actions { margin-left: auto; }
}
@media (max-width: 480px) {
  .wordmark { font-size: 1.15rem; }
  .brand-emblem { width: 38px; height: 38px; }
  .header-actions { gap: 6px; }
  .icon-btn { width: 36px; height: 36px; }
  .header-inner { gap: 8px; }
  .brand { gap: 8px; }
  .brand-emblem, .icon-btn, .account-menu > button { flex-shrink: 0; }
  .header-actions .btn { white-space: nowrap; }
}
@media (max-width: 360px) {
  .wordmark { font-size: 0.95rem; letter-spacing: 0.02em; }
  .header-actions { gap: 4px; }
  .header-actions .btn-sm { padding-inline: 8px; }
  .brand-emblem { width: 32px; height: 32px; }
  .brand { gap: 6px; }
}

/* ---------------------------------------------------------------- page hero (inner pages) */
.page-hero {
  position: relative; overflow: hidden; color: var(--white);
  background: var(--grad-navy);
  padding: clamp(40px, 6vw, 72px) 0 clamp(36px, 5vw, 60px);
  isolation: isolate;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: url("/assets/brand/forge-banner-1200.webp") right center / cover no-repeat;
  opacity: 0.16;
  -webkit-mask-image: linear-gradient(90deg, transparent 20%, #000 75%);
  mask-image: linear-gradient(90deg, transparent 20%, #000 75%);
}
.page-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--grad-gold-line); }
.page-hero h1 { color: var(--white); margin-bottom: var(--sp-3); max-width: 22ch; text-wrap: balance; }
.page-hero .lede { color: #d3dbe7; font-size: var(--fs-lg); max-width: 62ch; margin: 0; }
.page-hero .hero-meta { margin-top: var(--sp-5); display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 700 0.72rem/1 var(--font-body); letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-300); margin-bottom: var(--sp-3); }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--red-500); box-shadow: 0 0 0 1px rgba(214, 170, 82, 0.25); }
.eyebrow.on-light { color: var(--accent-text); }
.breadcrumbs { font-size: var(--fs-sm); margin-bottom: var(--sp-3); color: #b7c3d4; }
.breadcrumbs a { color: #d9e2ee; }
.breadcrumbs a:hover { color: var(--gold-300); }

/* ---------------------------------------------------------------- sections */
.section { padding-block: clamp(40px, 6vw, 72px); }
.section-tight { padding-block: clamp(28px, 4vw, 44px); }
.section-alt { background: var(--grad-parchment); border-block: 1px solid var(--border); }
.section-navy { background: var(--grad-navy-soft); color: #dde4ee; position: relative; }
.section-navy h2, .section-navy h3 { color: var(--white); }
.section-navy .muted { color: #b6c2d3; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--sp-4); margin-bottom: var(--sp-5); flex-wrap: wrap; }
.section-head h2 { margin: 0; font-size: var(--fs-2xl); position: relative; }
.section-head p { margin: 6px 0 0; color: var(--text-muted); max-width: 62ch; }
.section-navy .section-head p { color: #b6c2d3; }
.section-title-rule { display: block; width: 56px; height: 3px; margin-top: 10px; background: linear-gradient(90deg, var(--red-600) 0 45%, var(--gold-500) 45% 100%); border-radius: 2px; }
.muted { color: var(--text-muted); }
.small { font-size: var(--fs-sm); }
.stack > * + * { margin-top: var(--sp-4); }
.grid { display: grid; gap: var(--sp-5); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.layout-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: var(--sp-6); align-items: start; }
.layout-filters { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: var(--sp-6); align-items: start; }
@media (max-width: 1020px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .layout-sidebar, .layout-filters { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); }
}

/* ---------------------------------------------------------------- footer */
.site-footer { background: var(--navy-950); color: #b9c4d4; margin-top: auto; position: relative; }
.site-footer::before { content: ""; display: block; height: 4px; background: var(--grad-flag-line); }
.footer-top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: var(--sp-6); padding: var(--sp-7) 0 var(--sp-6); }
.footer-brand img { width: 100%; max-width: 340px; border-radius: var(--radius-sm); border: 1px solid rgba(214, 170, 82, 0.45); box-shadow: var(--shadow-2); }
.footer-brand p { margin-top: var(--sp-4); font-size: var(--fs-sm); }
.motto { font-family: var(--font-display); font-style: italic; color: var(--gold-300); font-size: 1.1rem; }
.site-footer h4 { color: var(--white); font-family: var(--font-body); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: var(--sp-3); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: #d1d9e5; text-decoration: none; font-size: var(--fs-sm); }
.site-footer a:hover { color: var(--gold-300); text-decoration: underline; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.08); padding: var(--sp-4) 0 var(--sp-5); display: flex; justify-content: space-between; gap: var(--sp-4); flex-wrap: wrap; font-size: var(--fs-xs); }
.theme-switch { display: inline-flex; gap: 4px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: var(--radius-pill); padding: 3px; }
.theme-switch button { border: 0; background: none; color: #b9c4d4; font-size: var(--fs-xs); padding: 4px 10px; border-radius: var(--radius-pill); }
.theme-switch button[aria-pressed="true"] { background: var(--gold-500); color: var(--navy-900); font-weight: 700; }
@media (max-width: 860px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-top { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* Consolidated Baldwin Minute Watch masthead; existing owner artwork. */
.wordmark { font-size: clamp(.88rem, 1.25vw, 1.25rem); letter-spacing: .015em; white-space: normal; line-height: 1.15; }
.brand { max-width: 365px; min-width: 0; flex-shrink: 1; }
.brand-emblem { object-fit: cover; object-position: 14% center; border-radius: 50%; }
.brand-tagline { font-size: .75rem; line-height: 1.4; letter-spacing: 0; white-space: normal; }
.footer-wordmark { font-family: var(--font-display); font-size: 1.5rem; color: var(--gold-300); }
.bmw-masthead { background: var(--navy-950); color: #e2e8f0; border-bottom: 4px solid var(--red-600); }
.bmw-masthead-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 2rem; align-items: center; padding-block: 2.5rem; }
.bmw-masthead h1 { color: #fff; font-size: clamp(2rem, 3.5vw, 3.5rem); letter-spacing: -.025em; }
.bmw-masthead .eyebrow { color: var(--gold-300); font-size: .875rem; }
.bmw-motto { font-family: var(--font-display); font-size: 1.3rem; }
.bmw-art { display: block; width: 100%; border-radius: 4px; }
.bmw-desks { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1.5rem; }
.bmw-desks h2 { font-size: 1.5rem; }


@media(max-width: 700px) { .bmw-masthead-grid, .bmw-desks { grid-template-columns: 1fr; } .bmw-masthead-grid { gap: 1rem; padding-block: 1.5rem; } .bmw-art { max-height: 180px; object-fit: cover; } .brand-tagline { font-size: .7rem; } .brand-emblem { width: 36px; height: 36px; } }
