/* ============================================================
   Santino GTC Decor / Design system v4 "Mineral Atelier"
   Reimagined with imagegen direction: denser, warmer, more premium.
   Type: Schibsted Grotesk (display/UI/body) + IBM Plex Mono (data)
         Fraunces / wordmark only (the sole serif)
   One accent: mineral champagne. Two roles only: labels + interactive states.
   Spacing tokens: 8 12 16 24 32 48 56 80 104
   Hard law: text never sits on imagery. Plates and hairline frames only.
   ============================================================ */

:root {
  /* grounds */
  --paper: #F7F2EA;
  --panel: #ECE4D8;
  /* text */
  --ink: #141511;
  --muted: #5B574D;
  /* hairlines (never text) */
  --line: #DCD2C2;
  --line-strong: #BCAE98;
  /* dark contexts only */
  --night: #0F100E;
  --night-panel: #191A16;
  --night-line: #303027;
  --night-text: #F6F0E6;
  --night-muted: #BFB5A5;
  /* accent */
  --accent: #826A43;
  --accent-night: #D8BA78;

  /* spacing tokens */
  --sp-1: 8px;
  --sp-2: 12px;
  --sp-3: 16px;
  --sp-4: 24px;
  --sp-5: 32px;
  --sp-6: 48px;
  --sp-7: 56px;
  --sp-8: 80px;
  --sp-9: 104px;
  --section: var(--sp-7);
  --outer: clamp(18px, 4vw, 64px);

  /* type */
  --sans: "Schibsted Grotesk", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --serif: "Fraunces", Georgia, serif; /* wordmark only */

  --fs-display: clamp(2.75rem, 5.6vw, 6rem);
  --fs-h1: clamp(2.25rem, 4.4vw, 4rem);
  --fs-h2: clamp(1.625rem, 3vw, 2.5rem);
  --fs-h3: 1.125rem;
  --fs-lead: clamp(1.25rem, 1.9vw, 1.5rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.875rem;
  --fs-mono: 0.8125rem;
  --fs-label: 0.75rem;
}

@media (min-width: 1000px) {
  :root { --section: var(--sp-8); }
}

@media (max-width: 1320px) and (min-width: 901px) {
  .site-nav [data-extra-nav] { display: none; }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  background-image:
    linear-gradient(90deg, rgba(20, 21, 17, 0.025) 1px, transparent 1px),
    linear-gradient(180deg, rgba(20, 21, 17, 0.018) 1px, transparent 1px);
  background-size: calc((100vw - (var(--outer) * 2)) / 12) 100%, 100% 80px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body[data-tone="dark"] {
  background: var(--night);
  background-image:
    linear-gradient(90deg, rgba(246, 240, 230, 0.025) 1px, transparent 1px),
    linear-gradient(180deg, rgba(246, 240, 230, 0.018) 1px, transparent 1px);
}

body.texture-open { overflow: hidden; }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }

::selection { background: var(--accent); color: var(--paper); }

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

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

.display {
  margin: 0;
  font-family: var(--sans);
  font-weight: 700;
  font-size: var(--fs-display);
  line-height: 1.04;
  letter-spacing: -0.02em;
  text-wrap: balance;
  max-width: 14ch;
}

.display.medium { font-size: var(--fs-h1); line-height: 1.05; }
.display.small { font-size: var(--fs-h2); line-height: 1.10; letter-spacing: -0.015em; max-width: 24ch; }

h1, h2, h3 { text-wrap: balance; }

.lead {
  margin: 0;
  font-weight: 400;
  font-size: var(--fs-lead);
  line-height: 1.40;
  max-width: 40ch;
}

.measure {
  margin: 0;
  max-width: 58ch;
  color: var(--muted);
}

.night-scope .measure,
.section.night .measure { color: var(--night-muted); }

.fine { margin: 0; color: var(--muted); font-size: var(--fs-small); line-height: 1.5; }
.night-scope .fine,
.section.night .fine { color: var(--night-muted); }

.section-label {
  margin: 0 0 var(--sp-3);
  color: var(--accent);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section.night .section-label,
.night-scope .section-label { color: var(--accent-night); }

.mono-data {
  font-family: var(--mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.02em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.night-scope .mono-data,
.section.night .mono-data { color: var(--night-muted); }

/* ------------------------------------------------------------
   Header
   ------------------------------------------------------------ */

.skip-link {
  position: fixed;
  top: var(--sp-2);
  left: var(--sp-2);
  z-index: 1000;
  padding: var(--sp-2) var(--sp-3);
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-200%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--sp-4);
  min-height: 70px;
  padding: var(--sp-2) clamp(22px, 2.4vw, 44px);
  background: rgba(17, 16, 13, 0.96);
  color: var(--night-text);
  border-bottom: 1px solid rgba(246, 240, 230, 0.14);
  backdrop-filter: blur(18px);
}

body[data-tone="dark"] .site-header {
  background: rgba(17, 16, 13, 0.96);
  color: var(--night-text);
  border-bottom-color: rgba(246, 240, 230, 0.14);
}

.wordmark { display: inline-grid; width: max-content; line-height: 1.05; }
.wordmark span {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(1.2rem, 1.7vw, 1.55rem);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.wordmark small {
  font-size: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--night-muted);
}
body[data-tone="dark"] .wordmark small { color: var(--night-muted); }

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(15px, 1.8vw, 34px);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-nav a,
.text-button,
.tray-link {
  position: relative;
  border: 0;
  background: transparent;
  padding: var(--sp-1) 0;
  cursor: pointer;
  color: var(--night-text);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.language-switch {
  display: inline-flex;
  align-items: center;
}

.language-option {
  border: 0;
  background: transparent;
  color: var(--night-muted);
  cursor: pointer;
  min-width: 34px;
  min-height: 28px;
  padding: 0 var(--sp-1);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
}

.language-option:hover,
.language-option:focus-visible {
  color: var(--night-text);
}

.language-option.is-active { display: none; }

.site-nav a::after,
.text-button::after,
.tray-link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--accent-night);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 240ms ease;
}
body[data-tone="dark"] .site-nav a::after,
body[data-tone="dark"] .text-button::after,
body[data-tone="dark"] .tray-link::after { background: var(--accent-night); }

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.text-button:hover::after,
.text-button:focus-visible::after,
.tray-link:hover::after,
.tray-link:focus-visible::after,
.site-nav a.is-active::after { transform: scaleX(1); }

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--sp-3);
}

