/* ==========================================================================
   Tapro Oy — tapro.fi
   Display: Cabinet Grotesk Variable · Body: Switzer Variable (both OFL/ITF Free)
   ========================================================================== */

@font-face {
  font-family: 'Cabinet Grotesk';
  src: url('../fonts/CabinetGrotesk-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Switzer';
  src: url('../fonts/Switzer-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Switzer';
  src: url('../fonts/Switzer-VariableItalic.woff2') format('woff2');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

/* --------------------------------------------------------------- tokens -- */

:root {
  --ink:         #0E1419;
  --ink-soft:    #17202A;
  --paper:       #F5F3EF;
  --paper-warm:  #EAE6DF;
  --fg:          #131A21;
  --muted:       #5C6670;
  --muted-ink:   #9BA6B0;
  --blue:        #0070B4;
  --blue-deep:   #005388;
  --blue-bright: #4FA8E0;
  --line:        #D5CFC5;
  --line-ink:    rgba(255, 255, 255, .16);

  --display: 'Cabinet Grotesk', 'Switzer', system-ui, sans-serif;
  --body:    'Switzer', system-ui, -apple-system, sans-serif;

  --gutter:  clamp(1.25rem, 5vw, 4.5rem);
  --measure: 66ch;
  --shell:   1280px;
  /* distance from the viewport edge to the shell's content edge */
  --edge:    max(var(--gutter), calc(50vw - (var(--shell) / 2) + var(--gutter)));
  --gap:     clamp(1.25rem, 2.4vw, 2.5rem);
  --section: clamp(4.5rem, 9vw, 9rem);
  --header-h: clamp(4rem, 5.4vw, 5rem);

  --ease: cubic-bezier(.16, 1, .3, 1);
}

/* ----------------------------------------------------------------- base -- */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--fg);
  font-family: var(--body);
  font-size: clamp(1.0625rem, 1rem + .18vw, 1.1875rem);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  margin: 0;
  text-wrap: balance;
  /* Finnish compounds run long — let them break rather than overflow. */
  overflow-wrap: break-word;
  hyphens: auto;
}

h1 {
  font-size: clamp(2.55rem, 1.35rem + 4.5vw, 5.1rem);
  line-height: 1.02;
  letter-spacing: -.033em;
}
h2 {
  font-size: clamp(1.95rem, 1.25rem + 2.6vw, 3.35rem);
  line-height: 1.06;
  letter-spacing: -.028em;
}
h3 {
  font-size: clamp(1.3rem, 1.08rem + .95vw, 1.8rem);
  line-height: 1.18;
  letter-spacing: -.02em;
}
h4 {
  font-size: 1.0625rem;
  line-height: 1.3;
  letter-spacing: -.01em;
}

p { margin: 0 0 1.15em; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

a { color: inherit; }

a:focus-visible,
button:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 1px;
}
.on-ink a:focus-visible,
.on-ink button:focus-visible { outline-color: var(--blue-bright); }

::selection { background: var(--blue); color: #fff; }

.skip {
  position: absolute; left: 0; top: 0; z-index: 200;
  transform: translateY(-120%);
  background: var(--blue); color: #fff;
  padding: .8rem 1.2rem;
  font: 600 .9375rem/1 var(--body);
  text-decoration: none;
}
.skip:focus { transform: none; }

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

/* ---------------------------------------------------------- primitives -- */

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

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap);
}

.section { padding-block: var(--section); }
.section--tight { padding-block: clamp(3rem, 6vw, 5.5rem); }

