/* ============================================================
   ARTLINIA GLASS STUDIO — REDESIGN
   Premium editorial / gallery aesthetic
   Inspired by Derix Glasstudios + Villeroy & Boch
   Loaded AFTER style.css — overrides where needed.
   ============================================================ */

/* --- Design Tokens --- */
:root {
  /* Colour — warm paper + deep ink */
  --c-bg:        #faf8f4;     /* warm off-white paper */
  --c-bg-alt:    #f1ede4;     /* slightly warmer alt */
  --c-surface:   #ffffff;     /* pure white for cards */
  --c-ink:       #0d0d0d;     /* near-black */
  --c-ink-2:     #2a2a2a;
  --c-muted:     #8a857c;     /* soft stone */
  --c-line:      rgba(13,13,13,0.10);
  --c-line-soft: rgba(13,13,13,0.06);
  --c-accent:    #a6874a;     /* antique gold (softer) */
  --c-contrast:  #0b0b0b;     /* rich black for alt sections */

  /* Letter-spacing scale */
  --track-tight:  -0.02em;
  --track-sm:      0.01em;
  --track-md:      0.06em;
  --track-lg:      0.14em;
  --track-xl:      0.26em;

  /* Generous rhythm */
  --gap-section:  clamp(5rem, 10vw, 10rem);
  --gap-block:    clamp(2.5rem, 5vw, 5rem);

  /* Motion */
  --ease:     cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io:  cubic-bezier(0.65, 0, 0.35, 1);
  --dur-1:    0.45s;
  --dur-2:    0.75s;
  --dur-3:    1.1s;

  /* Radii — almost none */
  --r-0: 0;
  --r-1: 2px;
  --r-2: 4px;
}

/* --- Base overrides --- */
html { scroll-behavior: smooth; }
body.rd {
  background: var(--c-bg);
  color: var(--c-ink);
  font-family: 'Inter', -apple-system, system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.55;
  font-feature-settings: 'ss01','cv11','kern';
  -webkit-font-smoothing: antialiased;
}

/* Grain overlay for paper feel (subtle) */
body.rd::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.04;
  mix-blend-mode: multiply;
  background-image:
    radial-gradient(rgba(0,0,0,0.6) 1px, transparent 1px);
  background-size: 3px 3px;
}

/* --- Typography primitives --- */
.rd-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: var(--track-xl);
  text-transform: uppercase;
  color: var(--c-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}
.rd-eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--c-ink);
  opacity: 0.5;
}

.rd-index {
  font-family: 'Inter', sans-serif;
  font-feature-settings: 'tnum';
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: var(--track-lg);
  color: var(--c-ink);
  text-transform: uppercase;
}

.rd-display {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: clamp(2.75rem, 7.5vw, 7.5rem);
  line-height: 0.95;
  letter-spacing: var(--track-tight);
  text-transform: uppercase;
  color: var(--c-ink);
}
.rd-display em {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--c-accent);
  padding: 0 0.1em;
}

.rd-h2 {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: var(--track-tight);
  text-transform: uppercase;
  color: var(--c-ink);
}
.rd-h2 em {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--c-accent);
}

.rd-h3 {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: clamp(1.15rem, 1.6vw, 1.45rem);
  letter-spacing: var(--track-md);
  text-transform: uppercase;
  color: var(--c-ink);
  line-height: 1.25;
}

.rd-lede {
  font-size: clamp(1.05rem, 1.25vw, 1.2rem);
  line-height: 1.65;
  color: var(--c-ink-2);
  max-width: 58ch;
}

.rd-body {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--c-ink-2);
  max-width: 62ch;
}

.rd-meta-label {
  font-size: 0.68rem;
  letter-spacing: var(--track-xl);
  text-transform: uppercase;
  color: var(--c-muted);
  font-weight: 500;
}

/* --- Layout --- */
.rd-container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  position: relative;
  z-index: 2;
}
.rd-section {
  padding: var(--gap-section) 0;
  position: relative;
}
.rd-section-dark {
  background: var(--c-contrast);
  color: var(--c-bg);
}
.rd-section-dark .rd-display,
.rd-section-dark .rd-h2,
.rd-section-dark .rd-h3,
.rd-section-dark h2.rd-h2,
.rd-section-dark h3.rd-h3 { color: var(--c-bg); }
.rd-section-dark .rd-lede,
.rd-section-dark .rd-body { color: rgba(250,248,244,0.75); }
.rd-section-dark .rd-eyebrow { color: rgba(250,248,244,0.55); }
.rd-section-dark .rd-eyebrow::before { background: var(--c-bg); }

.rd-hr {
  border: 0;
  border-top: 1px solid var(--c-line);
  margin: 0;
}

/* --- Header / Nav refinement ---
   NOTE: use :where() + higher specificity combinators to beat the
   old .header.header-transparent:not(.scrolled) rules. */
body.rd .header,
body.rd .header.header-transparent,
body.rd .header.header-transparent.scrolled {
  background: rgba(250,248,244,0.78);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border-bottom: 1px solid var(--c-line-soft);
  box-shadow: none;
}
body.rd .header.scrolled,
body.rd .header.header-transparent.scrolled {
  background: rgba(250,248,244,0.94);
  box-shadow: 0 1px 0 var(--c-line);
}
/* Hide the old raster logo img — we use the wordmark text only */
body.rd .header .logo img { display: none; }
body.rd .header .logo { gap: 0; }

/* Override old white-on-transparent rules */
body.rd .header .logo-text,
body.rd .header.header-transparent:not(.scrolled) .logo-text,
body.rd .header.header-transparent.scrolled .logo-text {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  font-size: 1.7rem;
  letter-spacing: 0.01em;
  color: var(--c-ink);
  line-height: 1;
}
body.rd .header .logo-text span,
body.rd .header.header-transparent:not(.scrolled) .logo-text span,
body.rd .header.header-transparent.scrolled .logo-text span {
  font-family: 'Inter', sans-serif;
  font-size: 0.62rem;
  letter-spacing: var(--track-xl);
  text-transform: uppercase;
  color: var(--c-muted);
  font-weight: 500;
  margin-top: 4px;
  display: block;
}

