/* Project page • Neutra Text titles + Neutra Text Light body */

:root, [data-theme="light"] {
  /* Match landing: soft broken paper, never pure white */
  --bg: #f5f1ea;
  --elev: #f9f5ef;
  --chrome: rgba(245,241,234,0.94);
  --ink: #1a1612;
  --muted: #6a635a;
  --line: rgba(26,23,20,0.09);
  --accent: #8b6b45;
  --shadow: 0 18px 40px rgba(50,35,15,0.09);
  --white: #f8f3ea;
  --radius: 6px;
  --radius-hover: 10px;
}
[data-theme="dark"] {
  --bg: #0b0b0b;
  --elev: #141414;
  --chrome: rgba(18,16,14,0.94);
  --ink: #f3efe6;
  --muted: #8e897f;
  --line: rgba(243,239,230,0.1);
  --accent: #c4a574;
  --shadow: 0 22px 48px rgba(0,0,0,0.45);
}

* { box-sizing: border-box; }

/* ============================================================
   NO UNWANTED BROWSER FOCUS / SELECTION CHROME
   Never show UA focus rings, focus-visible halo, or tap flash.
   Intentional design borders (e.g. 5% icon ring) stay.
   ============================================================ */
*,
*::before,
*::after {
  -webkit-tap-highlight-color: transparent !important;
}
:focus,
:focus-visible,
:focus-within {
  outline: none !important;
}
a,
a:focus,
a:focus-visible,
a:active,
button,
button:focus,
button:focus-visible,
button:active,
input:focus,
input:focus-visible,
textarea:focus,
textarea:focus-visible,
select:focus,
select:focus-visible,
summary:focus,
summary:focus-visible,
[tabindex]:focus,
[tabindex]:focus-visible,
.logo,
.logo:focus,
.logo:focus-visible,
.logo:active,
.logo-text,
.chrome a,
.chrome button,
.chrome-icon,
.chrome-icon:focus,
.chrome-icon:focus-visible,
.nav-sidebar a,
.nav-sidebar a:focus,
.nav-sidebar a:focus-visible {
  outline: none !important;
  box-shadow: none !important;
  -webkit-tap-highlight-color: transparent !important;
}
.chrome-icon:focus,
.chrome-icon:focus-visible,
.chrome-icon:focus-within {
  border-color: color-mix(in srgb, var(--ink) 5%, transparent) !important;
  box-shadow: none !important;
}

html {
  /* Always reserve vertical scrollbar — no jump when content/gallery loads */
  overflow-y: scroll;
  scrollbar-gutter: stable;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-ui);
  font-weight: 400;
  letter-spacing: 0.02em;
  font-synthesis: none;
  transition: background 0.35s, color 0.35s;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

.chrome {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px var(--chrome-pad-x, 32px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(12px);
  z-index: 20;
}
.logo {
  display: flex;
  align-items: center;
  max-width: min(58vw, 480px);
  margin-left: 2px;
  flex: 1 1 auto;
  min-width: 0;
  color: var(--ink);
  container-type: inline-size;
  container-name: brandlogo;
}
/* Menu logo: one line wide; two lines when slot is narrow */
.logo-text {
  font-family: var(--font-logo), "Neutra Text Logo", "Neutra Text", sans-serif;
  font-weight: 700;
  font-size: var(--logo-size, 1rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: visible;
  color: var(--ink);
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: baseline;
  gap: 0.35em;
  line-height: 1.15;
  max-width: 100%;
  min-width: 0;
}
.logo-text__l1,
.logo-text__l2 {
  display: block;
  white-space: nowrap;
  min-width: 0;
}
html[lang="nl"] .logo-text {
  letter-spacing: 0.06em;
  font-size: calc(var(--logo-size, 1rem) * 0.92);
}
@container brandlogo (max-width: 300px) {
  .logo-text {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.1em;
    white-space: normal;
    line-height: 1.12;
  }
}
@media (max-width: 720px) {
  .logo {
    max-width: none;
    flex: 1 1 auto;
    min-width: 0;
    margin-right: 6px;
  }
  .logo-text {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.1em;
    white-space: normal;
    line-height: 1.12;
  }
}

/* Page shell */
.project {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 24px 48px;
}
.project__hero {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--elev);
  margin-bottom: 28px;
  aspect-ratio: 16/10;
  max-height: 72vh;
  border: 0;
  box-shadow: none;
  outline: none;
  user-select: none;
  touch-action: pan-y;
  transition: border-radius 0.4s ease, box-shadow 0.3s ease;
}
.project__hero:hover {
  border-radius: var(--radius-hover);
  box-shadow: var(--shadow);
}
.project__hero-img,
.project__hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  transition: transform 0.12s ease-out;
}
.hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.28);
  background: rgba(18,16,14,0.42);
  color: #f7f1e8;
  backdrop-filter: blur(10px);
  font-size: 24px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0.88;
}
.hero-nav:hover { opacity: 1; background: rgba(18,16,14,0.65); }
.hero-nav--prev { left: 10px; }
.hero-nav--next { right: 10px; }
.hero-tools {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: linear-gradient(transparent, rgba(12,10,8,0.55));
  pointer-events: none;
}
.hero-tools > * { pointer-events: auto; }
.hero-tools__count {
  font-family: var(--font-num), "NeutraText TF", sans-serif;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(247,241,232,0.88);
}

