/* Reference set (31.10): OneTech frame and orange form, Biograph hero facts, Flexis menu, Linear timeline, Valmont cards.
   One shared language: mono uppercase labels, 1px lines, orange as the only accent. */
:root { --mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace; }

.eyebrow { font: 500 12px/1.4 var(--mono); letter-spacing: 0.16em; }
.eyebrow::before { border-radius: 0; width: 6px; height: 6px; background: var(--c-accent); }

/* ---------- Header: full-screen menu ---------- */
.header__menu { gap: 10px; padding: 0 20px 0 18px; border: 0; cursor: pointer; font: 500 13px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; }
.header__menu i { position: relative; width: 14px; height: 8px; border-block: 1.5px solid currentColor; transition: transform var(--dur-fast) var(--ease-out); }
.header.is-mega { z-index: 60; }
.mega {
  position: fixed; inset: 0; z-index: -1; display: grid; grid-template-columns: 1fr 1fr;
  background: #0d0d0e; color: #fff; animation: megaIn 0.35s var(--ease-out);
}
.mega[hidden] { display: none; }
@keyframes megaIn { from { opacity: 0; } to { opacity: 1; } }
/* Left half: the hovered section's photo at full height, opening downward like a curtain */
.mega__pics { position: relative; overflow: hidden; border-right: 1px solid rgba(255, 255, 255, 0.1); animation: megaCurtain 0.9s var(--ease-out) both; }
@keyframes megaCurtain { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0); } }
.mega__pics::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 8, 9, 0.45), rgba(8, 8, 9, 0) 30%, rgba(8, 8, 9, 0) 70%, rgba(8, 8, 9, 0.35)); }
.header .mega__pics img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.08); filter: saturate(0.9); transition: opacity 0.6s, transform 1.6s var(--ease-out); }
.header .mega__pics img.is-on { opacity: 1; transform: none; }
/* Right half: big list, then contacts, the two actions and a mono foot line */
.mega__side { position: relative; display: flex; flex-direction: column; justify-content: center; gap: clamp(28px, 4vh, 44px); padding: 110px clamp(40px, 8vw, 150px) 80px clamp(40px, 12.5vw, 180px); }
.mega__list { display: grid; justify-items: start; }
.mega__list a { display: block; overflow: hidden; padding-block: 0.04em; font-size: clamp(2.6rem, 1.4rem + 2.6vw, 4.4rem); font-weight: 500; letter-spacing: -0.035em; line-height: 1.04; transition: opacity 0.3s, color 0.3s; }
.mega__list a span { display: block; animation: megaLine 0.8s var(--ease-out) both; animation-delay: calc(0.18s + var(--i) * 0.05s); }
@keyframes megaLine { from { transform: translateY(105%); } to { transform: none; } }
.mega__list:hover a { opacity: 0.35; }
.mega__list a:hover { opacity: 1; }
.mega__list a[aria-current] { color: var(--c-accent); }
.mega__contact, .mega__actions, .mega__foot { animation: megaFade 0.6s var(--ease-out) 0.5s both; }
@keyframes megaFade { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.mega__contact { display: grid; gap: 6px; font: 500 13px/1.5 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255, 255, 255, 0.72); }
.mega__contact a:hover { color: var(--c-accent); }
.mega__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.mega__cabinet::before { content: ''; width: 7px; height: 7px; margin-right: 10px; border-radius: 50%; background: var(--c-accent); }
.mega__foot { position: absolute; left: 14px; right: 18px; bottom: 14px; display: flex; justify-content: space-between; font: 500 12px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255, 255, 255, 0.4); animation-delay: 0.6s; }
/* While open, the header keeps only the logo and the close button; the bar's own links would repeat the list */
.header .header__nav, .header .header__cabinet, .header [data-header-cta] { transition: opacity 0.3s; }
.header.is-mega .header__nav, .header.is-mega .header__cabinet, .header.is-mega [data-header-cta] { opacity: 0; pointer-events: none; }
.header.is-mega .header__menu i { transform: rotate(45deg); height: 0; border-bottom: 0; }
.header.is-mega .header__menu i::after { content: ''; position: absolute; left: 0; right: 0; top: -1.5px; border-top: 1.5px solid currentColor; transform: rotate(90deg); }
html.is-locked { overflow: hidden; }
@media (max-width: 1240px) { .header__menu, .mega { display: none !important; } }