.header-actions::before {
  content: "";
  width: 1px;
  height: 22px;
  background: rgba(246, 240, 230, 0.26);
}

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

.page { min-height: 100vh; }

.section { padding: var(--section) var(--outer); border-bottom: 1px solid rgba(188, 174, 152, 0.36); }
.section.compact { padding-block: var(--sp-8); }
.section.flush-top { padding-top: 0; }
.section.night { background: var(--night); color: var(--night-text); }
.section.panel {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.2), rgba(255,255,255,0)),
    var(--panel);
}

.collection-page,
.spaces-page,
.pros-page,
.about-page,
.contact-page,
.product-page {
  background:
    radial-gradient(circle at 82% 4%, rgba(216, 186, 120, 0.08), transparent 30%),
    linear-gradient(180deg, #151612, #0F100E 42%, #11120F);
  color: var(--night-text);
}

.collection-page .section,
.spaces-page .section,
.pros-page .section,
.about-page .section,
.contact-page .section,
.product-page .section {
  border-bottom-color: var(--night-line);
}

.collection-page .section.panel,
.spaces-page .section.panel,
.pros-page .section.panel,
.about-page .section.panel,
.contact-page .section.panel,
.product-page .section.panel {
  background:
    radial-gradient(circle at 18% 10%, rgba(216, 186, 120, 0.1), transparent 28%),
    #171814;
  color: var(--night-text);
}

.collection-page .measure,
.spaces-page .measure,
.pros-page .measure,
.about-page .measure,
.contact-page .measure,
.product-page .measure,
.collection-page .fine,
.spaces-page .fine,
.pros-page .fine,
.about-page .fine,
.contact-page .fine,
.product-page .fine {
  color: var(--night-muted);
}

.collection-page .section-label,
.spaces-page .section-label,
.pros-page .section-label,
.about-page .section-label,
.contact-page .section-label,
.product-page .section-label {
  color: var(--accent-night);
}

.collection-page .frame,
.spaces-page .frame,
.pros-page .frame,
.about-page .frame,
.contact-page .frame,
.product-page .frame {
  border-color: var(--night-line);
}

.collection-page .frame-caption,
.spaces-page .frame-caption,
.pros-page .frame-caption,
.about-page .frame-caption,
.contact-page .frame-caption,
.product-page .frame-caption {
  background: rgba(15, 16, 14, 0.92);
  color: var(--night-muted);
  border-color: var(--night-line);
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(280px, 4fr);
  gap: var(--sp-7);
  align-items: start;
}

.copy-stack { display: grid; gap: var(--sp-4); }

/* frames / the only card */
.frame {
  position: relative;
  border: 1px solid var(--line-strong);
  background-size: cover;
  background-position: center;
  overflow: hidden;
  transition: border-color 200ms ease;
}
.section.night .frame,
.night-scope .frame { border-color: var(--night-line); }
a.frame:hover,
.frame.is-link:hover { border-color: var(--line-strong); }

.frame > img { width: 100%; height: 100%; object-fit: cover; }

.frame-caption {
  position: absolute;
  left: 0; bottom: 0;
  max-width: calc(100% - var(--sp-4));
  background: rgba(247, 242, 234, 0.94);
  color: var(--muted);
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  padding: var(--sp-1) var(--sp-3);
  font-family: var(--mono);
  font-size: var(--fs-label);
  letter-spacing: 0.02em;
}
.night-scope .frame-caption,
.section.night .frame-caption {
  background: var(--night);
  color: var(--night-muted);
  border-color: var(--night-line);
}

/* ------------------------------------------------------------
   Buttons
   ------------------------------------------------------------ */

.cta-row { display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center; margin-top: var(--sp-2); }

.cta, .cta-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 var(--sp-4);
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: background 200ms ease, border-color 200ms ease, color 200ms ease;
}
.cta:hover, .cta:focus-visible { background: var(--accent); border-color: var(--accent); color: var(--paper); }

.cta-ghost { background: transparent; color: var(--ink); }
.cta-ghost:hover, .cta-ghost:focus-visible { color: var(--accent); border-color: var(--accent); }

.section.night .cta,
.night-scope .cta,
body[data-tone="dark"] .cta {
  background: var(--night-text); border-color: var(--night-text); color: var(--night);
}
.section.night .cta:hover,
.night-scope .cta:hover,
body[data-tone="dark"] .cta:hover {
  background: var(--accent-night); border-color: var(--accent-night); color: var(--night);
}
.section.night .cta-ghost,
.night-scope .cta-ghost,
body[data-tone="dark"] .cta-ghost { background: transparent; border-color: var(--night-text); color: var(--night-text); }
.section.night .cta-ghost:hover,
.night-scope .cta-ghost:hover,
body[data-tone="dark"] .cta-ghost:hover { color: var(--accent-night); border-color: var(--accent-night); }

.quiet-link {
  display: inline-flex;
  border: 0;
  border-bottom: 2px solid var(--accent);
  background: transparent;
  padding: 0 0 4px;
  cursor: pointer;
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.quiet-link:hover { color: var(--accent); }
.section.night .quiet-link,
.night-scope .quiet-link { border-bottom-color: var(--accent-night); }
.section.night .quiet-link:hover,
.night-scope .quiet-link:hover { color: var(--accent-night); }

body[data-tone="dark"] .quiet-link {
  color: var(--night-text);
  border-bottom-color: var(--accent-night);
}

body[data-tone="dark"] .quiet-link:hover,
body[data-tone="dark"] .quiet-link:focus-visible {
  color: var(--accent-night);
}

/* ------------------------------------------------------------
   Rendered mockup homepage / full atelier rebuild
   ------------------------------------------------------------ */

.home-page {
  background: #151511;
  color: var(--night-text);
}

.rendered-hero {
  position: relative;
  min-height: min(760px, calc(100vh - 70px));
  overflow: hidden;
  background: #11110f;
  border-bottom: 1px solid rgba(246, 240, 230, 0.16);
}

.rendered-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 10, 8, 0.55), rgba(10, 10, 8, 0.12) 44%, rgba(10, 10, 8, 0.36)),
    linear-gradient(0deg, rgba(10, 10, 8, 0.42), transparent 48%);
  pointer-events: none;
}

