/* ==========================================================================
   CIVITAS — Design System
   Architectural Furniture · Brand Book Edition 01
   Quiet luxury. Architectural precision. Timelessness.
   ========================================================================== */

/* -------------------------------------------------------------------------
   1. DESIGN TOKENS
   ------------------------------------------------------------------------- */
:root {
  /* Color — Brand Book §04 / §15 */
  --c-ivory: #F2EDE4;
  --c-bone: #E7E0D4;
  --c-sand: #DBCDB8;
  --c-travertine: #C9B69C;
  --c-stone: #9A958D;
  --c-concrete: #6F6C66;
  --c-graphite: #2B2A28;
  --c-olive: #5E6A4E;
  --c-clay: #A5714A;

  --c-bg: var(--c-ivory);
  --c-bg-alt: var(--c-bone);
  --c-ink: var(--c-graphite);
  --c-ink-soft: var(--c-concrete);
  --c-line: rgba(43, 42, 40, 0.14);
  --c-line-soft: rgba(43, 42, 40, 0.08);
  --c-accent: var(--c-clay);

  /* Typography — Brand Book §16 (Google Fonts alternative set) */
  --f-display: "Cormorant Garamond", "Optima Nova", Georgia, serif;
  --f-text: "Inter", "Söhne", -apple-system, BlinkMacSystemFont, sans-serif;

  /* Fluid type scale (web hierarchy, §16) */
  --fs-hero: clamp(2.75rem, 3.2vw + 1.8rem, 5.5rem);
  --fs-section: clamp(1.9rem, 1.6vw + 1.3rem, 2.5rem);
  --fs-sub: clamp(1.125rem, 0.4vw + 1rem, 1.25rem);
  --fs-body: 1.0625rem; /* 17px */
  --fs-small: 0.8125rem; /* 13px */

  /* Spacing rhythm */
  --space-unit: 8px;
  --section-space: clamp(96px, 10vw, 168px);
  --container-max: 1440px;
  --container-pad: clamp(24px, 5vw, 80px);
  --measure: 66ch;

  /* Motion — Brand Book §23: max 400ms, fade + gentle shift only */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 240ms;
  --dur-med: 400ms;
  --dur-slow: 900ms;

  color-scheme: light;
}

/* -------------------------------------------------------------------------
   2. RESET
   ------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
body {
  background: var(--c-bg);
  color: var(--c-ink);
  font-family: var(--f-text);
  font-size: var(--fs-body);
  line-height: 1.7;
  font-weight: 350;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
strong, b { font-family: inherit; font-weight: 600; }

img, picture, video { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 400; line-height: 1.1; letter-spacing: 0.005em; }
table { border-collapse: collapse; width: 100%; }

/* Focus visibility — accessibility */
:focus-visible {
  outline: 1.5px solid var(--c-graphite);
  outline-offset: 4px;
}

/* Selection */
::selection { background: var(--c-graphite); color: var(--c-ivory); }

/* -------------------------------------------------------------------------
   3. TYPE UTILITIES
   ------------------------------------------------------------------------- */
.eyebrow {
  font-family: var(--f-text);
  font-size: var(--fs-small);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--c-ink-soft);
  display: inline-block;
}
.eyebrow--line { display: flex; align-items: center; gap: 16px; }
.eyebrow--line::before { content: ""; width: 32px; height: 1px; background: var(--c-accent); flex: none; }

.lapis { color: var(--c-accent); }
.brand-mark { font-family: var(--f-display); }

.h-hero {
  font-size: var(--fs-hero);
  font-weight: 400;
  letter-spacing: 0.005em;
}
.h-section {
  font-size: var(--fs-section);
  font-weight: 400;
}
.h-sub {
  font-family: var(--f-display);
  font-style: italic;
  font-size: var(--fs-sub);
  font-weight: 400;
  color: var(--c-ink-soft);
}
.lede {
  font-size: clamp(1.05rem, 0.4vw + 0.95rem, 1.3rem);
  line-height: 1.6;
  color: var(--c-ink-soft);
  max-width: var(--measure);
}
.measure { max-width: var(--measure); }
.serif-quote {
  font-family: var(--f-display);
  font-style: italic;
  font-size: clamp(1.4rem, 1.4vw + 1rem, 2.1rem);
  line-height: 1.4;
  font-weight: 400;
}
.text-soft { color: var(--c-ink-soft); }
.center { text-align: center; margin-left: auto; margin-right: auto; }

/* -------------------------------------------------------------------------
   4. LAYOUT
   ------------------------------------------------------------------------- */
.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}
.section { padding-block: var(--section-space); position: relative; }
.section--tight { padding-block: calc(var(--section-space) * 0.55); }
.section--alt { background: var(--c-bg-alt); }
.section--dark { background: var(--c-graphite); color: var(--c-ivory); }
.section--dark .eyebrow, .section--dark .h-sub { color: rgba(242,237,228,0.65); }

.grid { display: grid; gap: 24px; }
.grid-12 { grid-template-columns: repeat(12, 1fr); }
@media (max-width: 900px) {
  .grid-12 { grid-template-columns: repeat(4, 1fr); }
  /* Column layouts are authored with inline grid-column spans sized for the
     12-column desktop grid (span 5, span 6, span 7, 2/span 10…). Those spans
     don't fit the 4-column mobile grid and were overflowing the viewport, so
     every direct child stacks full-width here regardless of its own span. */
  .grid-12 > * { grid-column: 1 / -1 !important; }
}

.rule { height: 1px; background: var(--c-line); border: 0; width: 100%; }
.rule--short { width: 64px; height: 1px; background: var(--c-accent); border: 0; }