/* Expand icon — craft stroke + accent trim (menu language) */
.fs-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(18,16,14,0.4);
  backdrop-filter: blur(10px);
  color: #f7f1e8;
  display: grid;
  place-items: center;
  cursor: pointer;
  --fs-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --fs-ease-out: cubic-bezier(0.08, 0.92, 0.02, 1);
}
.fs-icon:hover { background: rgba(18,16,14,0.62); }
.fs-icon__svg { width: 20px; height: 20px; display: block; }
.fs-icon__base {
  stroke: currentColor;
  stroke-width: 1.75;
  transition: transform 0.45s var(--fs-ease-out), stroke-width 0.3s ease;
  transform-box: fill-box;
  transform-origin: center;
}
.fs-icon__accent {
  stroke: var(--accent, #c4a574);
  stroke-width: 1.75;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  opacity: 0;
  pointer-events: none;
}
.fs-icon:hover .fs-icon__base { stroke-width: 2.2; }
.fs-icon:hover .fs-icon__c1a { opacity: 1; animation: fsTrim 0.8s var(--fs-ease-out) 0s both; }
.fs-icon:hover .fs-icon__c2a { opacity: 1; animation: fsTrim 0.8s var(--fs-ease-out) 0.06s both; }
.fs-icon:hover .fs-icon__c3a { opacity: 1; animation: fsTrim 0.8s var(--fs-ease-out) 0.12s both; }
.fs-icon:hover .fs-icon__c4a { opacity: 1; animation: fsTrim 0.8s var(--fs-ease-out) 0.18s both; }
@keyframes fsTrim {
  0% { stroke-dashoffset: 100; opacity: 0; }
  15% { opacity: 1; }
  45% { stroke-dashoffset: 0; opacity: 1; }
  100% { stroke-dashoffset: -100; opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .fs-icon:hover .fs-icon__accent { animation: none; opacity: 0; }
}

.gallery-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 36px 0 12px;
}
.gallery-bar__title {
  margin: 0;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: none;
}

/* Fullscreen — true FS overlay + modes fit/fill */
body.is-proj-fs {
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: none;
}
.proj-fs {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: #0a0908;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  touch-action: none;
}
.proj-fs[hidden] { display: none !important; }
.proj-fs__scrim {
  position: absolute;
  inset: 0;
  z-index: 0;
  cursor: zoom-out;
}
.proj-fs__chrome {
  position: relative;
  z-index: 4;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: max(12px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) 8px max(14px, env(safe-area-inset-left));
}
.proj-fs__modes {
  display: flex;
  gap: 6px;
}
.proj-fs__mode {
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(20,18,16,0.45);
  color: rgba(247,241,232,0.75);
  border-radius: 999px;
  padding: 6px 12px;
  font-family: var(--font-ui);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}
.proj-fs__mode.is-active {
  color: #f7f1e8;
  border-color: rgba(255,255,255,0.4);
  background: rgba(40,36,32,0.7);
}
.proj-fs__close {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(20,18,16,0.55);
  color: #f7f1e8;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.proj-fs__close:hover { background: rgba(20,18,16,0.85); }
.proj-fs__frame {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 max(8px, env(safe-area-inset-right)) 0 max(8px, env(safe-area-inset-left));
}
.proj-fs__stage {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: zoom-out;
}
.proj-fs__img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  margin: 0 auto;
  user-select: none;
  -webkit-user-drag: none;
  transition: transform 0.12s ease-out;
  will-change: transform;
}
.proj-fs__stage[data-mode="fit"] .proj-fs__img {
  object-fit: contain;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
}
.proj-fs__stage[data-mode="fill"] .proj-fs__img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
}
.proj-fs__nav {
  flex: 0 0 auto;
  z-index: 3;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(20,18,16,0.55);
  color: #f7f1e8;
  font-size: 28px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  align-self: center;
}
.proj-fs__nav:hover { background: rgba(20,18,16,0.85); }
.proj-fs__count {
  position: relative;
  z-index: 4;
  flex: 0 0 auto;
  margin: 0;
  padding: 8px 0 max(16px, env(safe-area-inset-bottom));
  text-align: center;
  color: rgba(247,241,232,0.85);
  font-family: var(--font-num), "NeutraText TF", sans-serif;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  pointer-events: none;
}
@media (max-width: 640px) {
  .proj-fs__nav { width: 40px; height: 40px; font-size: 22px; }
  .hero-nav { width: 36px; height: 36px; font-size: 20px; }
}
.gallery figure.is-active {
  outline: 1px solid color-mix(in srgb, var(--ink) 35%, transparent);
  outline-offset: 2px;
}

