/* Hallmark · genre: modern-minimal · macrostructure: Photographic (leans Marquee Hero) · H6 hero knobs: image=full-bleed, caption=lower-right annotation, text=overlaid
 * enrichment: E8 hero photography (placeholder slot with a cool light study)
 * nav: N5 Floating bar · width=content-sized, backdrop=blur, anchor=top-centred, radius=10px · menu: left off-canvas sheet (dialog) · footer: studied statement (kicker, display line, reach row, full-width wordmark)
 * theme: studied-DNA (source: image) · paper: oklch(13% 0.028 255) · accent: oklch(72% 0.15 255) marks only · primary action: light 5px-radius button
 * display: Space Grotesk 300 · body: Geist 400 · wordmark: KromluksLogo SVG · lang: TR / EN flag-only switch (no border, smooth hover)
 * axes: dark / light-wide-grotesque / cool · studied: yes · DNA-source: image (user reference) · context: user-provided · v1.1.0
 * contrast: pass (40–41) · nav: N5 · footer: studied statement · slop: pass (42–45) · honest: pass (46) · chrome: pass (47) · tokens: pass (48)
 * responsive: pass (49) · mobile: pass (34, 49, 50–57) at 320 / 375 / 414 / 768 · fold: CTA visible at 1280×800
 * note: display 300 vs body 400 keeps the studied light-display DNA; contrast is carried by size, not weight
 */
/* Hallmark · pre-emit critique: P4 H5 E4 S4 R4 V4 */
@import url("tokens.css");

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

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

body {
  margin: 0;
  min-height: 100dvh;
  padding: var(--frame-inset);
  overflow-x: clip;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.55;
  color: var(--color-chrome);
  background: radial-gradient(120% 80% at 50% 0%, var(--color-void-glow), var(--color-void) 70%);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

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

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.skip {
  position: absolute;
  left: var(--space-md);
  top: var(--space-md);
  z-index: var(--z-modal);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-sm);
  background: var(--color-pill);
  color: var(--color-pill-ink);
  transform: translateY(-200%);
}
.skip:focus-visible { transform: none; }

/* ── Framed canvas ───────────────────────────────────── */

.frame {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: clamp(36rem, calc(100dvh - 2 * var(--frame-inset)), 64rem);
  border-radius: var(--radius-frame);
  background: var(--color-night);
  box-shadow: 0 0 0 var(--rule-hair) var(--color-night-rule);
  overflow: clip;
}
.frame--doc {
  display: block;
  min-height: 0;
}

/* ── Buttons ─────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  min-height: 2.5rem;
  padding: 0 var(--space-md);
  border: 0;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: var(--text-ui);
  font-weight: 400;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--dur-hover) var(--ease-in-out);
}
.btn--light { background: var(--color-pill); color: var(--color-pill-ink); }
.btn--light:hover,
.btn--light:active { background: var(--color-pill-hover); }
.btn--nav { min-height: 2.25rem; }
.btn--pill {
  min-height: 0;
  padding: var(--space-pill-y) var(--space-pill-x);
  border-radius: var(--radius-pill);
  font-size: var(--text-stack-body);
}
.btn__dot {
  flex: none;
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  background: var(--color-accent);
}
.btn:disabled,
.btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; pointer-events: none; }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--color-chrome);
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color var(--dur-hover) var(--ease-in-out),
    box-shadow var(--dur-hover) var(--ease-in-out),
    color var(--dur-hover) var(--ease-in-out);
}
.icon-btn:hover,
.icon-btn:active { background: var(--color-night-2); }
.icon-btn:disabled { opacity: 0.55; cursor: not-allowed; }
.icon-btn--ring { box-shadow: inset 0 0 0 var(--rule-hair) var(--color-line); }
.icon-btn--ring:hover,
.icon-btn--ring:active { box-shadow: inset 0 0 0 var(--rule-hair) var(--color-chrome-2); }

.dots {
  width: 1rem;
  height: 1rem;
  background: radial-gradient(circle, currentColor 1.1px, transparent 1.6px) 0 0 / 0.375rem 0.375rem;
}

/* ── Nav: floating bar ───────────────────────────────── */

.nav {
  position: relative;
  z-index: var(--z-sticky);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--space-lg);
  padding: var(--space-lg) var(--frame-pad) 0;
}

