/* ==========================================================================
   Tango Caffè — Concept A: L'Angolo Inox & Cotto
   Zero-CDN Self-Hosted Stylesheet · Atelier v8
   ========================================================================== */

@font-face {
  font-family: "Cabinet Grotesk";
  src: url("../fonts/cabinet-grotesk-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Cabinet Grotesk";
  src: url("../fonts/cabinet-grotesk-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Cabinet Grotesk";
  src: url("../fonts/cabinet-grotesk-800-normal.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Satoshi";
  src: url("../fonts/satoshi-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Satoshi";
  src: url("../fonts/satoshi-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Satoshi";
  src: url("../fonts/satoshi-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Core Surfaces & Inks — Raw Florentine Plaster-Paper + Morning Sunlight, Espresso-Iron & Burnished Cotto */
  --ground-light: oklch(0.946 0.004 240);
  --surface-steel: oklch(0.902 0.010 78);
  --ground-iron: oklch(0.165 0.015 48);
  --surface-iron: oklch(0.215 0.016 48);
  --ground-cotto: oklch(0.36 0.115 36);
  --surface-cotto: oklch(0.31 0.105 36);

  --accent-cotto: oklch(0.47 0.145 36);
  --accent-cotto-hover: oklch(0.41 0.145 36);
  --accent-amber: oklch(0.75 0.135 66);
  --accent-gold-cotto: oklch(0.89 0.095 78);
  --status-open-light: oklch(0.50 0.115 148);
  --status-open-dark: oklch(0.74 0.12 148);

  --ink-dark: oklch(0.175 0.016 48);
  --ink-muted: oklch(0.39 0.018 52);
  --ink-light: oklch(0.958 0.010 84);
  --ink-light-muted: oklch(0.77 0.014 82);

  --rule-light: oklch(0.24 0.024 56 / 0.16);
  --rule-dark: oklch(0.958 0.010 84 / 0.16);
  --rule-cotto: oklch(0.958 0.010 84 / 0.24);
  --mullion-light: oklch(0.24 0.024 56 / 0.08);
  --mullion-dark: oklch(0.958 0.010 84 / 0.065);

  --outline-light: oklch(0.22 0.025 54 / 0.14);
  --outline-dark: oklch(1 0 0 / 0.16);

  /* Dynamic Ch. 3 Daylight Surface */
  --dial-bg: oklch(0.944 0.016 80);

  /* Typography */
  --font-display: "Cabinet Grotesk", system-ui, -apple-system, sans-serif;
  --font-body: "Satoshi", system-ui, -apple-system, sans-serif;

  --t-monument: clamp(3.75rem, 12.2vw, 11.75rem);
  --t-h2: clamp(2.125rem, 4.4vw, 3.875rem);
  --t-h3: clamp(1.375rem, 2.1vw, 2rem);
  --t-clock: clamp(2.625rem, 4.2vw, 3.75rem);
  --t-lead: clamp(1.0625rem, 1.45vw, 1.3125rem);
  --t-body: clamp(0.9375rem, 1.05vw, 1.0625rem);
  --t-meta: 0.875rem;

  /* Architecture & Spacing */
  --max-w: 1440px;
  --gutter: clamp(20px, 3.6vw, 52px);
  --radius: 3px;
  --radius-sm: 2px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Base Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  overflow-x: clip;
  background-color: var(--ground-iron);
  color: var(--ink-dark);
  font-family: var(--font-body);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  overflow-x: clip;
  background-color: var(--ground-light);
  color: var(--ink-dark);
  font-size: var(--t-body);
  line-height: 1.55;
}

p,
blockquote,
figcaption {
  text-wrap: pretty;
}

img,
picture,
svg {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

a {
  color: inherit;
}

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

.theme-iron :focus-visible,
.theme-cotto :focus-visible {
  outline-color: var(--accent-amber);
}

.tabular {
  font-variant-numeric: tabular-nums;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--ground-iron);
  color: var(--ink-light);
  border-radius: var(--radius);
  font-weight: 700;
  font-size: var(--t-meta);
  text-decoration: none;
  transform: translateY(-140%);
  transition: transform 200ms var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
}

/* Tactile Rustic Cotton-Paper Tooth & Fine Fiber Relief */
.grain-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.28;
  mix-blend-mode: multiply;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260' viewBox='0 0 260 260'%3E%3Cfilter id='p' x='0%25' y='0%25' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.044 0.072' numOctaves='4' seed='7' result='n'/%3E%3CfeDiffuseLighting in='n' lighting-color='%23fff6e8' surfaceScale='1.7' result='l'%3E%3CfeDistantLight azimuth='40' elevation='58'/%3E%3C/feDiffuseLighting%3E%3C/filter%3E%3Crect width='260' height='260' filter='url(%23p)'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.78' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)' opacity='0.18'/%3E%3C/svg%3E");
  background-size: 260px 260px, 180px 180px;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 120;
  background: var(--accent-cotto);
  transform-origin: left center;
  transform: scaleX(0);
  pointer-events: none;
}

/* Shared Container & Section Rhythm */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.chapter {
  position: relative;
  scroll-margin-top: 96px;
}

.chapter-pad {
  padding-top: clamp(96px, 9vw, 132px);
  padding-bottom: clamp(72px, 7.5vw, 112px);
}

.eyebrow {
  margin: 0;
  font-size: var(--t-meta);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}

.section-h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--t-h2);
  font-weight: 800;
  line-height: 0.94;
  letter-spacing: -0.035em;
  padding-bottom: 0.08em;
}

/* Buttons & Links */
.ico-arrow {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  transition: transform 200ms var(--ease);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 26px;
  min-height: 48px;
  border: 0;
  border-radius: var(--radius);
  background: var(--accent-cotto);
  color: var(--ink-light);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  box-shadow:
    -1px 2px 5px oklch(0.24 0.04 42 / 0.22),
    -4px 10px 22px -8px oklch(0.36 0.115 36 / 0.36);
  transition: background-color 180ms var(--ease), transform 180ms var(--ease), box-shadow 220ms var(--ease);
}

@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover {
    background: var(--accent-cotto-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px oklch(0.165 0.012 255 / 0.16);
  }

  .btn-primary:hover .ico-arrow {
    transform: translateX(3px);
  }
}

.btn-primary:active {
  transform: scale(0.985);
}

.btn-amber {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 26px;
  min-height: 48px;
  border: 0;
  border-radius: var(--radius);
  background: var(--accent-amber);
  color: var(--ground-iron);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: filter 180ms var(--ease), transform 180ms var(--ease), box-shadow 220ms var(--ease);
}

@media (hover: hover) and (pointer: fine) {
  .btn-amber:hover {
    filter: brightness(1.06);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px oklch(0 0 0 / 0.28);
  }

  .btn-amber:hover .ico-arrow {
    transform: translateX(3px);
  }
}

.btn-amber:active {
  transform: scale(0.985);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 6px 0;
  border: 0;
  background: none;
  color: var(--ink-dark);
  font-size: 0.9375rem;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 6px;
  cursor: pointer;
  transition: color 180ms var(--ease), transform 180ms var(--ease), text-underline-offset 180ms var(--ease);
}

@media (hover: hover) and (pointer: fine) {
  .btn-ghost:hover {
    color: var(--accent-cotto);
    transform: translateX(2px);
    text-underline-offset: 8px;
  }
}

.link-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 6px 0;
  border: 0;
  background: none;
  color: var(--accent-cotto);
  font-size: 0.9375rem;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 5px;
  cursor: pointer;
  transition: color 180ms var(--ease), transform 180ms var(--ease), text-underline-offset 180ms var(--ease);
}

@media (hover: hover) and (pointer: fine) {
  .link-inline:hover {
    color: var(--ink-dark);
    transform: translateX(2px);
    text-underline-offset: 8px;
  }

  .link-inline:hover .ico-arrow {
    transform: translateX(3px);
  }
}

.link-inline:active {
  transform: scale(0.985);
}

/* ==========================================================================
   Retracting Floating Index Bar (Activates ONLY below Hero)
   ========================================================================== */
.site-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  height: 54px;
  display: flex;
  align-items: center;
  background: oklch(0.942 0.018 82 / 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule-light);
  transform: translateY(-105%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform 150ms var(--ease), opacity 140ms var(--ease), visibility 0s linear 150ms;
}

html.past-hero:not(.nav-away) .site-bar {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: transform 240ms var(--ease), opacity 200ms var(--ease), visibility 0s;
}

.site-bar-inner {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-bar-brand {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--ink-dark);
}

.site-bar-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.site-bar-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink-muted);
  padding: 6px 0;
  transition: color 180ms var(--ease);
}

