/* La Scala — design system in CSS. Source: Figma 80DGJEV8CNGCJqMSOZWv8Q, page "17 · La Scala" (Home — Desktop 227:1696).
   Breakpoints: mobile < 768 (design 390) · tablet 768–1199 · desktop ≥ 1200 (design 1440). */

:root {
  /* colour */
  --bg-base: #130813;
  --bg-raised: #221021;
  --bg-raised-top: #2A1229;
  --bg-raised-bottom: #1B0C1A;
  --bg-deep: #0C050C;
  --bg-button: #D9B56E;
  --bg-glow: #3A1238;
  --bg-glow-mid: #270D26;
  --text-primary: #F3E4C6;
  --text-secondary: #A8927A;
  --text-tertiary: #6E5468;
  --line-default: rgba(243, 228, 198, .12);
  --line-strong: rgba(243, 228, 198, .40);
  --accent: #D9B56E;
  --gold: #D9B56E;

  /* effects */
  --shadow-raised: 0 30px 60px rgba(0, 0, 0, .65);
  --shadow-button: 0 12px 30px rgba(0, 0, 0, .60);
  --shadow-text: 0 10px 30px rgba(0, 0, 0, .70);
  --radius: 2px;

  /* spacing scale */
  --s4: 4px; --s8: 8px; --s12: 12px; --s16: 16px; --s24: 24px; --s32: 32px;
  --s48: 48px; --s64: 64px; --s96: 96px; --s128: 128px;

  /* grid — mobile first */
  --margin: 24px;
  --cols: 4;
  --gutter: 16px;
  --section-pad: 72px;
  --head-gap: 32px;

  /* type scale — mobile */
  --h1: 40px;  --h1-lh: 46px; --h1-ls: .05em;
  --h2: 30px;  --h2-lh: 38px; --h2-ls: .08em;
  --h3: 19px;  --h3-lh: 26px; --h3-ls: .08em;
  --h4: 15px;  --h4-lh: 20px; --h4-ls: .08em;
  --stat: 28px; --stat-lh: 34px;
  --kicker: 26px;
  --body-l: 17px; --body: 16px;

  --font: "Montserrat", system-ui, sans-serif;
  --font-display: "Cinzel", Georgia, serif;
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-script: "Great Vibes", cursive;
}

@media (min-width: 768px) {
  :root {
    --margin: 48px; --cols: 8; --gutter: 16px;
    --section-pad: 96px; --head-gap: 48px;
    --h1: 52px; --h1-lh: 62px;
    --h2: 38px; --h2-lh: 46px;
    --h3: 21px; --h3-lh: 28px;
    --h4: 16px; --h4-lh: 22px;
    --stat: 34px; --stat-lh: 40px;
    --kicker: 28px;
    --body-l: 18px; --body: 17px;
  }
}

@media (min-width: 1200px) {
  :root {
    --margin: max(48px, calc((100vw - 1080px) / 2));
    --cols: 12; --gutter: 24px;
    --section-pad: 128px; --head-gap: 56px;
    --h1: 61px; --h1-lh: 72px;
    --h2: 42px; --h2-lh: 52px;
    --h3: 22px; --h3-lh: 30px;
    --h4: 16px; --h4-lh: 22px;
    --stat: 37px; --stat-lh: 44px;
    --kicker: 30px;
    --body-l: 19px; --body: 17px;
  }
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg-base); color: var(--text-primary);
  font-family: var(--font); font-weight: 400; font-size: 13px; line-height: 22px;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; padding: 0; }
ul { list-style: none; }
:focus-visible { outline: 1px solid var(--accent); outline-offset: 4px; }