.rendered-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 220ms ease, transform 700ms ease;
}

.rendered-copy-panel {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: start;
  justify-items: start;
  width: min(560px, calc(100vw - 40px));
  min-height: min(760px, calc(100vh - 70px));
  padding: clamp(54px, 10vh, 92px) var(--outer) clamp(38px, 5vw, 70px);
}

.rendered-copy-panel p {
  margin: 0 0 var(--sp-4);
  color: var(--accent-night);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.rendered-copy-panel h1 {
  margin: 0;
  max-width: 11.5ch;
  color: #F2EFE8;
  font-size: clamp(2.8rem, 4.85vw, 5.1rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.035em;
}

.rendered-copy-panel strong {
  display: block;
  margin-top: var(--sp-4);
  font-family: var(--serif);
  color: #F0E8DA;
  font-size: clamp(1.4rem, 2vw, 2rem);
  font-weight: 500;
}

.rendered-copy-panel .hero-rule {
  display: block;
  width: 72px;
  height: 3px;
  margin: var(--sp-2) 0 var(--sp-4);
  background: var(--accent-night);
}

.rendered-copy-panel small {
  display: block;
  margin: 0 0 var(--sp-3);
  color: rgba(246, 240, 230, 0.78);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-materials {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  width: min(430px, 100%);
  margin: 0 0 var(--sp-5);
}

.hero-material {
  display: grid;
  gap: 7px;
  min-width: 0;
  color: var(--night-text);
}

.hero-material-thumb {
  display: block;
  height: 50px;
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(246, 240, 230, 0.18);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.28);
}

.hero-material span:last-child {
  overflow: hidden;
  color: rgba(246, 240, 230, 0.74);
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.hero-material:hover .hero-material-thumb,
.hero-material:focus-visible .hero-material-thumb {
  border-color: var(--accent-night);
}

.hero-material:hover span:last-child,
.hero-material:focus-visible span:last-child {
  color: var(--accent-night);
}

.rendered-copy-panel .hero-cta {
  color: var(--night-text);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.rendered-copy-panel .hero-cta:hover { color: var(--accent-night); }

.rendered-slider {
  position: absolute;
  z-index: 2;
  right: var(--outer);
  bottom: var(--sp-6);
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  color: var(--night-text);
  font-family: var(--mono);
  font-size: 0.75rem;
}

.rendered-slider button {
  border: 0;
  background: transparent;
  color: var(--night-muted);
  cursor: pointer;
}

.rendered-slider button:hover { color: var(--accent-night); }

.rendered-slider .hero-index {
  border-bottom: 2px solid transparent;
  padding: 0 0 5px;
  color: var(--night-muted);
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
}

.rendered-slider .hero-index.is-active {
  color: var(--accent-night);
  border-bottom-color: var(--accent-night);
}

.rendered-slider .hero-arrow {
  padding: 2px 3px;
  font-size: 1.4rem;
  line-height: 1;
}

.rendered-surface-strip {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: var(--sp-4);
  padding: var(--sp-3) var(--outer);
  background: #1C1C18;
  border-bottom: 1px solid rgba(246, 240, 230, 0.14);
}

.strip-intro {
  display: grid;
  align-content: center;
  gap: 3px;
  min-height: 112px;
  color: var(--night-text);
}

.strip-intro span {
  color: var(--accent-night);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.strip-intro strong {
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.strip-intro em {
  color: var(--night-muted);
  font-style: normal;
  font-size: 1.2rem;
}

.strip-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(112px, 1fr);
  gap: var(--sp-2);
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.strip-track::-webkit-scrollbar { display: none; }

.strip-tile {
  position: relative;
  min-height: 112px;
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(246, 240, 230, 0.08);
  overflow: hidden;
}

.strip-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.56), transparent 58%);
}

.strip-tile span {
  position: absolute;
  z-index: 1;
  left: var(--sp-2);
  bottom: var(--sp-2);
  color: var(--night-text);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.strip-tile:hover { border-color: var(--accent-night); }

.rendered-spec-ribbon {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  background:
    linear-gradient(180deg, rgba(246, 240, 230, 0.05), transparent),
    #151612;
  color: var(--night-text);
  border-bottom: 1px solid rgba(246, 240, 230, 0.14);
}

.ribbon-item {
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: var(--sp-3);
  min-height: 72px;
  padding: var(--sp-2) var(--sp-4);
  border-right: 1px solid rgba(246, 240, 230, 0.14);
}

.ribbon-item:last-child { border-right: 0; }

.ribbon-icon {
  color: var(--accent-night);
  font-family: var(--mono);
  font-size: clamp(0.86rem, 1.2vw, 1.15rem);
  font-weight: 500;
  line-height: 1;
}

.ribbon-item strong,
.ribbon-item em {
  display: block;
  font-style: normal;
}

.ribbon-item strong {
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ribbon-item em {
  margin-top: 2px;
  color: var(--night-muted);
  font-size: 0.78rem;
}

.rendered-material-story {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  gap: var(--sp-7);
  align-items: stretch;
  padding: var(--sp-8) var(--outer);
  background:
    radial-gradient(circle at 12% 6%, rgba(216, 186, 120, 0.08), transparent 30%),
    #171814;
  color: var(--night-text);
  border-bottom: 1px solid rgba(246, 240, 230, 0.12);
}

.material-story-media {
  margin: 0;
  min-height: clamp(360px, 40vw, 620px);
  overflow: hidden;
}

.material-story-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.material-story-copy {
  display: grid;
  align-content: center;
  gap: var(--sp-4);
}

.material-story-copy h2 {
  margin: 0;
  font-size: clamp(2rem, 3.6vw, 4rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  max-width: 11ch;
}

.material-story-copy > p:not(.section-label) {
  margin: 0;
  max-width: 42ch;
  color: var(--night-muted);
  font-size: var(--fs-lead);
  line-height: 1.4;
}

.material-story-copy dl {
  display: grid;
  margin: var(--sp-3) 0 0;
  border-top: 1px solid rgba(246, 240, 230, 0.14);
}

.material-story-copy dl div {
  display: grid;
  grid-template-columns: minmax(120px, 0.42fr) 1fr;
  gap: var(--sp-4);
  padding: var(--sp-3) 0;
  border-bottom: 1px solid rgba(246, 240, 230, 0.12);
}

.material-story-copy dt {
  color: var(--night-text);
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.material-story-copy dd {
  margin: 0;
  color: var(--night-muted);
  font-size: 0.95rem;
}

.material-story-copy > a {
  justify-self: start;
  margin-top: var(--sp-2);
  border-bottom: 1px solid var(--accent-night);
  padding-bottom: 5px;
  color: var(--night-text);
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.material-story-copy > a:hover,
.material-story-copy > a:focus-visible {
  color: var(--accent-night);
}

.scene-tile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  align-items: center;
  max-width: 100%;
}

.scene-tile-links > span {
  flex-basis: 100%;
  color: var(--accent-night);
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.scene-tile-links a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  background: rgba(17, 18, 14, 0.54);
  border: 1px solid rgba(246, 240, 230, 0.14);
  color: var(--night-text);
  backdrop-filter: blur(10px);
}

.scene-tile-links a:hover,
.scene-tile-links a:focus-visible {
  border-color: var(--accent-night);
  color: var(--accent-night);
}

.scene-tile-links em {
  overflow: hidden;
  font-style: normal;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.1;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.rendered-registers {
  padding: var(--sp-8) var(--outer);
  background:
    radial-gradient(circle at 85% 8%, rgba(216, 186, 120, 0.08), transparent 28%),
    #12130F;
  color: var(--night-text);
  border-bottom: 1px solid rgba(246, 240, 230, 0.12);
}

.rendered-registers > p {
  margin: 0 0 var(--sp-3);
  color: var(--accent-night);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.rendered-registers > h2 {
  margin: 0 0 var(--sp-6);
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.rendered-registers .register-strip {
  margin-top: 0;
}

.rendered-registers .section-label {
  color: var(--accent-night);
}

.rendered-registers .lead {
  color: var(--night-text);
}

.rendered-registers .frame-caption {
  background: transparent;
  color: var(--night-muted);
  border-color: transparent;
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.7);
}

/* ------------------------------------------------------------
   01 Hero / split plate
   ------------------------------------------------------------ */

.hero-split {
  display: grid;
  grid-template-columns: minmax(390px, 4.8fr) 7.2fr;
  min-height: calc(88vh - 74px);
  border-bottom: 1px solid var(--night-line);
  background: var(--night);
  color: var(--night-text);
}

.hero-plate {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: var(--sp-5);
  padding: var(--sp-7) var(--outer);
  background:
    linear-gradient(145deg, rgba(216, 186, 120, 0.1), transparent 36%),
    var(--night);
}
.hero-plate .section-label { color: var(--accent-night); }
.hero-plate .measure { margin-top: var(--sp-3); color: var(--night-muted); }
.hero-plate .cta { background: var(--night-text); border-color: var(--night-text); color: var(--night); }
.hero-plate .cta:hover,
.hero-plate .cta:focus-visible { background: var(--accent-night); border-color: var(--accent-night); }
.hero-plate .quiet-link { color: var(--night-text); border-bottom-color: var(--accent-night); }
.hero-plate .quiet-link:hover { color: var(--accent-night); }

.hero-media { position: relative; border-left: 1px solid var(--night-line); min-height: 56vh; }
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.page-lifestyle-hero {
  min-height: min(650px, calc(82vh - 70px));
}

.page-lifestyle-hero .hero-plate {
  justify-content: flex-end;
  padding-block: clamp(72px, 12vh, 118px) var(--sp-7);
}

.page-lifestyle-hero .hero-media {
  min-height: min(650px, 72vh);
  background: #11110f;
}

.page-lifestyle-hero .hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 8, 6, 0.12), transparent 42%, rgba(8, 8, 6, 0.3)),
    linear-gradient(0deg, rgba(8, 8, 6, 0.36), transparent 54%);
  pointer-events: none;
}

.tile-card {
  background-size: cover;
  background-position: center;
}

.hero-rail {
  display: grid;
  width: 100%;
  border-top: 1px solid var(--night-line);
  border-bottom: 1px solid var(--night-line);
  margin-top: var(--sp-2);
}
.hero-rail-item {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: var(--sp-3);
  align-items: center;
  min-height: 78px;
  border-top: 1px solid var(--night-line);
  color: var(--night-text);
}
.hero-rail-item:first-child { border-top: 0; }
.hero-rail-thumb {
  width: 56px;
  height: 56px;
  border: 1px solid var(--night-line);
  background-size: cover;
  background-position: center;
}
.hero-rail-name {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.hero-rail-name strong {
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.hero-rail-name span,
.hero-rail-meta {
  font-family: var(--mono);
  color: var(--night-muted);
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.hero-rail-item:hover .hero-rail-name strong,
.hero-rail-item:focus-visible .hero-rail-name strong { color: var(--accent-night); }

/* ------------------------------------------------------------
   02 Brojke / consequence fact bar
   ------------------------------------------------------------ */

.fact-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--night-line);
  background:
    linear-gradient(180deg, rgba(246, 240, 230, 0.05), transparent),
    #151612;
}
.fact-bar > div { padding: var(--sp-4) var(--outer); border-right: 1px solid var(--night-line); }
.fact-bar > div:last-child { border-right: 0; }
.fact-bar strong {
  display: block;
  font-weight: 700;
  font-size: clamp(1.75rem, 2.6vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-1);
}
.fact-bar span { display: block; font-size: var(--fs-small); line-height: 1.5; color: var(--night-muted); max-width: 30ch; }

/* ------------------------------------------------------------
   03 Stav / statement
   ------------------------------------------------------------ */

.statement {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(220px, 4fr);
  gap: var(--sp-6);
  align-items: center;
}
.statement .lead { max-width: 42ch; }
.statement .lead strong { font-weight: 700; }
.statement .frame { aspect-ratio: 3 / 4; }

/* ------------------------------------------------------------
   04 Kolekcija / living index (night)
   ------------------------------------------------------------ */

.living-index {
  background: var(--night);
  color: var(--night-text);
  display: grid;
  grid-template-columns: minmax(320px, 5fr) 7fr;
  gap: var(--sp-6);
  padding: var(--sp-8) var(--outer);
  align-items: stretch;
}
.living-preview { min-height: 420px; }
.living-preview .living-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transition: opacity 300ms ease; }

.index-head { margin-bottom: var(--sp-5); }
.index-list { display: grid; }

.index-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: baseline;
  gap: var(--sp-4);
  padding: var(--sp-3) 0;
  border-top: 1px solid var(--night-line);
  color: inherit;
  background: transparent;
  cursor: pointer;
  text-align: left;
}
.index-row:last-child { border-bottom: 1px solid var(--night-line); }
.index-row .number { font-family: var(--mono); font-size: var(--fs-mono); color: var(--night-muted); font-variant-numeric: tabular-nums; }
.index-row strong {
  font-weight: 700;
  font-size: clamp(1.375rem, 2.4vw, 2.125rem);
  line-height: 1.14;
  letter-spacing: -0.015em;
  transition: color 180ms ease;
}
.index-row:hover strong,
.index-row:focus-visible strong { color: var(--accent-night); }
.index-row .tag { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--night-muted); }

/* ------------------------------------------------------------
   05 Sustav / format logic + CSS raster figure
   ------------------------------------------------------------ */

.sustav { display: grid; grid-template-columns: minmax(0, 5fr) 7fr; gap: var(--sp-6); align-items: start; }
.sustav-copy { display: grid; gap: var(--sp-4); }

.sustav-figure { display: grid; gap: var(--sp-4); }
.raster-pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }

.raster-block { display: grid; gap: var(--sp-2); }
.raster-block .raster-label {
  font-family: var(--mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.02em;
  color: var(--night-muted);
  font-variant-numeric: tabular-nums;
}

.raster {
  position: relative;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--night-line);
  background-color: #171814;
  background-image:
    repeating-linear-gradient(90deg, var(--line-strong) 0 1px, transparent 1px 20%),
    repeating-linear-gradient(0deg, var(--line-strong) 0 1px, transparent 1px 40%);
}
.raster.med {
  background-image:
    repeating-linear-gradient(90deg, var(--line-strong) 0 1px, transparent 1px 20%),
    repeating-linear-gradient(0deg, var(--line-strong) 0 1px, transparent 1px 20%);
}

.figure-caption { font-family: var(--mono); font-size: var(--fs-label); letter-spacing: 0.02em; color: var(--night-muted); }

.joint-table { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: var(--fs-mono); font-variant-numeric: tabular-nums; }
.joint-table th, .joint-table td { text-align: left; padding: var(--sp-2) var(--sp-3) var(--sp-2) 0; border-top: 1px solid var(--night-line); }
.joint-table th { font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--night-muted); }
.joint-table td { color: var(--night-muted); }
.joint-table tr.is-current td, .joint-table tr.is-current th { color: var(--night-text); font-weight: 500; }

/* ------------------------------------------------------------
   06 Registri / four tonal chapters
   ------------------------------------------------------------ */

.register-strip { display: grid; gap: var(--sp-7); margin-top: var(--sp-5); }
.register-chapter {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(280px, 5fr);
  gap: var(--sp-6);
  align-items: end;
}
.register-chapter:nth-child(even) { grid-template-columns: minmax(280px, 5fr) minmax(0, 7fr); }
.register-chapter:nth-child(even) .chapter-media { order: 2; }
.chapter-media { aspect-ratio: 16 / 10; }
.rendered-registers .chapter-media {
  border-color: transparent;
}

.rendered-registers .chapter-media:hover,
.rendered-registers .chapter-media:focus-visible {
  border-color: transparent;
}

.chapter-text { display: grid; gap: var(--sp-3); padding-bottom: var(--sp-2); }
.chapter-links { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-4); margin-top: var(--sp-2); }
.chapter-links a {
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 3px;
  color: var(--muted);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.chapter-links a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.section.panel .chapter-links a:hover { color: var(--accent); border-bottom-color: var(--accent); }
body[data-tone="dark"] .chapter-links a {
  border-bottom-color: var(--night-line);
  color: var(--night-muted);
}
body[data-tone="dark"] .chapter-links a:hover,
body[data-tone="dark"] .chapter-links a:focus-visible {
  border-bottom-color: var(--accent-night);
  color: var(--accent-night);
}
.rendered-registers .chapter-links a {
  border-bottom-color: var(--night-line);
  color: var(--night-muted);
}
.rendered-registers .chapter-links a:hover,
.rendered-registers .chapter-links a:focus-visible {
  border-bottom-color: var(--accent-night);
  color: var(--accent-night);
}

/* ------------------------------------------------------------
   07 Za profesionalce / audience rows
   ------------------------------------------------------------ */

.audience-rows { display: grid; margin-top: var(--sp-5); }
.audience-row {
  display: grid;
  grid-template-columns: minmax(200px, 3fr) minmax(0, 9fr);
  gap: var(--sp-6);
  align-items: baseline;
  padding: var(--sp-4) 0;
  border-top: 1px solid var(--night-line);
}
.audience-row:last-child { border-bottom: 1px solid var(--night-line); }
.audience-row h3 { margin: 0; font-weight: 700; font-size: var(--fs-h3); letter-spacing: -0.005em; }
.audience-row p { margin: 0; color: var(--night-muted); max-width: 60ch; }
.section.night .audience-row { border-color: var(--night-line); }
.section.night .audience-row p { color: var(--night-muted); }

/* pros page / process, deliverables, faq */
.professional-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-5); margin-top: var(--sp-5); }
.professional-item { border-top: 1px solid var(--night-line); padding-top: var(--sp-4); }
.professional-item .step { display: block; font-family: var(--mono); font-size: var(--fs-label); color: var(--accent-night); margin-bottom: var(--sp-2); font-variant-numeric: tabular-nums; }
.professional-item h3 { margin: 0 0 var(--sp-2); font-weight: 700; font-size: var(--fs-h3); }
.professional-item p { margin: 0; color: var(--night-muted); }

