/* ============================================================
   Matthew DJ — design system
   Direzione: notturno elegante. Serif alto contrasto, oro tenue,
   superfici quasi nere, fotografia a pieno campo.
   ============================================================ */

:root {
  /* Type scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 5rem);
  --text-hero: clamp(2.75rem, 0.8rem + 6vw, 6.5rem);

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.375rem;
  --radius-lg: 0.625rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  /* Motion */
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);

  /* Widths */
  --content-narrow: 640px;
  --content-default: 940px;
  --content-wide: 1240px;
  --gutter: clamp(1.25rem, 5vw, 4rem);

  /* Fonts */
  --font-display: 'Boska', 'Iowan Old Style', Georgia, serif;
  --font-body: 'Switzer', 'Inter', 'Helvetica Neue', sans-serif;
}

/* ---------- Light (avorio caldo) ---------- */
:root,
[data-theme='light'] {
  --color-bg: #f5f2ea;
  --color-surface: #faf8f2;
  --color-surface-2: #fdfcf8;
  --color-surface-offset: #ebe6da;
  --color-surface-inverse: #14120f;
  --color-divider: oklch(0.2 0.02 80 / 0.12);
  --color-border: oklch(0.2 0.02 80 / 0.18);
  --color-text: #1a1713;
  --color-text-muted: #5f594e;
  --color-text-faint: #8b8578;
  --color-text-on-dark: #f1ede4;
  --color-primary: #7a5c10;
  --color-primary-hover: #5d4509;
  --color-primary-soft: oklch(0.55 0.09 84 / 0.14);
  --color-scrim: oklch(0.16 0.015 70 / 0.55);
  --shadow-sm: 0 1px 2px oklch(0.2 0.02 70 / 0.08);
  --shadow-md: 0 6px 20px oklch(0.2 0.02 70 / 0.1);
  --shadow-lg: 0 18px 48px oklch(0.2 0.02 70 / 0.16);
}

/* ---------- Dark (notturno) ---------- */
[data-theme='dark'] {
  --color-bg: #0d0c0a;
  --color-surface: #141210;
  --color-surface-2: #1a1815;
  --color-surface-offset: #201d19;
  --color-surface-inverse: #f1ede4;
  --color-divider: oklch(0.95 0.02 85 / 0.1);
  --color-border: oklch(0.95 0.02 85 / 0.16);
  --color-text: #e9e4d9;
  --color-text-muted: #a19a8b;
  --color-text-faint: #766f62;
  --color-text-on-dark: #f1ede4;
  --color-primary: #d4ae5c;
  --color-primary-hover: #e6c478;
  --color-primary-soft: oklch(0.78 0.09 84 / 0.16);
  --color-scrim: oklch(0.1 0.01 70 / 0.5);
  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.4);
  --shadow-md: 0 6px 20px oklch(0 0 0 / 0.45);
  --shadow-lg: 0 18px 48px oklch(0 0 0 / 0.55);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg: #0d0c0a;
    --color-surface: #141210;
    --color-surface-2: #1a1815;
    --color-surface-offset: #201d19;
    --color-surface-inverse: #f1ede4;
    --color-divider: oklch(0.95 0.02 85 / 0.1);
    --color-border: oklch(0.95 0.02 85 / 0.16);
    --color-text: #e9e4d9;
    --color-text-muted: #a19a8b;
    --color-text-faint: #766f62;
    --color-primary: #d4ae5c;
    --color-primary-hover: #e6c478;
    --color-primary-soft: oklch(0.78 0.09 84 / 0.16);
    --color-scrim: oklch(0.1 0.01 70 / 0.5);
  }
}

/* ============================================================
   Tipografia
   ============================================================ */

h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.015em; }
h4, h5, h6 { font-family: var(--font-body); font-weight: 500; letter-spacing: 0.01em; }

.kicker {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-5);
}
.kicker--muted { color: var(--color-text-faint); }

.lede {
  font-size: var(--text-lg);
  line-height: 1.5;
  color: var(--color-text-muted);
  max-width: 34ch;
}

.prose > * + * { margin-top: var(--space-5); }
.prose h3 {
  font-size: var(--text-lg);
  font-family: var(--font-body);
  font-weight: 600;
  margin-top: var(--space-10);
  letter-spacing: 0;
}
.prose p, .prose li { color: var(--color-text-muted); max-width: 68ch; }
.prose strong { color: var(--color-text); font-weight: 600; }
.prose ul { padding-left: 0; list-style: none; }
.prose ul li {
  position: relative;
  padding-left: var(--space-6);
  margin-top: var(--space-3);
}
.prose ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 10px;
  height: 1px;
  background: var(--color-primary);
}
.prose a { color: var(--color-text); text-decoration: underline; text-decoration-color: var(--color-primary); text-underline-offset: 3px; }
.prose a:hover { color: var(--color-primary); }