/* -------------------------------------------------------------------------
   5. HEADER / NAV
   ------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 28px;
  padding-inline: max(var(--container-pad), calc((100% - var(--container-max)) / 2 + var(--container-pad)));
  transition: background var(--dur-med) var(--ease), padding var(--dur-med) var(--ease), border-color var(--dur-med) var(--ease);
  border-bottom: 1px solid transparent;
  mix-blend-mode: normal;
}
.site-header[data-solid="true"] {
  background: rgba(242, 237, 228, 0.92);
  backdrop-filter: blur(10px);
  padding-block: 18px;
  border-bottom-color: var(--c-line-soft);
}
.site-header .logo img { height: 64px; width: 262px; display: block; }
.site-header.on-dark { color: var(--c-ivory); }
.site-header.on-dark .logo img { filter: invert(1) brightness(1.6); }
.site-header[data-solid="true"].on-dark { color: var(--c-graphite); }
.site-header[data-solid="true"].on-dark .logo img { filter: none; }

.header-brand { display: flex; flex-direction: column; align-items: center; }
.header-tagline {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 1.05rem;
  text-align: center;
  margin-top: 2px;
  max-width: 260px;
  opacity: 0.95;
  max-height: 48px;
  overflow: hidden;
  transition: opacity var(--dur-med) var(--ease), max-height var(--dur-med) var(--ease), margin-top var(--dur-med) var(--ease);
}
.site-header[data-solid="true"] .header-tagline {
  opacity: 0;
  max-height: 0;
  margin-top: 0;
  pointer-events: none;
}

.nav-desktop { display: flex; align-items: center; gap: 34px; }
.nav-desktop a {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 4px;
  display: inline-block;
  transition: transform var(--dur-fast) var(--ease);
}
.nav-desktop a:hover { transform: scale(1.1); }
.nav-desktop a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: 0;
  height: 1px;
  background: currentColor;
  transition: right var(--dur-med) var(--ease);
}
.nav-desktop a:hover::after, .nav-desktop a[aria-current="page"]::after { right: 0; }
.nav-desktop a[aria-current="page"] { opacity: 0.55; }

.nav-item { position: relative; display: flex; align-items: center; }
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  padding-top: 14px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.nav-item:hover .nav-dropdown, .nav-item:focus-within .nav-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.nav-dropdown__inner {
  padding: 4px 0;
}
.nav-dropdown a {
  display: block;
  padding: 6px 0;
  font-family: var(--f-display);
  font-size: 0.95rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
}
.nav-dropdown a:hover { opacity: 0.6; }
.nav-dropdown__soon {
  display: block;
  padding: 6px 0;
  font-family: var(--f-display);
  font-size: 0.95rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: default;
}
.nav-dropdown__soon-block { opacity: 0.45; }
.nav-dropdown__soon-tag {
  display: block;
  font-family: var(--f-text);
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 0.7rem;
  margin-top: 2px;
}

/* Blur + darken the whole page behind the header — whatever is currently in
   view, not just the hero footage — while a nav item/dropdown is open, and
   also when hovering any "go to the collection" link further down the page
   (e.g. the mid-page "Pogledaj kolekciju" button). A hazy, sunglasses-like
   haze so the dropdown/menu itself stays crisp and easy to read on top of it. */
main { transition: filter 400ms ease; }
header:has(.nav-desktop a:hover, .nav-desktop a:focus) ~ main,
body:has(a[href="collections.html"]:hover, a[href="collections.html"]:focus) main {
  filter: blur(26px) brightness(0.5) saturate(0.8);
}

