/* Building Main — site shell, tokens and responsive layer.
   Page bodies keep the approved canvas markup; see src/build/responsive.ts. */
:root {
  --navy: #15233F;
  --paper: #F2EDE4;
  --paper-2: #FBF8F3;
  --bronze: #80623E;
  --gold: #BFA071;
  --ink: #3D4350;
  --muted: #615B51;
  --rule: #D8CFBF;
  --z: 1;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--navy); font-family: Archivo, system-ui, sans-serif; overflow-x: hidden; }
img { max-width: 100%; }
a { color: var(--navy); }
a:hover { color: var(--bronze); }
button { color: inherit; }
:focus-visible { outline: 2px solid var(--bronze); outline-offset: 3px; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--navy); color: var(--paper); padding: 12px 16px; font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; color: var(--paper); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* The approved canvas is a 1440px page. From 1100px up it is scaled to fit. */
.page { width: 1440px; margin: 0 auto; background: var(--paper); position: relative; }
@media (min-width: 1100px) { .page { zoom: var(--z); } }
[data-section] { display: block; }
[id] { scroll-margin-top: 16px; }

/* ---------- Header ---------- */
.sh-bar { height: 80px; padding: 0 64px; display: flex; align-items: center; justify-content: space-between; }
.sh-logo { text-decoration: none; display: flex; align-items: center; gap: 12px; color: var(--navy); }
.sh-logo span { font-size: 21px; font-weight: 600; letter-spacing: -0.035em; }
.sh-links { display: flex; flex-direction: column; width: 420px; }
.sh-row { display: flex; justify-content: space-between; font-size: 14px; font-weight: 500; padding: 0 4px 12px; }
.sh-row a { text-decoration: none; }
.sh-rule { position: relative; height: 1px; background: var(--navy); }
.sh-dot { position: absolute; top: -3px; width: 7px; height: 7px; border-radius: 50%; background: var(--bronze); }
.sh-cta, .sh-menu-cta { display: inline-flex; align-items: center; gap: 12px; background: var(--navy); color: var(--paper); padding: 13px 18px; font-size: 14px; font-weight: 600; text-decoration: none; }
.sh-cta:hover { color: var(--gold); }
.sh-ring { width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid var(--gold); flex-shrink: 0; }
.sh-menu-btn { display: none; width: 44px; height: 44px; border: 0; background: transparent; flex-direction: column; justify-content: center; align-items: flex-end; gap: 6px; padding: 0; cursor: pointer; }
.sh-l1 { display: block; width: 22px; height: 1.5px; background: var(--navy); }
.sh-l2 { display: flex; align-items: center; width: 22px; }
.sh-l2 span { flex: 1; height: 1.5px; background: var(--navy); }
.sh-l2 i { width: 5px; height: 5px; border-radius: 50%; background: var(--bronze); }
.sh-menu { position: fixed; inset: 0; z-index: 40; background: var(--navy); color: var(--paper); display: flex; flex-direction: column; overflow-y: auto; }
.sh-menu[hidden] { display: none; }
.sh-menu-bar { height: 64px; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; }
.sh-close { height: 44px; border: 0; background: transparent; color: var(--paper); font: 600 13px Archivo, sans-serif; padding: 0 4px; cursor: pointer; }
.sh-menu-body { padding: 24px 20px 32px; display: flex; flex-direction: column; flex: 1; }
.sh-big { text-decoration: none; color: #C9C1B3; display: flex; align-items: center; justify-content: space-between; padding: 16px 0; border-top: 1px solid #3A4864; font-size: 32px; font-weight: 600; letter-spacing: -0.04em; }
.sh-big:first-child { color: var(--paper); padding-bottom: 10px; }
.sh-big.sh-last { border-bottom: 1px solid #3A4864; }
.sh-big:hover, .sh-sub a:hover { color: var(--gold); }
.sh-mdot { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid #6F7D91; }
.sh-mdot-on { background: var(--gold); border-color: var(--gold); }
.sh-sub { display: flex; flex-direction: column; padding: 0 0 14px 2px; position: relative; }
.sh-sub::before { content: ""; position: absolute; left: 5px; top: 14px; bottom: 24px; width: 1px; background: #3A4864; }
.sh-sub a { text-decoration: none; color: #E5DFD4; display: flex; align-items: center; gap: 14px; padding: 10px 0; font-size: 17px; font-weight: 600; position: relative; }
.sh-sub a span { width: 7px; height: 7px; border-radius: 50%; background: var(--paper); margin-left: 2px; }
.sh-menu-cta { margin-top: 32px; background: var(--gold); color: var(--navy); align-self: stretch; justify-content: center; min-height: 48px; }
.sh-menu-cta .sh-ring { border-color: var(--navy); }
.sh-menu-cta:hover { color: var(--navy); }
html.menu-open { overflow: hidden; }

/* ---------- Footer ---------- */
.sf { background: var(--navy); color: #C9C1B3; padding: 28px 64px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.sf-brand { display: flex; align-items: center; gap: 10px; }
.sf-name { font-size: 15px; font-weight: 600; color: var(--paper); }
.sf-lbl { font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #8F9AAC; margin-left: 10px; }
.sf-links { display: flex; gap: 8px; margin: 0; }
.sf-links a { color: #C9C1B3; text-decoration: none; }
.sf-links a:hover { color: var(--gold); }

/* ---------- Contact chips (progressive enhancement) ---------- */
[data-chip] { cursor: pointer; font: inherit; }
[data-chip][aria-pressed="true"] { background: var(--navy) !important; color: var(--paper) !important; }
[data-chip][aria-pressed="false"] { background: transparent !important; color: var(--navy) !important; }
.form-status { font-size: 14px; line-height: 1.5; color: var(--ink); min-height: 1.5em; }

/* ---------- Private-route banner ---------- */
.private-banner { background: #2B1D10; color: #F2EDE4; font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; padding: 8px 20px; text-align: center; }

/* ================= Responsive layer (below 1100px) ================= */
@media (max-width: 1099px) {
  :root { --fk: .55; --sk: .62; --hk: .75; --g12: 6; --g7: 4; }
  .page { width: auto; max-width: 100%; overflow-x: hidden; }
  .page [style*="grid-column"] { grid-column: auto / span min(6, var(--g12)) !important; }
  .page * { min-width: 0; }
  .page img { height: auto; }
  .sh-links, .sh-cta { display: none; }
  .page .hs { display: none !important; } /* hotspot pins are placed for the 1440px image width */
  .sh-menu-btn { display: flex; }
  .sh-bar { height: 64px; padding: 0 20px; }
  .sf { flex-direction: column; align-items: flex-start; padding: 28px 20px; }
  .sf-brand { flex-wrap: wrap; }
  .sf-lbl { margin-left: 0; }
}
@media (max-width: 1099px) and (min-width: 700px) {
  .page [style*="grid-column:1 / span 12"], .page [style*="grid-column: 1 / span 12"] { grid-column: 1 / -1 !important; }
}
@media (max-width: 699px) {
  :root { --fk: .32; --sk: .36; --hk: .6; --g12: 1; --g7: 1; --g6: 2; --g5: 1; --g4: 2; --g3: 1; --g2: 1; }
  .page [style*="grid-column"] { grid-column: 1 / -1 !important; }
  .page [style*="display:flex"][style*="justify-content:space-between"]:not([style*="flex-direction:column"]):not([data-keep-row]) { flex-wrap: wrap; row-gap: 8px; }
  .page h1, .page h2 { overflow-wrap: break-word; }
  /* Collages of overlapping screens become a simple stack of up to two. */
  .page [data-m="stack"] { height: auto !important; display: flex !important; flex-direction: column; gap: 12px; }
  .page [data-m="stack"] > [style*="position:absolute"] { position: relative !important; inset: auto !important; width: 100% !important; height: auto !important; transform: none !important; margin: 0 !important; }
  .page [data-m-lite] > [style*="position:absolute"]:not(:has(img)) { display: none !important; }
  .page [data-m-lite] > [style*="position:absolute"]:has(img) ~ [style*="position:absolute"]:has(img) { display: none !important; }
  .page [data-m="stack"]:not([data-m-lite]) > [style*="position:absolute"]:has(img) ~ [style*="position:absolute"]:has(img) ~ [style*="position:absolute"]:has(img) { display: none !important; }
  .page .tag, .page .lbl, .page [style*="white-space:nowrap"] { white-space: normal !important; }
  .page [style*="overflow:hidden"] { overflow-wrap: break-word; }
  .page [data-m="stack"] img { height: auto !important; max-height: 70vh; object-fit: cover; object-position: top; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
@media print {
  .sh, .skip-link { display: none; }
  .page { zoom: 1 !important; }
}