/* ---------- typography (text styles) ---------- */
.t-h1, .t-h2, .t-h3, .t-h4 { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; }
.t-h1 { font-size: var(--h1); line-height: var(--h1-lh); letter-spacing: var(--h1-ls); text-shadow: var(--shadow-text); }
.t-h2 { font-size: var(--h2); line-height: var(--h2-lh); letter-spacing: var(--h2-ls); text-shadow: var(--shadow-text); }
.t-h3 { font-size: var(--h3); line-height: var(--h3-lh); letter-spacing: var(--h3-ls); }
.t-h4 { font-size: var(--h4); line-height: var(--h4-lh); letter-spacing: var(--h4-ls); }
.t-kicker { font-family: var(--font-script); font-size: var(--kicker); line-height: 1.27; font-weight: 400; color: var(--gold); text-transform: none; letter-spacing: 0; }
.t-stat { font-family: var(--font-display); font-size: var(--stat); line-height: var(--stat-lh); letter-spacing: .02em; font-weight: 700; color: var(--gold); text-shadow: var(--shadow-text); }
.t-body-l { font-family: var(--font-serif); font-size: var(--body-l); line-height: 1.4; font-weight: 500; }
.t-body { font-family: var(--font-serif); font-size: var(--body); line-height: 1.4; font-weight: 500; }
.t-label { font-size: 10px; line-height: 14px; letter-spacing: .36em; font-weight: 500; text-transform: uppercase; }
.t-nav { font-size: 10px; line-height: 14px; letter-spacing: .30em; font-weight: 500; text-transform: uppercase; }
.t-button { font-size: 11px; line-height: 14px; letter-spacing: .24em; font-weight: 500; text-transform: uppercase; }
.t-caption { font-size: 11px; line-height: 16px; letter-spacing: .04em; font-weight: 400; }
.t-value { font-size: 13px; line-height: 18px; font-weight: 400; }
.t-index { font-size: 13px; line-height: 16px; letter-spacing: .06em; font-weight: 500; }
.t-row-title { font-size: 12px; line-height: 18px; letter-spacing: .04em; font-weight: 600; }
.t-label, .t-nav, .t-button, .t-caption, .t-value, .t-index, .t-row-title { font-family: var(--font); }
.c-secondary { color: var(--text-secondary); }
.c-tertiary { color: var(--text-tertiary); }
.center { text-align: center; }

/* ---------- layout ---------- */
.container { padding-inline: var(--margin); width: 100%; }
.grid {
  display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  column-gap: var(--gutter);
}
.section { position: relative; padding-block: var(--section-pad); }
.section--screen { /* soft radial light, like the Figma "Surface / Screen light" */
  background:
    radial-gradient(75% 90% at 50% 30%, var(--bg-glow) 0%, var(--bg-glow-mid) 50%, var(--bg-base) 100%);
}
.glow { /* mid-page soft glow that fades out inside the section (no seams) */
  background: radial-gradient(60% 55% at 50% 40%, rgba(58, 18, 56, .9) 0%, rgba(19, 8, 19, 0) 100%);
}
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- surfaces ---------- */
.raised {
  background: linear-gradient(180deg, var(--bg-raised-top) 0%, var(--bg-raised-bottom) 100%);
  border-radius: var(--radius); box-shadow: var(--shadow-raised);
}
.photo { border-radius: var(--radius); box-shadow: var(--shadow-raised); object-fit: cover; width: 100%; height: 100%; }

/* ---------- button ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 30px; border-radius: var(--radius); border: 0; cursor: pointer;
  font-size: 11px; line-height: 14px; letter-spacing: .24em; font-weight: 500; text-transform: uppercase;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn--raised { background: var(--bg-button); color: var(--bg-base); box-shadow: var(--shadow-button); }
.btn--raised:hover { background: #E6C483; }
.btn--raised:hover { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(0,0,0,.7); }
.btn--light { background: var(--gold); color: var(--bg-base); }
.btn--light:hover { background: #E6C483; }
.btn--ghost { background: transparent; box-sizing: border-box; color: var(--text-primary); box-shadow: inset 0 0 0 1px var(--line-strong); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1px var(--text-primary); }
.btn--block { width: 100%; }
@media (max-width: 767px) { .btn--block-m { width: 100%; } }

.link-arrow { display: inline-flex; gap: 10px; transition: color .2s; }
.link-arrow:hover { color: var(--text-primary); }

/* ---------- header / nav ---------- */
.site-header {
  position: absolute; inset: 0 0 auto 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px 0;
}
.site-header__logo img { width: auto; height: 46px; }
.site-header__links { display: none; gap: 48px; }
.site-header__links a { color: var(--text-secondary); transition: color .2s; }
.site-header__links a:hover, .site-header__links a[aria-current="page"] { color: var(--text-primary); }
.burger { width: 44px; height: 44px; margin-right: -8px; display: flex; flex-direction: column; align-items: flex-end; justify-content: center; padding-right: 8px; background: none; border: 0; cursor: pointer; }
.burger span { display: block; height: 1.5px; background: var(--text-primary); }
.burger span:first-child { width: 28px; margin-bottom: 7px; }
.burger span:last-child { width: 18px; }
@media (min-width: 1200px) {
  .site-header { padding: 40px 64px 0; align-items: flex-start; }
  .site-header__logo img { width: auto; height: 57px; }
  .site-header__links { display: flex; margin-top: 12px; }
  .burger { display: none; }
}