.nav-cta {
  border: 1px solid currentColor;
  padding: 11px 22px;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.nav-cta:hover { background: currentColor; color: var(--c-bg); }

.lang-switch { display: flex; align-items: center; gap: 9px; }
.lang-switch a, .lang-switch span {
  display: block; width: 20px; height: 14px; line-height: 0;
  border: 1px solid rgba(0,0,0,0.12); box-sizing: content-box;
  transition: transform var(--dur-fast) var(--ease), opacity var(--dur-fast) var(--ease);
}
.on-dark .lang-switch a, .on-dark .lang-switch span { border-color: rgba(255,255,255,0.35); }
.lang-switch img { display: block; width: 100%; height: 100%; object-fit: cover; }
.lang-switch a { opacity: 0.55; }
.lang-switch a:hover { opacity: 1; transform: translateY(-1px); }
.lang-switch span[aria-current="true"] { opacity: 1; border-color: var(--c-accent); border-width: 2px; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; width: 28px; z-index: 110; }
.nav-toggle span { display: block; height: 1px; width: 100%; background: currentColor; transition: transform var(--dur-fast) var(--ease), opacity var(--dur-fast) var(--ease); }

@media (max-width: 1440px) {
  .site-header { justify-content: center; }
  .header-brand { align-items: center; }
  .nav-toggle { position: absolute; right: var(--container-pad); top: 50%; transform: translateY(-50%); }
  .nav-desktop { display: none; position: fixed; top: 0; right: 0; bottom: 0; left: 0; background: var(--c-graphite); color: var(--c-ivory);
    flex-direction: column; align-items: flex-start; justify-content: center;
    gap: 28px; padding: 40px var(--container-pad); }
  .nav-desktop.is-open { display: flex; }
  .nav-desktop a { font-size: 1.4rem; letter-spacing: 0.04em; text-transform: none; font-family: var(--f-display); font-style: italic; }
  .nav-toggle { display: flex; }
  .nav-toggle.is-active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav-toggle.is-active span:nth-child(2) { opacity: 0; }
  .nav-toggle.is-active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .nav-cta { border: 0; padding: 0; }
  .lang-switch { margin-top: 12px; gap: 12px; }
  .lang-switch a, .lang-switch span { width: 26px; height: 18px; }
  .nav-dropdown {
    position: static; opacity: 1; pointer-events: auto; transform: none;
    padding-top: 0; margin-top: 10px;
  }
  .nav-dropdown__inner { padding: 0 0 0 22px; }
  .nav-dropdown a { padding: 0; color: var(--c-ivory); font-size: 0.85rem; letter-spacing: 0.2em; text-transform: uppercase; font-family: var(--f-display); font-style: normal; opacity: 0.7; }
  .nav-dropdown__soon { padding: 0; margin-top: 12px; color: var(--c-ivory); font-size: 0.85rem; opacity: 0.7; }
  .nav-dropdown__soon-block { opacity: 0.55; }
  .nav-dropdown__soon-tag { color: var(--c-ivory); }
}

/* -------------------------------------------------------------------------
   6. BUTTONS — rectangular, no radius, no shadow (Brand Book §23)
   ------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 30px;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 1px solid var(--c-graphite);
  color: var(--c-graphite);
  background: transparent;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.btn:hover { background: var(--c-graphite); color: var(--c-ivory); }
.btn--solid { background: var(--c-graphite); color: var(--c-ivory); }
.btn--solid:hover { background: transparent; color: var(--c-graphite); }
.btn--ghost-light { border-color: var(--c-ivory); color: var(--c-ivory); }
.btn--ghost-light:hover { background: var(--c-ivory); color: var(--c-graphite); }
.btn__arrow { transition: transform var(--dur-fast) var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-bottom: 1px solid currentColor;
  padding-bottom: 3px;
}
.text-link:hover .btn__arrow { transform: translateX(4px); }

/* -------------------------------------------------------------------------
   7. IMAGES / MEDIA
   ------------------------------------------------------------------------- */
.media { overflow: hidden; background: var(--c-bg-alt); position: relative; }
.media img, .media video { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.slideshow__img { position: absolute; inset: 0; opacity: 0; transition: opacity 900ms ease; }
.slideshow__img.is-active { opacity: 1; }
.slideshow__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(242,237,228,0.9);
  border: 1px solid rgba(255,255,255,0.5);
  color: var(--c-graphite);
  cursor: pointer;
  font-size: 1.3rem;
  line-height: 1;
  z-index: 2;
  transition: background 220ms ease, opacity 220ms ease;
}
.slideshow__nav:hover { background: var(--c-ivory); }
.slideshow__nav--prev { left: 16px; }
.slideshow__nav--next { right: 16px; }
.media--zoom:hover img { transform: scale(1.045); }

/* CIVITAS LÁPIS collection showreel: the raw footage has a stray sliver at
   its left/right edges, so we zoom in slightly to crop it out, then soften
   the crop line with a blurred fade rather than a hard edge. */
.media--lapis-reel video { width: 112%; max-width: 112%; margin-left: -6%; }
.media--lapis-reel::before,
.media--lapis-reel::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 7%;
  min-width: 36px;
  max-width: 90px;
  pointer-events: none;
  z-index: 1;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.media--lapis-reel::before {
  left: 0;
  -webkit-mask-image: linear-gradient(to right, black, transparent);
  mask-image: linear-gradient(to right, black, transparent);
}
.media--lapis-reel::after {
  right: 0;
  -webkit-mask-image: linear-gradient(to left, black, transparent);
  mask-image: linear-gradient(to left, black, transparent);
}

.ratio-1-1 { aspect-ratio: 1/1; }
.ratio-4-5 { aspect-ratio: 4/5; }
.ratio-3-2 { aspect-ratio: 3/2; }
.ratio-16-9 { aspect-ratio: 16/9; }
.ratio-3-4 { aspect-ratio: 3/4; }
.ratio-2-1 { aspect-ratio: 2/1; }
figcaption, .caption {
  font-size: var(--fs-small);
  letter-spacing: 0.06em;
  color: var(--c-ink-soft);
  margin-top: 14px;
}

/* Reveal-on-scroll */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 900ms var(--ease), transform 900ms var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
[data-reveal="fade"] { transform: none; }
.reveal-down[data-reveal] { transform: translateY(-32px); }
.reveal-down[data-reveal].is-visible { transform: translateY(0); }
[data-reveal-group] > * { transition-delay: calc(var(--i, 0) * 90ms); }

/* Hero text — a more deliberate "materializing" entrance: rises further
   and sharpens from a soft blur, staggered line by line. */
.hero__content[data-reveal-group] > * { transition-delay: calc(var(--i, 0) * 160ms + 200ms); }
.hero__content [data-reveal] {
  transform: translateY(44px);
  filter: blur(8px);
  transition: opacity 1200ms var(--ease), transform 1200ms var(--ease), filter 1200ms var(--ease);
}
.hero__content [data-reveal].is-visible { filter: blur(0); }

/* Image reveal — opacity is the load-bearing mechanism (never leaves an
   image hidden even if the transform/scale enhancement doesn't animate) */
.reveal-wipe { position: relative; overflow: hidden; background: var(--c-bg-alt); }
.reveal-wipe img {
  opacity: 0;
  transform: scale(1.045);
  transition: opacity 900ms var(--ease), transform 1100ms var(--ease);
}
.reveal-wipe.is-visible img { opacity: 1; transform: scale(1); }

/* -------------------------------------------------------------------------
   8. CARDS
   ------------------------------------------------------------------------- */
.card-product { display: block; }
.card-product .media { margin-bottom: 22px; }
.card-product__name { font-family: var(--f-display); font-size: 1.4rem; margin-bottom: 6px; }
.card-product__meta { font-size: var(--fs-small); letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-ink-soft); }