.wordmark {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  height: 3rem;
  text-decoration: none;
}
.wordmark img {
  display: block;
  height: 100%;
  width: auto;
}
a.wordmark { transition: opacity var(--dur-hover) var(--ease-in-out); }
a.wordmark:hover,
a.wordmark:active { opacity: 0.82; }

.nav__bar {
  display: flex;
  align-items: center;
  gap: var(--space-2xs);
  padding: var(--space-2xs) var(--space-2xs) var(--space-2xs) var(--space-xs);
  border-radius: var(--radius-md);
  background: color-mix(in oklch, var(--color-night-2) 60%, transparent);
  box-shadow: inset 0 0 0 var(--rule-hair) var(--color-line);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
}
.nav__bar .btn { margin-left: var(--space-sm); }

.nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  padding: 0 var(--space-md);
  border-radius: var(--radius-sm);
  font-size: var(--text-ui);
  font-weight: 400;
  line-height: 1;
  color: var(--color-chrome-2);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--dur-hover) var(--ease-in-out);
}
.nav__link:hover,
.nav__link:active,
.nav__link[aria-current="page"] { color: var(--color-chrome); }

.nav__end { justify-self: end; display: flex; align-items: center; gap: var(--space-xs); margin-right: calc(-1 * var(--space-sm)); }

/* ── Language switcher (TR / EN) ─────────────────────── */

/* Same outer height as .nav__bar (4px padding + 36px items) so both share one centre line */
.lang {
  display: inline-flex;
  align-items: center;
  gap: 0;
}

.lang__item {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: transparent;
  transition: background-color var(--dur-hover) var(--ease-in-out);
}

.lang__flag {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  pointer-events: none;
  filter: grayscale(1);
  opacity: 0.55;
  transition:
    filter var(--dur-hover) var(--ease-in-out),
    opacity var(--dur-hover) var(--ease-in-out);
}

.lang__item:hover,
.lang__item:active { background: var(--color-night-2); }
.lang__item:hover .lang__flag,
.lang__item:active .lang__flag { filter: grayscale(0); opacity: 1; }

.lang__item[aria-current="true"] { background: var(--color-night-2); }
.lang__item[aria-current="true"] .lang__flag { filter: grayscale(0); opacity: 1; }

.flag-red    { fill: var(--color-flag-red); }
.flag-white  { fill: var(--color-flag-white); }
.flag-blue   { fill: var(--color-flag-blue); }
.flag-white-stroke { fill: none; stroke: var(--color-flag-white); }
.flag-red-stroke   { fill: none; stroke: var(--color-flag-red); }

/* ── Off-canvas sheet (left) ─────────────────────────── */

.sheet {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--color-chrome);
  overflow: hidden;
}
.sheet::backdrop { background: transparent; }

.sheet__scrim {
  position: absolute;
  inset: 0;
  background: var(--color-scrim);
  opacity: 0;
  transition: opacity var(--dur-long) var(--ease-out);
}
.sheet.is-open .sheet__scrim { opacity: 0.7; }

.sheet__panel {
  position: absolute;
  top: var(--frame-inset);
  bottom: var(--frame-inset);
  left: var(--frame-inset);
  width: var(--sheet-w);
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: var(--space-xl);
  padding: var(--space-lg) var(--space-lg) var(--space-xl);
  border-radius: var(--radius-frame);
  background: var(--color-sheet);
  box-shadow: inset 0 0 0 var(--rule-hair) var(--color-night-rule);
  overflow-y: auto;
  transform: translateX(calc(-100% - 2 * var(--frame-inset)));
  transition: transform calc(var(--dur-long) * 0.75) var(--ease-in);
}
.sheet.is-open .sheet__panel {
  transform: none;
  transition: transform var(--dur-long) var(--ease-out);
}

.sheet__head { display: flex; align-items: center; justify-content: space-between; }

.sheet__nav { display: grid; align-content: start; }
.sheet__link {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  min-height: 3.5rem;
  border-bottom: var(--rule-hair) solid var(--color-night-rule);
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--weight-display);
  letter-spacing: var(--track-display);
  line-height: 1.1;
  color: var(--color-chrome-2);
  text-decoration: none;
  transition: color var(--dur-hover) var(--ease-in-out);
}
.sheet__link:hover,
.sheet__link:active,
.sheet__link[aria-current="page"] { color: var(--color-chrome); }
.sheet__link[aria-current="page"]::after {
  content: "";
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  background: var(--color-accent-on-night);
}