body.rd .header .nav-link,
body.rd .header.header-transparent:not(.scrolled) .nav-link,
body.rd .header.header-transparent.scrolled .nav-link {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: var(--track-lg);
  text-transform: uppercase;
  color: var(--c-ink);
  padding: 0.5rem 0;
  font-family: 'Inter', sans-serif;
}
body.rd .header .nav-link::after {
  background: var(--c-ink);
  height: 1px;
}
body.rd .header .nav-link .arrow {
  font-size: 0.55rem;
  opacity: 0.5;
  margin-left: 0.3rem;
}

body.rd .header .lang-switch,
body.rd .header.header-transparent:not(.scrolled) .lang-switch {
  background: transparent;
  gap: 0;
  padding: 0;
  border: 1px solid var(--c-line);
}
body.rd .header .lang-btn,
body.rd .header.header-transparent:not(.scrolled) .lang-btn {
  font-size: 0.68rem;
  letter-spacing: var(--track-lg);
  font-weight: 500;
  color: var(--c-muted);
  background: transparent;
  border: 0;
  padding: 0.45rem 0.75rem;
  border-radius: 0;
  transition: background var(--dur-1) var(--ease), color var(--dur-1) var(--ease);
}
body.rd .header .lang-btn.active,
body.rd .header.header-transparent:not(.scrolled) .lang-btn.active {
  background: var(--c-ink);
  color: var(--c-bg);
  border-color: var(--c-ink);
}

/* Hamburger bars dark on light */
body.rd .header .hamburger span,
body.rd .header.header-transparent:not(.scrolled) .hamburger span {
  background: var(--c-ink);
}

/* Dropdown menu (if present) */
body.rd .nav-dropdown {
  background: var(--c-bg);
  border: 1px solid var(--c-line-soft);
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
  border-radius: 0;
}
body.rd .nav-dropdown a {
  color: var(--c-ink);
  font-size: 0.82rem;
  letter-spacing: var(--track-sm);
  text-transform: none;
  font-family: 'Inter', sans-serif;
}
body.rd .nav-dropdown a:hover {
  background: var(--c-bg-alt);
  color: var(--c-ink);
}

/* --- Button system (redesigned) --- */
.rd-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1.1rem 1.6rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: var(--track-lg);
  text-transform: uppercase;
  border-radius: 0;
  border: 1px solid var(--c-ink);
  background: var(--c-ink);
  color: var(--c-bg);
  cursor: pointer;
  transition: background var(--dur-1) var(--ease), color var(--dur-1) var(--ease), transform var(--dur-1) var(--ease);
  position: relative;
  overflow: hidden;
}
.rd-btn:hover { background: transparent; color: var(--c-ink); }
.rd-btn .arr { transition: transform var(--dur-1) var(--ease); font-family: inherit; }
.rd-btn:hover .arr { transform: translateX(4px); }

.rd-btn--outline {
  background: transparent;
  color: var(--c-ink);
  border-color: var(--c-ink);
}
.rd-btn--outline:hover { background: var(--c-ink); color: var(--c-bg); }

.rd-btn--ghost {
  background: transparent;
  color: var(--c-ink);
  border-color: var(--c-line);
}
.rd-btn--ghost:hover { border-color: var(--c-ink); }

.rd-section-dark .rd-btn {
  background: var(--c-bg);
  color: var(--c-ink);
  border-color: var(--c-bg);
}
.rd-section-dark .rd-btn:hover { background: transparent; color: var(--c-bg); }

.rd-link {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: var(--track-lg);
  text-transform: uppercase;
  color: var(--c-ink);
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--c-ink);
  transition: gap var(--dur-1) var(--ease);
}
.rd-link:hover { gap: 1rem; }

/* ============================================================
   HERO — cinematic asymmetric
   ============================================================ */
.rd-hero {
  position: relative;
  min-height: 100vh;
  padding-top: calc(var(--header-height, 80px) + 4vh);
  padding-bottom: 4vh;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 4vw, 5rem);
  align-items: stretch;
  background: var(--c-bg);
}
.rd-hero__wrap {
  display: contents;
}
.rd-hero__content {
  padding: 0 clamp(1.5rem, 4vw, 4rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.75rem;
  position: relative;
  z-index: 2;
}
.rd-hero__image {
  position: relative;
  overflow: hidden;
  background: var(--c-bg-alt);
}
.rd-hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 8s linear;
}
.rd-hero.is-loaded .rd-hero__image img { transform: scale(1.08); }
.rd-hero__image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.15));
  pointer-events: none;
}

.rd-hero__display {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: clamp(3rem, 8.5vw, 8.5rem);
  line-height: 0.92;
  letter-spacing: var(--track-tight);
  text-transform: uppercase;
  color: var(--c-ink);
  margin: 0;
}
.rd-hero__display .row { display: block; overflow: hidden; }
.rd-hero__display .row > span {
  display: inline-block;
  transform: translateY(110%);
  animation: rd-rise 1.1s var(--ease) forwards;
}
.rd-hero__display .row:nth-child(2) > span { animation-delay: 0.12s; }
.rd-hero__display .row:nth-child(3) > span { animation-delay: 0.24s; }
.rd-hero__display em {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0.01em;
  color: var(--c-accent);
}

@keyframes rd-rise {
  from { transform: translateY(110%); }
  to   { transform: translateY(0); }
}

.rd-hero__lede {
  max-width: 46ch;
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  line-height: 1.7;
  color: var(--c-ink-2);
  opacity: 0;
  animation: rd-fade-up 0.9s var(--ease) 0.5s forwards;
}

.rd-hero__ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: rd-fade-up 0.9s var(--ease) 0.7s forwards;
}

@keyframes rd-fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.rd-hero__meta {
  display: flex;
  gap: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--c-line);
  margin-top: 1rem;
  opacity: 0;
  animation: rd-fade-up 0.9s var(--ease) 0.9s forwards;
}
.rd-hero__meta-item { }
.rd-hero__meta-num {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 2.1rem;
  line-height: 1;
  color: var(--c-ink);
  margin-bottom: 0.3rem;
}
.rd-hero__meta-label {
  font-size: 0.66rem;
  letter-spacing: var(--track-xl);
  text-transform: uppercase;
  color: var(--c-muted);
}