.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 48px 28px; }

/* Product stack — one model per row, hover reveals a detail popup beside the image */
.product-stack { border-top: 1px solid var(--c-line); }
.product-stack__row {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  align-items: center;
  padding: 30px 0;
  border-bottom: 1px solid var(--c-line);
  background: var(--c-bg);
}
.product-stack__row.is-open { z-index: 50; }
.product-stack__media { max-width: 280px; }
/* Show each product photo at its own natural proportions — CLIFF and MONOLITH
   aren't shot in 16:9, so forcing that ratio was cropping the table itself. */
.product-stack__media.ratio-16-9 { aspect-ratio: auto; }
.product-stack__media img { width: 100%; height: auto; object-fit: contain; transition: transform 500ms var(--ease); }
.product-stack__row:hover .product-stack__media img { transform: scale(1.12); }
.product-stack__info { position: static; min-height: 0; }
.product-stack__basic { position: static; opacity: 1; }
/* "Saznaj više" trigger — sits in the row's top-right corner, opens the popup on click. */
.product-stack__more {
  position: absolute;
  top: 30px;
  right: 0;
  z-index: 3;
  background: none;
  border: 0;
  border-bottom: 1px solid currentColor;
  padding: 0 0 3px;
  color: var(--c-ink);
  cursor: pointer;
  font-family: inherit;
}
.product-stack__more:hover { color: var(--c-accent); }
@media (max-width: 780px) { .product-stack__more { position: static; margin-top: 12px; } }
/* Click-to-open popup — a panel that opens over the page beside the thumbnail: the image
   simply grows to its natural (same 16:9 shape, not narrower) larger size, with the
   description stacked below it, without shifting the row's own layout. */
.product-stack__popup {
  position: absolute;
  top: 50%;
  right: 0;
  z-index: 20;
  width: min(440px, 92vw);
  max-height: min(600px, 84vh);
  overflow-y: auto;
  padding: 22px;
  background: var(--c-bg);
  box-shadow: 0 30px 60px rgba(26, 22, 18, 0.20);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%) scale(0.98);
  transition: opacity 320ms ease, transform 320ms ease;
}
.product-stack__popup-media img { width: 100%; height: auto; max-height: 60vh; object-fit: contain; display: block; margin-inline: auto; }
.product-stack__popup-text { margin-top: 16px; }
.product-stack__desc { min-height: 1.6em; }
.product-stack__specs { margin-top: 16px; border-top: 1px solid var(--c-line); }
.product-stack__specs > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 9px 0;
  border-bottom: 1px solid var(--c-line-soft);
}
.product-stack__specs dt { margin: 0; font-size: 0.78rem; color: var(--c-ink-soft); letter-spacing: 0.02em; }
.product-stack__specs dd { margin: 0; font-size: 0.85rem; color: var(--c-ink); text-align: right; }
.product-stack__note { margin-top: 14px; font-size: 0.8rem; color: var(--c-ink-soft); line-height: 1.55; font-style: italic; }
.product-stack__popup-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(242, 237, 228, 0.92);
  border: 0;
  font-size: 1.15rem;
  line-height: 1;
  color: var(--c-graphite);
  cursor: pointer;
}
.product-stack__popup-close:hover { color: var(--c-accent); }
.product-stack__row.is-open .product-stack__popup {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(-50%) scale(1);
}
.product-stack__desc { font-size: 0.92rem; color: var(--c-ink-soft); line-height: 1.6; margin: 10px 0 14px; max-width: 42ch; }
.product-stack__spec { font-size: 0.8rem; color: var(--c-ink-soft); margin-top: 4px; }
@media (max-width: 900px) {
  .product-stack__popup { left: 0; width: 100%; top: calc(100% + 8px); transform: translateY(0) scale(0.98); box-shadow: 0 18px 36px rgba(26, 22, 18, 0.18); }
  .product-stack__row.is-open .product-stack__popup { transform: translateY(0) scale(1); }
}
@media (max-width: 780px) {
  .product-stack__row { grid-template-columns: 140px 1fr; gap: 16px; }
  .product-stack__media { max-width: 140px; }
}
.product-card__dims { font-size: 0.82rem; color: var(--c-ink-soft); margin-top: 8px; }
.product-card__price { font-family: var(--f-display); font-size: 1.15rem; margin-top: 10px; }

/* Set combinations — LÁPIS models grouped and offered at a set price. */
.set-list { border-top: 1px solid var(--c-line); }
.set-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--c-line);
}
.set-row__name { font-family: var(--f-display); font-size: 1.25rem; }
.set-row__models { font-size: 0.85rem; color: var(--c-ink-soft); margin-top: 6px; max-width: 46ch; }
.set-row__price { text-align: right; }
.price-original { text-decoration: line-through; color: var(--c-ink-soft); font-size: 0.85rem; margin-right: 8px; }
.price-set { font-family: var(--f-display); font-size: 1.2rem; color: var(--c-ink); }
.set-row__save { display: block; font-size: 0.72rem; letter-spacing: 0.05em; color: var(--c-accent); text-transform: uppercase; margin-top: 2px; }
.set-row__cta { display: inline-block; margin-top: 12px; }
@media (max-width: 640px) {
  .set-row { grid-template-columns: 1fr; }
  .set-row__price { text-align: left; }
}

