/* StruXure.co v4 home (three options), on the Kinetech family system. Tokens, drawing kit and chrome come from _shared/;
   hero and option layouts from products.css (p1/p2/p3, not edited); iso drawing styles from _shared/sx-iso.css.
   This file: v3's home sections, plus the hero H1 and the hub map ported from the picked homepage (site/pilot/style.css). */

/* 2. the wedge ------------------------------------------------------------------------ */
.wedge-h { color: #fff; font-weight: 600; font-size: clamp(2rem, 3.4vw, 2.75rem); line-height: 1.12; max-width: 18ch; }
.wedge-g { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 80px); margin-top: clamp(36px, 4.4vw, 60px); align-items: end; }
.wedge-fig { margin: 0; }
.wedge-fig figcaption { margin-top: clamp(28px, 4vw, 52px); color: var(--on-navy); font-size: 15px; }
.sx-tag.big { background: none; border: 0; padding: 0; color: var(--blue); font: 700 clamp(60px, 8.4vw, 124px)/1 var(--display); letter-spacing: -0.03em; }
.wedge-copy h3 { margin: 16px 0 14px; color: #fff; font-size: clamp(1.45rem, 2.3vw, 1.95rem); line-height: 1.18; }
.wedge-links { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 14px; }
.wedge-links .go { margin-top: 0; }

/* 4. management software, figures, case, logos ------------------------------------------ */
.mgmt-head { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: end; }
.mgmt-g { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 24px; margin-top: clamp(32px, 4vw, 48px); }
.sched { padding: 4px 28px; }
.sched .row { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 24px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); }
.sched .row:last-child { border-bottom: 0; }
.fig { color: var(--navy); font: 700 clamp(2.4rem, 3.6vw, 3rem)/1 var(--display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.fig span { color: var(--blue); }
.sched h3 { font-size: 1.25rem; }
.sched p:not(.fig) { margin-top: 4px; color: var(--muted); font-size: 15px; line-height: 1.55; }
.case { display: flex; flex-direction: column; gap: 14px; padding: clamp(26px, 3vw, 36px); background: var(--grid-navy), var(--navy); color: var(--on-navy); border-radius: var(--r-md); box-shadow: var(--shadow); }
.case .kicker { color: var(--cyan-light); }
.case-fig { color: var(--blue); font: 700 clamp(4.6rem, 8.6vw, 7.2rem)/.92 var(--display); letter-spacing: -0.03em; }
.case h3 { color: #fff; font-size: 1.55rem; line-height: 1.2; }
.case .btn { align-self: flex-start; margin-top: auto; background: #fff; border-color: #fff; color: var(--navy); }
.case .btn:hover { background: var(--cyan-light); border-color: var(--cyan-light); }
.logos { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: center; margin-top: clamp(40px, 5vw, 64px); padding-top: 28px; border-top: 1px solid var(--line); }
.logos-h { font-size: 1.3rem; }
.logos ul { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; margin: 0; padding: 0; list-style: none; }
.logos img { width: auto; height: 46px; max-width: 190px; object-fit: contain; filter: grayscale(1) contrast(1.05); opacity: .8; mix-blend-mode: multiply; }

/* 5. built by builders ------------------------------------------------------------------ */
.built-top { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 4vw, 64px); align-items: end; }
.built-h { font-weight: 700; font-size: clamp(2.3rem, 4.4vw, 3.6rem); line-height: 1.05; }
.built-photos { display: grid; grid-template-columns: minmax(0, 1.64fr) minmax(0, 1.39fr); gap: 20px; margin-top: clamp(32px, 4vw, 52px); }
.crew, .legacy { margin: 0; }
.crew .vid { aspect-ratio: 940 / 573; box-shadow: var(--shadow); }
.crew figcaption { margin-top: 10px; color: var(--muted); font-size: 13px; }
.legacy img { width: 100%; aspect-ratio: 1102 / 793; object-fit: cover; border-radius: var(--r-md); box-shadow: var(--shadow); }
.weapon { margin-top: 18px; color: var(--navy); font: 600 1.35rem/1.3 var(--display); }
.built-copy .go { margin-top: 10px; }
.promise { margin-top: clamp(40px, 5vw, 64px); padding-top: clamp(36px, 4.4vw, 56px); border-top: 1px solid var(--line); }
.promise-copy { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.promise-p { font-size: clamp(1.12rem, 1.5vw, 1.3rem); line-height: 1.6; font-weight: 500; color: var(--ink-soft); }
.elevs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; background: #fff; border: 1.5px solid var(--navy); border-radius: 3px; box-shadow: var(--shadow); }
.elevs li { padding: 14px 16px 12px; border-right: 1px solid var(--navy); }
.elevs li:last-child { border-right: 0; }
.elevs figure { margin: 0; }
.elevs figcaption { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); font-size: 13.5px; font-weight: 600; color: var(--navy); }

/* 6. DIRTT and the close ---------------------------------------------------------------- */
.dirtt-g { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.dirtt-v .vid { aspect-ratio: 1200 / 630; box-shadow: var(--shadow); }
.dirtt-copy p { margin-top: 18px; color: var(--ink-soft); }
.close-g { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.close h2 { font-size: clamp(2.2rem, 4vw, 3.25rem); }
.close .lead { margin: 16px 0 28px; max-width: 42ch; }
.close-form { display: grid; gap: 12px; padding: clamp(20px, 3vw, 32px); color: var(--ink); }
.close-form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.close-form label { display: block; }
.close-form .lab { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; }
.close-form input, .close-form textarea { width: 100%; min-height: 48px; padding: 12px 14px; background: #fff; border: 1px solid #C3CAD3; border-radius: var(--r); color: var(--ink); font: 400 15px/1.4 var(--sans); }
.close-form textarea { resize: vertical; }
.close-form ::placeholder { color: var(--muted); opacity: 1; }
.close-form input:focus-visible, .close-form textarea:focus-visible { outline: 2px solid var(--teal-deep); outline-offset: 1px; border-color: var(--teal-deep); }
.close-form .btn { justify-self: start; background: var(--teal-deep); border-color: var(--teal-deep); color: #fff; }
.close-form .btn:hover { background: #026B8F; border-color: #026B8F; }
.close-form .btn:disabled { opacity: .6; cursor: progress; }
.form-msg { padding: 12px 14px; border-radius: var(--r); background: #E8F4EE; color: #165C3A; font-size: 15px; font-weight: 500; }
.form-msg.bad { background: #FBEDEC; color: #9E2A23; }

/* responsive --------------------------------------------------------------------------- */
@media (max-width: 960px) {
  .wedge-g, .mgmt-head, .mgmt-g, .built-top, .promise-copy, .dirtt-g, .close-g { grid-template-columns: minmax(0, 1fr); }
  .logos { grid-template-columns: minmax(0, 1fr); }
  .logos ul { justify-content: flex-start; }
}
@media (max-width: 639px) {
  .v-wide { display: none; }
  .v-narrow { display: block; }
  .sched { padding: 4px 20px; }
  .sched .row { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 20px 0; }
  .elevs li { padding: 10px 8px 8px; }
  .elevs figcaption { font-size: 12.5px; }
  .close-form .two { grid-template-columns: minmax(0, 1fr); }
  .logos img { height: 34px; }
  .built-photos { grid-template-columns: minmax(0, 1fr); }
}

/* ======================================================================================= */
/* v4 (6 Nov): the three options                                                            */
/* ======================================================================================= */

/* hero H1: v3's audience line (never wraps: sized to the longest word, so nothing under the H1 moves) */
.hm-hero .p1-copy, .hm-hero .p2-copy, .hm-hero .p3-copy h1 { container-type: inline-size; }
.hm-hero .h1a { display: block; }
.hm-hero .for { display: block; margin-top: .14em; white-space: nowrap; font-size: min(.62em, 6.9cqi); line-height: 1.15; color: inherit; }
.p2-hero.hm-hero .for { font-size: min(.62em, 4.6cqi); }
.aud { text-decoration: underline; text-decoration-color: var(--blue); text-decoration-thickness: .09em; text-underline-offset: .16em; text-decoration-skip-ink: none; transition: opacity .2s ease-out; }
.aud.swap { opacity: 0; }
.p3-hero.hm-hero .p3-copy h1 { grid-row: 1 / span 2; align-self: end; }
.p3-hero.hm-hero .p3-copy .lead { grid-row: 1; }
.p3-hero.hm-hero .p3-copy .btns { grid-row: 2; align-self: start; }
.p3-hero.hm-hero .btn-line { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.p3-hero.hm-hero .btn-line:hover { background: rgba(255, 255, 255, .1); border-color: #fff; color: #fff; }
@media (min-width: 961px) { .p1-hero.hm-hero .p1-hero-g { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
/* option 1 hero art: the picked homepage's jobsite, unframed, as on site/pilot/home-port.html */
.hm-hero-art { margin: 0 calc(-1 * var(--gut) / 2) 0 0; }
@media (max-width: 960px) { .hm-hero-art { margin: 8px 0 0; } }
.p1-hero.hm-hero .display, .p3-hero.hm-hero .display { font-size: clamp(2.3rem, 4vw, 3.5rem); }
.p2-hero.hm-hero .p2-site { max-width: 1040px; }

/* the wedge on a light band (option 3, where the hero above it is the navy band) */
.wedge-lt .wedge-h, .wedge-lt .wedge-copy h3 { color: var(--navy); }
.wedge-lt .wedge-copy .lead { color: var(--ink-soft); }
.wedge-lt .kicker { color: var(--teal-deep); }
.wedge-lt .go { color: var(--teal-deep); }
.wedge-fig .sx-isofig .sx-tag.big { background: none; box-shadow: none; padding: 0; color: var(--blue); font: 700 clamp(56px, 7.4vw, 108px)/1 var(--display); letter-spacing: -0.03em; }
.wedge-lt .wedge-fig .sx-iso .ground.nv { fill: transparent; }

/* built by builders: the three iso vignettes */
.elevs .sx-isofig { max-width: 260px; margin-inline: auto; }

/* ---- option 1: the hub map (ported from site/pilot/style.css, the picked homepage) ---------- */
.hm-hubs .map-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.hm-hubs .map-head h2 { max-width: 22ch; }
.hub-tabs { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: var(--slate); border-radius: var(--r-md); }
.hub-tabs button { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; border: 0; background: transparent; border-radius: 6px; padding: 12px 16px; font: 600 15px/1.2 var(--sans); color: var(--ink-soft); cursor: pointer; transition: background-color .18s, color .18s, box-shadow .18s, transform .12s; }
.hub-tabs button:active { transform: scale(.97); }
.hub-tabs button[aria-selected="true"] { background: #fff; color: var(--navy); box-shadow: 0 1px 2px rgba(16, 45, 123, .08), 0 4px 14px -6px rgba(0, 121, 171, .35); }
.hub-tabs button:focus-visible { outline-offset: -2px; }
@media (hover: hover) and (pointer: fine) { .hub-tabs button:hover { color: var(--navy); } }
.tab-swatch { width: 10px; height: 10px; border-radius: 3px; border: 1.5px solid var(--teal-deep); transition: background-color .18s; }
.hub-tabs button[aria-selected="true"] .tab-swatch { background: var(--blue); border-color: var(--blue); }
.map-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; align-items: start; padding-top: 32px; }
.map { position: relative; margin: 0; }
.map .sx-iso .zone { transition: opacity .28s ease; cursor: pointer; }
.map[data-active] .sx-iso .zone:not(.is-active) { opacity: .62; }
.map .sx-iso .zone.is-active .zfloor { fill: rgba(179, 227, 246, .55); }
.map .sx-iso .zone.is-hover:not(.is-active) .zfloor { fill: rgba(179, 227, 246, .3); }
.map .sx-iso .zone.is-hover { opacity: 1; }
.map-labels, .map-pins { position: absolute; inset: 0; pointer-events: none; }
.mlabel { position: absolute; transform: translate(-50%, -50%); white-space: nowrap; font: 600 12px/1 var(--sans); color: var(--ink-soft); background: #fff; padding: 6px 8px; border-radius: 6px; box-shadow: 0 0 0 1px var(--line); transition: background-color .2s, color .2s; }
.mlabel.is-active { color: #fff; background: var(--navy); box-shadow: none; }
.pin { position: absolute; transform: translate(-50%, -50%); pointer-events: auto; width: 28px; height: 28px; padding: 0; border-radius: 50%; border: 2px solid #fff; background: var(--navy); color: #fff; font: 700 12px/1 var(--sans); display: grid; place-items: center; cursor: pointer; box-shadow: 0 2px 8px rgba(16, 45, 123, .3); transition: background-color .2s; }
.pin::after { content: ''; position: absolute; inset: -9px; border-radius: 50%; }
.pin:active { transform: translate(-50%, -50%) scale(.92); }
.pin.is-on { background: var(--blue); color: var(--navy); }
.map[data-active] .pin:not(.in-zone) { background: #5b6f7b; }
@media (hover: hover) and (pointer: fine) { .pin:hover { background: var(--teal-deep); } }
.pin .pop { position: absolute; left: 50%; bottom: calc(100% + 10px); transform: translate(-50%, 4px); background: var(--navy); color: #fff; font: 600 12px/1.2 var(--sans); padding: 8px 12px; border-radius: 6px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .16s ease, transform .16s var(--ease); }
.pin .pop::after { content: ''; position: absolute; left: 50%; top: 100%; margin-left: -5px; border: 5px solid transparent; border-top-color: var(--navy); }
@media (hover: hover) and (pointer: fine) { .pin:hover .pop { opacity: 1; transform: translate(-50%, 0); } }
.pin:focus-visible { outline: 2px solid var(--teal-deep); outline-offset: 2px; }
.pin:focus-visible .pop { opacity: 1; transform: translate(-50%, 0); }
.hub-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 32px; box-shadow: var(--shadow); }
.hub-panel[hidden] { display: none; }
.hub-panel.enter { animation: hub-in .26s var(--ease); }
@keyframes hub-in { from { opacity: 0; transform: translateY(6px); } }
.hub-panel h3 { font-size: 1.6rem; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.hm-refs { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
.hm-refs a { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 8px 12px; border-radius: var(--r); background: var(--tint); color: var(--navy); font-weight: 600; font-size: 15px; transition: background-color .2s; }
.hm-refs a:hover { background: var(--slate); text-decoration: none; }
.hm-refs a.flash { background: var(--cyan-light); }
.hm-refs b { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--navy); color: #fff; font: 700 12px/24px var(--sans); text-align: center; }
.note { padding: 12px 0; border-bottom: 1px solid var(--line); }
.note h4 { font: 600 15.5px/1.35 var(--sans); color: var(--ink); letter-spacing: 0; }
.note p { margin-top: 4px; color: var(--muted); font-size: 15px; line-height: 1.55; }
.refs { display: flex; flex-direction: column; padding: 8px 0 0; }
.refs .go { justify-content: space-between; min-height: 44px; border-bottom: 1px dashed var(--line); }

/* ---- option 2 / 3: hub sections ----------------------------------------------------------- */
.hm-hubs2-h, .hm-hubs3-h { max-width: 22ch; margin-bottom: 48px; }
.hm-hubs2 .p2-txt .h3, .hm-hubs3 .p3-feat .h3 { margin-bottom: 8px; }
.hm-hubs2 .refs { max-width: 420px; }
.hm-hubs3 .p3-feat { padding-bottom: 64px; }

@media (max-width: 1080px) {
  .map-grid { grid-template-columns: minmax(0, 1fr); }
  .hub-panels { max-width: 640px; }
}
@media (max-width: 900px) {
  .hm-hubs2-h, .hm-hubs3-h { margin-bottom: 32px; }
  .hub-panel { padding: 24px; }
}
@media (max-width: 639px) {
  .hub-tabs { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
  .hub-tabs button { justify-content: flex-start; text-align: left; font-size: 14px; padding: 12px; }
  .map-labels { display: none; }
  .pin { width: 24px; height: 24px; font-size: 12px; }
  .pin .pop { display: none; }
  .hm-hero .for { font-size: min(.62em, 7.4cqi); }
  .p2-hero.hm-hero .for { font-size: min(.62em, 7.4cqi); }
}

/* 7 Nov, scheme 1 pass (Max) ------------------------------------------------------------ */
/* the wedge: the drawing sits beside the heading so the space right of it is filled (all three options) */
@media (min-width: 961px) {
  .wedge .w { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: clamp(32px, 5vw, 80px); align-items: start; }
  .wedge .wedge-g { display: contents; }
  .wedge .wedge-h { grid-column: 1; grid-row: 1; max-width: 16ch; }
  .wedge .wedge-copy { grid-column: 1; grid-row: 2; margin-top: clamp(28px, 3vw, 44px); }
  .wedge .wedge-fig { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
}
/* the three slices of the old block come off one after another as the 75% counts up (home.js); final state by default */
.wd-cut { opacity: 0; }
.js:not(.rm) .wedge-fig:not(.play) .wd-cut { opacity: 1; }
.js:not(.rm) .wedge-fig.play .wd-cut { animation: wd-off .62s cubic-bezier(.23, 1, .32, 1) both; }
.js:not(.rm) .wedge-fig.play .wd-c1 { animation-delay: 1300ms; }
.js:not(.rm) .wedge-fig.play .wd-c2 { animation-delay: 1900ms; }
.js:not(.rm) .wedge-fig.play .wd-c3 { animation-delay: 2500ms; }
@keyframes wd-off { from { opacity: 1; transform: none; } to { opacity: 0; transform: translate(10px, -16px); } }
.wedge-fig .sx-tag.wd-n { font-variant-numeric: tabular-nums; }

/* the figures count up when they come into view (home.js); a bar under each fills with the count */
.sched .fig { position: relative; padding-bottom: 14px; font-variant-numeric: tabular-nums; }
.sched .fig::after { content: ''; position: absolute; left: 0; bottom: 0; width: min(100%, 160px); height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--blue), var(--teal-deep, #0a6f8f)); transform-origin: left center; }
.js:not(.rm) .sched:not(.counted) .fig::after { transform: scaleX(0); }
.js:not(.rm) .sched.counted .fig::after { transform: scaleX(1); transition: transform 1.6s cubic-bezier(.23, 1, .32, 1); }
.case-fig { font-variant-numeric: tabular-nums; }

/* "You built America..." is a section heading like the others (Max: "same size"), so the gap beside it closes */
.built-h { font-size: clamp(2rem, 3.4vw, 2.75rem); line-height: 1.12; }
.built-top { align-items: center; }
/* the three elevations are tall boxes: the drawing, then the name and a one-line description (Max, 7 Nov) */
.elevs li { display: flex; flex-direction: column; padding: 18px 18px 16px; }
.elevs figure { display: flex; flex-direction: column; height: 100%; }
.elevs figure > :first-child { flex: 1; display: grid; align-items: end; min-height: 180px; }
.elevs figcaption { display: grid; gap: 3px; margin-top: 12px; padding-top: 10px; }
.elevs figcaption b { font: 700 15px/1.2 var(--display, var(--sans)); color: var(--navy); }
.elevs figcaption span { font: 500 13px/1.4 var(--sans); color: var(--ink-soft); }
@media (max-width: 640px) {
  .elevs { grid-template-columns: minmax(0, 1fr); }
  .elevs li { border-right: 0; border-bottom: 1px solid var(--navy); padding: 12px 14px; }
  .elevs li:last-child { border-bottom: 0; }
  .elevs figure { flex-direction: row; align-items: center; gap: 14px; }
  .elevs figure > :first-child { flex: 0 0 42%; min-height: 0; }
  .elevs figcaption { margin: 0; padding: 0 0 0 14px; border-top: 0; border-left: 1px solid var(--line); }
  .elevs figcaption b { font-size: 14px; }
  .elevs figcaption span { font-size: 12.5px; }
}
/* 7 Nov (Max: "the 75 overlaps"): the 75% sits clear above the dimension line; the figure makes room for it on top */
.wedge-fig { padding-top: clamp(44px, 6.4vw, 96px); }

/* links inside running text carry an underline, not colour alone (QA, 9 Nov) */
.promise-p a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
