/* StruXure.co v3 tokens, base and components, on the Kinetech family system (6 Nov 2026).
   Family source: kinetech-scheme-lab-20261028/site/home/opt-1-the-map/style.css :root and base rules, the set the
   Kinetech home, manufacturing and PSN pages share (Jost 600 headings in #102d7b, Montserrat body 16/1.65,
   teal-deep buttons and links, mist and slate grounds, white cards with the family shadow, 96px sections, 1180 wrap).
   StruXure keeps its own: the plan-sheet drawings and title blocks, stamps, the drafting grid on navy bands,
   and #00A1E0 as the drafting line and accent.
   Load order on a page: sx-tokens.css, sx-draw.css, sx-chrome.css, then the page's own css.
   Fonts: Jost 500/600/700 and Montserrat 400/500/600/700 from Google Fonts (see _shared/README.md). */

:root {
  /* family colours (identical to Kinetech home, mfg and PSN) */
  --navy: #102D7B;        /* headings, full-width bands, drawing frames and poche */
  --teal-deep: #027AA2;   /* buttons, links, anything blue a reader must read */
  --teal-mid: #0391BF;
  --cyan-light: #B3E8F7;  /* light text and kickers on navy */
  --ink: #21242C;         /* body text, drawing line */
  --ink-soft: #2C3E47;    /* lede and secondary text */
  --muted: #4F5F69;       /* captions (family --ink-mute) */
  --slate: #EEF8FB;       /* tab rails, hovered rows */
  --tint: #F2FAFC;        /* mist: alternate section ground, header */
  --line: #D1D6DC;        /* hairlines, form-field borders (Phase B divider grey) */
  --white: #FFFFFF;
  --on-navy: #D5E6F4;     /* body text on navy */
  --on-navy-kicker: var(--cyan-light);

  /* StruXure's own: the drafting line and accent */
  --blue: #00A1E0;
  --blue-deep: var(--teal-deep);  /* old name, kept so page css written for v3 still resolves */
  --navy-deep: #0C2462;   /* the App Store bar only */
  /* status: only ever a document state (stamp, chip, pin) */
  --green: #1E7D4F;
  --amber: #B07A1E;
  --amber-bright: #E6A700;
  --red: #C8362E;

  --display: 'Jost', 'Futura PT', 'Century Gothic', sans-serif;
  --sans: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font: var(--sans);
  --r: 8px;               /* buttons, inputs */
  --r-md: 8px;            /* cards, panels, forms, inputs, video, photos (Phase B shapes, 6 Nov 2026) */
  --r-card: 8px;
  --r-lg: 8px;
  --shadow: 0 1px 2px rgba(16, 45, 123, .04), 0 8px 30px -12px rgba(2, 122, 162, .18);
  --w: 1180px;
  --gut: 40px;
  --sec: 96px;
  --ease: cubic-bezier(.23, 1, .32, 1);
  --ease-out: var(--ease);
  /* faint drafting grid: StruXure's mark on a navy band, and on the hero's paper */
  --grid-navy: linear-gradient(rgba(0, 161, 224, .13) 1px, transparent 1px) 0 0 / 32px 32px,
               linear-gradient(90deg, rgba(0, 161, 224, .13) 1px, transparent 1px) 0 0 / 32px 32px;
  --grid-paper: linear-gradient(rgba(2, 122, 162, .05) 1px, transparent 1px) 0 0 / 24px 24px,
                linear-gradient(90deg, rgba(2, 122, 162, .05) 1px, transparent 1px) 0 0 / 24px 24px;
}
@media (max-width: 900px) { :root { --gut: 20px; --sec: 64px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 16px/1.65 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--teal-deep); text-decoration: none; text-underline-offset: 3px; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-weight: 600; color: var(--navy); letter-spacing: -0.02em; line-height: 1.08; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--teal-deep); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 12px; }