.deliverables { display: grid; gap: 0; margin-top: var(--sp-4); max-width: 720px; }
.deliverables li { list-style: none; display: grid; grid-template-columns: 24px 1fr; gap: var(--sp-3); padding: var(--sp-3) 0; border-top: 1px solid var(--night-line); }
.deliverables li::before { content: ","; color: var(--accent-night); }

.faq { display: grid; gap: 0; margin-top: var(--sp-4); max-width: 760px; }
.faq-item { border-top: 1px solid var(--night-line); padding: var(--sp-4) 0; }
.faq-item:last-child { border-bottom: 1px solid var(--night-line); }
.faq-item h3 { margin: 0 0 var(--sp-2); font-weight: 700; font-size: var(--fs-h3); }
.faq-item p { margin: 0; color: var(--night-muted); max-width: 60ch; }

/* ------------------------------------------------------------
   Catalogue (collection page)
   ------------------------------------------------------------ */

.catalogue-tools { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-4); margin-top: var(--sp-5); border-top: 1px solid var(--night-line); border-bottom: 1px solid var(--night-line); padding: var(--sp-3) 0; }
.filter-button { border: 0; border-bottom: 2px solid transparent; background: transparent; padding: 0 0 4px; color: var(--night-muted); cursor: pointer; font-size: var(--fs-label); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.filter-button:hover { color: var(--night-text); }
.filter-button.is-active { border-color: var(--accent-night); color: var(--night-text); }

.catalogue-list { display: grid; gap: var(--sp-6); margin-top: var(--sp-6); }
.catalogue-entry { display: grid; grid-template-columns: 56px minmax(0, 5fr) minmax(280px, 4fr); gap: var(--sp-5); align-items: start; border-top: 1px solid var(--night-line); padding-top: var(--sp-5); }
.catalogue-entry[hidden] { display: none; }
.catalogue-entry .entry-number { font-family: var(--mono); color: var(--night-muted); font-size: var(--fs-mono); padding-top: var(--sp-1); font-variant-numeric: tabular-nums; }
.entry-copy { display: grid; gap: var(--sp-3); }
.entry-copy .display.small { font-size: clamp(1.5rem, 2.4vw, 2.25rem); }
.entry-meta { display: flex; flex-wrap: wrap; gap: var(--sp-1) var(--sp-3); font-family: var(--mono); color: var(--night-muted); font-size: var(--fs-label); letter-spacing: 0.02em; text-transform: uppercase; font-variant-numeric: tabular-nums; }
.entry-image { aspect-ratio: 4 / 3; display: block; }
.night-scope .entry-meta { color: var(--night-muted); }

/* ------------------------------------------------------------
   Product dossier
   ------------------------------------------------------------ */

.product-hero { display: grid; grid-template-columns: minmax(380px, 5fr) 7fr; min-height: 70vh; border-bottom: 1px solid var(--night-line); }
.night-scope .product-hero { border-bottom-color: var(--night-line); }
.product-plate { display: flex; flex-direction: column; justify-content: flex-end; gap: var(--sp-4); padding: var(--sp-7) var(--outer) var(--sp-6); }
.product-media { position: relative; border-left: 1px solid var(--night-line); min-height: 46vh; }
.night-scope .product-media { border-left-color: var(--night-line); }
.product-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.product-number { font-family: var(--mono); font-size: var(--fs-mono); letter-spacing: 0.04em; color: var(--accent); font-variant-numeric: tabular-nums; }
.night-scope .product-number { color: var(--accent-night); }

.product-intro .lead { max-width: 52ch; }

.texture-section { display: grid; grid-template-columns: minmax(0, 6fr) minmax(300px, 3fr); gap: var(--sp-6); align-items: center; padding: 0 var(--outer) var(--section); }
.texture-preview { width: 100%; aspect-ratio: 16 / 10; border: 1px solid var(--night-line); background-size: cover; background-position: center; cursor: pointer; padding: 0; position: relative; }
.night-scope .texture-preview { border-color: var(--night-line); }
.texture-caption { display: grid; gap: var(--sp-4); }

.copy-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(300px, 4fr); gap: var(--sp-6); align-items: start; }
.copy-block { border-top: 1px solid var(--night-line); padding-top: var(--sp-4); }
.section.night .copy-block, .night-scope .copy-block { border-top-color: var(--night-line); }
.copy-block h3 { margin: 0 0 var(--sp-2); font-weight: 700; font-size: var(--fs-h3); letter-spacing: -0.005em; }
.copy-block p { margin: 0; color: var(--night-muted); }
.section.night .copy-block p { color: var(--night-muted); }