/* ============================================================
   Layout
   ============================================================ */

.wrap { width: 100%; margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: calc(var(--content-narrow) + 2 * var(--gutter)); }
.wrap--default { max-width: calc(var(--content-default) + 2 * var(--gutter)); }
.wrap--wide { max-width: calc(var(--content-wide) + 2 * var(--gutter)); }

.section { padding-block: clamp(var(--space-16), 9vw, var(--space-32)); }
.section--tight { padding-block: clamp(var(--space-12), 6vw, var(--space-20)); }
.section--alt { background: var(--color-surface); }
.section--edge { border-top: 1px solid var(--color-divider); }

.section-head { margin-bottom: clamp(var(--space-10), 5vw, var(--space-16)); }
.section-head h2 { font-size: var(--text-xl); }
.section-head p { margin-top: var(--space-5); color: var(--color-text-muted); }

/* ============================================================
   Header
   ============================================================ */

.skip {
  position: absolute; left: var(--space-4); top: var(--space-4);
  transform: translateY(-200%);
  background: var(--color-primary); color: var(--color-bg);
  padding: var(--space-3) var(--space-5); border-radius: var(--radius-md);
  z-index: 200; font-size: var(--text-sm); font-weight: 600;
}
.skip:focus { transform: translateY(0); }

.header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in oklab, var(--color-bg) 86%, transparent);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: border-color 300ms var(--ease-out), background 300ms var(--ease-out);
}
.header--scrolled { border-bottom-color: var(--color-divider); }

.header__inner {
  display: flex; align-items: center; gap: var(--space-6);
  min-height: 72px;
}
@media (max-width: 640px) {
  .header__inner { gap: var(--space-3); }
}

.brand {
  display: inline-flex; align-items: center; gap: var(--space-3);
  text-decoration: none; flex: 0 0 auto; margin-right: auto;
}
.brand__mark { color: var(--color-primary); flex: 0 0 auto; }
.brand__name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1;
  letter-spacing: 0.01em;
}
@media (max-width: 620px) {
  .brand__name { font-size: 1.1rem; }
  .brand__name small { display: none !important; }
}
.brand__name small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  margin-top: 4px;
}

.nav { display: none; }
@media (min-width: 1060px) {
  .nav { display: flex; align-items: center; gap: clamp(1rem, 1.4vw, 1.75rem); }
}
.nav a {
  white-space: nowrap;
  font-size: var(--text-sm);
  text-decoration: none;
  color: var(--color-text-muted);
  padding-block: var(--space-2);
  position: relative;
}
.nav a::after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: 0;
  height: 1px; background: var(--color-primary);
  transition: right 250ms var(--ease-out);
}
.nav a:hover { color: var(--color-text); }
.nav a:hover::after, .nav a[aria-current='page']::after { right: 0; }
.nav a[aria-current='page'] { color: var(--color-text); }

.header__tools { display: flex; align-items: center; gap: var(--space-2); flex: 0 0 auto; }

.lang {
  display: inline-flex; align-items: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.lang a {
  font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.08em;
  padding: 8px 12px; min-height: 36px; display: inline-flex; align-items: center;
  text-decoration: none; color: var(--color-text-faint);
}
.lang a[aria-current='true'] { background: var(--color-primary-soft); color: var(--color-text); }
.lang a:hover { color: var(--color-text); }
.lang--header { display: none; }
@media (min-width: 860px) { .lang--header { display: inline-flex; } }

[hidden] { display: none !important; }

.icon-btn {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--color-text-muted);
  border-radius: var(--radius-full);
}
.icon-btn:hover { color: var(--color-primary); background: var(--color-primary-soft); }
@media (min-width: 1060px) { .menu-btn { display: none; } }

/* Mobile drawer */
.drawer {
  position: fixed; inset: 0; z-index: 150;
  background: var(--color-bg);
  display: grid; grid-template-rows: auto 1fr;
  opacity: 0; visibility: hidden;
  transition: opacity 250ms var(--ease-out), visibility 250ms;
}
.drawer[data-open='true'] { opacity: 1; visibility: visible; }
.drawer__top { display: flex; align-items: center; min-height: 72px; padding-inline: var(--gutter); }
.drawer__top .brand { margin-right: auto; }
.drawer__nav {
  padding: var(--space-6) var(--gutter) var(--space-16);
  overflow-y: auto;
  display: flex; flex-direction: column;
}
.drawer__nav a {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  text-decoration: none;
  padding-block: var(--space-4);
  border-bottom: 1px solid var(--color-divider);
}
.drawer__nav a:hover { color: var(--color-primary); }
.drawer__nav .btn { margin-top: var(--space-8); }
.drawer__lang { margin-top: var(--space-8); }
.drawer__lang .lang { display: inline-flex; }

/* ============================================================
   Buttons
   ============================================================ */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 48px; padding: var(--space-3) var(--space-8);
  font-size: var(--text-sm); font-weight: 600; letter-spacing: 0.04em;
  text-decoration: none; border-radius: var(--radius-full);
  transition: background var(--transition-interactive), color var(--transition-interactive),
    border-color var(--transition-interactive), box-shadow var(--transition-interactive),
    transform var(--transition-interactive);
}
.btn--primary { background: var(--color-primary); color: #14120f; }
.btn--primary:hover { background: var(--color-primary-hover); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn--primary:active { transform: translateY(0); box-shadow: var(--shadow-sm); }
.btn--ghost { border: 1px solid var(--color-border); color: var(--color-text); }
.btn--ghost:hover { border-color: var(--color-primary); color: var(--color-primary); }
.btn--on-dark { border: 1px solid oklch(1 0 0 / 0.3); color: var(--color-text-on-dark); }
.btn--on-dark:hover { border-color: var(--color-primary); color: var(--color-primary); background: oklch(0 0 0 / 0.25); }

.btn--header { display: none; }
@media (min-width: 1520px) {
  .btn--header { display: inline-flex; min-height: 42px; padding-inline: var(--space-6); font-size: var(--text-xs); }
}

.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-4); }

.textlink {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-size: var(--text-sm); font-weight: 600; letter-spacing: 0.03em;
  text-decoration: none; color: var(--color-primary);
  min-height: 44px;
}
.textlink svg { transition: transform var(--transition-interactive); }
.textlink:hover svg { transform: translateX(4px); }

/* ============================================================
   Hero
   ============================================================ */

.hero { position: relative; isolation: isolate; }
.hero__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, oklch(0.08 0.01 70 / 0.72) 0%, oklch(0.08 0.01 70 / 0.55) 40%, oklch(0.08 0.01 70 / 0.9) 100%);
}
.hero__inner {
  position: relative;
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: min(88svh, 780px);
  padding-block: clamp(var(--space-20), 12vw, var(--space-32)) clamp(var(--space-12), 7vw, var(--space-24));
  color: var(--color-text-on-dark);
}
.hero h1 { font-size: var(--text-hero); max-width: 22ch; }
.hero .kicker { color: #e2c076; }
.hero--plain .kicker { color: var(--color-primary); }
.hero__sub {
  margin-top: var(--space-6);
  font-size: var(--text-lg);
  color: oklch(1 0 0 / 0.78);
  max-width: 46ch;
  line-height: 1.5;
}
.hero .btn-row { margin-top: var(--space-10); }

/* Hero interno (pagine secondarie) */
.hero--page .hero__inner { min-height: min(62svh, 560px); }
.hero--page h1 { font-size: var(--text-2xl); max-width: 26ch; }

.hero--plain { background: var(--color-surface); }
.hero--plain .hero__inner { min-height: 0; color: var(--color-text); padding-block: clamp(var(--space-16), 9vw, var(--space-24)) clamp(var(--space-10), 5vw, var(--space-16)); }
.hero--plain h1 { font-size: var(--text-2xl); max-width: 26ch; }
.hero--plain .hero__sub { color: var(--color-text-muted); }

/* ============================================================
   Stats
   ============================================================ */

.stats {
  display: grid; gap: var(--space-8) var(--space-6);
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--color-divider);
  padding-top: var(--space-10);
}
@media (min-width: 720px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat__num {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat__label {
  margin-top: var(--space-3);
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-faint);
}

/* ============================================================
   Split (immagine + testo)
   ============================================================ */

.split { display: grid; gap: clamp(var(--space-8), 5vw, var(--space-16)); align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1.05fr 1fr; }
  .split--reverse > figure { order: 2; }
  .split--wide-media { grid-template-columns: 1.3fr 1fr; }
}
.split figure { margin: 0; }
.split figure img { width: 100%; border-radius: var(--radius-lg); }
.split figcaption {
  margin-top: var(--space-3);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  letter-spacing: 0.04em;
}
.split__body h2 { font-size: var(--text-xl); }
.split__body > * + * { margin-top: var(--space-5); }
.split__body p { color: var(--color-text-muted); }

