/* ─── TOKENS ─────────────────────────────────────────────── */
:root {
  /* CORE */
  --bg:         #0e0c09;
  --surface:    #141210;
  --text:       #ede8dc;
  --muted:      #7a7264;
  --accent:     #c9421f;

  /* UNIFIED TYPOGRAPHY (Fraunces + Inter Tight + JetBrains Mono only) */
  --display: 'Fraunces', 'Times New Roman', serif;
  --body:    'Inter Tight', system-ui, -apple-system, sans-serif;
  --mono:    'JetBrains Mono', ui-monospace, 'SFMono-Regular', monospace;
  /* Hero/preload aliases — same family, different weight/style */
  --font-display: var(--display);
  --font-body:    var(--body);

  /* EDITORIAL PALETTE */
  --bg-deep:    #1a1410;
  --bg-paper:   #ede4d3;
  --ink:        #221a14;
  --ink-soft:   rgba(34, 26, 20, 0.74);
  --ink-mute:   rgba(34, 26, 20, 0.55);
  --paper-soft: rgba(237, 228, 211, 0.80);
  --paper-mute: rgba(237, 228, 211, 0.55);
  --accent-ed:  #b8401e;
  --accent-2:   #d8674a;
  --rule:       rgba(34, 26, 20, 0.16);
  --rule-light: rgba(237, 228, 211, 0.14);
}

/* ─── RESET ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background:  var(--bg);
  color:       var(--text);
  font-family: var(--font-body);
  font-size:   clamp(14px, 4vw, 16px);
  line-height: 1.6;
  overflow-x:  hidden;
  -webkit-font-smoothing: antialiased;
}
img    { display: block; max-width: 100%; }
a      { color: inherit; text-decoration: none; }
button { background: none; border: none; cursor: pointer; }
em     { font-style: italic; }

/* ─── PRELOAD ─────────────────────────────────────────────── */
#preload {
  position:        fixed;
  inset:           0;
  background:      #000;
  display:         flex;
  flex-direction:  column;
  align-items:     center;
  justify-content: center;
  gap:             20px;
  z-index:         200;
}
#preload-logo {
  font-family:    var(--display);
  font-style:     italic;
  font-weight:    400;
  font-size:      clamp(34px, 9vw, 56px);
  letter-spacing: -0.01em;
  color:          var(--text);
  font-optical-sizing: auto;
}
#preload-bar-track {
  width:      240px;
  height:     1px;
  background: rgba(255,255,255,0.1);
  position:   relative;
  overflow:   hidden;
}
#preload-bar-fill {
  position:   absolute;
  inset:      0 auto 0 0;
  width:      0%;
  background: var(--accent);
  transition: width 60ms linear;
}
#preload-pct {
  font-size:      0.68rem;
  letter-spacing: 0.14em;
  color:          var(--muted);
  font-family:    var(--font-body);
}

/* ─── HERO ──────────────────────────────────────────────── */
#hero-trigger { height: 360vh; position: relative; }
#hero-pin {
  position: sticky;
  top:      0;
  height:   100vh;
  width:    100%;
  overflow: hidden;
  contain:  layout paint;
}
#hero-video {
  position:   absolute;
  inset:      0;
  width:      100%;
  height:     100%;
  object-fit: cover;
  z-index:    1;
  background: #000;
}
/* Single-stop dim layer between video (z:1) and canvas (z:3) — keeps the
   cinematic shade with one cheap composite, no filters. */