/* ---------- Page hero facts (Biograph) ---------- */
.phero__facts { position: absolute; z-index: 2; right: max(var(--gutter), calc((100% - var(--container)) / 2)); bottom: clamp(48px, 8vh, 90px); display: grid; width: 300px; margin: 0; border-top: 1px solid rgba(255, 255, 255, 0.28); color: #fff; }
.phero__facts div { display: grid; gap: 4px; padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.18); }
.phero__facts dt { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.phero__facts dt::before { content: ''; display: inline-block; width: 6px; height: 6px; margin: 0 10px 4px 0; background: var(--c-accent); }
.phero__facts dd { margin: 0; font: 400 12px/1.45 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255, 255, 255, 0.72); }
.phero:has(.phero__facts) .phero__pic { display: none; }
.phero:has(.phero__facts) .phero__copy { max-width: calc(100% - 360px); }

/* ---------- Approach: shared text styles (layout in refs2.css) ---------- */
.appr { padding: var(--section-y) var(--gutter); }
.appr__title { padding: clamp(36px, 5vw, 64px); border-bottom: 1px solid rgba(255, 106, 0, 0.55); font-size: var(--fs-h1); line-height: 1.04; letter-spacing: -0.035em; color: var(--c-accent); }
.appr__tag { font: 500 12px/1.4 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--c-muted); }
.appr__h { margin-top: 18px; font-size: var(--fs-h3); line-height: 1.1; letter-spacing: -0.025em; }
.appr__text { margin-top: 14px; max-width: 460px; font-size: 17px; line-height: 1.55; color: var(--c-ink-2); }
.appr__list { margin: 32px 0 36px; border-top: 1px solid var(--c-line); }
.appr__list li { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--c-line); font-size: 16px; }
.appr__list li::before { content: ''; flex: none; width: 6px; height: 6px; background: var(--c-accent); }
.appr__go { margin-top: auto; align-self: flex-start; font: 500 13px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--c-accent); }
.appr__go span { display: inline-block; transition: transform var(--dur-fast) var(--ease-out); }
.appr__go:hover span { transform: translateX(6px); }

/* ---------- Steps: thin rail with dots that light up (Linear) ---------- */
.steps__rail { left: 5px; width: 1px; }
.step { grid-template-columns: 12px 64px 260px 1fr; gap: 0 32px; border-bottom: 0; padding: 30px 0; }
.step::before { content: ''; position: relative; z-index: 1; width: 11px; height: 11px; margin-top: 16px; border-radius: 50%; background: var(--c-paper); box-shadow: inset 0 0 0 1px var(--c-faint); transition: background-color 0.3s, box-shadow 0.3s; }
.step.is-on::before { background: var(--c-accent); box-shadow: 0 0 0 5px rgba(255, 106, 0, 0.18), 0 0 18px var(--c-accent); }
.step__n { width: auto; height: auto; display: block; padding-top: 14px; border: 0; background: none; color: var(--c-faint); font: 500 13px/1 var(--mono); letter-spacing: 0.14em; transition: color 0.3s; }
.step.is-on .step__n { color: var(--c-accent); }
.step__dl dt { font-family: var(--mono); letter-spacing: 0.14em; }
@media (min-width: 961px) {
  .steps--short .steps__list { grid-auto-flow: column; grid-auto-columns: 1fr; gap: 32px; }
  .steps--short .steps__rail { left: 0; right: 0; top: 5px; bottom: auto; width: auto; height: 1px; }
  .steps--short .steps__rail i { transform-origin: left; }
  .steps--short .step { grid-template-columns: auto 1fr; grid-template-rows: auto auto auto; align-content: start; gap: 0 14px; padding: 0; }
  .steps--short .step::before { margin-top: 0; grid-row: 1; }
  .steps--short .step__n { padding-top: 0; grid-row: 1; grid-column: 2; align-self: center; }
  .steps--short .step__t { grid-column: 1 / -1; padding-top: 28px; }
  .steps--short .step__p { grid-column: 1 / -1; font-size: 16px; }
}

