/* ZADEL SINIŠA / ZAD-GRAD d.o.o. — Rez pod tlakom */

/* ---------- Fonts (self-hosted, Fontsource, OFL-1.1) ---------- */
@font-face {
  font-family: "Apfel Grotezk";
  src: url("assets/fonts/apfel-grotezk-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Apfel Grotezk";
  src: url("assets/fonts/apfel-grotezk-latin-700-normal.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Yatra One";
  src: url("assets/fonts/yatra-one-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Yatra One";
  src: url("assets/fonts/yatra-one-latin-ext-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("assets/fonts/instrument-serif-latin-400-italic.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("assets/fonts/instrument-serif-latin-ext-400-italic.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Commit Mono";
  src: url("assets/fonts/commit-mono-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Commit Mono";
  src: url("assets/fonts/commit-mono-latin-700-normal.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
/* Metric-matched fallback so the swap to Apfel does not shift the layout */
@font-face {
  font-family: "Apfel Fallback";
  src: local("Arial"), local("Helvetica Neue"), local("Liberation Sans");
  size-adjust: 97%;
  ascent-override: 92%;
  descent-override: 24%;
}

/* ---------- Tokens ---------- */
@property --x1 { syntax: "<percentage>"; inherits: false; initial-value: 64%; }
@property --x2 { syntax: "<percentage>"; inherits: false; initial-value: 46%; }

:root {
  --obsidian: #0A0B0D;
  --gunmetal: #121418;
  --alabaster: #F2F0EC;
  --steel: #7D828A;
  --copper: #E05A2B;
  --hairline: rgba(242, 240, 236, 0.12);

  --f-sans: "Apfel Grotezk", "Apfel Fallback", Arial, sans-serif;
  --f-mono: "Commit Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --f-cut: "Yatra One", var(--f-sans);

  --m: clamp(20px, 3.4vw, 56px);
  --g: clamp(12px, 1.4vw, 24px);
  --hdr: 64px;
  --meta: 44px;

  --ease-ui: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-cut: cubic-bezier(0.76, 0, 0.24, 1);

  /* Hero type. Width ratios are measured per face: size = usable width / ratio,
     capped by viewport height so short laptops keep the foot clear. */
  --hero-w: calc(100vw - 2 * var(--m)); /* fallback; the stage redefines it in cqw */
  --fs-grot: min(calc(var(--hero-w) / 7.9), 15svh);
  --fs-cut: min(calc(var(--hero-w) / 9.42), 17svh);
}
:root[data-cut="serif"] {
  --f-cut: "Instrument Serif", Georgia, serif;
  --fs-cut: min(calc(var(--hero-w) / 6.14), 24svh);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  background: var(--obsidian);
  color: var(--alabaster);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scrollbar-color: var(--steel) var(--obsidian);
  scrollbar-width: thin;
}
body {
  margin: 0;
  min-height: 100svh;
  background: var(--obsidian);
  font-family: var(--f-sans);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--copper); color: var(--obsidian); }
a { color: inherit; text-decoration: none; }
p, ul, h1 { margin: 0; }
ul { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--alabaster); outline-offset: 3px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; z-index: 200; left: var(--m); top: 8px;
  padding: 12px 18px; background: var(--copper); color: var(--obsidian);
  font: 700 0.9375rem/1 var(--f-sans);
  transform: translateY(-160%);
  transition: transform 0.3s var(--ease-ui);
}
.skip:focus-visible { transform: none; outline-color: var(--obsidian); }

/* ---------- Status ---------- */
.status {
  display: inline-flex; align-items: center; gap: 10px;
  font: 400 0.75rem/1.4 var(--f-mono);
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--steel);
}
.status__dot {
  position: relative; flex: none;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--copper);
}
.status__dot::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: var(--copper);
  animation: pulse 2.4s var(--ease-ui) infinite;
}
@keyframes pulse {
  0% { transform: scale(1); opacity: 0.55; }
  70%, 100% { transform: scale(3.2); opacity: 0; }
}

/* ---------- Buttons ---------- */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 0 28px;
  font: 700 0.9375rem/1 var(--f-sans);
  letter-spacing: 0.02em; text-transform: uppercase;
  white-space: nowrap;
  transition: color 0.3s var(--ease-ui);
  will-change: transform;
}
.btn__fill {
  position: absolute; inset: 0; z-index: -1;
  clip-path: inset(100% 0 0 0);
  transition: clip-path 0.5s var(--ease-ui);
}
.btn__label { position: relative; display: inline-block; }
.btn:hover .btn__fill,
.btn:focus-visible .btn__fill { clip-path: inset(0); }
.btn .num { font-family: var(--f-mono); font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }

.btn--primary { background: var(--copper); color: var(--obsidian); }
.btn--primary .btn__fill { background: var(--alabaster); }
.btn--primary:focus-visible { outline-color: var(--alabaster); }

.btn--ghost { color: var(--alabaster); box-shadow: inset 0 0 0 1px var(--alabaster); }
.btn--ghost .btn__fill { background: var(--alabaster); }
.btn--ghost:hover, .btn--ghost:focus-visible { color: var(--obsidian); }

.btn--call {
  min-height: 40px; padding: 0 16px;
  font: 400 0.8125rem/1 var(--f-mono);
  letter-spacing: 0.02em; font-variant-numeric: tabular-nums;
  color: var(--alabaster);
  box-shadow: inset 0 0 0 1px var(--hairline);
}
.btn--call .btn__fill { background: var(--copper); }
.btn--call:hover, .btn--call:focus-visible { color: var(--obsidian); }

/* ---------- Header ---------- */
.hdr {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  height: var(--hdr); padding: 0 var(--m);
  background: var(--obsidian);
  border-bottom: 1px solid var(--hairline);
}
.hdr__mark {
  justify-self: start;
  font: 700 1.0625rem/1 var(--f-sans);
  letter-spacing: -0.01em; text-transform: uppercase;
  padding: 12px 0;
}
.hdr__status { justify-self: center; }
.btn--call { justify-self: end; }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate;
  display: flex; flex-direction: column;
  min-height: 100svh;
  padding-top: var(--hdr);
  background:
    radial-gradient(120% 90% at 30% 60%, var(--gunmetal) 0%, transparent 60%),
    var(--obsidian);
  overflow: hidden;
}
.hero__flow {
  position: absolute; inset: 0; z-index: -1;
  width: 100%; height: 100%;
  opacity: 0;
  transition: opacity 1.2s var(--ease-ui);
}
.hero__flow.is-live { opacity: 1; }

.hero__meta {
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--g);
  min-height: var(--meta); padding: 8px var(--m);
  border-bottom: 1px solid var(--hairline);
  font: 400 0.75rem/1.4 var(--f-mono);
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--steel);
}
.hero__meta-cell { display: flex; align-items: center; }
.hero__meta-cell:nth-child(2) { grid-column: 1 / span 3; color: var(--alabaster); }
.hero__meta-cell:nth-child(3) {
  grid-column: 4 / span 5;
  padding-left: var(--g);
  border-left: 1px solid var(--hairline);
  font-variant-numeric: tabular-nums;
}
.hero__meta-cell--end { grid-column: 9 / span 4; justify-content: flex-end; }
.hero__meta-cell--status { display: none; }

