/* LASPOL · Łukasz Połetek. One stylesheet for the Dutch and Polish pages. */

@font-face {
  font-family: "Saira";
  src: url("assets/fonts/saira-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 50% 125%;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Saira";
  src: url("assets/fonts/saira-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 50% 125%;
  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;
}

:root {
  --k: #333132;          /* logo charcoal */
  --o: #f5821f;          /* logo orange */
  --paper: #ffffff;
  --stock: #f0f0ef;
  --rule: #d6d5d5;
  --muted: #5b595a;
  --on-k-muted: #c9c7c8;
  --logo-k: var(--k);
  --logo-o: var(--o);
  --gut: clamp(1rem, 4vw, 3rem);
  --sec: clamp(4rem, 9vw, 7.5rem);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scrollbar-color: var(--k) var(--stock);
}

body {
  margin: 0;
  font-family: "Saira", "Arial Narrow", system-ui, sans-serif;
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  line-height: 1.55;
  color: var(--k);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

::selection { background: var(--o); color: var(--k); }

a {
  color: inherit;
  text-decoration-color: var(--o);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 3px solid var(--o); outline-offset: 3px; }
.band :focus-visible { outline-color: var(--k); }

h1, h2, h3 { margin: 0; line-height: 1; font-weight: 800; text-wrap: balance; }
p, ul, ol, dl, figure { margin: 0; }
p { text-wrap: pretty; }
ul, ol { padding: 0; list-style: none; }

.wrap { width: min(100% - 2 * var(--gut), 76rem); margin-inline: auto; }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

.skip {
  position: absolute; left: var(--gut); top: -4rem; z-index: 20;
  background: var(--k); color: var(--paper); padding: 0.75rem 1rem; font-weight: 700;
}
.skip:focus { top: 0.75rem; }

.i {
  width: 1.25rem; height: 1.25rem; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

.sprite { position: absolute; }
.lk { fill: var(--logo-k); }
.lo { fill: var(--logo-o); }

/* Small orange square, the logo's corner, used as a separator. */
.sq {
  display: inline-block; width: 0.42em; height: 0.42em; margin: 0 0.55em 0.12em;
  background: var(--o); vertical-align: middle;
}

/* ---------- Header ---------- */

.top { border-bottom: 1px solid var(--rule); }
.top .wrap { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.25rem); min-height: 4.5rem; }

.brand { display: inline-flex; align-items: center; gap: 0.75rem; margin-right: auto; text-decoration: none; }
.brand .mark { width: 2.6rem; height: 2.6rem; }
.brand .word { width: 7.25rem; height: auto; aspect-ratio: 319.5 / 41.97; }

.nav { display: flex; gap: clamp(1rem, 2.5vw, 2rem); }
.nav a {
  padding-block: 0.6rem; text-decoration: none; font-weight: 650; font-stretch: 87.5%;
  border-bottom: 2px solid transparent; transition: border-color 0.2s;
}
.nav a:hover { border-bottom-color: var(--o); }

.lang { display: flex; border: 2px solid var(--k); }
.lang a {
  min-width: 2.75rem; padding: 0.45rem 0.6rem; text-align: center; text-decoration: none;
  font-weight: 750; font-stretch: 87.5%; letter-spacing: 0.06em; line-height: 1.3;
  transition: background-color 0.2s, color 0.2s;
}
.lang a:hover { background: var(--stock); }
.lang a[aria-current="page"] { background: var(--k); color: var(--paper); }

/* ---------- Front of the label ---------- */

/* One grid for the label front: name and spec panel side by side, band and
   action strip full width. On phones the band moves up, above the panel. */
.hero {
  display: grid;
  grid-template-columns: [full-start] minmax(var(--gut), 1fr) [main-start] minmax(0, 45rem) minmax(0, 31rem) [main-end] minmax(var(--gut), 1fr) [full-end];
}
.hero > .id {
  grid-column: 2; grid-row: 1; align-self: end;
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(2rem, 5vw, 4.5rem) clamp(2.25rem, 5vw, 3.75rem) 0;
}
.hero > .spec { grid-column: 3; grid-row: 1; align-self: end; margin-block: clamp(2.5rem, 6vw, 4.5rem) clamp(2.25rem, 5vw, 3.75rem); }
.hero > .band, .hero > .actions { grid-column: full; }

.name {
  font-size: clamp(4.25rem, 2.6rem + 7vw, 6rem); font-stretch: 62.5%; font-weight: 820;
  line-height: 0.88; letter-spacing: -0.005em; text-transform: uppercase;
}
.name span { display: block; }

.classline {
  margin-top: 1.4rem; font-size: clamp(1.15rem, 1rem + 0.6vw, 1.5rem);
  font-weight: 650; font-stretch: 87.5%; line-height: 1.3;
}
.classline .sq { margin-inline: 0.25em 0.5em; }
.nw { white-space: nowrap; }
.lede { margin-top: 0.8rem; max-width: 40ch; color: var(--muted); font-size: 1.125rem; }

/* The logo's 45° cut, used as the label's corner. */
.spec { border: 2px solid var(--k); clip-path: polygon(0 0, calc(100% - 1.25rem) 0, 100% 1.25rem, 100% 100%, 0 100%); }
.spec h2 {
  padding: 0.6rem 1rem; background: var(--k); color: var(--paper);
  font-size: 0.875rem; font-stretch: 87.5%; font-weight: 750; letter-spacing: 0.1em;
  text-transform: uppercase; line-height: 1.2;
}
.spec dl div {
  display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 0.75rem;
  padding: 0.6rem 1rem; border-top: 1px solid var(--rule);
}
.spec dl div:first-child { border-top: 0; }
.spec dt {
  padding-top: 0.15em; color: var(--muted); font-size: 0.8125rem; font-weight: 700;
  font-stretch: 87.5%; letter-spacing: 0.06em; text-transform: uppercase;
}
.spec dd { margin: 0; font-weight: 550; line-height: 1.4; }
.spec dd small { display: block; margin-top: 0.1rem; color: var(--muted); font-size: 0.875rem; font-weight: 500; }

/* ---------- Orange band: the certified processes ---------- */

.band { position: relative; background: var(--o); }
.band .wrap {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center;
  gap: clamp(1.25rem, 4vw, 3rem); padding-block: clamp(1.5rem, 3vw, 2rem);
}
.band h2 {
  max-width: 10.5rem; font-size: 0.9375rem; font-stretch: 87.5%; font-weight: 800;
  letter-spacing: 0.08em; line-height: 1.2; text-transform: uppercase;
}
.codes { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.25rem clamp(1.25rem, 3.4vw, 2.75rem); }
.codes li { display: grid; align-content: start; gap: 0.3rem; }
.codes b {
  font-size: clamp(2.3rem, 1.4rem + 3.2vw, 3.9rem); font-stretch: 68%; font-weight: 820;
  line-height: 0.9; font-variant-numeric: tabular-nums;
}
.codes span { font-size: 0.8125rem; font-weight: 650; font-stretch: 87.5%; line-height: 1.2; }
.pos { display: grid; grid-template-columns: auto auto; gap: 0.3rem 1rem; padding-left: clamp(1.25rem, 3vw, 2.25rem); border-left: 2px solid var(--k); }
.pos span { font-size: 0.8125rem; font-weight: 750; font-stretch: 87.5%; letter-spacing: 0.08em; text-transform: uppercase; }
.pos b { font-size: clamp(1.9rem, 1.3rem + 2.2vw, 3rem); font-stretch: 68%; font-weight: 820; line-height: 0.9; }
.pos svg { grid-column: 2; grid-row: 1 / span 2; align-self: end; width: 4rem; height: 3.25rem; }

/* The weld seam that joins the label to the band. It stays put; a small welder
   at its right end welds and grinds on a loop. --wx is the distance from the
   screen edge to his torch. */
.seam {
  --wx: clamp(2.5rem, 5vw, 5rem);
  position: absolute; inset: -7px 0 auto; height: 14px; pointer-events: none;
}
.seam .bead { display: block; width: calc(100% - var(--wx)); height: 14px; }
.seam span { position: absolute; }
/* Temper colours on the cooling bead, then the glowing end under the torch. */
.seam .temper {
  top: 1.5px; right: var(--wx); width: 9rem; height: 11px; border-radius: 0 5.5px 5.5px 0;
  background: linear-gradient(90deg, transparent, rgb(92 96 190 / 0.3) 35%, rgb(150 90 150 / 0.3) 55%, rgb(214 168 82 / 0.4) 80%, rgb(214 168 82 / 0.1));
}
.seam .tip {
  top: 1.5px; right: var(--wx); width: 2.5rem; height: 11px; border-radius: 0 5.5px 5.5px 0;
  background: linear-gradient(90deg, rgb(230 70 20 / 0), rgb(240 90 25 / 0.85) 55%, #ffb25a 85%, #fff1d6);
}
/* The open joint ahead of the welder: two bevelled edges and the root gap. */
.seam .gap {
  top: 4px; right: 0; width: var(--wx); height: 6px;
  background: linear-gradient(#b4b2b3, #7a7879 38%, #1f1d1e 42% 58%, #7a7879 62%, #b4b2b3);
}

.welder { position: absolute; right: var(--wx); bottom: 7px; height: clamp(3.3rem, 1.75rem + 2.4vw, 4.15rem); width: auto; aspect-ratio: 1; translate: 50% 0; overflow: visible; }
.welder .ov, .welder .hm { fill: var(--k); }
.welder .hm { fill: #262425; }
.welder .bt { fill: #1c1a1b; }
.welder .arms, .welder .legs { fill: none; stroke: var(--k); stroke-width: 5.2; stroke-linecap: round; stroke-linejoin: round; }
.welder .spatter line { stroke: #ffb347; stroke-width: 1.4; stroke-linecap: round; opacity: 0; }
.welder .sparks line { stroke: #fff1bd; stroke-width: 1.2; stroke-linecap: round; }
.welder .sparks .s1 { stroke: #ff9f1c; }
.welder .ga, .welder .sparks { opacity: 0; }
.welder .glow { opacity: 0.85; }

@media (prefers-reduced-motion: no-preference) {
  .seam .tip { animation: tip 8s 2s infinite backwards; }
  .welder .uv, .welder .rim { animation: uv 8s 1.95s infinite backwards; }
  .welder .wa { animation: weld-pose 8s 1.95s infinite; }
  .welder .ga { animation: grind-pose 8s 1.95s infinite; }
  .welder .sparks { animation: grind 8s 1.95s infinite; }
  .welder .glow { animation: flicker 0.31s linear infinite; }
  .welder .rim > g { animation: flicker 0.23s linear infinite reverse; }
  .welder .spatter line { animation: spatter 0.5s ease-out infinite; }
  .welder .spatter g:nth-child(3n+2) line { animation-delay: 0.17s; }
  .welder .spatter g:nth-child(3n) line { animation-delay: 0.33s; }
  .welder .sparks line { animation: spray 0.3s linear infinite; }
  .welder .sparks g:nth-child(4n+2) line { animation-delay: 0.075s; }
  .welder .sparks g:nth-child(4n+3) line { animation-delay: 0.15s; }
  .welder .sparks g:nth-child(4n) line { animation-delay: 0.225s; }
  .seam.idle * { animation-play-state: paused; }
}
/* One 8s loop: strike the arc, weld, stop, swap to the grinder, grind, swap back. */
@keyframes uv { 0% { opacity: 0; } 1.5%, 52% { opacity: 1; } 53.5%, 100% { opacity: 0; } }
@keyframes weld-pose { 0%, 55% { opacity: 1; } 56%, 96% { opacity: 0; } 97%, 100% { opacity: 1; } }
@keyframes grind-pose { 0%, 55% { opacity: 0; } 56%, 96% { opacity: 1; } 97%, 100% { opacity: 0; } }
@keyframes grind { 0%, 58% { opacity: 0; } 59.5%, 91% { opacity: 1; } 92.5%, 100% { opacity: 0; } }
@keyframes tip { 0% { opacity: 0.35; } 4%, 52% { opacity: 1; } 75%, 100% { opacity: 0.35; } }
@keyframes flicker { 0% { opacity: 1; } 22% { opacity: 0.7; } 45% { opacity: 0.95; } 70% { opacity: 0.6; } 100% { opacity: 1; } }
@keyframes spatter {
  from { opacity: 1; transform: translateX(10px); }
  to { opacity: 0; transform: translateX(22px) translateY(-3px); }
}
@keyframes spray {
  from { opacity: 1; transform: translateX(0) scaleX(0.6); }
  to { opacity: 0; transform: translateX(46px) scaleX(1.5); }
}

/* ---------- Action strip ---------- */

.actions { background: var(--k); color: var(--paper); }
.actions .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem; padding-block: 1.1rem; }

.btn {
  display: inline-flex; align-items: center; gap: 0.6rem; min-height: 3.25rem; padding: 0.7rem 1.25rem;
  border: 2px solid var(--paper); color: var(--paper); text-decoration: none;
  font-size: 1.0625rem; font-weight: 700; font-stretch: 87.5%; letter-spacing: 0.01em; line-height: 1.2;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.btn:hover { background: var(--paper); color: var(--k); }
.btn-call { position: relative; background: var(--o); border-color: var(--o); color: var(--k); font-variant-numeric: tabular-nums; }
.btn-call::after {
  content: ""; position: absolute; right: -2px; bottom: -2px;
  border-style: solid; border-width: 0 0 0.75rem 0.75rem; border-color: transparent transparent var(--k) transparent;
}
.btn-call:hover { background: var(--paper); border-color: var(--paper); }
.btn-cv {
  margin-left: auto; padding-inline: 0.25rem; border-color: transparent;
  text-decoration: underline; text-decoration-color: var(--o); text-decoration-thickness: 2px; text-underline-offset: 0.25em;
}
.btn-cv:hover { background: transparent; color: var(--paper); text-decoration-color: currentColor; }
.btn-cv small { font-weight: 500; color: var(--on-k-muted); }

/* ---------- Sections ---------- */

.about { padding-block: var(--sec); }
.about .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(2rem, 6vw, 6rem); }
.about h2 { font-size: clamp(2.6rem, 1.4rem + 4.4vw, 4.75rem); font-stretch: 62.5%; line-height: 0.9; text-transform: uppercase; }
.about .text { display: grid; gap: 1.1rem; max-width: 62ch; align-content: start; }
.about .text .lead { font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.55rem); font-weight: 600; font-stretch: 87.5%; line-height: 1.35; }

.title { margin-bottom: clamp(2rem, 4vw, 3rem); font-size: clamp(2.4rem, 1.5rem + 3.4vw, 4rem); font-stretch: 62.5%; line-height: 0.9; text-transform: uppercase; }
.sub { margin: -1.5rem 0 clamp(2rem, 4vw, 2.75rem); color: var(--muted); }

.work { padding-block: var(--sec); background: var(--stock); }

.apps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 2px solid var(--k); }
.apps li { padding: 1.4rem 1.5rem 0.25rem 0; }
.apps li + li { padding-left: 1.5rem; border-left: 1px solid var(--rule); }
.apps h3 { margin-bottom: 0.6rem; font-size: clamp(1.9rem, 1.3rem + 2vw, 2.75rem); font-stretch: 68%; text-transform: uppercase; }
.apps p { max-width: 34ch; }

.specs {
  display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 5rem); margin-top: clamp(3.5rem, 7vw, 5rem);
}
.specs h3 {
  margin-bottom: 0.9rem; font-size: 0.9375rem; font-stretch: 87.5%; font-weight: 800;
  letter-spacing: 0.08em; text-transform: uppercase;
}

table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
caption { text-align: left; }
th, td { padding: 0.8rem 1rem 0.8rem 0; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: baseline; }
thead th {
  padding-block: 0 0.6rem; border-bottom: 2px solid var(--k); color: var(--muted);
  font-size: 0.8125rem; font-weight: 700; font-stretch: 87.5%; letter-spacing: 0.06em; text-transform: uppercase;
}
.proc .code { width: 4.5rem; font-size: 1.75rem; font-weight: 820; font-stretch: 68%; line-height: 1; }
.proc .cert { font-weight: 750; font-stretch: 87.5%; white-space: nowrap; }
.proc td small { display: block; color: var(--muted); font-size: 0.875rem; }

.facts { display: grid; gap: 2.25rem; align-content: start; }
.facts > div > p { max-width: 36ch; }
.facts figure { display: grid; gap: 0.9rem; }
.facts figcaption { max-width: 36ch; }
.facts figcaption b { font-stretch: 87.5%; }

/* The weld scene: the pipe tilts into H-L045, then the torch follows both halves of the
   ring and leaves a restrained bead that cools behind it. A script arms it on view;
   without the script or with reduced motion, the finished weld remains visible. */
.pipe { width: 100%; max-width: 26rem; height: auto; color: var(--k); overflow: hidden; }
.pipe .bead path { fill: none; stroke: var(--o); stroke-width: 4.8; stroke-linecap: round; }
.pipe .heat path { fill: none; stroke: #ffc46b; stroke-width: 8.5; stroke-linecap: round; }
.pipe .heat, .pipe .arc, .pipe .sparks line { opacity: 0; }
.pipe .body-mask { fill: var(--stock); stroke: none; }
.pipe .tube, .pipe .fill { fill: none; stroke: var(--k); }
.pipe .fill { stroke: var(--stock); }
.pipe .line { fill: none; stroke: var(--k); stroke-width: 1.6; stroke-linecap: round; }
.pipe .hose { fill: none; stroke: var(--k); stroke-width: 3.5; stroke-linecap: round; }
.pipe .sparks line { stroke: #ffa53a; stroke-width: 1.6; stroke-linecap: round; }
.pipe .noz { fill: var(--stock); stroke: var(--k); stroke-width: 2; stroke-linejoin: round; }

.weld-armed:not(.weld-go), .weld-armed:not(.weld-go) * { animation-play-state: paused !important; }
@media (prefers-reduced-motion: no-preference) {
  .weld-armed .tilt { transform-origin: 110px 74px; animation: tilt 1.1s cubic-bezier(0.45, 0, 0.2, 1) both; }
  .weld-armed .axis { animation: show 0.4s ease-out 1s both; }
  .weld-armed .sweep { stroke-dasharray: 1 2; animation: draw 0.5s ease-out 1.05s both; }
  .weld-armed .deg { animation: rise 0.35s ease-out 1.4s both; }
  .weld-armed .torch { animation: torch-motion 5.3s linear both; }
  .weld-armed .torch-front { animation: torch-motion 5.3s linear both, torch-front-visibility 5.3s linear both; }
  .weld-armed .torch-back { animation: torch-motion 5.3s linear both, torch-back-visibility 5.3s linear both; }
  .weld-armed .bead .pass-a { stroke-dasharray: 1 2; animation: draw 1.43s linear 2.12s both, cool 0.95s ease-out 3.55s both; }
  .weld-armed .bead .pass-b { stroke-dasharray: 1 2; animation: draw 1.43s linear 3.55s both, cool 0.95s ease-out 4.98s both; }
  .weld-armed .heat .pass-a { stroke-dasharray: 1 2; animation: draw 1.43s linear 2.12s both; }
  .weld-armed .heat .pass-b { stroke-dasharray: 1 2; animation: draw 1.43s linear 3.55s both; }
  .weld-armed .heat { animation: heat 3s linear 2.12s both; }
  .weld-armed .arc { animation: flick 2.86s linear 2.12s both; }
  .weld-armed .sparks line { animation: spark 0.34s ease-out 2.12s 8; }
  .weld-armed .sparks g:nth-child(3n+2) line { animation-delay: 2.2s; }
  .weld-armed .sparks g:nth-child(3n) line { animation-delay: 2.28s; }
}
@keyframes tilt { 0% { transform: rotate(0deg); } 78% { transform: rotate(-46.5deg); } 100% { transform: rotate(-45deg); } }
@keyframes show { from { opacity: 0; } }
@keyframes draw { from { stroke-dashoffset: 1.05; } to { stroke-dashoffset: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(4px); } }
@keyframes cool { from { stroke: #ffe6a6; } to { stroke: var(--o); } }
@keyframes heat { 0% { opacity: 0; } 3% { opacity: 0.78; } 44% { opacity: 0.62; } 52% { opacity: 0.72; } 76% { opacity: 0.48; } 100% { opacity: 0; } }
@keyframes flick {
  0% { opacity: 0; } 4% { opacity: 0.88; } 12% { opacity: 0.62; } 21% { opacity: 0.96; }
  34% { opacity: 0.72; } 48% { opacity: 0.9; } 61% { opacity: 0.66; } 74% { opacity: 0.94; }
  88% { opacity: 0.7; } 100% { opacity: 0; }
}
@keyframes spark { from { opacity: 0.9; transform: translateX(1px) scaleX(0.45); } to { opacity: 0; transform: translateX(8px) scaleX(0.8); } }
@keyframes torch-motion {
  0%, 30%, 36% { transform: translate(262px, 150px) rotate(45deg); }
  40% { transform: translate(124.14px, 88.14px) rotate(45deg); animation-timing-function: ease-out; }
  43.375% { transform: translate(124.69px, 85.44px) rotate(37.9deg); }
  46.75% { transform: translate(123px, 81px) rotate(28.3deg); }
  50.125% { transform: translate(119.33px, 75.49px) rotate(9.1deg); }
  53.5% { transform: translate(114.24px, 69.76px) rotate(-45deg); }
  56.875% { transform: translate(108.51px, 64.67px) rotate(-99.1deg); }
  60.25% { transform: translate(103px, 61px) rotate(-118.3deg); }
  63.625% { transform: translate(98.56px, 59.31px) rotate(-127.9deg); }
  67% { transform: translate(95.86px, 59.86px) rotate(-135deg); }
  70.375% { transform: translate(95.31px, 62.56px) rotate(-142.1deg); }
  73.75% { transform: translate(97px, 67px) rotate(-151.7deg); }
  77.125% { transform: translate(100.67px, 72.51px) rotate(-170.9deg); }
  80.5% { transform: translate(105.76px, 78.24px) rotate(-225deg); }
  83.875% { transform: translate(111.49px, 83.33px) rotate(-279.1deg); }
  87.25% { transform: translate(117px, 87px) rotate(-298.3deg); }
  90.625% { transform: translate(121.44px, 88.69px) rotate(-307.9deg); }
  94% { transform: translate(124.14px, 88.14px) rotate(-315deg); animation-timing-function: ease-in; }
  100% { transform: translate(110px, 74px) rotate(-315deg); }
}

@keyframes torch-front-visibility {
  0%, 36% { opacity: 0; }
  40%, 62% { opacity: 1; }
  67%, 100% { opacity: 0; }
}
@keyframes torch-back-visibility {
  0%, 63% { opacity: 0; }
  67%, 94% { opacity: 1; }
  100% { opacity: 0; }
}

.exp { padding-block: var(--sec); }
.jobs, .older { max-width: 56rem; }
.jobs .when { width: 9rem; font-weight: 750; font-stretch: 87.5%; white-space: nowrap; }
.jobs .who { font-weight: 650; }
.jobs .who small { display: block; color: var(--muted); font-weight: 500; font-size: 0.9375rem; }
.jobs .where { color: var(--muted); }
.jobs tr:last-child td { border-bottom: 0; }

.older { margin-top: 0.5rem; border-top: 1px solid var(--rule); }
.older summary {
  display: inline-flex; align-items: center; gap: 0.6rem; min-height: 3rem; margin-top: 0.75rem;
  cursor: pointer; font-weight: 750; font-stretch: 87.5%; list-style: none;
}
.older summary::-webkit-details-marker { display: none; }
.older summary::before {
  content: ""; width: 0.6rem; height: 0.6rem; border: solid var(--k); border-width: 0 2px 2px 0;
  rotate: -45deg; transition: rotate 0.2s;
}
.older[open] summary::before { rotate: 45deg; }
.older summary:hover { text-decoration: underline; text-decoration-color: var(--o); text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
.older table { margin-top: 0.5rem; }

/* ---------- Contact: the end flap ---------- */

.contact {
  --logo-k: var(--paper);
  padding-block: var(--sec) 2rem; background: var(--k); color: var(--paper);
}
.contact a:focus-visible { outline-color: var(--o); }
.contact .title { margin-bottom: 1rem; }
.contact .note { max-width: 44ch; color: var(--on-k-muted); font-size: 1.125rem; }
.contact-grid {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 5rem); margin-top: clamp(2rem, 4vw, 3rem);
}
.phone {
  display: inline-block; color: var(--o); text-decoration: none; font-variant-numeric: tabular-nums;
  font-size: clamp(2.7rem, 1.2rem + 6vw, 5.75rem); font-stretch: 62.5%; font-weight: 820; line-height: 1;
}
.phone:hover { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 0.12em; }
.ways { display: grid; gap: 0.25rem; margin-top: 1.5rem; }
.ways a {
  display: inline-flex; align-items: center; gap: 0.75rem; min-height: 3rem;
  font-size: 1.125rem; font-weight: 600; text-decoration-color: var(--o);
}
.ways a:hover { text-decoration-color: currentColor; }
.ways small { color: var(--on-k-muted); font-weight: 500; }

.biz { border-top: 2px solid var(--o); }
.biz div { display: grid; grid-template-columns: 6rem minmax(0, 1fr); gap: 0.75rem; padding-block: 0.6rem; border-bottom: 1px solid rgb(255 255 255 / 0.16); }
.biz dt { padding-top: 0.15em; color: var(--on-k-muted); font-size: 0.8125rem; font-weight: 700; font-stretch: 87.5%; letter-spacing: 0.06em; text-transform: uppercase; }
.biz dd { margin: 0; font-variant-numeric: tabular-nums; }

.foot {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem;
  margin-top: clamp(3.5rem, 8vw, 6rem); padding-top: 1.5rem; border-top: 1px solid rgb(255 255 255 / 0.16);
  color: var(--on-k-muted); font-size: 0.9375rem;
}
.foot .brand { margin-right: auto; }
.foot .lang { border-color: var(--paper); }
.foot .lang a:hover { background: rgb(255 255 255 / 0.1); }
.foot .lang a[aria-current="page"] { background: var(--paper); color: var(--k); }
.foot .credit { flex-basis: 100%; margin: 0; font-size: 0.8125rem; opacity: 0.7; }
.foot .credit a { color: inherit; text-underline-offset: 0.2em; }
.foot .credit a:hover { color: var(--paper); }

/* ---------- Phone call bar ---------- */

.callbar { display: none; }

@media (max-width: 56rem) {
  .nav { display: none; }
  .about .wrap, .specs, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .hero { grid-template-columns: [full-start] var(--gut) [main-start] minmax(0, 1fr) [main-end] var(--gut) [full-end]; }
  .hero > .id { grid-column: main; padding-right: 0; padding-bottom: 3.5rem; }
  .hero > .band { grid-row: 2; }
  .hero > .spec { grid-column: main; grid-row: 3; margin-block: 2.25rem; }
  .hero > .actions { grid-row: 4; }
  .band .wrap { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .band h2 { max-width: none; }
  .pos { grid-template-columns: auto auto auto; justify-content: start; align-items: baseline; gap: 0.75rem; padding: 1rem 0 0; border-left: 0; border-top: 2px solid var(--k); }
  .pos svg { grid-column: 3; grid-row: 1; align-self: center; width: 3.25rem; height: 2.65rem; }
  .apps { grid-template-columns: minmax(0, 1fr); }
  .apps li, .apps li + li { padding: 1.25rem 0; border-left: 0; }
  .apps li + li { border-top: 1px solid var(--rule); }
}

@media (max-width: 40rem) {
  .brand .word { width: 6.25rem; }
  .codes { gap: 0.25rem 0.75rem; }
  .codes span { font-size: 0.75rem; }
  .actions .btn-contact { display: none; }
  .btn-cv { margin-left: 0; }
  .spec dl div { grid-template-columns: 6.5rem minmax(0, 1fr); }

  .jobs thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .jobs tr { display: grid; grid-template-columns: 6.25rem minmax(0, 1fr); column-gap: 0.75rem; padding-block: 0.75rem; border-bottom: 1px solid var(--rule); }
  .jobs tr:last-child { border-bottom: 0; }
  .jobs td { padding: 0; border: 0; }
  .jobs .when { width: auto; grid-row: span 2; }
  .jobs .where { grid-column: 2; font-size: 0.9375rem; }

  .callbar {
    position: fixed; inset: auto 0 0; z-index: 10; display: grid; grid-template-columns: 1.5fr 1fr 1fr;
    padding-bottom: env(safe-area-inset-bottom); background: var(--k); border-top: 1px solid rgb(255 255 255 / 0.16);
  }
  .callbar a {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.2rem;
    min-height: 3.75rem; color: var(--paper); text-decoration: none;
    font-size: 0.8125rem; font-weight: 700; font-stretch: 87.5%; letter-spacing: 0.02em;
  }
  .callbar a + a { border-left: 1px solid rgb(255 255 255 / 0.16); }
  .callbar .call { flex-direction: row; gap: 0.5rem; background: var(--o); color: var(--k); font-size: 1.0625rem; }
  .callbar a:active { filter: brightness(0.92); }
  .contact { padding-bottom: calc(5.75rem + env(safe-area-inset-bottom)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