.rd-hero__tag {
  position: absolute;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--c-bg);
  font-size: 0.7rem;
  letter-spacing: var(--track-xl);
  text-transform: uppercase;
  font-weight: 500;
  mix-blend-mode: difference;
}
.rd-hero__tag::before {
  content: "";
  width: 40px;
  height: 1px;
  background: currentColor;
}

/* Marquee scroll hint under hero */
.rd-marquee {
  overflow: hidden;
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
  padding: 1.6rem 0;
  white-space: nowrap;
  position: relative;
  background: var(--c-bg);
}
.rd-marquee__track {
  display: inline-flex;
  gap: 3rem;
  animation: rd-marquee 42s linear infinite;
}
.rd-marquee__track span {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  letter-spacing: var(--track-xl);
  text-transform: uppercase;
  color: var(--c-ink);
  font-weight: 500;
}
.rd-marquee__track span::after {
  content: "✦";
  margin-left: 3rem;
  color: var(--c-accent);
  font-size: 0.8em;
}
@keyframes rd-marquee {
  to { transform: translateX(-50%); }
}

/* ============================================================
   INTRO / EDITORIAL sections
   ============================================================ */
.rd-intro {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}
.rd-intro__label { margin-bottom: 2.5rem; }
.rd-intro__title { margin-bottom: 2rem; }
.rd-intro__body > p { margin-bottom: 1.25rem; }
.rd-intro__body > p:last-of-type { margin-bottom: 2rem; }

/* Split layout with image */
.rd-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.rd-split--reverse .rd-split__image { order: 2; }
.rd-split__image {
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--c-bg-alt);
}
.rd-split__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.rd-split__image:hover img { transform: scale(1.04); }
.rd-split__text {
  padding: 1rem 0;
}
.rd-split__text > .rd-eyebrow { margin-bottom: 1.75rem; }
.rd-split__text > .rd-h2 { margin-bottom: 1.5rem; }

/* ============================================================
   STATS — editorial numbered row
   ============================================================ */
.rd-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
}
.rd-stat {
  padding: 3rem 2rem;
  border-right: 1px solid var(--c-line);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.rd-stat:last-child { border-right: none; }
.rd-stat__num {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: clamp(3rem, 5.5vw, 5rem);
  line-height: 1;
  color: var(--c-ink);
  letter-spacing: -0.02em;
}
.rd-stat__num small {
  font-family: 'Inter', sans-serif;
  font-size: 0.4em;
  vertical-align: super;
  color: var(--c-accent);
  font-weight: 500;
}
.rd-stat__label {
  font-size: 0.68rem;
  letter-spacing: var(--track-xl);
  text-transform: uppercase;
  color: var(--c-muted);
  font-weight: 500;
}

/* ============================================================
   BENTO product grid — asymmetric, premium
   ============================================================ */
.rd-section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: end;
  margin-bottom: clamp(2rem, 5vw, 4rem);
}
.rd-section-head__left {}
.rd-section-head__right {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}
.rd-section-head .rd-eyebrow { margin-bottom: 1.5rem; }

.rd-bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 18vw;
  gap: 1.5rem;
}

/* bento patterns */
.rd-tile {
  position: relative;
  overflow: hidden;
  background: var(--c-bg-alt);
  cursor: pointer;
  display: block;
  color: inherit;
}
.rd-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 1.2s var(--ease);
}
.rd-tile:hover img { transform: scale(1.1); }
.rd-tile__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.55));
  pointer-events: none;
}
.rd-tile__body {
  position: absolute;
  inset: 0;
  padding: clamp(1.25rem, 2.2vw, 2.2rem);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.5rem;
  color: var(--c-bg);
  z-index: 2;
}
.rd-tile__idx {
  font-size: 0.66rem;
  letter-spacing: var(--track-xl);
  text-transform: uppercase;
  font-weight: 500;
  opacity: 0.85;
}
.rd-tile__title {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: clamp(1.1rem, 1.6vw, 1.55rem);
  letter-spacing: var(--track-md);
  text-transform: uppercase;
  line-height: 1.15;
}
.rd-tile__title em {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}
.rd-tile__desc {
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.55;
  color: rgba(255,255,255,0.85);
  max-width: 44ch;
  opacity: 0;
  max-height: 0;
  transition: opacity var(--dur-2) var(--ease), max-height var(--dur-2) var(--ease), margin-top var(--dur-2) var(--ease);
}
.rd-tile:hover .rd-tile__desc {
  opacity: 1;
  max-height: 8rem;
  margin-top: 0.25rem;
}
.rd-tile__cta {
  position: absolute;
  top: clamp(1.25rem, 2.2vw, 2.2rem);
  right: clamp(1.25rem, 2.2vw, 2.2rem);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-bg);
  font-size: 1rem;
  background: rgba(0,0,0,0.15);
  backdrop-filter: blur(4px);
  transition: background var(--dur-1) var(--ease), border-color var(--dur-1) var(--ease), transform var(--dur-1) var(--ease);
  z-index: 3;
}
.rd-tile:hover .rd-tile__cta {
  background: var(--c-bg);
  border-color: var(--c-bg);
  color: var(--c-ink);
  transform: rotate(-45deg);
}

/* Bento spans — hand-tuned pattern */
.rd-tile--a { grid-column: span 7; grid-row: span 2; }
.rd-tile--b { grid-column: span 5; grid-row: span 2; }
.rd-tile--c { grid-column: span 4; grid-row: span 2; }
.rd-tile--d { grid-column: span 4; grid-row: span 2; }
.rd-tile--e { grid-column: span 4; grid-row: span 2; }

/* ============================================================
   Techniques strip — minimal list / numbered
   ============================================================ */
.rd-tech {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid rgba(250,248,244,0.15);
}
.rd-tech__item {
  padding: 3rem 2.5rem;
  border-bottom: 1px solid rgba(250,248,244,0.15);
  border-right: 1px solid rgba(250,248,244,0.15);
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  position: relative;
  transition: background var(--dur-1) var(--ease);
  cursor: pointer;
}
.rd-tech__item:hover { background: rgba(250,248,244,0.03); }
.rd-tech__item:nth-child(2n) { border-right: none; }
.rd-tech__num {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-style: italic;
  color: var(--c-accent);
  font-size: 2rem;
  line-height: 1;
}
.rd-tech__title {
  font-family: 'Inter', sans-serif;
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: var(--track-md);
  text-transform: uppercase;
  color: var(--c-bg);
}
.rd-tech__desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(250,248,244,0.7);
  max-width: 46ch;
}
.rd-tech__arr {
  position: absolute;
  top: 3rem;
  right: 2.5rem;
  opacity: 0.55;
  transition: transform var(--dur-1) var(--ease), opacity var(--dur-1) var(--ease);
  color: var(--c-bg);
}
.rd-tech__item:hover .rd-tech__arr {
  opacity: 1;
  transform: translate(4px, -4px);
}

