/* nieuwmathenesse.nl  |  RAW Footage, Rotterdam */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url(/assets/fonts/archivo-var.woff2) format("woff2-variations"), url(/assets/fonts/archivo-var.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url(/assets/fonts/archivo-var-ext.woff2) format("woff2-variations"), url(/assets/fonts/archivo-var-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+A720-A7FF;
}

:root {
  --radius: 4px;
  --maxw: 72rem;
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 4.5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: clamp(1rem, .95rem + .25vw, 1.125rem);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  font-stretch: 100%;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--bottle); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--brick); }
:focus-visible { outline: 3px solid var(--brick-2); outline-offset: 2px; }
p { margin: 0 0 1em; }
h1, h2, h3 { line-height: 1.05; margin: 0 0 .5em; font-stretch: 75%; font-weight: 800; letter-spacing: -.01em; }
h1 { font-size: clamp(2.6rem, 1.6rem + 5vw, 5.6rem); text-transform: uppercase; }
h2 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.4rem); text-transform: uppercase; }
h3 { font-size: clamp(1.2rem, 1.05rem + .6vw, 1.5rem); font-stretch: 87%; font-weight: 700; }
.wrap { width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto; }
.eyebrow { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--brick); margin-bottom: .8rem; display: inline-flex; gap: .6rem; align-items: center; }
.eyebrow::before { content: ""; width: 1.6rem; height: 2px; background: currentColor; }
.lead { font-size: clamp(1.1rem, 1rem + .5vw, 1.35rem); max-width: 42rem; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.skip { position: absolute; left: -999px; top: .5rem; background: var(--nm-dark); color: var(--nm-on-dark); padding: .5rem 1rem; z-index: 100; }
.skip:focus { left: .5rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3.75rem; }
.brand { white-space: nowrap; display: inline-flex; align-items: center; gap: .6rem; color: var(--ink); text-decoration: none; font-weight: 800; font-stretch: 75%; font-size: 1.25rem; text-transform: uppercase; letter-spacing: .01em; }
.brand svg { width: 2rem; height: 2rem; }
.nav { display: flex; align-items: center; gap: .25rem; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; }
.nav a { display: block; padding: .5rem .7rem; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; border-radius: var(--radius); }
.nav a:hover { background: var(--paper-2); color: var(--ink); }
.lang { display: inline-flex; border: 1.5px solid var(--ink); border-radius: 99px; overflow: hidden; margin-left: .5rem; font-size: .8rem; font-weight: 700; }
.lang a, .lang span { display: inline-flex; align-items: center; padding: .3rem .65rem; text-decoration: none; color: var(--ink); line-height: 1.2; }
.lang [aria-current] { background: var(--ink); color: var(--paper); }
.menu-btn { display: none; background: none; border: 1.5px solid var(--ink); border-radius: var(--radius); padding: .45rem .6rem; font: inherit; font-weight: 700; color: var(--ink); cursor: pointer; }
@media (max-width: 860px) {
  .menu-btn { display: inline-flex; }
  .nav ul { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; background: var(--paper); border-bottom: 1px solid var(--line); padding: .5rem 1.25rem 1rem; }
  .nav.open ul { display: flex; }
  .brand { font-size: 1.05rem; }
  .brand svg { width: 1.7rem; height: 1.7rem; }
  .nav a { padding: .75rem .25rem; font-size: 1.05rem; border-bottom: 1px solid var(--paper-2); border-radius: 0; }
}

/* hero */
.hero { background: var(--nm-dark); color: var(--nm-on-dark); position: relative; overflow: hidden; }
.hero .wrap { padding: clamp(3rem, 8vw, 6.5rem) 0 0; position: relative; z-index: 1; }
.hero h1 { max-width: 14ch; }
.hero h1 em { font-style: normal; color: var(--bottle-2); }
.hero .lead { color: var(--nm-on-dark-2); }
.hero .eyebrow { color: var(--brick-2); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.75rem 0 2.5rem; }
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .8rem 1.2rem; border-radius: var(--radius); font-weight: 700; text-decoration: none; border: 1.5px solid transparent; transition: transform .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brick); color: var(--md-sys-color-on-tertiary); }
.btn-primary:hover { background: var(--brick-2); color: var(--md-sys-color-on-tertiary); }
.btn-ghost { border-color: currentColor; color: inherit; }
.btn-ghost:hover { color: var(--bottle-2); }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: var(--bottle); color: var(--md-sys-color-on-primary); }
/* keep the drawing's aspect ratio: wider than the screen on phones (sides cropped),
   capped at 1800px on big screens (ground + water continue outside the viewBox) */
