/* Raudmerk — "Terased lahendused". A workshop drawing sheet in steel and heat.
   Colour: the old site's orange + navy are a complementary pair. Kept and tuned to a 60-30-10 split:
   60 ink-navy (navy pushed toward black, hue 222°) · 30 primer off-white (warm, hue 40°, the old cream)
   · 10 molten orange (hue 18°, the complement of 222°±). Heat tints (amber → red → steel) are an analogous
   ramp around the orange, used only by the weld bead, where real steel shows them. */

:root {
  --ink: #0b1220;        /* 60: ground */
  --ink-2: #111a2d;
  --ink-3: #1a2540;
  --navy: #12285a;       /* the brand navy, as a field colour */
  --navy-2: #183370;
  --primer: #f3efe8;     /* 30: light sections */
  --primer-2: #e8e2d6;
  --bone: #f1ede4;
  --steel: #8b97ab;      /* cool neutral tinted toward navy, 6.2:1 on ink */
  --steel-dark: #4a556b; /* secondary text on primer, 6.9:1 */
  --orange: #ff5a1f;     /* 10: action + heat; ink text on it 6.4:1 */
  --orange-deep: #e2460f;
  --orange-ink: #ff8a5c; /* orange as text on ink/navy, 7.0:1 */
  --heat-amber: #ffc56b;
  --heat-red: #b3300e;
  --heat-dark: #5c1a0a;
  --ok: #6fd39a;
  --err: #ff8f80;

  --display: "Unbounded", "Arial Black", sans-serif;
  --body: "Onest", system-ui, sans-serif;
  --mono: "Martian Mono", ui-monospace, monospace;

  --wrap: 1360px;
  --gutter: clamp(16px, 4vw, 56px);
  --section: clamp(84px, 10vw, 156px);
  --r: 4px;              /* steel is cut, not moulded: tight radii */
  --r-l: 10px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --header-h: 76px;
  color-scheme: dark;
}

/* tones: every section declares its ground; components read the variables */
.rm-tone--ink { --bg: var(--ink); --bg-2: var(--ink-2); --fg: var(--bone); --muted: var(--steel); --line: rgba(241, 237, 228, .12); --line-strong: rgba(241, 237, 228, .26); --accent-text: var(--orange-ink); --paper: rgba(139, 151, 171, .07); --paper-major: rgba(139, 151, 171, .13); background: var(--bg); color: var(--fg); }
.rm-tone--navy { --bg: var(--navy); --bg-2: var(--navy-2); --fg: var(--bone); --muted: #b5c0d6; --line: rgba(241, 237, 228, .16); --line-strong: rgba(241, 237, 228, .32); --accent-text: var(--orange-ink); --paper: rgba(181, 192, 214, .07); --paper-major: rgba(181, 192, 214, .14); background: var(--bg); color: var(--fg); }
.rm-tone--primer { --bg: var(--primer); --bg-2: var(--primer-2); --fg: var(--ink); --muted: var(--steel-dark); --line: rgba(11, 18, 32, .13); --line-strong: rgba(11, 18, 32, .3); --accent-text: #c23a0b; --paper: rgba(18, 40, 90, .05); --paper-major: rgba(18, 40, 90, .1); background: var(--bg); color: var(--fg); color-scheme: light; }

/* ------------------------------------------------------------------ base (zero specificity so components win) */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body.rm-page { margin: 0; background: var(--ink); color: var(--bone); font: 400 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: clip; scrollbar-color: var(--ink-3) var(--ink); }
:where(.rm-page) img { max-width: 100%; height: auto; display: block; }
:where(.rm-page) a { color: inherit; }
:where(.rm-page) :where(input, textarea, button, select) { font: inherit; color: inherit; }
:where(.rm-page) button { cursor: pointer; }
:where(.rm-page) :where(h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote) { margin: 0; }
:where(.rm-page) :where(ul, ol) { padding: 0; list-style: none; }
.rm-page ::selection { background: var(--orange); color: var(--ink); }
.rm-page :focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.rm-page ::-webkit-scrollbar { width: 12px; height: 12px; }
.rm-page ::-webkit-scrollbar-track { background: var(--ink); }
.rm-page ::-webkit-scrollbar-thumb { background: var(--ink-3); border: 3px solid var(--ink); border-radius: 2px; }

.rm-wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); position: relative; }
.rm-vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.rm-num { font-variant-numeric: tabular-nums; }
.rm-mono { font-family: var(--mono); font-size: .78em; letter-spacing: .02em; font-stretch: 87.5%; }
.rm-icon { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.rm-skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--orange); color: var(--ink) !important; font-weight: 700; text-decoration: none; }
.rm-skip:focus { top: 12px; }

/* drawing paper: 8 mm minor / 40 mm major grid, fading out at the edges */
.rm-grid-paper { position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(var(--paper-major) 1px, transparent 1px), linear-gradient(90deg, var(--paper-major) 1px, transparent 1px), linear-gradient(var(--paper) 1px, transparent 1px), linear-gradient(90deg, var(--paper) 1px, transparent 1px); background-size: 160px 160px, 160px 160px, 32px 32px, 32px 32px; background-position: -1px -1px; -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 30%, transparent 85%); mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 30%, transparent 85%); }

/* ------------------------------------------------------------------ type */
.rm-h2, .rm-station__name, .rm-proj__title, .rm-person__name, .rm-post__title, .rm-pagehead__title, .rm-callout__title { hyphens: auto; overflow-wrap: break-word; }
.rm-h2 { font: 700 clamp(1.9rem, 1.2rem + 2.6vw, 3.6rem)/1.02 var(--display); letter-spacing: -.025em; text-wrap: balance; }
.rm-h3 { font: 600 1.05rem/1.2 var(--display); letter-spacing: -.01em; margin-bottom: 16px; }
.rm-lede { color: var(--muted); font-size: clamp(1.05rem, 1rem + .3vw, 1.22rem); line-height: 1.6; max-width: 60ch; text-wrap: pretty; }
.rm-head { display: grid; gap: 18px; margin-bottom: clamp(40px, 6vw, 80px); max-width: 880px; }
.rm-section { position: relative; padding-block: var(--section); isolation: isolate; }
.rm-more { margin-top: clamp(32px, 4vw, 56px); }
.rm-link { display: inline-flex; align-items: center; gap: .55em; color: var(--accent-text, var(--orange-ink)) !important; font-weight: 600; text-decoration: none; }
.rm-link .rm-icon { transition: transform .4s var(--ease); }
.rm-link:hover .rm-icon { transform: translateX(4px); }