/* ============================================================
   Process — horizontal numbered
   ============================================================ */
.rd-process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  counter-reset: step;
}
.rd-process__step {
  padding: 2.5rem 2rem 2.5rem 0;
  border-top: 1px solid var(--c-line);
  position: relative;
}
.rd-process__step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: var(--c-accent);
  font-size: 1.4rem;
  position: absolute;
  top: -0.8rem;
  left: 0;
  background: var(--c-bg);
  padding-right: 0.5rem;
}
.rd-process__title {
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: var(--track-md);
  text-transform: uppercase;
  margin-bottom: 0.8rem;
  margin-top: 0.5rem;
}
.rd-process__desc {
  font-size: 0.92rem;
  color: var(--c-muted);
  line-height: 1.65;
}

/* ============================================================
   CTA — editorial full-bleed
   ============================================================ */
.rd-cta {
  /* Asymmetric padding: a generous editorial head room, then a tight
     bottom so the dark CTA doesn't pour into the equally-dark footer
     as one big black void. */
  padding: clamp(4.5rem, 9vw, 8rem) 0 clamp(3.25rem, 5.5vw, 5rem);
  background: var(--c-contrast);
  color: var(--c-bg);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.rd-cta__wrap {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}
.rd-cta__display,
h2.rd-cta__display {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: clamp(2.5rem, 7vw, 7rem);
  line-height: 0.95;
  letter-spacing: var(--track-tight);
  text-transform: uppercase;
  margin: 0;
  color: var(--c-bg);
}
.rd-cta__display em {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--c-accent);
}
.rd-cta__lede {
  max-width: 52ch;
  margin: 0 auto;
  color: rgba(250,248,244,0.7);
  font-size: 1.05rem;
  line-height: 1.7;
}
.rd-cta__ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 1rem;
}

/* ============================================================
   FOOTER — editorial
   ============================================================ */
body.rd .footer {
  background: var(--c-ink);
  color: rgba(250,248,244,0.65);
  padding-top: clamp(2.75rem, 4.5vw, 4rem);
  padding-bottom: 1.5rem;
  border-top: none;
  /* A whisper-thin accent line marks the seam between the darker CTA
     plate and the footer instead of relying on empty vertical space. */
  position: relative;
}
body.rd .footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: clamp(60px, 8vw, 100px);
  height: 1px;
  background: rgba(250, 248, 244, 0.28);
}
body.rd .footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  padding-bottom: clamp(2.5rem, 4vw, 3.25rem);
  border-bottom: 1px solid rgba(250,248,244,0.12);
}
body.rd .footer .logo-text {
  font-size: 2.5rem;
  color: var(--c-bg);
}
body.rd .footer .logo-text span {
  color: rgba(250,248,244,0.55);
}
body.rd .footer-title {
  color: var(--c-bg);
  font-size: 0.72rem;
  letter-spacing: var(--track-xl);
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 1.5rem;
}
body.rd .footer-links a,
body.rd .footer-links span {
  color: rgba(250,248,244,0.65);
  font-size: 0.92rem;
  transition: color var(--dur-1) var(--ease);
}
body.rd .footer-links a:hover { color: var(--c-bg); }
body.rd .footer-contact-item a,
body.rd .footer-contact-item span {
  color: rgba(250,248,244,0.7);
}
body.rd .footer-social a {
  background: transparent;
  border: 1px solid rgba(250,248,244,0.25);
  color: rgba(250,248,244,0.8);
  border-radius: 0;
  transition: all var(--dur-1) var(--ease);
}
body.rd .footer-social a:hover {
  background: var(--c-bg);
  color: var(--c-ink);
  border-color: var(--c-bg);
}

/* ============================================================
   SUBPAGE — editorial product/technique template
   ============================================================ */
.rd-sub-hero {
  padding: calc(var(--header-height, 80px) + 6vh) 0 var(--gap-block);
  background: var(--c-bg);
  border-bottom: 1px solid var(--c-line);
}
.rd-crumbs {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-bottom: clamp(3rem, 6vw, 5rem);
  font-size: 0.72rem;
  letter-spacing: var(--track-lg);
  text-transform: uppercase;
  color: var(--c-muted);
}
.rd-crumbs a { color: var(--c-muted); transition: color var(--dur-1) var(--ease); }
.rd-crumbs a:hover { color: var(--c-ink); }
.rd-crumbs .sep { opacity: 0.4; }
.rd-crumbs strong { color: var(--c-ink); font-weight: 500; }

.rd-sub-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: end;
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}
.rd-sub-head__title {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: clamp(2.5rem, 6vw, 6rem);
  line-height: 0.95;
  letter-spacing: var(--track-tight);
  text-transform: uppercase;
  color: var(--c-ink);
  margin: 0;
}
.rd-sub-head__title em {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--c-accent);
}
.rd-sub-head__meta {
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--c-line);
}
.rd-sub-head__meta p {
  font-size: 0.95rem;
  color: var(--c-ink-2);
  max-width: 44ch;
  line-height: 1.6;
}

.rd-sub-hero__image {
  width: 100%;
  aspect-ratio: 21/9;
  overflow: hidden;
  background: var(--c-bg-alt);
}
.rd-sub-hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rd-detail {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: clamp(2rem, 6vw, 6rem);
  padding: var(--gap-section) 0;
}
.rd-detail__body > .rd-eyebrow { margin-bottom: 2rem; }
.rd-detail__body > .rd-h2 { margin-bottom: 2rem; }
.rd-detail__body > p {
  margin-bottom: 1.25rem;
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--c-ink-2);
  max-width: 62ch;
}

