/* N'JEPELE – "the commissioning sheet".
   Archivo (variable width) for words, DM Mono for labels, tags and data.
   Red is a signal colour: lamps, ticks, active states and calls to action. */

@font-face { font-family: "Archivo"; src: url(/assets/fonts/archivo.woff2) format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap; }
@font-face { font-family: "DM Mono"; src: url(/assets/fonts/dm-mono-400.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "DM Mono"; src: url(/assets/fonts/dm-mono-500.woff2) format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  --ink: #0e0f10;
  --ink-2: #16181a;
  --paper: #f4f2ee;
  --white: #ffffff;
  --text: #16181a;
  --muted: #5b5f64;
  --muted-light: rgba(255, 255, 255, 0.72);
  --line: rgba(14, 15, 16, 0.14);
  --line-dark: rgba(255, 255, 255, 0.14);
  --red: #d62718;
  --red-text: #b51f12;
  --red-on-ink: #ff5a46;
  --green: #1fa855;
  --amber: #f5b400;
  --wrap: 1280px;
  --gutter: clamp(16px, 4vw, 40px);
  --header: 68px;
  --section-y: clamp(72px, 9vw, 128px);
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "DM Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: var(--header); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
picture { display: block; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
sub { font-size: .7em; line-height: 0; vertical-align: -0.15em; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.contact :focus-visible, .btn--red:focus-visible, .tag:focus-visible { outline-color: var(--white); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--red); color: var(--white); text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- type ---------- */
.lbl {
  font-family: var(--mono); font-weight: 500; font-size: 12px; line-height: 1.3;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
}
.lbl--red { color: var(--red-text); }
.index { display: flex; gap: 10px; font-family: var(--mono); font-weight: 500; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--red-text); margin-bottom: 22px; }
.index--light { color: var(--red-on-ink); }
.index--white { color: var(--white); }
.display {
  font-size: clamp(44px, min(5.2vw, 9.2vh), 84px); line-height: .95; font-weight: 740; font-stretch: 86%;
  letter-spacing: -0.035em; max-width: 13ch; text-wrap: balance;
}
.h2 {
  font-size: clamp(34px, 4.4vw, 60px); line-height: 1; font-weight: 720; font-stretch: 90%;
  letter-spacing: -0.03em; max-width: 17ch; text-wrap: balance;
}
.h3 { font-size: clamp(22px, 2vw, 26px); line-height: 1.15; font-weight: 680; letter-spacing: -0.015em; }
.lead { font-size: clamp(17px, 1.5vw, 19px); color: var(--muted); max-width: 46ch; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 11px 18px; border-radius: 3px; border: 1px solid transparent;
  font-weight: 620; font-size: 15px; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--lg { min-height: 52px; padding: 14px 22px; font-size: 16px; }
.btn--red { background: var(--red); color: var(--white); }
.btn--red:hover { background: var(--red-text); }
.btn--ghost { border-color: rgba(255, 255, 255, 0.4); color: var(--white); }
.btn--ghost:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.06); }
.btn--white { background: var(--white); color: var(--ink); }
.btn--white svg { color: var(--green); }
.btn--white:hover { background: var(--paper); }
.btn--dark { background: var(--ink); color: var(--white); }
.btn--dark svg { color: #4fd17f; }
.btn--dark:hover { background: #2a2d30; }
.btn--line { border-color: var(--line); color: var(--text); }
.btn--wa { border-color: rgba(255, 255, 255, 0.35); color: var(--white); padding: 9px 14px; min-height: 40px; }
.btn--wa svg { color: #4fd17f; }
.btn--wa:hover { background: var(--red); border-color: var(--red); }
.btn--wa:hover svg { color: var(--white); }

/* ---------- corner ticks ---------- */
.frame { position: relative; }
.frame::after {
  content: ""; position: absolute; inset: -7px; pointer-events: none; z-index: 2;
  color: rgba(14, 15, 16, 0.5);
  --t: linear-gradient(currentColor, currentColor);
  background:
    var(--t) top left / 10px 1px no-repeat, var(--t) top left / 1px 10px no-repeat,
    var(--t) top right / 10px 1px no-repeat, var(--t) top right / 1px 10px no-repeat,
    var(--t) bottom left / 10px 1px no-repeat, var(--t) bottom left / 1px 10px no-repeat,
    var(--t) bottom right / 10px 1px no-repeat, var(--t) bottom right / 1px 10px no-repeat;
  transition: opacity .25s, inset .25s;
}
.frame--light::after { inset: 12px; color: rgba(255, 255, 255, 0.85); }
.frame--hover::after { opacity: 0; inset: 18px; }
.frame--hover:hover::after, .frame--hover:focus-visible::after { opacity: 1; inset: 12px; }

/* equipment tag on photos */
.tag {
  position: absolute; z-index: 3; left: 30px; top: 30px;
  background: var(--red); color: var(--white); border-radius: 2px; padding: 6px 9px;
  font-family: var(--mono); font-weight: 500; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; line-height: 1.2;
}
.tag--ink { background: var(--ink); top: auto; bottom: 24px; }

/* ---------- header ---------- */
.header { position: fixed; inset: 0 0 auto; z-index: 50; color: var(--white); background: var(--ink); transition: box-shadow .3s; }
.header.is-scrolled { box-shadow: 0 1px 0 var(--line-dark); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header); }
.header__logo { display: block; width: 196px; flex: none; }
.header__logo img { width: 100%; height: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav__list { display: flex; gap: 26px; }
@media (max-width: 1180px) and (min-width: 981px) { .nav { gap: 20px; } .nav__list { gap: 18px; } .header__logo { width: 156px; } }
.nav__list a { text-decoration: none; font-size: 14px; font-weight: 550; letter-spacing: 0.01em; color: var(--muted-light); padding: 8px 0; position: relative; transition: color .2s; }
.nav__list a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.nav__list a:hover, .nav__list a[aria-current] { color: var(--white); }
.nav__list a:hover::after, .nav__list a[aria-current]::after { transform: scaleX(1); }
.nav__direct { display: none; }
.lang { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.08em; }
.lang__item { text-decoration: none; opacity: .62; padding: 10px 3px; }
.lang__item:hover { opacity: 1; }
.lang__item.is-current { opacity: 1; box-shadow: inset 0 -2px 0 var(--red); padding-bottom: 6px; }
.lang__sep { opacity: .35; }
.menu-btn { display: none; }

@media (max-width: 980px) {
  .header__logo { width: 140px; position: relative; z-index: 2; }
  .menu-btn {
    display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
    background: none; border: 1px solid rgba(255, 255, 255, 0.35); border-radius: 3px;
    padding: 8px 14px; cursor: pointer; font-size: 14px; font-weight: 600; position: relative; z-index: 2;
  }
  .menu-btn__bars, .menu-btn__bars::before, .menu-btn__bars::after { display: block; width: 18px; height: 1.5px; background: currentColor; transition: transform .25s, background-color .25s; }
  .menu-btn__bars { position: relative; }
  .menu-btn__bars::before, .menu-btn__bars::after { content: ""; position: absolute; left: 0; }
  .menu-btn__bars::before { top: -6px; }
  .menu-btn__bars::after { top: 6px; }
  .menu-open .menu-btn__bars { background: transparent; }
  .menu-open .menu-btn__bars::before { transform: translateY(6px) rotate(45deg); }
  .menu-open .menu-btn__bars::after { transform: translateY(-6px) rotate(-45deg); }
  .nav {
    position: fixed; inset: 0; background: var(--ink); overflow-y: auto;
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 28px;
    padding: calc(var(--header) + 32px) var(--gutter) 40px;
    opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s;
  }
  .menu-open .nav { opacity: 1; visibility: visible; transition: opacity .25s, visibility 0s; }
  .menu-open { overflow: hidden; }
  .nav__list { flex-direction: column; gap: 4px; }
  .nav__list a { display: block; font-size: 34px; line-height: 1.15; font-weight: 700; font-stretch: 90%; letter-spacing: -0.02em; color: var(--white); padding: 6px 0; }
  .nav__list a::after { display: none; }
  .nav__direct { display: grid; gap: 0; border-top: 1px solid var(--line-dark); }
  .nav__direct li { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line-dark); }
  .nav__direct .lbl { color: var(--muted-light); }
  .nav__nums { display: grid; justify-items: end; gap: 12px; }
  .nav__direct .nav__nums a { padding: 6px 0; margin: -6px 0; }
  .nav__direct a { padding: 14px 0; margin: -14px 0; font-family: var(--mono); font-size: 14px; text-decoration: none; text-align: right; overflow-wrap: anywhere; }
  .nav__wa { display: flex; width: 100%; min-height: 52px; margin-top: auto; background: var(--red); border-color: var(--red); font-size: 16px; }
  .nav__wa svg { color: var(--white); }
  .lang--nav { font-size: 14px; }
}

/* ---------- hero ---------- */
.hero {
  display: grid; grid-template-columns: minmax(0, 46fr) minmax(0, 54fr);
  min-height: 100svh; padding-top: var(--header); background: var(--ink); color: var(--white);
}
.hero__panel { display: flex; align-items: center; padding: clamp(24px, 4vh, 48px) clamp(24px, 4vw, 64px) clamp(28px, 5vh, 56px) max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); }
.hero__body { max-width: 620px; }
.specline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: 28px; font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--red-on-ink); }
.specline li + li::before { content: ""; display: inline-block; width: 1px; height: 14px; background: var(--line-dark); margin-right: 14px; vertical-align: -2px; }
.hero__lead { margin-top: 26px; font-size: clamp(17px, 1.4vw, 19px); color: var(--muted-light); max-width: 44ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero__media { position: relative; min-height: 0; }
.hero__media picture, .hero__media img { width: 100%; height: 100%; }
.hero__media img { object-fit: cover; object-position: 60% 45%; }
.spec { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-dark); }
.spec__cell { padding: 22px 24px 24px; border-left: 2px solid var(--red); }
.spec__cell + .spec__cell { border-left-color: var(--red); }
.spec__cell .lbl { color: var(--muted-light); }
.spec dd { margin-top: 8px; font-size: 20px; font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; }
@media (min-width: 981px) {
  .spec { padding-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); gap: 0 24px; }
  .spec__cell { padding-left: 20px; }
  .hero { grid-template-rows: 1fr auto; }
}
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero__panel { padding: 44px var(--gutter) 40px; }
  .display { font-size: clamp(40px, 11vw, 64px); }
  .specline { flex-direction: column; align-items: flex-start; gap: 6px; }
  .specline li + li::before { display: none; }
  .hero__media { aspect-ratio: 4 / 3; }
  .spec { grid-template-columns: 1fr 1fr; padding: 0; }
  .spec__cell { padding: 18px var(--gutter) 20px; border-left: 0; border-top: 2px solid var(--red); }
  .spec__cell:nth-child(odd) { border-right: 1px solid var(--line-dark); }
  .spec dd { font-size: 17px; }
}
@media (max-width: 420px) { .hero__actions .btn { width: 100%; } }