#hero-pin::after {
  content:    '';
  position:   absolute;
  inset:      0;
  z-index:    2;
  pointer-events: none;
  background: rgba(20, 12, 8, 0.32);
}
#canvas-layer {
  position:    absolute;
  inset:       0;
  z-index:     3;
  will-change: opacity;
  /* State C: opacity tween 1→0 reveals the dough video underneath. */
}
#particle-canvas {
  position:       absolute;
  inset:          0;
  width:          100%;
  height:         100%;
  z-index:        4;            /* above frame canvas, below state-b-text */
  pointer-events: none;
  opacity:        0;            /* GSAP fades in at start of state C */
  will-change:    opacity;
  display:        block;
}
#hero-canvas {
  display:    block;
  width:      100%;
  height:     100%;
  /* No CSS background — canvas pixels are painted black via fillRect during
     states A–C, then cleared to transparent for state D so video shows. */
}
/* STATE B — center-bottom outlined letterform that fills on scroll. */
#state-b-text {
  position:        absolute;
  inset:           0;
  display:         flex;
  align-items:     center;
  justify-content: center;
  /* Minimal padding — the headline should FILL the screen */
  padding:         clamp(4px, 1vh, 12px) clamp(4px, 2vw, 16px);
  text-align:      center;
  opacity:         1;
  pointer-events:  none;
  z-index:         5;
}
.hero-headline {
  display:         inline-flex;
  flex-direction:  column;
  align-items:     center;
  gap:             0.04em;
  font-family:     'Anton', 'Impact', sans-serif;
  font-weight:     400;
  /* min(vh, vw) makes the headline fill the binding viewport edge —
     huge on every device. Capped at 380px so 4K desktops don't overshoot. */
  font-size:       min(30vh, 46vw, 380px);
  line-height:     0.92;
  letter-spacing:  -0.012em;
  text-transform:  uppercase;
  color:           var(--text);
  text-shadow:     0 2px 22px rgba(0, 0, 0, 0.72);
  text-align:      center;
}
.hero-headline > span { display: block; }
/* Landscape phones: vh becomes the constraint — bias toward height-fill */
@media (orientation: landscape) and (max-height: 500px) {
  .hero-headline { font-size: min(28vh, 38vw); }
}

/* STATE D — single oversized italic word, dead-center, scales up.
   The dough video falls; the word lands like a stamp. */
#state-d-text {
  position:         absolute;
  top:              50%;
  left:             50%;
  text-align:       center;
  transform-origin: center center;
  opacity:          0;
  pointer-events:   none;
  z-index:          6;
  will-change:      transform, opacity;
}
.state-d-word {
  display:          block;
  font-family:      var(--display);
  font-style:       italic;
  font-weight:      400;
  font-size:        clamp(120px, 32vw, 360px);
  line-height:      0.86;
  letter-spacing:   -0.045em;
  color:            var(--text);
  text-shadow:      0 4px 60px rgba(0, 0, 0, 0.72);
  font-optical-sizing: auto;
}

/* ═══════════════════════════════════════════════════════════
   POST-HERO BASE
════════════════════════════════════════════════════════ */

.section-block {
  position: relative;
  overflow: hidden;
  content-visibility: auto;
  contain-intrinsic-size: auto 800px;
}
/* Pin-target needs accurate layout for the clip-path reveal — opt out */
.section-pin-target {
  content-visibility: visible;
  contain-intrinsic-size: none;
}

/* Two background tones + matching ink colors */
.section--paper {
  background: var(--bg-paper);
  color:      var(--ink);
}
.section--deep {
  background: var(--bg-deep);
  color:      var(--bg-paper);
}

/* Subtle radial vignette only on dark sections (no flat gradients) */
.section--deep::before {
  content:    '';
  position:   absolute;
  inset:      0;
  background: radial-gradient(ellipse at 50% 30%, rgba(255,225,200,0.04), transparent 60%);
  pointer-events: none;
}

.section-inner {
  position: relative;
  z-index:  1;
  padding:  clamp(96px, 16vw, 160px) clamp(20px, 6vw, 64px);
  max-width: 1440px;
  margin:    0 auto;
}

/* ═══════════════════════════════════════════════════════════
   SECTION TRANSITIONS
   a. SVG curves       — between mood shifts (paper ↔ deep)
   b. Diagonal cuts    — between paper / paper-2
   c. Pinned overlap   — used ONCE between Storia → Atmosfera
════════════════════════════════════════════════════════ */
.transition {
  display:    block;
  width:      100%;
  line-height: 0;
  position:   relative;
  z-index:    2;
}
.transition svg {
  display: block;
  width:   100%;
  height:  clamp(80px, 12vw, 160px);
}

/* curve dark → paper: hero (#0e0c09) sits above, paper below */
.transition--curve-from-dark        { background: #0e0c09; }
.transition--curve-from-dark path   { fill: var(--bg-paper); }

/* curve paper → deep */
.transition--curve-to-dark          { background: var(--bg-paper); }
.transition--curve-to-dark path     { fill: var(--bg-deep); }

/* ─── PINNED OVERLAP (used once: Storia → Atmosfera) ─────── */
.pin-overlap-scaffold {
  position: relative;
  height:   100vh;
  z-index:  10;
}
.pin-overlap-anchor {
  position:    sticky;
  top:         0;
  height:      100vh;
  display:     grid;
  place-items: center;
  padding:     0 clamp(24px, 8vw, 80px);
}
.pin-overlap-text {
  font-family: var(--display);
  font-style:  italic;
  font-weight: 300;
  font-size:   clamp(34px, 7vw, 76px);
  line-height: 1.08;
  letter-spacing: -0.015em;
  color:       var(--bg-paper);
  text-align:  center;
  max-width:   16ch;
  font-optical-sizing: auto;
}
.pin-overlap-text em { color: var(--accent-2); font-style: italic; }

.section-pin-target {
  position:    relative;
  z-index:     11;
  margin-top:  -100vh;
  clip-path:   inset(100% 0 0 0);
  will-change: clip-path;
  /* JS drives clip-path via `--reveal` (0 → 1) for smooth, reversible scroll. */
  clip-path:   inset(calc((1 - var(--reveal, 0)) * 100%) 0 0 0);
}

/* ═══════════════════════════════════════════════════════════
   SHARED EDITORIAL ELEMENTS
════════════════════════════════════════════════════════ */

/* Section eyebrow — mono uppercase, em-dash + Roman numeral + label */
.section-eyebrow {
  font-family:    var(--mono);
  font-size:      11px;
  letter-spacing: 0.18em;
  color:          var(--accent-ed);
  text-transform: uppercase;
  padding-bottom: 24px;
  position:       relative;
}
.section--deep .section-eyebrow { color: var(--accent-2); }

/* Eyebrow underline rule */
.section-eyebrow::after {
  content:    '';
  display:    block;
  width:      36px;
  height:     1px;
  margin-top: 16px;
  background: var(--accent-ed);
  opacity:    0.5;
}
.section--deep .section-eyebrow::after { background: var(--accent-2); }

/* Section title */
.section-title {
  font-family: var(--display);
  font-weight: 400;
  font-size:   clamp(40px, 8.5vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin-bottom: clamp(40px, 8vw, 64px);
  font-optical-sizing: auto;
}
.section-title em,
.atm-headline em,
.rezervo-headline em,
.menu-name em {
  font-style: italic;
  color:      var(--accent-ed);
}
.section--deep .section-title em,
.section--deep .atm-headline em,
.section--deep .rezervo-headline em {
  color: var(--accent-2);
}

/* Numerals — display italic for any in-body numbers */
.numeral {
  font-family:           var(--display);
  font-style:            italic;
  font-size:             0.94em;
  font-feature-settings: "lnum" 1;
  letter-spacing:        0;
}

/* Line reveal */
.line {
  display:     block;
  overflow:    hidden;
  line-height: 1.0;
}
.line-inner {
  display:    block;
  transform:  translateY(110%);
  transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.is-revealed .line-inner                    { transform: translateY(0); }
.is-revealed .line:nth-child(2) .line-inner { transition-delay: 0.12s; }
.is-revealed .line:nth-child(3) .line-inner { transition-delay: 0.24s; }
.is-revealed .line:nth-child(4) .line-inner { transition-delay: 0.36s; }

/* Word-by-word reveal — used only on manifesto-quote + rezervo-headline */
.js-split-words .word {
  display:        inline-block;
  overflow:       hidden;
  vertical-align: top;
}
.js-split-words .word-inner {
  display:    inline-block;
  transform:  translateY(105%);
  opacity:    0;
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              opacity   0.9s ease;
}
.js-split-words.is-revealed .word-inner {
  transform: translateY(0);
  opacity:   1;
}

/* Menu name italic + color shift on hover (desktop only) */
.menu-name {
  transition: color 0.36s ease, font-style 0.36s ease;
}
@media (hover: hover) and (pointer: fine) {
  .menu-item        { transition: background 0.5s cubic-bezier(0.16,1,0.3,1); }
  .menu-item:hover  { background: rgba(184, 64, 30, 0.05); }
  .menu-item:hover .menu-name      { font-style: italic; color: var(--accent-ed); }
  .menu-item:hover .menu-name em   { color: var(--accent-ed); }
  .menu-item:hover .menu-price     { color: var(--accent-2); }
}


/* ═══════════════════════════════════════════════════════════
   I · MANIFESTO
════════════════════════════════════════════════════════ */
.manifesto-inner {
  display:         flex;
  flex-direction:  column;
  align-items:     center;
  justify-content: center;
  text-align:      center;
  min-height:      72vh;
  gap:             32px;
  padding-top:     clamp(120px, 20vw, 200px);
  padding-bottom:  clamp(120px, 20vw, 200px);
}
.manifesto-accent-line {
  width:      1px;
  height:     56px;
  background: var(--accent-ed);
  opacity:    0.55;
}
.manifesto-quote {
  font-family: var(--display);
  font-weight: 300;
  font-style:  italic;
  font-size:   clamp(28px, 6.4vw, 64px);
  line-height: 1.22;
  letter-spacing: -0.012em;
  color:       var(--ink);
  max-width:   22ch;
  font-optical-sizing: auto;
}
.manifesto-quote em { color: var(--accent-ed); }
.manifesto-source {
  font-family:    var(--mono);
  font-size:      0.65rem;
  letter-spacing: 0.16em;
  color:          var(--ink-mute);
  text-transform: uppercase;
}

/* ═══════════════════════════════════════════════════════════
   II · PJEKJA — scroll-driven 90-second bake timeline
   The horizontal track fills with terracotta as you scroll past the
   section. The counter ticks 0 → 90. Four phase markers below.
   --bakeline-progress (0..1) is set on #bakeline-stage by main.js rAF.
════════════════════════════════════════════════════════ */
.bakeline-inner { padding-block: clamp(96px, 14vw, 160px); }

.bakeline-title {
  font-family:    var(--display);
  font-style:     italic;
  font-weight:    400;
  font-size:      clamp(34px, 7vw, 72px);
  line-height:    1.02;
  letter-spacing: -0.02em;
  color:          var(--ink);
  margin-top:     8px;
  margin-bottom:  clamp(48px, 8vw, 80px);
  font-optical-sizing: auto;
  max-width:      18ch;
}

.bakeline-stage {
  --bakeline-progress: 0;
  margin-bottom: clamp(28px, 5vw, 44px);
}

.bakeline-counter {
  font-family:    var(--display);
  font-style:     italic;
  font-weight:    300;
  font-size:      clamp(96px, 22vw, 280px);
  line-height:    0.86;
  letter-spacing: -0.05em;
  color:          var(--ink);
  font-feature-settings: "lnum" 1;
  margin-bottom:  clamp(20px, 3.5vw, 36px);
  display:        flex;
  align-items:    baseline;
  gap:            0.04em;
}
.bakeline-counter .bakeline-unit {
  font-size:      0.36em;
  color:          var(--accent-ed);
  font-style:     italic;
  margin-left:    0.05em;
}

.bakeline-track {
  position: relative;
  height:   2px;
  background: rgba(34, 26, 20, 0.16);
  width:    100%;
  margin-bottom: clamp(20px, 3.5vw, 36px);
}
.bakeline-fill {
  position: absolute;
  inset:    0 auto 0 0;
  height:   100%;
  width:    100%;
  background: var(--accent-ed);
  transform: scaleX(var(--bakeline-progress, 0));
  transform-origin: left center;
  /* Subtle warmth at the tip — embers traveling along the wire. */
  box-shadow: 0 0 16px rgba(184, 64, 30, 0.45);
}
.bakeline-tick {
  position: absolute;
  top:      -4px;
  left:     var(--at);
  width:    1px;
  height:   10px;
  background: rgba(34, 26, 20, 0.32);
  transform: translateX(-0.5px);
}

.bakeline-phases {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(8px, 2vw, 20px);
}
.bakeline-phase {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-right: clamp(4px, 1vw, 10px);
}
.bakeline-phase-time {
  font-family:    var(--display);
  font-style:     italic;
  font-weight:    400;
  font-size:      clamp(20px, 3.6vw, 36px);
  line-height:    1;
  color:          var(--accent-ed);
  letter-spacing: -0.01em;
  font-feature-settings: "lnum" 1;
}
.bakeline-phase-name {
  font-family:    var(--mono);
  font-size:      clamp(9.5px, 1.1vw, 11px);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color:          var(--ink-mute);
  line-height:    1.45;
}

.bakeline-note {
  margin-top:     clamp(40px, 7vw, 64px);
  font-family:    var(--display);
  font-style:     italic;
  font-weight:    400;
  font-size:      clamp(15px, 1.6vw, 21px);
  line-height:    1.5;
  color:          var(--ink-soft);
  max-width:      48ch;
  font-optical-sizing: auto;
}

/* Tablet (480 → 720): tighten phases */
@media (max-width: 720px) {
  .bakeline-phases     { gap: 8px; }
  .bakeline-phase      { padding-right: 4px; }
  .bakeline-phase-name { font-size: 10px; letter-spacing: 0.10em; line-height: 1.35; }
}
/* Mobile (≤480): smaller everything, but keep 4 columns for the data-bar feel */
@media (max-width: 480px) {
  .bakeline-title      { font-size: clamp(28px, 8vw, 40px); margin-bottom: clamp(36px, 10vw, 56px); }
  .bakeline-counter    { font-size: clamp(88px, 30vw, 160px); }
  .bakeline-phase-time { font-size: clamp(15px, 4.5vw, 22px); }
  .bakeline-phase-name { font-size: 9px;  letter-spacing: 0.08em; line-height: 1.3; }
}
/* Tiny screens (≤360px, iPhone SE etc): step phase grid down to 2x2 */
@media (max-width: 360px) {
  .bakeline-phases     { grid-template-columns: repeat(2, 1fr); row-gap: 16px; }
  .bakeline-phase-name { font-size: 10px; letter-spacing: 0.12em; }
}

/* ═══════════════════════════════════════════════════════════
   III · MENYJA — 2 × 2 grid (4 items)
════════════════════════════════════════════════════════ */
.menu-header { margin-bottom: clamp(40px, 7vw, 64px); }

.menu-list {
  display:        grid;
  grid-template-columns: repeat(2, 1fr);
  border-top:     1px solid var(--rule);
  border-left:    1px solid var(--rule);
}
.menu-item {
  display:         grid;
  grid-template-rows: auto auto 1fr auto;
  gap:             clamp(14px, 2vw, 22px);
  padding:         clamp(32px, 5vw, 56px) clamp(28px, 4.5vw, 48px);
  border-right:    1px solid var(--rule);
  border-bottom:   1px solid var(--rule);
  position:        relative;
  background:      transparent;
  transition:      background 0.6s cubic-bezier(0.16,1,0.3,1);
}
.menu-num {
  font-family:    var(--mono);
  font-size:      0.65rem;
  letter-spacing: 0.22em;
  color:          var(--accent-ed);
  opacity:        0.75;
  text-transform: uppercase;
}
.menu-name {
  font-family:    var(--display);
  font-weight:    400;
  font-size:      clamp(28px, 4.2vw, 48px);
  line-height:    1.04;
  letter-spacing: -0.018em;
  color:          var(--ink);
  font-optical-sizing: auto;
}
.menu-name em { font-style: italic; color: var(--accent-ed); }
.menu-desc {
  font-family: var(--body);
  font-weight: 300;
  font-size:   clamp(13px, 1vw, 14.5px);
  line-height: 1.7;
  color:       var(--ink-soft);
  max-width:   38ch;
}
.menu-price {
  font-family: var(--display);
  font-style:  italic;
  font-weight: 400;
  font-size:   clamp(28px, 3.6vw, 40px);
  letter-spacing: -0.01em;
  color:       var(--accent-ed);
  margin-top:  auto;
}

@media (max-width: 640px) {
  .menu-item {
    padding: clamp(20px, 5vw, 28px) clamp(16px, 4vw, 22px);
    gap:     clamp(10px, 2.4vw, 14px);
  }
  .menu-name  { font-size: clamp(20px, 6vw, 28px); }
  .menu-desc  { font-size: clamp(11.5px, 3vw, 13px); line-height: 1.55; }
  .menu-price { font-size: clamp(22px, 6.5vw, 30px); }
  .menu-num   { font-size: 0.58rem; letter-spacing: 0.18em; }
}

.menu-footer-note {
  margin-top:     clamp(28px, 5vw, 44px);
  font-family:    var(--mono);
  font-size:      0.66rem;
  letter-spacing: 0.14em;
  color:          var(--ink-mute);
  text-align:     center;
  text-transform: uppercase;
}

/* ═══════════════════════════════════════════════════════════
   MARQUEE — single track, JS rAF drift + scroll-velocity boost
════════════════════════════════════════════════════════ */
.marquee-section {
  overflow:   hidden;
  padding:    clamp(48px, 9vw, 96px) 0;
  position:   relative;
  border-top: 1px solid var(--rule-light);
  border-bottom: 1px solid var(--rule-light);
}
.marquee-clip {
  overflow:    hidden;
  white-space: nowrap;
}
.marquee-track {
  display:     inline-flex;
  align-items: center;
  gap:         clamp(28px, 4.5vw, 64px);
  will-change: transform;
}
.marquee-item {
  font-family:    var(--display);
  font-style:     italic;
  font-weight:    300;
  font-size:      clamp(80px, 14vw, 200px);
  line-height:    0.95;
  letter-spacing: -0.02em;
  color:          var(--bg-paper);
  white-space:    nowrap;
  font-optical-sizing: auto;
  font-feature-settings: "ss01";
}
.marquee-dot {
  font-family: var(--display);
  font-style:  italic;
  font-size:   clamp(50px, 9vw, 130px);
  color:       var(--accent-2);
  flex-shrink: 0;
  line-height: 1;
  transform:   translateY(-0.06em);
}

/* ═══════════════════════════════════════════════════════════
   IV · HISTORIA
════════════════════════════════════════════════════════ */
#storia { padding: 0; }
.storia-image-wrap {
  position:     relative;
  width:        100%;
  aspect-ratio: 16/9;
  overflow:     hidden;
}
@media (max-width: 640px) { .storia-image-wrap { aspect-ratio: 4/3; } }
.storia-image-wrap img {
  width:      100%;
  height:     100%;
  object-fit: cover;
  filter:     brightness(0.78) sepia(0.12);
}
.storia-gradient {
  position:   absolute;
  inset:      0;
  background: linear-gradient(to bottom, transparent 30%, var(--bg-deep) 100%);
}
.storia-inner { padding-top: clamp(40px, 8vw, 64px); }
.storia-title { margin-bottom: clamp(28px, 5vw, 40px); }
.storia-title em { color: var(--accent-2); }

.storia-photo-detail {
  float:        right;
  width:        38%;
  aspect-ratio: 4/5;
  background:   #2a221a url('media/about.jpg') center / cover;
  filter:       brightness(0.7) sepia(0.18);
  margin:       0 0 clamp(16px, 4vw, 24px) clamp(20px, 4vw, 32px);
}

.storia-body { overflow: hidden; }
.storia-body p {
  font-family:   var(--body);
  font-weight:   300;
  font-size:     clamp(14px, 1.18vw, 17px);
  color:         var(--paper-soft);
  line-height:   1.85;
  margin-bottom: 1.1rem;
  max-width:     54ch;
}

.pull-quote {
  margin:      clamp(36px, 7vw, 56px) 0 clamp(36px, 7vw, 56px);
  padding-left: clamp(0px, 4vw, 56px);
  position:    relative;
  font-family: var(--display);
  font-style:  italic;
  font-weight: 400;
  font-size:   clamp(22px, 3.4vw, 38px);
  line-height: 1.32;
  letter-spacing: -0.012em;
  color:       var(--bg-paper);
  max-width:   38ch;
  font-optical-sizing: auto;
}
.pull-quote::before {
  content:        'Nga vajza e themeluesit';
  display:        block;
  font-family:    var(--mono);
  font-style:     normal;
  font-size:      0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color:          var(--accent-2);
  margin-bottom:  16px;
  opacity:        0.75;
}

.storia-detail-row {
  display:        grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top:     clamp(40px, 8vw, 64px);
  border-top:     1px solid var(--rule-light);
  clear:          both;
}
.storia-detail {
  padding:      clamp(24px, 4vw, 36px) 0;
  padding-right: clamp(16px, 3vw, 24px);
  border-right: 1px solid var(--rule-light);
  display:      flex;
  flex-direction: column;
  gap:          8px;
}
.storia-detail:last-child  { border-right: none; }
.storia-detail-num {
  font-family: var(--display);
  font-style:  italic;
  font-weight: 300;
  font-size:   clamp(36px, 6vw, 64px);
  line-height: 1;
  color:       var(--bg-paper);
  letter-spacing: -0.02em;
  font-optical-sizing: auto;
}
.storia-detail-label {
  font-family:    var(--mono);
  font-size:      0.6rem;
  letter-spacing: 0.14em;
  color:          var(--paper-mute);
  text-transform: uppercase;
}

@media (max-width: 720px) {
  .storia-detail      { padding-right: clamp(8px, 2vw, 14px); }
  .storia-detail-num  { font-size: clamp(28px, 7vw, 44px); }
  .storia-detail-label{ font-size: 0.55rem; letter-spacing: 0.1em; }
  .storia-photo-detail{ width: 50%; }
}

/* ═══════════════════════════════════════════════════════════
   V · EKSPERIENCA
════════════════════════════════════════════════════════ */
.atm-grid {
  display:        grid;
  grid-template-columns: 1fr 1fr;
  gap:            clamp(40px, 7vw, 96px);
  align-items:    start;
}
@media (max-width: 880px) {
  .atm-grid { grid-template-columns: 1fr; }
}
.atm-headline {
  font-family:    var(--display);
  font-weight:    300;
  font-size:      clamp(48px, 8.5vw, 110px);
  line-height:    0.94;
  letter-spacing: -0.025em;
  margin-bottom:  clamp(32px, 6vw, 48px);
  font-optical-sizing: auto;
}
.atm-headline em { color: var(--accent-ed); }

.location-block { margin-top: clamp(24px, 5vw, 36px); }
.location-street {
  font-family: var(--display);
  font-style:  italic;
  font-weight: 400;
  font-size:   clamp(22px, 3vw, 36px);
  line-height: 1.2;
  margin-bottom: 12px;
  color:       var(--ink);
  letter-spacing: -0.015em;
}
.location-mono {
  font-family:    var(--mono);
  font-size:      0.66rem;
  letter-spacing: 0.16em;
  color:          var(--ink-soft);
  text-transform: uppercase;
  line-height:    2.1;
}

.atm-right p {
  font-family:   var(--body);
  font-weight:   300;
  font-size:     clamp(14px, 1.18vw, 17px);
  color:         var(--ink-soft);
  line-height:   1.85;
  margin-bottom: 1.1rem;
  max-width:     50ch;
}

.site-plan-wrap {
  margin-top: clamp(28px, 5vw, 40px);
  border:     1px solid var(--rule);
  padding:    clamp(20px, 4vw, 32px);
  background: rgba(34, 26, 20, 0.025);
}
.site-plan {
  display: block;
  width:   100%;
  height:  auto;
  color:   var(--ink);
}

/* ═══════════════════════════════════════════════════════════
   VI · REZERVO
════════════════════════════════════════════════════════ */
.rezervo-inner {
  display:         flex;
  flex-direction:  column;
  align-items:     flex-start;
  min-height:      82vh;
  justify-content: center;
}
.rezervo-headline {
  font-family:    var(--display);
  font-weight:    300;
  font-size:      clamp(80px, 18vw, 220px);
  line-height:    0.86;
  letter-spacing: -0.035em;
  margin-bottom:  clamp(20px, 4vw, 32px);
  color:          var(--bg-paper);
  font-optical-sizing: auto;
}
.rezervo-headline em { color: var(--accent-2); }
.rezervo-sub {
  font-family:    var(--mono);
  font-size:      0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color:          var(--paper-mute);
  margin-bottom:  clamp(36px, 7vw, 56px);
}
.rezervo-phone {
  display:        block;
  font-family:    var(--display);
  font-style:     italic;
  font-weight:    400;
  font-size:      clamp(28px, 5.5vw, 56px);
  color:          var(--bg-paper);
  margin-bottom:  clamp(24px, 5vw, 40px);
  letter-spacing: -0.015em;
  transition:     color 0.25s ease;
  font-optical-sizing: auto;
}
.rezervo-phone:hover { color: var(--accent-2); }

.rezervo-btn {
  display:        inline-block;
  padding:        18px 44px;
  background:     var(--accent-ed);
  border:         1px solid var(--accent-ed);
  color:          var(--bg-paper);
  font-family:    var(--mono);
  font-size:      0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition:     background 0.25s ease, color 0.25s ease,
                  transform 0.6s cubic-bezier(0.16,1,0.3,1);
  -webkit-tap-highlight-color: transparent;
  border-radius:  2px;
  will-change:    transform;
}
.rezervo-btn:active,
.rezervo-btn:hover { background: var(--accent-2); }

/* ═══════════════════════════════════════════════════════════
   FOOTER
════════════════════════════════════════════════════════ */
#footer {
  background:    var(--bg-deep);
  color:         var(--bg-paper);
  border-top:    1px solid var(--rule-light);
  overflow:      hidden;
  position:      relative;
}
.footer-inner {
  position:       relative;
  z-index:        1;
  padding:        clamp(72px, 14vw, 120px) clamp(20px, 6vw, 64px) clamp(40px, 8vw, 60px);
  max-width:      1440px;
  margin:         0 auto;
  display:        flex;
  flex-direction: column;
  gap:            44px;
}
.footer-cols {
  display:               grid;
  grid-template-columns: repeat(3, 1fr);
  gap:                   32px clamp(28px, 4vw, 64px);
}
.footer-col {
  border-left: 1px solid var(--rule-light);
  padding-left: clamp(20px, 3vw, 32px);
}
.footer-col:first-child { border-left: none; padding-left: 0; }
.footer-label {
  font-family:    var(--mono);
  font-size:      0.6rem;
  letter-spacing: 0.22em;
  color:          var(--accent-2);
  text-transform: uppercase;
  margin-bottom:  14px;
  opacity:        0.85;
}
.footer-val {
  font-family:    var(--mono);
  font-size:      0.74rem;
  letter-spacing: 0.06em;
  color:          var(--paper-soft);
  line-height:    2.0;
}

@media (max-width: 880px) {
  .footer-cols { grid-template-columns: repeat(2, 1fr); gap: 28px clamp(20px, 4vw, 36px); }
  .footer-col:nth-child(odd) { border-left: none; padding-left: 0; }
  .footer-col:last-child {
    grid-column:  1 / -1;
    border-left:  none;
    padding-left: 0;
    border-top:   1px solid var(--rule-light);
    padding-top:  20px;
  }
}

.footer-legal {
  font-family: var(--mono);
  font-size:   0.65rem;
  color:       rgba(237, 228, 211, 0.32);
  padding-top: 24px;
  border-top:  1px solid var(--rule-light);
  letter-spacing: 0.04em;
}
.footer-legal strong {
  color:       var(--paper-soft);
  font-weight: 400;
}

/* ─── SAFE AREA ──────────────────────────────────────────── */
@supports (padding: max(0px)) {
  body { padding-bottom: env(safe-area-inset-bottom); }
}