.skyline { display: block; width: clamp(720px, 100%, 1800px); max-width: none; height: auto; aspect-ratio: 1440 / 300; overflow: visible; margin: 1rem 0 0 50%; transform: translateX(-50%); }
.skyline .w { fill: #1d3a4a; }
.hero-note { position: absolute; right: 1.25rem; bottom: .75rem; font-size: .7rem; color: var(--nm-on-dark-3); z-index: 2; }

/* stats */
.stats { background: var(--nm-dark-2); color: var(--nm-on-dark); }
.stats ul { list-style: none; margin: 0; padding: 2rem 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(45%, 11rem), 1fr)); gap: 1.5rem 2rem; }
.stats strong { display: block; font-size: clamp(2.2rem, 1.6rem + 2.5vw, 3.4rem); font-stretch: 75%; font-weight: 800; line-height: 1; color: var(--bottle-2); }
.stats span { font-size: .9rem; color: var(--nm-on-dark-2); }

/* sections */
section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section-alt { background: var(--paper-2); }
.section-dark { background: var(--nm-dark); color: var(--nm-on-dark); }
.section-dark a { color: var(--bottle-2); }
.section-dark .muted { color: var(--nm-on-dark-3); }
.grid-2 { display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); align-items: start; }
.cards { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); margin-top: 2rem; }
.cards-tight { grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; position: relative; }
.section-alt .cards-tight { grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.card { background: var(--card-alt); }
.card h3 { margin-bottom: .4rem; }
.card p:last-child { margin-bottom: 0; }
.card .tag { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--bottle); margin-bottom: .6rem; }
.card ul { padding-left: 1.1rem; margin: .5rem 0 0; }
.card li { margin-bottom: .35rem; }
.icon { width: 2.25rem; height: 2.25rem; margin-bottom: .9rem; color: var(--brick); }

/* price table */
.prices { margin-top: 3rem; max-width: 52rem; }
.prices h3 { font-size: clamp(1.4rem, 1.2rem + .8vw, 1.9rem); text-transform: uppercase; font-stretch: 75%; font-weight: 800; }
.table-wrap { overflow-x: auto; margin: 1.25rem 0 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card-alt); }
.prices table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.prices th, .prices td { text-align: left; padding: .75rem 1rem; border-bottom: 1px solid var(--line); }
.prices thead th { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); background: var(--paper-2); }
.prices tbody tr:last-child > * { border-bottom: 0; }
.prices tbody th { font-weight: 700; color: var(--bottle); }
@media (max-width: 560px) { .prices th, .prices td { padding: .6rem .5rem; font-size: .85rem; } .prices thead th { font-size: .65rem; letter-spacing: .05em; } }

/* map */
.map-figure { margin: 0; }
.nm-map:not(.is-live) svg { width: 100%; border: 1px solid var(--line); border-radius: var(--radius); background: var(--md-sys-color-surface-container-high); }
.map-figure figcaption { font-size: .8rem; color: var(--muted); margin-top: .5rem; }
.legend { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .9rem; }
.legend li { display: grid; grid-template-columns: 1rem 1fr; gap: .75rem; align-items: start; }
.legend i { width: 1rem; height: 1rem; border-radius: 2px; margin-top: .3rem; }

