/* ============================================================
   Vetle Gangeskar — Performance creative, AI video, growth
   ============================================================ */

:root {
  --bg:        #08080a;
  --bg-raise:  #0d0d10;
  --fg:        #edeae4;
  --fg-dim:    #a5a29b;
  --fg-mute:   #6e6b65;
  --line:      rgba(255, 255, 255, 0.10);
  --line-soft: rgba(255, 255, 255, 0.055);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;

  --gut: clamp(20px, 5vw, 72px);
  --max: 1320px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  font-feature-settings: "kern" 1, "liga" 1, "cv11" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
em { font-style: italic; }

::selection { background: var(--fg); color: var(--bg); }

:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; border-radius: 2px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gut); }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--fg); color: var(--bg);
  padding: 12px 20px; z-index: 999; font-size: 13px; font-weight: 600;
}
.skip:focus { left: 12px; top: 12px; }

/* ---------- type ---------- */

.eyebrow {
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--fg-mute); font-weight: 600; margin: 0 0 28px;
  display: flex; align-items: center; gap: 12px;
}
.eyebrow__no { font-family: var(--mono); color: var(--fg); letter-spacing: 0.1em; }
.eyebrow::after { content: ""; flex: 1; height: 1px; background: var(--line-soft); }

h1, h2, h3, h4 { font-weight: 600; letter-spacing: -0.035em; line-height: 1.05; margin: 0; }

.h-display {
  font-size: clamp(2.9rem, 10.5vw, 8.6rem);
  font-weight: 620; letter-spacing: -0.05em; line-height: 0.92;
}
.h-section {
  font-size: clamp(1.9rem, 5vw, 3.9rem);
  line-height: 1.03; letter-spacing: -0.042em; max-width: 20ch;
}
.lede {
  font-size: clamp(1.02rem, 1.5vw, 1.24rem);
  line-height: 1.58; color: var(--fg-dim); max-width: 62ch; margin: 0;
}
.inline-link {
  color: var(--fg); text-decoration: none;
  border-bottom: 1px solid var(--line); padding-bottom: 1px;
  transition: border-color 0.3s var(--ease);
  white-space: nowrap;
}
.inline-link:hover { border-bottom-color: var(--fg); }

/* ---------- nav ---------- */

.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: rgba(8, 8, 10, 0.72);
  backdrop-filter: saturate(150%) blur(18px);
  -webkit-backdrop-filter: saturate(150%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.35s var(--ease), background 0.35s var(--ease);
}
.nav[data-scrolled="true"] { border-bottom-color: var(--line-soft); background: rgba(8, 8, 10, 0.9); }

.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 68px; }

.nav__brand {
  font-size: 12.5px; font-weight: 620; letter-spacing: 0.13em;
  text-transform: uppercase; text-decoration: none; white-space: nowrap;
}

.nav__links { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 34px); }

.nav__link {
  font-size: 13px; font-weight: 450; color: var(--fg-mute);
  text-decoration: none; transition: color 0.25s var(--ease);
  position: relative; padding: 4px 0; white-space: nowrap;
}
.nav__no { font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; opacity: 0.65; margin-right: 3px; }
.nav__link:hover { color: var(--fg); }
.nav__link[aria-current="true"] { color: var(--fg); }
.nav__link[aria-current="true"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: var(--fg);
}