.hero__stage {
  position: relative; flex: 1;
  display: flex; flex-direction: column;
  min-height: max(calc(100svh - var(--hdr) - var(--meta)), 560px);
  container-type: inline-size;
  --hero-w: 100cqw;
  padding: clamp(16px, 3.2svh, 40px) var(--m) clamp(28px, 5.5svh, 64px);
}

.hero__title {
  position: relative; z-index: 1;
  font: 700 var(--fs-grot)/0.86 var(--f-sans);
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: var(--alabaster);
}
.hero__line { display: block; }
.hero__line--cut {
  font-family: var(--f-cut);
  font-weight: 400;
  font-size: var(--fs-cut);
  line-height: 0.95;
  letter-spacing: 0;
  margin: 0.04em 0 0.02em;
}
:root[data-cut="serif"] .hero__line--cut {
  font-style: italic;
  line-height: 0.88;
  letter-spacing: -0.02em;
  margin: 0.02em 0 0.04em -0.03em;
}

.hero__foot {
  position: relative; z-index: 3;
  margin-top: auto; padding-top: 48px;
  max-width: 44%;
}
.hero__lead {
  max-width: 36ch;
  font-size: clamp(1.125rem, 1.4vw, 1.4rem);
  line-height: 1.4;
  letter-spacing: -0.005em;
  text-wrap: pretty;
}
.hero__actions {
  display: flex; flex-wrap: wrap; gap: 16px;
  margin-top: clamp(24px, 3.4svh, 40px);
}