@media (hover: hover) and (pointer: fine) {
  .site-bar-nav a:hover {
    color: var(--ink-dark);
  }
}

.site-bar-cta {
  padding: 8px 16px;
  min-height: 36px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--accent-cotto);
  color: var(--ink-light);
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 180ms var(--ease), transform 140ms var(--ease);
}

@media (hover: hover) and (pointer: fine) {
  .site-bar-cta:hover {
    background: var(--accent-cotto-hover);
  }
}

.site-bar-cta:active {
  transform: scale(0.98);
}

/* ==========================================================================
   Chapter 1 — Hero (Monumental Display + Interlocking Vitrine)
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  min-height: min(100svh, 900px);
  background-color: var(--ground-light);
  /* Unmistakable diagonal Florentine morning sunlight streaming from top-right corner windows + soft pane mullion shadows */
  background-image:
    radial-gradient(ellipse 64% 58% at 90% 8%, oklch(0.992 0.040 84 / 0.88) 0%, oklch(0.980 0.030 82 / 0.42) 42%, transparent 72%),
    linear-gradient(
      126deg,
      oklch(0.865 0.028 66 / 0.34) 0%,
      oklch(0.880 0.025 68 / 0.24) 22%,
      oklch(0.990 0.036 84 / 0.72) 34%,
      oklch(0.985 0.034 84 / 0.54) 47%,
      oklch(0.875 0.026 68 / 0.22) 53%,
      oklch(0.880 0.024 68 / 0.16) 57%,
      oklch(0.992 0.038 84 / 0.82) 66%,
      oklch(0.988 0.032 84 / 0.62) 84%,
      oklch(0.895 0.024 70 / 0.26) 100%
    ),
    radial-gradient(ellipse 68% 62% at 6% 96%, oklch(0.845 0.028 64 / 0.44) 0%, transparent 62%);
  color: var(--ink-dark);
  display: flex;
  flex-direction: column;
}

.hero-inner {
  position: relative;
  z-index: 1;
  flex: 1;
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding: clamp(22px, 2.5vw, 34px) var(--gutter) clamp(24px, 3vw, 40px);
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: clamp(20px, 2.4vw, 32px);
}

@media (min-width: 1200px) {
  .hero-inner {
    border-inline: 1px solid oklch(0.165 0.012 255 / 0.075);
  }
}

/* Top 2 Corners (Pure Typography — ZERO Invented Logos) */
.hero-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  font-size: var(--t-meta);
  line-height: 1.35;
}

.hero-addr {
  margin: 0;
  color: var(--ink-muted);
}

.hero-addr strong {
  color: var(--ink-dark);
  font-weight: 700;
}

.hero-live {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-dark);
  font-weight: 500;
  white-space: nowrap;
}