.rd-spec {
  background: var(--c-bg-alt);
  padding: 2.5rem;
  position: sticky;
  top: calc(var(--header-height, 80px) + 2rem);
}
.rd-spec__title {
  font-size: 0.72rem;
  letter-spacing: var(--track-xl);
  text-transform: uppercase;
  color: var(--c-muted);
  font-weight: 500;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--c-line);
  margin-bottom: 1.25rem;
}
.rd-spec dl { display: grid; gap: 1.1rem; margin: 0; }
.rd-spec dt {
  font-size: 0.68rem;
  letter-spacing: var(--track-xl);
  text-transform: uppercase;
  color: var(--c-muted);
  font-weight: 500;
  margin-bottom: 0.25rem;
}
.rd-spec dd {
  font-size: 0.98rem;
  color: var(--c-ink);
  line-height: 1.55;
  margin: 0;
}
.rd-spec__cta {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--c-line);
}

/* Gallery — editorial masonry-ish */
.rd-gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}
.rd-gallery__item {
  overflow: hidden;
  background: var(--c-bg-alt);
  position: relative;
}
.rd-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.rd-gallery__item:hover img { transform: scale(1.05); }
/* rhythmic pattern across 6 tiles */
.rd-gallery__item:nth-child(6n+1) { grid-column: span 7; aspect-ratio: 16/10; }
.rd-gallery__item:nth-child(6n+2) { grid-column: span 5; aspect-ratio: 4/5; }
.rd-gallery__item:nth-child(6n+3) { grid-column: span 4; aspect-ratio: 4/5; }
.rd-gallery__item:nth-child(6n+4) { grid-column: span 4; aspect-ratio: 4/5; }
.rd-gallery__item:nth-child(6n+5) { grid-column: span 4; aspect-ratio: 4/5; }
.rd-gallery__item:nth-child(6n+6) { grid-column: span 12; aspect-ratio: 21/9; }

/* Gap-closers — when tile count doesn't fill a full 6-tile row, stretch the last one */
.rd-gallery__item:first-child:last-child { grid-column: span 12; aspect-ratio: 21/9; }
.rd-gallery__item:nth-child(2):last-child { grid-column: span 7; aspect-ratio: 16/10; }
.rd-gallery__item:nth-child(3):last-child { grid-column: span 12; aspect-ratio: 21/9; }
.rd-gallery__item:nth-child(4):last-child { grid-column: span 8; aspect-ratio: 16/10; }
.rd-gallery__item:nth-child(5):last-child { grid-column: span 8; aspect-ratio: 16/10; }

/* ============================================================
   REVEAL animation — gentler, editorial
   ============================================================ */
body.rd .reveal,
body.rd .reveal-left,
body.rd .reveal-right {
  transition: opacity var(--dur-3) var(--ease), transform var(--dur-3) var(--ease);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .rd-hero {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-bottom: 0;
  }
  .rd-hero__image { aspect-ratio: 16/10; }
  .rd-intro,
  .rd-split,
  .rd-section-head,
  .rd-sub-head,
  .rd-detail {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .rd-stats { grid-template-columns: repeat(2, 1fr); }
  .rd-stat:nth-child(2) { border-right: none; }
  .rd-stat:nth-child(1), .rd-stat:nth-child(2) {
    border-bottom: 1px solid var(--c-line);
  }
  .rd-bento {
    grid-auto-rows: 55vw;
  }
  .rd-tile--a, .rd-tile--b,
  .rd-tile--c, .rd-tile--d, .rd-tile--e {
    grid-column: span 12;
    grid-row: span 1;
  }
  .rd-tech { grid-template-columns: 1fr; }
  .rd-tech__item { border-right: none; }
  .rd-process { grid-template-columns: repeat(2, 1fr); }
  .rd-spec { position: static; }
  .rd-gallery__item:nth-child(n) {
    grid-column: span 12;
    aspect-ratio: 4/3;
  }
  body.rd .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .rd-stats { grid-template-columns: 1fr; }
  .rd-stat { border-right: none; border-bottom: 1px solid var(--c-line); }
  .rd-stat:last-child { border-bottom: none; }
  .rd-process { grid-template-columns: 1fr; }
  body.rd .footer-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   CONTACT — kontakt.html
   ============================================================ */
.rd-contact {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(3rem, 6vw, 6rem);
  padding: clamp(5rem, 9vw, 9rem) 0;
}
.rd-contact__info > .rd-eyebrow { margin-bottom: 2rem; }
.rd-contact__info > .rd-h2 { margin-bottom: 1.5rem; }
.rd-contact__info > .rd-lede { margin-bottom: 2.75rem; }

.rd-contact-list {
  display: grid;
  gap: 1.75rem;
  border-top: 1px solid var(--c-line);
  padding-top: 2.25rem;
}
.rd-contact-row {
  display: grid;
  grid-template-columns: 14ch 1fr;
  gap: 1.5rem;
  align-items: baseline;
}
.rd-contact-row dt {
  font-family: var(--f-sans);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--track-lg);
  color: var(--c-muted);
  margin: 0;
}
.rd-contact-row dd {
  margin: 0;
  font-family: var(--f-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--c-ink);
}
.rd-contact-row dd a {
  color: var(--c-ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-1) var(--ease);
}
.rd-contact-row dd a:hover { border-bottom-color: var(--c-accent); }
.rd-contact-row dd small {
  display: block;
  font-size: 0.78rem;
  color: var(--c-muted);
  margin-top: 0.15rem;
}

.rd-form {
  background: #fff;
  border: 1px solid var(--c-line);
  padding: clamp(2rem, 4vw, 3.25rem);
}
.rd-form__head {
  margin-bottom: 2.25rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--c-line);
}
.rd-form__head .rd-eyebrow { margin-bottom: 0.75rem; }
.rd-form__head .rd-h3 { margin: 0; }

.rd-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}
.rd-form__group {
  position: relative;
  margin-bottom: 1.25rem;
}
.rd-form__row .rd-form__group { margin-bottom: 0; }

.rd-form input,
.rd-form textarea {
  width: 100%;
  padding: 1.1rem 0 0.6rem;
  border: 0;
  border-bottom: 1px solid var(--c-line);
  background: transparent;
  font-family: var(--f-sans);
  font-size: 0.95rem;
  color: var(--c-ink);
  outline: none;
  transition: border-color var(--dur-1) var(--ease);
}
.rd-form textarea {
  resize: vertical;
  min-height: 140px;
  padding-top: 1.25rem;
}
.rd-form input:focus,
.rd-form textarea:focus { border-bottom-color: var(--c-ink); }

