/* ==========================================================================
   RESPONSIVE LAYER: loaded last.
   1. Copy variants   2. Hero fits the screen   3. Swoosh underline
   4. Bold line system   5. Touch: hover becomes "in the centre of the screen"
   6. Phone compositions (a different design, not a narrower one)   7. WhatsApp button
   ========================================================================== */
:root {
  --bw: 2px;                          /* the one bold weight */
  --edge: var(--navy-900);            /* bold line on light ground */
  --edge-d: rgba(255,255,255,.4);     /* bold line on dark ground */
  --ease-ui: cubic-bezier(.22, .61, .36, 1);
}
:focus-visible { outline: var(--bw) solid var(--orange); outline-offset: 3px; }
html { overflow-x: clip; }

/* ---------- 1. copy variants: desktop sentence, phone sentence ---------- */
.mb { display: none; }
@media (max-width: 760px) { .dk { display: none; } .mb { display: inline; } }

/* ---------- 2. hero: the whole hero is on screen, type scales on height too ---------- */
.hero { min-height: 600px; height: 100svh; max-height: 1040px; }
.hero__title { font-size: clamp(36px, min(6vw, 8.6vh), 80px); }
.hero__content { padding-block: clamp(16px, 4vh, 64px) clamp(120px, 19vh, 170px); }
.hero__text { margin-top: clamp(16px, 2.6vh, 24px); }
.hero__actions { margin-top: clamp(20px, 3.4vh, 32px); }
@media (max-height: 560px) and (min-width: 761px) { .hero { height: auto; min-height: 640px; } }

/* ---------- 3. swoosh under "steel": drawn once, left to right ---------- */
.brush::after { display: none; }
.brush { position: relative; display: inline-block; }
.brush__line { position: absolute; left: -2%; bottom: -.16em; width: 104%; height: .34em; overflow: visible; pointer-events: none; }
.brush__line path { fill: none; stroke: var(--orange); stroke-width: clamp(3px, .06em, 5px); stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.4s var(--ease-out) .55s; }
.hero__slide.is-active .brush__line path { stroke-dashoffset: 0; }
.hero__title .line:has(.brush) { padding-bottom: .3em; margin-bottom: -.24em; }
.hero__title .line:has(.brush) > span { transform: translateY(140%); }
.hero__slide.is-active .hero__title .line:has(.brush) > span { transform: none; }