.card-value { padding: 40px 0; border-top: 1px solid var(--c-line); }
.card-value__num { font-family: var(--f-display); font-style: italic; font-size: 1rem; color: var(--c-accent); }
.card-value__title { font-size: 1.25rem; margin: 14px 0 10px; }

.card-editorial { display: grid; grid-template-columns: 1fr; gap: 20px; }
.card-editorial time { font-size: var(--fs-small); letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-ink-soft); }
.card-editorial h3 { font-size: 1.5rem; margin-top: 10px; }

/* -------------------------------------------------------------------------
   9. FORMS
   ------------------------------------------------------------------------- */
.field { position: relative; margin-bottom: 32px; }
.field label {
  display: block;
  font-size: var(--fs-small);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-ink-soft);
  margin-bottom: 10px;
}
.field input, .field textarea, .field select {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--c-line);
  padding: 10px 2px;
  font-size: 1rem;
  transition: border-color var(--dur-fast) var(--ease);
}
.field select { appearance: none; -webkit-appearance: none; border-radius: 0; background-image: linear-gradient(45deg, transparent 50%, var(--c-graphite) 50%), linear-gradient(135deg, var(--c-graphite) 50%, transparent 50%); background-position: calc(100% - 6px) center, calc(100% ) center; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 20px; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--c-graphite); outline: none; }
.field textarea { resize: vertical; min-height: 120px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 32px; }
@media (max-width: 640px) { .field-row { grid-template-columns: 1fr; } }
.form-note { font-size: var(--fs-small); color: var(--c-ink-soft); margin-top: -8px; margin-bottom: 32px; }

/* -------------------------------------------------------------------------
   10. FOOTER
   ------------------------------------------------------------------------- */
.site-footer { background: var(--c-graphite); color: var(--c-ivory); padding-block: 100px 36px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 80px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; row-gap: 48px; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer .logo img { height: 64px; width: 262px; filter: invert(1) brightness(1.6); margin-bottom: 6px; }
.footer-tagline { font-family: var(--f-display); font-style: italic; color: rgba(242,237,228,0.7); max-width: 30ch; font-size: 1.2rem; text-align: center; }
.footer-col h4 { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(242,237,228,0.5); margin-bottom: 20px; font-family: var(--f-text); font-weight: 500;}
.footer-col ul li { margin-bottom: 13px; }
.footer-col a { font-size: 0.92rem; color: rgba(242,237,228,0.85); }
.footer-col a:hover { color: var(--c-ivory); }
.footer-col__soon { display: inline-block; font-size: 0.92rem; color: rgba(242,237,228,0.85); cursor: default; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 28px; border-top: 1px solid rgba(242,237,228,0.14); font-size: 0.75rem; color: rgba(242,237,228,0.5); flex-wrap: wrap; }
.footer-bottom .socials { display: flex; gap: 20px; }
.footer-bottom .socials a { display: flex; color: rgba(242,237,228,0.6); transition: color var(--dur-fast) var(--ease); }
.footer-bottom .socials a:hover { color: var(--c-ivory); }
.footer-bottom .socials svg { width: 18px; height: 18px; }
.footer-legal { margin-top: 18px; font-size: 0.68rem; letter-spacing: 0.02em; color: rgba(242,237,228,0.35); text-align: center; }

/* -------------------------------------------------------------------------
   11. MISC COMPONENTS
   ------------------------------------------------------------------------- */
.marquee-strip {
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
  padding-block: 28px;
  overflow: hidden;
  white-space: nowrap;
}
.marquee-strip__track { display: inline-flex; gap: 56px; animation: marquee 38s linear infinite; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee-strip__track span { font-family: var(--f-display); font-style: italic; font-size: 1.15rem; color: var(--c-ink-soft); }

.stat { text-align: left; }
.stat__num { font-family: var(--f-display); font-size: clamp(2.2rem, 2.4vw + 1rem, 3.4rem); }
.stat__label { font-size: var(--fs-small); letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-ink-soft); margin-top: 8px; }

.tag-list { display: flex; flex-wrap: wrap; gap: 10px; }
.tag { border: 1px solid var(--c-line); padding: 7px 14px; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-ink-soft); }

.swatch { aspect-ratio: 1; width: 100%; position: relative; cursor: default; }
.swatch__label { position: absolute; left: 16px; bottom: 14px; font-size: var(--fs-small); letter-spacing: 0.04em; }

table.spec-table th, table.spec-table td { text-align: left; padding: 16px 10px; border-bottom: 1px solid var(--c-line); font-size: 0.92rem; }
table.spec-table th { color: var(--c-ink-soft); font-weight: 500; letter-spacing: 0.04em; width: 40%; }

.breadcrumb { font-size: var(--fs-small); letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-ink-soft); display: flex; gap: 10px; align-items: center; }
.breadcrumb a:hover { color: var(--c-ink); }

/* FAQ accordion */
.faq-list { border-top: 1px solid var(--c-line); }
.faq-item { border-bottom: 1px solid var(--c-line); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 2px;
  font-family: var(--f-text);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::marker { content: ""; }
.faq-item__icon { position: relative; width: 18px; height: 18px; flex: none; }
.faq-item__icon::before, .faq-item__icon::after { content: ""; position: absolute; background: var(--c-accent); transition: transform 260ms ease, opacity 260ms ease; }
.faq-item__icon::before { top: 50%; left: 0; width: 100%; height: 1px; transform: translateY(-50%); }
.faq-item__icon::after { left: 50%; top: 0; width: 1px; height: 100%; transform: translateX(-50%); }
.faq-item[open] .faq-item__icon::after { transform: translateX(-50%) rotate(90deg); opacity: 0; }
.faq-item__answer { padding: 0 2px 28px; max-width: 68ch; color: var(--c-ink-soft); font-size: 0.95rem; line-height: 1.65; }
.faq-item__answer p + p { margin-top: 14px; }

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--c-graphite); color: var(--c-ivory);
  padding: 14px 22px; z-index: 999; font-size: 0.8rem; letter-spacing: 0.08em;
}
.skip-link:focus { left: 16px; top: 16px; }

