/* Advanced Avenues Co. — website stylesheet
   Layout concept: a steel shop seen through its drawings — dark blue-black "mill scale" surfaces,
   blueprint grid for the engineering tools, brand green used only for action and live values. */
:root {
  --bg: #0B131B;          /* blue-black steel */
  --bg-2: #0F1A24;
  --plate: #15232F;       /* raised panels */
  --plate-2: #1B2C3A;
  --line: rgba(150, 185, 215, .16);
  --line-strong: rgba(150, 185, 215, .32);
  --fg: #E7EDF2;
  --muted: #93A5B5;
  --navy: #0F4067;        /* brand navy */
  --navy-bright: #3D85BE;
  --green: #8FC547;       /* brand green: actions + live values */
  --green-ink: #0B1A06;
  --paper: #E8EDF0;       /* light "primer" sections */
  --paper-ink: #13212C;
  --paper-muted: #4F606E;
  --paper-line: #C9D3DA;
  --danger: #E9785B;

  --display: "Archivo", "Arial Narrow", "Roboto Condensed", Arial, sans-serif;
  --body: "IBM Plex Sans", "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --r: 4px;
  --header-h: 72px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--body); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
[hidden] { display: none !important; }

h1, h2, h3, h4 { font-family: var(--display); font-stretch: 75%; font-weight: 800; line-height: 1.02; letter-spacing: -.005em; margin: 0; text-wrap: balance; text-transform: uppercase; }
h2 { font-size: clamp(2.2rem, 5vw, 3.9rem); }
h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
h4 { font-size: 1.2rem; font-stretch: 85%; font-weight: 700; letter-spacing: .01em; }
p { margin: 0; }
.mono { font-family: var(--mono); }
.num { font-variant-numeric: tabular-nums; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(72px, 10vw, 128px); position: relative; }
.section--tight { padding-block: clamp(56px, 7vw, 88px); }
.eyebrow { font-family: var(--mono); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--green); display: inline-flex; align-items: center; gap: .6em; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--muted); max-width: 62ch; }
.head { display: grid; gap: 18px; margin-bottom: clamp(36px, 5vw, 60px); max-width: 860px; }
.head--split { max-width: none; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: end; gap: 24px 64px; }
@media (max-width: 860px) { .head--split { grid-template-columns: 1fr; } }

/* Buttons */
.btn { --b: var(--green); display: inline-flex; align-items: center; justify-content: center; gap: .55em; padding: .95em 1.5em; border-radius: var(--r); font-family: var(--display); font-stretch: 85%; font-weight: 700; font-size: 1rem; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; border: 2px solid var(--b); background: var(--b); color: var(--green-ink); cursor: pointer; transition: background .2s, color .2s, transform .2s; }
.btn:hover { background: transparent; color: var(--b); }
.btn--ghost { background: transparent; color: var(--fg); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--fg); color: var(--fg); background: rgba(255,255,255,.04); }
.btn--sm { padding: .6em 1.1em; font-size: .9rem; }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }

/* ============ Header ============ */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; padding-top: env(safe-area-inset-top, 0px); background: rgba(255,255,255,.97); border-bottom: 1px solid #DCE3E8; transition: box-shadow .3s, transform .35s ease; animation: dropin .6s cubic-bezier(.2,.7,.2,1) both; }
.site-header.is-solid { box-shadow: 0 8px 30px rgba(10, 30, 48, .12); }
.site-header.is-hidden { transform: translateY(-100%); }
@keyframes dropin { from { transform: translateY(-100%); } to { transform: none; } }
.header-row { transition: height .3s; }
.site-header.is-solid .header-row { height: 62px; }
.site-header.is-solid .brand img { height: 40px; }
.brand img { transition: height .3s; }
.header-row { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand img { height: 46px; width: auto; }
.nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 28px); }
.nav a:not(.btn) { font-family: var(--mono); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; color: #4F606E; padding-block: 6px; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; }
.nav a:not(.btn):hover, .nav a.is-active { color: var(--navy); border-color: var(--green); }
.nav-toggle { display: none; background: none; border: 1px solid #C9D3DA; border-radius: var(--r); width: 46px; height: 42px; cursor: pointer; padding: 0; color: var(--navy); }
.nav-toggle span { display: block; width: 20px; height: 2px; background: currentColor; margin: 4px auto; transition: transform .25s, opacity .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.progress { position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; background: var(--green); transform-origin: 0 50%; transform: scaleX(0); }
@media (max-width: 1080px) {
  .nav-toggle { display: block; }
  .nav { position: fixed; inset: calc(var(--header-h) + env(safe-area-inset-top, 0px)) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 24px; background: #fff; border-bottom: 1px solid #DCE3E8; box-shadow: 0 20px 40px rgba(10,30,48,.15); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s; max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
  .nav.is-open { opacity: 1; transform: none; visibility: visible; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid #E3E9ED; font-size: .9rem; }
  .nav.is-open a:not(.btn) { animation: rise .35s ease both; }
  .nav.is-open a:nth-child(2) { animation-delay: .03s; } .nav.is-open a:nth-child(3) { animation-delay: .06s; } .nav.is-open a:nth-child(4) { animation-delay: .09s; } .nav.is-open a:nth-child(5) { animation-delay: .12s; }
  .nav .btn { margin-top: 16px; }
}

/* ============ Hero ============ */
.hero { position: relative; min-height: min(92vh, 880px); display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; isolation: isolate; padding-top: calc(var(--header-h) + 60px); }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; animation: slowzoom 24s ease-out both; }
@keyframes slowzoom { from { transform: scale(1.12); } to { transform: scale(1); } }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(90deg, rgba(11,19,27,.92) 0%, rgba(11,19,27,.65) 45%, rgba(11,19,27,.15) 100%),
  linear-gradient(0deg, var(--bg) 0%, rgba(11,19,27,0) 40%); }
.hero-content { display: grid; gap: 26px; padding-bottom: clamp(40px, 6vw, 72px); }
.hero h1 { font-size: clamp(3rem, 9.5vw, 8.4rem); font-stretch: 68%; font-weight: 900; line-height: .9; max-width: 11ch; }
.hero h1 em { font-style: normal; color: var(--green); }
.hero .lead { color: #C3D0DA; max-width: 52ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-tag { font-family: var(--mono); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: #C3D0DA; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.hero-tag span { display: inline-flex; align-items: center; gap: 8px; }
.hero-tag span + span::before { content: ""; width: 5px; height: 5px; background: var(--green); transform: rotate(45deg); }
.hero-caption { position: absolute; right: var(--gutter); top: calc(var(--header-h) + 28px); animation: rise .8s .5s both; font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; color: rgba(231,237,242,.7); text-transform: uppercase; text-align: right; }
@media (max-width: 700px) { .hero-caption { display: none; } }

.figures { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); }
.figures-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.figure { padding: 28px clamp(12px, 2vw, 28px); border-left: 1px solid var(--line); display: grid; gap: 6px; }
.figure:first-child { border-left: 0; padding-left: 0; }
.figure b { font-family: var(--display); font-stretch: 70%; font-weight: 800; font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1; font-variant-numeric: tabular-nums; }
.figure b small { font-size: .45em; color: var(--green); margin-left: .15em; letter-spacing: .04em; }
.figure > span { font-family: var(--mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 760px) { .figures-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } .figure:nth-child(3) { border-left: 0; padding-left: 0; } .figure:nth-child(n+3) { border-top: 1px solid var(--line); } }

/* ============ About ============ */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.about-copy { display: grid; gap: 18px; color: var(--muted); }
.about-copy strong { color: var(--fg); font-weight: 600; }
.about-photo { position: relative; }
.about-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r); }
.about-photo figcaption { position: absolute; left: 16px; bottom: 16px; right: 16px; font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: #fff; background: rgba(11,19,27,.78); padding: 8px 12px; border-left: 3px solid var(--green); }
.vm { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: clamp(40px, 6vw, 72px); }
.vm article { background: var(--bg); padding: clamp(24px, 3vw, 40px); display: grid; gap: 12px; align-content: start; }
.vm article p { color: var(--muted); font-size: 1.05rem; }
.values { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-top: 0; }
.values div { background: var(--bg-2); padding: 24px; display: grid; gap: 8px; align-content: start; }
.values p { color: var(--muted); font-size: .95rem; }
@media (max-width: 960px) { .about-grid { grid-template-columns: 1fr; } .about-photo img { aspect-ratio: 16 / 10; } .values { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .vm, .values { grid-template-columns: 1fr; } }

.quote { margin-top: clamp(56px, 8vw, 96px); display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.quote blockquote { margin: 0; font-family: var(--display); font-stretch: 80%; font-weight: 700; font-size: clamp(1.7rem, 3.4vw, 2.7rem); line-height: 1.1; text-transform: none; }
.quote blockquote::before { content: "\201C"; display: block; color: var(--green); font-size: 2.4em; line-height: .6; margin-bottom: .1em; }
.quote-body { display: grid; gap: 14px; color: var(--muted); }
.quote-sign { color: var(--fg); font-weight: 600; }
.quote-sign span { display: block; font-weight: 400; color: var(--muted); font-size: .9rem; }
.v2030 { margin-top: clamp(40px, 6vw, 64px); display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px 32px; align-items: center; padding: 28px; border: 1px solid var(--line); background: linear-gradient(90deg, rgba(15,64,103,.35), transparent 70%); }
.v2030 b { font-family: var(--display); font-stretch: 70%; font-size: 3.2rem; line-height: .9; color: var(--green); }
.v2030 p { color: var(--muted); }
@media (max-width: 860px) { .quote { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .v2030 { grid-template-columns: 1fr; } }

/* ============ Services (tabs) ============ */
.services { background: var(--bg-2); border-block: 1px solid var(--line); }
.svc { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); }
.svc-tabs { display: grid; align-content: start; border-top: 1px solid var(--line); }
.svc-tab { all: unset; box-sizing: border-box; cursor: pointer; display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 10px; padding: 18px 4px; border-bottom: 1px solid var(--line); font-family: var(--display); font-stretch: 85%; font-weight: 700; font-size: 1.15rem; text-transform: uppercase; letter-spacing: .02em; color: var(--muted); transition: color .2s, padding .2s; }
.svc-tab .mono { font-size: .75rem; color: var(--muted); }
.svc-tab::after { content: ""; width: 10px; height: 10px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); opacity: 0; transition: opacity .2s; }
.svc-tab:hover { color: var(--fg); }
.svc-tab[aria-selected="true"] { color: var(--fg); padding-left: 12px; box-shadow: inset 3px 0 0 var(--green); }
.svc-tab[aria-selected="true"]::after { opacity: 1; color: var(--green); }
.svc-tab:focus-visible { outline: 2px solid var(--green); outline-offset: -2px; }
.svc-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: var(--plate); border: 1px solid var(--line); min-height: 420px; }
.svc-panel img { width: 100%; height: 100%; object-fit: cover; min-height: 280px; }
.svc-panel-body { padding: clamp(24px, 3vw, 40px); display: grid; gap: 16px; align-content: start; }
.svc-panel-body p { color: var(--muted); }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ticks li { display: grid; grid-template-columns: 16px 1fr; gap: 10px; font-size: .95rem; }
.ticks li::before { content: ""; width: 9px; height: 9px; margin-top: .5em; background: var(--green); clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%); }
.svc-panel.is-enter .svc-panel-body, .svc-panel.is-enter img { animation: fadein .45s ease both; }
@keyframes fadein { from { opacity: .2; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (max-width: 1000px) { .svc { grid-template-columns: 1fr; } .svc-tabs { grid-template-columns: repeat(3, minmax(0,1fr)); border: 0; gap: 8px; } .svc-tab { border: 1px solid var(--line); grid-template-columns: 1fr; padding: 12px; font-size: 1rem; } .svc-tab::after { display: none; } .svc-tab[aria-selected="true"] { padding-left: 12px; box-shadow: inset 0 -3px 0 var(--green); } }
@media (max-width: 680px) { .svc-tabs { grid-template-columns: repeat(2, minmax(0,1fr)); } .svc-panel { grid-template-columns: 1fr; } .svc-panel img { aspect-ratio: 16/9; height: auto; min-height: 0; } }

/* Specializations */
.specs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: clamp(56px, 8vw, 96px); }
.spec { position: relative; overflow: hidden; border-radius: var(--r); min-height: 420px; display: flex; align-items: flex-end; isolation: isolate; text-decoration: none; }
.spec img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s ease; }
.spec::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11,19,27,0) 25%, rgba(11,19,27,.95) 85%); }
.spec:hover img { transform: scale(1.06); }
.spec-body { padding: 26px; display: grid; gap: 10px; }
.spec-body p { color: #C3D0DA; font-size: .95rem; }
.spec-body .mono { font-size: .72rem; letter-spacing: .12em; color: var(--green); text-transform: uppercase; }
@media (max-width: 900px) { .specs { grid-template-columns: 1fr; } .spec { min-height: 320px; } }

/* ============ Section Studio (calculator) ============ */
.studio { background-color: var(--navy); background-image:
  linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px),
  linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px),
  linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
  linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px; }