@media (max-width: 760px) { .nav__links { gap: 15px; } .nav__link { font-size: 12px; } }
@media (max-width: 560px) {
  .nav__inner { gap: 12px; }
  .nav__brand { font-size: 10.5px; letter-spacing: 0.09em; }
  .nav__links { gap: 12px; }
  .nav__link { font-size: 11px; }
  .nav__no { display: none; }
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 2px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; text-decoration: none;
  border: 1px solid var(--line); color: var(--fg); background: transparent;
  cursor: pointer; font-family: inherit;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.btn:hover { border-color: rgba(255,255,255,0.28); transform: translateY(-1px); }
.btn--solid { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.btn--solid:hover { background: #fff; border-color: #fff; }
.btn__arrow { transition: transform 0.35s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(3px); }

/* ---------- media slots (auto-fill when the file exists) ---------- */

.slot {
  position: relative;
  border: 1px dashed var(--line);
  border-radius: 3px;
  background:
    repeating-linear-gradient(45deg,
      rgba(255,255,255,0.014) 0 10px,
      rgba(255,255,255,0) 10px 20px);
  display: grid; place-items: center;
  overflow: hidden;
  transition: border-color 0.4s var(--ease);
}
.slot:hover { border-color: rgba(255,255,255,0.2); }
.slot--4x5  { aspect-ratio: 4 / 5; }
.slot--9x16 { aspect-ratio: 9 / 16; }
.slot--16x9 { aspect-ratio: 16 / 9; }
.slot--3x2  { aspect-ratio: 3 / 2; }
.slot--3x4  { aspect-ratio: 3 / 4; }
/* exact ratios of the supplied photos, so object-fit crops nothing */
.slot--hero { aspect-ratio: 1800 / 1132; }
.slot--ski1 { aspect-ratio: 1100 / 1400; }
.slot--ski2 { aspect-ratio: 1400 / 788; }
.slot--wide { margin-top: clamp(30px, 4vw, 52px); }

.slot__meta { text-align: center; padding: 16px; }
.slot__file {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em;
  color: var(--fg-dim); display: block; margin-bottom: 6px; word-break: break-all;
}
.slot__hint {
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--fg-mute); display: block;
}

/* once filled, the dashes go away */
.slot.is-filled { border-style: solid; border-color: var(--line-soft); background: #000; }
.slot.is-filled img, .slot.is-filled video { width: 100%; height: 100%; object-fit: cover; }

.slot-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(10px, 1.3vw, 18px);
  margin-top: clamp(30px, 4vw, 52px);
}
.slot-row--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 620px; }
.slot-row--pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 860px) { .slot-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .slot-row.slot-row--pair { grid-template-columns: 1fr; } }

/* ---------- hero ---------- */

.hero {
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding-top: 124px; padding-bottom: 72px;
  position: relative; overflow: hidden;
}

.hero__name { margin-bottom: clamp(28px, 4.5vw, 52px); }

.hero__grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(28px, 5vw, 80px); align-items: end;
}
@media (max-width: 900px) { .hero__grid { grid-template-columns: 1fr; align-items: start; } }

.hero__sub {
  font-size: clamp(1.3rem, 2.7vw, 2rem);
  font-weight: 500; letter-spacing: -0.032em; line-height: 1.16; margin: 0;
}
.hero__sub span { display: block; }
.hero__sub span + span { color: var(--fg-dim); }
.hero__sub span + span + span { color: var(--fg-mute); }

.hero__meta { margin-top: 30px; font-size: 12.5px; line-height: 1.7; color: var(--fg-mute); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.hero__strip {
  display: grid; grid-template-columns: 1fr;
  margin-top: clamp(40px, 6vw, 76px);
}
@media (max-width: 700px) { .hero__strip { grid-template-columns: 1fr; } }

.ski-pair {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1fr);
  gap: clamp(12px, 1.6vw, 22px);
  align-items: start;
  margin-top: clamp(34px, 4.5vw, 58px);
}
@media (max-width: 760px) { .ski-pair { grid-template-columns: 1fr; } }

.sponsor-facts {
  margin: clamp(30px, 4vw, 48px) 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: 3px;
  overflow: hidden;
}
@media (max-width: 700px) { .sponsor-facts { grid-template-columns: 1fr; } }
.sponsor-facts > div { background: var(--bg); padding: clamp(20px, 2.4vw, 30px); }
.sponsor-facts dt {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--fg-mute); margin-bottom: 10px;
}
.sponsor-facts dd { margin: 0; font-size: 14.4px; line-height: 1.45; color: var(--fg); }

/* ---------- sections ---------- */

.section { padding-block: clamp(80px, 11vh, 144px); border-top: 1px solid var(--line-soft); }

.section__head {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 72px); align-items: end;
  margin-bottom: clamp(44px, 6vw, 84px);
}
@media (max-width: 900px) { .section__head { grid-template-columns: 1fr; align-items: start; gap: 20px; } }

/* ---------- LURK shots ---------- */

.shots {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 34px);
  margin-top: clamp(34px, 4.5vw, 60px);
}
@media (max-width: 860px) { .shots { grid-template-columns: 1fr; } }

.shot__frame {
  margin: 0; border: 1px solid var(--line-soft); border-radius: 5px;
  overflow: hidden; background: #000;
  transition: border-color 0.45s var(--ease), transform 0.5s var(--ease);
  display: flex; flex-direction: column;
}
.shot__frame:hover { border-color: rgba(255,255,255,0.19); transform: translateY(-2px); }

.shot__bar {
  display: flex; align-items: center; gap: 6px;
  padding: 9px 12px; border-bottom: 1px solid var(--line-soft);
  background: rgba(255,255,255,0.022);
}
.shot__dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,0.15); }
.shot__path { margin-left: 10px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.06em; color: var(--fg-mute); }