/* Loader */
#loader {
  position: fixed; inset: 0; z-index: 200; background: var(--c-ivory);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 700ms var(--ease), visibility 700ms var(--ease);
}
#loader img { height: 26px; opacity: 0; animation: loaderFade 1400ms var(--ease) forwards; }
@keyframes loaderFade { 0% { opacity: 0; letter-spacing: 0.5em; } 60% { opacity: 1; } 100% { opacity: 1; letter-spacing: 0.22em; } }
body[data-loaded="true"] #loader { opacity: 0; visibility: hidden; pointer-events: none; }

/* Cursor-follow micro dot (desktop only, subtle) */
.cursor-dot { position: fixed; width: 8px; height: 8px; border-radius: 50%; background: var(--c-accent); pointer-events: none; z-index: 300; opacity: 0; transition: opacity 200ms ease, transform 120ms ease-out; transform: translate(-50%,-50%); mix-blend-mode: difference; }
@media (hover:hover) and (pointer:fine) { body[data-cursor-ready="true"] .cursor-dot { opacity: 0.7; } }

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(43,42,40,0.97); z-index: 500; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity var(--dur-med) var(--ease), visibility var(--dur-med) var(--ease); padding: 40px; }
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img { max-height: 88vh; max-width: 100%; width: auto; margin-inline: auto; }
.lightbox__close { position: absolute; top: 28px; right: var(--container-pad); color: var(--c-ivory); font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; display: flex; gap: 10px; align-items: center; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); color: var(--c-ivory); font-size: 1.8rem; padding: 20px; }
.lightbox__nav--prev { left: clamp(8px, 3vw, 40px); }
.lightbox__nav--next { right: clamp(8px, 3vw, 40px); }
.lightbox__caption { position: absolute; bottom: 28px; left: 0; right: 0; text-align: center; color: rgba(242,237,228,0.7); font-size: 0.8rem; letter-spacing: 0.06em; }

/* Back to top */
.to-top { position: fixed; right: 28px; bottom: 28px; width: 46px; height: 46px; border: 1px solid var(--c-line); background: var(--c-bg); display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity var(--dur-fast) var(--ease), visibility var(--dur-fast) var(--ease); z-index: 60; }
.to-top.is-visible { opacity: 1; visibility: visible; }

/* Cookie consent banner */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 400;
  background: var(--c-graphite);
  color: var(--c-ivory);
  padding: 26px var(--container-pad);
  transform: translateY(100%);
  opacity: 0;
  transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1), opacity 420ms ease;
}
.cookie-banner.is-visible { transform: translateY(0); opacity: 1; }
.cookie-banner__inner { max-width: 1240px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; }
.cookie-banner__text { font-size: 0.85rem; line-height: 1.6; color: rgba(242,237,228,0.85); max-width: 62ch; }
.cookie-banner__text a { color: var(--c-ivory); text-decoration: underline; text-underline-offset: 3px; }
.cookie-banner__actions { display: flex; gap: 12px; flex: none; }
.cookie-banner__btn {
  padding: 12px 22px;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid var(--c-ivory);
  background: transparent;
  color: var(--c-ivory);
  cursor: pointer;
  white-space: nowrap;
  transition: background 220ms ease, color 220ms ease;
}
.cookie-banner__btn:hover { background: var(--c-ivory); color: var(--c-graphite); }
.cookie-banner__btn--accept { background: var(--c-ivory); color: var(--c-graphite); }
.cookie-banner__btn--accept:hover { background: transparent; color: var(--c-ivory); }
@media (max-width: 640px) {
  .cookie-banner__inner { flex-direction: column; align-items: flex-start; }
  .cookie-banner__actions { width: 100%; }
  .cookie-banner__btn { flex: 1; text-align: center; }
}

/* Terms-of-business gate on the contact form */
.field-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 28px 0;
  cursor: pointer;
}
.field-check input[type="checkbox"], .field-check input[type="radio"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex: none;
  accent-color: var(--c-accent);
  cursor: pointer;
}
.field-check span { font-size: 0.88rem; color: var(--c-ink-soft); line-height: 1.5; }
.field-check strong { text-decoration: underline; text-underline-offset: 3px; }

/* Model picker — appears on the contact form once "Upit za kolekciju" is selected,
   letting the client tick which CIVITAS LÁPIS models they want a reply about. */