/* Meta: Paperback reading */
.project__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 14px;
  margin-bottom: 14px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: var(--track-body, 0.01em);
  text-transform: none;
  color: var(--muted);
  line-height: 1.45;
}
.project__meta-item:not(:last-child)::after {
  content: "·";
  margin-left: 0.55em;
  opacity: 0.4;
}
.project__meta .ref-year {
  font-family: var(--font-num);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent);
}
.swatch {
  width: 14px; height: 14px; border-radius: 50%;
  border: 1px solid var(--line);
  display: inline-block;
  vertical-align: middle;
  margin-right: 6px;
}
.project h1.project-title,
.project h1 {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: clamp(1.55rem, 3.8vw, 2.4rem);
  letter-spacing: var(--track-title, 0.08em);
  text-transform: uppercase;
  line-height: 1.15;
  margin: 0 0 20px;
  font-synthesis: none;
}
/* Brand series variant (Red Wing, Tenue, …) */
.project--brand .project__meta-item--brand {
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-family: system-ui, sans-serif;
}
.project--brand .project__meta-item--brand::after {
  content: none;
}
.project__sub {
  margin: -10px 0 16px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.project__locs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 22px;
}
.project__loc {
  font-family: system-ui, sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
  color: var(--ink);
  background: color-mix(in srgb, var(--elev) 80%, transparent);
}
.project__layout {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 36px;
  align-items: start;
}
.body-copy {
  font-family: var(--font-body);
  font-weight: 400;
  font-synthesis: none;
  font-size: 1.0625rem;
  line-height: 1.72;
  letter-spacing: var(--track-body, 0.01em);
  text-transform: none;
  color: var(--ink);
  max-width: 38em;
}
.body-copy p { margin: 0 0 1.1em; }
.body-copy p:last-child { margin-bottom: 0; }
.body-copy em { font-style: italic; font-weight: 400; }
.body-copy strong { font-style: normal; font-weight: 700; }
.material-note {
  margin-top: 1.25em;
  font-family: var(--font-body);
  font-size: 0.88rem;
  line-height: 1.55;
  letter-spacing: var(--track-body, 0.01em);
  text-transform: none;
  color: var(--muted);
  max-width: 40em;
}
.ref-year {
  font-family: var(--font-num);
  font-weight: 600;
  letter-spacing: 0.04em;
}
.side {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 4px 0 0;
  box-shadow: none;
}
.side h3 {
  margin: 0 0 14px;
  font-family: var(--font-ui);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: none;
  font-size: 0.8rem;
  color: var(--muted);
}
.side dl { margin: 0; display: grid; gap: 12px; }
.side dt {
  font-family: var(--font-ui);
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: none;
  font-weight: 600;
  margin: 0;
}
.side dd {
  margin: 3px 0 0;
  font-family: var(--font-body);
  font-weight: 400;
  letter-spacing: var(--track-body, 0.01em);
  text-transform: none;
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.4;
}
.side dd.ref-year {
  font-family: var(--font-num);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.gallery {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 10px;
}
.gallery figure {
  margin: 0;
  grid-column: span 4;
  overflow: hidden;
  border-radius: var(--radius);
  background: transparent;
  cursor: pointer;
  border: 0;
  transition: border-radius 0.4s ease, transform 0.35s ease, box-shadow 0.3s ease;
}
.gallery figure:hover {
  border-radius: var(--radius-hover);
  box-shadow: var(--shadow);
  z-index: 2;
}
.gallery figure:first-child { grid-column: span 8; }
.gallery figure:nth-child(5) { grid-column: span 6; }
.gallery figure:nth-child(6) { grid-column: span 6; }
.gallery img {
  width: 100%;
  height: 100%;
  min-height: 180px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), filter 0.4s;
}
.gallery figure:hover img {
  transform: scale(1.06);
  filter: saturate(1.05);
}