.app-tags { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-3); }
.app-tags span {
  border: 1px solid var(--night-line);
  padding: var(--sp-1) var(--sp-2);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--night-muted);
}
.night-scope .app-tags span { border-color: var(--night-line); color: var(--night-muted); }

.spec-table { width: 100%; border-collapse: collapse; }
.spec-table th, .spec-table td { border-top: 1px solid var(--night-line); padding: var(--sp-3) 0; text-align: left; vertical-align: top; }
.section.night .spec-table th, .section.night .spec-table td,
.night-scope .spec-table th, .night-scope .spec-table td { border-top-color: var(--night-line); }
.spec-table th { width: 40%; font-family: var(--mono); color: var(--night-muted); font-size: var(--fs-label); font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; padding-right: var(--sp-3); }
.section.night .spec-table th, .night-scope .spec-table th { color: var(--night-muted); }
.spec-table td { font-size: 0.9375rem; font-variant-numeric: tabular-nums; }

.detail-application-section {
  padding-block: var(--sp-8);
}

.detail-application {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(320px, 5fr);
  gap: var(--sp-7);
  align-items: center;
}

.detail-application-media {
  position: relative;
  min-height: clamp(360px, 40vw, 620px);
  margin: 0;
  overflow: hidden;
  background: #141511;
}