.shot__frame figcaption {
  padding: 16px 18px 20px; font-size: 13.4px; line-height: 1.56;
  color: var(--fg-dim); border-top: 1px solid var(--line-soft);
}
.shot__frame figcaption b { color: var(--fg); font-weight: 600; }

/* ---------- drive / results ---------- */

.results { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-soft); }

.result {
  display: grid; grid-template-columns: 120px minmax(0, 1fr);
  gap: clamp(18px, 3vw, 44px);
  padding: clamp(22px, 3vw, 36px) 0;
  border-bottom: 1px solid var(--line-soft);
  align-items: baseline;
}
@media (max-width: 620px) { .result { grid-template-columns: 1fr; gap: 8px; } }

.result__year {
  font-family: var(--mono); font-size: clamp(1.2rem, 2.4vw, 1.8rem);
  letter-spacing: -0.02em; color: var(--fg); font-variant-numeric: tabular-nums;
}
.result__title { font-size: clamp(1.05rem, 1.9vw, 1.38rem); letter-spacing: -0.03em; margin-bottom: 8px; }
.result__note { margin: 0; font-size: 14px; line-height: 1.6; color: var(--fg-dim); max-width: 62ch; }

.drive-note {
  margin-top: clamp(40px, 5.5vw, 72px);
  max-width: 68ch;
}
.drive-note p { font-size: clamp(1rem, 1.45vw, 1.18rem); line-height: 1.65; color: var(--fg-dim); margin: 0 0 22px; }
.drive-note__sig { color: var(--fg) !important; font-weight: 500; margin-bottom: 0 !important; }

/* ---------- contact ---------- */

.contact { padding-block: clamp(90px, 14vh, 175px); border-top: 1px solid var(--line-soft); }

.contact__title {
  font-size: clamp(2rem, 6.4vw, 4.9rem); letter-spacing: -0.045em;
  line-height: 1; margin: 0 0 clamp(38px, 5.5vw, 64px); max-width: 17ch;
}
.contact__grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(26px, 4vw, 60px); align-items: end;
}
@media (max-width: 760px) { .contact__grid { grid-template-columns: 1fr; align-items: start; } }

.contact__who { font-size: 15px; line-height: 1.7; color: var(--fg-dim); margin: 0; }
.contact__who strong { color: var(--fg); font-weight: 500; display: block; }
.contact__links { display: flex; flex-wrap: wrap; gap: 12px; }

.foot {
  border-top: 1px solid var(--line-soft); padding-block: 26px;
  display: flex; flex-wrap: wrap; gap: 12px 28px;
  justify-content: space-between; align-items: center;
  font-size: 11.5px; color: var(--fg-mute); font-family: var(--mono); letter-spacing: 0.04em;
}

/* ---------- reveal ---------- */

[data-reveal] {
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
  transition-delay: var(--delay, 0ms);
}
[data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- project CTAs ---------- */

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(30px, 4vw, 50px);
}
.cta-row--drive { margin-top: clamp(34px, 4.5vw, 56px); }
.cta-row .btn__arrow { font-size: 11px; transition: transform 0.35s var(--ease); }
.cta-row .btn:hover .btn__arrow { transform: translate(2px, -2px); }

/* ═══════════ loop ═══════════ */

.loopviz {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px; background: var(--line-soft);
  border: 1px solid var(--line-soft); border-radius: 3px; overflow: hidden;
  position: relative;
}
@media (max-width: 860px) { .loopviz { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .loopviz { grid-template-columns: 1fr; } }

.loopstep {
  background: var(--bg);
  padding: clamp(24px, 2.9vw, 38px) clamp(18px, 2.2vw, 28px) clamp(30px, 3.6vw, 46px);
  position: relative; transition: background 0.45s var(--ease);
}
.loopstep:hover { background: var(--bg-raise); }
.loopstep__no {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em;
  color: var(--fg-mute); display: block; margin-bottom: clamp(26px, 3.4vw, 44px);
}
.loopstep__name {
  font-size: 1.05rem; font-weight: 600; letter-spacing: 0.03em;
  text-transform: uppercase; margin: 0 0 10px;
}
.loopstep__text { margin: 0; font-size: 13.4px; line-height: 1.56; color: var(--fg-dim); }

.surfaces {
  list-style: none; margin: clamp(28px, 3.6vw, 44px) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.2vw, 30px);
}
@media (max-width: 780px) { .surfaces { grid-template-columns: 1fr; } }
.surface { border-top: 1px solid var(--line); padding-top: 16px; }
.surface__tag {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.17em;
  text-transform: uppercase; color: var(--fg-mute); display: block; margin-bottom: 10px;
}
.surface__text { margin: 0; font-size: 14.2px; line-height: 1.55; color: var(--fg-dim); }

