/* Audit 2026-11: readable surfaces, stable imagery and keyboard navigation. */
body{font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;-webkit-text-size-adjust:100%}
h1,h2,h3{ text-wrap:balance }p{ text-wrap:pretty }
.section-heading>p:last-child,.lead{max-width:65ch}.model-card img{object-fit:contain}
.model-card,.map-card{transition:border-color .18s ease,background-color .18s ease}.model-card:hover{background:#223024}
.model-card:focus-visible,.map-card:focus-visible{outline-offset:3px}
header nav{scroll-padding-inline:20px}header nav a[aria-current=location]{color:var(--lime);box-shadow:inset 0 -2px var(--lime)}
#model-stage{isolation:isolate}.viewer-loader{pointer-events:none}.viewer-loader button{pointer-events:auto}
#model-status{max-width:38ch}#model-dialog,#map-dialog{overscroll-behavior:contain}
@media(min-width:621px) and (max-width:920px){header{height:auto;min-height:92px;flex-wrap:wrap;padding-block:14px;gap:10px}header nav{order:3;width:100%;justify-content:space-between;gap:12px}.model-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.model-card:last-child{grid-column:1/-1}.model-card img{height:260px}}
@media(max-width:620px){footer{padding-bottom:100px}.intro-selector{gap:3px}.intro-selector>button[data-intro]{min-width:44px;width:44px}.model-card img{height:auto;aspect-ratio:1}.section-heading p{max-width:38ch}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;animation:none!important;scroll-behavior:auto!important}}