/* ============================================================
   Cards
   ============================================================ */

.cards { display: grid; gap: var(--space-6); }
@media (min-width: 700px) { .cards--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 700px) { .cards--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .cards--3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  padding: clamp(var(--space-6), 3vw, var(--space-10));
  display: flex; flex-direction: column;
}
.card__step {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}
.card h3 { font-size: var(--text-lg); font-family: var(--font-body); font-weight: 600; letter-spacing: 0; }
.card p { margin-top: var(--space-4); color: var(--color-text-muted); font-size: var(--text-sm); }
.card ul { margin-top: var(--space-4); padding-left: 0; list-style: none; }
.card ul li {
  position: relative; padding-left: var(--space-5); margin-top: var(--space-2);
  font-size: var(--text-sm); color: var(--color-text-muted);
}
.card ul li::before {
  content: ''; position: absolute; left: 0; top: 0.68em;
  width: 8px; height: 1px; background: var(--color-primary);
}
a.card { text-decoration: none; }
a.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--color-border); }
a.card:active { transform: translateY(0); }
a.card { transition: transform var(--transition-interactive), box-shadow var(--transition-interactive), border-color var(--transition-interactive); }
a.card .textlink { margin-top: auto; padding-top: var(--space-6); }

.card--feature { background: var(--color-surface-offset); }
@media (min-width: 700px) { .card--feature { grid-column: span 2; } }
@media (min-width: 700px) {
  .card--feature { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-8); align-items: center; }
  .card--feature > div:first-child { grid-column: 1; }
}

/* ============================================================
   Marquee referenze
   ============================================================ */

.namelist {
  display: flex; flex-wrap: wrap;
  gap: var(--space-4) clamp(var(--space-6), 3vw, var(--space-12));
  align-items: baseline;
}
.namelist span {
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 0.9rem + 1vw, 1.75rem);
  color: var(--color-text-muted);
  letter-spacing: 0.01em;
}

/* ============================================================
   Quote
   ============================================================ */

.quote {
  border-left: 0;
  position: relative;
  padding-left: clamp(var(--space-6), 4vw, var(--space-12));
}
.quote::before {
  content: ''; position: absolute; left: 0; top: 0.4em; bottom: 0.4em;
  width: 1px; background: var(--color-primary);
}
.quote p {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  line-height: 1.3;
  max-width: 30ch;
}
.quote cite {
  display: block; margin-top: var(--space-5);
  font-family: var(--font-body); font-style: normal;
  font-size: var(--text-xs); letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--color-text-faint);
}

/* ============================================================
   FAQ
   ============================================================ */

.faq { border-top: 1px solid var(--color-divider); }
.faq details { border-bottom: 1px solid var(--color-divider); }
.faq summary {
  display: flex; align-items: flex-start; gap: var(--space-5);
  padding-block: var(--space-5);
  cursor: pointer; list-style: none;
  font-size: var(--text-base); font-weight: 500;
  min-height: 44px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; margin-left: auto; flex: 0 0 auto;
  width: 12px; height: 12px; margin-top: 0.5em;
  border-right: 1px solid var(--color-primary);
  border-bottom: 1px solid var(--color-primary);
  transform: rotate(45deg);
  transition: transform 250ms var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq summary:hover { color: var(--color-primary); }
.faq__answer { padding-bottom: var(--space-6); }
.faq__answer p { color: var(--color-text-muted); font-size: var(--text-sm); }
.faq__answer p + p { margin-top: var(--space-4); }

/* ============================================================
   Tabella / elenchi geografici
   ============================================================ */

.deflist { border-top: 1px solid var(--color-divider); }
.deflist__row {
  display: grid; gap: var(--space-2) var(--space-8);
  padding-block: var(--space-6);
  border-bottom: 1px solid var(--color-divider);
}
@media (min-width: 780px) { .deflist__row { grid-template-columns: 15rem 1fr; } }
.deflist__row dt { font-weight: 600; font-size: var(--text-sm); letter-spacing: 0.02em; }
.deflist__row dd { color: var(--color-text-muted); font-size: var(--text-sm); margin: 0; }

/* ============================================================
   Gallery
   ============================================================ */

.gallery { display: grid; gap: var(--space-4); grid-template-columns: 1fr; }
@media (min-width: 760px) {
  .gallery { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 1fr; }
  .gallery figure:first-child { grid-column: span 2; grid-row: span 2; }
}
.gallery figure { margin: 0; position: relative; overflow: hidden; border-radius: var(--radius-lg); }
.gallery img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 2; }
.gallery figure:first-child img { aspect-ratio: 3 / 2.02; }
.gallery figcaption {
  position: absolute; inset: auto 0 0 0;
  padding: var(--space-8) var(--space-5) var(--space-4);
  font-size: var(--text-xs); letter-spacing: 0.06em;
  color: oklch(1 0 0 / 0.9);
  background: linear-gradient(180deg, transparent, oklch(0.1 0.01 70 / 0.85));
}