/* ═══════════ build (project block) ═══════════ */

.build + .build { margin-top: clamp(64px, 9vw, 124px); }

.build__head {
  display: flex; flex-wrap: wrap; align-items: flex-end;
  justify-content: space-between; gap: 20px;
  padding-bottom: 20px; border-bottom: 1px solid var(--line-soft);
  margin-bottom: clamp(26px, 3.4vw, 44px);
}
.build__title {
  font-size: clamp(1.6rem, 3.4vw, 2.7rem); letter-spacing: -0.04em; margin: 0 0 8px;
  display: flex; align-items: center; gap: 14px;
}
.build__icon {
  width: clamp(34px, 3.4vw, 46px); height: auto; border-radius: 22%;
  flex: none; box-shadow: 0 0 0 1px rgba(255,255,255,0.08);
}
.build__sub {
  margin: 0; font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.09em; text-transform: uppercase; color: var(--fg-mute);
}

.stack { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.stack li {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em;
  color: var(--fg-dim); border: 1px solid var(--line-soft);
  border-radius: 2px; padding: 6px 10px; white-space: nowrap;
}

.build__body {
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(26px, 4vw, 72px); align-items: start;
}
@media (max-width: 900px) { .build__body { grid-template-columns: 1fr; } }

.build__lead p { margin: 0 0 18px; font-size: 15.4px; line-height: 1.68; color: var(--fg-dim); }
.build__lead p:last-child { margin-bottom: 0; }
.build__lead strong { color: var(--fg); font-weight: 500; }
.build__intro {
  font-size: clamp(1.04rem, 1.5vw, 1.2rem) !important;
  line-height: 1.55 !important; color: var(--fg) !important;
}
.build__foot {
  font-size: 12.5px !important; color: var(--fg-mute) !important;
  font-family: var(--mono); letter-spacing: 0.04em;
  padding-top: 14px; border-top: 1px solid var(--line-soft); margin-top: 22px !important;
}

/* ═══════════ architecture pipeline ═══════════ */

.pipeline {
  margin-top: clamp(34px, 4.5vw, 58px);
  border: 1px solid var(--line-soft); border-radius: 4px;
  padding: clamp(26px, 3.6vw, 44px);
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0));
}
.pipeline__title {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--fg-mute); margin: 0 0 clamp(22px, 3vw, 32px);
}
.pipeline__row {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 0;
}
.pipeline__row li { display: flex; align-items: center; }
.pipeline__row li:not(:last-child)::after {
  content: "\2192"; color: var(--fg-mute); font-size: 12px;
  padding-inline: clamp(6px, 1vw, 14px);
}
.pipenode {
  font-family: var(--mono); font-size: clamp(10px, 1.1vw, 11.5px);
  letter-spacing: 0.13em; text-transform: uppercase; color: var(--fg-dim);
  border: 1px solid var(--line-soft); border-radius: 2px;
  padding: 9px 12px; white-space: nowrap;
  transition: color 0.35s var(--ease), border-color 0.35s var(--ease), background 0.35s var(--ease);
}
.pipeline__row li:hover .pipenode {
  color: var(--fg); border-color: rgba(255,255,255,0.26); background: rgba(255,255,255,0.035);
}
.pipenode--key { color: var(--fg); border-color: rgba(255,255,255,0.24); }
.pipeline__note {
  margin: clamp(22px, 3vw, 30px) 0 0; font-size: 13px; line-height: 1.55;
  color: var(--fg-mute); max-width: 62ch;
}

/* ═══════════ model lab ═══════════ */

.lab-intro {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 3.6vw, 60px);
  padding-bottom: clamp(30px, 4vw, 48px);
  border-bottom: 1px solid var(--line-soft);
}
@media (max-width: 820px) { .lab-intro { grid-template-columns: 1fr; } }
.lab-intro p { margin: 0; font-size: 15.2px; line-height: 1.68; color: var(--fg-dim); }
.lab-intro strong { color: var(--fg); font-weight: 500; }

.evals { margin-top: clamp(34px, 4.5vw, 56px); }
.evals__title {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--fg-mute); margin: 0 0 20px;
}
.evals__grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 0;
}
.evals__grid li {
  border-top: 1px solid var(--line-soft); padding: 14px 24px 14px 0;
  display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 12px; align-items: baseline;
}
.evals__grid b {
  font-family: var(--mono); font-size: 10px; color: var(--fg-mute);
  font-weight: 500; letter-spacing: 0.08em;
}
.evals__grid span { font-size: 13.8px; line-height: 1.5; color: var(--fg-dim); }