.hero-live strong {
  font-weight: 700;
}

.status-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-variant-numeric: tabular-nums;
}

.status-live::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-cotto);
  flex-shrink: 0;
}

.status-live[data-state="open"]::before {
  background: var(--status-open-light);
}

.theme-iron .status-live::before {
  background: var(--accent-amber);
}

.theme-iron .status-live[data-state="open"]::before {
  background: var(--status-open-dark);
}

/* Center Interlocking Architecture (CSS Subgrid keeps <h1> semantic & measurable) */
.hero-stage {
  display: grid;
  grid-template-columns: minmax(0, 44.5%) minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: clamp(24px, 2.8vw, 40px);
  row-gap: clamp(24px, 3vw, 40px);
  align-self: center;
}

.hero-wordmark {
  grid-column: 1 / -1;
  grid-row: 1 / 3;
  display: grid;
  grid-template-columns: subgrid;
  grid-template-rows: subgrid;
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--t-monument);
  font-weight: 800;
  line-height: 0.84;
  letter-spacing: -0.046em;
  color: var(--ink-dark);
  pointer-events: none;
}

.word-tango {
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  padding-bottom: 0.06em;
  white-space: nowrap;
  pointer-events: auto;
  text-shadow: 0 1px 0 oklch(0.99 0.024 84 / 0.72), -3px 6px 18px oklch(0.24 0.030 56 / 0.09);
}

.word-caffe {
  grid-column: 2;
  grid-row: 2;
  justify-self: end;
  align-self: end;
  padding-top: 10px;
  padding-bottom: 0.06em;
  white-space: nowrap;
  pointer-events: auto;
  text-shadow: 0 1px 0 oklch(0.99 0.024 84 / 0.72), -3px 6px 18px oklch(0.24 0.030 56 / 0.09);
}

.hero-vitrine {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  margin: 0;
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 2.25 / 1;
  max-height: 280px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface-steel);
  outline: 1px solid oklch(0.24 0.026 56 / 0.18);
  outline-offset: -1px;
  /* Directional warm cast shadow falling down-left from the top-right morning window light */
  box-shadow:
    -2px 3px 6px oklch(0.24 0.032 56 / 0.12),
    -10px 18px 34px -10px oklch(0.24 0.034 54 / 0.24),
    -20px 36px 60px -22px oklch(0.24 0.028 54 / 0.18);
}

.hero-vitrine img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}

.hero-editorial {
  grid-column: 1;
  grid-row: 2;
  align-self: start;
  position: relative;
  z-index: 2;
  max-width: 472px;
  border-top: 2px solid var(--accent-cotto);
  padding-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hero-lead {
  margin: 0;
  font-size: var(--t-lead);
  font-weight: 500;
  line-height: 1.38;
  color: var(--ink-dark);
}

.hero-sub {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.48;
  color: var(--ink-muted);
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  padding-top: 6px;
}

/* Bottom 2 Corners */
.hero-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--rule-light);
  font-size: var(--t-meta);
}

.hero-index {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(18px, 2.4vw, 34px);
}

.hero-index a {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  min-height: 36px;
  text-decoration: none;
  font-weight: 500;
  color: var(--ink-dark);
  transition: color 180ms var(--ease);
}

.hero-index .idx-num {
  color: var(--accent-cotto);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

@media (hover: hover) and (pointer: fine) {
  .hero-index a:hover {
    color: var(--accent-cotto);
  }
}

.hero-access {
  margin: 0;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px 16px;
  color: var(--ink-muted);
  text-align: right;
}

.hero-access strong {
  color: var(--ink-dark);
  font-weight: 700;
}

.hero-dir-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 36px;
  color: var(--accent-cotto);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
  transition: color 180ms var(--ease), transform 180ms var(--ease), text-underline-offset 180ms var(--ease);
}

@media (hover: hover) and (pointer: fine) {
  .hero-dir-link:hover {
    color: var(--ink-dark);
    transform: translateX(2px);
    text-underline-offset: 7px;
  }

  .hero-dir-link:hover .ico-arrow {
    transform: translateX(3px);
  }
}

/* ==========================================================================
   Chapter 2 — Pinned 3-Beat Weekday Ritual (#ritmo · Deep Anthracite-Iron)
   ========================================================================== */
.theme-iron {
  background-color: var(--ground-iron);
  color: var(--ink-light);
}

.ritmo-stage {
  position: relative;
  background-color: var(--ground-iron);
  background-image:
    radial-gradient(ellipse 52% 58% at 76% 52%, oklch(0.58 0.12 58 / 0.22) 0%, transparent 72%),
    radial-gradient(ellipse 68% 55% at 16% 14%, oklch(0.25 0.020 52 / 0.68) 0%, transparent 65%);
}

@media (min-width: 1200px) {
  .ritmo-sticky > .container,
  .site-footer > .container {
    border-inline: 1px solid oklch(0.958 0.008 88 / 0.065);
  }
}

.ritmo-sticky {
  padding-top: clamp(96px, 8.5vw, 120px);
  padding-bottom: clamp(64px, 6vw, 96px);
}

.ritmo-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--rule-dark);
}

.ritmo-head .eyebrow {
  color: var(--accent-amber);
  margin-bottom: 10px;
}

.ritmo-steps {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ritmo-step-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid var(--rule-dark);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--ink-light-muted);
  font-size: var(--t-meta);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: border-color 180ms var(--ease), color 180ms var(--ease), background-color 180ms var(--ease);
}

.ritmo-step-btn.is-active {
  border-color: var(--accent-amber);
  background: oklch(0.75 0.135 66 / 0.12);
  color: var(--accent-amber);
}