.related {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 24px 60px;
  border-top: 1px solid var(--line);
}
.related h2 {
  font-size: 1.1rem;
  margin: 0 0 16px;
  letter-spacing: 0.06em;
}
.related__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.related__grid a {
  display: block;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: var(--radius);
  background: transparent;
  position: relative;
  border: 0;
  transition: border-radius 0.4s ease, transform 0.35s ease, box-shadow 0.3s ease;
}
.related__grid a:hover {
  border-radius: var(--radius-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  z-index: 2;
}
.related__grid img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.related__grid a:hover img { transform: scale(1.07); }
.related__grid span {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 20px 10px 8px;
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
  color: #fff;
  font-family: "Neutra Text", sans-serif;
  font-size: 11px;
  letter-spacing: 0.04em;
  font-weight: 600;
  opacity: 0;
  transform: translateY(6px);
  transition: 0.3s;
}
.related__grid a:hover span { opacity: 1; transform: none; }

.foot.site-footer,
.site-footer {
  padding: 36px clamp(18px, 4vw, 40px) 48px;
  border-top: 1px solid var(--line);
}
.site-footer__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 48px;
  align-items: start;
}
.site-footer__col--right { text-align: right; }
.site-footer__name {
  margin: 0 0 10px;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
}
.site-footer__addr {
  margin: 0 0 10px;
  font-style: normal;
  font-size: 13px;
  line-height: 1.65;
  color: var(--ink);
  font-weight: 400;
}
.site-footer__contact {
  margin: 0 0 14px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 13px;
  font-weight: 400;
  align-items: flex-end;
}
.site-footer__contact a { color: var(--ink); }
.site-footer__contact a:hover { color: var(--accent); }
.site-footer__note {
  margin: 0 0 10px;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: right;
}
.site-footer__links {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  text-align: right;
}
.site-footer__links a { color: var(--muted); }
.site-footer__links a:hover { color: var(--ink); }
@media (max-width: 640px) {
  .site-footer__inner { grid-template-columns: 1fr; }
  .site-footer__col--right,
  .site-footer__note,
  .site-footer__links { text-align: left; }
  .site-footer__contact { align-items: flex-start; }
}
.small { font-size: 0.95rem; color: var(--muted); margin: 10px 0 0; }
.muted { color: var(--muted); }

@media (max-width: 800px) {
  .project__layout { grid-template-columns: 1fr; }
  .related__grid { grid-template-columns: 1fr 1fr; }
  .gallery figure,
  .gallery figure:first-child,
  .gallery figure:nth-child(5),
  .gallery figure:nth-child(6) { grid-column: span 12; }
}