/* The cut: copper wedge with an obsidian copy of the headline, clipped together */
.cut {
  --x1: 64%;
  --x2: 46%;
  --lean: 0%;
  position: absolute; inset: 0; z-index: 2;
  padding: inherit;
  /* Painted as an image layer: contrast checkers ignore clip-path and would test the
     hero text against the whole unclipped box. Visually it is the same flat copper. */
  background-image: linear-gradient(var(--copper), var(--copper));
  color: var(--obsidian);
  clip-path: polygon(calc(var(--x1) + var(--lean)) 0, 100% 0, 100% 100%, calc(var(--x2) + var(--lean)) 100%);
  pointer-events: none;
}
.cut .hero__title { color: var(--obsidian); }
.cut__arrow {
  position: absolute;
  right: var(--m); bottom: clamp(28px, 5.5svh, 64px);
  width: clamp(84px, 8.4vw, 150px); height: auto;
  overflow: visible;
  fill: none; stroke: var(--obsidian); stroke-width: 22; stroke-linejoin: miter; stroke-linecap: butt;
}

.intro .cut { animation: cut-in 0.56s var(--ease-cut) both; }
@keyframes cut-in {
  from { --x1: 118%; --x2: 100%; }
  to { --x1: 64%; --x2: 46%; }
}

/* ---------- Cursor (fine pointers, added by app.js) ---------- */
.has-cursor, .has-cursor a, .has-cursor button { cursor: none; }
.cursor-dot, .cursor-ring {
  position: fixed; left: 0; top: 0; z-index: 300;
  pointer-events: none;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s var(--ease-ui);
}
.cursor-dot { width: 8px; height: 8px; margin: -4px 0 0 -4px; background: var(--alabaster); box-shadow: 0 0 0 1px rgba(10, 11, 13, 0.35); }
.cursor-ring { width: 40px; height: 40px; margin: -20px 0 0 -20px; }
.cursor-ring::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(242, 240, 236, 0.5);
  transition: transform 0.45s var(--ease-ui), box-shadow 0.45s var(--ease-ui);
}
.cursor-ring.is-hover::before { transform: scale(1.8); box-shadow: inset 0 0 0 1px var(--copper); }
.cursor-on .cursor-dot, .cursor-on .cursor-ring { opacity: 1; }

/* ---------- Tablet / mobile ---------- */
@media (max-width: 1100px) {
  .hdr__status { display: none; }
  .hdr { grid-template-columns: 1fr auto; }
  .hero__meta-cell--status { display: flex; grid-column: 1 / -1; }
  .hero__meta { grid-template-rows: auto auto; padding-block: 10px; row-gap: 6px; }
  .hero__meta-cell:nth-child(2) { grid-column: 1 / span 4; }
  .hero__meta-cell:nth-child(3) { grid-column: 5 / -1; }
  .hero__meta-cell--end { display: none; }
}
@media (min-width: 900px) and (max-width: 1100px) {
  /* Narrow desktops: move the cut right so the CTAs keep clean obsidian under them */
  .cut { --x1: 70%; --x2: 56%; }
  .hero__foot { max-width: 58%; padding-top: 32px; }
  .btn { padding: 0 22px; }
}