/* timeline */
.timeline { list-style: none; margin: 2.5rem 0 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: .45rem; top: .4rem; bottom: .4rem; width: 2px; background: var(--line); }
.timeline li { position: relative; padding: 0 0 1.75rem 2.25rem; }
.timeline li::before { content: ""; position: absolute; left: 0; top: .35rem; width: 1rem; height: 1rem; border-radius: 50%; background: var(--paper); border: 3px solid var(--bottle); }
.timeline li.future::before { border-color: var(--brick); border-style: dashed; }
.timeline time { display: block; font-weight: 800; font-stretch: 75%; font-size: 1.25rem; text-transform: uppercase; color: var(--bottle); line-height: 1.2; }
.timeline li.future time { color: var(--brick); }
.timeline p { margin: .2rem 0 0; max-width: 44rem; }
@media (min-width: 900px) {
  .timeline { columns: 2; column-gap: 4rem; }
  .timeline::before { display: none; }
  .timeline li { break-inside: avoid; border-left: 2px solid var(--line); padding-left: 2rem; margin-left: .45rem; }
  .timeline li::before { left: -.58rem; }
}

/* links list */
.links { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .6rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); }
.links a { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 1.1rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); font-weight: 600; }
.links a:hover { border-color: var(--bottle); color: var(--bottle); }
.links small { display: block; font-weight: 400; color: var(--muted); font-size: .82rem; }
.links a::after { content: "\2197"; color: var(--brick); flex: none; }

/* for sale */
.sale { background: var(--nm-sale); color: var(--nm-on-sale); }
.sale .eyebrow { color: var(--nm-sale-eyebrow); }
.sale a:not(.btn) { color: var(--nm-on-sale); }
.sale .domains { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0 1.5rem; }
.sale .domains code { font-family: inherit; font-weight: 800; font-stretch: 80%; font-size: clamp(1.1rem, 1rem + 1vw, 1.6rem); background: rgba(0,0,0,.18); padding: .35rem .75rem; border-radius: var(--radius); }
.sale ul { padding-left: 1.1rem; }
.sale .btn-dark { background: var(--nm-dark); color: var(--nm-on-dark); }
.sale .btn-dark:hover { background: var(--nm-on-sale); color: var(--nm-sale); }

/* contact */
.contact-cards .card { display: flex; flex-direction: column; }
.contact-cards .card .btn { margin-top: auto; align-self: flex-start; }
.contact-cards .card p { flex: 1; }