@media (max-width: 900px) {
  .logo { max-width: none; flex: 1 1 auto; min-width: 0; }
  .logo-text {
    font-size: calc(var(--logo-size, 1rem) * 0.9);
    flex-direction: column;
    align-items: flex-start;
    gap: 0.1em;
    white-space: normal;
    line-height: 1.12;
  }
}
@media (max-width: 560px) {
  .chrome__nav { display: none; }
  .logo { max-width: none; flex: 1 1 auto; min-width: 0; margin-right: 4px; }
  .logo-text {
    font-size: calc(var(--logo-size, 1rem) * 0.82);
    flex-direction: column;
    align-items: flex-start;
    gap: 0.08em;
    white-space: normal;
    line-height: 1.12;
  }
}

/* Kill ugly browser selection/focus boxes on chrome brand + controls */
.chrome a,
.chrome a:focus,
.chrome a:focus-visible,
.chrome a:active,
.chrome button:focus,
.chrome button:focus-visible {
  outline: none !important;
  box-shadow: none !important;
  -webkit-tap-highlight-color: transparent;
}

:root, [data-theme="light"] { --bg-elev: var(--elev); }
[data-theme="dark"] { --bg-elev: var(--elev); }
body.is-nav-open .chrome {
  z-index: 90;
  pointer-events: none;
}
body.is-nav-open .chrome .logo {
  opacity: 1;
  pointer-events: auto;
}
body.is-nav-open .chrome__end {
  pointer-events: auto;
  margin-left: auto;
}
.chrome { z-index: 60; }

/* —— Chrome end: saw-style marks (loader-saw line language) —— */
.chrome__end {
  --chrome-icon: 40px;
  --chrome-stroke: 1.75;
  --menu-ease: cubic-bezier(0.22, 1, 0.36, 1);       /* same family as loader coast */
  --menu-ease-out: cubic-bezier(0.08, 0.92, 0.02, 1); /* loader saw spin ease-out */
  --menu-ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}
.chrome__actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
  align-items: center;
}