.sheet__foot { display: grid; justify-items: start; gap: var(--space-lg); }
.sheet__notice { max-width: 46ch; margin: 0; font-size: var(--text-ui); line-height: 1.55; color: var(--color-chrome-2); }

/* ── Hero: H6 photographic fold, bottom-anchored ─────── */

.hero {
  position: relative;
  display: grid;
  align-items: end;
  padding: var(--space-xl) var(--frame-pad) var(--space-2xl);
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(48% 62% at 64% 34%, color-mix(in oklch, var(--color-light) 42%, transparent), transparent 72%),
    var(--color-night);
}
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.07;
  mix-blend-mode: soft-light;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, var(--color-scrim), transparent 55%);
  pointer-events: none;
}

.hero__body {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  grid-template-areas:
    "lead aside-title"
    "rule rule"
    "more aside";
  column-gap: var(--space-2xl);
}

.hero__lead { grid-area: lead; display: grid; justify-items: start; gap: var(--space-lg); padding-bottom: var(--space-xl); }

.hero__title {
  margin: 0;
  min-width: 0;
  font-family: var(--font-display);
  font-size: var(--text-display);
  font-weight: var(--weight-display);
  line-height: 1.04;
  letter-spacing: var(--track-display);
  color: var(--color-chrome);
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.hero__aside-title {
  grid-area: aside-title;
  align-self: end;
  margin: 0;
  padding-bottom: var(--space-sm);
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--color-chrome);
}

.hero__rule {
  grid-area: rule;
  width: 100%;
  height: var(--rule-hair);
  margin: 0;
  border: 0;
  background: var(--color-night-rule);
}

.hero__more { grid-area: more; align-self: start; margin-top: var(--space-xl); }

.hero__aside {
  grid-area: aside;
  max-width: 46ch;
  margin: var(--space-md) 0 0;
  font-size: var(--text-base);
  line-height: 1.55;
  color: var(--color-chrome-2);
  text-wrap: pretty;
}

/* One orchestrated entrance: title, action, aside heading */
.reveal {
  opacity: 0;
  transform: translateY(8px);
  animation: reveal var(--dur-long) var(--ease-out) forwards;
  animation-delay: 80ms;
}
.reveal--1 { animation-delay: 150ms; }
.reveal--2 { animation-delay: 220ms; }
@keyframes reveal { to { opacity: 1; transform: none; } }

/* ── Breakpoints ─────────────────────────────────────── */

@media (max-width: 60rem) {
  .nav { grid-template-columns: 1fr auto; }
  .nav__bar { display: none; }

  .hero__body {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "lead" "aside-title" "rule" "aside" "more";
  }
  .hero__aside-title { padding-top: var(--space-lg); }
  .hero__more { margin-top: var(--space-lg); }
}

@media (max-width: 40rem) {
  :root { --radius-frame: 0.875rem; }
  .nav__end { gap: var(--space-2xs); }
}

@media (max-width: 26rem) {
  .nav { gap: var(--space-sm); }
  .nav .wordmark { height: 2rem; }
}

/* ── Footer: statement + full-width wordmark ─────────── */

.foot {
  position: relative;
  isolation: isolate;
  margin-top: var(--frame-inset);
  padding: var(--space-3xl) var(--frame-pad) var(--space-lg);
  border-radius: var(--radius-frame);
  background: var(--color-night);
  box-shadow: 0 0 0 var(--rule-hair) var(--color-night-rule);
  overflow: clip;
}

.foot__glow {
  position: absolute;
  z-index: 0;
  left: 12%;
  right: 12%;
  bottom: 12%;
  height: 42%;
  background:
    radial-gradient(ellipse 75% 65% at 50% 48%,
      color-mix(in oklch, var(--color-light) 58%, transparent),
      color-mix(in oklch, var(--color-accent) 20%, transparent) 36%,
      transparent 64%);
  pointer-events: none;
}

.foot__kicker,
.foot__title,
.foot__row,
.foot__brand,
.foot__meta { position: relative; z-index: 1; }

.foot__kicker {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  margin: 0;
  font-size: var(--text-ui);
  line-height: 1;
  color: var(--color-accent-on-night);
}

.foot__dot {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  background: var(--color-accent);
}

.foot__title {
  max-width: 16em;
  margin: var(--space-lg) 0 0;
  font-family: var(--font-display);
  font-size: var(--text-statement);
  font-weight: var(--weight-display);
  font-style: normal;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--color-chrome);
  text-wrap: balance;
}

.foot__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-xl);
  margin-top: var(--space-3xl);
}