.rd-form label {
  position: absolute;
  top: 1.1rem;
  left: 0;
  font-family: var(--f-sans);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: var(--track-lg);
  color: var(--c-muted);
  pointer-events: none;
  transition: top var(--dur-1) var(--ease), font-size var(--dur-1) var(--ease), color var(--dur-1) var(--ease);
}
.rd-form input:focus + label,
.rd-form input:not(:placeholder-shown) + label,
.rd-form textarea:focus + label,
.rd-form textarea:not(:placeholder-shown) + label {
  top: -0.15rem;
  font-size: 0.62rem;
  color: var(--c-ink);
}

.rd-form__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.rd-form__submit {
  width: 100%;
  margin-top: 1rem;
  padding: 1.2rem 1.5rem;
  background: var(--c-ink);
  color: var(--c-bg);
  font-family: var(--f-sans);
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--track-lg);
  border: 1px solid var(--c-ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  transition: background var(--dur-1) var(--ease), color var(--dur-1) var(--ease);
}
.rd-form__submit:hover { background: transparent; color: var(--c-ink); }
.rd-form__msg {
  min-height: 1.5rem;
  margin-bottom: 1rem;
  font-family: var(--f-sans);
  font-size: 0.85rem;
}
.rd-form__msg.is-success { color: #2d5016; }
.rd-form__msg.is-error { color: #8a2c2c; }

.rd-map {
  padding: 0 0 clamp(5rem, 9vw, 9rem);
}
.rd-map__head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: end;
  margin-bottom: 2.5rem;
}
.rd-map__frame {
  width: 100%;
  aspect-ratio: 21/9;
  border: 1px solid var(--c-line);
  overflow: hidden;
}
.rd-map__frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ============================================================
   PROJECTS — projekti.html (case study grid)
   ============================================================ */
.rd-projects {
  padding: clamp(4rem, 8vw, 8rem) 0;
  display: grid;
  gap: clamp(4rem, 7vw, 7rem);
}
.rd-project {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}
.rd-project--reverse .rd-project__media { order: 2; }
.rd-project__media {
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--c-soft);
}
.rd-project__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-3) var(--ease);
}
.rd-project__media:hover img { transform: scale(1.04); }
.rd-project__text .rd-index { margin-bottom: 1.5rem; }
.rd-project__text .rd-h2 { margin-bottom: 1.25rem; }
.rd-project__text .rd-body { margin-bottom: 2rem; }
.rd-project__meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  border-top: 1px solid var(--c-line);
  padding-top: 1.5rem;
  margin-top: 1.75rem;
}
.rd-project__meta dt {
  font-family: var(--f-sans);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: var(--track-lg);
  color: var(--c-muted);
  margin-bottom: 0.25rem;
}
.rd-project__meta dd {
  margin: 0;
  font-family: var(--f-sans);
  font-size: 0.95rem;
  color: var(--c-ink);
}

/* ============================================================
   INDEX GRID — izdelki.html / tehnike listings (card grid)
   ============================================================ */
.rd-index-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(2rem, 3vw, 3rem);
  padding: clamp(4rem, 7vw, 7rem) 0;
}
.rd-card {
  display: block;
  text-decoration: none;
  color: inherit;
  position: relative;
}
.rd-card__media {
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--c-soft);
  margin-bottom: 1.5rem;
}
.rd-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-3) var(--ease);
}
.rd-card:hover .rd-card__media img { transform: scale(1.06); }
.rd-card__num {
  font-family: var(--f-sans);
  font-size: 0.7rem;
  color: var(--c-muted);
  letter-spacing: var(--track-lg);
  margin-bottom: 0.4rem;
}
.rd-card__title {
  font-family: var(--f-sans);
  font-size: 1.05rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-ink);
  margin: 0 0 0.5rem;
  transition: color var(--dur-1) var(--ease);
}
.rd-card:hover .rd-card__title { color: var(--c-accent); }
.rd-card__desc {
  font-family: var(--f-sans);
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--c-muted);
  margin: 0;
}

/* ============================================================
   FEATURE STRIP — servis / trgovina benefit rows
   ============================================================ */
.rd-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
}
.rd-feature {
  padding: 3rem 2rem;
  border-right: 1px solid var(--c-line);
}
.rd-feature:last-child { border-right: none; }
.rd-feature__num {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 1.8rem;
  color: var(--c-accent);
  margin-bottom: 1rem;
}
.rd-feature__title {
  font-family: var(--f-sans);
  font-size: 0.95rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-ink);
  margin: 0 0 0.75rem;
}
.rd-feature__desc {
  font-family: var(--f-sans);
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--c-muted);
  margin: 0;
}

/* ============================================================
   404 — error page
   ============================================================ */
.rd-404 {
  min-height: 80vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: clamp(6rem, 12vw, 12rem) 1.5rem;
}
.rd-404__num {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(7rem, 18vw, 16rem);
  line-height: 1;
  color: var(--c-accent);
  margin-bottom: 1.5rem;
}
.rd-404 .rd-h2 { margin-bottom: 1rem; }
.rd-404 .rd-lede { margin-bottom: 2.5rem; max-width: 560px; margin-left: auto; margin-right: auto; }

/* ============================================================
   LEGAL — piskotki / splosni-pogoji (long-form prose)
   ============================================================ */
.rd-legal {
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 8rem) 1.5rem;
}
.rd-legal .rd-eyebrow { margin-bottom: 1.25rem; }
.rd-legal .rd-h2 { margin-bottom: 2rem; }
.rd-legal h3 {
  font-family: var(--f-sans);
  font-size: 1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-ink);
  margin: 2.5rem 0 0.75rem;
}
.rd-legal p,
.rd-legal li {
  font-family: var(--f-sans);
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--c-ink);
}
.rd-legal p { margin: 0 0 1rem; }
.rd-legal ul, .rd-legal ol { padding-left: 1.25rem; margin: 0 0 1rem; }
.rd-legal a {
  color: var(--c-ink);
  border-bottom: 1px solid var(--c-accent);
  text-decoration: none;
}
.rd-legal a:hover { color: var(--c-accent); }