/* ---------- sections ---------- */
.section { padding-block: var(--section-y); }
.section--paper { background: var(--paper); }
.section--white { background: var(--white); }
.section--ink { background: var(--ink); color: var(--white); }
.section--ink .lead { color: var(--muted-light); }
.head { margin-bottom: clamp(40px, 5vw, 72px); }
.head .lead { margin-top: 20px; }
.head--split { display: grid; grid-template-columns: 1fr minmax(0, 420px); gap: 24px 64px; align-items: end; }
.head--split .lead { margin-top: 0; }
@media (max-width: 860px) { .head--split { grid-template-columns: 1fr; } }

/* ---------- how it works (diagram) ---------- */
.sys__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.sys__stage { position: sticky; top: calc(var(--header) + 28px); }
.sys__frame { background: var(--white); border: 1px solid var(--line); padding: clamp(12px, 2vw, 24px); }
.sys__readout {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; margin-top: clamp(12px, 2vw, 24px);
  background: var(--ink); color: var(--white); font-family: var(--mono); font-size: 13px; letter-spacing: 0.04em;
}
.sys__readout .lbl { color: var(--muted-light); }
.sys__value { flex: 1; }
.sys__count { color: var(--red-on-ink); font-variant-numeric: tabular-nums; }
.sys__tabs { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 12px; border-top: 1px solid var(--line); }
.sys__tab {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-height: 52px; padding: 10px 4px 10px 0;
  background: none; border: 0; border-top: 2px solid transparent; margin-top: -1px; cursor: pointer; text-align: left;
  font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted);
}
.sys__tab span { color: var(--muted); }
.sys__tab[aria-current] span { color: inherit; }
.sys__tab[aria-current] { color: var(--red-text); border-top-color: var(--red); }
.sys__states { display: grid; }
.sys__state { min-height: 64vh; display: flex; flex-direction: column; justify-content: center; padding-block: 40px; border-top: 1px solid var(--line); }
.sys__state:not(.is-active) .lbl--red { color: var(--muted); }
.sys__state .sys__evidence { transition: opacity .4s; }
.sys__state:not(.is-active) .sys__evidence { opacity: .6; }
.sys__state:not(.is-active) .h3 { color: var(--muted); }
.sys__state:first-child { border-top: 0; }
.sys__state.is-active { opacity: 1; }
.sys__state .h3 { margin: 10px 0 14px; }
.sys__state > p:not(.lbl) { color: var(--muted); max-width: 46ch; }
.sys__evidence { display: flex; gap: 24px; align-items: flex-start; margin-top: 26px; }
.sys__thumb { flex: none; width: 168px; }
.sys__thumb picture { aspect-ratio: 4 / 3; overflow: hidden; }
.sys__thumb img { width: 100%; height: 100%; object-fit: cover; }
.sys__thumb figcaption { margin-top: 10px; }
.pairs { display: grid; gap: 0; flex: 1; border-top: 1px solid var(--line); }
.pairs > div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.pairs dd { font-family: var(--mono); font-size: 13px; text-align: right; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; margin-top: clamp(40px, 5vw, 64px); padding-top: 28px; border-top: 1px solid var(--line); }
.cta-row p { font-size: clamp(20px, 2vw, 26px); font-weight: 680; letter-spacing: -0.015em; max-width: 30ch; }

