/* Al-Alam Al-Mudee: the technical offer
   Paper, drafting ink, one stamp-ink blue. Arabic RTL, logical properties throughout. */

@font-face {
  font-family: "Reem Kufi";
  src: url("../fonts/reemkufi-arabic.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+2010-2011, U+FB50-FDFF, U+FE70-FEFC;
}
@font-face {
  font-family: "Reem Kufi";
  src: url("../fonts/reemkufi-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2212, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Readex Pro";
  src: url("../fonts/readex-arabic.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+2010-2011, U+FB50-FDFF, U+FE70-FEFC;
}
@font-face {
  font-family: "Readex Pro";
  src: url("../fonts/readex-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2212, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Martian Mono";
  src: url("../fonts/martian-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-stretch: 87.5%;
  font-display: swap;
}

:root {
  color-scheme: light;

  --paper: #EDF1F4;
  --sheet: #F7F9FA;
  --ink: #0D1824;
  --ink-2: #44515F;
  --ink-3: #5F6B79;
  --rule: rgb(13 24 36 / 0.14);
  --rule-strong: rgb(13 24 36 / 0.42);
  --stamp: #2341A8;
  --stamp-deep: #1A3185;
  --stamp-wash: rgb(35 65 168 / 0.08);
  --chill: #DFE7F6;
  --freeze: #C3D1EF;
  --deep: #A3B7E5;

  --ff-display: "Reem Kufi", "Readex Pro", system-ui, sans-serif;
  --ff-body: "Readex Pro", system-ui, sans-serif;
  --ff-num: "Martian Mono", ui-monospace, "SFMono-Regular", monospace;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-io: cubic-bezier(0.77, 0, 0.175, 1);

  --wrap: 1320px;
  --gutter: clamp(16px, 4vw, 40px);
  --head-h: 68px;
  --r-ctl: 4px;
  --section-y: clamp(72px, 9vw, 128px);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--head-h) - 1px);
  scrollbar-color: #A9B3BE var(--paper);
  background: var(--paper);
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--ff-body);
  font-size: 1.0625rem;
  line-height: 1.9;
  font-weight: 400;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  caret-color: var(--stamp);
  accent-color: var(--stamp);
  -webkit-tap-highlight-color: transparent;
}
::selection { background: var(--stamp); color: #fff; }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--paper); }
::-webkit-scrollbar-thumb { background: #A9B3BE; border: 3px solid var(--paper); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #8592A0; }

h1, h2, h3 {
  font-family: var(--ff-display);
  font-weight: 700;
  line-height: 1.32;
  letter-spacing: normal;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.3em; text-decoration-thickness: 1px; }
button { font: inherit; color: inherit; }
svg { display: block; }
:focus-visible { outline: 2px solid var(--stamp); outline-offset: 3px; border-radius: 2px; }
.num {
  font-family: var(--ff-num);
  font-variant-numeric: tabular-nums;
  font-stretch: 87.5%;
  unicode-bidi: isolate;
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip {
  position: absolute; z-index: 100; inset-inline-start: 12px; top: -80px;
  background: var(--ink); color: var(--sheet); padding: 10px 16px; border-radius: var(--r-ctl);
  text-decoration: none; font-size: 15px;
}
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding-inline: 24px;
  border: 0; border-radius: var(--r-ctl);
  font-family: var(--ff-body); font-size: 1rem; font-weight: 600; line-height: 1.2;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color 160ms ease, transform 160ms var(--ease-out), box-shadow 160ms ease;
}
.btn svg { width: 22px; height: 22px; flex: none; }
.btn--primary { background: var(--stamp); color: #fff; box-shadow: 0 1px 0 rgb(13 24 36 / 0.25), 0 8px 20px -10px rgb(35 65 168 / 0.6); }
.btn:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover { background: var(--stamp-deep); }
}

/* ---------- letterhead ---------- */
.letterhead {
  position: sticky; top: 0; z-index: 40;
  background: var(--paper);
  border-bottom: 1px solid var(--rule-strong);
}
.letterhead__row { display: flex; align-items: center; gap: 28px; height: var(--head-h); }
.brand { display: flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; flex: none; }
.brand__mark { width: 34px; height: 34px; color: var(--ink); flex: none; }
.mark-light { fill: var(--stamp); }
.brand__text { display: grid; line-height: 1.2; }
.brand__name { font-family: var(--ff-display); font-weight: 700; font-size: 1.3rem; }
.brand__sub { font-size: 0.72rem; color: var(--ink-2); }
.toc { display: flex; gap: 24px; margin-inline-start: auto; }
.toc a {
  font-size: 0.9rem; color: var(--ink-2); text-decoration: underline; text-decoration-color: transparent;
  text-underline-offset: 8px; padding-block: 8px; transition: color 160ms ease, text-decoration-color 160ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .toc a:hover { color: var(--ink); text-decoration-color: var(--stamp); }
  .call:hover { background: var(--ink); color: var(--sheet); }
}
.call {
  display: inline-flex; align-items: center; gap: 8px; flex: none;
  height: 42px; padding-inline: 14px;
  border: 1px solid var(--ink); border-radius: var(--r-ctl);
  color: var(--ink); text-decoration: none; font-size: 0.9rem;
  transition: background-color 160ms ease, color 160ms ease;
}
.call svg { width: 18px; height: 18px; }
.call__num { font-family: var(--ff-num); font-stretch: 87.5%; font-size: 0.85rem; }
.wa-nav {
  display: inline-flex; align-items: center; gap: 8px; flex: none;
  height: 42px; padding-inline: 14px; border-radius: var(--r-ctl);
  background: var(--stamp); color: #fff; text-decoration: none; font-size: 0.9rem; font-weight: 600;
  transition: background-color 160ms ease, transform 160ms var(--ease-out);
}
.wa-nav svg { width: 18px; height: 18px; }
.wa-nav:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .wa-nav:hover { background: var(--stamp-deep); }
}
.menu-btn {
  display: none; width: 44px; height: 44px; align-items: center; justify-content: center;
  background: none; border: 1px solid var(--rule-strong); border-radius: var(--r-ctl); cursor: pointer;
}
.menu-btn svg { width: 22px; height: 22px; }
.menu-btn__close { display: none; }
.menu-btn[aria-expanded="true"] .menu-btn__open { display: none; }
.menu-btn[aria-expanded="true"] .menu-btn__close { display: block; }
.mnav { border-top: 1px solid var(--rule); padding: 8px var(--gutter) 16px; display: grid; }
.mnav[hidden] { display: none; }
.mnav a { display: flex; align-items: center; min-height: 52px; border-bottom: 1px solid var(--rule); text-decoration: none; font-size: 1.05rem; }
.mnav__call { color: var(--ink); font-weight: 600; }
.mnav__wa { color: var(--stamp); font-weight: 600; gap: 10px; }
.mnav__wa svg { width: 20px; height: 20px; }
.mnav__call bdi { font-family: var(--ff-num); font-stretch: 87.5%; margin-inline-start: 8px; }

/* ---------- hero ---------- */
.hero { padding-block: clamp(14px, 1.6vw, 24px) clamp(56px, 6vw, 88px); }
.offer { position: relative; background: var(--sheet); border: 1px solid var(--ink); padding: 22px; }
.offer__frame { border: 2px solid var(--ink); padding: clamp(18px, 2vw, 28px); }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  grid-template-rows: auto 1fr;
  grid-template-areas: "head sheet" "form sheet";
  column-gap: 0;
  align-items: start;
}
.hero__head { grid-area: head; }
.hero__head, .spec { padding-inline-end: clamp(20px, 2.6vw, 40px); }
.hero h1 { font-size: clamp(2rem, 0.9rem + 2.3vw, 3.15rem); line-height: 1.3; }
.lede { margin-top: 14px; font-size: clamp(1.02rem, 0.95rem + 0.3vw, 1.15rem); color: var(--ink-2); max-width: 44ch; line-height: 1.85; }
.spec { grid-area: form; margin-top: clamp(22px, 2.4vw, 34px); }
.field { border: 0; padding: 0; margin: 0 0 22px; min-width: 0; }
.field legend { padding: 0; margin-bottom: 10px; font-size: 0.95rem; font-weight: 600; }
.legend__unit { font-weight: 400; color: var(--ink-2); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; min-height: 42px; padding-inline: 14px;
  border: 1px solid var(--rule-strong); border-radius: var(--r-ctl);
  font-size: 0.92rem; line-height: 1.3; background: transparent; cursor: pointer; user-select: none;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}
.chip input:checked + span { background: var(--ink); color: var(--sheet); border-color: var(--ink); }
.chip input:focus-visible + span { outline: 2px solid var(--stamp); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) {
  .chip input:not(:checked):hover + span { border-color: var(--ink); }
}
.dims { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.dim label { display: block; font-size: 0.84rem; color: var(--ink-2); margin-bottom: 6px; line-height: 1.4; }
.stepper {
  display: grid; grid-template-columns: 40px minmax(0, 1fr) 40px; height: 46px;
  border: 1px solid var(--rule-strong); border-radius: var(--r-ctl); background: var(--sheet);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.stepper:focus-within { border-color: var(--stamp); box-shadow: 0 0 0 3px var(--stamp-wash); }
.stepper button {
  display: grid; place-items: center; background: none; border: 0; cursor: pointer; color: var(--ink);
  touch-action: manipulation; transition: background-color 120ms ease;
}
.stepper button svg { width: 16px; height: 16px; }
.stepper button:active { background: var(--stamp-wash); }
.stepper button:focus-visible { outline-offset: -2px; }
.stepper input {
  width: 100%; min-width: 0; border: 0; background: transparent; text-align: center;
  font-family: var(--ff-num); font-stretch: 87.5%; font-size: 1rem; color: var(--ink);
  -moz-appearance: textfield; appearance: textfield;
}
.stepper input:focus { outline: none; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
@media (hover: hover) and (pointer: fine) {
  .stepper button:hover { background: var(--stamp-wash); }
}
.send { margin-top: 28px; }
.helper { margin-top: 10px; font-size: 0.84rem; color: var(--ink-2); line-height: 1.7; }

/* drawing sheet */
.sheet {
  grid-area: sheet; position: relative; margin: 0; min-width: 0;
  border-inline-start: 1px solid var(--ink);
  padding-inline-start: clamp(18px, 2.2vw, 30px);
}
.sheet__zones { position: absolute; display: flex; direction: ltr; font-family: var(--ff-num); font-stretch: 87.5%; font-size: 10px; color: var(--ink-3); }
.sheet__zones span { flex: 1; display: grid; place-items: center; }
.sheet__zones--top { top: 0; left: 22px; right: 22px; height: 22px; }
.sheet__zones--top span + span { border-left: 1px solid var(--rule-strong); }
.sheet__zones--side { flex-direction: column; top: 22px; bottom: 22px; left: 0; width: 22px; }
.sheet__zones--side span + span { border-top: 1px solid var(--rule-strong); }
.sheet__frame { min-width: 0; }
.drawing { position: relative; height: clamp(320px, 30vw, 430px); }
.drawing__svg { width: 100%; height: 100%; overflow: visible; }

.setpoint {
  position: absolute; left: 50%; top: 40%;
  transform: translate(-50%, -50%);
  display: grid; justify-items: center; gap: 0;
  pointer-events: none;
  --sp-size: 84px;
}
.setpoint__nudge { display: flex; gap: 6px; margin-top: 4px; pointer-events: auto; }
.setpoint .sp-btn { width: 32px; height: 32px; }
.setpoint__class { font-size: 0.82rem; font-weight: 600; line-height: 1.4; color: var(--ink); background: var(--sp-bg, transparent); padding-inline: 6px; }
.setpoint__value {
  font-family: var(--ff-num); font-stretch: 87.5%; font-weight: 500;
  font-size: var(--sp-size); line-height: 1.05; color: var(--stamp);
  letter-spacing: -0.03em; font-variant-numeric: tabular-nums;
  text-align: center; white-space: nowrap;
}
.sp-btn {
  width: 36px; height: 36px; display: grid; place-items: center;
  border: 1px solid var(--rule-strong); border-radius: var(--r-ctl);
  background: var(--sheet); color: var(--ink); cursor: pointer; touch-action: manipulation;
  transition: border-color 160ms ease, transform 160ms var(--ease-out), background-color 160ms ease;
}
.sp-btn svg { width: 16px; height: 16px; }
.sp-btn:active { transform: scale(0.94); }
@media (hover: hover) and (pointer: fine) {
  .sp-btn:hover { border-color: var(--ink); }
}

/* drawing linework (classes used by the generated SVG) */
.d-out { fill: url(#hatch); stroke: var(--ink); stroke-width: 1.4; }
.d-in { stroke: var(--ink); stroke-width: 1; }
.d-cut { fill: var(--sheet); }
.d-ln { fill: none; stroke: var(--ink); stroke-width: 1.2; }
.d-thin { fill: none; stroke: var(--ink); stroke-width: 0.8; }
.d-dash { fill: none; stroke: var(--ink); stroke-width: 0.8; stroke-dasharray: 2 3; }
.d-reg { fill: none; stroke: var(--rule-strong); stroke-width: 0.8; stroke-dasharray: 6 4; }
.d-ext { fill: none; stroke: var(--ink-3); stroke-width: 0.7; }
.d-obj { fill: var(--sheet); stroke: var(--ink); stroke-width: 1; }
.d-dark { fill: var(--ink); }
.d-light { fill: var(--sheet); stroke: var(--ink); stroke-width: 0.8; }
.d-air { fill: none; stroke: var(--stamp); stroke-width: 1; stroke-dasharray: 3 3; }
.d-air-head { fill: var(--stamp); }
.d-dim { font-family: var(--ff-num); font-stretch: 87.5%; font-size: 11px; fill: var(--ink); }
.d-u { font-family: var(--ff-body); font-size: 11.5px; }
.d-label { font-family: var(--ff-body); font-size: 12.5px; fill: var(--ink); }
.d-label--muted { fill: var(--ink-2); }
.d-view { font-family: var(--ff-display); font-weight: 700; font-size: 13.5px; fill: var(--ink); }
.d-dot { fill: var(--ink); }

/* temperature ruler */
.ruler { margin-top: 6px; }
.ruler__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.ruler__label { display: block; font-size: 0.8rem; color: var(--ink-2); line-height: 1.5; margin-bottom: 4px; }
.nudge { display: flex; gap: 6px; }
.ruler__track { position: relative; height: 54px; }
.ruler__bands { position: absolute; top: 0; left: 11px; right: 11px; height: 16px; }
.band {
  position: absolute; top: 0; height: 16px; display: grid; place-items: center;
  font-size: 10.5px; line-height: 1; color: var(--ink); white-space: nowrap; overflow: hidden;
  direction: rtl; font-family: var(--ff-body);
}
.band--deep { left: 0%; width: 19.23%; background: var(--deep); }
.band--freeze { left: 28.85%; width: 13.46%; background: var(--freeze); }
.band--chill { left: 76.92%; width: 15.38%; background: var(--chill); }
.ruler input[type="range"] {
  position: absolute; left: 0; right: 0; top: 14px; width: 100%; height: 26px; margin: 0;
  background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; z-index: 2;
}
.ruler input[type="range"]::-webkit-slider-runnable-track { height: 26px; background: linear-gradient(var(--ink), var(--ink)) center / 100% 1px no-repeat; }
.ruler input[type="range"]::-moz-range-track { height: 1px; background: var(--ink); }
.ruler input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%;
  background: var(--stamp); border: 4px solid var(--sheet); box-shadow: 0 0 0 1px var(--stamp), 0 2px 6px rgb(13 24 36 / 0.3);
}
.ruler input[type="range"]::-moz-range-thumb {
  width: 14px; height: 14px; border-radius: 50%; background: var(--stamp);
  border: 4px solid var(--sheet); box-shadow: 0 0 0 1px var(--stamp), 0 2px 6px rgb(13 24 36 / 0.3);
}
.ruler input[type="range"]:focus-visible { outline: none; }
.ruler input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 1px var(--stamp), 0 0 0 5px var(--stamp-wash); }
.ruler__ticks { position: absolute; left: 11px; right: 11px; top: 27px; height: 26px; pointer-events: none; }
.tick { position: absolute; top: 0; width: 1px; height: 4px; background: var(--ink-3); transform: translateX(-0.5px); }
.tick--mid { height: 6px; background: var(--ink-2); }
.tick--major { height: 8px; background: var(--ink); }
.tick__lbl {
  position: absolute; top: 10px; left: 0; transform: translateX(-50%);
  font-family: var(--ff-num); font-stretch: 87.5%; font-size: 10px; line-height: 1; color: var(--ink-2); white-space: nowrap;
}

/* title block */
.titleblock {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; margin: 12px 0 0;
  background: var(--rule-strong); border: 1px solid var(--ink);
}
.tb { background: var(--sheet); padding: 6px 10px 7px; min-width: 0; }
.tb--wide { grid-column: span 2; }
.tb dt { font-size: 0.75rem; color: var(--ink-3); line-height: 1.5; }
.tb dd { margin: 0; font-size: 0.86rem; font-weight: 500; line-height: 1.5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb dd .num { font-size: 0.82rem; }
.sheet__note { margin-top: 8px; font-size: 0.8rem; color: var(--ink-2); line-height: 1.6; }

/* ---------- shared section scaffolding ---------- */
.classes, .parts, .process, .gallery, .signoff { padding-block: var(--section-y); border-top: 1px solid var(--rule-strong); }
.classes h2, .parts h2, .process h2, .gallery h2 { font-size: clamp(1.9rem, 1rem + 2.1vw, 3rem); max-width: 22ch; }
.section-lede { margin-top: 14px; font-size: clamp(1rem, 0.94rem + 0.3vw, 1.15rem); color: var(--ink-2); max-width: 60ch; }

/* ---------- classes ---------- */
.scale { position: relative; height: 150px; margin-top: clamp(36px, 4vw, 56px); }
.scale svg { width: 100%; height: 100%; overflow: visible; }
.s-base { stroke: var(--ink); stroke-width: 1; }
.s-tick { stroke: var(--ink-3); stroke-width: 1; }
.s-tick--major { stroke: var(--ink); }
.s-lbl { font-family: var(--ff-num); font-stretch: 87.5%; font-size: 11px; fill: var(--ink-2); }
.s-band--chill { fill: var(--chill); }
.s-band--freeze { fill: var(--freeze); }
.s-band--deep { fill: var(--deep); }
.s-lead { fill: none; stroke: var(--ink); stroke-width: 1; }
.s-dot { fill: var(--ink); }
.s-you { stroke: var(--stamp); stroke-width: 1.5; }
.s-you-head { fill: var(--stamp); }
.s-you-lbl { font-family: var(--ff-body); font-size: 12px; font-weight: 600; fill: var(--stamp); }
.s-you-num { font-family: var(--ff-num); font-stretch: 87.5%; font-size: 12px; fill: var(--stamp); }

.classes__grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr) minmax(0, 1fr); }
.cls { padding-inline: clamp(16px, 2.2vw, 36px); }
.cls:first-child { padding-inline-start: 0; }
.cls:last-child { padding-inline-end: 0; }
.cls + .cls { border-inline-start: 1px solid var(--rule-strong); }
.cls__media .plate__img { height: clamp(210px, 20vw, 290px); }
.cls h3 { font-size: clamp(1.3rem, 1rem + 0.7vw, 1.6rem); margin-top: 18px; }
.cls__to { font-family: var(--ff-body); font-size: 0.72em; color: var(--ink-2); margin-inline: 6px; }
.cls__range { font-family: var(--ff-num); font-stretch: 87.5%; font-size: clamp(1.1rem, 0.9rem + 0.6vw, 1.4rem); color: var(--stamp); margin-top: 2px; line-height: 1.6; }
.cls p:not(.cls__range) { margin-top: 8px; color: var(--ink-2); font-size: 0.98rem; max-width: 42ch; }
.apply {
  margin-top: 16px; display: inline-flex; align-items: center; gap: 8px;
  background: none; border: 0; border-bottom: 1px solid var(--ink); padding: 6px 0 4px; min-height: 40px;
  font-size: 0.92rem; font-weight: 600; cursor: pointer;
  transition: color 160ms ease, border-color 160ms ease;
}
.apply svg { width: 16px; height: 16px; transition: transform 200ms var(--ease-out); }
.apply:active { transform: translateY(1px); }
@media (hover: hover) and (pointer: fine) {
  .apply:hover { color: var(--stamp); border-color: var(--stamp); }
  .apply:hover svg { transform: translate(-2px, -2px); }
}

/* ---------- plates: photographs annotated like the drawings ---------- */
.plate { position: relative; margin: 0; border: 1px solid var(--ink); background: var(--sheet); padding: 8px; }
.plate__img { position: relative; overflow: hidden; background: #D5DCE3; }
.plate__img img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.82) contrast(1.03); }
.plate__keys { position: relative; height: 0; }
.plate__marks { position: absolute; left: 8px; top: 8px; overflow: visible; pointer-events: none; }
.key { position: absolute; top: 0; white-space: nowrap; font-size: 0.78rem; line-height: 1.45; font-weight: 500; color: var(--ink); }
.pm-halo { fill: none; stroke: rgb(247 249 250 / 0.92); stroke-width: 3.5; stroke-linecap: round; }
.pm-line { fill: none; stroke: var(--ink); stroke-width: 1.1; }
.pm-dot { fill: var(--ink); stroke: #F7F9FA; stroke-width: 2; }
.pm-ring { fill: none; stroke: #F7F9FA; stroke-width: 1.2; opacity: 0.9; }

/* ---------- parts (axonometric assembly) ---------- */
.parts__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  grid-template-areas: "head stage" "list stage";
  grid-template-rows: auto 1fr;
  column-gap: clamp(32px, 5vw, 80px);
}
.parts { overflow: clip; } /* exploded parts fly in from outside the panel; never widen the page */
.parts__head { grid-area: head; }
.parts__stage { grid-area: stage; }
.parts__sticky { position: sticky; top: calc(var(--head-h) + 3vh); height: min(80vh, 700px); }
.axo { width: 100%; height: 100%; overflow: visible; }
.parts__list { grid-area: list; list-style: none; margin: clamp(32px, 4vw, 56px) 0 0; padding: 0; }
.parts__list li {
  min-height: 32vh; padding-block: 24px 40px;
  border-top: 1px solid var(--rule-strong);
  transition: border-color 260ms ease;
}
.parts__list li:last-child { min-height: 46vh; }
.parts__list h3 { font-size: clamp(1.2rem, 1rem + 0.6vw, 1.5rem); color: var(--ink-3); transition: color 260ms ease; }
.parts__list p { margin-top: 8px; color: var(--ink-3); max-width: 44ch; transition: color 260ms ease; }
.parts__list li.is-active { border-top-color: var(--stamp); box-shadow: inset 0 2px 0 var(--stamp); }
.parts__list li.is-active h3 { color: var(--ink); }
.parts__list li.is-active p { color: var(--ink-2); }

/* axo faces */
.f { stroke: var(--ink); stroke-width: 1; stroke-linejoin: round; transition: fill 600ms ease, stroke 260ms ease; }
.m-panel.f-top { fill: #F9FAFB; }
.m-panel.f-y { fill: #E2E8EE; }
.m-panel.f-x { fill: #CCD5DF; }
.m-floor.f-top { fill: #D7DEE5; }
.m-floor.f-y { fill: #BCC6D0; }
.m-floor.f-x { fill: #A7B2BE; }
.m-unit.f-top { fill: #EEF1F4; }
.m-unit.f-y { fill: #D2D9E1; }
.m-unit.f-x { fill: #B6C0CC; }
.m-door.f-top { fill: #F4F6F8; }
.m-door.f-y { fill: #E9EDF2; }
.m-door.f-x { fill: #DCE3EA; }
.m-ctrl.f-top { fill: #34414F; }
.m-ctrl.f-y { fill: #1D2936; }
.m-ctrl.f-x { fill: #0D1824; }
.m-light.f-top, .m-light.f-y, .m-light.f-x { fill: #C3CBD4; }
.ghost .f { fill-opacity: 0.16; stroke-opacity: 0.75; }
.ghost .f-top { fill-opacity: 0.1; }
.a-phantom { fill: none; stroke: var(--ink-3); stroke-width: 1; stroke-dasharray: 4 5; opacity: 0.7; }
.a-fan { fill: #22303D; stroke: var(--ink); stroke-width: 1; }
.a-fan-hub { fill: none; stroke: #8796A6; stroke-width: 1; }
.a-pipe { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.a-pipe--in { stroke-dasharray: 4 4; stroke-width: 1.2; }
.a-strip { stroke: #8EA0B3; stroke-width: 2; stroke-linecap: butt; opacity: 0.85; }
.a-screen { fill: #7F9BE0; }
.a-pool { opacity: 0; transition: opacity 900ms ease; }
.a-cone { opacity: 0; transition: opacity 900ms ease; }
.axo.is-lit .a-pool { opacity: 1; }
.axo.is-lit .a-cone { opacity: 0.55; }
.axo.is-lit .m-light.f-top, .axo.is-lit .m-light.f-y, .axo.is-lit .m-light.f-x { fill: #FFFFFF; }
.axo.is-lit .inner.f-y { fill: #EEF3FB; }
.axo.is-lit .inner.f-x { fill: #DCE5F2; }
.axo.is-lit .m-floor.f-top { fill: #E4EBF5; }

.part {
  transform: translate(var(--dx, 0px), var(--dy, 0px));
  opacity: 0;
  transition: transform 900ms var(--ease-out), opacity 500ms ease;
}
.part.is-in { transform: none; opacity: 1; }
.part.is-current .f { stroke: var(--stamp); stroke-width: 1.6; }
.a-lead { fill: none; stroke: var(--stamp); stroke-width: 1.2; }
.a-lead-dot { fill: var(--stamp); }
.a-lead-ring { fill: none; stroke: var(--stamp); stroke-width: 1; opacity: 0.45; }
.a-tag { font-family: var(--ff-display); font-weight: 700; font-size: 16px; fill: var(--ink); paint-order: stroke; stroke: var(--paper); stroke-width: 5px; stroke-linejoin: round; }
.a-tag-sub { font-family: var(--ff-body); font-size: 12.5px; fill: var(--ink-2); }

/* ---------- process ---------- */
.curve { margin: clamp(32px, 4vw, 52px) 0 0; }
.curve__box { position: relative; height: clamp(210px, 22vw, 300px); border-bottom: 1px solid var(--ink); }
.curve__svg { width: 100%; height: 100%; overflow: visible; }
.curve figcaption { margin-top: 8px; font-size: 0.78rem; color: var(--ink-2); }
.c-col { stroke: var(--rule); stroke-width: 1; }
.c-zero { stroke: var(--ink-3); stroke-width: 1; stroke-dasharray: 3 4; }
.c-zero-lbl, .c-lbl { font-family: var(--ff-num); font-stretch: 87.5%; font-size: 11px; fill: var(--ink-2); }
.c-path { fill: none; stroke: var(--stamp); stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; }
.c-path.is-armed { stroke-dasharray: 1; stroke-dashoffset: 1; }
.c-path.is-armed.is-drawn { stroke-dashoffset: 0; transition: stroke-dashoffset 2.2s var(--ease-io); }
.c-txt { font-family: var(--ff-body); font-size: 12.5px; fill: var(--ink-2); }
.c-end { font-family: var(--ff-num); font-stretch: 87.5%; font-size: 15px; font-weight: 600; fill: var(--stamp); }
.c-end-txt { font-family: var(--ff-body); font-size: 12.5px; fill: var(--stamp); font-weight: 600; }
.c-dot { fill: var(--stamp); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.steps li { padding: 18px clamp(10px, 1.2vw, 18px) 0; }
.steps li + li { border-inline-start: 1px solid var(--rule-strong); }
.steps li:first-child { padding-inline-start: 0; }
.steps h3 { font-size: clamp(1.02rem, 0.9rem + 0.35vw, 1.2rem); }
.steps p { margin-top: 6px; font-size: 0.9rem; color: var(--ink-2); line-height: 1.8; }

/* ---------- gallery ---------- */
.gallery__grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(14px, 1.8vw, 26px); margin-top: clamp(32px, 4vw, 52px);
}
.g { margin: 0; }
.g--room { grid-column: span 6; }
.g--units { grid-column: span 3; }
.g--racks { grid-column: span 3; }
.g__img { height: clamp(300px, 32vw, 460px); overflow: hidden; background: #D5DCE3; }

.g figcaption { margin-top: 8px; padding-top: 6px; border-top: 1px solid var(--rule-strong); font-size: 0.86rem; color: var(--ink-2); line-height: 1.6; }

/* ---------- sign-off ---------- */
.signoff { background: var(--sheet); overflow: clip; } /* the unpressed stamp starts at 130% scale */
.signoff__grid { display: block; }
.signoff h2 { font-size: clamp(2rem, 1rem + 2.6vw, 3.4rem); }
.signed { display: flex; align-items: flex-start; margin-top: 30px; }
.signed .summary { flex: 0 1 720px; min-width: 0; margin: 0; }
.signed__stamp { flex: none; width: 230px; margin-inline-start: -40px; margin-top: 14px; position: relative; z-index: 1; display: grid; justify-items: center; } /* ring crosses the table corner, never a value */
.signed__stamp .stamp, .signed__stamp .sigline { width: 100%; }
.summary {
  display: grid; grid-template-columns: repeat(5, auto); gap: 1px; margin: 28px 0 0; max-width: 720px;
  background: var(--rule-strong); border: 1px solid var(--ink);
}
.summary > div { background: var(--sheet); padding: 8px 14px 9px; min-width: 0; }
.summary dt { font-size: 0.75rem; color: var(--ink-3); line-height: 1.5; }
.summary dd { margin: 0; font-size: 0.95rem; font-weight: 500; line-height: 1.5; white-space: nowrap; }
.summary .num { font-size: 0.9rem; }
.signoff__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 28px; }
.call-link { font-size: 0.98rem; color: var(--ink); text-decoration: underline; text-decoration-color: var(--rule-strong); }
.call-link bdi { font-family: var(--ff-num); font-stretch: 87.5%; font-size: 0.92rem; }
.edit-link { display: inline-block; margin-top: 18px; font-size: 0.88rem; color: var(--ink-2); }
@media (hover: hover) and (pointer: fine) {
  .call-link:hover { text-decoration-color: var(--stamp); color: var(--stamp); }
  .edit-link:hover { color: var(--ink); }
}
.signoff__stamp { display: grid; justify-items: center; }
.stamp { width: min(300px, 72vw); height: auto; color: var(--stamp); opacity: 0.94; transform: rotate(-9deg); mix-blend-mode: multiply; }
.stamp__ring { font-family: var(--ff-display); font-weight: 700; font-size: 15px; fill: currentColor; }
.stamp__ring--low { font-size: 13.5px; }
.stamp__center { font-family: var(--ff-display); font-weight: 700; font-size: 15px; fill: currentColor; }
.stamp .mark-light { fill: currentColor; }
.js .stamp:not(.is-stamped) { opacity: 0; transform: rotate(-4deg) scale(1.3); }
.stamp.is-stamped { animation: press 460ms var(--ease-out) both; }
.stamp.is-still { animation: none; }
@keyframes press {
  0% { opacity: 0; transform: rotate(-4deg) scale(1.3); }
  55% { opacity: 0.96; transform: rotate(-9deg) scale(0.97); }
  100% { opacity: 0.94; transform: rotate(-9deg) scale(1); }
}
.sigline { margin-top: 14px; width: min(300px, 72vw); border-top: 1px dashed var(--ink); padding-top: 6px; text-align: center; font-size: 0.8rem; color: var(--ink-2); }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--ink); padding-block: 28px 36px; }
.foot__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.foot__brand { display: flex; align-items: center; gap: 12px; }
.foot__brand p { font-size: 0.9rem; line-height: 1.6; }
.foot__brand span { color: var(--ink-2); font-size: 0.82rem; }
.foot__credit { font-size: 0.85rem; color: var(--ink-2); }
.foot__photo { font-size: 0.78rem; color: var(--ink-2); flex-basis: 100%; order: 3; }
.foot__photo a { color: var(--ink-2); }
.foot__credit a { color: var(--ink); font-weight: 600; }

/* ---------- mobile dock ---------- */
.dock { display: none; }

/* ---------- entrance ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero__head { animation: rise 700ms var(--ease-out) both; }
  .spec { animation: rise 700ms var(--ease-out) 90ms both; }
  .sheet { animation: rise 800ms var(--ease-out) 160ms both; }
  @keyframes rise { from { opacity: 0; transform: translateY(12px); } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .part, .a-pool, .a-cone, .f { transition: none !important; }
  .stamp.is-stamped { animation: none; }
  .c-path.is-armed { stroke-dasharray: none; stroke-dashoffset: 0; }
}

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .call__label { display: none; }
  .toc { gap: 18px; }
}
@media (max-width: 1023px) {
  .toc { display: none; }
  .call { margin-inline-start: auto; }
  .menu-btn { display: inline-flex; }
  .hero__grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "sheet" "form"; grid-template-rows: none; }
  .hero__head, .spec { padding-inline-end: 0; }
  .sheet { margin-top: 22px; border-inline-start: 0; padding-inline-start: 0; border-block: 1px solid var(--ink); padding-block: 16px 14px; }
  .spec { margin-top: 28px; }
  .drawing { height: clamp(300px, 58vw, 420px); }
  .parts__grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "stage" "list"; grid-template-rows: none; }
  .parts__stage { position: sticky; top: var(--head-h); z-index: 2; background: var(--paper); margin-top: 24px; border-bottom: 1px solid var(--rule); }
  .parts__sticky { position: relative; top: 0; height: 40vh; min-height: 260px; }
  .parts__list { margin-top: 0; }
  .parts__list li { min-height: 26vh; }
  .parts__list li:last-child { min-height: 36vh; }
  .signoff__grid { grid-template-columns: minmax(0, 1fr); }
  .signed { flex-direction: column; align-items: stretch; }
  .signed .summary { flex: none; }
  .signed__stamp { width: 190px; margin: -10px 0 0; align-self: flex-end; }
}
@media (max-width: 820px) {
  .classes__grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .cls, .cls:first-child, .cls:last-child { padding-inline: 0; }
  .cls + .cls { border-inline-start: 0; border-top: 1px solid var(--rule-strong); padding-top: 32px; }
  .cls__media .plate__img { height: auto; aspect-ratio: 16 / 10; }
  .scale { height: 96px; }
  .steps { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); row-gap: 8px; }
  .steps li, .steps li:first-child { padding: 16px 0 14px; padding-inline-end: 14px; }
  .steps li + li { border-inline-start: 0; }
  .steps li { border-top: 1px solid var(--rule-strong); }
  .steps li:nth-child(-n+2) { border-top: 0; }
  .gallery__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g--room { grid-column: span 2; }
  .g--units, .g--racks { grid-column: span 1; }
  .g--room .g__img { height: auto; aspect-ratio: 4 / 3; }
  .g--units .g__img, .g--racks .g__img { height: auto; aspect-ratio: 3 / 4; }
  .summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .summary > div:first-child { grid-column: span 2; }
  .titleblock { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dock {
    display: block; position: fixed; z-index: 50;
    inset-inline: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
    transform: translateY(160%); transition: transform 280ms var(--ease-out);
  }
  .dock.is-on { transform: none; }
  .dock .btn { width: 100%; box-shadow: 0 10px 30px -8px rgb(13 24 36 / 0.45); }
  .foot { padding-bottom: 100px; }
}
@media (max-width: 560px) {
  :root { --head-h: 60px; }
  .brand__mark { width: 30px; height: 30px; }
  .brand__name { font-size: 1.12rem; }
  .brand__sub { font-size: 0.72rem; }
  .letterhead__row { gap: 10px; }
  .call { width: 44px; height: 44px; padding: 0; justify-content: center; }
  .call__num { display: none; }
  .wa-nav { display: none; }
  .offer { padding: 14px; }
  .offer__frame { padding: 16px 12px; }
  .sheet__zones--top { left: 14px; right: 14px; height: 14px; font-size: 8px; }
  .sheet__zones--side { top: 14px; bottom: 14px; width: 14px; font-size: 8px; }
  .drawing { height: clamp(320px, 106vw, 430px); }
  .dims { gap: 8px; }
  .stepper { grid-template-columns: 34px minmax(0, 1fr) 34px; }
  .chip span { padding-inline: 12px; min-height: 40px; font-size: 0.88rem; }
  .btn { width: 100%; }
  .signoff__actions { gap: 16px; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .steps li:nth-child(2) { border-top: 1px solid var(--rule-strong); }
  .tb dd { white-space: normal; }
  .band { font-size: 0; }
}