/* ---------- FAQ: title and call on the left, answers on the right ---------- */
.faq { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); gap: 60px; max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; }
.faq__side { position: sticky; top: 120px; align-self: start; }
.faq__title { margin: 0; font-size: var(--fs-h2); }
.faq__ask { margin-top: 28px; max-width: 300px; font: 400 12px/1.6 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-muted); }
.faq__ask a { display: block; margin-top: 12px; font: 600 24px/1.2 var(--font); letter-spacing: -0.01em; text-transform: none; color: #fff; }
.faq__ask a:hover { color: var(--c-accent); }
.faq__list { width: 100%; margin: 0; }
.faq__icon { width: 24px; height: 24px; background: none; }
.faq__item[open] .faq__icon { background: none; color: var(--c-accent); }
.faq__a { padding-right: 40px; }

/* ---------- Lead: one solid orange moment per page (OneTech form) ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 60px; align-items: start; justify-items: stretch; max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; }
.contact__side { position: sticky; top: 120px; }
.contact__title, .contact__text { text-align: left; }
.contact__title { font-size: var(--fs-h2); }
.contact__alt { display: grid; gap: 8px; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--c-line); font: 400 12px/1.4 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; }
.contact__alt a { font: 600 clamp(1.8rem, 1.2rem + 1.4vw, 2.6rem)/1.1 var(--font); letter-spacing: -0.02em; text-transform: none; color: #fff; }
.contact__alt a:hover { color: var(--c-accent); }
.form { margin: 0; max-width: none; padding: clamp(32px, 4vw, 52px); background: var(--c-accent); color: #0b0b0b; column-gap: 28px; }
.form .field input { color: #0b0b0b; border-color: rgba(11, 11, 11, 0.35); }
.form .field input:focus { border-color: #0b0b0b; }
.form .field input::placeholder { color: rgba(11, 11, 11, 0.62); font-family: var(--mono); font-size: 13px; letter-spacing: 0.12em; }
.form .field__dot { background: #0b0b0b; opacity: 0.5; }
.form .field__error, .form .consent .field__error { color: #3a0d00; font-weight: 600; }
.form .field input[aria-invalid='true'] { border-color: #3a0d00; border-bottom-width: 2px; }
.form .consent { color: rgba(11, 11, 11, 0.75); }
.form .consent input { accent-color: #0b0b0b; }
.form .form__submit { justify-self: stretch; height: 56px; margin-top: 18px; border-radius: 0; background: #0b0b0b; color: #fff; font: 500 13px/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; }
.form .form__submit:hover { background: #222; }
.form .form__status, .form.is-sent .form__status { color: #0b0b0b; text-align: left; }

/* ---------- Footer: photo inside a giant wordmark ---------- */
.footer { grid-template-rows: auto 1fr auto auto auto auto; }
.footer__mark {
  grid-row: 4; margin: 56px 0 0; text-align: center; line-height: 0.8;
  font-size: 14.2vw; font-weight: 800; letter-spacing: -0.055em; white-space: nowrap;
  /* Photo colour (saturate 1.15, contrast 1.05) is baked into camp-hero-mark.jpg: a filter here was redrawn on every scroll frame. */
  background-size: cover; background-position: 50% 0%; -webkit-background-clip: text; background-clip: text; color: transparent;
}
.footer__base { grid-row: 5; margin-top: 28px; }
.footer__credits { grid-row: 6; }

/* ---------- Equipment cards: tall photos with text on top (Valmont) ---------- */
.ecard a { min-height: 600px; padding: 32px; justify-content: flex-start; background: #000; isolation: isolate; }
.ecard__pic { position: absolute; inset: 0; z-index: -1; margin: 0; height: auto; min-height: 0; -webkit-mask-image: none; mask-image: none; }
.ecard__pic::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.25) 45%, rgba(0, 0, 0, 0.7) 100%); }
.ecard__pic img { transition: transform 1.2s var(--ease-out); }
.ecard a:hover .ecard__pic img { transform: scale(1.07); }
.ecard__p { color: rgba(255, 255, 255, 0.78); }
.ecard__go { position: static; margin-top: auto; width: auto; height: auto; display: block; background: none; border-radius: 0; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, 0.3); font: 500 12px/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: #fff; }
.ecard a:hover .ecard__go { transform: none; color: var(--c-accent); }