/* ============================================================
   RESPONSIVE — top-level pages
   ============================================================ */
@media (max-width: 960px) {
  .rd-contact,
  .rd-project,
  .rd-map__head { grid-template-columns: 1fr; gap: 2.5rem; }
  .rd-project--reverse .rd-project__media { order: 0; }
  .rd-form__row { grid-template-columns: 1fr; }
  .rd-index-grid { grid-template-columns: repeat(2, 1fr); }
  .rd-features { grid-template-columns: 1fr; }
  .rd-feature { border-right: none; border-bottom: 1px solid var(--c-line); }
  .rd-feature:last-child { border-bottom: none; }
  .rd-contact-row { grid-template-columns: 1fr; gap: 0.35rem; }
  .rd-map__frame { aspect-ratio: 4/3; }
}
@media (max-width: 560px) {
  .rd-index-grid { grid-template-columns: 1fr; }
  .rd-project__meta { grid-template-columns: 1fr; }
}

/* ============================================================
   COOKIE BANNER — restyle under .rd theme
   ============================================================ */
body.rd .cookie-banner {
  background: var(--c-ink);
  color: var(--c-bg);
  border-top: 1px solid rgba(250,248,244,0.15);
  box-shadow: 0 -12px 40px rgba(0,0,0,0.15);
}
body.rd .cookie-banner .cookie-inner {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.5rem;
  flex-wrap: wrap;
}
body.rd .cookie-banner .cookie-text {
  font-family: var(--f-sans);
  font-size: 0.88rem;
  line-height: 1.55;
  color: rgba(250,248,244,0.85);
  margin: 0;
  flex: 1 1 320px;
}
body.rd .cookie-banner .cookie-text a {
  color: var(--c-accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(200,161,91,0.5);
}
body.rd .cookie-banner .cookie-text a:hover { border-bottom-color: var(--c-accent); }
body.rd .cookie-banner .cookie-buttons {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}
body.rd .cookie-banner .btn.cookie-accept,
body.rd .cookie-banner .btn.cookie-decline {
  font-family: var(--f-sans);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--track-lg);
  padding: 0.75rem 1.5rem;
  border-radius: 0;
  line-height: 1;
  cursor: pointer;
  transition: background var(--dur-1) var(--ease), color var(--dur-1) var(--ease), border-color var(--dur-1) var(--ease);
}
body.rd .cookie-banner .btn.cookie-accept {
  background: var(--c-bg);
  color: var(--c-ink);
  border: 1px solid var(--c-bg);
}
body.rd .cookie-banner .btn.cookie-accept:hover {
  background: transparent;
  color: var(--c-bg);
}
body.rd .cookie-banner .btn.cookie-decline {
  background: transparent;
  color: var(--c-bg);
  border: 1px solid rgba(250,248,244,0.35);
}
body.rd .cookie-banner .btn.cookie-decline:hover {
  border-color: var(--c-bg);
}

/* ============================================================
   REFINEMENTS — hero/image sizing and nav spacing tweaks
   ============================================================ */

/* Izdelki product subpages — editorial hero image treatment.
   The source photos are portrait A-series (≈1:1.41). Forcing them into a
   full-width landscape container produced either (a) a huge 600px tall
   block that pushed the body copy off-screen, or (b) a thin horizontal
   strip crop that looked mobile-phone-shaped. Instead we present the
   portrait image as a centred magazine-style plate: moderate width,
   natural portrait ratio, generous whitespace, a fine accent frame.
   Tehnike pages are untouched. */
body.rd.rd-product .rd-sub-hero__image {
  aspect-ratio: 5 / 6;
  width: min(100%, 560px);
  max-height: 680px;
  margin: 0 auto;
  position: relative;
  background: var(--c-bg-alt);
  box-shadow:
    0 1px 0 rgba(0, 0, 0, 0.04),
    0 40px 80px -40px rgba(15, 15, 15, 0.35);
  outline: 1px solid rgba(0, 0, 0, 0.06);
  outline-offset: 0;
}
body.rd.rd-product .rd-sub-hero__image::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  pointer-events: none;
  z-index: 2;
  mix-blend-mode: overlay;
}
body.rd.rd-product .rd-sub-hero__image img {
  object-position: center;
}
/* Give the plate breathing room above and below within the hero section */
body.rd.rd-product .rd-sub-hero .rd-sub-hero__image {
  margin-top: clamp(1rem, 2vw, 1.75rem);
}
@media (max-width: 900px) {
  body.rd.rd-product .rd-sub-hero__image {
    aspect-ratio: 4 / 5;
    width: min(100%, 420px);
    max-height: 540px;
  }
  body.rd.rd-product .rd-sub-hero__image::before {
    inset: 10px;
  }
}
@media (max-width: 480px) {
  body.rd.rd-product .rd-sub-hero__image {
    width: 100%;
    max-height: 460px;
  }
}

/* Projekti page: shrink the main project media column and trim the most
   oversized gallery cells so visitors don't scroll forever between blocks. */
body.rd .rd-project__media {
  aspect-ratio: 5/4;
  max-height: 560px;
}
body.rd .rd-gallery__item:nth-child(6n+1),
body.rd .rd-gallery__item:nth-child(2):last-child,
body.rd .rd-gallery__item:nth-child(4):last-child,
body.rd .rd-gallery__item:nth-child(5):last-child {
  aspect-ratio: 16/9;
}
body.rd .rd-gallery__item:nth-child(6n+6),
body.rd .rd-gallery__item:first-child:last-child,
body.rd .rd-gallery__item:nth-child(3):last-child {
  aspect-ratio: 21/8;
  max-height: 420px;
}
body.rd .rd-gallery__item:nth-child(6n+2),
body.rd .rd-gallery__item:nth-child(6n+3),
body.rd .rd-gallery__item:nth-child(6n+4),
body.rd .rd-gallery__item:nth-child(6n+5) {
  aspect-ratio: 3/4;
}

/* Navigation menu: the default gap of 0.25rem made the top-level items
   feel cramped. Open them up on the editorial (rd) template so each
   entry has breathing room. */