@media (hover: hover) and (pointer: fine) {
  .ritmo-step-btn:hover {
    border-color: var(--ink-light);
    color: var(--ink-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px oklch(0 0 0 / 0.24);
  }
}

.ritmo-deck {
  position: relative;
  margin-top: clamp(28px, 3vw, 40px);
  display: grid;
  gap: clamp(36px, 4.5vw, 56px);
}

.ritmo-beat {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 390px);
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
}

.beat-copy {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 580px;
}

.beat-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-amber);
  font-variant-numeric: tabular-nums;
}

.beat-clock {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3.25rem, 6vw, 5.5rem);
  font-weight: 800;
  line-height: 0.88;
  letter-spacing: -0.035em;
  color: var(--ink-light);
  font-variant-numeric: tabular-nums;
}

.beat-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--t-h3);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--ink-light);
}

.beat-desc {
  margin: 0;
  font-size: var(--t-lead);
  font-weight: 400;
  line-height: 1.5;
  color: var(--ink-light-muted);
}

.beat-tag {
  margin: 8px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--rule-dark);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-amber);
}

.beat-plate {
  margin: 0;
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-iron);
  outline: 1px solid oklch(1 0 0 / 0.16);
  outline-offset: -1px;
  box-shadow:
    0 2px 4px oklch(0 0 0 / 0.24),
    0 22px 48px -16px oklch(0 0 0 / 0.48);
}

.beat-plate img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.beat-plate[data-crop="top"] img {
  object-position: 50% 42%;
}

.beat-plate[data-crop="mid"] img {
  object-position: 50% 50%;
}

.beat-plate[data-crop="low"] img {
  object-position: 50% 45%;
}

.ritmo-progress-wrap {
  display: none;
}

/* Desktop Pinned Scroll Choreography (Progressive Enhancement via html.motion) */
@media (min-width: 901px) and (prefers-reduced-motion: no-preference) {
  html.motion .ritmo-stage {
    min-height: 220svh;
  }

  html.motion .ritmo-sticky {
    position: sticky;
    top: 0;
    height: 100svh;
    min-height: 680px;
    padding-top: clamp(76px, 7vh, 104px);
    padding-bottom: clamp(28px, 3.5vh, 44px);
    display: flex;
    flex-direction: column;
  }

  html.motion .ritmo-sticky > .container {
    flex: 1;
    display: grid;
    grid-template-rows: auto 1fr auto;
    min-height: 0;
  }

  html.motion .ritmo-deck {
    margin-top: 0;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    align-items: center;
    min-height: 0;
  }

  html.motion .ritmo-beat {
    grid-column: 1;
    grid-row: 1;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 1;
    transform: translate3d(0, 12px, 0);
    transition: opacity 150ms var(--ease), transform 150ms var(--ease), visibility 0s linear 150ms;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, min(440px, 50vh));
  }

  html.motion .ritmo-beat .beat-plate {
    clip-path: inset(6% 0 0 0);
    transition: clip-path 380ms var(--ease);
  }

  html.motion .ritmo-beat.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 2;
    transform: translate3d(0, 0, 0);
    transition: opacity 320ms var(--ease), transform 360ms var(--ease), visibility 0s;
  }

  html.motion .ritmo-beat.is-active .beat-plate {
    clip-path: inset(0 0 0 0);
  }

  /* Guarantee zero double-exposure when full-page overview collapses sticky stage */
  html[data-qa-fullpage="1"] .ritmo-beat:not(.is-active) {
    opacity: 0 !important;
    visibility: hidden !important;
    transition: none !important;
  }

  html.motion .ritmo-progress-wrap {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 18px;
    border-top: 1px solid var(--rule-dark);
  }

  html.motion .ritmo-progress-track {
    position: relative;
    width: 100%;
    height: 3px;
    background: oklch(1 0 0 / 0.14);
    border-radius: 2px;
    overflow: hidden;
  }

  html.motion .ritmo-progress-fill {
    position: absolute;
    inset: 0;
    background: var(--accent-amber);
    transform-origin: left center;
    transform: scaleX(clamp(0.08, var(--sc-p, 0), 1));
  }

  html.motion .ritmo-progress-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8125rem;
    color: var(--ink-light-muted);
    font-variant-numeric: tabular-nums;
  }
}

/* ==========================================================================
   Chapter 3 — Signature Interactive Artifact: Il Quadrante Feriale (#quadrante)
   ========================================================================== */
.quadrante {
  background-color: var(--dial-bg);
  background-image:
    radial-gradient(ellipse 68% 60% at 88% 10%, oklch(0.992 0.036 84 / 0.72) 0%, transparent 64%),
    linear-gradient(126deg, oklch(0.865 0.026 68 / 0.20) 0%, transparent 34%, oklch(0.99 0.034 84 / 0.45) 68%, transparent 100%),
    radial-gradient(ellipse 60% 54% at 8% 92%, oklch(0.855 0.024 66 / 0.28) 0%, transparent 62%);
  color: var(--ink-dark);
  transition: background-color 360ms var(--ease);
  border-top: 1px solid var(--rule-light);
  border-bottom: 1px solid var(--rule-light);
}

.quadrante-inner {
  padding-top: clamp(76px, 6.2vw, 88px);
  padding-bottom: clamp(44px, 4.5vw, 60px);
}

.quadrante-shell {
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 2vw, 24px);
}

.quadrante-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule-light);
}

.quadrante-head .eyebrow {
  color: var(--accent-cotto);
  margin-bottom: 8px;
}

.quadrante-status {
  margin: 0;
  font-size: var(--t-meta);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent-cotto);
  font-variant-numeric: tabular-nums;
}

.quadrante-grid {
  display: grid;
  grid-template-columns: minmax(360px, 590px) minmax(0, 1fr);
  gap: clamp(32px, 4.5vw, 68px);
  align-items: center;
}

/* Left Column: 180° Sun-Arc Daylight Instrument */
.dial-instrument {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.dial-svg-wrap {
  width: 100%;
  max-width: 380px;
  touch-action: none;
  cursor: grab;
  user-select: none;
}

.dial-svg-wrap:active {
  cursor: grabbing;
}

.dial-svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.dial-svg text {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  fill: var(--ink-muted);
  font-variant-numeric: tabular-nums;
}

.dial-svg text.is-active {
  fill: var(--accent-cotto);
}

.dial-readout {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.dial-clock {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 3.8vw, 3.5rem);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.03em;
  color: var(--ink-dark);
  font-variant-numeric: tabular-nums;
}

.dial-moment {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--accent-cotto);
}

/* Native Range Scrubber (Accessible 44px touch target) */
.dial-slider-wrap {
  width: 100%;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.dial-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 44px;
  background: transparent;
  cursor: pointer;
  margin: 0;
}

.dial-range::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(
    to right,
    var(--accent-cotto) 0%,
    var(--accent-cotto) var(--dial-pct, 67%),
    oklch(0.165 0.012 255 / 0.14) var(--dial-pct, 67%),
    oklch(0.165 0.012 255 / 0.14) 100%
  );
}

.dial-range::-moz-range-track {
  height: 6px;
  border-radius: 3px;
  background: oklch(0.165 0.012 255 / 0.14);
}

.dial-range::-moz-range-progress {
  height: 6px;
  border-radius: 3px;
  background: var(--accent-cotto);
}

.dial-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  margin-top: -9px;
  border-radius: 50%;
  background: var(--ink-dark);
  border: 3px solid var(--ground-light);
  box-shadow: 0 0 0 1px oklch(0.165 0.012 255 / 0.25), inset 0 0 0 5px var(--ink-dark), inset 0 0 0 10px var(--accent-amber);
  transition: transform 140ms var(--ease);
}

.dial-range::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--ink-dark);
  border: 3px solid var(--ground-light);
  box-shadow: 0 0 0 1px oklch(0.165 0.012 255 / 0.25);
}

.dial-range:focus-visible {
  outline: none;
}

.dial-range:focus-visible::-webkit-slider-thumb {
  box-shadow:
    0 0 0 3px var(--dial-bg),
    0 0 0 5.5px var(--accent-cotto),
    inset 0 0 0 5px var(--ink-dark),
    inset 0 0 0 10px var(--accent-amber);
}

.dial-range:focus-visible::-moz-range-thumb {
  box-shadow:
    0 0 0 3px var(--dial-bg),
    0 0 0 5.5px var(--accent-cotto);
}

.dial-range:active::-webkit-slider-thumb {
  transform: scale(1.1);
}

.dial-hint {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--ink-muted);
  text-align: center;
}

/* 4 Hairline Timetable Direct-Jump Stops */
.dial-stops {
  width: 100%;
  max-width: 340px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--rule-light);
  padding-top: 10px;
  gap: 6px;
}

.dial-stop-btn {
  min-height: 44px;
  padding: 6px 4px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--ink-muted);
  font-size: 0.875rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: color 180ms var(--ease), border-color 180ms var(--ease);
}

.dial-stop-btn[aria-pressed="true"] {
  color: var(--accent-cotto);
  border-bottom-color: var(--accent-cotto);
}

@media (hover: hover) and (pointer: fine) {
  .dial-stop-btn:hover {
    color: var(--ink-dark);
    transform: translateY(-1px);
    border-bottom-color: var(--ink-dark);
  }
}

/* Right Column: Un-cropped 4:3 Counter Plate + Copy (Flush Right Alignment) */
.dial-stage {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.dial-plate {
  position: relative;
  margin: 0;
  width: 100%;
  max-width: none;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-steel);
  outline: 1px solid oklch(0.24 0.026 56 / 0.16);
  outline-offset: -1px;
  box-shadow:
    -2px 3px 6px oklch(0.24 0.032 56 / 0.11),
    -10px 18px 34px -10px oklch(0.24 0.034 54 / 0.22),
    -18px 34px 56px -22px oklch(0.24 0.028 54 / 0.16);
}

.dial-plate-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
}

.dial-desc {
  margin: 0;
  font-size: var(--t-lead);
  line-height: 1.46;
  color: var(--ink-dark);
}

/* Bottom Hairline Bar */
.quadrante-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 16px;
  border-top: 1px solid var(--rule-light);
  font-size: var(--t-meta);
}

.dial-light-meta {
  margin: 0;
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
}

.dial-light-meta strong {
  color: var(--ink-dark);
  font-weight: 700;
}

/* ==========================================================================
   Chapter 4 — Editorial Index (#banco · Burnished Tuscan Cotto Pigment)
   ========================================================================== */
.theme-cotto {
  background-color: var(--ground-cotto);
  background-image:
    radial-gradient(ellipse 65% 60% at 18% 18%, oklch(0.42 0.125 38 / 0.55) 0%, transparent 65%),
    linear-gradient(180deg, oklch(0.36 0.115 36), oklch(0.31 0.105 34));
  color: var(--ink-light);
}

.banco-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 32px;
  margin-bottom: clamp(32px, 4vw, 52px);
}

.banco-head .eyebrow {
  color: var(--accent-gold-cotto);
  margin-bottom: 10px;
}

.banco-note {
  margin: 0;
  max-width: 38ch;
  font-size: var(--t-meta);
  color: oklch(0.958 0.008 88 / 0.90);
}

.banco-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  gap: clamp(32px, 4.5vw, 68px);
  align-items: start;
}

.banco-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--rule-cotto);
}

.index-row {
  width: 100%;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 8px 18px;
  align-items: baseline;
  text-align: left;
  padding: clamp(18px, 2.2vw, 26px) 0;
  border: 0;
  border-bottom: 1px solid var(--rule-cotto);
  background: transparent;
  color: var(--ink-light);
  cursor: pointer;
  transition: background-color 180ms var(--ease), padding-left 220ms var(--ease), transform 200ms var(--ease);
}

.index-num {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 700;
  color: oklch(0.958 0.008 88 / 0.86);
  font-variant-numeric: tabular-nums;
  transition: color 180ms var(--ease);
}

.index-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.index-title {
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 2.2vw, 2rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.02em;
}

.index-desc {
  font-size: 0.9375rem;
  line-height: 1.48;
  color: oklch(0.958 0.008 88 / 0.90);
}

.index-arrow {
  font-size: 1.125rem;
  color: var(--accent-gold-cotto);
  opacity: 0.85;
  transform: translateX(-4px);
  transition: opacity 180ms var(--ease), transform 220ms var(--ease);
}

.index-row.is-active,
.index-row[aria-pressed="true"] {
  background-color: oklch(0.958 0.014 82 / 0.10);
  box-shadow: inset 3px 0 0 var(--accent-gold-cotto);
  padding-left: 16px;
  padding-right: 12px;
  border-bottom-color: var(--accent-gold-cotto);
}

.index-row.is-active .index-num,
.index-row[aria-pressed="true"] .index-num {
  color: var(--accent-gold-cotto);
}

.index-row.is-active .index-arrow,
.index-row[aria-pressed="true"] .index-arrow {
  opacity: 1;
  transform: translateX(0);
}

@media (hover: hover) and (pointer: fine) {
  .index-row:hover {
    background-color: oklch(0.958 0.008 88 / 0.08);
    transform: translateX(4px);
    padding-left: 12px;
    border-bottom-color: var(--accent-gold-cotto);
  }

  .index-row:hover .index-num,
  .index-row:hover .index-arrow {
    color: var(--accent-gold-cotto);
    opacity: 1;
    transform: translateX(0);
  }
}

.banco-stage {
  margin: 0;
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.banco-frame {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-cotto);
  outline: 1px solid oklch(1 0 0 / 0.22);
  outline-offset: -1px;
  box-shadow:
    0 2px 4px oklch(0 0 0 / 0.22),
    0 22px 48px -16px oklch(0 0 0 / 0.42);
}

.banco-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 220ms var(--ease), transform 260ms var(--ease);
}

.banco-frame img.is-swapping {
  opacity: 0.35;
  transform: translateY(4px);
}

.banco-caption {
  font-size: var(--t-meta);
  font-weight: 500;
  color: oklch(0.958 0.008 88 / 0.92);
}

/* ==========================================================================
   Chapter 5 — Documentary Diptych & Careggi Voices (#careggi · Light Chalk)
   ========================================================================== */
.theme-light {
  background-color: var(--ground-light);
  background-image:
    radial-gradient(ellipse 68% 60% at 88% 10%, oklch(0.992 0.038 84 / 0.80) 0%, transparent 65%),
    linear-gradient(126deg, oklch(0.868 0.026 68 / 0.24) 0%, transparent 32%, oklch(0.990 0.034 84 / 0.56) 66%, transparent 100%),
    radial-gradient(ellipse 64% 58% at 8% 92%, oklch(0.855 0.026 66 / 0.34) 0%, transparent 62%);
  color: var(--ink-dark);
}

.careggi-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 32px;
  margin-bottom: clamp(36px, 4.5vw, 60px);
}

.careggi-head .eyebrow {
  color: var(--accent-cotto);
  margin-bottom: 10px;
}

.careggi-reputation {
  margin: 0;
  font-size: var(--t-meta);
  font-weight: 700;
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
}

.careggi-reputation strong {
  color: var(--ink-dark);
}

.careggi-diptych {
  display: grid;
  grid-template-columns: 1.18fr 1fr;
  align-items: end;
  gap: clamp(24px, 3vw, 48px);
  margin-bottom: clamp(52px, 6vw, 88px);
}

.diptych-plate {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.diptych-frame {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-steel);
  outline: 1px solid oklch(0.24 0.026 56 / 0.16);
  outline-offset: -1px;
  box-shadow:
    -2px 3px 6px oklch(0.24 0.032 56 / 0.11),
    -10px 18px 34px -10px oklch(0.24 0.034 54 / 0.22),
    -18px 34px 56px -22px oklch(0.24 0.028 54 / 0.16);
}

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

/* Crop bottom-right plastic bins completely out of exterior shot cleanly */
.diptych-plate--b .diptych-frame img {
  object-position: 16% 12%;
  transform: scale(1.38);
  transform-origin: 10% 8%;
}

.diptych-plate figcaption {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink-muted);
}

/* Opposing Horizontal Drift on Plate B via --sc-p (Desktop fine pointer only) */
@media (min-width: 901px) and (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  html.motion .diptych-plate--b {
    transform: translate3d(calc((var(--sc-p, 0.5) - 0.5) * -22px), 0, 0);
  }
}

/* Scrubbed Lead Verbatim Quote */
.careggi-quote-block {
  width: 100%;
  padding-top: clamp(28px, 3.5vw, 44px);
  border-top: 1px solid var(--rule-light);
}

.careggi-quote {
  margin: 0;
  max-width: 1020px;
  font-family: var(--font-display);
  font-size: clamp(1.625rem, 3.2vw, 2.75rem);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.025em;
  color: var(--ink-dark);
}

.careggi-quote .sc-w {
  display: inline-block;
  padding-bottom: 0.08em;
}

