/* ============ HERO ============ */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 620px; overflow: hidden; background: #000; }
.slides { position: absolute; inset: 0; }
.slide { position: absolute; inset: 0; overflow: hidden; visibility: hidden; }
.slide.is-active, .slide.is-in { visibility: visible; }
.slide.is-in { z-index: 2; }
.slide video { width: 100%; height: 100%; }
/* intentionally light scrim — see QA-06 */
.hero-shade { position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: linear-gradient(180deg, rgba(10,14,19,.5) 0%, rgba(10,14,19,0) 28%, rgba(10,14,19,0) 55%, rgba(10,14,19,.62) 100%); }
.hero-hex { position: absolute; z-index: 3; right: -6vw; top: 8vh; width: min(52vw, 640px); fill: none; stroke: rgba(255,255,255,.22); stroke-width: .6; pointer-events: none; mix-blend-mode: overlay; }
.hero-hex circle { fill: var(--flare); stroke: none; }
.hero-copy { position: absolute; z-index: 4; left: 0; right: 0; bottom: clamp(28px, 6vh, 64px); }
.titles { display: grid; }
.titles .t { grid-area: 1 / 1; visibility: hidden; }
.titles .t.is-active { visibility: visible; }
.hero-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-top: clamp(24px, 4vh, 44px); flex-wrap: wrap; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-tabs { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.hero-tabs button { display: block; text-align: left; width: clamp(110px, 10vw, 150px); font-size: 13px; padding: 6px 0 0; opacity: .55; transition: opacity .3s; }
.hero-tabs button b { font-family: var(--mono); font-weight: 400; font-size: 11px; margin-right: 6px; color: var(--flare); }
.hero-tabs button i { display: block; height: 2px; margin-top: 8px; background: rgba(255,255,255,.22); position: relative; overflow: hidden; }
.hero-tabs button i::after { content: ''; position: absolute; inset: 0; background: var(--flare); transform: scaleX(var(--p, 0)); transform-origin: left; }
.hero-tabs button.is-active, .hero-tabs button:hover { opacity: 1; }
.hero-count { position: absolute; z-index: 4; right: var(--gut); top: 50%; transform: translateY(-50%); display: flex; align-items: baseline; gap: 6px; font-size: 13px; color: var(--mute-d); }
.hc-roll { height: 1.1em; overflow: hidden; font-size: 48px; line-height: 1.1; display: flex; flex-direction: column; color: var(--flare); }

.hero-chip { position: absolute; z-index: 4; right: var(--gut); top: clamp(90px, 16vh, 150px); width: 300px; height: 96px; perspective: 900px; }
.chip { position: absolute; inset: 0; padding: 16px 20px; border-radius: 4px 22px 4px 22px;
  background: rgba(16,22,30,.5); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid rgba(255,255,255,.16); border-left: 3px solid var(--flare); box-shadow: 0 30px 60px -20px rgba(0,0,0,.6);
  opacity: 0; transform: rotateX(-70deg) translateY(20px); transform-origin: 50% 0; transition: opacity .6s, transform .9s var(--ease); }
.chip.is-on { opacity: 1; transform: none; }
.chip small { display: block; font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--cyan); }
.chip b { display: block; font-size: 20px; font-weight: 600; letter-spacing: -.02em; line-height: 1.3; }
.chip span { font-size: 12.5px; color: var(--mute-d); }
@media (max-width: 900px) {
  .hero-chip { left: var(--gut); right: auto; top: 86px; width: min(300px, calc(100% - 2 * var(--gut))); }
  .hero-count { display: none; }
  .hero-tabs { width: 100%; }
  .hero-tabs li { flex: 1; }
  .hero-tabs button { width: 100%; font-size: 11px; }
}

/* ============ INTRO ============ */
.intro { padding-block: clamp(100px, 14vw, 200px); }
.intro-big { font-size: clamp(28px, 4.2vw, 64px); line-height: 1.08; letter-spacing: -.035em; font-weight: 500; margin: 0; max-width: 19em; font-stretch: 90%; }
.intro-big em { font-family: var(--serif); font-weight: 300; color: var(--flare); font-stretch: normal; }
.intro-grid { display: grid; grid-template-columns: 1.1fr .8fr 1fr; gap: clamp(16px, 2.4vw, 36px); margin-top: clamp(60px, 8vw, 110px); align-items: end; }
.intro-a { aspect-ratio: 4/5; border-radius: 4px 80px 4px 4px; transform-style: preserve-3d; }
.intro-b { aspect-ratio: 3/4; border-radius: 4px; margin-bottom: 12%; }
.glare { position: absolute; inset: 0; pointer-events: none; opacity: 0; mix-blend-mode: overlay; z-index: 2; }
.kv { display: grid; gap: 0; margin: 34px 0 0; }
.kv div { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0; border-top: 1px solid var(--line-d); }
.kv dt { font-size: 14px; color: var(--mute-d); }
.kv dd { margin: 0; font-size: 34px; font-weight: 600; letter-spacing: -.03em; font-stretch: 85%; }
@media (max-width: 900px) {
  .intro-grid { grid-template-columns: 1fr 1fr; }
  .intro-txt { grid-column: 1 / -1; }
}