.field-models { margin: -8px 0 32px; padding: 20px 22px; border: 1px solid var(--c-line); background: var(--c-bg-alt); }
.field-models__label { font-size: var(--fs-small); color: var(--c-ink-soft); margin-bottom: 14px; }
.field-models__grid { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.field-models__grid .field-check { margin: 0; gap: 8px; }
.field-models__grid .field-check span { font-size: 0.85rem; color: var(--c-ink); letter-spacing: 0.03em; }

/* Delivery choice — appears alongside the model picker for LÁPIS collection inquiries. */
.field-models .field { margin-bottom: 14px; }
.field-models .form-note { margin: 0; }

.btn:disabled, .btn:disabled:hover { opacity: 0.35; cursor: not-allowed; background: transparent; color: var(--c-graphite); }
.btn--solid:disabled, .btn--solid:disabled:hover { background: var(--c-graphite); color: var(--c-ivory); opacity: 0.3; }

.terms-modal {
  position: fixed;
  inset: 0;
  z-index: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(26,22,18,0.6);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur-med) var(--ease), visibility var(--dur-med) var(--ease);
}
.terms-modal.is-open { opacity: 1; visibility: visible; }
.terms-modal__panel {
  background: var(--c-bg);
  max-width: 720px;
  width: 100%;
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 30px 70px rgba(0,0,0,0.28);
}
.terms-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 28px;
  border-bottom: 1px solid var(--c-line);
  flex: none;
}
.terms-modal__header h2 { font-size: 1.3rem; }
.terms-modal__close {
  background: none;
  border: 0;
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--c-ink-soft);
  padding: 4px 8px;
}
.terms-modal__close:hover { color: var(--c-ink); }
.terms-modal__body { overflow-y: auto; padding: 28px; flex: 1 1 auto; }
.terms-modal__body h3 { font-family: var(--f-display); font-size: 1.1rem; margin: 26px 0 10px; }
.terms-modal__body h3:first-child { margin-top: 0; }
.terms-modal__body p { color: var(--c-ink-soft); font-size: 0.92rem; line-height: 1.65; }
.terms-modal__footer {
  padding: 20px 28px;
  border-top: 1px solid var(--c-line);
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.terms-modal__footer p { font-size: 0.78rem; color: var(--c-ink-soft); margin: 0; max-width: 26ch; }
@media (max-width: 560px) {
  .terms-modal__footer { flex-direction: column; align-items: stretch; }
  .terms-modal__footer p { max-width: none; }
}

/* Utility spacing */
.mt-0 { margin-top: 0 !important; }
.mb-xl { margin-bottom: 64px; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Print inquiry note style */
.note-block { border-left: 1px solid var(--c-accent); padding-left: 24px; }

/* -------------------------------------------------------------------------
   12. PAGE PATTERNS — reused across Home / About / Collections / Product /
   Craftsmanship / Materials / Customization / Journal / Gallery / Contact
   ------------------------------------------------------------------------- */

/* Hero: large framed photography, generous ivory margin (never full-bleed
   stretch of a sub-1000px source — see visualization note below) */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; color: var(--c-ivory); }
/* Mobile/tablet only: the hero video plays much taller than it needs to on a
   narrow screen, pushing everything else far down. Width is untouched —
   only the height (min-height) is shortened here; desktop is unaffected. */
@media (max-width: 900px) {
  .hero { min-height: 70svh; }
}
/* Phones specifically (tablet keeps the 70svh above) — shorter still. */
@media (max-width: 640px) {
  .hero { min-height: 55svh; }
}
.hero__media { position: absolute; inset: 0; overflow: hidden; }
.hero__media img, .hero__media video { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(20,19,17,0.72) 0%, rgba(20,19,17,0.18) 42%, rgba(20,19,17,0.05) 62%, rgba(20,19,17,0.5) 100%);
}
.hero__content { position: relative; z-index: 2; padding: 0 var(--container-pad) 88px; max-width: 900px; }
.hero__content .eyebrow { color: rgba(242,237,228,0.78); }
.hero__actions { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 40px; }
.hero__scroll-cue {
  position: absolute; bottom: 32px; right: var(--container-pad); z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: rgba(242,237,228,0.75); font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase;
}
.hero__scroll-cue::after { content: ""; width: 1px; height: 46px; background: rgba(242,237,228,0.5); animation: scrollcue 2.4s var(--ease) infinite; }
@keyframes scrollcue { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 50.1% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
.hero--compact { min-height: 62svh; }

/* Visualization label — required whenever a rendered (not photographed)
   image is shown in public communication, per brand book §22 */
.viz-tag { font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(242,237,228,0.6); }
.viz-tag--light { color: var(--c-ink-soft); }

/* Split: image + text, alternating */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.split--reverse .split__media { order: 2; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
}
.split__eyebrow { margin-bottom: 24px; }
.split__body { margin-top: 20px; }
.split__actions { margin-top: 36px; }

/* Value / commitment grids */
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--c-line); border: 1px solid var(--c-line); }
.value-grid__item {
  background: var(--c-bg);
  padding: 34px 28px;
  position: relative;
  z-index: 0;
  transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 260ms cubic-bezier(0.22, 1, 0.36, 1);
}
.value-grid__item:hover,
.value-grid__item:focus-within {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 14px 28px rgba(26,22,18,0.10);
  z-index: 1;
}
.value-grid__item h3 { font-size: 1.05rem; margin-bottom: 10px; font-family: var(--f-text); font-weight: 600; letter-spacing: 0.01em; }
.value-grid__item p { font-size: 0.9rem; color: var(--c-ink-soft); }
@media (max-width: 900px) { .value-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .value-grid { grid-template-columns: 1fr; } }

.commitment-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
@media (max-width: 780px) { .commitment-grid { grid-template-columns: 1fr; gap: 48px; } }
.commitment { border-top: 1px solid var(--c-accent); padding-top: 24px; }
.commitment h3 { font-size: 1.3rem; margin-bottom: 12px; }