.on-ink {
  background: var(--ink);
  color: #EDEAE4;
  --line: var(--line-ink);
  --muted: var(--muted-ink);
  --blue: var(--blue-bright);
}
.on-ink h1, .on-ink h2, .on-ink h3 { color: #fff; }

.warm { background: var(--paper-warm); }

.label {
  font: 600 .75rem/1.2 var(--body);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

.lead {
  font-size: clamp(1.15rem, 1.02rem + .5vw, 1.45rem);
  line-height: 1.48;
  letter-spacing: -.012em;
  color: var(--fg);
  max-width: 34ch;
}
.on-ink .lead { color: #DCD8D1; }

.prose p { color: var(--fg); }
.on-ink .prose p { color: #C9CDD2; }
.prose a,
.textlink {
  color: var(--blue);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .2em;
  text-decoration-color: rgba(0, 112, 180, .42);
  transition: text-decoration-color .25s var(--ease);
}
.on-ink .prose a,
.on-ink .textlink { text-decoration-color: rgba(79, 168, 224, .45); }
.prose a:hover,
.textlink:hover { text-decoration-color: currentColor; }

.hr { border: 0; border-top: 1px solid var(--line); margin: 0; }

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

.btns { display: flex; flex-wrap: wrap; gap: .75rem; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: .65em;
  padding: .95em 1.45em;
  border: 0;
  border-radius: 2px;
  font: 600 .9375rem/1 var(--body);
  letter-spacing: .005em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease),
              box-shadow .25s var(--ease);
}
.btn svg { flex: none; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(4px); }

.btn--solid { background: var(--blue); color: #fff; }
.btn--solid:hover { background: var(--blue-deep); }
.on-ink .btn--solid { background: var(--blue-bright); color: var(--ink); }
.on-ink .btn--solid:hover { background: #7EC1EA; }

.btn--ghost { color: inherit; box-shadow: inset 0 0 0 1px var(--line); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1px currentColor; }

/* ---------------------------------------------------------------- rail --
   The signature device: the project lifecycle as a schedule baseline.      */

.rail {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  position: relative;
}
.rail::after {
  content: '';
  position: absolute;
  inset: -1px 0 auto 0;
  height: 1px;
  background: var(--fg);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.1s var(--ease) .25s;
}
.on-ink .rail::after { background: #EDEAE4; }
.rail.is-in::after { transform: scaleX(1); }

.rail__phase {
  padding: .95rem .75rem 0 0;
  font: 600 .6875rem/1.3 var(--body);
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted);
  position: relative;
}
.rail__phase::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 1px;
  height: 11px;
  background: var(--line);
}
.rail__phase:first-child { color: var(--fg); }
.on-ink .rail__phase:first-child { color: #fff; }
.rail__phase:first-child::before {
  width: 2px;
  height: 15px;
  background: var(--blue);
}

@media (max-width: 640px) {
  .rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rail__phase:nth-child(n+3) {
    margin-top: .85rem;
    padding-top: .95rem;
    border-top: 1px solid var(--line);
  }
}

/* -------------------------------------------------------------- header -- */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.header.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px -18px rgba(14, 20, 25, .5);
}

.header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.75rem);
}

.brand { display: flex; align-items: center; flex: none; }
.brand img { width: clamp(114px, 10vw, 146px); }

.nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.2vw, 2rem);
  margin-inline-start: auto;
}
.nav a {
  font: 500 .9375rem/1 var(--body);
  letter-spacing: -.005em;
  text-decoration: none;
  color: var(--fg);
  padding-block: .5rem;
  position: relative;
}
.nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .35s var(--ease);
}
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav a[aria-current='page'] { color: var(--blue); }
.nav a[aria-current='page']::after { transform: scaleX(1); background: var(--blue); }

.header__aside {
  display: flex;
  align-items: center;
  gap: clamp(.85rem, 1.8vw, 1.5rem);
  flex: none;
}
.tel {
  font: 600 .9375rem/1 var(--body);
  text-decoration: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: .5em;
}
.tel:hover { color: var(--blue); }
.tel svg { flex: none; color: var(--blue); }

.lang {
  display: flex;
  align-items: center;
  gap: .45rem;
  font: 600 .8125rem/1 var(--body);
  letter-spacing: .06em;
}
.lang a { text-decoration: none; color: var(--muted); }
.lang a:hover { color: var(--fg); }
.lang [aria-current] { color: var(--fg); }
.lang span { color: var(--line); }