/* diagram */
.dg { display: block; width: 100%; height: auto; color: var(--ink); overflow: visible; }
.dg path, .dg rect, .dg circle { fill: none; stroke: currentColor; stroke-width: 1.25; vector-effect: non-scaling-stroke; transition: stroke .35s, fill .35s; }
.dg text { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.08em; fill: var(--muted); }
@media (max-width: 600px) { .dg text { font-size: 17px; letter-spacing: 0.04em; } }
@media (min-width: 981px) and (max-width: 1240px) {
  .dg text { font-size: 15px; letter-spacing: 0.04em; }
  .sys__grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 40px; }
}
.dg-walls path { stroke-width: 2.5; }
.dg-walls .dg-door { stroke-width: 1; stroke-dasharray: 3 3; }
.dg-vesda { stroke-dasharray: 6 5; }
.dg .dg-rack rect, .dg .dg-rack path, .dg .dg-lead, .dg .dg-wire { stroke: rgba(14, 15, 16, 0.4); }
.dg-wire { stroke-dasharray: 2 3; }
.dg .dg-dot { fill: currentColor; stroke: none; }
.dg-cab rect, .dg-panel rect { fill: var(--paper); }
.dg .dg-pipe { stroke-width: 2; }
/* pathLength=1 only works without non-scaling-stroke, which would turn the dash into 1 screen pixel */
.dg .dg-pipe-fill { stroke: var(--red); stroke-width: 3; vector-effect: none; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .9s var(--ease); }
.dg .dg-lamp { fill: #d6d2ca; stroke: none; }
.dg .dg-ring { stroke: var(--red); opacity: 0; transform-box: fill-box; transform-origin: center; }
[data-state="1"] .dg .dg-lamp--ok, .dg[data-state="1"] .dg-lamp--ok { fill: var(--green); }
.dg[data-state="2"] .dg-lamp--warn { fill: var(--amber); }
.dg[data-state="3"] .dg-lamp--fire, .dg[data-state="4"] .dg-lamp--fire { fill: var(--red); }
.dg[data-state="2"] .dg-det1, .dg[data-state="3"] .dg-det1, .dg[data-state="3"] .dg-det2,
.dg[data-state="4"] .dg-det1, .dg[data-state="4"] .dg-det2 { color: var(--red); }
.dg[data-state="2"] .dg-vesda { stroke: var(--red); animation: dg-flow 1s linear infinite; }
.dg[data-state="3"] .dg-snd rect, .dg[data-state="4"] .dg-snd rect { fill: var(--red); stroke: var(--red); }
.dg[data-state="4"] .dg-pipe-fill { stroke-dashoffset: 0; }
.dg[data-state="4"] .dg-cyl { fill: rgba(214, 39, 24, 0.18); stroke: var(--red); }
.dg[data-state="4"] .dg-noz circle, .dg[data-state="4"] .dg-noz path { stroke: var(--red); }
.dg[data-state="4"] .dg-door { stroke: var(--red); }
@media (prefers-reduced-motion: no-preference) {
  .dg[data-state="2"] .dg-det1, .dg[data-state="3"] .dg-det2 { animation: dg-pulse .9s ease-in-out infinite alternate; }
  .dg[data-state="3"] .dg-snd rect { animation: dg-pulse .5s steps(2) infinite; }
  .dg[data-state="4"] .dg-ring { animation: dg-ring 1.4s ease-out .5s infinite; }
  .dg[data-state="4"] .dg-ring--late { animation-delay: 1.2s; }
}
@media (prefers-reduced-motion: reduce) {
  .dg[data-state="2"] .dg-vesda { animation: none; }
  .dg-pipe-fill { transition: none; }
}
@keyframes dg-pulse { from { opacity: 1; } to { opacity: .3; } }
@keyframes dg-flow { to { stroke-dashoffset: -11; } }
@keyframes dg-ring { from { opacity: .9; transform: scale(1); } to { opacity: 0; transform: scale(3.4); } }

@media (max-width: 980px) {
  .sys__grid { grid-template-columns: 1fr; gap: 24px; }
  .sys__stage { position: sticky; top: var(--header); z-index: 2; background: var(--paper); padding: 10px 0 4px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  .sys__frame { padding: 10px; }
  .sys__tab { min-height: 44px; padding-block: 8px; }
  .sys__state { min-height: 0; }
  .js .sys__states { display: grid; }
  .js .sys__state { grid-area: 1 / 1; padding-block: 8px 0; border-top: 0; visibility: hidden; justify-content: flex-start; }
  .js .sys__state.is-active { visibility: visible; }
  .sys__state:not(.is-active) .sys__evidence { opacity: 1; }
}
/* Short phones: a pinned diagram would leave too little room to read. */
@media (max-width: 980px) and (max-height: 699px) {
  .sys__stage { position: static; }
}
@media (max-width: 520px) {
  .sys__evidence { flex-direction: column; }
  .sys__thumb { width: 100%; }
  .sys__thumb picture { aspect-ratio: 16 / 9; }
  .pairs { width: 100%; }
  .sys__readout { font-size: 12px; gap: 10px; padding: 12px; }
}

/* ---------- services ledger ---------- */
.group { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 24px 56px; padding-block: 40px; border-top: 1px solid var(--ink); }
.group__side { display: flex; flex-direction: column; gap: 24px; }
.group__title { font-size: 32px; line-height: 1.05; font-weight: 720; font-stretch: 90%; letter-spacing: -0.02em; }
.group__photo picture { aspect-ratio: 4 / 3; overflow: hidden; }
.group__photo img { width: 100%; height: 100%; object-fit: cover; }
.ph-co2-engine-room img { object-position: 50% 100%; }
.ph-electrofusion-unit img { object-position: 50% 55%; }
.ledger__row { display: grid; grid-template-columns: 56px minmax(0, 1fr) 240px; gap: 8px 24px; padding: 22px 0; border-bottom: 1px solid var(--line); transition: border-color .2s; }
.ledger__row:first-child { padding-top: 4px; }
.ledger__no { font-family: var(--mono); font-size: 13px; color: var(--muted); padding-top: 4px; transition: color .2s; }
.ledger__row h4 { font-size: 21px; line-height: 1.2; font-weight: 680; letter-spacing: -0.01em; }
.ledger__row p { margin-top: 6px; font-size: 16px; color: var(--muted); max-width: 52ch; }
.ledger__tags { font-family: var(--mono); font-size: 12px !important; letter-spacing: 0.04em; text-transform: uppercase; text-align: right; padding-top: 4px; }
.ledger__row:hover { border-bottom-color: var(--red); }
.ledger__row:hover .ledger__no { color: var(--red-text); }
@media (max-width: 980px) {
  .group { grid-template-columns: 1fr; }
  .group__photo picture { aspect-ratio: 16 / 9; }
  .ledger__row { grid-template-columns: 40px minmax(0, 1fr); }
  .ledger__tags { grid-column: 2; text-align: left; margin-top: 0 !important; padding-top: 0; }
}

/* process rail */
.rail-wrap { margin-top: clamp(48px, 6vw, 80px); padding-top: 32px; border-top: 1px solid var(--ink); }
.rail { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; margin-top: 28px; position: relative; }
.rail::before { content: ""; position: absolute; left: 0; right: 0; top: 5px; height: 1px; background: var(--line); }
.rail__step { position: relative; padding-top: 30px; }
.rail__node { position: absolute; top: 0; left: 0; width: 11px; height: 11px; background: var(--red); }
.rail__step h4 { margin-top: 6px; font-size: 18px; font-weight: 680; }
.rail__step p { margin-top: 6px; font-size: 16px; color: var(--muted); }
.rail__label { margin: 0; }
@media (max-width: 860px) {
  .rail { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); gap: 20px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
  .rail::-webkit-scrollbar { display: none; }
  .rail::before { left: var(--gutter); right: auto; width: calc(5 * 78vw); }
  .rail__step { flex: 0 0 72vw; scroll-snap-align: start; }
}

/* ---------- installation record ---------- */
.record {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 12px;
  grid-template-areas: "a a c d" "a a c d" "b b e f";
}
.record__item { display: flex; flex-direction: column; min-width: 0; }
.record__item--1 { grid-area: a; }
.record__item--2 { grid-area: b; }
.record__item--3 { grid-area: c; }
.record__item--4 { grid-area: d; }
.record__item--5 { grid-area: e; }
.record__item--6 { grid-area: f; }
.record__btn { flex: 1; display: block; width: 100%; padding: 0; border: 0; background: var(--ink); cursor: zoom-in; min-height: 200px; }
.record__btn picture, .record__btn img { width: 100%; height: 100%; }
.record__btn img { object-fit: cover; transition: transform .6s var(--ease), opacity .3s; }
.record__btn:hover img { transform: scale(1.025); }
.record__btn { overflow: hidden; }
.record__btn.frame::after { color: rgba(255, 255, 255, 0.9); }
/* The wide photos set the row height; the tall ones fill it. Captions reserve two lines so every photo edge lines up. */
.record__item--1 .record__btn, .record__item--2 .record__btn { flex: none; min-height: 0; aspect-ratio: 4 / 3; }
.record__cap { min-height: 3.2em; margin-top: 12px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.record__cap span { color: var(--text); font-weight: 500; }
.record__cap span::after { content: " ·"; color: var(--muted); }
@media (max-width: 860px) {
  .record { grid-template-columns: 1fr 1fr; grid-template-areas: "a a" "c d" "b b" "e f"; gap: 24px 10px; }
  .record__btn { flex: none; min-height: 0; aspect-ratio: 3 / 4; }
}

/* ---------- maintenance ---------- */
.maint { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 48px 88px; align-items: start; }
.maint__intro .lead { margin: 20px 0 32px; }
.maint__card { border: 1px solid var(--line-dark); background: var(--ink-2); }
.maint__row { display: grid; grid-template-columns: 170px 1fr; border-bottom: 1px solid var(--line-dark); }
.maint__row dt { padding: 20px 18px; border-left: 2px solid var(--red); color: var(--red-on-ink); align-self: stretch; }
.maint__row dd { padding: 18px 20px; font-size: 17px; line-height: 1.45; }
.maint__sys-label { padding: 22px 20px 0; color: var(--muted-light) !important; }
.maint__sys { padding: 8px 20px 22px; font-family: var(--mono); font-size: 13px; line-height: 1.7; color: var(--white); }
@media (max-width: 860px) {
  .maint { grid-template-columns: 1fr; }
  .maint__row { grid-template-columns: 1fr; }
  .maint__row dt { padding: 14px 16px 0; border-left: 0; }
  .maint__row dd { padding: 4px 16px 16px; }
  .maint__row { border-left: 2px solid var(--red); }
}

/* ---------- beyond fire ---------- */
.beyond { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr); gap: 64px; align-items: start; }
.beyond__list { border-top: 1px solid var(--ink); }
.beyond__row {
  display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 4px 16px; width: 100%; text-align: left;
  padding: 24px 0; background: none; border: 0; border-bottom: 1px solid var(--line); cursor: pointer; color: var(--muted);
  transition: color .25s;
}
.beyond__row .lbl { padding-top: 7px; }
.beyond__title { font-size: 26px; line-height: 1.15; font-weight: 700; font-stretch: 90%; letter-spacing: -0.02em; color: var(--muted); transition: color .25s; }
.beyond__text { grid-column: 2; font-size: 16px; max-width: 46ch; margin-top: 4px; }
.beyond__row[aria-pressed="true"] .beyond__title, .beyond__row:hover .beyond__title { color: var(--text); }
.beyond__row[aria-pressed="true"] .lbl { color: var(--red-text); }
.beyond__row[aria-pressed="true"] { border-bottom-color: var(--red); }
.beyond__frame { position: sticky; top: calc(var(--header) + 28px); aspect-ratio: 4 / 5; background: var(--ink); }
.beyond__img { position: absolute; inset: 0; opacity: 0; transition: opacity .4s; }
.beyond__img.is-on { opacity: 1; }
.beyond__img picture, .beyond__img img { width: 100%; height: 100%; }
.beyond__img img { object-fit: cover; }
.beyond__mobile-photo { display: none; }
.strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: clamp(48px, 6vw, 80px); }
.strip picture { aspect-ratio: 4 / 3; overflow: hidden; }
.strip img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 980px) {
  .beyond { grid-template-columns: 1fr; }
  .beyond__frame { display: none; }
  .beyond__list { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); gap: 14px; border-top: 0; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
  .beyond__list::-webkit-scrollbar { display: none; }
  .beyond__item { flex: 0 0 82vw; scroll-snap-align: start; display: flex; flex-direction: column-reverse; justify-content: flex-end; }
  .beyond__mobile-photo { display: block; }
  .beyond__mobile-photo picture { aspect-ratio: 4 / 5; overflow: hidden; }
  .beyond__mobile-photo img { width: 100%; height: 100%; object-fit: cover; }
  .beyond__row { cursor: default; border-bottom: 0; padding: 16px 0 0; }
  .beyond__title { color: var(--text); font-size: 22px; }
  .beyond__row .lbl { color: var(--red-text); }
  .strip { grid-template-columns: 1fr; gap: 24px; }
}

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 48px 96px; align-items: start; }
.facts { border-top: 1px solid var(--ink); }
.facts > div { display: grid; grid-template-columns: 116px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts dt { padding-top: 2px; }
.facts dd { font-size: 16px; line-height: 1.45; font-weight: 560; }
@media (min-width: 981px) { .about__body { order: 2; } }
.about__body > p:not(.index) { margin-top: 22px; font-size: 19px; color: var(--muted); max-width: 54ch; }
.about__body .h2 { max-width: 15ch; }
.mission { margin-top: 36px; padding: 4px 0 4px 22px; border-left: 2px solid var(--red); max-width: 58ch; }
.mission blockquote { margin: 10px 0 0; font-size: 18px; line-height: 1.55; font-weight: 520; color: var(--text); }
.team { margin-top: clamp(56px, 7vw, 96px); }
.team picture { aspect-ratio: 21 / 9; overflow: hidden; }
.team img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.team .tag { left: 24px; }
@media (max-width: 980px) {
  .about { grid-template-columns: 1fr; }
  .team picture { aspect-ratio: 4 / 3; }
}

/* ---------- contact ---------- */
.contact { background: var(--red); color: var(--white); padding-block: var(--section-y); }
.contact__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px 88px; align-items: end; }
.contact .lead { color: var(--white); margin: 20px 0 32px; }
.contact__list > div { padding: 18px 0; border-top: 1px solid rgba(255, 255, 255, 0.3); }
.contact__list > div:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.3); }
.contact__list .lbl { color: rgba(255, 255, 255, 0.95); }
.contact__list dd { margin-top: 6px; font-size: 18px; font-weight: 600; }
.contact__list a { text-decoration: none; overflow-wrap: anywhere; }
.contact__list .contact__alt { display: block; margin-top: 6px; }
.contact__list a:hover { text-decoration: underline; text-underline-offset: 4px; }
.contact__big { font-size: clamp(30px, 3.6vw, 44px); font-weight: 720; font-stretch: 80%; letter-spacing: -0.01em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.contact address { font-style: normal; line-height: 1.45; }
.contact__time { margin-top: 10px; color: rgba(255, 255, 255, 0.95) !important; }
.contact .btn--white svg { color: var(--green); }
@media (max-width: 860px) { .contact__inner { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.footer { background: var(--ink); color: var(--muted-light); padding-block: 36px; font-size: 14px; }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.footer__logo { display: block; width: 130px; }
.footer__legal { flex: 1; min-width: 240px; }
.footer .lang { color: var(--white); }
.footer__top { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--white); min-height: 44px; }
.footer__top svg { width: 18px; height: 18px; }

/* ---------- floating WhatsApp (mobile) ---------- */
.fab { display: none; }
@media (max-width: 980px) {
  .fab {
    position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 40;
    display: flex; align-items: center; gap: 10px; text-decoration: none;
    opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .3s, transform .3s var(--ease);
  }
  .fab.is-visible { opacity: 1; transform: none; pointer-events: auto; }
  .fab__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: #1fa855; color: var(--white); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25); }
  .fab__icon svg { width: 28px; height: 28px; }
  .fab__label {
    font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase;
    background: var(--ink); color: var(--white); padding: 7px 10px; border-radius: 2px;
    opacity: 0; transform: translateX(8px); transition: opacity .3s, transform .3s;
  }
  .fab.show-label .fab__label { opacity: 1; transform: none; }
  .menu-open .fab { display: none; }
}

/* ---------- lightbox ---------- */
.lightbox { touch-action: pan-y pinch-zoom; width: min(1200px, 100vw); max-width: 100vw; max-height: 100vh; padding: 56px 64px 24px; border: 0; background: transparent; color: var(--white); overflow: visible; }
.lightbox::backdrop { background: rgba(8, 9, 10, 0.94); }
.lightbox__figure img { max-height: calc(100vh - 140px); width: auto; margin-inline: auto; }
.lightbox__figure figcaption { margin-top: 14px; text-align: center; color: var(--muted-light); }
.lightbox__btn { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 50%; background: rgba(14, 15, 16, 0.6); color: var(--white); cursor: pointer; }
.lightbox__btn:hover { background: var(--red); border-color: var(--red); }
.lightbox__btn svg { width: 20px; height: 20px; }
.lightbox__prev { left: 4px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 4px; top: 50%; transform: translateY(-50%); }
.lightbox__close { right: 4px; top: 0; }
@media (max-width: 640px) {
  .lightbox { padding: 64px 12px 72px; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 8px; transform: none; }
  .lightbox__prev { left: calc(50% - 56px); }
  .lightbox__next { right: calc(50% - 56px); }
}

/* ---------- reveal ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js-reveal .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
  .js-reveal .reveal.is-in { opacity: 1; transform: none; }
  .hero__body > * { animation: rise .6s var(--ease) both; }
  .hero__body > :nth-child(2) { animation-delay: .06s; }
  .hero__body > :nth-child(3) { animation-delay: .12s; }
  .hero__body > :nth-child(4) { animation-delay: .18s; }
  .spec { animation: rule .9s var(--ease) .2s both; }
}
@keyframes rise { from { transform: translateY(14px); } }
@keyframes rule { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }

/* ---------- 404 ---------- */
.notfound { background: var(--paper); min-height: 100vh; display: grid; place-items: center; }
.notfound main { padding-block: 64px; }
.notfound__logo { display: block; width: 180px; margin-bottom: 48px; }
.notfound .h2 { margin: 12px 0 28px; }
.notfound__actions { display: flex; flex-wrap: wrap; gap: 12px; }