/* layout */
.w { width: min(100% - 2 * var(--gut), var(--w)); margin-inline: auto; }
.sec { padding-block: var(--sec); }
.sec-tint { background: var(--tint); }
.sec-navy, .sec-deep { background: var(--grid-navy), var(--navy); color: var(--on-navy); }
.sec-navy h2, .sec-navy h3, .sec-deep h2, .sec-deep h3 { color: #fff; }

/* type: the family scale */
.display { font-family: var(--display); font-weight: 700; font-size: clamp(2.6rem, 5.4vw, 4.5rem); line-height: 1.02; letter-spacing: -0.02em; }
.h2 { font-size: clamp(2rem, 3.4vw, 2.75rem); }
.h3 { font-size: clamp(1.3rem, 1.8vw, 1.6rem); }
.lead { font-size: 1.125rem; line-height: 1.6; color: var(--ink-soft); }
.sec-navy .lead, .sec-deep .lead { color: var(--on-navy); }
.muted { color: var(--muted); }
/* kicker: StruXure canon's 30x2 drafting rule before a sentence-case label (no caps labels, 12px floor) */
.kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; color: var(--teal-deep); }
.kicker::before { content: ''; width: 30px; height: 2px; background: var(--blue); flex: none; }
.sec-navy .kicker, .sec-deep .kicker { color: var(--cyan-light); }
.sec-navy .kicker::before, .sec-deep .kicker::before { background: var(--blue); }

/* buttons: family Phase B (48px, 8px corners, 14px 24px, 15px/600) */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 14px 24px; border-radius: var(--r); border: 1px solid var(--teal-deep); background: var(--teal-deep); color: #fff; font: 600 15px/1.2 var(--sans); text-decoration: none; cursor: pointer; transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .16s var(--ease); }
.btn:hover { background: #026B8F; border-color: #026B8F; text-decoration: none; }
.btn:active { transform: scale(.97); }
.btn-line { background: transparent; color: var(--teal-deep); }
.btn-line:hover { background: var(--slate); color: var(--teal-deep); border-color: var(--teal-deep); }
.sec-navy .btn, .sec-deep .btn { background: #fff; border-color: #fff; color: var(--navy); }
.sec-navy .btn:hover, .sec-deep .btn:hover { background: var(--cyan-light); border-color: var(--cyan-light); }
.sec-navy .btn-line, .sec-deep .btn-line { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.sec-navy .btn-line:hover, .sec-deep .btn-line:hover { background: rgba(255, 255, 255, .1); }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
/* arrow link: the family chevron */
.go { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; font-size: 15px; color: var(--teal-deep); white-space: nowrap; }
.go::after { content: ''; width: 7px; height: 7px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); transition: transform .18s var(--ease); flex: none; }
.go:hover { text-decoration: none; }
.go:hover::after { transform: translateX(3px) rotate(45deg); }
.sec-navy .go, .sec-deep .go { color: var(--cyan-light); }

/* card: the family white card */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow); }

/* reveal once (armed only with JS and full motion; see sx-draw.js) */
.js:not(.rm) [data-rv] { opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.js:not(.rm) [data-rv].in { opacity: 1; transform: none; }
.js:not(.rm) [data-rv]:not(.in) { animation: sx-failsafe 0s 4s forwards; }
@keyframes sx-failsafe { to { opacity: 1; transform: none; } }

/* video facade: an image with a play button that loads the YouTube player on click */
.vid { position: relative; display: block; width: 100%; padding: 0; border: 0; background: var(--navy); cursor: pointer; overflow: hidden; border-radius: var(--r-md); }
.vid img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.vid:hover img { transform: scale(1.02); }
.vid .play { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%; background: var(--teal-deep); display: grid; place-items: center; transition: background-color .18s, transform .18s var(--ease); }
.vid:hover .play { background: var(--navy); transform: scale(1.05); }
.vid .play::before { content: ''; border-left: 20px solid #fff; border-top: 12px solid transparent; border-bottom: 12px solid transparent; margin-left: 5px; }
.vid iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* closing call to action as the family does it (6 Nov brand compare): a navy panel inside the 1180 wrap,
   not a full-bleed band. The drafting grid stays on the panel as StruXure's texture. */
.sec-navy.close, .sec-navy.p-close { background: #fff; }
.sec-navy.close > .w, .sec-navy.p-close > .w { background: var(--grid-navy), var(--navy); color: var(--on-navy); border-radius: var(--r-lg); padding: 48px; overflow: hidden; }
.sec-navy.close h2, .sec-navy.p-close h2 { font-size: clamp(2rem, 3.4vw, 2.75rem); }
@media (max-width: 900px) { .sec-navy.close > .w, .sec-navy.p-close > .w { padding: 32px 24px; } }