@media (max-width: 899px) {
  :root {
    --hdr: 56px;
    --fs-grot: calc(var(--hero-w) / 6.1);
    --fs-cut: calc(var(--hero-w) / 6.42);
  }
  :root[data-cut="serif"] { --fs-cut: calc(var(--hero-w) / 4.18); }
  .hero__stage { min-height: 0; padding-top: 20px; padding-bottom: 24px; }
  .hero__foot { max-width: none; padding-top: 40vw; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .btn { min-height: 56px; }
  .btn--call { min-height: 44px; padding: 0 14px; }
  /* Mobile: the cut becomes a shallow band across the headline's lower half.
     Offsets are in vw because the headline's height is vw-based here. */
  .cut {
    --y1: calc(20px + 50vw); --y2: calc(20px + 30vw); --y3: calc(20px + 76vw); --y4: calc(20px + 96vw);
    clip-path: polygon(0 var(--y1), 100% var(--y2), 100% var(--y3), 0 var(--y4));
  }
  .cut__arrow { bottom: auto; right: auto; top: calc(20px + 90vw); left: var(--m); width: 52px; transform: translateY(-100%); }
  .hero__meta, .hero__meta .status { letter-spacing: 0.02em; }
}

/* ---------- Shared section type ---------- */
.h2 {
  margin: 0;
  font: 700 clamp(2.4rem, 6.4vw, 7rem)/0.88 var(--f-sans);
  letter-spacing: -0.035em;
  text-transform: uppercase;
  text-wrap: balance;
}
.num { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.mono-label {
  font: 400 0.75rem/1.4 var(--f-mono);
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--steel);
}
/* SplitText line masks: keep descenders inside the clip */
.line-mask { padding-bottom: 0.08em; margin-bottom: -0.08em; }

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--hairline);
  padding-block: clamp(14px, 2vw, 28px);
}
.marquee__track { display: flex; width: max-content; will-change: transform; }
.marquee__group {
  display: flex; align-items: center; flex: none;
  font: 400 clamp(3.5rem, 9vw, 9.5rem)/1 var(--f-cut);
  text-transform: uppercase; white-space: nowrap;
}
:root[data-cut="serif"] .marquee__group { font-style: italic; letter-spacing: -0.02em; }
.marquee__group i {
  flex: none; display: block;
  width: 0.16em; height: 0.16em; margin: 0 0.42em;
  border-radius: 50%; background: var(--copper);
}

/* ---------- Services ---------- */
.services { padding: clamp(96px, 13vw, 200px) var(--m) clamp(72px, 10vw, 150px); }
.services__head {
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--g);
  align-items: end;
  margin-bottom: clamp(40px, 6vw, 88px);
}
.services__head .h2 { grid-column: 1 / span 7; }
.services__note {
  grid-column: 9 / -1; justify-self: end;
  max-width: 30ch;
  color: var(--steel);
  font-size: clamp(1.125rem, 1.4vw, 1.4rem); line-height: 1.4;
  text-wrap: pretty;
}

.svc-list { border-top: 1px solid var(--hairline); }
.svc {
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--g);
  align-items: start;
  padding: clamp(26px, 3vw, 46px) 0;
  border-bottom: 1px solid var(--hairline);
}
.svc__fill {
  position: absolute; z-index: -1;
  inset: 0 calc(-1 * var(--m));
  background: var(--gunmetal);
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.6s var(--ease-ui);
}
.svc__idx {
  grid-column: 1;
  padding-top: 0.55em;
  font: 400 0.75rem/1 var(--f-mono);
  letter-spacing: 0.06em; color: var(--steel);
  transition: color 0.4s var(--ease-ui);
}
.svc__title {
  grid-column: 2 / span 6;
  margin: 0;
  font: 700 clamp(1.75rem, 3.7vw, 3.9rem)/0.95 var(--f-sans);
  letter-spacing: -0.025em; text-transform: uppercase;
  text-wrap: balance;
  transition: transform 0.6s var(--ease-ui);
}
.svc__title .num { font-weight: 700; letter-spacing: -0.04em; }
.svc__body { grid-column: 8 / span 4; padding-top: 0.2em; }
.svc__desc {
  max-width: 44ch;
  color: var(--steel);
  transition: color 0.4s var(--ease-ui);
}
.svc__scope {
  margin-top: 14px;
  font: 400 0.75rem/1.65 var(--f-mono);
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--steel);
}
.svc__mark {
  grid-column: 12; justify-self: end;
  width: 14px; height: 14px; margin-top: 0.6em;
  box-shadow: inset 0 0 0 1px var(--steel);
  transition: transform 0.6s var(--ease-ui), background-color 0.4s var(--ease-ui), box-shadow 0.4s var(--ease-ui);
}
.svc__fig { margin: 0; }
.svc__fig svg, .preview svg { display: block; width: 100%; height: auto; overflow: visible; }