.foot__reach {
  display: grid;
  justify-items: start;
  min-width: 0;
  max-width: 22rem;
}

.foot__label {
  margin: 0 0 var(--space-2xs);
  max-width: 32ch;
  font-size: var(--text-ui);
  line-height: 1.45;
  color: var(--color-chrome-2);
}

.foot__cta,
.foot__nav a {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  min-height: 2.75rem;
  font-size: var(--text-base);
  line-height: 1;
  color: var(--color-chrome);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--dur-hover) var(--ease-in-out);
}

.foot__cta:hover,
.foot__cta:active,
.foot__nav a:hover,
.foot__nav a:active { color: var(--color-chrome-2); }

.foot__sep {
  width: 3rem;
  height: var(--rule-hair);
  margin: var(--space-sm) 0 var(--space-md);
  border: 0;
  background: var(--color-night-rule);
}

.foot__legal {
  margin: 0 0 var(--space-xs);
  font-size: var(--text-ui);
  line-height: 1.45;
  color: var(--color-chrome);
}

.foot__detail {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  min-height: 2rem;
  font-size: var(--text-ui);
  line-height: 1;
  color: var(--color-chrome-2);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--dur-hover) var(--ease-in-out);
}
.foot__detail:hover,
.foot__detail:active { color: var(--color-chrome); }
.foot__detail svg { flex: none; width: 14px; height: 14px; }

.foot__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: var(--space-xs) var(--space-lg);
}

.foot__brand {
  display: block;
  width: 100%;
  margin: var(--space-2xl) 0 0;
  line-height: 0;
  text-decoration: none;
}
.foot__brand img {
  display: block;
  width: 100%;
  max-width: 960px;
  height: auto;
  margin-inline: auto;
  opacity: 0.6;
  transition: opacity var(--dur-hover) var(--ease-in-out);
}
.foot__brand:hover img,
.foot__brand:focus-visible img,
.foot__brand:active img { opacity: 1; }

.foot__meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-md) var(--space-xl);
  margin-top: var(--space-2xl);
  font-size: var(--text-fine);
  line-height: 1.45;
  color: var(--color-chrome-2);
}

.foot__meta p,
.foot__meta a { margin: 0; }
.foot__meta a {
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--dur-hover) var(--ease-in-out);
}
.foot__meta a:hover,
.foot__meta a:active { color: var(--color-chrome); }

@media (max-width: 60rem) {
  .foot { padding: var(--space-xl) var(--frame-pad) var(--space-lg); }

  /* Same contained light as the hero: fixed to the wordmark, faded before the card edge. */
  .foot__glow {
    left: 0;
    right: 0;
    bottom: 0;
    height: 15rem;
    background:
      radial-gradient(56% 68% at 50% 38%,
        color-mix(in oklch, var(--color-light) 42%, transparent),
        transparent 68%);
  }

  .foot__title { max-width: none; margin-top: var(--space-md); }

  .foot__row {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-sm);
    margin-top: var(--space-xl);
    padding-top: var(--space-lg);
    border-top: var(--rule-hair) solid var(--color-night-rule);
  }

  .foot__nav { justify-content: flex-start; gap: var(--space-xs) var(--space-md); }

  .foot__brand { margin-top: var(--space-xl); }

  .foot__meta {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-xs);
  }
}

/* ── About: short hero card, then one panel per section ─ */

.doc__hero {
  padding: var(--space-2xl) var(--frame-pad) var(--space-xl);
}

.doc__title {
  max-width: 16ch;
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--text-page);
  font-weight: var(--weight-display);
  font-style: normal;
  line-height: 1.05;
  letter-spacing: var(--track-display);
  color: var(--color-chrome);
}

.doc__lede {
  max-width: 42ch;
  margin: var(--space-lg) 0 0;
  font-size: var(--text-md);
  line-height: 1.4;
  color: var(--color-chrome-2);
}

.doc__jump {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs) var(--space-lg);
  margin-top: var(--space-xl);
}

.doc__jump a {
  font-size: var(--text-ui);
  line-height: 1;
  color: var(--color-chrome-2);
  text-decoration: none;
  white-space: nowrap;
  min-height: 2.25rem;
  display: inline-flex;
  align-items: center;
  transition: color var(--dur-hover) var(--ease-in-out);
}
.doc__jump a:hover,
.doc__jump a:active { color: var(--color-chrome); }