/* fixed rails — desktop hero only (added by pages that want them) */
.rail-socials, .rail-scroll { display: none; }
@media (min-width: 1200px) {
  .rail-socials { display: flex; flex-direction: column; gap: 26px; position: absolute; left: 64px; bottom: 54px; z-index: 5; }
  .rail-socials a { opacity: .7; transition: opacity .2s; } .rail-socials a:hover { opacity: 1; }
  .rail-scroll { display: flex; flex-direction: column; align-items: center; gap: 12px; position: absolute; right: 64px; bottom: 74px; z-index: 5; color: var(--text-secondary); }
  .rail-scroll span { writing-mode: vertical-rl; font-size: 9px; letter-spacing: .34em; text-transform: uppercase; font-weight: 500; }
  .rail-scroll i { width: 1px; height: 64px; background: var(--line-strong); }
}

/* ---------- menu overlay (tablet + mobile) ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 50; display: flex; flex-direction: column;
  padding: 20px 24px 40px; background: radial-gradient(80% 70% at 30% 20%, var(--bg-glow) 0%, var(--bg-base) 100%);
  opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s;
}
.overlay.is-open { opacity: 1; visibility: visible; }
.overlay__top { display: flex; justify-content: space-between; align-items: center; }
.overlay__top img { width: auto; height: 46px; }
.overlay__close { width: 44px; height: 44px; margin-right: -12px; background: none; border: 0; cursor: pointer; display: grid; place-items: center; }
.overlay__links { margin-top: 96px; display: flex; flex-direction: column; gap: 28px; }
.overlay__links a { display: flex; align-items: baseline; gap: 24px; }
.overlay__links a .t-index { color: var(--text-tertiary); width: 24px; }
.overlay__bottom { margin-top: auto; display: flex; flex-direction: column; gap: 32px; }
@media (min-width: 768px) { .overlay { padding: 20px 24px 64px; } .overlay__links { margin-top: 160px; } }
body.no-scroll { overflow: hidden; }

/* ---------- socials row ---------- */
.socials { display: flex; gap: 32px; align-items: center; }
.socials a { opacity: .7; transition: opacity .2s; display: block; }
.socials a:hover { opacity: 1; }
.socials svg, .rail-socials svg { display: block; }

/* ---------- heading (kicker + title) ---------- */
.heading { display: flex; flex-direction: column; gap: 10px; }
.heading--center { align-items: center; text-align: center; }
@media (max-width: 767px) { .heading { gap: 8px; } }

/* ---------- tabs ---------- */
.tabs { display: flex; gap: 24px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs--center { justify-content: center; }
@media (max-width: 767px) { .tabs--center { justify-content: flex-start; margin-inline: calc(var(--margin) * -1); padding-inline: var(--margin); } }
@media (min-width: 768px) { .tabs { gap: 28px; } }
@media (min-width: 1200px) { .tabs { gap: 40px; } }
.tab { padding: 0 0 8px; background: none; border: 0; border-bottom: 1px solid transparent; cursor: pointer; color: var(--text-secondary); flex: none;
  font-size: 10px; line-height: 14px; letter-spacing: .30em; font-weight: 500; text-transform: uppercase; transition: color .2s, border-color .2s; }
.tab:hover { color: var(--text-primary); }
.tab.is-active, .tab[aria-selected="true"] { color: var(--text-primary); border-bottom-color: var(--text-primary); }

/* ---------- pager ---------- */
.pager { display: inline-flex; align-items: center; gap: 16px; }
.pager__track { position: relative; width: 120px; height: 1px; background: var(--line-strong); }
.pager__track i { position: absolute; left: 0; top: 0; height: 1px; background: var(--text-primary); transition: width .4s ease; }
.pager__arrow { background: none; border: 0; cursor: pointer; color: var(--text-secondary); font-size: 16px; padding: 4px 8px; transition: color .2s; }
.pager__arrow:hover { color: var(--text-primary); }

/* ---------- stat ---------- */
.stat { display: flex; flex-direction: column; gap: 6px; }

/* ---------- info row ---------- */
.info-rows { }
.info-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 40px; padding: 10px 0; border-top: 1px solid var(--line-default); }
.info-row .t-label { color: var(--text-secondary); }