html.motion .careggi-quote .sc-w {
  opacity: 0.62;
  transition: opacity 280ms var(--ease);
}

html.motion .careggi-quote .sc-w.is-lit {
  opacity: 1;
}

.careggi-quote-author {
  margin: 18px 0 0;
  font-size: var(--t-meta);
  font-weight: 700;
  color: var(--accent-cotto);
}

/* Secondary Verbatim Notes (Pure Hairline Columns) */
.voices-grid {
  margin-top: clamp(40px, 4.5vw, 60px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 56px);
  padding-top: clamp(24px, 3vw, 36px);
  border-top: 1px solid var(--rule-light);
}

.voice-item {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.voice-item p {
  margin: 0;
  font-size: var(--t-lead);
  line-height: 1.46;
  color: var(--ink-dark);
}

.voice-item footer {
  font-size: var(--t-meta);
  font-weight: 700;
  color: var(--ink-muted);
}

/* ==========================================================================
   Chapter 6 — Architectural Timetable Colophon Footer (#dove-siamo)
   ========================================================================== */
.site-footer {
  background-color: var(--ground-iron);
  background-image:
    radial-gradient(ellipse 60% 55% at 82% 20%, oklch(0.24 0.016 255 / 0.6) 0%, transparent 68%),
    radial-gradient(ellipse 52% 48% at 14% 85%, oklch(0.42 0.08 52 / 0.10) 0%, transparent 65%);
  color: var(--ink-light);
  padding-top: clamp(96px, 8.5vw, 128px);
  padding-bottom: clamp(44px, 5vw, 68px);
  scroll-margin-top: 96px;
}

.footer-hours-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px 48px;
  align-items: end;
  padding-bottom: clamp(36px, 4.5vw, 56px);
  border-bottom: 1px solid var(--rule-dark);
}

.footer-days {
  margin: 0 0 10px;
  font-size: var(--t-meta);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-light-muted);
}

.footer-giant-hours {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3.25rem, 8.6vw, 7.5rem);
  font-weight: 800;
  line-height: 0.88;
  letter-spacing: -0.04em;
  color: var(--accent-amber);
  font-variant-numeric: tabular-nums;
}

.footer-status-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.footer-live-status {
  margin: 0;
  font-size: var(--t-meta);
  font-weight: 700;
  color: var(--ink-light);
}

.footer-closed {
  margin: 0;
  font-size: var(--t-lead);
  font-weight: 500;
  color: var(--ink-light-muted);
  text-align: right;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 56px);
  padding-block: clamp(36px, 4.5vw, 56px);
  border-bottom: 1px solid var(--rule-dark);
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-label {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-light-muted);
}

.footer-value {
  margin: 0;
  font-size: var(--t-lead);
  font-weight: 500;
  line-height: 1.4;
  color: var(--ink-light);
}

.footer-sub {
  margin: 0;
  font-size: var(--t-meta);
  line-height: 1.5;
  color: var(--ink-light-muted);
}

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  font-size: var(--t-meta);
  font-weight: 700;
  color: var(--accent-amber);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 5px;
  align-self: flex-start;
  transition: color 180ms var(--ease), transform 180ms var(--ease), text-underline-offset 180ms var(--ease);
}

@media (hover: hover) and (pointer: fine) {
  .footer-link:hover {
    color: var(--ink-light);
    transform: translateX(3px);
    text-underline-offset: 7px;
  }

  .footer-link:hover .ico-arrow {
    transform: translateX(3px);
  }
}

.footer-tel {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 2.2vw, 1.875rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--ink-light);
  font-variant-numeric: tabular-nums;
}

@media (hover: hover) and (pointer: fine) {
  .footer-tel:hover {
    color: var(--accent-amber);
    transform: translateX(2px);
  }
}

.footer-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.footer-colophon {
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  font-size: 0.8125rem;
  color: var(--ink-light-muted);
}

.footer-colophon a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 4px 0;
  text-decoration: none;
  font-weight: 700;
  color: var(--ink-light);
  transition: color 180ms var(--ease), transform 180ms var(--ease);
}

@media (hover: hover) and (pointer: fine) {
  .footer-colophon a:hover {
    color: var(--accent-amber);
    transform: translateY(-1px);
  }
}

/* ==========================================================================
   Native WhatsApp Order / Table Builder (<dialog id="wa-dialog">)
   ========================================================================== */
.wa-dialog {
  width: min(520px, calc(100vw - 24px));
  padding: 0;
  border: 1px solid var(--rule-light);
  border-radius: var(--radius);
  background: var(--ground-light);
  color: var(--ink-dark);
  box-shadow: 0 24px 64px oklch(0.165 0.012 255 / 0.34);
}

.wa-dialog::backdrop {
  background: oklch(0.165 0.012 255 / 0.62);
  backdrop-filter: blur(4px);
}

.wa-dialog-inner {
  padding: clamp(22px, 3vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.wa-dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule-light);
}

.wa-dialog-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.625rem;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.025em;
}

.wa-dialog-sub {
  margin: 6px 0 0;
  font-size: var(--t-meta);
  color: var(--ink-muted);
}

.wa-close {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border: 1px solid var(--rule-light);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--ink-dark);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.wa-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.wa-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wa-field label {
  font-size: var(--t-meta);
  font-weight: 700;
  color: var(--ink-dark);
}

.wa-field select,
.wa-field textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid oklch(0.165 0.012 255 / 0.24);
  border-radius: var(--radius-sm);
  background: oklch(0.985 0.003 240);
  color: var(--ink-dark);
  font-size: 0.9375rem;
}

.wa-field textarea {
  min-height: 82px;
  resize: vertical;
}

.wa-form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding-top: 6px;
}