.detail-application-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(8, 8, 6, 0.42), transparent 44%),
    radial-gradient(circle at 18% 12%, rgba(216, 186, 120, 0.1), transparent 28%);
  pointer-events: none;
}

.detail-application-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-application-media figcaption {
  position: absolute;
  left: var(--sp-3);
  bottom: var(--sp-3);
  z-index: 1;
  color: var(--night-muted);
  font-family: var(--mono);
  font-size: var(--fs-label);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.detail-application-copy {
  display: grid;
  gap: var(--sp-4);
}

.detail-application-copy h2 {
  max-width: 12ch;
}

.detail-application-copy article {
  border-top: 1px solid var(--night-line);
  padding-top: var(--sp-4);
}

.detail-application-copy h3 {
  margin: 0 0 var(--sp-2);
  color: var(--night-text);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.detail-application-copy p:not(.section-label) {
  margin: 0;
  color: var(--night-muted);
  max-width: 54ch;
}

.pairing-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-5); margin-top: var(--sp-5); }
.pairing-item { border-top: 1px solid var(--night-line); padding-top: var(--sp-4); display: grid; grid-template-columns: minmax(0, 1fr) 72px; gap: var(--sp-4); align-items: start; }
.section.night .pairing-item, .night-scope .pairing-item { border-top-color: var(--night-line); }
.pairing-thumb { display: block; aspect-ratio: 1 / 1; background-size: cover; background-position: center; border: 1px solid var(--night-line); position: relative; overflow: hidden; }
.pairing-thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,16,14,0), rgba(15,16,14,.18)); opacity: .7; transition: opacity var(--ease); }
.pairing-thumb:hover::after, .pairing-thumb:focus-visible::after { opacity: .25; }
.pairing-copy { min-width: 0; }
.pairing-item h3 { margin: 0 0 var(--sp-2); font-weight: 700; font-size: clamp(1.05rem, 1.3vw, 1.25rem); line-height: 1.2; }
.pairing-item p { margin: 0 0 var(--sp-3); color: var(--night-muted); }
.section.night .pairing-item p, .night-scope .pairing-item p { color: var(--night-muted); }