/* ---------- Shared hairline grid for the remaining blocks: square cells split by 1px lines, mono labels ---------- */
.shead__lead { font-size: 17px; }
/* Lines are cell outlines (not gaps over a filled grid), so they travel with each cell while it reveals. */
:is(.cards--grid, .cards--product) .cards__list, .chain__row, .cinfo__grid, .nextlinks, .breakdown__paths, .showcase__grid { gap: 1px; }
:is(.cards--grid, .cards--product) .pcard, .chain__node, .cinfo__card, .nl, .bpath, .showcase__card {
  --cell-line: var(--c-line); border-radius: 0; background: rgba(9, 9, 11, 0.6); box-shadow: none; outline: 1px solid var(--cell-line);
}
:is(.cards--grid, .cards--product) .pcard:hover { transform: none; box-shadow: none; }
:is(.cards--grid, .cards--product) .pcard { min-height: 0; padding: clamp(28px, 3vw, 44px); justify-content: flex-start; gap: 6px; }
:is(.cards--grid, .cards--product) .pcard__title { font-size: var(--fs-h3); letter-spacing: -0.025em; }
:is(.cards--grid, .cards--product) .pcard__title::before { content: ''; display: block; width: 6px; height: 6px; margin-bottom: 22px; background: var(--c-accent); }
.pcard__list { margin-top: 24px; gap: 0; border-top: 1px solid var(--c-line); color: var(--c-ink-2); }
.pcard__list li { padding: 13px 0 13px 20px; border-bottom: 1px solid var(--c-line); }
.pcard__list li::before { top: 1.25em; width: 6px; height: 6px; border-radius: 0; }
:is(.cards--grid, .cards--product) .pcard--accent { background: rgba(9, 9, 11, 0.6); }
:is(.cards--grid, .cards--product) .fan { display: none; }

/* Who answers for what: nodes on one wire, the company cell framed in orange */
.chain__row { gap: 1px; }
.chain__wire { display: none; }
.chain__node { min-height: 300px; padding: 32px; }
.chain__tag { padding: 0; background: none !important; font: 500 12px/1.4 var(--mono); letter-spacing: 0.16em; color: var(--c-muted) !important; }
.chain__node--core { --cell-line: var(--c-accent); z-index: 1; }
.chain__node--core .chain__tag { color: var(--c-accent) !important; }
.chain__node::after { content: ''; position: absolute; left: 32px; right: 32px; top: 64px; height: 1px; background: linear-gradient(90deg, var(--c-accent), transparent); transform: scaleX(0); transform-origin: left; transition: transform 0.8s var(--ease-out); }
.chain__node.is-on::after { transform: scaleX(1); }

/* Breakdown: two paths in one orange frame, like the approach block */
.breakdown { background: none; }
.bpath { --cell-line: rgba(255, 106, 0, 0.55); }
.bpath { padding: clamp(32px, 4vw, 52px); }
.bpath--accent { color: inherit; }
.bpath__title { font-size: var(--fs-h3); }
.bpath__list { gap: 0; border-top: 1px solid var(--c-line); }
.bpath__list li { grid-template-columns: 48px 1fr; padding: 18px 0; border-bottom: 1px solid var(--c-line); }
.bpath__n { width: auto; height: auto; display: block; padding-top: 4px; border-radius: 0; background: none; color: var(--c-accent); font: 500 13px/1 var(--mono); letter-spacing: 0.14em; }
.bpath--accent .bpath__list p { color: var(--c-muted); }

/* Photo grid */
.showcase__media img, .showcase__media video { border-radius: 0; }
.showcase__body { border-top: 1px solid var(--c-line); }
.showcase__title::before { border-radius: 0; width: 6px; height: 6px; }

/* Next links: three cells, the arrow slides on hover */
.nl { min-height: 240px; padding: 36px; }
.nl:hover { background: var(--c-card); }
.nl:hover p { color: rgba(255, 255, 255, 0.65); }
.nl__go { font: 500 12px/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; transition: transform var(--dur-fast) var(--ease-out); }
.nl:hover .nl__go { color: var(--c-accent); transform: translateX(6px); }

/* Contacts */
.cinfo__card { padding: 36px; }
.cinfo__card .card__label { font: 500 12px/1.4 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; }
.cinfo__card--accent { --cell-line: var(--c-accent); z-index: 1; background: rgba(9, 9, 11, 0.6); color: inherit; }
.cinfo__card--accent .card__label { color: var(--c-accent); }
.cinfo__card--accent a.cinfo__v:hover { color: var(--c-accent); text-decoration: none; }

/* Text pages and the about photo: square corners like everything else */
.band__pic, .band__pic img { border-radius: 0 !important; }
.prose__body h2::before { content: ''; display: block; width: 6px; height: 6px; margin-bottom: 18px; background: var(--c-accent); }
.cards--product .cards__list { grid-template-columns: repeat(var(--cols, 3), 1fr); }