body.rd .nav-menu {
  gap: 0.85rem;
}
body.rd .header .nav-link {
  padding: 0.5rem 1.05rem;
}
@media (max-width: 1100px) and (min-width: 901px) {
  body.rd .nav-menu { gap: 0.5rem; }
  body.rd .header .nav-link { padding: 0.5rem 0.7rem; }
}

/* ============================================================
   MOBILE (≤768px) — nav / hamburger / dropdown / loader / cookies
   ============================================================ */
@media (max-width: 768px) {
  /* --- Logo and hamburger must sit ABOVE the slide-in nav menu.
         Both have z-index:1001 in style.css but no `position`, so the
         z-index was ignored and the menu panel drew over the logo.
         Giving them position:relative activates the stacking order. */
  body.rd .logo,
  body.rd .hamburger {
    position: relative;
    z-index: 1002;
  }
  /* Make the hamburger lines visible against the slid-in white menu
     (the original rule turned them white on transparent header). */
  body.rd .header .hamburger span {
    background: var(--c-ink);
  }

  /* --- Reset my desktop nav-spacing rules so they stop shadowing the
         mobile list layout in style.css. */
  body.rd .nav-menu {
    gap: 0;
    padding-top: calc(var(--header-height, 80px) + 1.25rem);
    padding-inline: 1.5rem;
  }
  body.rd .header .nav-link {
    padding: 14px 0;
    font-size: 0.86rem;
    letter-spacing: var(--track-sm);
    justify-content: space-between;
    width: 100%;
  }

  /* --- Submenu (Izdelki / Tehnike) links were invisible because the
         legacy dropdown kept desktop absolute positioning leftovers
         (min-width, transform) that pushed them off the menu panel.
         Force clean static flow, generous indent, visible type. */
  body.rd .dropdown {
    position: static;
    transform: none;
    left: auto;
    right: auto;
    top: auto;
    min-width: 0;
    width: 100%;
    background: var(--c-bg-alt);
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    margin: 0 0 0.5rem;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  body.rd .nav-item.dropdown-open .dropdown {
    padding: 0.4rem 0;
  }
  body.rd .dropdown a {
    display: block;
    width: 100%;
    padding: 0.6rem 0 0.6rem 1rem;
    font-size: 0.82rem;
    color: var(--c-ink);
    letter-spacing: 0.05em;
    text-transform: none;
    border-left: 2px solid var(--c-line);
    margin-left: 0.25rem;
  }
  body.rd .dropdown a:hover,
  body.rd .dropdown a:focus {
    background: transparent;
    color: var(--c-accent);
    border-left-color: var(--c-accent);
    padding-left: 1.1rem;
  }
  /* Arrow on mobile rotates nicely when the dropdown opens. */
  body.rd .nav-item.dropdown-open .nav-link .arrow { transform: rotate(180deg); }

  /* --- Loading screen: ARTLINIA wordmark was crammed against the
         spinner. Push it further down so there is clear breathing
         room between the circular loader and the logotype. */
  .loader-text {
    bottom: 34%;
    font-size: 0.95rem;
    letter-spacing: 3px;
  }

  /* --- Cookie banner: tighter padding, and an extra 10% on the hidden
         transform so the shadow / radius can't peek above the fold
         after the user clicks "Zavrni". */
  body.rd .cookie-banner {
    padding: 0;
    transform: translateY(110%);
  }
  body.rd .cookie-banner.visible { transform: translateY(0); }
  body.rd .cookie-banner .cookie-inner {
    flex-direction: column;
    align-items: stretch;
    padding: 0.9rem 1.1rem 1rem;
    gap: 0.75rem;
    text-align: center;
  }
  body.rd .cookie-banner .cookie-text {
    font-size: 0.8rem;
    line-height: 1.5;
    flex: 0 0 auto;
  }
  body.rd .cookie-banner .cookie-buttons {
    display: flex;
    gap: 0.6rem;
    width: 100%;
  }
  body.rd .cookie-banner .btn.cookie-accept,
  body.rd .cookie-banner .btn.cookie-decline {
    flex: 1 1 0;
    padding: 0.6rem 0.5rem;
    font-size: 0.7rem;
    letter-spacing: var(--track-sm);
  }
}

/* ============================================================
   CTA buttons on dark background — universal visibility override
   ------------------------------------------------------------
   The default .rd-btn uses near-black ink on near-black ink, and the
   .rd-btn--ghost variant uses a faint light-ink border — both vanish
   on the dark .rd-cta panel. Some pages had inline style overrides,
   others did not, producing inconsistent/invisible buttons across
   subpages. These rules force correct high-contrast styling on every
   button that lives inside a .rd-cta, regardless of variant class,
   so the look is identical site-wide.
   ============================================================ */
.rd-cta .rd-btn {
  background: var(--c-bg);
  color: var(--c-ink);
  border: 1px solid var(--c-bg);
}
.rd-cta .rd-btn:hover {
  background: transparent;
  color: var(--c-bg);
  border-color: var(--c-bg);
}
.rd-cta .rd-btn--outline,
.rd-cta .rd-btn--ghost {
  background: transparent;
  color: var(--c-bg);
  border: 1px solid rgba(250, 248, 244, 0.45);
}
.rd-cta .rd-btn--outline:hover,
.rd-cta .rd-btn--ghost:hover {
  background: var(--c-bg);
  color: var(--c-ink);
  border-color: var(--c-bg);
}
.rd-cta .rd-btn .arr {
  transition: transform var(--dur-1) var(--ease);
}

/* ============================================================
   "Naša zgodba" / rd-intro — add a media column so the left half
   of the 2-col grid doesn't read as empty white space.
   ============================================================ */
.rd-intro__media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--c-bg-alt);
  box-shadow: 0 40px 80px -40px rgba(15, 15, 15, 0.3);
}
.rd-intro__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-3) var(--ease);
}
.rd-intro__media:hover img {
  transform: scale(1.03);
}
/* Subtle inner hairline frame for magazine feel. */
.rd-intro__media::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  pointer-events: none;
  mix-blend-mode: overlay;
}
@media (max-width: 900px) {
  .rd-intro__media {
    aspect-ratio: 16 / 10;
    max-height: 380px;
  }
  .rd-intro__media::after { inset: 10px; }
}