.studio .lead { color: #C9D9E6; }
.studio .eyebrow { color: var(--green); }
.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 0; border: 1px solid rgba(255,255,255,.22); background: rgba(8, 30, 48, .72); backdrop-filter: blur(2px); }
.calc-controls { padding: clamp(20px, 3vw, 36px); display: grid; gap: 22px; align-content: start; border-right: 1px solid rgba(255,255,255,.18); }
.seg { display: inline-grid; grid-auto-flow: column; border: 1px solid rgba(255,255,255,.3); border-radius: var(--r); overflow: hidden; width: max-content; max-width: 100%; }
.seg button { all: unset; cursor: pointer; padding: 10px 16px; font-family: var(--mono); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: #C9D9E6; }
.seg button[aria-pressed="true"] { background: var(--green); color: var(--green-ink); font-weight: 500; }
.seg button:focus-visible { outline: 2px solid var(--green); outline-offset: -3px; }
.presets { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { all: unset; cursor: pointer; font-family: var(--mono); font-size: .74rem; letter-spacing: .04em; padding: 7px 12px; border: 1px solid rgba(255,255,255,.28); border-radius: 99px; color: #DCE7EF; transition: background .2s, border-color .2s; }
.chip:hover { border-color: #fff; }
.chip[aria-pressed="true"] { background: rgba(143,197,71,.16); border-color: var(--green); color: #fff; }
.chip:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.field { display: grid; gap: 8px; }
.field-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.field label { font-family: var(--mono); font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: #C9D9E6; }
.field output { font-family: var(--mono); font-size: .95rem; color: #fff; font-variant-numeric: tabular-nums; }
.field output small { color: #9FB6C8; font-size: .78em; margin-left: 3px; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 24px; background: transparent; cursor: pointer; margin: 0; }
input[type="range"]::-webkit-slider-runnable-track { height: 4px; background: linear-gradient(90deg, var(--green) var(--p, 50%), rgba(255,255,255,.22) var(--p, 50%)); border-radius: 2px; }
input[type="range"]::-moz-range-track { height: 4px; background: rgba(255,255,255,.22); border-radius: 2px; }
input[type="range"]::-moz-range-progress { height: 4px; background: var(--green); border-radius: 2px; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; margin-top: -7px; background: #fff; border: 3px solid var(--green); border-radius: 2px; transform: rotate(45deg); }
input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; background: #fff; border: 3px solid var(--green); border-radius: 2px; transform: rotate(45deg); }
input[type="range"]:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; }
@media (max-width: 480px) { .field-pair { grid-template-columns: 1fr; } }

.calc-out { display: grid; grid-template-rows: auto auto 1fr; }
.drawing { padding: 20px; border-bottom: 1px solid rgba(255,255,255,.18); position: relative; }
.drawing svg { width: 100%; height: auto; max-height: 380px; display: block; }
.drawing .title-block { position: absolute; right: 12px; bottom: 12px; font-family: var(--mono); font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; color: #9FB6C8; border: 1px solid rgba(255,255,255,.25); padding: 6px 10px; text-align: right; line-height: 1.5; }
.results { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.res { padding: 18px 20px; border-right: 1px solid rgba(255,255,255,.14); border-bottom: 1px solid rgba(255,255,255,.14); display: grid; gap: 4px; }
.res:nth-child(3n) { border-right: 0; }
.res span { font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: #9FB6C8; }
.res b { font-family: var(--display); font-stretch: 75%; font-weight: 800; font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1; font-variant-numeric: tabular-nums; }
.res b small { font-family: var(--mono); font-weight: 400; font-size: .5em; color: #9FB6C8; margin-left: 4px; }
.res--key b { color: var(--green); }
.calc-foot { padding: 20px; display: grid; gap: 16px; align-content: end; }
.capbar { display: grid; gap: 8px; }
.capbar-top { display: flex; justify-content: space-between; gap: 12px; font-family: var(--mono); font-size: .74rem; letter-spacing: .06em; color: #C9D9E6; }
.capbar-track { height: 10px; background: rgba(255,255,255,.12); position: relative; overflow: hidden; }
.capbar-fill { position: absolute; inset: 0 auto 0 0; background: repeating-linear-gradient(-45deg, var(--green) 0 8px, #7BB036 8px 16px); width: 0; transition: width .4s ease; }
.calc-note { font-size: .82rem; color: #9FB6C8; }
.calc-foot .btn { justify-self: start; }
@media (max-width: 980px) { .calc { grid-template-columns: 1fr; } .calc-controls { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.18); } }
@media (max-width: 520px) { .results { grid-template-columns: 1fr 1fr; } .res:nth-child(3n) { border-right: 1px solid rgba(255,255,255,.14); } .res:nth-child(2n) { border-right: 0; } }

.spec-table { margin-top: clamp(40px, 6vw, 64px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.18); }
.spec-table div { background: rgba(8, 30, 48, .82); padding: 20px; display: grid; gap: 6px; align-content: start; }
.spec-table dt { font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--green); }
.spec-table dd { margin: 0; color: #DCE7EF; font-size: .95rem; }
@media (max-width: 820px) { .spec-table { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .spec-table { grid-template-columns: 1fr; } }

/* ============ Plant ============ */
.cap { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.cap-big { font-family: var(--display); font-stretch: 62%; font-weight: 900; font-size: clamp(7rem, 20vw, 15rem); line-height: .8; color: var(--fg); font-variant-numeric: tabular-nums; }
.cap-big small { font-size: .22em; font-stretch: 80%; color: var(--green); letter-spacing: .04em; margin-left: .2em; vertical-align: top; }
.cap-sub { font-family: var(--mono); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: 18px; display: grid; gap: 6px; }
.cap-sub b { color: var(--green); font-weight: 500; }
.cap-copy { display: grid; gap: 16px; color: var(--muted); }
@media (max-width: 860px) { .cap { grid-template-columns: 1fr; } }

.flow { margin-top: clamp(56px, 8vw, 96px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 0; border: 1px solid var(--line); background: var(--plate); }
.flow-steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; align-content: start; }
.flow-steps li { border-bottom: 1px solid var(--line); }
.flow-steps li:last-child { border-bottom: 0; }
.flow-step { all: unset; box-sizing: border-box; width: 100%; cursor: pointer; display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: center; padding: 15px 20px; color: var(--muted); position: relative; transition: background .2s, color .2s; }
.flow-step .n { font-family: var(--mono); font-size: .8rem; color: var(--muted); width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; }
.flow-step strong { font-family: var(--display); font-stretch: 85%; font-weight: 700; font-size: 1.05rem; text-transform: uppercase; letter-spacing: .02em; }
.flow-step:hover { color: var(--fg); background: rgba(255,255,255,.03); }
.flow-step[aria-selected="true"] { color: var(--fg); background: var(--plate-2); }
.flow-step[aria-selected="true"] .n { background: var(--green); color: var(--green-ink); border-color: var(--green); }
.flow-step[aria-selected="true"]::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: var(--t, 0%); background: var(--green); }
.flow-step:focus-visible { outline: 2px solid var(--green); outline-offset: -2px; }
.flow-view { position: relative; min-height: 460px; border-left: 1px solid var(--line); overflow: hidden; }
.flow-view img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.flow-view::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(11,19,27,.95) 0%, rgba(11,19,27,0) 55%); }
.flow-cap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: clamp(20px, 3vw, 32px); display: grid; gap: 8px; }
.flow-cap .mono { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--green); }
.flow-cap p { color: #C3D0DA; max-width: 54ch; }
.flow-view.is-enter img, .flow-view.is-enter .flow-cap { animation: fadein .5s ease both; }
@media (max-width: 900px) { .flow { grid-template-columns: 1fr; } .flow-view { border-left: 0; border-top: 1px solid var(--line); min-height: 340px; order: -1; } .flow-steps { grid-template-columns: 1fr 1fr; } .flow-steps li:nth-child(odd) { border-right: 1px solid var(--line); } .flow-step { padding: 12px 14px; grid-template-columns: 36px 1fr; } .flow-step strong { font-size: .92rem; } }
@media (max-width: 460px) { .flow-steps { grid-template-columns: 1fr; } .flow-steps li:nth-child(odd) { border-right: 0; } }

.machines { margin-top: clamp(48px, 7vw, 80px); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; min-width: 560px; font-size: .95rem; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font-family: var(--mono); font-weight: 500; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); background: var(--bg-2); }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: rgba(255,255,255,.025); }
td.qty { font-family: var(--mono); font-variant-numeric: tabular-nums; width: 70px; }
.tag { display: inline-block; font-family: var(--mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; padding: 3px 9px; border-radius: 99px; border: 1px solid var(--line-strong); color: var(--muted); white-space: nowrap; }
.tag--cnc { border-color: var(--green); color: var(--green); }
.tag--done { border-color: var(--navy-bright); color: #8DC0E8; }
.tag--live { border-color: var(--green); color: var(--green); }
tr.group td { font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--green); background: var(--bg-2); padding-block: 10px; }

/* ============ Quality (light "primer" section) ============ */
.primer { --bg: #E8EDF0; --bg-2: #F4F7F9; --plate: #FFFFFF; --plate-2: #EEF3F7; --fg: #13212C; --muted: #4F606E; --line: #C9D3DA; --line-strong: #A9B7C2; color-scheme: light; background: var(--bg); color: var(--fg); }
.primer--white { --bg: #FFFFFF; --bg-2: #F4F7F9; --plate: #F4F7F9; }
.primer h2, .primer h3 { color: var(--navy); }
.primer .btn--ghost { color: var(--fg); }
.primer .tag--done { color: var(--navy); border-color: var(--navy); }
.primer .tag--live, .primer .tag--cnc { color: #4E7F1A; border-color: #6E9F2F; }
.primer .filters .chip, .primer .chip { color: var(--muted); }
.primer .link-arrow { color: #4E7F1A; }
.primer .lead { color: var(--paper-muted); }
.primer .eyebrow { color: #4E7F1A; }
.ndt { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.ndt-card { background: #fff; border: 1px solid var(--paper-line); border-radius: var(--r); padding: 24px; display: grid; gap: 12px; align-content: start; transition: transform .25s, box-shadow .25s, border-color .25s; }
.ndt-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(19, 33, 44, .12); border-color: var(--navy); }
.ndt-code { font-family: var(--display); font-stretch: 65%; font-weight: 900; font-size: 3.2rem; line-height: .9; color: var(--navy); }
.ndt-card p { color: var(--paper-muted); font-size: .95rem; }
.ndt-card svg { width: 100%; height: 54px; }
.qa-docs { margin-top: 40px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.qa-docs img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--r); }
.doc-list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; }
.doc-list li { display: grid; grid-template-columns: 36px 1fr; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--paper-line); }
.doc-list li span { font-family: var(--mono); font-size: .75rem; color: var(--paper-muted); padding-top: 3px; }
@media (max-width: 980px) { .ndt { grid-template-columns: 1fr 1fr; } .qa-docs { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .ndt { grid-template-columns: 1fr; } }

.hse { background: var(--bg); }
.hse-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.hse-grid div { background: var(--bg); padding: 26px; display: grid; gap: 10px; align-content: start; transition: background .2s; }
.hse-grid div:hover { background: var(--plate); }
.hse-grid p { color: var(--muted); font-size: .95rem; }
.hse-grid .ico { width: 34px; height: 34px; color: var(--green); }
@media (max-width: 900px) { .hse-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .hse-grid { grid-template-columns: 1fr; } }

/* Process */
.process { background: var(--bg-2); border-block: 1px solid var(--line); }
.track { display: grid; grid-template-columns: repeat(8, minmax(220px, 1fr)); gap: 0; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 16px; scrollbar-color: var(--line-strong) transparent; }
.track li { list-style: none; scroll-snap-align: start; padding: 0 22px 0 0; display: grid; gap: 12px; align-content: start; position: relative; }
.track li::before { content: ""; height: 2px; background: var(--line-strong); margin-top: 17px; position: absolute; left: 40px; right: 0; top: 0; }
.track li:last-child::before { display: none; }
.track .n { width: 36px; height: 36px; display: grid; place-items: center; border: 2px solid var(--green); border-radius: 50%; font-family: var(--mono); font-size: .85rem; color: var(--green); background: var(--bg-2); position: relative; }
.track p { color: var(--muted); font-size: .92rem; }
.track-ctrl { display: flex; gap: 8px; }
.track-ctrl button { all: unset; cursor: pointer; width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--fg); }
.track-ctrl button:hover { border-color: var(--green); color: var(--green); }
.track-ctrl button:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.track-ctrl svg { width: 18px; height: 18px; }
.process-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }

/* ============ Projects ============ */
.feature { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); }
.feature-main { display: grid; gap: 10px; }
.feature-stage { all: unset; cursor: zoom-in; position: relative; display: block; border-radius: var(--r); overflow: hidden; aspect-ratio: 16 / 10; background: var(--plate); }
.feature-stage img { width: 100%; height: 100%; object-fit: cover; transition: opacity .35s; }
.feature-stage:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.feature-stage .zoom { position: absolute; right: 14px; top: 14px; background: rgba(11,19,27,.75); border-radius: 99px; padding: 6px 12px; font-family: var(--mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: #fff; }
.thumbs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.thumb { all: unset; cursor: pointer; border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 3; opacity: .55; outline: 2px solid transparent; outline-offset: 2px; transition: opacity .2s, outline-color .2s; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb:hover { opacity: .85; }
.thumb[aria-pressed="true"] { opacity: 1; outline-color: var(--green); }
.thumb:focus-visible { outline-color: var(--fg); }
.feature-info { display: grid; gap: 18px; align-content: start; }
.feature-info p { color: var(--muted); }
.facts { margin: 6px 0 0; display: grid; border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.facts dd { margin: 0; }
@media (max-width: 960px) { .feature { grid-template-columns: 1fr; } }

.selected { margin-top: clamp(56px, 8vw, 88px); }
.selected h3 { margin-bottom: 20px; }

.portfolio { margin-top: clamp(56px, 8vw, 88px); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 28px; }
.filters .chip { border-color: var(--line-strong); color: var(--muted); }
.filters .chip[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: var(--green-ink); }
.grid-work { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.work { all: unset; cursor: zoom-in; position: relative; border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 5; display: block; isolation: isolate; transition: opacity .3s, transform .3s; }
.work img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.work:hover img { transform: scale(1.05); }
.work::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(11,19,27,.9)); }
.work span { position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 1; display: grid; gap: 2px; }
.work b { font-family: var(--display); font-stretch: 85%; font-weight: 700; text-transform: uppercase; font-size: 1.05rem; line-height: 1.1; }
.work small { font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--green); }
.work:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.work.is-out { display: none; }
@media (max-width: 900px) { .grid-work { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ============ Company ============ */
.team { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); }
.team-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 0; }
.team-list li { padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--muted); display: grid; grid-template-columns: 48px 1fr; gap: 8px; }
.team-list li b { font-family: var(--mono); font-weight: 500; color: var(--fg); }
.bars { display: grid; gap: 18px; }
.bar-row { display: grid; gap: 8px; }
.bar-top { display: flex; justify-content: space-between; gap: 12px; font-size: .95rem; }
.bar-top b { font-family: var(--mono); font-weight: 500; font-variant-numeric: tabular-nums; }
.bar-track { height: 12px; background: var(--plate); position: relative; }
.bar-fill { position: absolute; inset: 0 auto 0 0; background: var(--navy-bright); width: var(--w); transition: width 1s ease; }
.bar-row:nth-child(3) .bar-fill { background: var(--green); }
.bars-total { font-family: var(--mono); font-size: .8rem; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; display: flex; justify-content: space-between; border-top: 1px solid var(--line-strong); padding-top: 12px; }
@media (max-width: 860px) { .team { grid-template-columns: 1fr; } }

.licenses { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.licenses div { background: var(--bg); padding: 22px; display: grid; gap: 6px; align-content: start; }
.licenses p { color: var(--muted); font-size: .92rem; }
@media (max-width: 860px) { .licenses { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .licenses { grid-template-columns: 1fr; } }

.clients { overflow: hidden; border-block: 1px solid var(--line); padding-block: 22px; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.clients-track { display: flex; gap: 56px; width: max-content; animation: marquee 40s linear infinite; }
.clients:hover .clients-track { animation-play-state: paused; }
.clients-track span { font-family: var(--display); font-stretch: 80%; font-weight: 700; font-size: clamp(1.3rem, 2.4vw, 1.8rem); text-transform: uppercase; white-space: nowrap; color: var(--muted); display: inline-flex; align-items: center; gap: 56px; }
.clients-track span::after { content: ""; width: 8px; height: 8px; background: var(--green); transform: rotate(45deg); }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .clients-track { animation: none; flex-wrap: wrap; width: auto; gap: 16px 32px; } }

.group { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.group article { display: grid; grid-template-columns: 120px 1fr; gap: 20px; align-items: center; padding: 20px; border: 1px solid var(--line); background: var(--plate); border-radius: var(--r); }
.group img { width: 120px; height: 90px; object-fit: contain; background: #fff; border-radius: var(--r); padding: 6px; }
.group p { color: var(--muted); font-size: .92rem; margin-top: 6px; }
@media (max-width: 760px) { .group { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .group article { grid-template-columns: 1fr; } }

/* ============ Contact ============ */
.contact { position: relative; isolation: isolate; overflow: hidden; }
.contact::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 60% at 0% 100%, rgba(15,64,103,.55), transparent 70%); }
.contact-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 80px); }
.contact-info { display: grid; gap: 22px; align-content: start; }
.contact-lines { list-style: none; padding: 0; margin: 10px 0 0; display: grid; border-top: 1px solid var(--line); }
.contact-lines li { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: center; }
.contact-lines .mono { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.contact-lines a { text-decoration: none; font-weight: 500; }
.contact-lines a:hover { color: var(--green); }
.copy { all: unset; cursor: pointer; margin-left: 10px; font-family: var(--mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line-strong); padding: 3px 8px; border-radius: 99px; }
.copy:hover { color: var(--fg); }
.copy:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }

.form { background: var(--plate); border: 1px solid var(--line); padding: clamp(22px, 3vw, 40px); display: grid; gap: 18px; border-radius: var(--r); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label { display: grid; gap: 8px; font-family: var(--mono); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.form input, .form select, .form textarea { font: inherit; font-family: var(--body); font-size: 1rem; letter-spacing: 0; text-transform: none; color: var(--fg); background: var(--bg); border: 1px solid var(--line-strong); border-radius: var(--r); padding: 13px 14px; width: 100%; transition: border-color .2s, box-shadow .2s; }
.form textarea { resize: vertical; min-height: 130px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(143,197,71,.2); }
.form .is-invalid { border-color: var(--danger); }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; justify-content: space-between; }
.form-status { font-size: .95rem; min-height: 1.5em; }
.form-status.ok { color: var(--green); }
.form-status.err { color: var(--danger); }
.form .flash { animation: flash 1.2s ease; }
@keyframes flash { 0%, 40% { box-shadow: 0 0 0 3px rgba(143,197,71,.55); border-color: var(--green); } }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } .contact-lines li { grid-template-columns: 1fr; gap: 4px; } }

/* ============ Footer ============ */
.footer { --line: #C9D3DA; border-top: 4px solid var(--green); background: #fff; padding-block: 56px 32px; color: #4F606E; font-size: .92rem; }
.footer h4 { color: var(--navy) !important; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 32px; }
.footer img { height: 54px; width: auto; margin-bottom: 14px; }
.footer h4 { color: var(--fg); font-size: 1rem; margin-bottom: 12px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer a { text-decoration: none; }
.footer a:hover { color: #4E7F1A; }
.footer-base { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-family: var(--mono); font-size: .74rem; letter-spacing: .06em; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* Floating WhatsApp */
.wa { position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 40; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: var(--green-ink); box-shadow: 0 10px 30px rgba(0,0,0,.4); transition: transform .2s; }
.wa:hover { transform: scale(1.08); }
.wa svg { width: 26px; height: 26px; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(5, 9, 13, .94); display: grid; grid-template-rows: 1fr auto; place-items: center; padding: 60px 16px 20px; }
.lightbox img { max-width: min(1400px, 100%); max-height: 80vh; object-fit: contain; border-radius: var(--r); }
.lightbox p { font-family: var(--mono); font-size: .8rem; letter-spacing: .06em; color: #C3D0DA; text-align: center; margin-top: 14px; }
.lb-btn { all: unset; cursor: pointer; position: absolute; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: rgba(255,255,255,.08); }
.lb-btn:hover { background: rgba(255,255,255,.18); }
.lb-btn:focus-visible { outline: 2px solid var(--green); }
.lb-btn svg { width: 22px; height: 22px; }
.lb-close { top: 14px; right: 14px; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }

/* Load-in for hero only (content is visible at rest) */
.hero-content > * { animation: rise .8s cubic-bezier(.2,.7,.2,1) both; }
.hero-content > *:nth-child(2) { animation-delay: .08s; }
.hero-content > *:nth-child(3) { animation-delay: .16s; }
.hero-content > *:nth-child(4) { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 200; background: var(--green); color: var(--green-ink); padding: 10px 16px; border-radius: var(--r); }
.skip:focus { left: 8px; }
.mt-l { margin-top: clamp(56px, 8vw, 96px); }
.mt-m { margin-top: 28px; }

/* ============ Multi-page additions ============ */
.page-hero { position: relative; isolation: isolate; overflow: hidden; padding: calc(var(--header-h) + clamp(56px, 9vw, 110px)) 0 clamp(48px, 7vw, 84px); border-bottom: 1px solid var(--line); }
.page-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; animation: slowzoom 24s ease-out both; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(11,19,27,.94) 0%, rgba(11,19,27,.72) 55%, rgba(11,19,27,.35) 100%), linear-gradient(0deg, var(--bg) 0%, rgba(11,19,27,0) 60%); }
.page-hero .wrap { display: grid; gap: 18px; }
.page-hero h1 { font-size: clamp(2.8rem, 7.5vw, 6.2rem); font-stretch: 68%; font-weight: 900; line-height: .92; max-width: 14ch; }
.page-hero .lead { color: #C3D0DA; }
.crumbs { font-family: var(--mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); display: flex; gap: 10px; flex-wrap: wrap; }
.crumbs a { text-decoration: none; color: var(--muted); }
.crumbs a:hover { color: var(--green); }
.crumbs span[aria-current] { color: var(--fg); }
.nav a[aria-current="page"] { color: var(--navy); border-color: var(--green); font-weight: 500; }

.intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.intro-copy { display: grid; gap: 20px; }
.intro-copy p { color: var(--muted); }
.intro-copy p strong { color: var(--fg); font-weight: 600; }
.intro-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.intro-photos img { width: 100%; height: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--r); }
.intro-photos img:nth-child(2) { margin-top: 48px; }
.link-arrow { font-family: var(--display); font-stretch: 85%; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; text-decoration: none; color: var(--green); display: inline-flex; align-items: center; gap: 10px; }
.link-arrow::after { content: ""; width: 26px; height: 2px; background: currentColor; transition: width .2s; }
.link-arrow:hover::after { width: 40px; }
@media (max-width: 900px) { .intro { grid-template-columns: 1fr; } }
.specs--home { margin-top: 0; }

.band { background-color: var(--navy); background-image: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px); background-size: 48px 48px; }
.band-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.band-grid .lead { color: #C9D9E6; }
.band svg { width: 100%; max-width: 420px; justify-self: center; }
@media (max-width: 860px) { .band-grid { grid-template-columns: 1fr; } }

.flag { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); border: 1px solid var(--line); background: var(--plate); border-radius: var(--r); overflow: hidden; }
.flag img { width: 100%; height: 100%; min-height: 340px; object-fit: cover; }
.flag-body { padding: clamp(24px, 4vw, 48px); display: grid; gap: 16px; align-content: center; }
.flag-body p { color: var(--muted); }
@media (max-width: 860px) { .flag { grid-template-columns: 1fr; } .flag img { min-height: 240px; aspect-ratio: 16/9; } }

.cta { border-top: 1px solid var(--line); background: radial-gradient(60% 80% at 100% 0%, rgba(15,64,103,.6), transparent 70%), var(--bg-2); }
.cta .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 28px; }
.cta h2 { max-width: 16ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.subnav { display: flex; flex-wrap: wrap; gap: 8px; }
.subnav a { text-decoration: none; }

/* ============ v3: built-up request, clients table, motion ============ */
.bu { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.bu-info { display: grid; gap: 24px; }
.beam-draw { width: 100%; max-width: 420px; justify-self: center; overflow: visible; }
.spec-table--stack { margin-top: 0; grid-template-columns: 1fr 1fr; }
.form--bu { background: rgba(8, 30, 48, .82); border-color: rgba(255,255,255,.22); }
.form--bu input, .form--bu select, .form--bu textarea { background: rgba(5, 18, 30, .7); }
.form--bu label, .radios legend { color: #C9D9E6; }
.radios { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.radios legend { font-family: var(--mono); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 10px; padding: 0; }
.radios label { display: inline-flex; align-items: center; gap: 8px; font-family: var(--body); font-size: .95rem; letter-spacing: 0; text-transform: none; color: var(--fg); cursor: pointer; }
.radios input { width: 18px; height: 18px; accent-color: var(--green); }
input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(1) opacity(.7); }
@media (max-width: 980px) { .bu { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .spec-table--stack { grid-template-columns: 1fr; } }

/* SVG draw-in */
.beam-draw .bd-shape { stroke-dasharray: 1200; stroke-dashoffset: 0; }
.beam-draw.is-drawing .bd-shape { animation: draw 2.2s cubic-bezier(.6,.1,.2,1) both; }
.beam-draw.is-drawing .bd-shape { fill-opacity: 0; animation: draw 2.2s cubic-bezier(.6,.1,.2,1) both, fillin .8s 1.8s ease both; }
.beam-draw.is-drawing .bd-welds path { animation: pop .4s ease both; }
.beam-draw.is-drawing .bd-welds path:nth-child(1) { animation-delay: 2.1s; } .beam-draw.is-drawing .bd-welds path:nth-child(2) { animation-delay: 2.2s; }
.beam-draw.is-drawing .bd-welds path:nth-child(3) { animation-delay: 2.3s; } .beam-draw.is-drawing .bd-welds path:nth-child(4) { animation-delay: 2.4s; }
.beam-draw.is-drawing .bd-dims, .beam-draw.is-drawing .bd-text { animation: fadein .6s 2.4s both; }
@keyframes draw { from { stroke-dashoffset: 1200; } to { stroke-dashoffset: 0; } }
@keyframes fillin { from { fill-opacity: 0; } to { fill-opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: scale(0); } to { opacity: 1; transform: none; } }
.bd-welds path { transform-box: fill-box; transform-origin: center; }

/* Clients table */
.clients-table td { vertical-align: middle; }
.clients-table td:first-child { width: 170px; }
.logo-cell { display: grid; place-items: center; width: 140px; height: 72px; background: #fff; border: 1px solid #DCE3E8; border-radius: var(--r); padding: 8px 12px; transition: transform .3s, box-shadow .3s; }
.logo-cell img { max-width: 100%; max-height: 54px; object-fit: contain; }
.logo-cell--mono { font-family: var(--display); font-stretch: 70%; font-weight: 900; font-size: 1.9rem; color: var(--navy); letter-spacing: .04em; background: linear-gradient(135deg, #fff 0%, #EEF3F7 100%); }
.clients-table tbody tr { transition: background .25s; }
.clients-table tbody tr:hover .logo-cell { transform: scale(1.06); box-shadow: 0 8px 22px rgba(10,30,48,.12); }
.clients-table b { font-weight: 600; }
@media (max-width: 700px) {
  .clients-table { min-width: 0; }
  .clients-table thead { display: none; }
  .clients-table tr { display: grid; grid-template-columns: 120px 1fr; gap: 4px 14px; padding: 14px; border-bottom: 1px solid var(--line); }
  .clients-table td { border: 0; padding: 0; }
  .clients-table td:first-child { grid-row: span 3; width: auto; }
  .logo-cell { width: 120px; height: 64px; }
}

/* Generic reveal system (JS only hides things that start below the fold) */
.rv { opacity: 0; transform: translateY(34px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1), clip-path 1.1s cubic-bezier(.6,.1,.2,1); transition-delay: var(--d, 0s); }
.rv--left { transform: translateX(-40px); }
.rv--right { transform: translateX(40px); }
.rv--zoom { transform: scale(.92); }
.rv--wipe { transform: none; opacity: 1; clip-path: inset(0 100% 0 0); }
.rv.in { opacity: 1; transform: none; clip-path: inset(0 0 0 0); }
.eyebrow::before { transition: width .6s .2s ease; }
.rv .eyebrow::before, .eyebrow.rv::before { width: 0; }
.in .eyebrow::before, .eyebrow.in::before { width: 22px; }

/* Parallax targets */
.hero-media img, .page-hero > img { will-change: transform; }
.px-wrap { overflow: hidden; }

/* Button shine */
.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%); transform: translateX(-120%); transition: transform .7s ease; }
.btn:hover::after { transform: translateX(120%); }

/* Cards lift */
.vm article, .values div, .licenses div, .hse-grid div, .group article { transition: background .25s, transform .3s, box-shadow .3s; }
.group article:hover, .flag:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0,0,0,.25); }
.flag { transition: transform .35s, box-shadow .35s; }
.flag img { transition: transform .8s ease; }
.flag:hover img { transform: scale(1.04); }
.about-photo, .intro-photos, .qa-docs > img { overflow: hidden; }
.about-photo img, .qa-docs img, .intro-photos img { transition: transform .8s ease; }
.about-photo:hover img, .qa-docs img:hover, .intro-photos img:hover { transform: scale(1.04); }

/* Bars + track line animate */
.bar-fill { width: 0; transition: width 1.2s cubic-bezier(.2,.7,.2,1); }
.bars.in .bar-fill, .bars:not(.rv-wait) .bar-fill { width: var(--w); }
.track li::before { transform-origin: 0 50%; transition: transform .8s ease; transition-delay: var(--d, 0s); }
.track.rv-wait li::before { transform: scaleX(0); }
.capbar-fill { transition: width .4s ease; }

/* Hero scroll cue */
.scroll-cue { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid rgba(231,237,242,.55); border-radius: 14px; z-index: 1; }
.scroll-cue::after { content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--green); animation: cue 1.6s ease-in-out infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
@media (max-width: 700px) { .scroll-cue { display: none; } }

/* Page transitions */
body { animation: pagein .5s ease both; }
body.is-leaving { opacity: 0; transition: opacity .25s ease; }
@keyframes pagein { from { opacity: 0; } to { opacity: 1; } }
.page-hero .wrap > * { animation: rise .8s cubic-bezier(.2,.7,.2,1) both; }
.page-hero .wrap > *:nth-child(2) { animation-delay: .08s; } .page-hero .wrap > *:nth-child(3) { animation-delay: .16s; } .page-hero .wrap > *:nth-child(4) { animation-delay: .24s; }

/* Back to top */
.to-top { position: fixed; right: 18px; bottom: calc(84px + env(safe-area-inset-bottom, 0px)); z-index: 40; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-strong); background: rgba(11,19,27,.85); color: var(--fg); display: grid; place-items: center; cursor: pointer; opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .3s, transform .3s; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top svg { width: 20px; height: 20px; }
.to-top:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.wa { animation: wa-in .6s 1s both; }
.wa::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--green); animation: ping 2.4s 2s ease-out infinite; }
@keyframes wa-in { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: none; } }
@keyframes ping { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.7); opacity: 0; } }

/* Figures underline */
.figure { position: relative; }
.figure::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 2px; width: 0; background: var(--green); transition: width 1s ease; }
.figure:first-child::after { left: 0; }
.figures.in .figure::after, .figures:not(.rv-wait) .figure::after { width: 46px; }

@media (prefers-reduced-motion: reduce) { .rv { opacity: 1 !important; transform: none !important; clip-path: none !important; } .bar-fill { width: var(--w) !important; } .wa::before { display: none; } }

/* ============ v4: alignment fixes ============ */
/* Specialization cards: titles and text line up across the row */
.spec { align-items: stretch; }
.spec-body { align-self: end; width: 100%; align-content: start; }
@media (max-width: 900px) { .spec-body { min-height: 0; } }
/* Home intro photos: same top and bottom edge */
.intro-photos img:nth-child(2) { margin-top: 0; }
.intro-photos { align-items: stretch; }
/* Tables never show an inner vertical scrollbar */
.table-wrap { overflow-y: hidden; }
.table-wrap tr.rv { transform: none; }
/* Split headings: heading and intro text share the same baseline area */
.head--split { align-items: end; }
.head--split > .lead { padding-bottom: .35em; }
/* Team: both columns start at the same line */
.team > div:last-child { padding-top: 0; }
.team > div:last-child > h3 { margin-top: calc(.78rem * 1.6 + 28px); }
@media (max-width: 860px) { .team > div:last-child > h3 { margin-top: 0; } }
/* Hero: scroll cue and caption never collide with content */
@media (max-width: 1100px) { .scroll-cue { display: none; } }
@media (max-width: 1000px) { .hero-caption { display: none; } }
.hero-actions { align-items: center; }
/* Services: tab list and panel share a top edge */
.svc { align-items: start; }
.svc-tabs { border-top: 0; }
.svc-tab:first-child { border-top: 1px solid var(--line); }
/* Built-up request: drawing aligns with the left text edge, form top aligns with drawing */
.bu-info { align-content: start; }
.beam-draw { justify-self: start; max-width: 380px; margin-left: -24px; }
@media (max-width: 980px) { .beam-draw { justify-self: center; margin-left: 0; } }
/* Group logos and licence cards equal height */
.licenses > div, .group article { height: 100%; }
.group { align-items: stretch; }
/* Footer columns top-aligned */
.footer-grid { align-items: start; }