.section{background-image:radial-gradient(ellipse at 100% 0%,#d6f75b04,transparent 55%)}
@media(min-width:621px) and (max-width:920px){html{scroll-padding-top:155px}.hero-copy{width:52%}.hero .lead{font-size:16px}.terrain{background-image:linear-gradient(90deg,#101512 5%,#101512ed 38%,#10151266 76%,#10151288),url('assets/harbor-map.webp')}}

/* Stable loading surfaces and compositor-only hover feedback. */
.model-card img{display:block}.model-name{display:block;min-height:2.6em}.model-open{margin-top:auto}.viewer-loader img{object-fit:contain}.model-card{display:flex;flex-direction:column}#model-stage>canvas{display:block;touch-action:none}#model-stage{contain:layout paint}button:disabled{cursor:default}
@media(prefers-reduced-motion:no-preference){.model-card img{transition:transform .22s ease}.model-card:hover img{transform:scale(1.015)}}

/* Model studio: a soft backdrop keeps original materials legible. */
#model-stage{background:radial-gradient(ellipse at 50% 35%,#334039 0%,#1c2923 52%,#101813 100%)}
.viewer-top{border-bottom:1px solid #ffffff12}.viewer-controls{padding-top:8px}.viewer-controls [aria-pressed=true]{border-color:var(--lime)}
#model-dialog{border-color:#657759;box-shadow:0 24px 100px #0009}.model-card{background:linear-gradient(145deg,#253027,#19231c)}.model-number{font-variant-numeric:tabular-nums}
@media(max-width:620px){.viewer-controls{gap:8px}.viewer-controls button{font-size:12px;min-height:44px}#model-stage{height:44dvh}.viewer-top h2{font-size:21px}.model-name{min-height:0}}

.contact{display:grid;grid-template-columns:1fr 1fr;gap:60px;align-items:start}.contact-card{padding:32px;border:1px solid #657759;background:linear-gradient(145deg,#26362a,#18241c)}.contact-email{display:block;font-size:clamp(22px,2.5vw,32px);font-weight:750;letter-spacing:-.025em;overflow-wrap:anywhere}.contact-action{display:flex;justify-content:space-between;align-items:center;min-height:52px;margin:22px 0;padding:12px 18px;background:var(--lime);color:#15200f;font-weight:750}.contact-card p{font-size:15px;color:#c3cdc1}.contact-card .contact-privacy{font-size:13px;color:#aebbaa}footer{flex-wrap:wrap}footer a{min-height:44px;display:inline-flex;align-items:center}.contact-email:focus-visible{outline-offset:8px}
@media(min-width:621px) and (max-width:1100px){header{height:auto;min-height:92px;flex-wrap:wrap;padding-block:14px;gap:10px}header nav{order:3;width:100%;justify-content:space-between;gap:12px}html{scroll-padding-top:155px}}
@media(max-width:760px){.contact{grid-template-columns:1fr;gap:22px}.contact-card{padding:24px}.contact-email{font-size:clamp(22px,6vw,30px)}}

/* Explicit reset for Safari button alignment, independent of older selector rules. */
.intro-selector>button[data-intro]{appearance:none;-webkit-appearance:none;display:flex;align-items:center;justify-content:center;flex:0 0 44px;width:44px;height:44px;min-height:44px;padding:0!important;margin:0;line-height:1;text-indent:0;text-align:center;border-radius:4px;font:600 16px/1 ui-monospace,monospace}
.intro-selector>button[data-intro][aria-pressed=true]{background:var(--lime);color:#18200d;border-color:var(--lime)}
.intro-arrow{appearance:none;-webkit-appearance:none;display:flex;align-items:center;justify-content:center;padding:0;line-height:1;border-radius:4px}#intro-toggle{border-radius:4px;min-height:44px;line-height:1.4}header,header nav{background:#101512!important}

/* Compact collection cards and edge-to-edge mobile model viewer. */
.model-card{padding:16px;text-align:left;border:0;border-radius:10px;background:#1b271f;gap:0}.model-number{align-self:flex-start}.model-card img{width:100%;height:auto;aspect-ratio:4/3;margin:10px 0;object-fit:contain;border-radius:6px}.model-card[data-model=bomber] img{aspect-ratio:16/9;object-fit:cover}.model-name{min-height:0;font-size:24px;margin:6px 0 12px;align-self:flex-start}.model-open{width:100%;min-height:44px;padding-top:10px;border-top:1px solid #ffffff1c}.model-card:hover{background:#243327}
#model-dialog{border:0;border-radius:14px;padding:0;overflow:hidden;width:min(960px,calc(100vw - 32px));max-height:calc(100dvh - 24px)}#model-dialog .viewer-top{padding:12px 18px}.viewer-top h2{font-size:23px}.viewer-top .eyebrow{font-size:10px}#model-close{border:0;border-radius:50%;background:#ffffff0d;flex:0 0 44px;width:44px;height:44px}#model-close:focus:not(:focus-visible){outline:none}#model-stage{height:min(52dvh,480px);min-height:160px}.viewer-hint{margin:9px 16px;font-size:12px}.viewer-controls{gap:8px;padding:4px 16px 14px}.viewer-controls button{border:0;border-radius:6px;background:#2a3a2d;min-height:44px;font-size:12px;padding:8px 12px}
@media(max-width:620px){.model-grid{gap:14px}.model-card{padding:14px}.model-card img{aspect-ratio:4/3;height:auto;margin:8px 0}.model-card[data-model=bomber] img{aspect-ratio:16/9}.model-card[data-model=quay-briefing] img{aspect-ratio:1.2}.model-name{font-size:22px}.model-number{font-size:12px}#model-dialog{width:100vw;max-width:100vw;border-radius:12px;margin:auto;max-height:calc(100dvh - 16px)}#model-dialog .viewer-top{padding:10px 14px}.viewer-top h2{font-size:20px;margin:4px 0 0}#model-stage{height:40dvh;min-height:180px}.viewer-controls{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));padding:4px 12px 12px;gap:6px}.viewer-controls button{width:100%;font-size:12px;padding:8px 4px}.viewer-controls button[hidden]{display:none}.viewer-hint{font-size:11px;margin:8px 12px}}
@media(max-height:520px){#model-dialog{overflow:auto}#model-stage{height:42dvh;min-height:140px}}

@media(max-width:620px){#model-dialog[data-model=bomber] #model-stage{height:28dvh;min-height:170px}}

.pointer-input .model-card:focus-visible,.pointer-input #model-close:focus-visible{outline:none}

.hero.motion-offscreen,.hero.motion-offscreen *,.hero.motion-offscreen::before,.hero.motion-offscreen::after{animation-play-state:paused!important}

/* v23: clear control states and quiet background during inspection. */
.viewer-controls button[aria-pressed=true]{background:var(--lime);color:#17200d;box-shadow:inset 0 0 0 1px var(--lime)}
.viewer-controls button:focus-visible{outline:2px solid var(--lime);outline-offset:3px}
body.modal-open .hero,body.modal-open .hero *,body.modal-open .hero::before,body.modal-open .hero::after{animation-play-state:paused!important}
@media(prefers-reduced-motion:no-preference){#model-stage>canvas{animation:model-arrive .18s ease-out}@keyframes model-arrive{from{opacity:0}to{opacity:1}}}
@media(max-width:620px){#model-stage{height:40svh}#model-dialog[data-model=bomber] #model-stage{height:28svh}}

/* v24: browse the collection without closing the studio. */
#model-dialog .viewer-top{gap:8px}#model-dialog .viewer-top>div:first-child{flex:1;min-width:0}.model-switch{display:flex;flex:0 0 auto;gap:4px}.model-switch button{display:grid;place-items:center;width:44px;height:44px;padding:0;border:0;border-radius:50%;background:#ffffff0d;color:var(--lime);font:28px/1 system-ui}.model-switch button:hover{background:#344735}.model-switch button:focus-visible{outline:2px solid var(--lime);outline-offset:2px}#model-position{white-space:nowrap;font-variant-numeric:tabular-nums}#model-dialog .viewer-top h2{line-height:1.15}
@media(max-width:380px){#model-dialog .viewer-top{padding-inline:10px;gap:4px}#model-dialog .viewer-top h2{font-size:17px}#model-dialog .viewer-top .eyebrow{font-size:8px}.model-switch{gap:2px}}
@media(max-width:620px){.viewer-controls #pause-model:not([hidden])~#auto-rotate{grid-column:1/-1}}
/* v25: controlled studio contrast for the aircraft's matte surface. */
#model-dialog[data-model=bomber] #model-stage{background:radial-gradient(ellipse at 50% 35%,#263830 0%,#16251e 52%,#0b1510 100%)}