/* footer */
.site-footer { background: var(--nm-dark); color: var(--nm-on-dark-3); font-size: .875rem; padding: 3rem 0 2rem; }
.site-footer a { color: var(--nm-on-dark); }
.site-footer .wrap { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
.site-footer h2 { font-size: 1rem; text-transform: uppercase; color: var(--nm-on-dark); margin-bottom: .6rem; font-stretch: 87%; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .3rem; }
.site-footer .legal { grid-column: 1 / -1; border-top: 1px solid var(--nm-dark-line); padding-top: 1.25rem; font-size: .8rem; }

@media print {
  .site-header, .hero-ctas, .skyline, .menu-btn { display: none !important; }
  .hero, .stats, .section-dark, .sale, .site-footer { background: none; color: #000; }
}

/* interactive map */
.map-figure { margin-top: 2.5rem; }
.map-figure figcaption { margin-top: .6rem; }
.nm-map.is-live { display: grid; grid-template-columns: 1fr 22rem; grid-template-rows: auto 1fr; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--paper); }
.nm-bar { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; padding: .75rem; border-bottom: 1px solid var(--line); background: var(--paper-2); }
.nm-filters, .nm-base { display: flex; flex-wrap: wrap; gap: .4rem; }
.nm-bar button { font: inherit; font-size: .85rem; font-weight: 600; display: inline-flex; align-items: center; gap: .4rem; padding: .4rem .7rem; border-radius: 99px; border: 1.5px solid var(--ink); background: var(--paper); color: var(--ink); cursor: pointer; }
.nm-bar button i { width: .65rem; height: .65rem; border-radius: 50%; }
.nm-filters button[aria-pressed="false"] { opacity: .45; text-decoration: line-through; }
.nm-base button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.nm-canvas { min-height: 34rem; z-index: 0; }
.nm-panel { position: relative; padding: 1.25rem 1.25rem 1.5rem; border-left: 1px solid var(--line); overflow-y: auto; max-height: 34rem; font-size: .95rem; }
.nm-panel h3 { margin: .2rem 0 .5rem; font-size: 1.6rem; text-transform: uppercase; font-stretch: 75%; font-weight: 800; }
.nm-panel ul { padding-left: 1.1rem; margin: .5rem 0 1rem; }
.nm-panel li { margin-bottom: .3rem; }
.nm-city { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--muted); display: flex; align-items: center; gap: .45rem; margin: 0; padding-right: 2rem; }
.nm-city i { width: .7rem; height: .7rem; border-radius: 2px; flex: none; }
.nm-status { font-size: .9rem; }
.nm-hint { color: var(--muted); margin-top: 1rem; }
.nm-close { position: absolute; top: .6rem; right: .6rem; width: 2rem; height: 2rem; border: 0; background: var(--paper-2); border-radius: 50%; font-size: 1.2rem; line-height: 1; cursor: pointer; color: var(--ink); }
.nm-links a { font-weight: 700; }
.nm-reset { width: 34px; height: 34px; background: var(--input); border: 2px solid rgba(0,0,0,.2); border-radius: 4px; font-size: 1.1rem; cursor: pointer; color: var(--ink); }
.leaflet-container svg, .leaflet-container img { max-width: none !important; height: revert !important; display: revert !important; }
.leaflet-container { font-family: var(--font); background: var(--md-sys-color-surface-container-high); }
.leaflet-tooltip.nm-tip { font-family: var(--font); font-weight: 700; font-size: .8rem; border-radius: 3px; }
.nm-map.is-photo .leaflet-interactive { filter: drop-shadow(0 0 1px rgba(0,0,0,.6)); }
@media (max-width: 860px) {
  .nm-map.is-live { grid-template-columns: 1fr; }
  .nm-canvas { min-height: 24rem; }
  .nm-panel { border-left: 0; border-top: 1px solid var(--line); max-height: none; }
  .nm-bar { flex-direction: column; }
}