/* ============ CAPABILITIES ============ */
.caps { position: relative; background: var(--ink-2); }
.caps-pin { height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; gap: clamp(26px, 5vh, 56px); }
.caps-head { display: grid; grid-template-columns: 1fr; }
.caps-bar { height: 2px; background: var(--line-d); margin-top: 26px; max-width: 360px; }
.caps-bar i { display: block; height: 100%; background: var(--flare); transform: scaleX(0); transform-origin: left; }
.caps-track { display: flex; gap: 22px; padding: 0 var(--gut); width: max-content; will-change: transform; }
.cap { width: clamp(280px, 27vw, 400px); flex: none; background: var(--ink-3); border: 1px solid var(--line-d); border-radius: 4px 4px 40px 4px; padding: 14px 14px 26px; position: relative; transition: border-color .4s; }
.cap:hover { border-color: rgba(255,91,31,.6); }
.cap-media { aspect-ratio: 16/10; overflow: hidden; border-radius: 2px 2px 26px 2px; background: #000; }
.cap-media video { width: 100%; height: 100%; transform: scale(1.04); transition: transform 1.2s var(--ease), filter .6s; filter: grayscale(.7) contrast(1.05); }
.cap:hover .cap-media video { transform: scale(1.12); filter: none; }
.cap-n { position: absolute; top: 24px; right: 26px; font-size: 12px; color: var(--flare); background: rgba(10,14,19,.7); padding: 3px 8px; border-radius: 99px; }
.cap h3 { font-size: 24px; letter-spacing: -.02em; font-weight: 600; margin: 20px 8px 8px; line-height: 1.12; font-stretch: 88%; }
.cap p { font-size: 14.5px; color: var(--mute-d); margin: 0 8px; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 16px 8px 0; }
.tags li { font-family: var(--mono); font-size: 11px; border: 1px solid var(--line-d); padding: 4px 9px; border-radius: 99px; color: var(--cyan); }
@media (max-width: 900px) {
  .caps-pin { height: auto; padding-block: 90px; }
  .caps-track { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; }
  .cap { scroll-snap-align: start; width: 82vw; }
}

/* ============ PFD ============ */
.flow { padding-block: clamp(90px, 12vw, 170px); }
.flow-head { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: end; margin-bottom: clamp(40px, 6vw, 70px); }
.pfd-wrap { display: grid; grid-template-columns: 1fr 300px; gap: 24px; align-items: stretch; }
.pfd { width: 100%; height: auto; background:
  linear-gradient(var(--line-l) 1px, transparent 1px) 0 0/40px 40px,
  linear-gradient(90deg, var(--line-l) 1px, transparent 1px) 0 0/40px 40px, #F7F8F6;
  border: 1px solid var(--line-l); border-radius: 4px; color: var(--ink); font-family: var(--mono); }
.pfd .ln { fill: none; stroke: #2B3540; stroke-width: 2.4; stroke-dasharray: 10 8; animation: flow 1.2s linear infinite; }
.pfd .ln.hot { stroke: var(--flare); }
.pfd .ln.gas { stroke: #1AA99C; stroke-dasharray: 3 6; }
@keyframes flow { to { stroke-dashoffset: -18; } }
html.rm .pfd .ln { animation: none; }
.pfd .eq { cursor: pointer; outline: none; }
.pfd .eq > rect, .pfd .eq > circle, .pfd .eq > path:first-child { fill: #fff; stroke: var(--ink); stroke-width: 2.4; transition: fill .3s, stroke .3s; }
.pfd .eq .sym { fill: none; stroke: #6B7681; stroke-width: 1.6; }
.pfd .eq .flame { stroke: var(--flare); stroke-width: 2.4; }
.pfd .eq text { font-size: 13px; text-anchor: middle; font-weight: 500; fill: var(--ink); }
.pfd .eq:hover > rect, .pfd .eq:hover > circle, .pfd .eq:hover > path:first-child,
.pfd .eq.is-on > rect, .pfd .eq.is-on > circle, .pfd .eq.is-on > path:first-child,
.pfd .eq:focus-visible > rect { fill: #FFE6DB; stroke: var(--flare); }
.pfd .st circle { fill: var(--ink); }
.pfd .st text { fill: #fff; font-size: 12px; text-anchor: middle; }
.pfd .lbl { font-size: 12px; fill: #56616B; }
.eq-card { background: var(--ink); color: var(--paper); border-radius: 4px 4px 40px 4px; padding: 26px; position: relative; overflow: hidden; }
.eq-card::before { content: ''; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; background: var(--flare); clip-path: polygon(25% 0,75% 0,100% 50%,75% 100%,25% 100%,0 50%); opacity: .9; }
.eq-card small { color: var(--cyan); font-size: 12px; letter-spacing: .1em; position: relative; }
.eq-card h3 { font-size: 26px; letter-spacing: -.02em; line-height: 1.1; margin: 10px 0 10px; font-weight: 600; position: relative; font-stretch: 88%; }
.eq-card p { font-size: 14px; color: var(--mute-d); margin: 0 0 18px; }
.eq-card dl { margin: 0; display: grid; gap: 0; }
.eq-card dl div { display: flex; justify-content: space-between; padding: 9px 0; border-top: 1px solid var(--line-d); font-size: 13.5px; }
.eq-card dt { color: var(--mute-d); }
.eq-card dd { margin: 0; font-family: var(--mono); }
.stream-tbl { margin-top: 24px; overflow-x: auto; border: 1px solid var(--line-l); border-radius: 4px; background: #fff; }
.stream-tbl table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; }
.stream-tbl caption { text-align: left; padding: 14px 18px; font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--mute-l); border-bottom: 1px solid var(--line-l); }
.stream-tbl th, .stream-tbl td { padding: 12px 18px; text-align: left; border-bottom: 1px solid var(--line-l); }
.stream-tbl th { font-weight: 500; font-size: 12px; color: var(--mute-l); }
.stream-tbl td:nth-child(n+3) { font-family: var(--mono); font-size: 13px; }
.stream-tbl tr:last-child td { border-bottom: 0; }
.stream-tbl tbody tr:hover { background: #FFF3EE; }
@media (max-width: 900px) {
  .flow-head, .pfd-wrap { grid-template-columns: 1fr; }
  .pfd-wrap { overflow-x: auto; }
}

/* ============ CALCULATOR ============ */
.calc { position: relative; padding-block: clamp(90px, 12vw, 170px); overflow: hidden; }
.calc-bg { position: absolute; inset: 0; opacity: .28; }
.calc-bg video { width: 100%; height: 100%; }
.calc-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--ink) 25%, rgba(10,14,19,.4)); }
.calc-grid { position: relative; display: grid; grid-template-columns: 1fr 460px; gap: 60px; align-items: center; }
.formula { display: inline-block; margin-top: 26px; font-size: 18px; padding: 12px 18px; border: 1px solid var(--line-d); border-radius: 4px; color: var(--cyan); background: rgba(70,224,210,.06); }
.calc-card { background: rgba(16,22,30,.72); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid var(--line-d); border-radius: 4px 4px 44px 4px; padding: 26px; display: grid; gap: 14px; }
.units { display: flex; background: rgba(255,255,255,.06); border-radius: 99px; padding: 4px; }
.units button { flex: 1; padding: 9px; border-radius: 99px; font-size: 13px; transition: background .3s, color .3s; }
.units button.is-on { background: var(--paper); color: var(--ink); }
.calc-card label { display: grid; gap: 6px; }
.calc-card label span { font-size: 13px; color: var(--mute-d); display: flex; justify-content: space-between; }
.calc-card label i { font-style: normal; font-family: var(--mono); color: var(--cyan); }
.calc-card input { background: rgba(0,0,0,.35); border: 1px solid var(--line-d); border-radius: 6px; padding: 12px 14px; font-family: var(--mono); font-size: 15px; transition: border-color .3s; }
.calc-card input:focus { border-color: var(--flare); outline: none; }
.calc-out { margin-top: 6px; padding-top: 18px; border-top: 1px solid var(--line-d); display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: end; }
.calc-out small { display: block; font-size: 12px; color: var(--mute-d); font-family: var(--mono); text-transform: uppercase; letter-spacing: .1em; }
.calc-out b { font-size: 44px; font-weight: 600; letter-spacing: -.03em; font-stretch: 85%; line-height: 1; }
.regime span { display: inline-block; padding: 7px 14px; border-radius: 99px; font-size: 13px; font-weight: 600; background: var(--flare); color: #fff; }
.regime span[data-r="lam"] { background: var(--cyan); color: var(--ink); }
.regime span[data-r="tr"] { background: var(--amber); color: var(--ink); }
.meter { grid-column: 1 / -1; position: relative; height: 6px; border-radius: 9px; background: linear-gradient(90deg, var(--cyan) 0 34%, var(--amber) 34% 40%, var(--flare) 40%); margin: 6px 0 22px; }
.meter i { position: absolute; top: -5px; width: 4px; height: 16px; background: #fff; border-radius: 2px; left: 0; transition: left .6s var(--ease); box-shadow: 0 0 0 3px rgba(0,0,0,.4); }
.meter em { position: absolute; top: 12px; transform: translateX(-50%); font-style: normal; font-family: var(--mono); font-size: 10.5px; color: var(--mute-d); }
@media (max-width: 900px) { .calc-grid { grid-template-columns: 1fr; } }

/* ============ ZOOM ============ */
.zoom { height: 240vh; position: relative; }
.zoom-stick { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; place-items: center; overflow: hidden; }
.zoom-frame { position: relative; z-index: 2; width: min(34vw, 420px); height: min(46vh, 520px); border-radius: 4px 140px 4px 140px; overflow: hidden; }
.zoom-frame video { width: 100%; height: 100%; }
.zoom-frame::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(10,14,19,.85)); }
.zoom-word { position: absolute; z-index: 1; top: 50%; transform: translateY(-50%); font-size: clamp(64px, 16vw, 260px); font-weight: 700; letter-spacing: -.06em; margin: 0; font-stretch: 75%; line-height: 1; }
.zoom-word em { font-family: var(--serif); font-weight: 300; color: var(--flare); font-stretch: normal; }
.zw-l { left: 3vw; } .zw-r { right: 3vw; }
.zoom-cap { position: absolute; z-index: 3; bottom: 7vh; left: 0; right: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; opacity: 0; }
.zoom-cap div { border-top: 1px solid rgba(255,255,255,.3); padding-top: 14px; font-size: 44px; font-weight: 600; letter-spacing: -.03em; font-stretch: 85%; }
.zoom-cap span { display: block; font-size: 13px; letter-spacing: 0; color: var(--mute-d); font-weight: 400; font-stretch: normal; }
html.rm .zoom, html.no-js .zoom { height: auto; }
html.rm .zoom-stick, html.no-js .zoom-stick { position: relative; }
html.rm .zoom-cap, html.no-js .zoom-cap { opacity: 1; }
@media (max-width: 900px) { .zoom-cap { grid-template-columns: 1fr 1fr; } .zoom-cap div { font-size: 32px; } }

/* ============ SCALE-UP ============ */
.scale { padding-block: clamp(90px, 12vw, 170px); }
.scale-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2vw, 28px); margin-top: clamp(40px, 6vw, 70px); perspective: 1200px; }
.sc { margin: 0; transform-style: preserve-3d; }
.sc:nth-child(2) { margin-top: 70px; } .sc:nth-child(3) { margin-top: 140px; }
.sc .media { aspect-ratio: 3/4; border-radius: 4px 4px 60px 4px; }
.sc figcaption { margin-top: 16px; font-size: 15px; color: var(--mute-d); }
.sc figcaption b { display: block; color: var(--flare); font-weight: 500; font-size: 12px; letter-spacing: .1em; margin-bottom: 6px; }
@media (max-width: 760px) { .scale-row { grid-template-columns: 1fr; } .sc:nth-child(n) { margin-top: 0; } }

/* ============ PROJECTS ============ */
.projects { position: relative; height: 100vh; height: 100svh; min-height: 640px; overflow: hidden; background: #000; }
.pj-media { position: absolute; inset: 0; cursor: pointer; }
.pj-slide { position: absolute; inset: 0; overflow: hidden; visibility: hidden; }
.pj-slide.is-active, .pj-slide.is-in { visibility: visible; }
.pj-slide.is-in { z-index: 2; }
.pj-slide img { width: 100%; height: 100%; object-fit: cover; }
.pj-shade { position: absolute; inset: 0; z-index: 3; pointer-events: none; background: linear-gradient(90deg, rgba(10,14,19,.9) 0%, rgba(10,14,19,.4) 55%, rgba(10,14,19,.1)); }
.pj-copy { position: absolute; z-index: 4; inset: 0; display: flex; flex-direction: column; justify-content: center; pointer-events: none; }
.pj-copy > * { pointer-events: auto; }
.pj-list { display: grid; max-width: 640px; }
.pj { grid-area: 1/1; visibility: hidden; }
.pj.is-active { visibility: visible; }
.pj small { color: var(--cyan); font-size: 12px; letter-spacing: .08em; }
.pj h3 { font-size: clamp(40px, 6vw, 92px); letter-spacing: -.04em; line-height: .95; margin: 14px 0 18px; font-weight: 600; font-stretch: 82%; }
.pj p { font-size: 18px; color: var(--mute-d); margin: 0; max-width: 28em; }
.pj-ctrl { display: flex; align-items: center; gap: 12px; margin-top: 40px; }
.pj-idx { font-size: 13px; color: var(--mute-d); margin-right: 14px; }
.pj-idx b { color: var(--paper); font-size: 28px; font-weight: 500; }
.pj-ctrl button { width: 54px; height: 54px; border-radius: 50%; border: 1px solid rgba(255,255,255,.4); font-size: 20px; transition: background .3s, color .3s; }
.pj-ctrl button:hover { background: var(--flare); border-color: var(--flare); }

/* ============ TEAM ============ */
.team { padding-block: clamp(90px, 12vw, 170px); }
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 1.6vw, 22px); margin-top: clamp(40px, 6vw, 70px); }
.tm { margin: 0; position: relative; transform-style: preserve-3d; border-radius: 4px 4px 40px 4px; overflow: hidden; background: var(--paper-2); }
.tm-img { aspect-ratio: 4/5; overflow: hidden; }
.tm-img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: filter .6s; }
.tm:hover .tm-img img { filter: none; }
.tm figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 18px 18px; color: #fff; background: linear-gradient(transparent, rgba(10,14,19,.85)); z-index: 3; }
.tm figcaption b { display: block; font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.tm figcaption span { font-size: 13px; color: rgba(255,255,255,.72); }
.tm .li { position: absolute; right: 16px; bottom: 18px; width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.14); display: grid; place-items: center; }
.tm .li svg { width: 14px; height: 14px; }
.tm .li:hover { background: var(--flare); }
@media (max-width: 900px) { .team-grid { grid-template-columns: 1fr 1fr; } }

/* ============ RFQ ============ */
.rfq { padding-block: clamp(90px, 12vw, 170px); background: var(--ink-2); }
.rfq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 90px); }
.rfq-img { aspect-ratio: 16/10; margin-top: 36px; border-radius: 4px 4px 60px 4px; }
.rfq-form { display: grid; gap: 16px; align-content: start; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.rfq-form label { display: grid; gap: 7px; }
.rfq-form label > span, .rfq-form legend { font-size: 13px; color: var(--mute-d); }
/* intentionally 14px — see QA-04 */
.rfq-form input:not([type=checkbox]), .rfq-form select, .rfq-form textarea { font-size: 14px; background: rgba(255,255,255,.04); border: 1px solid var(--line-d); border-radius: 6px; padding: 14px 16px; transition: border-color .3s, background .3s; width: 100%; }
.rfq-form select option { background: var(--ink-2); }
.rfq-form input:focus, .rfq-form select:focus, .rfq-form textarea:focus { outline: none; border-color: var(--flare); background: rgba(255,91,31,.05); }
.rfq-form fieldset { border: 0; padding: 0; margin: 0; }
.rfq-form legend { margin-bottom: 8px; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { display: block; }
.chips input { position: absolute; opacity: 0; }
.chips span { display: inline-block; padding: 9px 15px; border-radius: 99px; border: 1px solid var(--line-d); font-size: 13.5px; cursor: pointer; transition: background .3s, color .3s, border-color .3s; }
.chips input:checked + span { background: var(--flare); border-color: var(--flare); color: #fff; }
.chips input:focus-visible + span { outline: 2px solid var(--cyan); outline-offset: 2px; }
.rfq-form .btn { justify-self: start; margin-top: 6px; }
@media (max-width: 900px) { .rfq-grid, .row2 { grid-template-columns: 1fr; } }

.toast { position: fixed; z-index: 85; left: 50%; bottom: 90px; transform: translate(-50%, 30px); opacity: 0; pointer-events: none;
  background: var(--paper); color: var(--ink); padding: 12px 20px; border-radius: 99px; font-size: 14px; font-weight: 500; transition: opacity .4s, transform .5s var(--ease); box-shadow: 0 20px 40px -10px rgba(0,0,0,.5); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