/* Shared craft chrome control — same footprint for menu / lang / theme */
.chrome-icon {
  width: var(--chrome-icon);
  height: var(--chrome-icon);
  min-width: var(--chrome-icon);
  min-height: var(--chrome-icon);
  padding: 0;
  margin: 0;
  border-radius: 50%;
  /* single ring only: 5% opacity — never a second focus/selection ring */
  border: 1px solid color-mix(in srgb, var(--ink) 5%, transparent);
  background: var(--elev, #f9f5ef);
  color: var(--ink);
  display: grid;
  place-items: center;
  position: relative;
  flex-shrink: 0;
  opacity: 0.92; /* icon mark; not the ring */
  outline: none;
  box-shadow: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-appearance: none;
  appearance: none;
  transition:
    background 0.35s var(--menu-ease-soft),
    border-color 0.35s var(--menu-ease-soft),
    color 0.25s ease,
    transform 0.32s var(--menu-ease),
    opacity 0.25s ease;
}
.chrome-icon:hover {
  opacity: 1;
  border-color: color-mix(in srgb, var(--ink) 5%, transparent);
  background: color-mix(in srgb, var(--ink) 4%, var(--elev, #f9f5ef));
  outline: none;
  box-shadow: none;
}
.chrome-icon:active,
.chrome-icon.is-press {
  transform: scale(0.94);
  background: color-mix(in srgb, var(--ink) 7%, var(--elev, #f9f5ef));
  border-color: color-mix(in srgb, var(--ink) 5%, transparent);
  outline: none;
  box-shadow: none;
}
.chrome-icon:focus,
.chrome-icon:focus-visible,
.chrome-icon:focus-within {
  outline: none !important;
  box-shadow: none !important;
  border-color: color-mix(in srgb, var(--ink) 5%, transparent);
}
.chrome-icon__svg {
  display: block;
  width: 18px;
  height: 18px;
  overflow: visible;
  color: inherit;
}

/* Menu shell (button only; panel is fixed sidebar) */
.chrome__menu {
  position: relative;
  display: flex;
  align-items: center;
}

/* Hamburger — saw line language; hover = reaction only (no open) */
.menu-toggle__svg {
  width: 20px;
  height: 20px;
}
.menu-toggle__bar {
  transform-box: fill-box;
  transform-origin: center;
}
.menu-toggle__bar--base {
  stroke: currentColor;
  stroke-width: 1.75;
  transition:
    transform 0.52s var(--menu-ease-out),
    opacity 0.28s var(--menu-ease-soft),
    stroke-width 0.35s var(--menu-ease-soft);
}
/* Accent trim layer: pathLength 100 → dash trim in/out */
.menu-toggle__bar--accent {
  stroke: var(--accent);
  stroke-width: 1.75;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  opacity: 0;
  pointer-events: none;
  transition:
    transform 0.52s var(--menu-ease-out),
    opacity 0.2s var(--menu-ease-soft),
    stroke-width 0.35s var(--menu-ease-soft);
}

/*
 * Hover (closed only): sequential thicken + accent stroke trim
 * top → mid → bottom, then soft settle — craft mark, not bouncy UI
 */
.menu-toggle:hover:not(:disabled) .menu-toggle__bar--base.menu-toggle__bar--1 {
  stroke-width: 2.35;
  transition-delay: 0s;
}
.menu-toggle:hover:not(:disabled) .menu-toggle__bar--base.menu-toggle__bar--2 {
  stroke-width: 2.35;
  transition-delay: 0.06s;
}
.menu-toggle:hover:not(:disabled) .menu-toggle__bar--base.menu-toggle__bar--3 {
  stroke-width: 2.35;
  transition-delay: 0.12s;
}
.menu-toggle:hover:not(:disabled) .menu-toggle__bar--1a {
  opacity: 1;
  animation: menuBarTrim 0.85s var(--menu-ease-out) 0s both;
}
.menu-toggle:hover:not(:disabled) .menu-toggle__bar--2a {
  opacity: 1;
  animation: menuBarTrim 0.85s var(--menu-ease-out) 0.08s both;
}
.menu-toggle:hover:not(:disabled) .menu-toggle__bar--3a {
  opacity: 1;
  animation: menuBarTrim 0.85s var(--menu-ease-out) 0.16s both;
}
@keyframes menuBarTrim {
  0% {
    stroke-dashoffset: 100;
    opacity: 0;
  }
  12% {
    opacity: 1;
  }
  45% {
    stroke-dashoffset: 0;
    opacity: 1;
  }
  70% {
    stroke-dashoffset: 0;
    opacity: 0.85;
  }
  100% {
    stroke-dashoffset: -100;
    opacity: 0;
  }
}

/* Press: denser stack */
.menu-toggle:active .menu-toggle__bar--base.menu-toggle__bar--1,
.menu-toggle.is-press .menu-toggle__bar--base.menu-toggle__bar--1 {
  transform: translateY(1px);
  stroke-width: 2.5;
}
.menu-toggle:active .menu-toggle__bar--base.menu-toggle__bar--3,
.menu-toggle.is-press .menu-toggle__bar--base.menu-toggle__bar--3 {
  transform: translateY(-1px);
  stroke-width: 2.5;
}

/* Open → cross (click). Suppress hover-trim while open. */
body.is-nav-open .menu-toggle,
.chrome__menu.is-open .menu-toggle {
  opacity: 1;
  border-color: color-mix(in srgb, var(--ink) 5%, transparent);
  background: color-mix(in srgb, var(--ink) 6%, var(--elev, #f9f5ef));
  z-index: 90;
  outline: none !important;
  box-shadow: none !important;
}
body.is-nav-open .menu-toggle__bar--accent,
.chrome__menu.is-open .menu-toggle__bar--accent {
  opacity: 0 !important;
  animation: none !important;
}
body.is-nav-open .menu-toggle__bar--base,
.chrome__menu.is-open .menu-toggle__bar--base {
  stroke-width: 1.75;
  transition-delay: 0s !important;
}
body.is-nav-open .menu-toggle__bar--1,
.chrome__menu.is-open .menu-toggle__bar--1,
body.is-nav-open .menu-toggle__bar--1a,
.chrome__menu.is-open .menu-toggle__bar--1a {
  transform: translateY(5px) rotate(45deg);
}
body.is-nav-open .menu-toggle__bar--2,
.chrome__menu.is-open .menu-toggle__bar--2,
body.is-nav-open .menu-toggle__bar--2a,
.chrome__menu.is-open .menu-toggle__bar--2a {
  opacity: 0 !important;
  transform: scaleX(0.15);
}
body.is-nav-open .menu-toggle__bar--3,
.chrome__menu.is-open .menu-toggle__bar--3,
body.is-nav-open .menu-toggle__bar--3a,
.chrome__menu.is-open .menu-toggle__bar--3a {
  transform: translateY(-5px) rotate(-45deg);
}

@media (prefers-reduced-motion: reduce) {
  .menu-toggle:hover:not(:disabled) .menu-toggle__bar--accent {
    animation: none;
    opacity: 0;
  }
}

/* —— Right sidebar nav —— golden ratio φ = 1.618 —— */
.nav-sidebar__scrim {
  position: fixed;
  inset: 0;
  z-index: 75;
  background: color-mix(in srgb, var(--bg) 35%, transparent);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.28s cubic-bezier(0.7, 0, 0.3, 1),
    visibility 0s linear 0.28s;
}
body.is-nav-open .nav-sidebar__scrim {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition:
    opacity 0.22s cubic-bezier(0.2, 0.9, 0.2, 1),
    visibility 0s linear 0s;
}
.nav-sidebar {
  /* φ = 1.618: minor segment = 1/φ² ≈ 38.2vw (slanker, nog steeds gulden snede) */
  --phi: 1.618;
  --menu-ease-brutal: cubic-bezier(0.75, 0, 0.2, 1);
  --menu-ease-brutal-in: cubic-bezier(0.16, 1, 0.3, 1);
  --menu-ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(calc(100vw / (var(--phi) * var(--phi))), 100%);
  max-width: 100%;
  z-index: 80;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding:
    calc(var(--chrome-icon, 40px) + 48px)
    clamp(24px, calc(100vw / (var(--phi) * var(--phi)) / var(--phi) / 2), 44px)
    48px;
  margin: 0;
  box-sizing: border-box;
  color: var(--ink);
  /*
   * Glass panel: 75% paper fill + backdrop blur with exposure lift
   * (brightness/sat — content behind softens up, not muddy grey)
   */
  background:
    linear-gradient(
      165deg,
      color-mix(in srgb, var(--white) 12%, transparent) 0%,
      transparent 42%
    ),
    color-mix(in srgb, var(--chrome, var(--elev, #f9f5ef)) 75%, transparent);
  border-left: 1px solid color-mix(in srgb, var(--ink) 8%, transparent);
  box-shadow: -28px 0 64px color-mix(in srgb, var(--ink) 14%, transparent);
  /* blur 1/3 less than 32px → ~21px */
  backdrop-filter: blur(21px) saturate(1.14) brightness(1.07);
  -webkit-backdrop-filter: blur(21px) saturate(1.14) brightness(1.07);
  transform: translate3d(100%, 0, 0);
  visibility: hidden;
  pointer-events: none;
  transition:
    transform 0.38s var(--menu-ease-brutal),
    visibility 0s linear 0.38s;
}
[data-theme="dark"] .nav-sidebar {
  background:
    linear-gradient(
      165deg,
      color-mix(in srgb, var(--white) 6%, transparent) 0%,
      transparent 48%
    ),
    color-mix(in srgb, var(--chrome, var(--elev, #f9f5ef)) 75%, transparent);
  box-shadow: -32px 0 72px rgba(0, 0, 0, 0.5);
  /* dark: gentler lift so it doesn’t wash out */
  backdrop-filter: blur(21px) saturate(1.1) brightness(1.1);
  -webkit-backdrop-filter: blur(21px) saturate(1.1) brightness(1.1);
}
body.is-nav-open .nav-sidebar {
  transform: translate3d(0, 0, 0);
  visibility: visible;
  pointer-events: auto;
  transition:
    transform 0.42s var(--menu-ease-brutal-in),
    visibility 0s linear 0s;
}
.nav-sidebar__nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: calc(6px * var(--phi)); /* ~9.7px — φ rhythm */
  width: 100%;
  max-width: calc(100% / var(--phi) * 1.1);
}
.nav-sidebar__nav > a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: calc(10px * var(--phi)) 12px; /* ~16px vertical */
  border: 0;
  border-bottom: none;
  font-family: var(--font-ui), "Neutra Text", system-ui, sans-serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  color: var(--muted);
  opacity: 0;
  transform: translate3d(calc(12px * var(--phi)), 0, 0);
  transition:
    color 0.22s var(--menu-ease-soft),
    opacity 0.28s var(--menu-ease-brutal-in),
    transform 0.34s var(--menu-ease-brutal-in);
  transition-delay: 0s;
}
body.is-nav-open .nav-sidebar__nav > a {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition-delay: calc(0.06s + var(--i, 0) * 0.04s);
}
.nav-sidebar__nav > a:hover,
.nav-sidebar__nav > a:focus-visible {
  color: var(--ink);
  font-weight: 700;
}
.nav-sidebar__nav > a.is-active {
  color: var(--ink);
  font-weight: 700;
}
.nav-sidebar__nav > a:active {
  color: var(--ink);
  opacity: 0.85;
}

/* Lang: same circle; label optically pixel-centered (letter-spacing compensated) */
.lang-btn {
  display: grid;
  place-items: center;
  padding: 0;
  font-family: var(--font-title), "Neutra Text", system-ui, sans-serif;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  line-height: 0; /* kill button strut; label owns metrics */
  letter-spacing: 0;
}
.lang-btn__label {
  display: block;
  line-height: 1;
  letter-spacing: 0.12em;
  /* letter-spacing only expands to the right — cancel trailing gap */
  margin-inline-end: -0.12em;
  /* Neutra caps sit a hair high; 0.5px down = true visual center in 40px circle */
  transform: translateY(0.5px);
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
}
.theme-btn__sun,
.theme-btn__moon {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  line-height: 0;
  transition: opacity 0.28s ease;
  transform: none;
}
.theme-btn__sun .chrome-icon__svg,
.theme-btn__moon .chrome-icon__svg,
.theme-btn__svg {
  width: 18px;
  height: 18px;
  display: block;
}
[data-theme="light"] .theme-btn__sun {
  opacity: 1;
  pointer-events: auto;
}
[data-theme="light"] .theme-btn__moon {
  opacity: 0;
  pointer-events: none;
}
[data-theme="dark"] .theme-btn__moon {
  opacity: 1;
  pointer-events: auto;
}
[data-theme="dark"] .theme-btn__sun {
  opacity: 0;
  pointer-events: none;
}

/* Theme in hamburger panel — 75%, no circle, fixed stage */
.nav-sidebar__tools {
  flex: 0 0 auto;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 28px 0 32px;
  margin: 0;
  min-height: calc(var(--chrome-icon, 40px) * 0.75 + 20px);
  box-sizing: border-box;
}
.theme-btn.theme-btn--panel {
  --theme-icon: calc(24px * 0.80); /* 80% */
  position: relative;
  width: var(--theme-icon);
  height: var(--theme-icon);
  min-width: var(--theme-icon);
  min-height: var(--theme-icon);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--ink);
  opacity: 0.78;
  cursor: pointer;
  display: block;
  overflow: visible;
}
.theme-btn.theme-btn--panel:hover {
  opacity: 1;
  background: transparent;
}
.theme-btn.theme-btn--panel .theme-btn__sun,
.theme-btn.theme-btn--panel .theme-btn__moon {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.theme-btn.theme-btn--panel .theme-btn__svg {
  width: 100%;
  height: 100%;
  display: block;
}

.nav-sidebar__nav {
  flex: 1 1 auto;
  justify-content: center;
}


@media (prefers-reduced-motion: reduce) {
  .chrome-icon,
  .menu-toggle__bar,
  .nav-sidebar,
  .nav-sidebar__scrim,
  .nav-sidebar__nav > a,
  .theme-btn__sun,
  .theme-btn__moon {
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
}


