/* savitram.com, v6: one screen at a time.
   Rules: savitram/brand/DESIGN.md, grid-power-venture/research_notes/Site v5/WORDING.md and SCROLL-STUDY.md.
   Three text sizes on any screen (--t1, --t2, --t3). They follow the window: 72/44/18 on a tall laptop,
   about 60/36/17 on a short one, 43/30/18 on a phone. Weight and colour carry the rest. */

@font-face {
  font-family: "Inter Tight";
  src: url("/assets/fonts/inter-tight-latin-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --night: #0d1330;
  --ink: #16181c;
  --muted: #5d6676;
  --line: #e4e7ec;
  --line-2: #d7dbe2;
  --mist: #f4f6f8;
  --white: #ffffff;
  --gold: #f3c879;
  --gold-hover: #f7d79c;
  --on-night: #f7f5ef;
  --on-night-2: #aab0c4;
  --night-line: rgba(170, 176, 196, 0.18);
  --info: #2f5e8c;

  --t1: clamp(44px, min(6vw, 9vh), 72px);
  --t2: clamp(30px, min(3.5vw, 5.4vh), 44px);
  --t3: clamp(17px, 2.2vh, 18px);

  --head: 72px;
  --gutter: clamp(16px, 4.4vw, 64px);
  --pad: clamp(24px, 6vh, 88px);
  --section: clamp(72px, 12vh, 128px);
  --wrap: 1312px;
  --shadow: 0 1px 2px rgba(13, 19, 48, 0.06), 0 24px 56px -12px rgba(13, 19, 48, 0.2);
}
@media (max-width: 899px) {
  :root { --head: 64px; --t1: clamp(40px, 11vw, 52px); --section: 72px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: var(--head); }
body {
  margin: 0; background: var(--white); color: var(--ink);
  font-family: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: var(--t3); line-height: 1.6; font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 600; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
button { font: inherit; }
.num { font-variant-numeric: tabular-nums; }

.t1, .t2 { text-wrap: balance; }
.t1 { font-size: var(--t1); line-height: 1.04; letter-spacing: -0.035em; font-weight: 300; }
.t1-light { font-size: var(--t1); line-height: 1.04; letter-spacing: -0.03em; font-weight: 300; }
.t2 { font-size: var(--t2); line-height: 1.1; letter-spacing: -0.025em; font-weight: 600; }
.t2-light { font-size: var(--t2); line-height: 1.12; letter-spacing: -0.02em; font-weight: 300; }
.strong { font-weight: 600; }
.muted { color: var(--muted); }
.mt-s { margin-top: 16px; }
.mt-m { margin-top: 28px; }
.mt-l { margin-top: 56px; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.mist { background: var(--mist); }

.skip { position: absolute; left: 16px; top: -64px; z-index: 80; background: var(--gold); color: var(--night); padding: 8px 16px; border-radius: 8px; text-decoration: none; }
.skip:focus { top: 16px; }
:focus-visible { outline: 2px solid var(--info); outline-offset: 3px; border-radius: 4px; }
.night :focus-visible, .site-head :focus-visible { outline-color: var(--gold); }

/* ---------- screens: every section fits one screen on a laptop ---------- */
.scr { padding-block: var(--section); }
@media (min-width: 900px) and (min-height: 560px) {
  .scr {
    min-height: 100svh; display: flex; flex-direction: column; justify-content: center;
    padding-block: calc(var(--head) + var(--pad)) var(--pad);
  }
  .scr.fit { min-height: 0; }
}
/* short laptop windows (the owner's is about 1098 x 607): tighter rows so lists still fit one screen */
@media (min-width: 900px) and (min-height: 560px) and (max-height: 680px) {
  .scr { padding-block: calc(var(--head) + 28px) 28px; }
  .scr .rowlist li { padding-block: 10px; }
  .scr .facts-rows li { padding-block: 12px; }
}

/* night grounds carry the contour lines from the home hero */
.night { position: relative; isolation: isolate; background-color: var(--night); color: var(--on-night); }
.night::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: url("/assets/img/contours-2400.png") right bottom / max(1440px, 100%) auto no-repeat;
  -webkit-mask-image: linear-gradient(to left, #000 0%, rgba(0, 0, 0, 0.7) 40%, transparent 80%);
  mask-image: linear-gradient(to left, #000 0%, rgba(0, 0, 0, 0.7) 40%, transparent 80%);
  opacity: 0.55;
}
.night.lines-top::before { background-position: right top; }
.night.lines-left::before {
  background-position: left center;
  -webkit-mask-image: linear-gradient(to right, #000 0%, rgba(0, 0, 0, 0.7) 40%, transparent 80%);
  mask-image: linear-gradient(to right, #000 0%, rgba(0, 0, 0, 0.7) 40%, transparent 80%);
}
.night.no-lines::before { display: none; }
@media (max-width: 720px) { .night::before { opacity: 0.35; background-size: 900px auto; } }
.night .muted, .night .sub, .night .note { color: var(--on-night-2); }

/* ---------- buttons ---------- */
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(20px, 4vh, 32px); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 24px;
  border-radius: 8px; font-size: var(--t3); font-weight: 500; line-height: 1.2; text-decoration: none;
  cursor: pointer; border: 1px solid transparent; transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn-primary { background: var(--night); color: var(--white); }
.btn-primary:hover { background: #1c2552; }
.btn-secondary { background: var(--white); color: var(--night); border-color: #c9ced8; }
.btn-secondary:hover { border-color: var(--night); }
.night .btn-primary, .site-head .btn-primary { background: var(--gold); color: var(--night); }
.night .btn-primary:hover, .site-head .btn-primary:hover { background: var(--gold-hover); }
.night .btn-secondary, .site-head .btn-secondary { background: transparent; color: var(--on-night); border-color: rgba(247, 245, 239, 0.32); }
.night .btn-secondary:hover, .site-head .btn-secondary:hover { border-color: var(--on-night); }
.btn[aria-busy="true"] { opacity: 0.6; cursor: progress; }
.textlink { font-weight: 500; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 1px; }
.textlink:hover { border-bottom-width: 2px; }

/* ---------- fixed header ---------- */
.site-head {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--head); color: var(--on-night);
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
}
.site-head.solid { background: var(--night); box-shadow: 0 1px 0 rgba(170, 176, 196, 0.14); }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 32px; height: 100%; }
.logo { display: inline-flex; align-items: center; }
.logo img { width: 150px; height: auto; }
.nav { display: flex; align-items: center; gap: clamp(20px, 2.4vw, 32px); }
.nav > a, .nav .drop > a { text-decoration: none; color: var(--on-night); font-weight: 500; }
.nav > a:hover, .nav .drop > a:hover, .nav [aria-current="page"] { color: var(--gold); }
.nav .btn { min-height: 44px; padding: 0 18px; }
.drop { position: relative; }
.drop-panel { position: absolute; left: -24px; top: 100%; padding-top: 18px; visibility: hidden; opacity: 0; transition: opacity 0.12s ease; }
.drop:hover .drop-panel, .drop:focus-within .drop-panel { visibility: visible; opacity: 1; }
.drop-panel ul { background: var(--white); color: var(--ink); border-radius: 12px; padding: 12px; width: 300px; box-shadow: var(--shadow); }
.drop-panel a { display: block; padding: 7px 12px; border-radius: 8px; text-decoration: none; font-weight: 500; }
.drop-panel a:hover { background: var(--mist); }
.drop-panel li.all { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 8px; }
.drop-panel li.all a { color: var(--muted); }
.mnav { display: none; }
.mnav summary {
  list-style: none; cursor: pointer; color: var(--on-night); font-weight: 500; min-height: 44px; display: inline-flex;
  align-items: center; padding: 0 16px; border: 1px solid rgba(247, 245, 239, 0.32); border-radius: 8px;
}
.mnav summary::-webkit-details-marker { display: none; }
.mnav[open] summary { border-color: var(--on-night); }
.mnav-panel {
  position: fixed; left: 0; right: 0; top: var(--head); max-height: calc(100svh - var(--head)); overflow-y: auto;
  background: var(--night); border-top: 1px solid var(--night-line); padding: 8px var(--gutter) 28px;
  box-shadow: 0 24px 40px -12px rgba(0, 0, 0, 0.5);
}
.mnav-panel a { display: block; padding: 9px 0; color: var(--on-night); text-decoration: none; font-weight: 500; }
.mnav-panel .group { color: var(--on-night-2); padding-top: 14px; }
.mnav-panel .sectors { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; }
.mnav-panel .sectors a { color: var(--on-night-2); font-weight: 400; }
.mnav-panel .btn { margin-top: 16px; display: flex; }
@media (max-width: 1023px) { .nav { display: none; } .mnav { display: block; } .logo img { width: 136px; } }

/* ---------- heroes ---------- */
.hero { position: relative; }
.hero-body { position: relative; z-index: 2; }
.hero h1 { max-width: 15em; }
.hero .sub { margin-top: clamp(16px, 3vh, 28px); max-width: 36em; color: var(--on-night-2); }

/* home: contours, full screen */
.hero-home { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-block: calc(var(--head) + var(--pad)) calc(var(--pad) + 8vh); }
.hero-contours {
  position: absolute; left: 0; right: 0; bottom: 0; height: 78%; z-index: 1; pointer-events: none;
  background: url("/assets/img/contours-2400.png") center bottom / cover no-repeat;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.55) 40%, #000 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.55) 40%, #000 100%);
  opacity: 0.9;
}
.hero-home.no-lines::before { display: none; }

/* photo hero: the photo fills the first screen, words sit on a night gradient */
.hero-photo { display: flex; flex-direction: column; }
.hero-photo .hero-body { padding-block: calc(var(--head) + var(--pad)) var(--pad); }
.hero-media img { width: 100%; height: clamp(240px, 56vw, 420px); object-fit: cover; }
.hero-cap { color: var(--muted); background: var(--white); padding: 10px var(--gutter) 0; }
@media (min-width: 900px) and (min-height: 560px) {
  .hero-photo { min-height: 100svh; justify-content: flex-end; }
  .hero-photo::before { display: none; }
  .hero-media { position: absolute; inset: 0; z-index: 0; }
  .hero-media img { height: 100%; }
  .hero-media::after {
    content: ""; position: absolute; inset: 0;
    background:
      linear-gradient(90deg, rgba(13, 19, 48, 0.94) 0%, rgba(13, 19, 48, 0.86) 34%, rgba(13, 19, 48, 0.35) 66%, rgba(13, 19, 48, 0.12) 100%),
      linear-gradient(0deg, rgba(13, 19, 48, 0.75) 0%, rgba(13, 19, 48, 0) 34%),
      linear-gradient(180deg, rgba(13, 19, 48, 0.7) 0%, rgba(13, 19, 48, 0) calc(var(--head) + 40px));
  }
  .hero-photo .hero-body { padding-block: calc(var(--head) + var(--pad)) calc(var(--pad) + 40px); }
  .hero-photo h1 { max-width: 13em; }
  .hero-cap { position: absolute; z-index: 2; right: var(--gutter); bottom: 16px; left: auto; padding: 0; background: none; color: var(--on-night-2); max-width: 40%; text-align: right; }
}

@media not ((min-width: 900px) and (min-height: 560px)) { .hero-photo .hero-media { order: 2; } .hero-photo .hero-cap { order: 3; } }

/* compact night band for utility pages */
.hero-band { padding-block: calc(var(--head) + var(--pad)) var(--pad); }

/* product hero (platform): words, then the product screen filling the rest of the screen */
.hero-product .hero-body { padding-block: calc(var(--head) + var(--pad)) 0; }
.hero-shot { position: relative; z-index: 2; margin-top: clamp(28px, 5vh, 56px); }
.hero-shot img { width: 100%; border-radius: 12px 12px 0 0; box-shadow: var(--shadow); }
@media (min-width: 900px) and (min-height: 560px) {
  .hero-product { height: 100svh; min-height: 560px; display: flex; flex-direction: column; overflow: hidden; }
  .hero-shot { flex: 1; min-height: 120px; overflow: hidden; }
  .hero-shot img { height: auto; }
}

/* split hero (about): words left, plate right */
.hero-split .split-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-split figure img { width: 100%; max-height: calc(100svh - var(--head) - 2 * var(--pad) - 48px); object-fit: contain; object-position: left center; }
.hero-split figcaption { color: var(--on-night-2); margin-top: 12px; }
@media (min-width: 900px) and (min-height: 560px) {
  .hero-split { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-block: calc(var(--head) + var(--pad)) var(--pad); }
}
@media (max-width: 899px) { .hero-split .split-grid { grid-template-columns: 1fr; } .hero-split { padding-block: calc(var(--head) + 32px) 48px; } }

/* breadcrumb switcher */
.crumb { display: flex; align-items: center; gap: 12px; margin-bottom: clamp(16px, 3vh, 28px); color: var(--on-night-2); }
.crumb a { text-decoration: none; color: var(--on-night-2); }
.crumb a:hover { color: var(--on-night); }
.switch { position: relative; }
.switch summary {
  list-style: none; cursor: pointer; color: var(--on-night); font-weight: 500; display: inline-flex; align-items: center; gap: 10px;
  min-height: 40px; padding: 0 14px; border: 1px solid rgba(247, 245, 239, 0.32); border-radius: 8px; background: rgba(13, 19, 48, 0.4);
}
.switch summary::-webkit-details-marker { display: none; }
.switch summary::after { content: ""; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.switch ul { position: absolute; z-index: 30; top: calc(100% + 8px); left: 0; width: 260px; padding: 8px; background: var(--white); color: var(--ink); border-radius: 12px; box-shadow: var(--shadow); }
.switch li a { display: block; padding: 6px 12px; border-radius: 8px; text-decoration: none; color: var(--ink); }
.switch li a:hover { background: var(--mist); }
.switch li a[aria-current="page"] { font-weight: 600; }

/* ---------- section heads ---------- */
.head2 { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 16px 64px; align-items: end; margin-bottom: clamp(28px, 5vh, 56px); }
.head2 .note { color: var(--muted); }
.head2 .note.end { justify-self: end; }
.head2.solo { grid-template-columns: minmax(0, 8fr) minmax(0, 3fr); }
@media (max-width: 899px) { .head2, .head2.solo { grid-template-columns: 1fr; } .head2 .note.end { justify-self: start; } }

/* ---------- pinned list: the screen stays put while the active item follows the scroll ---------- */
.pin { position: relative; }
.pin-stage { padding-block: var(--section); }
.pin-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.pin-head .note { color: var(--muted); margin-top: 16px; }
.night .pin-head .note { color: var(--on-night-2); }
.pin-list { margin-top: clamp(20px, 4vh, 36px); border-bottom: 1px solid var(--line-2); }
.night .pin-list, .night .pin-list li { border-color: var(--night-line); }
.pin-list li { border-top: 1px solid var(--line-2); }
.pin-list button {
  all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: baseline; gap: 14px; width: 100%;
  padding-block: clamp(8px, 1.5vh, 14px); font-weight: 600; color: var(--muted); transition: color 0.25s ease;
}
.night .pin-list button { color: var(--on-night-2); }
.pin-list .n { font-weight: 400; min-width: 1.4em; font-variant-numeric: tabular-nums; }
.pin-list button:focus-visible { outline: 2px solid var(--info); outline-offset: 2px; border-radius: 4px; }
.pin-list li.is-on button { color: var(--ink); }
.night .pin-list li.is-on button { color: var(--on-night); }
.pin-more { padding-left: calc(1.4em + 14px); }
.pin-more > div > * { padding-bottom: clamp(8px, 1.5vh, 14px); }
.pin-panels { display: grid; }
.pin-panel { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity 0.4s ease, visibility 0s linear 0.4s; }
.pin-panel.is-on { opacity: 1; visibility: visible; transition: opacity 0.4s ease, visibility 0s; }
.pin-mobile { display: none; }

/* panel kinds */
.pv-box { background: var(--white); border-radius: 12px; overflow: hidden; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow); aspect-ratio: 16 / 11; }
.pv-box img { width: 100%; height: 100%; object-fit: contain; }
.pv-box.cover img { object-fit: cover; object-position: left top; }
.pv-cap { color: var(--muted); margin-top: 14px; }
.pf-label { color: var(--muted); }
.pf-fig { margin-top: 8px; }
.pf-text { margin-top: clamp(14px, 2.5vh, 24px); max-width: 32em; }
.pf-src { color: var(--muted); margin-top: 10px; }
.ps-photo { display: block; border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 10; background: var(--mist); }
.ps-photo img { width: 100%; height: 100%; object-fit: cover; }
.ps-q { font-weight: 600; margin-top: 18px; }
.ps-f { color: var(--muted); margin-top: 6px; }
.ps-link { margin-top: 14px; }

@media (min-width: 900px) and (min-height: 560px) {
  .pin { height: calc(100svh + var(--n, 4) * var(--per, 60svh)); }
  .pin-stage { position: sticky; top: 0; height: 100svh; display: flex; align-items: center; padding-block: calc(var(--head) + var(--pad) * 0.6) calc(var(--pad) * 0.6); overflow: hidden; }
  .pin-stage > .wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); }
  .pin-more { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows 0.3s ease, opacity 0.3s ease; }
  .pin-more > div { overflow: hidden; }
  .pin-list li.is-on .pin-more { grid-template-rows: 1fr; opacity: 1; }
  .pv-box { aspect-ratio: auto; width: 100%; height: min(calc(100svh - var(--head) - var(--pad) * 1.2 - 90px), 46vw); }
  .ps-photo { aspect-ratio: auto; height: calc(100svh - var(--head) - var(--pad) * 1.2 - 190px); max-height: 480px; min-height: 160px; }
  .pin-sectors .pin-list button { padding-block: clamp(4px, 0.9vh, 10px); }
}
@media (min-width: 900px) and (min-height: 560px) and (max-height: 760px) {
  .pin-sectors .pin-head .note { display: none; }
  .pin-list { margin-top: 16px; }
}
@media not ((min-width: 900px) and (min-height: 560px)) {
  .pin-grid { grid-template-columns: 1fr; }
  .pin-panels { display: none; }
  .pin-list button { color: var(--ink); cursor: default; }
  .night .pin-list button { color: var(--on-night); }
  .pin-mobile { display: block; padding: 4px 0 24px calc(1.4em + 14px); }
  .pin-mobile .pv-box { margin-top: 12px; }
  .pin-facts .pin-more { display: none; }
}
@media (prefers-reduced-motion: reduce) { .pin-panel, .pin-more, .pin-list button { transition: none !important; } }

/* ---------- blocks ---------- */
.band { border-bottom: 1px solid var(--line); padding-block: 22px; text-align: center; color: var(--muted); }

.coverage { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--night-line); }
.coverage li { padding: clamp(18px, 3.5vh, 32px) 28px 0 0; }
.coverage li + li { padding-left: 28px; border-left: 1px solid var(--night-line); }
.coverage .fig { display: block; color: var(--on-night); }
.coverage .lab { display: block; margin-top: 10px; color: var(--on-night-2); max-width: 15em; }
.claims { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 28px; margin-top: clamp(28px, 6vh, 64px); color: var(--on-night); }
.claims li + li { border-left: 1px solid var(--night-line); padding-left: 28px; }
@media (max-width: 960px) {
  .coverage { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .coverage li, .coverage li + li { padding: 24px 16px 24px 0; border-left: 0; border-bottom: 1px solid var(--night-line); }
  .coverage li:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--night-line); }
  .claims { grid-template-columns: 1fr; } .claims li + li { border-left: 0; padding-left: 0; }
}

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 24px; }
.card { text-decoration: none; display: block; }
.card .pic { aspect-ratio: 16 / 9; overflow: hidden; background: var(--mist); border-radius: 4px; }
.card .pic img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.card:hover .pic img { transform: scale(1.03); }
.card .meta { margin-top: 14px; color: var(--muted); }
.card .q { margin-top: 2px; font-weight: 600; line-height: 1.4; }
.card:hover .q { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
@media (min-width: 900px) and (min-height: 560px) { .cards .pic { aspect-ratio: auto; height: clamp(140px, calc(100svh - var(--head) - 2 * var(--pad) - 290px), 300px); } }
@media (max-width: 960px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; gap: 36px; } }

.dated { border-top: 1px solid var(--line); }
.dated li { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 6px 32px; padding-block: clamp(14px, 2.6vh, 24px); border-bottom: 1px solid var(--line); }
.dated .d { font-weight: 600; }
@media (max-width: 600px) { .dated li { grid-template-columns: 1fr; } }

.cols { display: grid; gap: clamp(28px, 5vh, 48px) 32px; }
.cols.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cols li { border-top: 1px solid var(--line); padding-top: clamp(16px, 3vh, 24px); }
.mist .cols li { border-top-color: var(--line-2); }
.night .cols li { border-top-color: var(--night-line); }
.cols .n { color: var(--muted); display: block; margin-bottom: 8px; }
.night .cols .n { color: var(--on-night-2); }
.cols .h { font-weight: 600; display: block; margin-bottom: 6px; }
@media (max-width: 960px) { .cols.c4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cols.c3 { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .cols.c2, .cols.c4 { grid-template-columns: 1fr; } }

.side { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 40px clamp(48px, 7vw, 96px); align-items: start; }
.rowlist { border-top: 1px solid var(--line); }
.mist .rowlist, .mist .rowlist li { border-color: var(--line-2); }
.rowlist li { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 5fr); gap: 6px 32px; padding-block: clamp(12px, 2.6vh, 24px); border-bottom: 1px solid var(--line); }
.rowlist .h { font-weight: 600; }
.rowlist .pub { color: var(--muted); }
@media (max-width: 960px) { .side { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .rowlist li { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.copy .body { margin-top: clamp(14px, 2.5vh, 20px); }
.points { margin-top: clamp(14px, 2.5vh, 24px); }
.points li { padding-block: 10px; border-top: 1px solid var(--night-line); color: var(--on-night); }
.points li:last-child { border-bottom: 1px solid var(--night-line); }
.points li .h { display: block; font-weight: 600; margin-bottom: 2px; }
.bounded img { width: 100%; max-height: calc(100svh - var(--head) - 2 * var(--pad)); object-fit: contain; }
.shot img { width: 100%; border-radius: 12px; box-shadow: var(--shadow); max-height: calc(100svh - var(--head) - 2 * var(--pad)); object-fit: cover; object-position: left top; }
@media (max-width: 960px) { .split { grid-template-columns: 1fr; } }

.facts-rows { border-top: 1px solid var(--line); }
.facts-rows li { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 8px 48px; padding-block: clamp(14px, 3vh, 28px); border-bottom: 1px solid var(--line); align-items: baseline; }
.facts-rows .src { color: var(--muted); margin-left: 0.35em; white-space: nowrap; }
@media (max-width: 899px) { .facts-rows li { grid-template-columns: 1fr; } }

.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.pair img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.pair figcaption { color: var(--muted); padding: 10px var(--gutter) 0; }
@media (min-width: 900px) and (min-height: 560px) { .pair img { aspect-ratio: auto; height: clamp(200px, calc(100svh - var(--head) - 2 * var(--pad) - 230px), 560px); } }
@media (max-width: 720px) { .pair { grid-template-columns: 1fr; gap: 20px; } }

/* ---------- close + footer ---------- */
.close { padding-block: calc(var(--head) * 0.5 + var(--pad)) 0; }
.close h2 { max-width: 15em; }
.foot { margin-top: clamp(40px, 8vh, 80px); border-top: 1px solid var(--night-line); padding-block: clamp(28px, 5vh, 48px) clamp(28px, 5vh, 48px); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 4fr) minmax(0, 2fr) minmax(0, 2fr); gap: 28px 32px; }
.foot .tag { margin-top: 16px; color: var(--on-night-2); max-width: 18em; }
.foot h3 { font-size: var(--t3); font-weight: 500; color: var(--on-night-2); margin-bottom: 8px; }
.foot .two { columns: 2; column-gap: 24px; }
.foot li a { display: inline-block; padding-block: 3px; text-decoration: none; color: var(--on-night); }
.foot li a:hover { color: var(--gold); }
.foot .legal { margin-top: clamp(28px, 5vh, 48px); color: var(--on-night-2); display: flex; flex-wrap: wrap; gap: 8px 28px; }
.foot .legal a, .foot .legal button { all: unset; cursor: pointer; color: var(--on-night-2); }
.foot .legal a:hover, .foot .legal button:hover { color: var(--on-night); }
.foot .legal a:focus-visible, .foot .legal button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
@media (max-width: 960px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > :first-child { grid-column: 1 / -1; } }
@media (min-width: 900px) and (min-height: 560px) { .closing { min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; } }

/* ---------- essays ---------- */
.prose { max-width: 680px; margin-inline: auto; }
.prose p { margin-top: 22px; }
.prose h2 { font-size: var(--t3); font-weight: 600; margin-top: 44px; }
.prose figure { margin-top: 40px; }
.prose figure.map img { width: min(400px, 100%); margin-inline: auto; }
.prose figcaption { color: var(--muted); margin-top: 12px; text-align: center; }
.sources { max-width: 680px; margin: 56px auto 0; border-top: 1px solid var(--line); padding-top: 22px; color: var(--muted); }
.sources li { padding-block: 3px; }
.sources h2 { font-size: var(--t3); font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.article { padding-block: var(--section); }

/* ---------- forms (split screen) ---------- */
.form-screen { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); min-height: 100svh; }
.form-screen .fs-side { padding: calc(var(--head) + var(--pad)) clamp(24px, 4vw, 64px) var(--pad) max(var(--gutter), calc((100vw - var(--wrap)) / 2)); display: flex; flex-direction: column; justify-content: center; }
.form-screen .fs-main { padding: calc(var(--head) + var(--pad)) max(var(--gutter), calc((100vw - var(--wrap)) / 2)) var(--pad) clamp(24px, 4vw, 64px); display: flex; flex-direction: column; justify-content: center; }
.fs-side .side-list { margin-top: clamp(20px, 4vh, 40px); }
.fs-side .side-list li { padding-block: 12px; border-top: 1px solid var(--night-line); color: var(--on-night-2); }
.fs-side .side-list li:last-child { border-bottom: 1px solid var(--night-line); }
.fs-side .side-list .h { color: var(--on-night); font-weight: 600; display: block; }
@media (max-width: 899px) {
  .form-screen { grid-template-columns: 1fr; min-height: 0; }
  .form-screen .fs-side { padding: calc(var(--head) + 32px) var(--gutter) 40px; }
  .form-screen .fs-main { padding: 40px var(--gutter) 64px; }
}
.form { display: grid; gap: clamp(14px, 2.4vh, 22px); max-width: 600px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 500; }
.field .hint { color: var(--muted); }
.field input, .field select, .field textarea {
  font: inherit; font-size: var(--t3); color: var(--ink); background: var(--white);
  border: 1px solid #c9ced8; border-radius: 8px; padding: 10px 14px; min-height: 50px; width: 100%;
}
.field textarea { min-height: 96px; resize: vertical; }
.field select { appearance: none; -webkit-appearance: none; font-family: inherit; padding-right: 44px; cursor: pointer;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%235d6676' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 16px center; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--muted); }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--info); outline-offset: 1px; border-color: var(--info); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btns { margin-top: 4px; }
.field-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: inherit; }
@media (max-width: 599px) { .field-row { grid-template-columns: 1fr; } }
/* short laptop windows: the whole form, button included, fits the first screen */
@media (min-width: 900px) and (max-height: 760px) {
  .form { gap: 12px; }
  .field input, .field select { min-height: 44px; padding-block: 8px; }
  .field textarea { min-height: 72px; }
  .form-screen .fs-side, .form-screen .fs-main { padding-top: calc(var(--head) + 20px); padding-bottom: 20px; }
  .fs-side .side-list li { padding-block: 9px; }
}

/* ---------- credits ---------- */
.credits { border-top: 1px solid var(--line); }
.credits li { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 2fr); gap: 4px 24px; padding-block: 14px; border-bottom: 1px solid var(--line); }
.credits .lic { color: var(--muted); }
.credits a { text-decoration: none; border-bottom: 1px solid var(--line); }
.credits a:hover { border-bottom-color: var(--ink); }
@media (max-width: 720px) { .credits li { grid-template-columns: 1fr; } }
.page-body { padding-block: var(--section); }

/* ---------- cookie choice ---------- */
.consent {
  position: fixed; right: 24px; bottom: 24px; z-index: 60; width: min(440px, calc(100% - 32px));
  background: var(--white); color: var(--ink); border-radius: 12px; padding: 22px; box-shadow: 0 1px 2px rgba(13, 19, 48, 0.1), 0 24px 56px -12px rgba(13, 19, 48, 0.35);
}
.consent[hidden] { display: none; }
.consent .btns { margin-top: 16px; }
.consent .btn { min-height: 44px; }
.consent a { color: var(--ink); }
@media (max-width: 600px) { .consent { right: 16px; left: 16px; bottom: 16px; width: auto; padding: 18px; } }

/* /book: Cal.com calendar fills the form side of the split screen */
.cal-wrap { display: flex; flex-direction: column; gap: 12px; width: 100%; }
.cal-inline { width: 100%; min-height: 560px; overflow: auto; }
@media (min-width: 900px) and (max-height: 680px) { .cal-inline { min-height: 440px; } }
@media (min-width: 900px) {
  .form-screen:has(.cal-wrap) { align-items: start; }
  .form-screen:has(.cal-wrap) .fs-side { position: sticky; top: 0; height: 100svh; }
  .form-screen:has(.cal-wrap) .fs-main { justify-content: flex-start; }
}