@media (hover: hover) and (pointer: fine) {
  .svc:hover .svc__fill { clip-path: inset(0); }
  .svc:hover .svc__title { transform: translateX(2.5vw); }
  .svc:hover .svc__desc { color: var(--alabaster); }
  .svc:hover .svc__idx { color: var(--copper); }
  .svc:hover .svc__mark { background: var(--copper); box-shadow: none; transform: rotate(45deg); }
}
@media (min-width: 900px) and (hover: hover) and (pointer: fine) {
  .svc__fig { display: none; }
}

/* Drawings */
.ln, .ac { fill: none; stroke-width: 1.25; stroke-linecap: square; stroke-linejoin: miter; }
.ln { stroke: var(--alabaster); }
.ln.thin { stroke: var(--steel); stroke-width: 1; }
.ac { stroke: var(--copper); stroke-width: 1.6; }
.dash { fill: none; stroke: var(--steel); stroke-width: 1; stroke-dasharray: 4 4; }
.dash--ac { stroke: var(--copper); }
.dot-ac { fill: var(--copper); }
.lbl {
  font: 400 9px var(--f-mono);
  letter-spacing: 0.06em; text-transform: uppercase;
  fill: var(--steel);
}
.lbl--ac { fill: var(--copper); }
.lbl--c { text-anchor: middle; }
.needle { transform-box: view-box; transform-origin: 160px 100px; }

.draw .ln, .draw .ac {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.1s cubic-bezier(0.65, 0, 0.35, 1) calc(var(--i, 0) * 45ms);
}
.draw .dash, .draw .lbl, .draw .dot-ac {
  opacity: 0;
  transition: opacity 0.5s var(--ease-ui) calc(0.45s + var(--i, 0) * 30ms);
}
.draw .needle { transform: rotate(-300deg); transition: transform 1.5s var(--ease-cut) 0.25s; }
.draw.is-drawn .ln, .draw.is-drawn .ac { stroke-dashoffset: 0; }
.draw.is-drawn .dash, .draw.is-drawn .lbl, .draw.is-drawn .dot-ac { opacity: 1; }
.draw.is-drawn .needle { transform: none; }

/* Floating preview (desktop pointers; built by app.js) */
.preview {
  position: fixed; left: 0; top: 0; z-index: 40;
  width: clamp(300px, 25vw, 400px);
  pointer-events: none;
  background: var(--obsidian);
  box-shadow: inset 0 0 0 1px var(--hairline);
  clip-path: inset(100% 0 0 0);
  transition: clip-path 0.55s var(--ease-ui);
}
.preview.is-on { clip-path: inset(0); }
.preview__head {
  display: flex; justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--hairline);
}
.preview__stage { position: relative; aspect-ratio: 320 / 236; }
.preview__panel { position: absolute; inset: 0; padding: 18px 20px 20px; opacity: 0; transition: opacity 0.3s var(--ease-ui); }
.preview__panel.is-active { opacity: 1; }

/* ---------- Standards ---------- */
.standards {
  --sx2: -18%;
  position: relative; isolation: isolate;
}
.standards__panel {
  position: relative;
  padding: clamp(96px, 12vw, 180px) var(--m) calc(clamp(96px, 12vw, 180px) + 6vw);
  background: var(--gunmetal);
  clip-path: polygon(calc(var(--sx2) + 18%) 0, 100% 0, 100% calc(100% - 6vw), var(--sx2) 100%);
}
.standards__sliver {
  position: absolute; inset: 0; z-index: -1;
  background: var(--copper);
  clip-path: polygon(calc(var(--sx2) + 18% - 1.2vw) 0, 100% 0, 100% calc(100% - 6vw), calc(var(--sx2) - 1.2vw) 100%);
}
.standards .h2 { max-width: 10ch; }
.std-list {
  display: grid; grid-template-columns: repeat(12, 1fr);
  column-gap: var(--g); row-gap: clamp(56px, 7vw, 120px);
  margin-top: clamp(40px, 5vw, 80px);
}
.std {
  display: grid; grid-template-columns: auto 1fr;
  column-gap: clamp(16px, 2vw, 32px);
  align-items: end;
}
.std--a { grid-column: 1 / span 6; }
.std--b { grid-column: 7 / span 6; margin-top: clamp(80px, 13vw, 220px); }
.std--c { grid-column: 3 / span 7; }
.std__letter {
  font: 400 clamp(7rem, 15vw, 15rem)/0.78 var(--f-cut);
  text-transform: uppercase;
  color: var(--steel);
  opacity: 0.72;
}
:root[data-cut="serif"] .std__letter { font-style: italic; }
.std__text {
  padding: 16px 0 0.3em;
  border-top: 1px solid var(--hairline);
}
.std__idx { display: block; margin-bottom: 14px; font: 400 0.75rem/1 var(--f-mono); letter-spacing: 0.06em; color: var(--steel); }
.std__statement {
  max-width: 21ch;
  font: 400 clamp(1.5rem, 2.5vw, 2.5rem)/1.15 var(--f-sans);
  letter-spacing: -0.015em;
  text-wrap: balance;
}