/* signup */
.ticks { list-style: none; padding: 0; margin: 1.25rem 0 0; }
.ticks li { padding-left: 1.6rem; position: relative; margin-bottom: .45rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .35em; width: .9rem; height: .5rem; border-left: 2.5px solid var(--bottle); border-bottom: 2.5px solid var(--bottle); transform: rotate(-45deg); }
.su-form { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 2rem); display: grid; gap: .5rem; }
.su-form label, .su-form legend { font-weight: 700; font-size: .9rem; }
.su-form input[type="email"], .su-form select { font: inherit; padding: .75rem .85rem; border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--input); color: var(--ink); width: 100%; margin-bottom: .6rem; }
.su-form input[type="email"]:focus, .su-form select:focus { border-color: var(--bottle); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--bottle) 25%, transparent); }
.su-form fieldset { border: 0; padding: 0; margin: 0 0 .6rem; }
.su-form legend { margin-bottom: .45rem; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; padding: .45rem .8rem; border: 1.5px solid var(--line); border-radius: 99px; font-weight: 600; font-size: .9rem; cursor: pointer; background: var(--input); }
.chip input:checked + span { border-color: var(--bottle); background: var(--bottle); color: var(--md-sys-color-on-primary); }
.chip input:focus-visible + span { outline: 3px solid var(--brick-2); outline-offset: 2px; }
.consent { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400 !important; margin: .3rem 0 .8rem; }
.consent input { margin-top: .3rem; width: 1.1rem; height: 1.1rem; flex: none; accent-color: var(--bottle); }
.su-form .btn { justify-self: start; border: 0; cursor: pointer; font: inherit; font-weight: 700; }
.su-form .btn:disabled { opacity: .6; cursor: wait; }
.su-msg { margin: .3rem 0 0; font-weight: 600; min-height: 1.5em; }
.su-msg.is-ok { color: var(--bottle); }
.su-msg.is-error { color: var(--md-sys-color-error); }
.ts-slot:empty { display: none; }
.ts-slot { margin: .2rem 0 .6rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* prose pages */
.prose { max-width: 46rem; }
.prose h1 { font-size: clamp(2.2rem, 1.5rem + 3vw, 3.6rem); }
.prose h2 { font-size: 1.35rem; text-transform: none; font-stretch: 87%; margin-top: 2rem; }

/* ===== softer shapes: rounded, borderless, tonal cards ===== */
:root { --r-card: 22px; --r-sm: 14px; }
.card { border: 0; border-radius: var(--r-card); background: var(--card); padding: 1.6rem; }
.section-alt .card { background: var(--card-alt); }
.section-dark .card { background: var(--card-dark); color: var(--nm-on-dark-card); }
.section-dark .card .icon { color: var(--bottle); }
.btn, .menu-btn { border-radius: 999px; }
.btn { padding: .8rem 1.35rem; }
.nav a { border-radius: 999px; }
.links a { border: 0; border-radius: var(--r-sm); background: var(--card); transition: background .15s ease, transform .15s ease; }
.section-alt .links a { background: var(--card-alt); }
.links a:hover { background: color-mix(in srgb, var(--card) 70%, var(--bottle-2)); color: var(--ink); transform: translateY(-1px); }
.table-wrap { border: 0; border-radius: var(--r-sm); background: var(--card-alt); }
.su-form { border: 0; border-radius: var(--r-card); background: var(--card); }
.section-alt .su-form { background: var(--card-alt); }
.su-form input[type="email"], .su-form select { border-radius: var(--r-sm); border-color: transparent; background: var(--input); }
.su-form input[type="email"]:focus, .su-form select:focus { border-color: var(--bottle); }
.chip span { border-color: transparent; }
.nm-map.is-live { border: 0; border-radius: var(--r-card); background: var(--card-alt); }
.nm-map:not(.is-live) svg { border: 0; border-radius: var(--r-card); }
.nm-bar { border-bottom: 0; background: var(--card); }
.nm-panel { border-left: 0; }
.nm-bar button { border-color: transparent; background: var(--card-alt); }
.nm-reset { border-radius: 10px; }
.leaflet-bar { border-radius: 12px !important; overflow: hidden; }
.sale .domains code { border-radius: var(--r-sm); }
.legend i, .nm-city i { border-radius: 5px; }
@media (max-width: 860px) {
  .nav a { border-radius: 0; }
  .nm-panel { border-top: 0; }
}


/* ===== section tones: two light (l1, l2) and two dark (d1, d2), each with matching cards.
   Values come from tokens.css (--sec-*), so they follow the light/dark scheme. ===== */
:is(.tone-l1, .tone-l2, .tone-d1, .tone-d2) { background: var(--sec-bg); color: var(--sec-fg); }
:is(.tone-l1, .tone-l2, .tone-d1, .tone-d2) .muted { color: var(--sec-muted); }
:is(.tone-l1, .tone-l2, .tone-d1, .tone-d2) .eyebrow { color: var(--sec-eyebrow); }
:is(.tone-l1, .tone-l2, .tone-d1, .tone-d2) a:not(.btn) { color: var(--sec-link); }
:is(.tone-l1, .tone-l2, .tone-d1, .tone-d2) :is(.card, .links a, .su-form, .table-wrap) { background: var(--sec-card); color: var(--sec-card-fg); }
:is(.tone-l1, .tone-l2, .tone-d1, .tone-d2) .links a:hover { background: color-mix(in srgb, var(--sec-card) 80%, var(--sec-card-link)); color: var(--sec-card-fg); }
:is(.tone-l1, .tone-l2, .tone-d1, .tone-d2) :is(.card .muted, .links small, .su-form .muted) { color: var(--sec-card-muted); }
:is(.tone-l1, .tone-l2, .tone-d1, .tone-d2) :is(.card .icon, .links a::after) { color: var(--sec-card-accent); }
:is(.tone-l1, .tone-l2, .tone-d1, .tone-d2) :is(.card .tag, .card a:not(.btn), .su-form a) { color: var(--sec-card-link); }
:is(.tone-l1, .tone-l2, .tone-d1, .tone-d2) .ticks li::before { border-color: var(--sec-link); }
:is(.tone-l1, .tone-l2, .tone-d1, .tone-d2) .timeline time { color: var(--sec-link); }
:is(.tone-l1, .tone-l2, .tone-d1, .tone-d2) .timeline li.future time { color: var(--sec-eyebrow); }
:is(.tone-l1, .tone-l2, .tone-d1, .tone-d2) .timeline li::before { background: var(--sec-bg); border-color: var(--sec-link); }
:is(.tone-l1, .tone-l2, .tone-d1, .tone-d2) .timeline li.future::before { border-color: var(--sec-eyebrow); }
:is(.tone-l1, .tone-l2, .tone-d1, .tone-d2) :is(.timeline::before, .timeline li) { border-color: var(--sec-line); }
.tone-l1 .timeline::before, .tone-l2 .timeline::before { background: var(--sec-line); }
:is(.tone-l1, .tone-l2, .tone-d1, .tone-d2) .prices :is(th, td) { border-color: color-mix(in srgb, var(--sec-card-fg) 12%, transparent); }
:is(.tone-l1, .tone-l2, .tone-d1, .tone-d2) .prices thead th { background: color-mix(in srgb, var(--sec-card-fg) 6%, var(--sec-card)); color: var(--sec-card-muted); }
:is(.tone-l1, .tone-l2, .tone-d1, .tone-d2) .prices tbody th { color: var(--sec-card-link); }
:is(.tone-l1, .tone-l2, .tone-d1, .tone-d2) .su-form :is(input[type="email"], select, .chip span) { background: var(--input); color: var(--ink); }
:is(.tone-d1, .tone-d2) .btn-ghost:hover { color: var(--sec-link); }

/* theme toggle */
.theme-btn { display: inline-flex; align-items: center; justify-content: center; width: 2.1rem; height: 2.1rem; margin-left: .4rem; border: 1.5px solid var(--ink); border-radius: 999px; background: none; color: var(--ink); cursor: pointer; padding: 0; }
.theme-btn svg { width: 1.05rem; height: 1.05rem; }
.theme-btn .i-sun { display: none; }
html[data-theme="dark"] .theme-btn .i-sun { display: block; }
html[data-theme="dark"] .theme-btn .i-moon { display: none; }
html[data-theme="dark"] .brand svg rect:first-child { fill: var(--md-sys-color-surface-container-highest); }
html[data-theme="dark"] .nm-map:not(.is-photo) .leaflet-tile-pane { filter: brightness(.82) contrast(1.05); }
html[data-theme="dark"] .nm-bar button:not([aria-pressed="true"]) { color: var(--ink); }
.theme-btn[hidden] { display: none; }
.brand svg { flex: none; }
@media (max-width: 480px) {
  .site-header .wrap { gap: .5rem; }
  .brand { font-size: .92rem; gap: .4rem; }
  .brand svg { width: 1.5rem; height: 1.5rem; }
  .menu-btn { padding: .35rem .6rem; font-size: .9rem; }
  .lang { margin-left: .3rem; }
  .lang a, .lang span { padding: .3rem .5rem; }
  .theme-btn { margin-left: .3rem; width: 1.95rem; height: 1.95rem; }
}
@media (max-width: 340px) { .brand span { display: none; } }

/* mobile header: hamburger on the far right, compact language switch */
.menu-btn svg { width: 1.35rem; height: 1.35rem; display: block; }
@media (max-width: 860px) {
  .nav { gap: .4rem; }
  .menu-btn { order: 3; width: 2.4rem; height: 2.4rem; padding: 0; justify-content: center; align-items: center; margin-left: .1rem; }
  .lang { order: 1; margin-left: 0; font-size: .7rem; border-width: 1.25px; }
  .lang a, .lang span { padding: .22rem .5rem; }
  .theme-btn { order: 2; margin-left: 0; }
}
@media (max-width: 480px) {
  .menu-btn { width: 2.2rem; height: 2.2rem; padding: 0; }
  .lang a, .lang span { padding: .2rem .42rem; }
  .theme-btn { margin-left: 0; }
}
@media (max-width: 860px) {
  .nav .lang a { font-size: inherit; padding: .22rem .5rem; border-bottom: 0; border-radius: 0; }
}
@media (max-width: 480px) { .nav .lang a { padding: .2rem .42rem; } }

/* header controls share one height: language switch, theme toggle, menu */
:root { --hdr-ctl: 2.2rem; }
.lang { height: var(--hdr-ctl); align-items: stretch; box-sizing: border-box; }
.lang a, .lang span, .nav .lang a { display: inline-flex; align-items: center; padding-top: 0; padding-bottom: 0; }
.theme-btn, .menu-btn { width: var(--hdr-ctl); height: var(--hdr-ctl); box-sizing: border-box; }
@media (max-width: 480px) { :root { --hdr-ctl: 2.1rem; } }

/* video (click to play) */
.video { margin: 2rem 0 0; }
.video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-card); overflow: hidden; background: var(--nm-dark); }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-play { all: unset; box-sizing: border-box; position: absolute; inset: 0; cursor: pointer; display: grid; place-items: center; color: var(--nm-on-dark); background: radial-gradient(120% 90% at 50% 30%, var(--nm-dark-2), var(--nm-dark)); }
.video-play:focus-visible { outline: 3px solid var(--brick-2); outline-offset: -3px; }
.video-poster { position: absolute; left: 0; right: 0; bottom: 0; display: block; }
.video-poster .poster-sky { width: 100%; height: auto; display: block; opacity: .85; }
.video-text { position: absolute; left: clamp(1rem, 4vw, 2.25rem); top: clamp(1rem, 4vw, 2rem); right: 1rem; display: grid; gap: .3rem; }
.video-text strong { font-size: clamp(1.1rem, .9rem + 1.6vw, 2rem); font-stretch: 80%; font-weight: 800; text-transform: uppercase; line-height: 1.05; max-width: 22ch; }
.video-text span { color: var(--nm-on-dark-2); font-size: .9rem; }
.video-btn { width: clamp(3.5rem, 8vw, 5rem); aspect-ratio: 1; border-radius: 999px; display: grid; place-items: center; background: var(--brick); color: var(--md-sys-color-on-tertiary); box-shadow: 0 6px 24px rgba(0,0,0,.35); transition: transform .15s ease, background .15s ease; }
.video-play:hover .video-btn { transform: scale(1.06); background: var(--brick-2); }
.video-note { position: absolute; left: 0; right: 0; bottom: .6rem; text-align: center; font-size: .72rem; color: var(--nm-on-dark-3); padding: 0 1rem; }
.video figcaption { margin-top: .6rem; }
@media (max-width: 560px) { .video-note { display: none; } }
@media (max-width: 560px) {
  .video-text strong { font-size: 1rem; max-width: 16ch; }
  .video-text span { font-size: .78rem; }
  .video-btn { position: absolute; right: .9rem; top: .9rem; width: 3rem; }
}

/* play icon: fixed size, no global svg rules */
.video-btn svg { width: 46% !important; height: 46% !important; margin: 0 !important; display: block; }
.menu-btn .i-close { display: none !important; }
.menu-btn[aria-expanded="true"] .i-menu { display: none !important; }
.menu-btn[aria-expanded="true"] .i-close { display: block !important; }