.burger {
  display: none;
  width: 44px; height: 44px;
  margin-inline-start: auto;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
  position: relative;
}
.burger i {
  position: absolute;
  left: 11px;
  width: 22px;
  height: 1.5px;
  background: var(--fg);
  transition: transform .4s var(--ease), opacity .2s linear;
}
.burger i:nth-child(1) { top: 17px; }
.burger i:nth-child(2) { top: 22px; }
.burger i:nth-child(3) { top: 27px; }
.burger[aria-expanded='true'] i:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.burger[aria-expanded='true'] i:nth-child(2) { opacity: 0; }
.burger[aria-expanded='true'] i:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

.mobilenav {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 99;
  background: var(--paper);
  padding: clamp(1.5rem, 6vw, 3rem) var(--gutter) 3rem;
  display: flex;
  flex-direction: column;
  gap: .25rem;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity .35s var(--ease), transform .35s var(--ease), visibility .35s;
}
.mobilenav.is-open { opacity: 1; visibility: visible; transform: none; }
.mobilenav > a {
  font-family: var(--display);
  font-size: clamp(1.75rem, 8vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -.028em;
  text-decoration: none;
  padding-block: .5rem;
  border-bottom: 1px solid var(--line);
}
.mobilenav > a[aria-current='page'] { color: var(--blue); }
.mobilenav__foot {
  margin-top: auto;
  padding-top: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .6rem;
}
.mobilenav__foot .tel { font-size: 1.0625rem; text-decoration: none; }
.mobilenav__foot .lang { margin-top: .5rem; }

@media (max-width: 900px) {
  .nav, .header__aside { display: none; }
  .burger { display: block; }
}

/* ----------------------------------------------------------- hero: home -- */

.hero {
  border-bottom: 1px solid var(--line);
  overflow: clip;
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 62fr) minmax(0, 38fr);
  align-items: stretch;
  min-height: min(70vh, 640px);
  /* 100% here is the full content width, so this lands exactly on the
     .shell content edge below — no vw/scrollbar drift. */
  padding-inline-start: max(var(--gutter), calc((100% - var(--shell)) / 2 + var(--gutter)));
}
.hero__copy {
  padding: clamp(3rem, 7vw, 5rem) clamp(2rem, 4vw, 4rem) clamp(2.5rem, 5vw, 3.5rem) 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero h1 {
  font-size: clamp(2.35rem, 1.55rem + 2.7vw, 3.75rem);
  max-width: 16ch;
  hyphens: auto;
}
.hero__copy .lead { margin-top: clamp(1.4rem, 2.4vw, 2rem); max-width: 46ch; }
.hero__copy .btns { margin-top: clamp(1.6rem, 3vw, 2.4rem); }

.hero__media { position: relative; background: var(--paper-warm); }
.hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 56% 52%;
}

.hero__rail {
  padding-block: clamp(1.5rem, 2.6vw, 2.25rem) clamp(1.5rem, 2.6vw, 2.25rem);
}
.hero__rail .rail { border-top: 0; }
.hero__claims {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem clamp(1.5rem, 4vw, 3.5rem);
  margin-bottom: clamp(1.25rem, 2.2vw, 1.75rem);
}
.hero__claims p {
  margin: 0;
  max-width: 40ch;
  font-size: .9375rem;
  line-height: 1.45;
  color: var(--muted);
}
.hero__claims p strong { color: var(--fg); font-weight: 600; }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; min-height: 0; padding-inline-start: 0; }
  .hero__copy {
    padding: clamp(2.5rem, 9vw, 4rem) var(--gutter) clamp(2rem, 6vw, 2.75rem);
  }
  .hero__media { aspect-ratio: 16 / 10; }
  .hero__media img { position: static; height: 100%; }
  .hero__rail { padding-block: clamp(1.75rem, 6vw, 2.5rem); }
}

/* --------------------------------------------------------- hero: inner -- */