/* ---------- Contact ---------- */
.contact { padding: clamp(80px, 10vw, 160px) var(--m) 0; }
.contact__head {
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--g);
  align-items: end;
}
.contact__head .h2 { grid-column: 1 / span 6; }
.contact__lead {
  grid-column: 8 / -1;
  max-width: 34ch;
  color: var(--steel);
  font-size: clamp(1.125rem, 1.4vw, 1.4rem); line-height: 1.4;
  text-wrap: pretty;
}
.phone {
  position: relative; isolation: isolate; overflow: hidden;
  display: block;
  margin: clamp(36px, 5vw, 72px) calc(-1 * var(--m)) 0;
  padding: clamp(10px, 1.6vw, 24px) var(--m) clamp(14px, 2vw, 30px);
  border-block: 1px solid var(--hairline);
  container-type: inline-size;
}
.phone__num {
  display: block;
  font: 700 calc(100cqw / 6.78)/0.92 var(--f-mono);
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  transition: color 0.45s var(--ease-ui);
}
.phone__fill {
  position: absolute; inset: 0; z-index: -1;
  background: var(--copper);
  clip-path: inset(100% 0 0 0);
  transition: clip-path 0.6s var(--ease-ui);
}
.phone:hover .phone__fill, .phone:focus-visible .phone__fill { clip-path: inset(0); }
.phone:hover .phone__num, .phone:focus-visible .phone__num { color: var(--obsidian); }
.phone:focus-visible { outline: 2px solid var(--obsidian); outline-offset: -6px; }

.contact__cells {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--hairline);
}
.cell { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 28px var(--g) 34px 0; }
.cell + .cell { padding-left: var(--g); border-left: 1px solid var(--hairline); }
.cell__label { font: 400 0.75rem/1.4 var(--f-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--steel); }
.cell__link, .cell__more {
  position: relative;
  display: inline-flex; align-items: center; gap: 0.4em;
}
.cell__link { font: 700 clamp(1.25rem, 2vw, 2rem)/1.1 var(--f-sans); letter-spacing: -0.02em; }
.cell__link.num { font-family: var(--f-mono); letter-spacing: -0.03em; }
.cell__link::after, .cell__more::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px;
  background: currentColor;
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.5s var(--ease-ui);
}
.cell__link:hover::after, .cell__link:focus-visible::after,
.cell__more:hover::after, .cell__more:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.cell__addr { font-style: normal; font-size: clamp(1.125rem, 1.4vw, 1.375rem); line-height: 1.35; }
.cell__more {
  font: 400 0.75rem/1.4 var(--f-mono); letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--steel);
  transition: color 0.3s var(--ease-ui);
}
.cell__more:hover, .cell__more:focus-visible { color: var(--alabaster); }
.cell__arrow { width: 0.75em; height: 0.75em; fill: none; stroke: currentColor; stroke-width: 1.8; }
.cell__link .cell__arrow { color: var(--copper); }

/* ---------- Footer ---------- */
.ftr {
  padding: 0 var(--m) 28px;
  font: 400 0.75rem/1.6 var(--f-mono);
  letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--steel);
}
.ftr__company {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline;
  gap: 12px 32px;
  padding: 22px 0;
  border-bottom: 1px solid var(--hairline);
}
.ftr__slot { padding: 4px 10px; outline: 1px dashed rgba(224, 90, 43, 0.65); outline-offset: 0; }
.ftr__flag { margin-right: 10px; color: var(--copper); }
.ftr__bar { display: flex; flex-wrap: wrap; gap: 8px 32px; padding-top: 22px; }
.ftr__bar p { margin-right: auto; }
.ftr__bar a { transition: color 0.3s var(--ease-ui); }
.ftr__bar a:hover, .ftr__bar a:focus-visible { color: var(--alabaster); }