/* Character / personality bars */
.charbar { margin-bottom: 26px; }
.charbar__row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; font-size: 0.85rem; letter-spacing: 0.04em; }
.charbar__role { font-family: var(--f-display); font-size: 1.15rem; }
.charbar__track { height: 2px; background: var(--c-line); position: relative; }
.charbar__fill { position: absolute; inset: 0; background: var(--c-graphite); width: 0; transition: width 1200ms var(--ease); }
.charbar.is-visible .charbar__fill { width: var(--pct); }
.charbar__note { margin-top: 8px; font-size: 0.85rem; color: var(--c-ink-soft); }

.axis-list { display: flex; flex-direction: column; gap: 16px; }
.axis-row { display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: center; font-size: 0.85rem; }
.axis-row span:first-child { text-align: right; }
.axis-row span:last-child { color: var(--c-ink-soft); }
.axis-row .arrow { color: var(--c-accent); font-size: 0.75rem; }

/* Finish / material swatches */
.swatch-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px; background: var(--c-line); border: 1px solid var(--c-line); }
@media (max-width: 900px) { .swatch-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .swatch-grid { grid-template-columns: repeat(2, 1fr); } }
.swatch-cell { background: var(--c-bg); padding: 24px 20px 20px; }
.swatch-cell__chip { aspect-ratio: 1; width: 100%; margin-bottom: 18px; }
.swatch-cell__name { font-family: var(--f-display); font-size: 1.1rem; }
.swatch-cell__meta { font-size: 0.78rem; color: var(--c-ink-soft); margin-top: 4px; }
.swatch-cell__use { font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--c-ink-soft); margin-top: 10px; }

/* Process steps (Customization) */
.process-list { counter-reset: step; }
.process-step {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 32px;
  padding: 40px 24px;
  margin: 0 -24px;
  border-top: 1px solid var(--c-line);
  position: relative;
}
.process-step:last-child { border-bottom: 1px solid var(--c-line); }
.process-step[data-reveal] { transform: translateX(-56px); }
.process-step[data-reveal].is-visible { transform: translateX(0); }
.process-step {
  transition: opacity 700ms var(--ease), transform 700ms var(--ease), box-shadow 280ms ease, background-color 280ms ease;
}
.process-step.is-visible:hover {
  transform: translateX(10px);
  background-color: rgba(43,42,40,0.025);
  box-shadow: -20px 0 26px -18px rgba(26,22,18,0.14);
}
.process-step__num { counter-increment: step; font-family: var(--f-display); font-style: italic; font-size: 2rem; color: var(--c-accent); transition: transform 280ms ease; }
.process-step__num::before { content: counter(step, decimal-leading-zero); }
.process-step.is-visible:hover .process-step__num { transform: scale(1.08); }
.process-step h3 { font-size: 1.4rem; margin-bottom: 10px; }
.process-step p { max-width: 56ch; }
@media (max-width: 640px) { .process-step { grid-template-columns: 1fr; gap: 10px; } }

/* Technical spec block */
.spec-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
@media (max-width: 900px) { .spec-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .spec-grid { grid-template-columns: 1fr; } }
.spec-item__label { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--c-ink-soft); margin-bottom: 8px; }
.spec-item__value { font-family: var(--f-display); font-size: 1.5rem; }

/* Gallery masonry-ish grid */
.gal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .gal-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .gal-grid { grid-template-columns: 1fr; } }
.gal-grid .media { cursor: zoom-in; }
.gal-grid > a:nth-child(3n+2) { margin-top: 48px; }
@media (max-width: 900px) { .gal-grid > a:nth-child(3n+2) { margin-top: 0; } .gal-grid > a:nth-child(2n) { margin-top: 40px; } }

/* Journal cards */
.journal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px 32px; }
@media (max-width: 900px) { .journal-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .journal-grid { grid-template-columns: 1fr; } }

/* Simple filter tabs (Journal / Collections) */
.filter-row { display: flex; gap: 32px; flex-wrap: wrap; }
.filter-row button {
  font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--c-ink-soft);
  padding-bottom: 6px; border-bottom: 1px solid transparent;
}
.filter-row button[aria-pressed="true"] { color: var(--c-ink); border-bottom-color: var(--c-accent); }

/* Word strip (static, no auto-scroll — brand rules forbid homepage carousels/motion loops) */
.word-strip { display: flex; flex-wrap: wrap; gap: 14px 40px; justify-content: center; }
.word-strip span { font-family: var(--f-display); font-style: italic; font-size: 1.1rem; color: var(--c-ink-soft); }
.word-strip span:not(:last-child)::after { content: "·"; margin-left: 40px; color: var(--c-accent); }

/* Page intro header (non-home pages) */
.page-intro { padding-top: clamp(140px, 16vw, 200px); padding-bottom: var(--section-space); }
.page-intro__eyebrow { margin-bottom: 28px; }

/* Timeline / founder story */
.timeline-block { border-left: 1px solid var(--c-line); padding-left: 32px; margin-left: 4px; }

/* Map placeholder (Contact) */
.map-frame { position: relative; aspect-ratio: 16/9; background: var(--c-bg-alt); display: flex; align-items: center; justify-content: center; }
.map-frame__grid { position: absolute; inset: 0; background-image: linear-gradient(var(--c-line-soft) 1px, transparent 1px), linear-gradient(90deg, var(--c-line-soft) 1px, transparent 1px); background-size: 40px 40px; }
.map-frame__pin { position: relative; text-align: center; }
.map-frame__pin span { display: block; font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--c-ink-soft); margin-top: 12px; }

/* 404 */
.error-page { min-height: 80svh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: var(--section-space) var(--container-pad); }
.error-page .h-hero { font-size: clamp(4rem, 10vw, 8rem); }