.wa-copy-btn {
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid oklch(0.165 0.012 255 / 0.24);
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink-dark);
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
}

/* ==========================================================================
   Smart Mobile Bottom Bar (.mbar)
   ========================================================================== */
.mbar {
  display: none;
}

/* ==========================================================================
   Progressive Reveal Polish (Never hides above-the-fold or no-JS content)
   ========================================================================== */
html.motion [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transition: opacity 520ms var(--ease), transform 560ms var(--ease);
}

html.motion [data-reveal].is-in {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1100px) {
  .quadrante-grid {
    grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
    gap: 32px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .site-bar-nav {
    display: none;
  }

  .hero {
    min-height: auto;
  }

  .hero::before {
    display: none;
  }

  .hero-inner {
    padding: 18px var(--gutter) 28px;
    gap: 18px;
  }

  .hero-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    font-size: 0.8125rem;
  }

  .hero-live-extra {
    display: none;
  }

  .hero-stage {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto;
    row-gap: 16px;
  }

  .hero-wordmark {
    grid-column: 1;
    grid-row: 1 / 4;
    font-size: clamp(3.75rem, 16.5vw, 5.75rem);
  }

  .word-tango {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
  }

  .hero-vitrine {
    grid-column: 1;
    grid-row: 2;
    max-height: none;
  }

  .word-caffe {
    grid-column: 1;
    grid-row: 3;
    justify-self: end;
    padding-top: 8px;
  }

  .hero-editorial {
    grid-column: 1;
    grid-row: 4;
    max-width: none;
    border-top: 0;
    padding-top: 4px;
    gap: 12px;
  }

  .hero-sub {
    display: none;
  }

  .hero-cta-row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .hero-cta-row .btn-primary {
    width: 100%;
  }

  .hero-cta-row .btn-ghost {
    justify-content: center;
  }

  .hero-bottom {
    display: none;
  }

  /* Ch. 2 Mobile Stack (Matches spec-mobile.png aesthetic) */
  .ritmo-sticky {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .ritmo-steps {
    display: none;
  }

  .ritmo-beat {
    grid-template-columns: 1fr 128px;
    gap: 18px;
    align-items: start;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--rule-dark);
  }

  .ritmo-beat:last-child {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .beat-clock {
    color: var(--accent-amber);
    font-size: 2.25rem;
  }

  .beat-title {
    font-size: 1.3125rem;
  }

  .beat-desc {
    font-size: 0.9375rem;
  }

  .beat-meta,
  .beat-tag {
    display: none;
  }

  /* Ch. 3 Mobile */
  .quadrante-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .dial-plate {
    max-width: none;
  }

  /* Ch. 4 Mobile */
  .banco-grid {
    grid-template-columns: 1fr;
  }

  .banco-stage {
    position: static;
    order: -1;
  }

  /* Ch. 5 Mobile */
  .careggi-diptych {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .diptych-plate,
  .diptych-plate--a,
  .diptych-plate--b {
    width: 100%;
    margin-left: 0;
    justify-self: stretch;
    transform: none !important;
  }

  .voices-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  /* Ch. 6 Mobile */
  .footer-hours-hero {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .footer-status-col {
    align-items: flex-start;
  }

  .footer-closed {
    text-align: left;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  /* Smart Mobile Bottom Bar */
  .mbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 85;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom, 0px));
    background: oklch(0.942 0.018 82 / 0.96);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--rule-light);
    font-size: 0.8125rem;
    transition: transform 240ms var(--ease);
  }

  .mbar.is-hidden {
    transform: translateY(105%);
    visibility: hidden;
    pointer-events: none;
  }

  .mbar-hours {
    margin: 0;
    font-weight: 700;
    color: var(--ink-dark);
    font-variant-numeric: tabular-nums;
  }

  .mbar-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
  }

  .mbar-maps {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 6px 12px;
    border: 1px solid var(--rule-light);
    border-radius: var(--radius-sm);
    color: var(--ink-dark);
    font-weight: 700;
    font-size: 0.8125rem;
    text-decoration: none;
  }

  .mbar-cta {
    min-height: 40px;
    padding: 6px 14px;
    border: 0;
    border-radius: var(--radius-sm);
    background: var(--accent-cotto);
    color: var(--ink-light);
    font-weight: 700;
    font-size: 0.8125rem;
    cursor: pointer;
  }

  .site-footer {
    padding-bottom: 88px;
  }
}

/* ==========================================================================
   Reduced Motion Complete Guarantee
   ========================================================================== */
@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;
  }

  .ritmo-stage {
    min-height: auto !important;
  }

  .ritmo-sticky {
    position: static !important;
    height: auto !important;
  }

  .ritmo-beat {
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto !important;
  }

  .ritmo-beat .beat-plate {
    clip-path: none !important;
  }

  .careggi-quote .sc-w {
    opacity: 1 !important;
  }

  .diptych-plate--b {
    transform: none !important;
  }
}

/* ==========================================================================
   Print Readability Rules
   ========================================================================== */
@media print {
  .site-bar,
  .mbar,
  .grain-overlay,
  .scroll-progress,
  .wa-dialog,
  .skip-link,
  .dial-slider-wrap,
  .dial-stops,
  .ritmo-steps,
  .ritmo-progress-wrap {
    display: none !important;
  }

  body,
  .hero,
  .theme-iron,
  .theme-cotto,
  .theme-light,
  .quadrante,
  .site-footer {
    background: #fff !important;
    color: #111 !important;
  }

  .ritmo-stage,
  .ritmo-sticky,
  .ritmo-beat {
    min-height: auto !important;
    height: auto !important;
    position: static !important;
    opacity: 1 !important;
    transform: none !important;
  }

  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
  }
}