.doc__section {
  margin-top: var(--frame-inset);
  padding: var(--space-2xl) var(--frame-pad);
  border-radius: var(--radius-frame);
  background: var(--color-night);
  box-shadow: 0 0 0 var(--rule-hair) var(--color-night-rule);
  overflow: clip;
  scroll-margin-top: var(--frame-inset);
}

.doc__section h2 {
  margin: 0 0 var(--space-md);
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--weight-display);
  font-style: normal;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--color-chrome);
}

.doc__section h2:not(:first-child) { margin-top: var(--space-2xl); }

.doc__section h3 {
  margin: var(--space-xl) 0 var(--space-sm);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 500;
  font-style: normal;
  line-height: 1.35;
  color: var(--color-chrome);
}

.doc__section h3:first-of-type { margin-top: var(--space-lg); }

.doc__section h4 {
  margin: var(--space-lg) 0 var(--space-xs);
  font-family: var(--font-body);
  font-size: var(--text-ui);
  font-weight: 500;
  font-style: normal;
  line-height: 1.4;
  color: var(--color-chrome);
}

.doc__section p {
  max-width: 62ch;
  margin: 0 0 var(--space-md);
  color: var(--color-chrome-2);
}

.doc__section ul {
  max-width: 62ch;
  margin: 0 0 var(--space-md);
  padding-left: 1.1em;
  color: var(--color-chrome-2);
}

.doc__section > :last-child { margin-bottom: 0; }

.doc__section a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-color: color-mix(in oklch, var(--color-chrome) 45%, transparent);
  transition: color var(--dur-hover) var(--ease-in-out);
}
.doc__section a:hover,
.doc__section a:active { color: var(--color-chrome); }

/* Pinned cards. Same night blue, stepped light to dark, with the hero light over each. */

.stack {
  /* Sample: section-height 75vh, offset (100 − 75) / 2 = 12.5vh above and below. */
  --stack-section: 75vh;
  --stack-offset: calc((100vh - var(--stack-section)) / 2);
}
.stack .doc__section { margin-top: 0; }
.stack .doc__section:first-child { margin-top: var(--frame-inset); }
/* The last card can only stay pinned while something in the stack still follows it. */
.stack__runway { height: calc(var(--stack-section) + var(--stack-offset)); }

.stack__card {
  position: sticky;
  top: var(--stack-offset);
  z-index: 1;
  height: auto;
  min-height: var(--stack-section);
  box-sizing: border-box;
  margin-bottom: var(--stack-offset);
  padding: var(--space-stack-card);
  display: flex;
  gap: var(--stack-col-gap);
  align-items: stretch;
  border-radius: var(--radius-frame);
  box-shadow: 0 0 0 var(--rule-hair) var(--color-night-rule);
  overflow: clip;
  scroll-margin-top: var(--stack-offset);
  background:
    radial-gradient(58% 72% at 78% 18%, color-mix(in oklch, var(--color-light) 46%, transparent), transparent 70%),
    var(--color-stack-light);
}
.stack__card:nth-child(3n+2) {
  background:
    radial-gradient(52% 68% at 70% 30%, color-mix(in oklch, var(--color-light) 36%, transparent), transparent 72%),
    var(--color-stack-mid);
}
.stack__card:nth-child(3n) {
  background:
    radial-gradient(48% 64% at 76% 42%, color-mix(in oklch, var(--color-light) 28%, transparent), transparent 70%),
    var(--color-stack-deep);
}
.stack__card:nth-child(1) { z-index: 1; }
.stack__card:nth-child(2) { z-index: 2; }
.stack__card:nth-child(3) { z-index: 3; }
.stack__card:nth-child(4) { z-index: 4; }
.stack__card:nth-child(5) { z-index: 5; }
.stack__card:nth-child(6) { z-index: 6; }
.stack__card:nth-child(7) { z-index: 7; }
.stack__card:nth-child(8) { z-index: 8; }
.stack__card:nth-child(9) { z-index: 9; }
.stack .stack__card + .stack__card { margin-top: 0; }

/* Left column: half the card, 10% inset, the text group centered. */
.stack__copy {
  flex: 1 1 0;
  min-width: 0;
  width: auto;
  max-width: none;
  display: flex;
  flex-direction: column;
  justify-content: safe center;
  align-items: flex-start;
  gap: var(--space-stack-gap);
  padding: var(--space-stack-inset);
}
.stack__copy h2,
.stack__copy p { margin: 0; max-width: none; }
.stack__copy h2 {
  font-size: var(--text-stack-title);
  line-height: var(--leading-stack-title);
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}
.stack__copy p {
  font-size: var(--text-stack-body);
  line-height: var(--leading-stack-body);
  font-weight: 400;
}
.stack__copy .stack__label {
  font-family: var(--font-display);
  font-size: var(--text-stack-label);
  font-weight: var(--weight-display);
  font-style: normal;
  line-height: var(--leading-stack-label);
  letter-spacing: -0.02em;
  color: var(--color-chrome);
}
.stack__copy .btn--pill { margin-top: var(--space-stack-cta); }
.stack__copy h3 {
  margin: 0 0 var(--space-2xs);
  font-family: var(--font-display);
  font-size: var(--text-stack-label);
  font-weight: var(--weight-display);
  font-style: normal;
  line-height: var(--leading-stack-label);
  letter-spacing: -0.02em;
  color: var(--color-chrome);
}
.stack__catalog {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-stack-gap);
  width: 100%;
}
.stack__catalog--split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.stack__copy ul {
  max-width: none;
  margin: 0;
  padding-left: 1.1em;
}
.stack__copy li {
  margin: 0;
  font-size: var(--text-stack-body);
  line-height: var(--leading-stack-body);
  color: var(--color-chrome-2);
}

/* Right column: the picture fills the padded half. Widgets stay off. */
.stack__media {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: var(--space-stack-inset);
}
.stack__media img,
.stack__map {
  position: absolute;
  inset: var(--space-stack-inset);
  width: calc(100% - (2 * var(--space-stack-inset)));
  height: calc(100% - (2 * var(--space-stack-inset)));
  border-radius: var(--radius-media);
}
.stack__media img { object-fit: cover; }
.stack__map { overflow: hidden; }
.stack__map iframe { width: 100%; height: 100%; border: 0; }
.stack__copy a:not(.btn) {
  color: inherit;
  text-decoration: none;
  transition: color var(--dur-hover) var(--ease-in-out);
}
.stack__copy a:not(.btn):hover,
.stack__copy a:not(.btn):active { color: var(--color-chrome); }
.stack__line { white-space: nowrap; }

@media (max-width: 60rem) {
  .stack__runway { height: 0; }
  .stack__card,
  .stack__card:nth-child(2),
  .stack__card:nth-child(3) {
    position: static;
    top: auto;
    height: auto;
    min-height: 0;
    margin-bottom: 0;
    padding: var(--space-2xl) var(--frame-pad);
    flex-direction: column;
    gap: var(--space-lg);
    transform: none;
    scroll-margin-top: var(--frame-inset);
  }
  .stack .stack__card + .stack__card { margin-top: var(--frame-inset); }
  .stack__copy {
    flex: none;
    width: auto;
    padding: 0;
    gap: var(--space-stack-gap-s);
    justify-content: flex-start;
  }
  .stack__media {
    flex: none;
    width: 100%;
    aspect-ratio: 4 / 3;
    padding: 0;
  }
  .stack__media img,
  .stack__map { inset: 0; width: 100%; height: 100%; }
  .stack__catalog--split { grid-template-columns: minmax(0, 1fr); }
}
.doc__section li { margin: 0 0 var(--space-2xs); }
.doc__section li::marker { color: var(--color-line); }

.doc__groups {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-xl);
  margin-top: var(--space-xl);
  align-items: start;
}

.doc__groups + p { margin-top: var(--space-xl); }
.doc__group h3 { margin-top: 0; }
.doc__group ul,
.doc__group p { max-width: none; }

@media (max-width: 60rem) {
  .doc__groups { grid-template-columns: minmax(0, 1fr); gap: var(--space-2xl); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { transform: none; animation: reveal-reduced 150ms linear forwards; animation-delay: 0ms; }
  @keyframes reveal-reduced { to { opacity: 1; } }
  .sheet__panel, .sheet.is-open .sheet__panel { transform: none; transition: none; }
  .sheet__panel { opacity: 0; transition: opacity 150ms linear; }
  .sheet.is-open .sheet__panel { opacity: 1; transition: opacity 150ms linear; }
  .btn, .nav__link, .icon-btn, .sheet__link, .lang__item, .lang__flag, .foot__cta, .foot__nav a, .foot__detail, .foot__meta a, .foot__brand img, a.wordmark, .doc__jump a, .doc__section a, .stack__copy a { transition-duration: 1ms; }
  .btn:hover { transform: none; }
}