.next-surface { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 4fr); gap: var(--sp-5); align-items: center; padding: var(--sp-6) var(--outer); border-top: 1px solid var(--night-line); }
.night-scope .next-surface { border-top-color: var(--night-line); }
.next-surface .frame { aspect-ratio: 21 / 9; }
.next-copy { display: grid; gap: var(--sp-2); }

/* ------------------------------------------------------------
   Spaces
   ------------------------------------------------------------ */

.space-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-5); }
.space-item { display: grid; gap: var(--sp-3); align-content: start; }
.space-item .frame { aspect-ratio: 4 / 3; }
.space-item h2 { margin: var(--sp-2) 0 0; font-weight: 700; font-size: var(--fs-h3); letter-spacing: -0.005em; }
.space-item p { margin: 0; color: var(--night-muted); }

/* ------------------------------------------------------------
   Threshold / interior/exterior comparison
   ------------------------------------------------------------ */

.threshold-head { display: grid; grid-template-columns: minmax(0, 6fr) minmax(280px, 4fr); gap: var(--sp-5); align-items: end; padding: var(--section) var(--outer) var(--sp-5); }

.threshold-interactive {
  --split: 50%;
  position: relative;
  min-height: 60vh;
  overflow: hidden;
  cursor: ew-resize;
  border-block: 1px solid var(--night-line);
}
.threshold-layer { position: absolute; inset: 0; background-size: cover; background-position: center; }
.threshold-layer.exterior { clip-path: inset(0 0 0 var(--split)); }
.threshold-line { position: absolute; top: 0; bottom: 0; left: var(--split); width: 2px; background: var(--accent-night); }
.threshold-tag { position: absolute; bottom: 0; background: rgba(15, 16, 14, 0.92); color: var(--night-muted); font-family: var(--mono); font-size: var(--fs-label); padding: var(--sp-1) var(--sp-3); border-top: 1px solid var(--night-line); }
.threshold-tag.interior { left: 0; border-right: 1px solid var(--night-line); }
.threshold-tag.exterior-tag { right: 0; border-left: 1px solid var(--night-line); }

.threshold-stack { display: none; }

/* ------------------------------------------------------------
   Contact
   ------------------------------------------------------------ */

.contact-layout { display: grid; grid-template-columns: minmax(0, 4fr) minmax(320px, 5fr); gap: var(--sp-6); align-items: start; }
.contact-form { display: grid; gap: var(--sp-4); }
.field { display: grid; gap: var(--sp-1); }
.field span, .sample-choice > span { font-size: var(--fs-label); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-night); }
.field input, .field select, .field textarea {
  width: 100%;
  border: 1px solid var(--night-line);
  background: #161713;
  padding: var(--sp-2) var(--sp-3);
  color: var(--night-text);
  outline: none;
  font-size: var(--fs-body);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent-night); }

.sample-choice { display: grid; gap: var(--sp-2); border-top: 1px solid var(--night-line); padding-top: var(--sp-4); }
.selected-samples { display: flex; flex-wrap: wrap; gap: var(--sp-2); min-height: 34px; }
.sample-token { display: inline-flex; align-items: center; gap: var(--sp-1); border: 1px solid var(--night-line); background: #161713; padding: var(--sp-1) var(--sp-2); font-size: var(--fs-small); }
.sample-token button { border: 0; background: transparent; cursor: pointer; font-size: 1rem; line-height: 1; padding: 0 2px; }
.sample-token button:hover { color: var(--accent-night); }
.status-line { min-height: 24px; color: var(--accent-night); font-weight: 500; }

/* ------------------------------------------------------------
   Footer
   ------------------------------------------------------------ */

.site-footer {
  border-top: 1px solid var(--line);
  padding: var(--sp-6) var(--outer) var(--sp-5);
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(2, minmax(140px, 1fr));
  gap: var(--sp-5);
}
body[data-tone="dark"] .site-footer, .night-scope .site-footer { border-top-color: var(--night-line); }
.site-footer .wordmark span { font-size: 1.5rem; }
.footer-signature { margin-top: var(--sp-3); font-family: var(--serif); font-size: 1.125rem; font-weight: 500; }
.footer-col { display: grid; gap: var(--sp-2); align-content: start; }
.footer-col h4 { margin: 0 0 var(--sp-1); font-size: var(--fs-label); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
body[data-tone="dark"] .footer-col h4 { color: var(--night-muted); }
.footer-col a { font-size: 0.9375rem; color: var(--muted); width: max-content; }
body[data-tone="dark"] .footer-col a { color: var(--night-muted); }
.footer-col a:hover { color: var(--accent); }
body[data-tone="dark"] .footer-col a:hover { color: var(--accent-night); }
.footer-fine { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: var(--sp-4); display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--sp-2); }
body[data-tone="dark"] .footer-fine { border-top-color: var(--night-line); }
body[data-tone="dark"] .site-footer .fine,
body[data-tone="dark"] .site-footer .mono-data {
  color: var(--night-muted);
}

/* ------------------------------------------------------------
   Toast + texture room + 404
   ------------------------------------------------------------ */

.toast {
  position: fixed; right: var(--outer); bottom: var(--sp-4); z-index: 120;
  max-width: min(420px, calc(100vw - 40px));
  border-left: 2px solid var(--accent-night);
  background: var(--ink); color: var(--paper);
  padding: var(--sp-3) var(--sp-4);
  opacity: 0; transform: translateY(8px); pointer-events: none;
  transition: opacity 220ms ease, transform 220ms ease;
}
.toast.is-visible { opacity: 1; transform: translateY(0); }

.texture-room { position: fixed; inset: 0; z-index: 200; display: grid; grid-template-rows: auto 1fr; background: var(--night); color: var(--night-text); }
.texture-room[hidden] { display: none; }
.texture-toolbar { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); border-bottom: 1px solid var(--night-line); padding: var(--sp-3) var(--outer); }
.texture-toolbar p { margin: 0; font-family: var(--mono); color: var(--night-muted); font-size: var(--fs-label); letter-spacing: 0.04em; text-transform: uppercase; }
.tool-button { width: 44px; height: 44px; border: 1px solid var(--night-line); background: transparent; color: inherit; cursor: pointer; font-size: 1.2rem; }
.tool-button:hover, .tool-button:focus-visible { border-color: var(--accent-night); color: var(--accent-night); }
.texture-stage { --zoom: 145%; background-size: var(--zoom); background-position: 50% 50%; background-repeat: no-repeat; cursor: grab; }
.texture-stage:active { cursor: grabbing; }