.phero {
  position: relative;
  background: var(--ink);
  color: #fff;
  isolation: isolate;
  min-height: min(66vh, 600px);
  display: flex;
  align-items: flex-end;
}
.phero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}
.phero__bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 58%;
  opacity: .88;
}
.phero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  /* Three layers: a uniform floor guarantees legibility over ANY photo pixel,
     the directional pair shapes where the picture is allowed to breathe. */
  background:
    linear-gradient(92deg, rgba(14, 20, 25, .9) 0%, rgba(14, 20, 25, .66) 42%, rgba(14, 20, 25, 0) 100%),
    linear-gradient(to top, rgba(14, 20, 25, .78) 0%, rgba(14, 20, 25, 0) 60%),
    linear-gradient(rgba(14, 20, 25, .46), rgba(14, 20, 25, .46));
}
.phero__inner {
  width: 100%;
  padding-block: clamp(5rem, 14vw, 10rem) clamp(2.25rem, 4vw, 3.25rem);
}
.phero h1 { max-width: 17ch; color: #fff; }
.phero .lead { margin-top: clamp(1.25rem, 2.4vw, 2rem); color: #D8D4CE; max-width: 46ch; }
.phero .btns { margin-top: clamp(1.5rem, 3vw, 2.25rem); }
.phero .rail { margin-top: clamp(2.5rem, 5vw, 4rem); border-top-color: var(--line-ink); }
.phero .rail::after { background: #EDEAE4; }
.phero .rail__phase { color: var(--muted-ink); }
.phero .rail__phase:first-child { color: #fff; }
.phero .rail__phase::before { background: var(--line-ink); }
.phero .rail__phase:first-child::before { background: var(--blue-bright); }

/* ------------------------------------------------------ editorial rows -- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(1.75rem, 4vw, 4.5rem);
  align-items: start;
}
.split--even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.split__head h2 { max-width: 19ch; }
.split__head .label { margin-bottom: 1.1rem; }

@media (max-width: 900px) {
  .split, .split--even { grid-template-columns: 1fr; }
}

.media {
  position: relative;
  overflow: hidden;
  background: var(--paper-warm);
}
.media img { width: 100%; height: 100%; object-fit: cover; }
.media--wide { aspect-ratio: 21 / 9; }
.media--4x3  { aspect-ratio: 4 / 3; }
.media--3x4  { aspect-ratio: 3 / 4; }
.media--1x1  { aspect-ratio: 1 / 1; }

/* Full-width photo band. Lives OUTSIDE .shell — no negative-margin tricks,
   so it can never introduce horizontal overflow. */
.band { position: relative; background: var(--ink); }
.band img { width: 100%; height: 100%; object-fit: cover; }
.band--21x9 { aspect-ratio: 21 / 9; }
.band--3x1  { aspect-ratio: 3 / 1; }
@media (max-width: 820px) {
  .band--21x9, .band--3x1 { aspect-ratio: 16 / 10; }
}

figure { margin: 0; }
figcaption {
  margin-top: .85rem;
  font: 500 .75rem/1.4 var(--body);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* -------------------------------------------------------------- values -- */

.values {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}
.values > div {
  padding: clamp(1.5rem, 2.6vw, 2.25rem) clamp(1.25rem, 2vw, 1.75rem) 0 0;
  border-inline-start: 1px solid var(--line);
  padding-inline-start: clamp(1.25rem, 2vw, 1.75rem);
}
.values > div:first-child { border-inline-start: 0; padding-inline-start: 0; }
.values h3 { margin-bottom: .7rem; }
.values p { font-size: 1rem; line-height: 1.55; color: var(--muted); max-width: none; }

@media (max-width: 960px) { .values { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 960px) {
  .values > div:nth-child(3), .values > div:nth-child(4) { border-top: 1px solid var(--line); margin-top: -1px; }
  .values > div:nth-child(odd) { border-inline-start: 0; padding-inline-start: 0; }
}
@media (max-width: 560px) {
  .values { grid-template-columns: 1fr; }
  .values > div { border-inline-start: 0; padding-inline-start: 0; }
  .values > div + div { border-top: 1px solid var(--line); }
}

/* ------------------------------------------------------- service index -- */

.services { border-top: 1px solid var(--line); }

.service {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(1rem, 3vw, 3rem);
  padding-block: clamp(2rem, 4vw, 3.25rem);
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.service__n {
  font: 600 .8125rem/1.9 var(--body);
  letter-spacing: .08em;
  color: var(--blue);
  font-variant-numeric: tabular-nums;
}
.service p { font-size: 1.0625rem; }
.service ul {
  margin: 1.1em 0 0;
  padding: 0;
  list-style: none;
  max-width: var(--measure);
}
.service ul li {
  position: relative;
  padding-inline-start: 1.35rem;
  margin-bottom: .5rem;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--fg);
}
.service ul li::before {
  content: '';
  position: absolute;
  left: 0; top: .68em;
  width: 8px; height: 1px;
  background: var(--blue);
}

@media (max-width: 900px) {
  .service { grid-template-columns: 2.5rem minmax(0, 1fr); }
  .service > *:last-child { grid-column: 2; }
  .service__n { line-height: 1.6; }
}

/* --------------------------------------------------------------- steps -- */

.steps { counter-reset: step; list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr);
  gap: clamp(.75rem, 2vw, 1.5rem);
  padding-block: clamp(1rem, 2vw, 1.4rem);
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  font: 600 .8125rem/1.7 var(--body);
  letter-spacing: .08em;
  color: var(--blue);
  font-variant-numeric: tabular-nums;
}
.steps li p { margin: 0; font-size: 1.0625rem; max-width: 68ch; }

/* ------------------------------------------------- duo band (ink + photo) --
   Copy on ink, photograph held at full strength beside it — no muddy scrim. */

.duo {
  display: grid;
  grid-template-columns: minmax(0, 42fr) minmax(0, 58fr);
  align-items: stretch;
  padding-inline-end: max(var(--gutter), calc((100% - var(--shell)) / 2 + var(--gutter)));
}
.duo__media { position: relative; min-height: clamp(17.5rem, 32vw, 32rem); }
.duo__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.duo__copy {
  padding: var(--section) 0 var(--section) clamp(1.75rem, 4vw, 4.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.duo__copy h2 { max-width: 15ch; }
.duo__copy .prose { margin-top: clamp(1.25rem, 2.4vw, 1.9rem); }

@media (max-width: 900px) {
  .duo { grid-template-columns: 1fr; padding-inline-end: 0; }
  .duo__media { min-height: 0; aspect-ratio: 16 / 10; }
  .duo__media img { position: static; height: 100%; }
  .duo__copy { padding: clamp(2.75rem, 8vw, 4rem) var(--gutter); }
}

/* ---------------------------------------------------------- certs, kpi -- */

/* Third-party marks are supplied with baked-in white grounds — hold them on
   one white plaque so the row reads as reproduced certification, not as cards. */
.certs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
  background: #fff;
  border: 1px solid var(--line);
  padding: clamp(1.5rem, 3vw, 2.25rem) clamp(1.5rem, 3vw, 2.5rem);
  width: fit-content;
  max-width: 100%;
}
.certs__item { height: clamp(3rem, 5vw, 4.25rem); display: flex; align-items: center; }
.certs__item img { height: 100%; width: auto; max-width: 13.75rem; object-fit: contain; object-position: left center; }

.factlist { list-style: none; margin: 0; padding: 0; }
.factlist li {
  display: grid;
  grid-template-columns: minmax(0, 8.5rem) minmax(0, 1fr);
  gap: 1rem;
  padding-block: .8rem;
  border-bottom: 1px solid var(--line);
  font-size: 1rem;
}
.factlist li:first-child { border-top: 1px solid var(--line); }
.factlist dt, .factlist .k {
  font: 600 .75rem/1.9 var(--body);
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted);
}

/* --------------------------------------------------------------- notes -- */

.note {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(1.25rem, 3vw, 3rem);
  padding-block: clamp(1.75rem, 3vw, 2.5rem);
  border-top: 1px solid var(--line);
}
.note time {
  font: 600 .75rem/1.9 var(--body);
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--blue);
}
@media (max-width: 720px) { .note { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------ downloads -- */

.dl { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.dl li { border-bottom: 1px solid var(--line); }
.dl a {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding-block: clamp(1.1rem, 2vw, 1.5rem);
  text-decoration: none;
  transition: padding-inline-start .35s var(--ease), color .25s var(--ease);
}
.dl a:hover { padding-inline-start: .65rem; color: var(--blue); }
.dl a .t {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.15rem, 1rem + .7vw, 1.5rem);
  letter-spacing: -.02em;
}
.dl a .m {
  margin-inline-start: auto;
  font: 500 .75rem/1 var(--body);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

/* ------------------------------------------------------------- gallery -- */

.gallery {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(.5rem, 1vw, .875rem);
}
.gallery button {
  padding: 0;
  border: 0;
  background: var(--paper-warm);
  cursor: zoom-in;
  overflow: hidden;
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
}
.gallery img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .7s var(--ease), filter .5s var(--ease);
}
.gallery button:hover img { transform: scale(1.035); }
.gallery .g-2 { grid-column: span 2; }
.gallery .g-3 { grid-column: span 3; }
.gallery .g-4 { grid-column: span 4; }
.gallery .r-2 { grid-row: span 2; }
.gallery .a-43 { aspect-ratio: 4 / 3; }
.gallery .a-11 { aspect-ratio: 1 / 1; }
.gallery .a-34 { aspect-ratio: 3 / 4; }
.gallery .a-169 { aspect-ratio: 16 / 9; }

@media (max-width: 900px) {
  .gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .gallery .g-3, .gallery .g-4 { grid-column: span 4; }
}
@media (max-width: 560px) {
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery .g-2, .gallery .g-3, .gallery .g-4 { grid-column: span 2; }
  .gallery .r-2 { grid-row: span 1; }
}

dialog.lightbox {
  padding: 0;
  border: 0;
  max-width: 100vw;
  max-height: 100vh;
  width: 100%;
  height: 100%;
  background: rgba(14, 20, 25, .96);
  color: #fff;
}
dialog.lightbox::backdrop { background: rgba(14, 20, 25, .96); }
.lightbox__fig {
  margin: 0;
  height: 100%;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 3.5rem);
}
.lightbox__fig img {
  max-width: 100%;
  max-height: calc(100dvh - clamp(7rem, 14vw, 10rem));
  width: auto;
  object-fit: contain;
}
html:has(dialog.lightbox[open]) { overflow: hidden; }
.lightbox__close {
  position: absolute;
  top: clamp(.75rem, 2vw, 1.5rem);
  right: clamp(.75rem, 2vw, 1.5rem);
  width: 46px; height: 46px;
  background: rgba(255, 255, 255, .08);
  border: 0;
  border-radius: 2px;
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background-color .25s var(--ease);
}
.lightbox__close:hover { background: rgba(255, 255, 255, .18); }
.lightbox__nav {
  position: absolute;
  bottom: clamp(.75rem, 2vw, 1.5rem);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 1rem;
  font: 600 .8125rem/1 var(--body);
  letter-spacing: .1em;
}
.lightbox__nav button {
  width: 42px; height: 42px;
  background: rgba(255, 255, 255, .08);
  border: 0;
  border-radius: 2px;
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background-color .25s var(--ease);
}
.lightbox__nav button:hover { background: rgba(255, 255, 255, .18); }

/* ------------------------------------------------------------- people -- */

.people {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}
.people > div {
  padding: clamp(1.5rem, 2.6vw, 2.25rem) clamp(1.25rem, 2vw, 2rem) clamp(1.5rem, 2.6vw, 2.25rem) 0;
  border-inline-start: 1px solid var(--line);
  padding-inline-start: clamp(1.25rem, 2vw, 2rem);
}
.people > div:first-child { border-inline-start: 0; padding-inline-start: 0; }
.people h3 { font-size: clamp(1.2rem, 1.05rem + .6vw, 1.5rem); }
.people .role {
  margin: .35rem 0 1.1rem;
  font: 500 .8125rem/1.5 var(--body);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.people a {
  display: block;
  text-decoration: none;
  font-size: 1.0625rem;
  padding-block: .18rem;
  width: fit-content;
}
.people a:hover { color: var(--blue); }

@media (max-width: 700px) {
  .people { grid-template-columns: 1fr; }
  .people > div { border-inline-start: 0; padding-inline-start: 0; }
  .people > div + div { border-top: 1px solid var(--line); }
}

/* ---------------------------------------------------------------- cta -- */

.cta { position: relative; isolation: isolate; overflow: clip; }
.cta__bg { position: absolute; inset: 0; z-index: -2; }
.cta__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .6; }
.cta::before {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(95deg, rgba(14, 20, 25, .9) 0%, rgba(14, 20, 25, .62) 55%, rgba(14, 20, 25, .18) 100%),
    linear-gradient(rgba(14, 20, 25, .5), rgba(14, 20, 25, .5));
}
.cta h2 {
  max-width: 20ch;
  font-size: clamp(1.7rem, 1.2rem + 1.85vw, 2.5rem);
}
.cta .split { align-items: center; }

/* -------------------------------------------------------------- footer -- */

.footer {
  background: var(--ink);
  color: #C9CDD2;
  padding-block: clamp(3rem, 6vw, 5rem) 2rem;
  border-top: 1px solid var(--line-ink);
}
.footer a { color: inherit; text-decoration: none; }
.footer a:hover { color: #fff; }
.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 3fr) minmax(0, 5fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: clamp(2.5rem, 4vw, 3.5rem);
}
.footer__brand img { width: 148px; margin-bottom: 1.5rem; }
.footer address { font-style: normal; line-height: 1.75; font-size: 1rem; }
.footer h4 {
  color: #fff;
  font-family: var(--body);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { padding-block: .28rem; font-size: 1rem; }
/* Email addresses are long and unbreakable — never let one push the page wide. */
.footer a, .footer address { overflow-wrap: anywhere; }
.footer__people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.footer__people .n { color: #fff; font-weight: 600; }
.footer__people .r { font-size: .875rem; color: var(--muted-ink); margin-bottom: .5rem; }
.footer__bot {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line-ink);
  font-size: .875rem;
  color: var(--muted-ink);
}
.footer__bot nav { display: flex; flex-wrap: wrap; gap: 1.5rem; margin-inline-start: auto; }

@media (max-width: 900px) {
  /* Once the footer halves, the two people no longer fit side by side. */
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__people { grid-template-columns: 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  .footer__top { grid-template-columns: 1fr; }
  .footer__bot nav { margin-inline-start: 0; }
}

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

.rv {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .75s var(--ease), transform .75s var(--ease);
  transition-delay: var(--d, 0ms);
}
.rv.is-in { opacity: 1; transform: none; }

.hero__media img {
  transform: scale(1.05);
  transition: transform 1.6s var(--ease), opacity 1s ease;
  opacity: 0;
}
.hero.is-ready .hero__media img { transform: none; opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .rv { opacity: 1; transform: none; }
  .rail::after { transform: scaleX(1); }
  .hero__media img { transform: none; opacity: 1; }
}

/* ------------------------------------------------------------ utilities -- */

.stack > * + * { margin-top: var(--s, 1.5rem); }
.mt-s  { margin-top: clamp(1.25rem, 2vw, 1.75rem); }
.mt-m  { margin-top: clamp(2rem, 4vw, 3.25rem); }
.mt-l  { margin-top: clamp(3rem, 6vw, 5rem); }
.maxw-prose { max-width: var(--measure); }