/* ------------------------------------------------------------------ the weld bead */
.rm-weld { --p: 1; position: relative; display: block; width: min(100%, 360px); height: 7px; overflow: hidden; border-radius: 4px; }
.rm-weld__bead { position: absolute; inset: 0; border-radius: inherit;
  /* cooled bead: steel crown with the ripple marks a MAG bead leaves */
  background: repeating-linear-gradient(100deg, rgba(255, 255, 255, .22) 0 1px, transparent 1px 4px), linear-gradient(180deg, #c5ccd8 0, #7d889b 55%, #3f4a5f 100%);
  clip-path: inset(0 calc((1 - var(--p)) * 100%) 0 0); }
.rm-weld::before { content: ""; position: absolute; top: 0; bottom: 0; left: calc(var(--p) * 100% - 150px); width: 150px; border-radius: inherit;
  /* the heat tint just behind the arc: dark red → red → orange → amber */
  background: linear-gradient(90deg, transparent 0, var(--heat-dark) 18%, var(--heat-red) 45%, var(--orange) 75%, var(--heat-amber) 100%);
  opacity: 0; transition: opacity 1.4s ease; z-index: 1; }
.rm-weld__head { position: absolute; top: 50%; left: calc(var(--p) * 100%); width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: radial-gradient(circle, #fff 0 25%, var(--heat-amber) 45%, rgba(255, 90, 31, 0) 72%); z-index: 2; opacity: 0; transition: opacity .5s ease; }
/* drawn and cool by default (no JS, reduced motion, editor); JS runs it hot: is-hot while the arc moves, is-cool after */
.js .rm-weld { --p: 0; }
.rm-weld.is-hot::before, .rm-weld.is-hot .rm-weld__head { opacity: 1; transition-duration: .15s; }
.rm-weld.is-cool::before, .rm-weld.is-cool .rm-weld__head { opacity: 0; }
.rm-weld--hero { width: min(100%, 520px); height: 9px; margin-top: clamp(20px, 3vw, 32px); }
.rm-weld--footer { width: 100%; height: 5px; margin: 40px 0 0; }
.rm-weld--v { position: absolute; top: 0; bottom: 0; left: 0; width: 7px; height: auto; }
.rm-weld--v .rm-weld__bead { clip-path: inset(0 0 calc((1 - var(--p)) * 100%) 0); background: repeating-linear-gradient(10deg, rgba(255, 255, 255, .22) 0 1px, transparent 1px 4px), linear-gradient(90deg, #c5ccd8 0, #7d889b 55%, #3f4a5f 100%); }
.rm-weld--v::before { top: calc(var(--p) * 100% - 150px); bottom: auto; left: 0; right: 0; width: auto; height: 150px; background: linear-gradient(180deg, transparent 0, var(--heat-dark) 18%, var(--heat-red) 45%, var(--orange) 75%, var(--heat-amber) 100%); clip-path: none; }
.rm-weld--v .rm-weld__head { top: calc(var(--p) * 100%); left: 50%; margin: -7px 0 0 -7px; }

/* ------------------------------------------------------------------ buttons */
.rm-btn { display: inline-flex; align-items: center; justify-content: center; gap: .6em; min-height: 54px; padding: 0 26px; border: 0; border-radius: var(--r); background: var(--orange); color: var(--ink) !important; font-weight: 650; font-size: 1rem; text-decoration: none; white-space: nowrap; transition: background-color .2s, transform .45s var(--ease); }
.rm-btn:hover { background: var(--heat-amber); transform: translateY(-2px); }
.rm-btn:active { transform: none; }
.rm-btn .rm-icon { transition: transform .4s var(--ease); }
.rm-btn:hover .rm-icon:last-child { transform: translateX(3px); }
.rm-btn--line { background: transparent; color: var(--fg, var(--bone)) !important; box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.rm-btn--line:hover { background: transparent; box-shadow: inset 0 0 0 1.5px var(--orange); }
.rm-btn--small { min-height: 44px; padding: 0 18px; font-size: .95rem; }
.rm-btn[disabled] { opacity: .55; cursor: progress; transform: none; }
.rm-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ------------------------------------------------------------------ header */
.rm-header { position: fixed; inset: 0 0 auto; z-index: 50; color: var(--bone); transition: transform .5s var(--ease), background-color .3s, box-shadow .3s; }
.rm-header.is-solid { background: rgba(11, 18, 32, .97); box-shadow: 0 1px 0 rgba(241, 237, 228, .1); }
.rm-header.is-hidden:not(.is-open) { transform: translateY(calc(-100% - 2px)); }
.rm-util { border-bottom: 1px solid rgba(241, 237, 228, .1); font-size: .84rem; color: var(--steel); transition: margin .3s; }
.rm-util__row { display: flex; gap: 24px; justify-content: flex-end; height: 34px; align-items: center; }
.rm-util__row > * { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.rm-util a:hover { color: var(--bone); }
.rm-header.is-solid .rm-util { margin-top: -35px; }
.rm-header__bar { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.rm-brand { margin-right: auto; display: block; text-decoration: none; font: 700 1.2rem var(--display); }
.rm-brand img { width: 150px; height: auto; }
.rm-nav { display: flex; align-items: center; gap: 24px; }
.rm-nav__list { display: flex; align-items: center; gap: 2px; }
.rm-nav__item { position: relative; display: flex; align-items: center; }
.rm-nav__item > a { position: relative; padding: 10px 12px; font-weight: 550; text-decoration: none; }
.rm-nav__item > a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.rm-nav__item > a:hover::after, .rm-nav__item > a[aria-current="page"]::after { transform: scaleX(1); }
.rm-nav__more { display: inline-grid; place-items: center; width: 26px; height: 26px; margin-left: -8px; border: 0; background: none; color: inherit; }
.rm-nav__more .rm-icon { transition: transform .3s var(--ease); }
.rm-nav__sub { position: absolute; top: calc(100% + 8px); left: 0; min-width: 260px; padding: 8px; background: var(--ink-2); border-radius: var(--r); box-shadow: 0 0 0 1px rgba(241, 237, 228, .12), 0 24px 50px -20px rgba(0, 0, 0, .8); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .2s, transform .35s var(--ease), visibility .2s; }
.rm-nav__sub::before { content: ""; position: absolute; inset: -10px 0 auto; height: 10px; }
.rm-nav__sub a { display: block; padding: 10px 14px; text-decoration: none; border-radius: 2px; }
.rm-nav__sub a:hover { background: var(--ink-3); color: var(--orange-ink); }
.rm-nav__item--sub:hover .rm-nav__sub, .rm-nav__item--sub:focus-within .rm-nav__sub, .rm-nav__item--sub.is-open .rm-nav__sub { opacity: 1; visibility: visible; transform: none; }
.rm-nav__item--sub.is-open .rm-nav__more .rm-icon { transform: rotate(180deg); }
.rm-nav__actions { display: flex; align-items: center; gap: 14px; }
.rm-nav__phone { display: none; }
.rm-nav-toggle { display: none; place-items: center; width: 48px; height: 48px; border: 0; border-radius: var(--r); background: rgba(241, 237, 228, .08); color: inherit; }
.rm-nav-toggle__close { display: none; }
@media (max-width: 1100px) {
  .rm-util { display: none; }
  .rm-nav-toggle { display: grid; }
  .rm-nav { position: fixed; inset: var(--header-h) 0 0; flex-direction: column; align-items: stretch; justify-content: space-between; gap: 32px; padding: 24px var(--gutter) calc(32px + env(safe-area-inset-bottom)); background: var(--ink); overflow-y: auto; opacity: 0; visibility: hidden; transform: translateY(-10px); transition: opacity .3s, transform .45s var(--ease), visibility .3s; }
  .rm-header.is-open { background: var(--ink); }
  .rm-header.is-open .rm-nav { opacity: 1; visibility: visible; transform: none; }
  .rm-header.is-open .rm-nav-toggle__open { display: none; }
  .rm-header.is-open .rm-nav-toggle__close { display: block; }
  .rm-nav__list { flex-direction: column; align-items: stretch; }
  .rm-nav__item { flex-wrap: wrap; border-bottom: 1px solid rgba(241, 237, 228, .12); }
  .rm-nav__item > a { flex: 1; padding: 18px 0; font: 600 1.35rem var(--display); letter-spacing: -.02em; }
  .rm-nav__item > a::after { display: none; }
  .rm-nav__more { width: 48px; height: 48px; margin: 0; background: rgba(241, 237, 228, .06); border-radius: var(--r); }
  .rm-nav__sub { position: static; flex-basis: 100%; min-width: 0; padding: 0 0 12px; background: none; box-shadow: none; opacity: 1; visibility: visible; transform: none; display: none; }
  .rm-nav__item--sub:hover .rm-nav__sub { display: none; }
  .rm-nav__item--sub.is-open .rm-nav__sub { display: block; }
  .rm-nav__sub a { padding: 10px 0; color: var(--steel); }
  .rm-nav__actions { flex-direction: column; align-items: stretch; }
  .rm-nav__phone { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; border-radius: var(--r); box-shadow: inset 0 0 0 1.5px rgba(241, 237, 228, .26); text-decoration: none; font-weight: 600; }
  .rm-nav__actions .rm-btn { min-height: 56px; }
}
body.rm-nav-open { overflow: hidden; }

/* ------------------------------------------------------------------ hero */
.rm-hero { position: relative; min-height: max(680px, 100svh); padding: calc(var(--header-h) + 34px + clamp(40px, 6vw, 80px)) 0 clamp(56px, 7vw, 96px); display: flex; align-items: center; overflow: hidden; isolation: isolate; }
.rm-hero__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.rm-hero__title { font: 800 clamp(2.5rem, 1rem + 5.4vw, 5.6rem)/.98 var(--display); letter-spacing: -.035em; text-wrap: balance; }
.rm-hero__lede { margin-top: 26px; color: #c9d0dc; font-size: clamp(1.08rem, 1rem + .4vw, 1.3rem); max-width: 52ch; }
.rm-hero .rm-actions { margin-top: 36px; }
.rm-hero__media { position: relative; }
.rm-hero__photo { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--r); clip-path: inset(0 0 0 0); }
.rm-hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.rm-hero__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 18, 32, 0) 55%, rgba(11, 18, 32, .55) 100%); }
@media (max-width: 900px) {
  .rm-hero { min-height: 0; display: block; padding-top: calc(var(--header-h) + 40px); }
  .rm-hero__grid { grid-template-columns: 1fr; }
  .rm-hero__photo { aspect-ratio: 4 / 3; }
  .rm-hero .rm-actions > * { flex: 1 1 100%; }
}

/* ------------------------------------------------------------------ steel nameplate */
.rm-plate { position: relative; display: grid; gap: 14px; padding: 22px 26px 24px; border-radius: 3px; color: #1d2636; text-decoration: none;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .14) 0 1px, rgba(0, 0, 0, .03) 1px 3px), linear-gradient(160deg, #eef1f4 0%, #cdd3db 38%, #e9ecf0 58%, #c3cad3 100%); /* kept light so engraved text holds ≥5:1 */
  box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 -1px 0 rgba(0, 0, 0, .25) inset, 0 18px 40px -18px rgba(0, 0, 0, .7); }
.rm-plate__rivets i { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #f4f6f8 0 20%, #8d97a5 60%, #5d6776 100%); box-shadow: 0 1px 1px rgba(0, 0, 0, .35); }
.rm-plate__rivets i:nth-child(1) { top: 9px; left: 9px; } .rm-plate__rivets i:nth-child(2) { top: 9px; right: 9px; } .rm-plate__rivets i:nth-child(3) { bottom: 9px; left: 9px; } .rm-plate__rivets i:nth-child(4) { bottom: 9px; right: 9px; }
.rm-plate__title { font: 700 .82rem/1 var(--display); letter-spacing: .08em; text-transform: uppercase; padding-bottom: 12px; border-bottom: 1.5px solid rgba(29, 38, 54, .35); text-shadow: 0 1px 0 rgba(255, 255, 255, .55); }
.rm-plate__rows { display: grid; gap: 7px; }
.rm-plate__rows > * { display: grid; grid-template-columns: 9.5em 1fr; gap: 12px; align-items: baseline; font-family: var(--mono); font-stretch: 87.5%; font-size: .74rem; line-height: 1.35; text-shadow: 0 1px 0 rgba(255, 255, 255, .5); }
.rm-plate__rows b, .rm-plate__rows dt { font-weight: 400; color: #343e50; }
.rm-plate__rows em, .rm-plate__rows dd { font-style: normal; font-weight: 700; color: #111827; }
.rm-plate--hero { position: absolute; left: clamp(-56px, -4vw, -24px); bottom: 28px; width: min(360px, 92%); transition: transform .5s var(--ease); }
.rm-plate--hero:hover { transform: translateY(-4px) rotate(-.6deg); }
@media (max-width: 900px) { .rm-plate--hero { position: relative; left: auto; bottom: auto; width: 100%; margin-top: -40px; margin-inline: auto; max-width: calc(100% - 32px); } }

/* ------------------------------------------------------------------ client logos */
.rm-logos { padding-block: 34px; border-bottom: 1px solid var(--line); }
.rm-logos__row { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 40px; align-items: center; }
.rm-logos__title { font: 500 .78rem/1.4 var(--mono); font-stretch: 87.5%; letter-spacing: .04em; color: var(--muted); max-width: 13ch; }
.rm-logos__track-wrap { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.rm-logos__track { display: flex; align-items: center; gap: clamp(40px, 5vw, 72px); width: max-content; animation: rm-marquee 48s linear infinite; }
.rm-logos__track-wrap:hover .rm-logos__track { animation-play-state: paused; }
.rm-logos__track img { height: 40px; width: auto; max-width: 170px; object-fit: contain; filter: grayscale(1) contrast(1.1); opacity: .62; transition: filter .3s, opacity .3s; }
.rm-logos__track li:hover img { filter: none; opacity: 1; }
@keyframes rm-marquee { to { transform: translateX(calc(-50% - clamp(20px, 2.5vw, 36px))); } }
@media (max-width: 700px) { .rm-logos__row { grid-template-columns: 1fr; gap: 18px; } .rm-logos__title { max-width: none; } }

/* ------------------------------------------------------------------ production chain */
.rm-chain__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.rm-chain__side { position: sticky; top: calc(var(--header-h) + 40px); }
.rm-chain__side .rm-head { margin-bottom: 0; }
.rm-chain__list { position: relative; padding-left: clamp(36px, 4vw, 56px); counter-reset: st; }
.rm-chain__list::before { content: ""; position: absolute; top: 0; bottom: 0; left: 3px; width: 1px; background: var(--line-strong); }
.rm-station { position: relative; counter-increment: st; border-bottom: 1px solid var(--line); }
.rm-station:first-of-type { border-top: 1px solid var(--line); }
.rm-station::before { content: ""; position: absolute; left: calc(-1 * clamp(36px, 4vw, 56px) - 3px); top: 42px; width: 13px; height: 13px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 2px var(--line-strong); transition: background-color .4s, box-shadow .4s; z-index: 2; }
.rm-station.is-on::before { background: var(--orange); box-shadow: inset 0 0 0 2px var(--orange), 0 0 0 5px var(--bg); }
.rm-station__link { display: grid; grid-template-columns: 64px minmax(0, 1fr) 150px 48px; gap: 8px 28px; align-items: center; padding: 30px 0; text-decoration: none; }
.rm-station__n::before { content: counter(st, decimal-leading-zero); font: 500 .9rem var(--mono); color: var(--muted); }
.rm-station.is-on .rm-station__n::before { color: var(--accent-text); }
.rm-station__body { display: grid; gap: 8px; }
.rm-station__name { font: 700 clamp(1.4rem, 1.1rem + 1.2vw, 2.2rem)/1.05 var(--display); letter-spacing: -.03em; transition: color .3s; }
.rm-station__link:hover .rm-station__name { color: var(--accent-text); }
.rm-station__text { color: var(--muted); max-width: 52ch; }
.rm-station__spec { color: var(--fg); opacity: .8; }
.rm-station__photo { aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r); background: var(--bg-2); }
.rm-station__photo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85); transition: transform .9s var(--ease), filter .4s; }
.rm-station__link:hover .rm-station__photo img { transform: scale(1.06); filter: none; }
.rm-station__go { display: grid; place-items: center; width: 48px; height: 48px; border-radius: var(--r); box-shadow: inset 0 0 0 1.5px var(--line-strong); transition: background-color .25s, color .25s, box-shadow .25s; }
.rm-station__link:hover .rm-station__go { background: var(--orange); color: var(--ink); box-shadow: none; }
@media (max-width: 1000px) {
  .rm-chain__grid { grid-template-columns: 1fr; }
  .rm-chain__side { position: static; }
  .rm-station__link { grid-template-columns: 44px minmax(0, 1fr) 44px; }
  .rm-station__photo { grid-column: 2 / 4; grid-row: 2; aspect-ratio: 16 / 9; }
  .rm-station__go { width: 44px; height: 44px; }
}

/* ------------------------------------------------------------------ products: drawing → product */
.rm-prod { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 24px); }
.rm-prod__link { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; text-decoration: none; }
.rm-prod__sheet { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; border-radius: var(--r); background: var(--ink); color: var(--bone); box-shadow: 0 0 0 1px var(--line); }
.rm-prod__sheet::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(139, 151, 171, .09) 1px, transparent 1px), linear-gradient(90deg, rgba(139, 151, 171, .09) 1px, transparent 1px); background-size: 20px 20px; }
.rm-prod__dwg { position: absolute; inset: 0; display: grid; place-items: center; padding: 14%; transition: opacity .5s var(--ease); }
.rm-prod__photo { position: absolute; inset: 0; clip-path: inset(100% 0 0 0); transition: clip-path .9s var(--ease); z-index: 1; }
.rm-prod__photo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 1.2s var(--ease); }
.rm-prod__link:hover .rm-prod__photo, .rm-prod__link:focus-visible .rm-prod__photo { clip-path: inset(0 0 0 0); }
.rm-prod__link:hover .rm-prod__photo img { transform: none; }
.rm-prod__meta { display: grid; gap: 6px; }
.rm-prod__name { font: 700 clamp(.98rem, .8rem + .6vw, 1.15rem)/1.15 var(--display); letter-spacing: -.02em; hyphens: auto; overflow-wrap: anywhere; }
.rm-prod__text { color: var(--muted); font-size: .96rem; }
@media (hover: none), (max-width: 1000px) {
  /* touch: show the finished product, the drawing rides on top as a small plate */
  .rm-prod__photo { clip-path: none; }
  .rm-prod__dwg { inset: auto 10px 10px auto; width: 46%; aspect-ratio: 3 / 2; padding: 6px; z-index: 2; background: rgba(11, 18, 32, .9); border-radius: 2px; }
}
@media (max-width: 1000px) { .rm-prod { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.rm-dwg { width: 100%; height: auto; overflow: visible; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.rm-dwg__ground { stroke-dasharray: 2 4; opacity: .5; }
.rm-dwg__glass { stroke: var(--orange-ink); stroke-width: 1; }
.rm-dwg__dim path { stroke: var(--orange-ink); stroke-width: .9; }
.rm-dwg__dim text { fill: var(--orange-ink); stroke: none; font: 500 7.5px var(--mono); text-anchor: middle; letter-spacing: .04em; }
/* draw on view: every path traces its length once */
.js [data-draw] path, .js [data-draw] circle { stroke-dasharray: 1 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s var(--ease); }
.js [data-draw] .rm-dwg__ground { stroke-dasharray: 1 1; }
.js [data-draw].is-in path, .js [data-draw].is-in circle { stroke-dashoffset: 0; }
.js [data-draw] text { opacity: 0; transition: opacity .6s .9s; }
.js [data-draw].is-in text { opacity: 1; }

/* ------------------------------------------------------------------ measured facts */
.rm-facts { overflow: hidden; }
.rm-facts__title { max-width: 18ch; margin-bottom: clamp(48px, 6vw, 88px); }
.rm-facts__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(28px, 3vw, 48px); }
.rm-fact { display: grid; gap: 10px; align-content: start; }
/* dimension line: end ticks + a line that extends between them when the fact scrolls in */
.rm-fact__dim { position: relative; display: block; height: 12px; border-inline: 1.5px solid var(--orange-ink); }
.rm-fact__dim::before { content: ""; position: absolute; left: 0; right: 0; top: 5px; height: 1.5px; background: var(--orange-ink); transform-origin: center; transition: transform 1.2s var(--ease) .2s; }
.js .rm-fact:not(.is-in) .rm-fact__dim::before { transform: scaleX(0); }
.rm-fact__value { display: flex; align-items: baseline; gap: 8px; margin-top: 4px; }
.rm-fact__value b { font: 800 clamp(2.6rem, 1.6rem + 3vw, 4.4rem)/1 var(--display); letter-spacing: -.04em; }
.rm-fact__unit { font: 600 clamp(1.1rem, .9rem + .6vw, 1.6rem)/1 var(--display); color: var(--accent-text); }
.rm-fact__label { font-size: 1.02rem; max-width: 26ch; }
.rm-fact__source { color: var(--muted); }
@media (max-width: 1000px) { .rm-facts__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .rm-facts__list { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ references */
.rm-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: -24px 0 clamp(32px, 4vw, 48px); }
.rm-filters[hidden] { display: none; }
.rm-filter { min-height: 44px; padding: 0 18px; border: 0; border-radius: var(--r); background: transparent; color: var(--fg); box-shadow: inset 0 0 0 1.5px var(--line-strong); font-weight: 550; transition: background-color .2s, color .2s, box-shadow .2s; }
.rm-filter:hover { box-shadow: inset 0 0 0 1.5px var(--orange); }
.rm-filter[aria-pressed="true"] { background: var(--fg); color: var(--bg); box-shadow: none; }
.rm-proj { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(36px, 4vw, 64px) clamp(16px, 2vw, 28px); }
.rm-proj__item { grid-column: span 6; transition: opacity .4s var(--ease), transform .5s var(--ease); }
.rm-proj__item:first-child { grid-column: span 7; }
.rm-proj__item:nth-child(2) { grid-column: span 5; padding-top: clamp(40px, 8vw, 140px); }
.rm-proj__item:nth-child(3) { grid-column: span 5; }
.rm-proj__item:nth-child(4) { grid-column: span 7; }
.rm-proj__item.is-out { display: none; }
.rm-proj__link { display: grid; gap: 20px; text-decoration: none; }
.rm-proj__photo { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r); background: var(--bg-2); }
.rm-proj__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.rm-proj__link:hover .rm-proj__photo img { transform: scale(1.04); }
.rm-proj__spec { position: absolute; left: 14px; bottom: 14px; padding: 7px 12px; border-radius: 2px; background: var(--orange); color: var(--ink); font-weight: 600; }
.rm-proj__body { display: grid; gap: 10px; }
.rm-proj__title { font: 700 clamp(1.4rem, 1.1rem + 1vw, 2.1rem)/1.08 var(--display); letter-spacing: -.03em; text-wrap: balance; transition: color .3s; }
.rm-proj__link:hover .rm-proj__title { color: var(--accent-text); }
.rm-proj__text { color: var(--muted); max-width: 58ch; }
.rm-proj__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; color: var(--muted); }
.rm-proj__meta .rm-icon { margin-right: -10px; }
@media (max-width: 900px) { .rm-proj__item, .rm-proj__item:first-child, .rm-proj__item:nth-child(n) { grid-column: 1 / -1; padding-top: 0; } }

/* ------------------------------------------------------------------ certificates */
.rm-certs__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.rm-certs__copy .rm-head { margin-bottom: 0; }
.rm-plate--big { padding: 32px 36px 34px; }
.rm-plate--big .rm-plate__title { font-size: .95rem; }
.rm-plate--big .rm-plate__rows > div { grid-template-columns: 15em 1fr; font-size: .84rem; padding-bottom: 7px; border-bottom: 1px dashed rgba(29, 38, 54, .22); }
.rm-plate--big .rm-plate__rows > div:last-child { border-bottom: 0; }
.rm-docs { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 22px); }
.rm-doc { display: grid; gap: 10px; width: 100%; padding: 0; border: 0; background: none; color: var(--fg); text-align: left; cursor: zoom-in; }
.rm-doc img { width: 100%; aspect-ratio: 210 / 297; object-fit: cover; object-position: top; border-radius: 2px; box-shadow: 0 0 0 1px var(--line), 0 14px 30px -18px rgba(11, 18, 32, .5); transition: transform .5s var(--ease); }
.rm-doc:hover img { transform: translateY(-6px); }
.rm-doc__cap { display: flex; gap: 8px; font-size: .9rem; color: var(--muted); }
.rm-doc__cap .rm-icon { color: var(--accent-text); margin-top: 2px; }
@media (max-width: 900px) { .rm-certs__grid { grid-template-columns: 1fr; } .rm-docs { grid-template-columns: repeat(2, minmax(0, 1fr)); } .rm-plate--big .rm-plate__rows > div { grid-template-columns: 1fr; gap: 2px; } }

/* ------------------------------------------------------------------ team */
.rm-people { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 36px); }
.rm-person { display: grid; gap: 6px; align-content: start; }
.rm-person__photo { aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--r); background: var(--bg-2); margin-bottom: 14px; display: grid; place-items: center; }
.rm-person__photo img { width: 100%; height: 100%; object-fit: cover; }
.rm-person__mono { font: 800 3rem var(--display); color: var(--orange-ink); letter-spacing: -.04em; }
.rm-person__name { font: 700 1.15rem/1.2 var(--display); letter-spacing: -.02em; }
.rm-person__role { color: var(--muted); font-size: .95rem; }
.rm-person__links { display: grid; gap: 4px; margin-top: 8px; font-size: .95rem; }
.rm-person__links a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; overflow-wrap: anywhere; }
.rm-person__links a:hover { color: var(--accent-text); }
@media (max-width: 1000px) { .rm-people { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ------------------------------------------------------------------ blog */
.rm-post-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 36px); }
.rm-post__link { display: grid; gap: 14px; text-decoration: none; }
.rm-post__photo { aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--r); background: var(--bg-2); }
.rm-post__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.rm-post__link:hover .rm-post__photo img { transform: scale(1.05); }
.rm-post__title { font: 700 1.25rem/1.2 var(--display); letter-spacing: -.02em; text-wrap: balance; }
.rm-post__link:hover .rm-post__title { color: var(--accent-text); }
.rm-post__text { color: var(--muted); }
.rm-post__meta { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); }
.rm-post__go { display: inline-flex; align-items: center; gap: 6px; color: var(--accent-text); }
@media (max-width: 900px) { .rm-post-list { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ rows (dl) */
.rm-rows { display: grid; width: 100%; border-top: 1px solid var(--line); }
.rm-rows > div { display: grid; grid-template-columns: 9em 1fr; gap: 16px; padding-block: 13px; border-bottom: 1px solid var(--line); }
.rm-rows dt { color: var(--muted); }
.rm-rows dd { font-weight: 550; }

/* ------------------------------------------------------------------ contact + form */
.rm-contact { overflow: hidden; }
.rm-contact__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.rm-contact__info { display: grid; gap: 22px; justify-items: start; }
.rm-contact__phone { display: grid; gap: 6px; margin-top: 10px; text-decoration: none; }
.rm-contact__phone .rm-num { font: 800 clamp(2rem, 1.4rem + 2.2vw, 3.2rem)/1 var(--display); letter-spacing: -.04em; transition: color .2s; }
.rm-contact__phone:hover .rm-num { color: var(--orange-ink); }
.rm-contact__who { color: var(--muted); }
.rm-contact__mail { display: inline-flex; align-items: center; gap: 10px; font-size: 1.15rem; font-weight: 550; text-underline-offset: 5px; text-decoration-color: var(--line-strong); }
.rm-contact__info .rm-rows { margin-top: 10px; }

.rm-form { position: relative; display: grid; gap: 26px; padding: clamp(22px, 3vw, 40px); background: var(--ink); border-radius: var(--r-l); box-shadow: 0 0 0 1px rgba(241, 237, 228, .1), 0 40px 80px -40px rgba(0, 0, 0, .8); color: var(--bone); }
.rm-form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.rm-form__progress { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.rm-form__progress[hidden] { display: none; }
.rm-form__progress li { display: flex; align-items: center; gap: 10px; padding-top: 12px; border-top: 3px solid rgba(241, 237, 228, .12); color: var(--steel); font-size: .92rem; font-weight: 550; transition: color .3s, border-color .3s; }
.rm-form__progress li span { font-family: var(--mono); font-size: .75rem; }
.rm-form__progress li.is-on { color: var(--bone); border-color: var(--orange); }
.rm-form__progress li.is-on span { color: var(--orange-ink); }
.rm-form__step { display: grid; gap: 18px; margin: 0; padding: 0; border: 0; min-width: 0; }
.js .rm-form.is-stepped .rm-form__step { display: none; }
.js .rm-form.is-stepped .rm-form__step.is-on { display: grid; animation: rm-step .5s var(--ease); }
@keyframes rm-step { from { opacity: 0; transform: translateX(14px); } }
.rm-form__legend { padding: 0; margin-bottom: 4px; font: 700 clamp(1.3rem, 1.1rem + .7vw, 1.7rem)/1.1 var(--display); letter-spacing: -.03em; }
.rm-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.rm-chip { position: relative; }
.rm-chip input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.rm-chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: var(--r); box-shadow: inset 0 0 0 1.5px rgba(241, 237, 228, .22); font-weight: 550; font-size: .95rem; transition: background-color .2s, color .2s, box-shadow .2s; }
.rm-chip input:hover + span { box-shadow: inset 0 0 0 1.5px var(--orange); }
.rm-chip input:checked + span { background: var(--orange); color: var(--ink); box-shadow: none; }
.rm-chip input:focus-visible + span { outline: 2px solid var(--orange); outline-offset: 3px; }
.rm-field { display: grid; gap: 8px; }
.rm-field > span { font-size: .9rem; font-weight: 600; color: var(--steel); }
.rm-field input, .rm-field textarea { width: 100%; min-height: 52px; padding: 13px 15px; border: 0; border-radius: var(--r); background: var(--ink-2); box-shadow: inset 0 0 0 1px rgba(241, 237, 228, .12); caret-color: var(--orange); transition: box-shadow .2s, background-color .2s; }
.rm-field textarea { resize: vertical; min-height: 130px; line-height: 1.5; }
.rm-field input::placeholder, .rm-field textarea::placeholder { color: #7f8aa0; }
.rm-field input:hover, .rm-field textarea:hover { box-shadow: inset 0 0 0 1px rgba(241, 237, 228, .28); }
.rm-field input:focus, .rm-field textarea:focus { outline: none; background: var(--ink-3); box-shadow: inset 0 0 0 2px var(--orange); }
.rm-field.is-invalid input, .rm-field.is-invalid textarea { box-shadow: inset 0 0 0 2px var(--err); }
.rm-field__err { color: var(--err); font-size: .88rem; }
.rm-form__two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .rm-form__two { grid-template-columns: 1fr; } }
.rm-drop { position: relative; display: grid; justify-items: center; gap: 6px; padding: 26px 18px; border-radius: var(--r); border: 1.5px dashed rgba(241, 237, 228, .26); text-align: center; color: var(--steel); cursor: pointer; transition: border-color .2s, background-color .2s; }
.rm-drop .rm-icon { width: 28px; height: 28px; color: var(--orange-ink); }
.rm-drop b { color: var(--bone); }
.rm-drop small { font: 400 .72rem/1.5 var(--mono); font-stretch: 87.5%; }
.rm-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.rm-drop:hover, .rm-drop.is-over { border-color: var(--orange); background: rgba(255, 90, 31, .06); }
.rm-drop:focus-within { outline: 2px solid var(--orange); outline-offset: 3px; }
.rm-drop__list { display: grid; gap: 6px; font-size: .9rem; }
.rm-drop__list li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 12px; border-radius: 2px; background: var(--ink-2); }
.rm-drop__list li span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rm-drop__list li span:last-child { color: var(--steel); font-family: var(--mono); font-size: .78rem; flex: none; }
.rm-drop__list li.is-bad { box-shadow: inset 0 0 0 1px var(--err); }
.rm-form__note { color: var(--steel); font-size: .88rem; }
.rm-form__note a { color: var(--orange-ink); }
.rm-form__nav { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
.rm-form__nav [hidden] { display: none; }
.rm-form__status { padding: 15px 17px; border-radius: var(--r); background: var(--ink-2); font-weight: 550; }
.rm-form__status[hidden] { display: none; }
.rm-form__status.is-ok { box-shadow: inset 0 0 0 1px var(--ok); color: var(--ok); }
.rm-form__status.is-err { box-shadow: inset 0 0 0 1px var(--err); color: var(--err); }
@media (max-width: 900px) { .rm-contact__grid { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ page head */
.rm-pagehead { position: relative; padding: calc(var(--header-h) + 34px + clamp(40px, 6vw, 88px)) 0 clamp(56px, 7vw, 100px); overflow: hidden; isolation: isolate; }
.rm-pagehead__grid { display: grid; gap: clamp(32px, 5vw, 80px); }
.rm-pagehead--photo .rm-pagehead__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); align-items: end; }
.rm-pagehead__copy { display: grid; gap: 20px; justify-items: start; }
.rm-pagehead__title { font: 800 clamp(2.2rem, 1.2rem + 3.8vw, 4.6rem)/1 var(--display); letter-spacing: -.035em; text-wrap: balance; max-width: 16ch; }
.rm-back { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); text-decoration: none; font-weight: 550; }
.rm-back:hover { color: var(--fg); }
.rm-pagehead__photo { position: relative; aspect-ratio: 5 / 4; overflow: hidden; border-radius: var(--r); }
.rm-pagehead__photo img { width: 100%; height: 100%; object-fit: cover; }
/* drawing title block in the corner of the photo */
.rm-titleblock { position: absolute; right: 0; bottom: 0; display: grid; grid-template-columns: auto auto; gap: 0; background: var(--ink); color: var(--bone); border-top-left-radius: 2px; }
.rm-titleblock > * { padding: 8px 12px; border-left: 1px solid rgba(241, 237, 228, .18); border-top: 1px solid rgba(241, 237, 228, .18); }
.rm-titleblock span:first-child { color: var(--steel); }
.rm-titleblock b { color: var(--orange-ink); font-weight: 600; }
.rm-titleblock span:last-child { grid-column: 1 / -1; color: var(--steel); }
@media (max-width: 900px) { .rm-pagehead--photo .rm-pagehead__grid { grid-template-columns: 1fr; } .rm-pagehead__photo { aspect-ratio: 16 / 10; } }

/* ------------------------------------------------------------------ detail */
.rm-detail__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.rm-detail__main { display: grid; gap: 22px; }
.rm-prose { display: grid; gap: 1.05em; max-width: 66ch; font-size: 1.07rem; }
.rm-tone--ink .rm-prose, .rm-tone--navy .rm-prose { color: #d3d9e3; }
.rm-tone--primer .rm-prose { color: #2a3347; }
.rm-prose p, .rm-prose ul, .rm-prose ol { margin: 0; }
.rm-prose h2, .rm-prose h3 { margin: .9em 0 0; font: 700 clamp(1.25rem, 1.1rem + .6vw, 1.6rem)/1.2 var(--display); letter-spacing: -.025em; color: var(--fg); }
.rm-prose ul { display: grid; gap: .45em; padding-left: 1.2em; list-style: square; }
.rm-prose li::marker { color: var(--orange); }
.rm-prose a { color: var(--accent-text); text-underline-offset: 4px; }
.rm-prose strong { color: var(--fg); }
.rm-prose blockquote { margin: 0; font-size: 1.14em; line-height: 1.55; color: var(--fg); }
.rm-prose h2 + blockquote { margin-top: -.3em; }
.rm-rows--facts { margin-top: 10px; }
.rm-points { counter-reset: pt; border-top: 1px solid var(--line); }
.rm-points li { display: grid; grid-template-columns: 46px 1fr; gap: 12px; padding: 18px 0; border-bottom: 1px solid var(--line); counter-increment: pt; }
.rm-points__n::before { content: counter(pt, decimal-leading-zero); color: var(--accent-text); font-family: var(--mono); font-size: .8rem; }
.rm-points div { display: grid; gap: 5px; }
.rm-points b { font-weight: 650; }
.rm-points span { color: var(--muted); }
@media (max-width: 900px) { .rm-detail__grid { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ gallery + lightbox */
.rm-gallery .rm-h2 { margin-bottom: clamp(32px, 4vw, 52px); }
.rm-gallery__grid { columns: 3 280px; column-gap: 16px; }
.rm-gallery__grid li { break-inside: avoid; margin-bottom: 16px; }
.rm-gallery__item { display: block; width: 100%; padding: 0; border: 0; background: var(--bg-2); border-radius: var(--r); overflow: hidden; cursor: zoom-in; }
.rm-gallery__item img { width: 100%; transition: transform 1s var(--ease); }
.rm-gallery__item:hover img { transform: scale(1.04); }
.rm-lightbox { width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(7, 11, 20, .97); color: var(--bone); }
.rm-lightbox::backdrop { background: rgba(7, 11, 20, .8); }
.rm-lightbox[open] { display: grid; grid-template-rows: auto 1fr auto; animation: rm-fade .25s ease; }
@keyframes rm-fade { from { opacity: 0; } }
.rm-lightbox__bar, .rm-lightbox__foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px var(--gutter); }
.rm-lightbox__foot { padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
.rm-lightbox__stage { display: grid; place-items: center; min-height: 0; padding: 0 var(--gutter); }
.rm-lightbox__stage img { max-width: 100%; max-height: 100%; object-fit: contain; }
.rm-lightbox__cap { color: var(--steel); }
.rm-sq { display: inline-grid; place-items: center; width: 46px; height: 46px; border: 0; border-radius: var(--r); background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px rgba(241, 237, 228, .26); }
.rm-sq:hover { background: var(--orange); color: var(--ink); box-shadow: none; }

/* ------------------------------------------------------------------ stock table */
.rm-table-wrap { overflow-x: auto; }
.rm-table { width: 100%; border-collapse: collapse; font-size: .98rem; }
.rm-table th, .rm-table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.rm-table thead th { font: 500 .75rem var(--mono); color: var(--muted); border-bottom-color: var(--line-strong); }
.rm-empty { display: grid; gap: 22px; justify-items: start; padding: clamp(28px, 4vw, 48px); border: 1.5px dashed var(--line-strong); border-radius: var(--r); max-width: 760px; }
.rm-empty p { font-size: 1.12rem; max-width: 52ch; }

/* ------------------------------------------------------------------ article */
.rm-article__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.rm-article__grid:not(:has(.rm-article__photo)) { grid-template-columns: minmax(0, 1fr); }
.rm-article__photo { position: sticky; top: calc(var(--header-h) + 24px); border-radius: var(--r); overflow: hidden; }
.rm-prose--long { max-width: 70ch; }
@media (max-width: 900px) { .rm-article__grid { grid-template-columns: 1fr; } .rm-article__photo { position: static; } }

/* ------------------------------------------------------------------ callout */
.rm-callout { position: relative; padding-block: clamp(100px, 13vw, 200px); overflow: hidden; isolation: isolate; border-top: 1px solid rgba(241, 237, 228, .1); }
.rm-callout__inner { display: grid; gap: 22px; justify-items: start; }
.rm-callout__title { font: 800 clamp(2.2rem, 1.2rem + 4vw, 5rem)/1 var(--display); letter-spacing: -.035em; max-width: 15ch; text-wrap: balance; }

/* ------------------------------------------------------------------ footer */
.rm-footer { padding-top: clamp(64px, 8vw, 120px); border-top: 1px solid rgba(241, 237, 228, .1); }
.rm-footer__top { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 2.4fr) minmax(0, 2.4fr) minmax(0, 3.2fr); gap: 40px; }
.rm-footer__brand { display: grid; gap: 18px; align-content: start; justify-items: start; }
.rm-footer__brand img { width: 220px; }
.rm-footer__tag { font: 700 1.25rem/1.1 var(--display); letter-spacing: -.02em; color: var(--orange-ink); }
.rm-badges { display: flex; gap: 14px; align-items: center; margin-top: 6px; }
.rm-badges img { height: 64px; width: auto; }
.rm-badges li:last-child img { background: var(--bone); padding: 8px 10px; border-radius: var(--r); height: 64px; }
.rm-footer__h { margin-bottom: 14px; color: var(--steel); font-weight: 500; }
.rm-footer__col ul { display: grid; gap: 2px; }
.rm-footer__col a { display: inline-block; padding: 5px 0; text-decoration: none; transition: color .2s; }
.rm-footer__col a:hover { color: var(--orange-ink); }
.rm-footer__phone { font: 800 1.6rem/1 var(--display) !important; letter-spacing: -.03em; margin-bottom: 10px; }
.rm-footer__line { display: flex !important; align-items: flex-start; gap: 10px; color: var(--steel); padding: 4px 0 !important; }
.rm-footer__line .rm-icon { margin-top: 3px; color: var(--orange-ink); }
.rm-social { display: flex; gap: 8px; margin-top: 10px; }
.rm-social a { display: inline-grid !important; place-items: center; width: 44px; height: 44px; padding: 0 !important; border-radius: var(--r); box-shadow: inset 0 0 0 1.5px rgba(241, 237, 228, .22); }
.rm-social a:hover { background: var(--orange); color: var(--ink) !important; box-shadow: none; }
.rm-footer__legal { display: flex; flex-wrap: wrap; gap: 8px 28px; padding-block: 22px; color: var(--steel); font-size: .88rem; }
.rm-footer__legal a { text-decoration: none; }
.rm-footer__legal a:hover { color: var(--bone); }
.rm-footer__legal span { margin-right: auto; }
@media (max-width: 1000px) { .rm-footer__top { grid-template-columns: 1fr 1fr; } .rm-footer__brand { grid-column: 1 / -1; } }
.rm-callbar { display: none; }
@media (max-width: 760px) {
  .rm-callbar { position: fixed; inset: auto 12px calc(12px + env(safe-area-inset-bottom)); z-index: 45; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 6px; border-radius: 8px; background: var(--ink-2); box-shadow: 0 0 0 1px rgba(241, 237, 228, .12), 0 16px 40px -10px rgba(0, 0, 0, .8); transform: translateY(160%); transition: transform .5s var(--ease); }
  .rm-callbar.is-on { transform: none; }
  .rm-callbar a { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; border-radius: var(--r); font-weight: 650; text-decoration: none; }
  .rm-callbar__call { background: var(--orange); color: var(--ink) !important; }
  .rm-footer { padding-bottom: 84px; }
}

/* ------------------------------------------------------------------ entrance */
.js [data-rise] { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
.js [data-rise].is-in { opacity: 1; transform: none; }
.js .rm-hero__photo { clip-path: inset(0 0 100% 0); transition: clip-path 1.4s var(--ease) .35s; }
.js .rm-hero.is-in .rm-hero__photo { clip-path: inset(0 0 0 0); }
.js .rm-hero .rm-plate--hero { opacity: 0; transform: translateY(24px) rotate(-2deg); transition: opacity .8s var(--ease) 1.2s, transform 1s var(--ease) 1.2s; }
.js .rm-hero.is-in .rm-plate--hero { opacity: 1; transform: none; }
.js .rm-hero.is-in .rm-plate--hero:hover { transform: translateY(-4px) rotate(-.6deg); transition-delay: 0s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rm-page *, .rm-page *::before, .rm-page *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .rm-logos__track { animation: none; flex-wrap: wrap; width: auto; }
  .js [data-rise], .js .rm-hero__photo, .js .rm-hero .rm-plate--hero { opacity: 1; transform: none; clip-path: none; }
}

/* ------------------------------------------------------------------ block editor */
.editor-styles-wrapper [data-type^="lazyblock/rm-"] { font: 400 17px/1.6 var(--body); max-width: none; margin-block: 0; }
:where(.editor-styles-wrapper [data-type^="lazyblock/rm-"]) :where(ul, ol) { padding: 0; list-style: none; }
:where(.editor-styles-wrapper [data-type^="lazyblock/rm-"]) :where(h1, h2, h3, p, figure, dl, dd, blockquote) { margin: 0; }
:where(.editor-styles-wrapper [data-type^="lazyblock/rm-"]) a { color: inherit; }
.editor-styles-wrapper .rm-header { position: relative; background: var(--ink); }
.editor-styles-wrapper .rm-hero { min-height: 0; }
.editor-styles-wrapper .rm-weld { --p: 1; }
.editor-styles-wrapper [data-rise], .editor-styles-wrapper .rm-hero__photo, .editor-styles-wrapper .rm-plate--hero { opacity: 1 !important; transform: none !important; clip-path: none !important; }
.editor-styles-wrapper .rm-form__step { display: grid !important; }
.editor-styles-wrapper [data-draw] path { stroke-dashoffset: 0 !important; }