.not-found { min-height: 80vh; display: grid; place-items: center; padding: var(--outer); text-align: center; }

/* ------------------------------------------------------------
   Responsive
   ------------------------------------------------------------ */

@media (max-width: 1050px) {
  .hero-split, .product-hero, .living-index, .two-column, .statement,
  .sustav, .texture-section, .copy-grid, .contact-layout, .threshold-head,
  .next-surface, .audience-row, .catalogue-entry { grid-template-columns: 1fr; }

  .rendered-hero,
  .rendered-copy-panel {
    min-height: 660px;
  }

  .rendered-surface-strip {
    grid-template-columns: 1fr;
  }

  .strip-intro {
    min-height: auto;
    grid-template-columns: auto auto 1fr;
    align-items: center;
    gap: var(--sp-2);
  }

  .rendered-spec-ribbon {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ribbon-item {
    border-bottom: 1px solid var(--line-strong);
  }

  .rendered-material-story {
    grid-template-columns: 1fr;
    gap: var(--sp-5);
  }

  .catalogue-entry .entry-number { padding-top: 0; }

  .hero-media, .product-media { border-left: 0; border-top: 1px solid var(--line); min-height: 46vh; }
  .night-scope .hero-media, .night-scope .product-media { border-top-color: var(--night-line); }

  .living-preview { min-height: 320px; order: 2; }
  .living-index > div:last-child { order: 1; }
  .professional-grid { grid-template-columns: repeat(2, 1fr); }

  .fact-bar { grid-template-columns: repeat(2, 1fr); }
  .fact-bar > div { border-bottom: 1px solid var(--line); }
  .fact-bar > div:nth-child(even) { border-right: 0; }

  .audience-row { gap: var(--sp-2); padding: var(--sp-4) 0; }
}

@media (max-width: 760px) {
  :root {
    --outer: 20px;
    --section: var(--sp-6);
    --fs-display: clamp(2.35rem, 11vw, 3.4rem);
    --fs-h1: clamp(2rem, 9.5vw, 2.95rem);
    --fs-h2: clamp(1.45rem, 7vw, 2.05rem);
  }

  .site-header {
    grid-template-columns: 1fr auto;
    grid-template-areas: "brand actions" "nav nav";
    row-gap: var(--sp-2);
    padding-block: var(--sp-2);
  }
  .wordmark { grid-area: brand; }
  .header-actions { grid-area: actions; }
  .header-actions::before { display: none; }
  .language-option { min-width: 30px; min-height: 26px; font-size: 0.62rem; }
  .tray-link { font-size: 0.62rem; letter-spacing: 0.09em; }
  .site-nav { grid-area: nav; justify-content: flex-start; gap: var(--sp-3); overflow-x: auto; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
  .site-nav::-webkit-scrollbar { display: none; }

  .rendered-hero,
  .rendered-copy-panel {
    min-height: 610px;
  }

  .rendered-hero > img {
    object-position: 50% 50%;
  }

  .rendered-copy-panel {
    padding-block: var(--sp-7) var(--sp-5);
  }

  .rendered-copy-panel h1 {
    max-width: 11.5ch;
    font-size: clamp(2.45rem, 11.8vw, 3.5rem);
    letter-spacing: -0.03em;
  }

  .rendered-slider {
    left: auto;
    right: var(--outer);
    bottom: var(--sp-4);
    gap: var(--sp-3);
  }

  .strip-track {
    grid-auto-columns: 132px;
  }

  .rendered-spec-ribbon,
  .rendered-material-story {
    grid-template-columns: 1fr;
  }

  .ribbon-item {
    min-height: 64px;
    border-right: 0;
  }

  .rendered-material-story {
    padding-block: var(--sp-6);
  }

  .material-story-media {
    min-height: 300px;
  }

  .material-story-copy dl div {
    grid-template-columns: 1fr;
    gap: var(--sp-1);
  }

  .hero-plate { padding-top: var(--sp-6); }

  .register-chapter, .register-chapter:nth-child(even),
  .detail-application,
  .space-grid, .pairing-grid, .professional-grid,
  .raster-pair { grid-template-columns: 1fr; }

  .collection-page .living-index {
    display: none;
  }

  .pairing-item {
    grid-template-columns: minmax(0, 1fr) 58px;
    gap: var(--sp-3);
  }

  .index-row {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: var(--sp-3);
  }

  .index-row .tag {
    grid-column: 2;
    margin-top: 2px;
  }

  .catalogue-list {
    gap: var(--sp-5);
    margin-top: var(--sp-5);
  }

  .entry-image {
    aspect-ratio: 16 / 10;
  }

  .register-chapter:nth-child(even) .chapter-media { order: 0; }

  .site-footer { grid-template-columns: 1fr; gap: var(--sp-5); }

  /* threshold: stacked frames on touch, no drag */
  .threshold-interactive { display: none; }
  .threshold-stack { display: grid; gap: var(--sp-3); padding: 0 var(--outer) var(--section); }
  .threshold-stack .frame { aspect-ratio: 16 / 10; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}