/* ---------- 4. bold line system: flat content on plain ground gets 2px navy ---------- */
.btn--outline { --bg: transparent; --fg: var(--navy-900); border: var(--bw) solid var(--edge); padding-inline: calc(var(--btn-x-sm) - var(--bw)); font-weight: 700; }
.btn--outline::before { background: var(--navy-900); }
.btn--outline:hover { --fg: #fff; color: #fff; }
.accordion details { border: var(--bw) solid var(--edge); box-shadow: none; transition: border-color .3s var(--ease-ui); }
.accordion details[open] { border-color: var(--orange); box-shadow: none; }
.accordion details:hover { border-color: var(--orange); }
.accordion details > div { border-top: 1px solid var(--line); padding-top: var(--s4); }
.mapcard { border: var(--bw) solid var(--edge); }
.mapcard .hqcard, .mapcard .zm-tick { border: 1px solid var(--line); }
.statrow, .cells { gap: var(--bw); background: var(--edge); border: var(--bw) solid var(--edge); border-top-width: var(--bw); }
.statrow > div, .cells > div { background: #fff; border: 0 !important; }
.statrow > div { padding: var(--s6); }
.value { border: var(--bw) solid var(--edge); box-shadow: none; }
.value:hover, .value.is-live { border-color: var(--orange); box-shadow: none; }
.filters button, .chips a, .pd__tags span, .uses li, .credits li, .side__box, .datatable-wrap, .chartcard, .cform input, .cform select, .cform textarea { border: var(--bw) solid var(--edge); box-shadow: none; }
.filters button, .chips a { font-weight: 600; }
.filters button:hover, .chips a:hover { border-color: var(--orange); background: #fff; color: var(--navy-900); }
.filters button.is-on { border-color: var(--edge); background: var(--navy-900); color: #fff; }
.cform input, .cform select, .cform textarea { background: #fff; }
.cform input:focus, .cform select:focus, .cform textarea:focus { border-color: var(--orange); box-shadow: none; }
.cform-wrap { box-shadow: none; border: var(--bw) solid var(--edge); }
.timeline::before { width: var(--bw); background: var(--edge); }
.timeline li::before { border: var(--bw) solid var(--edge); box-shadow: none; background: #fff; }
.timeline li:first-child::before { background: var(--orange); }
.side__list a { border-bottom: 1px solid var(--line); }

/* ---------- 5. touch: a card wakes up when it crosses the middle of the screen ---------- */
@media (hover: none) {
  .feature.is-live .feature__icon { background: var(--navy-900); }
  .feature.is-live .feature__icon svg { transform: rotateY(180deg); }
  .ach.is-live .ach__gear .gear { transform: rotate(120deg); }
  .pcard.is-live { transform: translateY(-6px); box-shadow: var(--shadow-2); }
  .pcard.is-live .pcard__img img { transform: scale(1.06); }
  .pcard.is-live .pcard__go { background: var(--navy-900); }
  .pcard.is-live .pcard__go svg { transform: rotate(-45deg); }
  .gcard.is-live::before { opacity: 1; }
  .gcard.is-live { border-color: rgba(255,255,255,.5); }
  .gcard.is-live .gcard__obj { transform: translateZ(40px) rotate(-16deg) scale(1.08); }
  .gcard.is-live .round { background: var(--orange); color: #fff; transform: rotate(-45deg); }
  .reasons li.is-live { background: rgba(26,50,110,.75); }
  .reasons li.is-live::before { transform: scaleX(1); }
  .reasons li.is-live svg { transform: translateY(-4px) scale(1.06); }
  .iso__panel.is-live { transform: translate(-50%, -50%) translateY(calc(var(--i) * -34px - 22px)) skewY(26deg) scaleX(.9) !important; }
  .range a.is-live { transform: translateY(-6px); box-shadow: var(--shadow-1); border-color: transparent; }
  .range a.is-live img { transform: rotate(-12deg) scale(1.08); }
  .value.is-live { transform: translateY(-6px); }
  .indrow.is-live .indrow__media figure img { transform: scale(1.05); }
  .ccard.is-live::after { transform: scale(3); }
  .about__img1.is-live img, .about__img2.is-live img { transform: scale(1.06); }
  .globe-list li.is-live { color: #fff; padding-left: 10px; }
  .btn:active::before { transform: scaleX(1); transform-origin: left; }
}

/* ---------- motion: one curve, 24px travel, transform and opacity only ---------- */
.js [data-reveal] { transition: opacity .7s var(--ease-ui), transform .7s var(--ease-ui); transition-delay: var(--d, 0s); }
@media (max-width: 760px) {
  .js [data-reveal], .js [data-reveal="left"], .js [data-reveal="right"] { transform: translateY(24px); }
  .js [data-reveal="zoom"] { transform: scale(.96); }
  .js [data-reveal].is-in { transform: none; }
}

/* ---------- 6. phone compositions ---------- */
.hdr-call { display: none; }
@media (max-width: 1100px) {
  .pd > *, .calc > *, .history > *, .yard > * { min-width: 0; }
}
@media (max-width: 760px) {
  :root { --section-y: 64px; --head-gap: 40px; }
  .hdr-call { display: grid; color: var(--orange); }
  .navbar__tools { gap: 0; }

  /* inputs never trigger iOS zoom */
  input, select, textarea { font-size: 16px !important; }

  /* hero */
  .hero { min-height: 600px; }
  .hero__content { padding-block: 24px 190px; }
  .hero__title { font-size: clamp(34px, 9.6vw, 44px); }
  .hero__eyebrow { font-size: 11px; letter-spacing: .1em; }
  .hero__actions { gap: var(--s3); }
  .hero__actions .btn { min-height: 52px; }

  /* section headers read left to right */
  .split-head__aside { font-size: var(--t-body); }

  /* about: media keeps its collage, features become icon rows */
  .feature__row { gap: var(--s4); }

  /* achievements: tiles stay two up, gear sits on the tile corner */
  .achievements .ach-grid { grid-template-columns: 1fr 1fr; gap: var(--s4); max-width: none; }
  .ach { position: relative; display: block; padding-top: 28px; }
  .ach__gear { position: absolute; left: 12px; top: 0; width: 56px; height: 56px; margin: 0; }
  .ach__ic { width: 22px; height: 22px; }
  .ach__card { min-height: 112px; padding: 40px var(--s4) var(--s4); align-content: end; }
  .ach__card b { font-size: 30px; }
  .ach__card > span { font-size: 12px; white-space: normal; }
  .ach__build { width: 210px; opacity: .35; right: -40px; }
  .ach__gearobj { width: 80px; left: -30px; top: -30px; }

  /* home industries: a swipe row, not four tall slabs */
  .page-home .gcards { display: grid; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 80%; gap: var(--s4); overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(-1 * var(--gutter)); padding: 4px var(--gutter) var(--s6); scroll-padding-inline: var(--gutter); scrollbar-width: none; }
  .page-home .gcards::-webkit-scrollbar { display: none; }
  .page-home .gcard { scroll-snap-align: start; min-height: 360px; }
  /* industries page: short tiles stay two up */
  .page-industries .gcards { grid-template-columns: 1fr 1fr; gap: var(--s3); }
  .page-industries .gcard { min-height: 230px; padding: var(--s4); }
  .page-industries .gcard h3 { font-size: 19px; }
  .page-industries .gcard p { font-size: 13px; max-width: none; }
  .page-industries .gcard__obj { width: 92px; right: -18px; bottom: 50px; opacity: .85; }
  .page-industries .gcard p { max-width: 15ch; }
  .page-industries .round { width: 32px; height: 32px; }

  /* why: reasons become compact rows, icon beside the copy */
  .reasons { grid-template-columns: 1fr; }
  .reasons li { display: grid; grid-template-columns: 32px 1fr; column-gap: var(--s4); padding: var(--s6) var(--s4); }
  .reasons li svg { grid-row: 1 / 3; width: 28px; height: 28px; margin: 2px 0 0; }
  .reasons h3 { font-size: 16px; margin: 0 0 4px; padding-right: 32px; }
  .reasons p { font-size: 14px; }
  .reasons__n { top: var(--s6); right: var(--s4); }
  .why__quote { padding: var(--s6); }
  .why__quote p { font-size: 16px; }

  /* process: steps become a numbered list */
  .process__steps { grid-template-columns: 1fr; gap: 0; counter-reset: st; }
  .process__steps li { counter-increment: st; display: grid; grid-template-columns: 40px 1fr; column-gap: var(--s4); padding: var(--s4) 0; border-top: 1px solid rgba(255,255,255,.18); }
  .process__steps li::before { content: "0" counter(st); position: static; grid-row: 1 / 3; width: auto; height: auto; background: none; font-family: var(--mono); font-size: 14px; font-weight: 600; color: var(--orange-300, #ffb27a); padding-top: 3px; }
  .process__steps b { font-size: 16px; margin-bottom: 2px; }
  .process__steps p { font-size: 14px; }

  /* map */
  .statrow > div { padding: var(--s4); }

  /* faq */
  .faqsec__orb { width: 160px; margin: var(--s6) 0 0; }

  /* cta band */
  .cta-band .h2 { font-size: 24px; }
  .cta-band__actions { gap: var(--s4); }

  /* footer: link columns sit side by side */
  .site-footer__grid { grid-template-columns: 1fr 1fr; gap: var(--s10) var(--s6); }
  .site-footer__grid > .f-about, .site-footer__grid > div:last-child { grid-column: 1 / -1; }
  .f-links { font-size: 14px; }
  .site-footer__bottom p { font-size: 13px; }

  /* about page */
  .history__copy .lead { font-size: var(--t-body); }
  .tcard { min-height: 260px; padding: var(--s6); }
  .tcard--navy li { font-size: 14px; }
  .values { grid-template-columns: 1fr; gap: var(--s3); }
  .value { display: grid; grid-template-columns: 32px 1fr; column-gap: var(--s4); min-height: 0; padding: var(--s4) var(--s4) var(--s4); }
  .value svg { grid-row: 1 / 3; width: 28px; height: 28px; margin: 2px 0 0; }
  .value h3 { font-size: 16px; margin-bottom: 2px; }
  .globe-list li { font-size: 14px; }
  .range { gap: var(--s3); }
  .range a { padding: var(--s4) var(--s3); font-size: 13px; }
  .range a img { width: 72px; height: 72px; }
  .cells > div { padding: var(--s4); }
  .cells b { font-size: 30px; }
  .cells > div > span { font-size: 13px; }

  /* contact: cards become rows */
  .ccards { gap: var(--s3); }
  .ccard { display: grid; grid-template-columns: 48px 1fr; column-gap: var(--s4); align-items: start; min-height: 0; padding: var(--s4); }
  .ccard svg { grid-row: 1 / 3; width: 48px; height: 48px; padding: 13px; margin: 0; }
  .ccard h3 { font-size: 16px; margin: 2px 0 2px; }
  .ccard::after { width: 90px; height: 90px; right: -30px; bottom: -30px; }
  .cmap .hqcard { left: var(--s3); right: var(--s3); bottom: var(--s3); }

  /* products */
  .filters { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(-1 * var(--gutter)); padding: 0 var(--gutter) var(--s2); scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .filters button { flex: none; }
  .pgrid { grid-template-columns: 1fr; gap: var(--s4); }
  .pgrid .pcard__img, .related .pcard__img { aspect-ratio: 16 / 10; }
  .related { display: grid; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 84%; gap: var(--s4); overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(-1 * var(--gutter)); padding: 4px var(--gutter) var(--s6); scroll-padding-inline: var(--gutter); scrollbar-width: none; }
  .related::-webkit-scrollbar { display: none; }
  .related > * { scroll-snap-align: start; }
  .side { grid-template-columns: 1fr; }

  /* industries rows */
  .indrow__media .num { font-size: 4.5rem; bottom: -18px; }
  .chips a { min-height: 36px; font-size: 13px; padding: 0 var(--s3); }

  /* calculator */
  .calc__types { grid-template-columns: repeat(3, 1fr); }
  .kpis { grid-template-columns: 1fr 1fr; gap: var(--s3); }
  .kpi { min-height: 130px; padding: var(--s4); }
  .kpi b { font-size: 26px; }
  .kpi span { font-size: 12px; }
  .kpi .corner { width: 44px; height: 44px; border-bottom-left-radius: 0; }
  .kpi .corner span { width: 30px; height: 30px; }
  .cut-actions .btn { flex: 1 1 auto; justify-content: center; }
}
@media (max-width: 380px) {
  .achievements .ach-grid { grid-template-columns: 1fr; }
  .page-industries .gcards { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr; }
}

/* ---------- 7. floating WhatsApp button, in brand colours ---------- */
.wa-fab { position: fixed; z-index: 70; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); display: flex; align-items: center; color: #fff; transition: transform .5s var(--ease-ui), opacity .4s; }
.wa-fab__btn { position: relative; width: 60px; height: 60px; display: grid; place-items: center; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px #fff, 0 0 0 6px var(--navy-900), 0 18px 30px -10px rgba(11,24,56,.55); transition: background .3s; }
.wa-fab__btn svg { width: 28px; height: 28px; }
.wa-fab__btn::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--orange); opacity: 0; animation: wa-ring 3.2s var(--ease-ui) 2s infinite; }
@keyframes wa-ring { 0% { transform: scale(1); opacity: .7; } 70%, 100% { transform: scale(1.45); opacity: 0; } }
.wa-fab__label { display: grid; margin-right: 14px; padding: 10px 14px; background: var(--navy-900); font-weight: 800; font-size: 14px; line-height: 1.2; letter-spacing: .01em; white-space: nowrap; box-shadow: 0 14px 30px -14px rgba(11,24,56,.6); opacity: 0; transform: translateX(10px); pointer-events: none; transition: opacity .35s, transform .45s var(--ease-ui); }
.wa-fab__label small { font-family: var(--mono); font-size: 10px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--orange-300, #ffb27a); }
.wa-fab:hover .wa-fab__btn, .wa-fab:focus-visible .wa-fab__btn { background: var(--orange-600); }
.wa-fab:hover .wa-fab__label, .wa-fab:focus-visible .wa-fab__label, .wa-fab.is-hint .wa-fab__label { opacity: 1; transform: none; }
.wa-fab.is-up { transform: translateY(-76px); }
.wa-fab.is-hidden { opacity: 0; pointer-events: none; transform: translateY(20px); }
body.no-scroll .wa-fab, .drawer:not([hidden]) ~ .wa-fab { opacity: 0; pointer-events: none; }
@media (max-width: 760px) { .wa-fab__btn { width: 56px; height: 56px; } .wa-fab__btn svg { width: 26px; height: 26px; } .wa-fab__label { font-size: 13px; } }
@media (prefers-reduced-motion: reduce) { .wa-fab__btn::after { animation: none; } }

/* calculator cutting list on phones: figures never break */
@media (max-width: 760px) {
  .cutlist td, .cutlist th { white-space: nowrap; }
  .cutlist td.cutlist__empty { white-space: normal; font-size: 13px; }
  .calc .note { font-size: 12px; }
}

/* ---------------------------------------------------------------------------
   Corners. Outer frames stay square: sections, cards, panels, the map, the
   accordion and photos. The things you press or read as a label get their
   radius back: buttons, the hero chip, pills, tags, filters, chips, inputs
   and menu rows.
   --------------------------------------------------------------------------- */
:root { --r-ctl: 6px; --r-pill: 999px; --r-row: 10px; }
.btn, .btn--sm, .cta-band .btn { border-radius: var(--r-ctl); }
.hero__eyebrow { border-radius: var(--r-pill); padding-inline: 12px 16px; }
.pill, .pcard__tags span, .pd__tags span, .tag-dark, .hqcard__tag,
.filters button, .chips a { border-radius: var(--r-pill); }
.calc__types button { border-radius: 8px; }
.cform input, .cform select, .cform textarea, .plate select, .plate input { border-radius: var(--r-ctl); }
.f-news { border-radius: var(--r-ctl); }
.drop__grid a, .search-ov__results a { border-radius: var(--r-row); }
.cform__ok { border-radius: var(--r-ctl); }

/* the hero construction artwork sits 20% smaller */
.hero__skyline { width: min(704px, 46.4vw); }
@media (max-width: 760px) { .hero__skyline { width: 96vw; } }

/* product cards carry the detailed 3D icons, so the tile grows to show them */
.pcard__icon { width: 78px; height: 78px; }
.pcard__icon svg { width: 62px; height: 62px; }
@media (max-width: 760px) {
  .pcard__icon { width: 64px; height: 64px; }
  .pcard__icon svg { width: 50px; height: 50px; }
}

/* ---------------------------------------------------------------------------
   Hero title: outlined Montserrat. Each line is drawn as a white contour on the
   photo; the brand word "steel" stays solid white above its orange swoosh.
   --------------------------------------------------------------------------- */
.hero__title { font-family: 'Montserrat', var(--font, 'Manrope'), sans-serif; font-weight: 700; letter-spacing: -.012em; line-height: 1.1; }
@supports (-webkit-text-stroke: 1px #fff) {
  .hero__title { color: transparent; -webkit-text-stroke: max(1.2px, .022em) #fff; paint-order: stroke fill; }
  .hero__title em { color: #fff; -webkit-text-stroke: 0; }
}

/* ---------------------------------------------------------------------------
   Hero centring. The content block sits exactly halfway between the bottom of
   the header and the bottom of the hero: the slide is padded by the header's
   measured height (touch.js writes --hdr; --header-h is the no-script value)
   and the block carries no padding of its own, so flex centring is exact.
   --------------------------------------------------------------------------- */
.hero__slide { padding-top: var(--hdr, var(--header-h)); padding-bottom: 0; align-items: center; }
.hero .hero__content { padding-block: 0; z-index: 5; }
.hero__content > :last-child { margin-bottom: 0; }
@media (max-width: 760px) {
  .hero__title { font-size: clamp(28px, 8.6vw, 40px); }
}

/* phones: the hero keeps only its primary button, so the construction artwork below it reads clearly */
@media (max-width: 760px) { .hero__actions .btn--ghost { display: none; } }

/* phones: centre the hero content in the clear space above the construction artwork.
   The artwork is 96vw wide at 2000:1100, so it occupies 96vw x 0.55 = 52.8vw at the bottom. */
@media (max-width: 760px) { .hero__slide { padding-bottom: calc(26.4vw - .5px); } }

/* hero buttons keep square corners, matching the hero's hard-edged composition */
.hero__actions .btn { border-radius: 0; }
/* short phones have no room to spare: centre fully above the artwork there */
@media (max-width: 760px) and (max-height: 700px) { .hero__slide { padding-bottom: calc(52.8vw - 1px); } }