/* ---------- Subpages ---------- */
.legal {
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--g);
  padding: calc(var(--hdr) + clamp(64px, 9vw, 140px)) var(--m) clamp(80px, 10vw, 160px);
}
.legal__head { grid-column: 1 / span 5; align-self: start; position: sticky; top: calc(var(--hdr) + 32px); }
.legal__head .mono-label { margin-top: 20px; }
.legal__body { grid-column: 7 / span 6; max-width: 66ch; }
.legal__lead {
  padding-bottom: 32px;
  border-bottom: 1px solid var(--hairline);
  font-size: clamp(1.125rem, 1.4vw, 1.4rem); line-height: 1.4; letter-spacing: -0.005em;
  text-wrap: pretty;
}
.legal__body h2 {
  margin: 48px 0 12px;
  font: 400 0.75rem/1.4 var(--f-mono);
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--steel);
}
.legal__body p + p { margin-top: 14px; }
.legal__body a {
  text-decoration: underline;
  text-decoration-color: var(--copper);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.legal__slot {
  display: inline-block; margin: 8px 0;
  padding: 2px 8px;
  outline: 1px dashed rgba(224, 90, 43, 0.65);
  font: 400 0.75rem/1.6 var(--f-mono);
  letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--steel);
}
.sub .ftr__bar { border-top: 1px solid var(--hairline); }

.nf {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 100svh;
  padding: calc(var(--hdr) + clamp(40px, 6vw, 96px)) var(--m) clamp(40px, 6vw, 80px);
}
.nf__cut {
  position: absolute; inset: 0; z-index: -1;
  background: var(--copper);
  clip-path: polygon(72% 0, 100% 0, 100% 100%, 58% 100%);
}
.nf__code {
  margin-bottom: auto;
  font: 700 clamp(6rem, 30vw, 28rem)/0.8 var(--f-mono);
  letter-spacing: -0.04em;
}
.nf__title { max-width: 14ch; margin-top: 32px; }
.nf__lead {
  max-width: 40ch; margin-top: 16px;
  color: var(--steel);
  font-size: clamp(1.125rem, 1.4vw, 1.4rem); line-height: 1.4;
}

/* ---------- Sections: tablet / mobile ---------- */
@media (max-width: 899px) {
  .services__head, .contact__head { display: block; }
  .services__note, .contact__lead { margin-top: 20px; }
  .svc {
    grid-template-columns: auto 1fr auto;
    column-gap: 16px; row-gap: 14px;
  }
  .svc__idx { grid-column: 1; grid-row: 1; padding-top: 0; }
  .svc__mark { grid-column: 3; grid-row: 1; margin-top: 0; }
  .svc__title { grid-column: 1 / -1; grid-row: 2; }
  .svc__body { grid-column: 1 / -1; grid-row: 3; }
  .svc__fig { grid-column: 1 / -1; grid-row: 4; max-width: 440px; margin-top: 10px; }

  .standards__panel {
    padding-top: calc(80px + 8vw);
    padding-bottom: calc(80px + 8vw);
    clip-path: polygon(0 8vw, 100% 0, 100% calc(100% - 8vw), 0 100%);
  }
  .standards__sliver {
    inset: -2.4vw 0 auto; height: 20vw;
    clip-path: polygon(0 8.6vw, 100% 0.6vw, 100% 100%, 0 100%);
  }
  .std-list { display: flex; flex-direction: column; row-gap: 56px; }
  .std--b { margin-top: 0; }

  .contact__cells { grid-template-columns: 1fr; }
  .cell { padding: 24px 0 28px; }
  .cell + .cell { padding-left: 0; border-left: 0; border-top: 1px solid var(--hairline); }
  .ftr__bar p { width: 100%; }
  .legal { display: block; }
  .legal__head { position: static; }
  .legal__body { margin-top: 40px; }
  .nf__cut { clip-path: polygon(62% 0, 100% 0, 100% 30%); }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation: none !important; }
  .hero__flow { transition: none; }
}