/* ---------- form field ---------- */
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 11px; line-height: 16px; letter-spacing: .04em; color: var(--text-secondary); }
.field input, .field select, .field textarea {
  background: none; border: 0; border-bottom: 1px solid var(--line-strong); border-radius: 0;
  padding: 0 0 10px; font-size: 13px; line-height: 18px; font-weight: 400; color: var(--text-primary); outline: none;
  transition: border-color .2s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-tertiary); }
.field input:focus, .field select:focus, .field textarea:focus { border-bottom-color: var(--accent); }
.field textarea { resize: vertical; min-height: 28px; }
.field select { appearance: none; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
input[type="date"]::-webkit-calendar-picker-indicator, input[type="time"]::-webkit-calendar-picker-indicator { filter: invert(.8); opacity: .6; }

/* ---------- framed photo ---------- */
.framed { position: relative; background: var(--bg-deep); /* plain raised photo (window bar removed 2026-09-28) */ border-radius: var(--radius); box-shadow: var(--shadow-raised); overflow: hidden; }
.framed__bar { height: 22px; background: var(--bg-raised); display: flex; gap: 5px; align-items: center; padding-left: 12px; }
.framed__bar i { width: 5px; height: 5px; border-radius: 50%; background: var(--text-primary); opacity: .3; }
.framed img { width: 100%; height: 100%; object-fit: cover; }
.framed__bar { display: none; }

/* ---------- coverflow (shared by home / gallery) ---------- */
.coverflow { position: relative; height: var(--cf-h, 420px); outline: none; touch-action: pan-y; user-select: none; }
.coverflow__item { position: absolute; top: 50%; left: 50%; width: var(--cf-w, 440px); height: var(--cf-h, 420px); overflow: hidden; border-radius: var(--radius); transition: transform .5s ease, filter .5s ease, opacity .5s ease; }
.coverflow__item img { pointer-events: none; -webkit-user-drag: none; }
.coverflow__item img { width: 100%; height: 100%; object-fit: cover; }
.coverflow__item::after { content: ""; position: absolute; inset: 0; background: var(--bg-base); opacity: var(--dim, 0); transition: opacity .5s; pointer-events: none; }

/* ---------- footer ---------- */
.site-footer { background: var(--bg-deep); padding-block: 64px 40px; }
.site-footer__top { display: grid; gap: 24px; }
.site-footer__logo img { width: auto; height: 75px; }
.site-footer__cols { display: grid; gap: 24px; }
.site-footer__cols .t-label { color: var(--text-secondary); margin: 4px 0 10px; display: block; }
.site-footer__cols > div { white-space: nowrap; }
.site-footer__links { display: flex; flex-direction: column; gap: 16px; margin-top: 32px; }
.site-footer__links { font-family: var(--font); }
.site-footer__links a:hover { color: var(--text-secondary); }
.site-footer__social { margin-top: 32px; }
.site-footer__bottom { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line-default); color: var(--text-tertiary); display: flex; flex-direction: column; gap: 6px; }
.site-footer__bottom a:hover { color: var(--text-secondary); }
@media (min-width: 768px) {
  .site-footer__top { grid-template-columns: 252px 1fr; align-items: start; gap: 0; }
  .site-footer__cols { grid-template-columns: 200px 140px 1fr; gap: 0; }
  .site-footer__mid { display: flex; justify-content: space-between; align-items: center; margin-top: 57px; min-height: 16px; }
  .site-footer__links { flex-direction: row; gap: 32px; margin-top: 0; }
  .site-footer__social { margin-top: 0; }
  .site-footer__bottom { flex-direction: row; justify-content: space-between; margin-top: 48px; }
}
@media (min-width: 1200px) {
  .site-footer__top { grid-template-columns: 360px 1fr; }
  .site-footer__cols { grid-template-columns: 240px 200px 1fr; }
  .site-footer__mid { padding-left: 360px; }
  .site-footer__links { gap: 40px; }
}

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }
