/* Modal Diagnostics coming soon page.
   Tokens and fonts from brand/master/03_design_tokens/modal-brand.css.
   The hero artwork is the locked master JPEG: whole image, contain sizing, never cropped. */

@font-face { font-family: 'Instrument Sans'; src: url('assets/fonts/InstrumentSans-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Instrument Sans'; src: url('assets/fonts/InstrumentSans-Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'IBM Plex Mono'; src: url('assets/fonts/IBMPlexMono-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }

:root {
  --md-navy: #001027; --md-matte: #0C1622; --md-blue: #009FF5;
  --md-action: #005A9C; --md-white: #FFFFFF; --md-silver: #E5EBF0;
  --md-ice: #F3F7FA; --md-body: #405368; --md-line: #D7E1E9;
  --md-font: 'Instrument Sans', Arial, sans-serif;
  --md-mono: 'IBM Plex Mono', monospace;
  --md-radius: 4px;
  --gutter: 24px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: var(--header-h); }
body {
  margin: 0; background: var(--md-white); color: var(--md-body);
  font-family: var(--md-font); font-size: 16px; line-height: 24px;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul { margin: 0; padding: 0; }
ul { list-style: none; }
a { color: var(--md-action); }
:focus-visible { outline: 3px solid var(--md-action); outline-offset: 4px; border-radius: 2px; }
.hero :focus-visible, .site-footer :focus-visible { outline-color: var(--md-blue); }

.wrap { max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }

.skip { position: absolute; left: 8px; top: 8px; transform: translateY(-200%); background: var(--md-white); color: var(--md-navy); padding: 8px 16px; border-radius: var(--md-radius); z-index: 10; }
.skip:focus { transform: none; }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Header: company name as live text, simple navigation */
.site-header { position: sticky; top: 0; z-index: 5; background: var(--md-white); border-bottom: 1px solid var(--md-line); }
.header-row { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 24px; }
.brand-name { font-weight: 700; font-size: 20px; line-height: 24px; letter-spacing: -0.01em; color: var(--md-navy); text-decoration: none; }
.nav-list { display: flex; gap: 32px; }
.nav-list a { color: var(--md-body); text-decoration: none; font-size: 14px; padding-block: 12px; display: inline-block; }
.nav-list a:hover { color: var(--md-navy); text-decoration: underline; text-underline-offset: 6px; }

/* Short technical labels */
.label { font-family: var(--md-mono); font-size: 12px; line-height: 16px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--md-action); }
.label-on-dark { color: var(--md-blue); }

/* Hero: dark field matching the master's own surround */
.hero { background: var(--md-matte); color: var(--md-white); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 48px; min-height: calc(100dvh - var(--header-h)); padding-block: 64px; }
.hero h1 { font-size: 56px; line-height: 60px; font-weight: 700; letter-spacing: -0.02em; margin-top: 40px; max-width: 12ch; text-wrap: balance; }
.tagline { font-size: 18px; line-height: 28px; color: var(--md-silver); margin-top: 24px; }
.hero .md-button { margin-top: 32px; }
/* At least 10% clear space around the placed artwork */
.hero-art-frame { padding: 10%; max-width: 560px; width: 100%; justify-self: center; }
.md-hero-art { display: block; width: 100%; height: auto; object-fit: contain; }

.md-button {
  display: inline-block; background: var(--md-action); color: var(--md-white);
  font: 700 16px/24px var(--md-font); text-decoration: none;
  padding: 12px 24px; border: 0; border-radius: var(--md-radius); cursor: pointer;
  transition: background-color 150ms ease, transform 100ms ease;
}
.md-button:hover { background: #006BB8; }
.md-button:active { transform: translateY(1px); }
.md-button:focus-visible { outline: 3px solid var(--md-action); outline-offset: 4px; border-radius: 2px; }
.hero :focus-visible, .site-footer :focus-visible { outline-color: var(--md-blue); }

/* Two doors */
.doors { padding-block: 64px 96px; }
.lead { font-size: 24px; line-height: 34px; font-weight: 400; color: var(--md-navy); max-width: 44ch; text-wrap: pretty; }
.door-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: 64px; border-top: 1px solid var(--md-line); }
.door { padding: 32px 48px 0 0; }
.door + .door { padding: 32px 0 0 48px; border-left: 1px solid var(--md-line); }
.door h2 { font-size: 32px; line-height: 38px; font-weight: 700; letter-spacing: -0.01em; color: var(--md-navy); margin-top: 16px; max-width: 16ch; text-wrap: balance; }
.door p:not(.label) { margin-top: 16px; max-width: 46ch; }
.text-link { display: inline-block; margin-top: 24px; padding-block: 10px; font-weight: 700; color: var(--md-action); text-underline-offset: 6px; }
.text-link:hover { color: var(--md-navy); }

/* Contact: form shown but not open yet */
.contact { background: var(--md-ice); padding-block: 96px; border-top: 1px solid var(--md-line); min-height: calc(100dvh - var(--header-h)); display: grid; align-content: center; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 64px; align-items: start; }
.contact h2 { font-size: 32px; line-height: 38px; font-weight: 700; letter-spacing: -0.01em; color: var(--md-navy); margin-top: 16px; }
.notice { margin-top: 24px; font-weight: 700; color: var(--md-navy); }
.notice + p { margin-top: 8px; }
.contact-form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 16px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 14px; line-height: 20px; color: var(--md-navy); }
.field input, .field select, .field textarea {
  width: 100%; font: 400 16px/24px var(--md-font); color: var(--md-navy);
  background: var(--md-white); border: 1px solid var(--md-line); border-radius: var(--md-radius);
  padding: 12px; min-height: 48px;
}
.contact-form fieldset:disabled .field label { color: var(--md-body); }
.contact-form fieldset:disabled input,
.contact-form fieldset:disabled select,
.contact-form fieldset:disabled textarea { background: var(--md-silver); cursor: not-allowed; opacity: 1; }
.contact-form fieldset:disabled .md-button { background: var(--md-body); cursor: not-allowed; justify-self: start; }

.site-footer { background: var(--md-navy); color: var(--md-white); padding-block: 32px; }
.footer-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.site-footer .brand-name { color: var(--md-white); font-size: 16px; }
.site-footer .label { color: var(--md-silver); }

/* Tablet and phone: copy stacks above the image */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 16px; align-content: center; padding-block: 48px 32px; }
  .hero h1 { font-size: 40px; line-height: 44px; margin-top: 24px; }
  .hero-art-frame { max-width: 420px; }
  .doors, .contact { padding-block: 64px; }
  .lead { font-size: 20px; line-height: 30px; }
  .door-grid { grid-template-columns: 1fr; margin-top: 40px; }
  .door, .door + .door { padding: 32px 0; border-left: 0; }
  .door + .door { border-top: 1px solid var(--md-line); padding-bottom: 0; }
  .door h2, .contact h2 { font-size: 28px; line-height: 34px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 560px) {
  :root { --gutter: 20px; --header-h: 64px; }
  .nav-optional { display: none; }
  .hero .md-button { display: block; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .md-button { transition: none; }
}
.text-link:focus-visible { outline-color: var(--md-navy); }
.doors > .wrap, .contact > .wrap { width: 100%; }