.lab-flow { margin-top: clamp(40px, 5.5vw, 72px); }
.lab-flow__title {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--fg-mute); margin: 0 0 22px;
}
.lab-flow__steps {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 1.8vw, 24px);
}
@media (max-width: 900px) { .lab-flow__steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .lab-flow__steps { grid-template-columns: 1fr; } }

.labstep { display: flex; flex-direction: column; }
.labstep__no {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em;
  color: var(--fg-mute); margin-bottom: 10px;
}
.labstep__name {
  font-size: 0.98rem; font-weight: 600; letter-spacing: 0.03em;
  text-transform: uppercase; margin: 0 0 8px;
}
.labstep__text {
  margin: 0 0 16px; font-size: 13.2px; line-height: 1.55;
  color: var(--fg-dim); min-height: 3.4em;
}
@media (max-width: 520px) { .labstep__text { min-height: 0; } }

.toolrow {
  margin-top: clamp(40px, 5vw, 64px);
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 14px 26px;
  border-top: 1px solid var(--line-soft); padding-top: 22px;
}
.toolrow__label {
  margin: 0; font-family: var(--mono); font-size: 10px; letter-spacing: 0.17em;
  text-transform: uppercase; color: var(--fg-mute);
}
.toolrow__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.toolrow__list li { font-size: 14px; color: var(--fg-dim); }

/* ═══════════ CV weighting ═══════════ */

.cv__row--minor .cv__role { font-size: clamp(0.95rem, 1.4vw, 1.05rem); color: var(--fg-dim); }
.cv__row--minor .cv__points li { font-size: 13.2px; color: var(--fg-mute); }
.cv__row--minor .cv__points b { color: var(--fg-dim); font-weight: 500; }
.cv__row--minor { padding-block: clamp(20px, 2.6vw, 30px); }

/* ═══════════ facts panel ═══════════ */

.facts { margin: 0; border-top: 1px solid var(--line-soft); }
.facts > div {
  display: grid; grid-template-columns: 88px minmax(0, 1fr);
  gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line-soft);
}
.facts dt {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--fg-mute);
}
.facts dd { margin: 0; font-size: 13.4px; line-height: 1.5; color: var(--fg-dim); }

/* ═══════════ language toggle ═══════════ */

.lang {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 10px; border: 1px solid var(--line); border-radius: 2px;
  background: transparent; cursor: pointer; font-family: var(--mono);
  font-size: 10px; letter-spacing: 0.1em; color: var(--fg-mute);
  transition: border-color 0.3s var(--ease);
}
.lang:hover { border-color: rgba(255,255,255,0.28); }
.lang__opt { transition: color 0.3s var(--ease); }
.lang__opt[aria-current="true"] { color: var(--fg); }
.lang__sep { opacity: 0.35; }
@media (max-width: 560px) { .lang { padding: 5px 8px; font-size: 9px; } }

/* ═══════════ CV ═══════════ */

.cv { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-soft); }

.cv__row {
  display: grid; grid-template-columns: 170px minmax(0, 1fr);
  gap: clamp(18px, 3vw, 48px);
  padding: clamp(26px, 3.4vw, 42px) 0;
  border-bottom: 1px solid var(--line-soft);
}
@media (max-width: 760px) { .cv__row { grid-template-columns: 1fr; gap: 12px; } }

.cv__when {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.11em;
  text-transform: uppercase; color: var(--fg-mute); padding-top: 4px;
}
.cv__role { font-size: clamp(1.05rem, 1.9vw, 1.4rem); letter-spacing: -0.03em; margin-bottom: 6px; }
.cv__org { margin: 0 0 16px; font-size: 13px; color: var(--fg-mute); letter-spacing: 0.02em; }
.cv__points { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.cv__points li {
  font-size: 14.2px; line-height: 1.6; color: var(--fg-dim);
  padding-left: 20px; position: relative; max-width: 76ch;
}
.cv__points li::before {
  content: ""; position: absolute; left: 2px; top: 10px;
  width: 6px; height: 1px; background: var(--fg-mute);
}
.cv__points b { color: var(--fg); font-weight: 500; }

.cv__row--lead .cv__role { color: var(--fg); }

/* Four nav items plus the language toggle stop fitting below ~560px.
   Tighten first, then drop the brand — the hero repeats the name immediately below. */
@media (max-width: 560px) {
  .nav__links { gap: 10px; }
  .nav__link { font-size: 10.5px; }
  .lang { padding: 4px 7px; font-size: 9px; gap: 4px; }
}
@media (max-width: 460px) {
  .nav__brand { display: none; }
  .nav__inner { justify-content: flex-end; }
}