/* ============================================================
   Banda immagine a pieno campo
   ============================================================ */

.band { position: relative; isolation: isolate; }
.band__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.band__media img { width: 100%; height: 100%; object-fit: cover; }
.band__media::after {
  content: ''; position: absolute; inset: 0;
  background: oklch(0.1 0.01 70 / 0.68);
}
.band__inner {
  padding-block: clamp(var(--space-20), 10vw, var(--space-32));
  color: var(--color-text-on-dark);
}
.band .kicker { color: #e2c076; }
.band h2 { font-size: var(--text-xl); max-width: 26ch; }
.band p { margin-top: var(--space-5); color: oklch(1 0 0 / 0.78); max-width: 52ch; }
.band .btn-row { margin-top: var(--space-8); }

/* ============================================================
   CTA / contatti
   ============================================================ */

.cta { background: var(--color-surface-offset); }
.cta__inner {
  display: grid; gap: var(--space-8);
  padding-block: clamp(var(--space-16), 8vw, var(--space-24));
}
@media (min-width: 900px) {
  .cta__inner { grid-template-columns: 1fr auto; align-items: center; gap: var(--space-16); }
}
.cta h2 { font-size: var(--text-xl); }
.cta p { margin-top: var(--space-4); color: var(--color-text-muted); }

.contact-grid { display: grid; gap: var(--space-8); }
@media (min-width: 860px) { .contact-grid { grid-template-columns: 1fr 1fr; gap: var(--space-16); } }
.contact-block h3 { font-size: var(--text-lg); font-family: var(--font-body); font-weight: 600; }
.contact-block p { margin-top: var(--space-4); color: var(--color-text-muted); }
.contact-mail {
  display: inline-block; margin-top: var(--space-5);
  font-family: var(--font-display); font-size: var(--text-lg);
  text-decoration: none;
  border-bottom: 1px solid var(--color-primary);
  padding-bottom: 2px;
  word-break: break-word;
}
.contact-mail:hover { color: var(--color-primary); }

/* ============================================================
   Footer
   ============================================================ */

.footer {
  border-top: 1px solid var(--color-divider);
  padding-block: clamp(var(--space-16), 7vw, var(--space-24)) var(--space-10);
  background: var(--color-surface);
}
.footer__grid { display: grid; gap: var(--space-10); }
@media (min-width: 760px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; gap: var(--space-16); } }
.footer h2 {
  font-family: var(--font-body); font-size: var(--text-xs); font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--color-text-faint);
  margin-bottom: var(--space-5);
}
.footer ul { list-style: none; padding: 0; }
.footer li + li { margin-top: var(--space-3); }
.footer a { font-size: var(--text-sm); color: var(--color-text-muted); text-decoration: none; }
.footer a:hover { color: var(--color-primary); }
.footer__about p { font-size: var(--text-sm); color: var(--color-text-muted); margin-top: var(--space-5); }
.footer__bottom {
  margin-top: clamp(var(--space-12), 6vw, var(--space-20));
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-divider);
  display: flex; flex-wrap: wrap; gap: var(--space-4) var(--space-8);
  align-items: center;
  font-size: var(--text-xs); color: var(--color-text-faint);
}
.footer__bottom a { font-size: var(--text-xs); }

/* ============================================================
   Reveal
   ============================================================ */

.reveal { opacity: 1; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal {
      opacity: 0;
      animation: reveal-fade linear both;
      animation-timeline: view();
      animation-range: entry 5% entry 60%;
    }
  }
}
@keyframes reveal-fade { to { opacity: 1; } }

.hr-rule { height: 1px; background: var(--color-divider); border: 0; }
