/* ==========================================================================
   HORIZON MUSIC ACADEMY — "Nocturne"
   Dark editorial concert-hall aesthetic. Ink, ivory, gold.
   ========================================================================== */

/* ---------- 1. Tokens ---------------------------------------------------- */
:root {
  /* ink ramp */
  --ink-950: #080706;
  --ink-900: #0b0a09;
  --ink-850: #100e0c;
  --ink-800: #17130f;
  --ink-750: #1d1813;
  --ink-700: #211b15;
  --ink-600: #2c241c;
  --ink-500: #3a2f24;

  /* light ramp */
  --ivory: #f7f2e9;
  --bone: #dcd2c2;
  --ash: #a89d8c;
  --ash-dim: #7d7365;

  /* metal */
  --gold: #c9a356;
  --gold-lt: #efd49a;
  --gold-dk: #8d6f34;
  --gold-a10: rgb(201 163 86 / 0.1);
  --gold-a18: rgb(201 163 86 / 0.18);
  --gold-a30: rgb(201 163 86 / 0.3);
  --wine: #5a2333;

  /* semantic */
  --bg: var(--ink-900);
  --bg-alt: var(--ink-850);
  --bg-rise: var(--ink-800);
  --fg: var(--ivory);
  --fg-mute: var(--bone);
  --fg-dim: var(--ash);
  --rule: rgb(247 242 233 / 0.1);
  --rule-strong: rgb(247 242 233 / 0.18);

  /* type */
  --font-display: 'Cormorant Garamond', 'Cormorant', 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI Variable Text', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  --fs-mega: clamp(3.6rem, 11.4vw, 11rem);
  --fs-h1: clamp(2.65rem, 6.3vw, 5.4rem);
  --fs-h2: clamp(2.1rem, 4.4vw, 3.7rem);
  --fs-h3: clamp(1.5rem, 2.5vw, 2.15rem);
  --fs-h4: clamp(1.18rem, 1.6vw, 1.38rem);
  --fs-lede: clamp(1.03rem, 1.35vw, 1.22rem);
  --fs-body: clamp(0.965rem, 1.05vw, 1.04rem);
  --fs-sm: 0.875rem;
  --fs-xs: 0.775rem;
  --fs-eyebrow: 0.7rem;

  /* geometry */
  --wrap: 1280px;
  --wrap-narrow: 940px;
  --gut: clamp(1.15rem, 4.2vw, 3.25rem);
  --sec-y: clamp(4.5rem, 10vw, 9.5rem);
  --r-sm: 3px;
  --r-md: 8px;
  --r-lg: 18px;
  --r-arch: 50vw 50vw 10px 10px / 22vw 22vw 10px 10px;

  /* motion */
  --e-out: cubic-bezier(0.22, 1, 0.36, 1);
  --e-io: cubic-bezier(0.65, 0, 0.35, 1);
  --t-fast: 220ms;
  --t-mid: 460ms;
  --t-slow: 900ms;

  --hdr-h: 84px;
}

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

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scrollbar-color: var(--gold-dk) var(--ink-900);
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 350;
  line-height: 1.72;
  letter-spacing: 0.006em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  min-height: 100vh;
}

img,
svg,
canvas,
video {
  display: block;
  max-width: 100%;
}
img { height: auto; }

a { color: inherit; text-decoration: none; }

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

button {
  background: none;
  border: 0;
  cursor: pointer;
}

ul,
ol { list-style: none; padding: 0; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.012em;
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }

p { text-wrap: pretty; }

::selection {
  background: var(--gold);
  color: var(--ink-900);
}

:focus-visible {
  outline: 2px solid var(--gold-lt);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- 3. Ambient texture ------------------------------------------- */
body::before {
  /* film grain */
  content: '';
  position: fixed;
  inset: -20lvh -20vw;
  z-index: 2147483000;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='260' height='260' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  will-change: transform;
  animation: grain-shift 6s steps(6) infinite;
}

@keyframes grain-shift {
  0% { transform: translate3d(0, 0, 0); }
  20% { transform: translate3d(-3%, 2%, 0); }
  40% { transform: translate3d(2%, -3%, 0); }
  60% { transform: translate3d(-2%, -2%, 0); }
  80% { transform: translate3d(3%, 1%, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

/* ---------- 4. Typography helpers ---------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gut);
}
.wrap--narrow { max-width: var(--wrap-narrow); }
.wrap--wide { max-width: 1560px; }

.serif { font-family: var(--font-display); }
.italic { font-style: italic; }
.gold { color: var(--gold); }
.mute { color: var(--fg-dim); }

.lede {
  font-size: var(--fs-lede);
  line-height: 1.62;
  color: var(--fg-mute);
  font-weight: 320;
  max-width: 62ch;
  letter-spacing: 0.002em;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.85em;
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.35em;
}
.eyebrow__i {
  font-variant-numeric: tabular-nums;
  color: var(--ash-dim);
  letter-spacing: 0.1em;
}
.eyebrow__i::after {
  content: '';
  display: inline-block;
  width: 2.6em;
  height: 1px;
  background: var(--gold-a30);
  vertical-align: middle;
  margin-left: 0.75em;
}

.sec-head { max-width: 66ch; }
.sec-head--center {
  margin-inline: auto;
  text-align: center;
}
.sec-head--center .eyebrow { justify-content: center; }
.sec-head--center .lede { margin-inline: auto; }
.sec-head--narrow { max-width: 46ch; }
.sec-head h2 { font-size: var(--fs-h2); margin-bottom: 0.42em; }
.sec-head h2 em,
h1 em,
h2 em {
  font-style: italic;
  color: var(--gold);
}
.sec-head .lede { margin-top: 1.1em; }

.orn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.orn i {
  width: clamp(28px, 5vw, 64px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-a30), transparent);
}
.orn b {
  width: 5px;
  height: 5px;
  rotate: 45deg;
  background: var(--gold);
  opacity: 0.75;
}

/* ---------- 5. Buttons --------------------------------------------------- */
.btn {
  --btn-bg: var(--gold);
  --btn-fg: var(--ink-900);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7em;
  padding: 1.02em 1.85em;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: 0.055em;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  transition: color var(--t-fast) var(--e-out), transform var(--t-mid) var(--e-out), box-shadow var(--t-mid) var(--e-out);
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg, var(--gold-lt), var(--gold), var(--gold-dk));
  opacity: 0;
  transition: opacity var(--t-fast) linear;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -14px rgb(201 163 86 / 0.55); }
.btn:hover::before { opacity: 1; }
.btn:active { transform: translateY(0) scale(0.99); }

.btn__ico {
  display: grid;
  place-items: center;
  width: 1.05em;
  height: 1.05em;
  transition: transform var(--t-mid) var(--e-out);
}
.btn__ico .ico { width: 100%; height: 100%; }
.btn:hover .btn__ico { transform: translateX(4px); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ivory);
  border: 1px solid var(--rule-strong);
  backdrop-filter: blur(6px);
}
.btn--ghost::before {
  background: var(--ivory);
  opacity: 0;
}
.btn--ghost:hover {
  --btn-fg: var(--ink-900);
  border-color: var(--ivory);
  box-shadow: none;
}
.btn--ghost:hover::before { opacity: 1; }

.btn--line {
  --btn-bg: transparent;
  --btn-fg: var(--gold);
  border-bottom: 1px solid var(--gold-a30);
  border-radius: 0;
  padding: 0.35em 0;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: var(--fs-xs);
}
.btn--line:hover { --btn-fg: var(--gold-lt); transform: none; box-shadow: none; }
.btn--line:hover::before { opacity: 0; }

.btn--sm { padding: 0.82em 1.35em; font-size: var(--fs-xs); letter-spacing: 0.09em; }
.btn--lg { padding: 1.18em 2.2em; font-size: 0.94rem; }

.ico {
  width: 1.25em;
  height: 1.25em;
  flex: none;
}

/* ---------- 6. Header ---------------------------------------------------- */
.skip {
  position: fixed;
  top: 0;
  left: 50%;
  translate: -50% -140%;
  z-index: 999;
  background: var(--gold);
  color: var(--ink-900);
  padding: 0.75em 1.4em;
  border-radius: 0 0 var(--r-md) var(--r-md);
  font-size: var(--fs-sm);
  font-weight: 600;
  transition: translate var(--t-fast) var(--e-out);
}
.skip:focus { translate: -50% 0; }

.scroll-rail {
  position: fixed;
  inset: 0 0 auto;
  height: 2px;
  z-index: 260;
  background: transparent;
}
.scroll-rail span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--gold-dk), var(--gold), var(--gold-lt));
  transform-origin: 0 50%;
}

.hdr {
  position: fixed;
  inset: 0 0 auto;
  z-index: 250;
  height: var(--hdr-h);
  display: flex;
  align-items: center;
  transition: background var(--t-mid) var(--e-out), border-color var(--t-mid) var(--e-out), height var(--t-mid) var(--e-out), backdrop-filter var(--t-mid);
  border-bottom: 1px solid transparent;
}
.hdr__in {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gut);
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.6rem);
}

.hdr.is-stuck {
  height: 70px;
  background: rgb(8 7 6 / 0.78);
  backdrop-filter: blur(18px) saturate(1.3);
  border-bottom-color: var(--rule);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
}
.hdr.is-hidden { translate: 0 -102%; transition: translate var(--t-mid) var(--e-out); }

/* brand */
.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex: none;
  margin-right: auto;
}
.brand__mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, var(--ink-700), var(--ink-950) 72%);
  border: 1px solid var(--gold-a30);
  overflow: hidden;
  transition: border-color var(--t-mid), transform var(--t-mid) var(--e-out);
}
.brand__mark img {
  width: 76%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 1px 6px rgb(201 163 86 / 0.32));
}
.brand:hover .brand__mark { border-color: var(--gold); transform: rotate(-4deg) scale(1.04); }
.brand__word { display: grid; line-height: 1; gap: 4px; }
.brand__name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.005em;
  white-space: nowrap;
}
.brand__name em {
  font-style: italic;
  color: var(--gold);
}
.brand__tag {
  font-size: 0.585rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ash-dim);
  white-space: nowrap;
}

/* nav */
.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(0.2rem, 1.5vw, 1.1rem);
}
.nav__item { position: relative; }
.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  padding: 0.7em 0.85em;
  font-size: var(--fs-sm);
  letter-spacing: 0.02em;
  color: var(--fg-mute);
  transition: color var(--t-fast);
  border-radius: 6px;
}
.nav__link::after {
  content: '';
  position: absolute;
  left: 0.85em;
  right: 0.85em;
  bottom: 0.42em;
  height: 1px;
  background: var(--gold);
  scale: 0 1;
  transform-origin: 0 50%;
  transition: scale var(--t-mid) var(--e-out);
}
.nav__link:hover,
.nav__link.is-active { color: var(--ivory); }
.nav__link:hover::after,
.nav__link.is-active::after { scale: 1 1; }
.nav__link--btn { cursor: pointer; }
.nav__chev { width: 13px; height: 13px; transition: rotate var(--t-fast); opacity: 0.7; }
.nav__item--menu[data-open='true'] .nav__chev { rotate: 180deg; }

.nav__menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  translate: -50% 0;
  min-width: 300px;
  opacity: 0;
  visibility: hidden;
  translate: -50% 8px;
  transition: opacity var(--t-fast) var(--e-out), translate var(--t-mid) var(--e-out), visibility var(--t-fast);
}
.nav__item--menu[data-open='true'] .nav__menu,
.nav__item--menu:focus-within .nav__menu {
  opacity: 1;
  visibility: visible;
  translate: -50% 0;
}
.nav__menu-in {
  padding: 1.15rem;
  border-radius: var(--r-lg);
  background: rgb(16 14 12 / 0.94);
  border: 1px solid var(--rule-strong);
  box-shadow: 0 30px 70px -30px #000, inset 0 1px 0 rgb(247 242 233 / 0.06);
  backdrop-filter: blur(20px);
  display: grid;
  gap: 2px;
}
.nav__menu-label {
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ash-dim);
  padding: 0.2rem 0.8rem 0.6rem;
}
.nav__menu-link {
  display: grid;
  gap: 2px;
  padding: 0.62rem 0.8rem;
  border-radius: var(--r-md);
  transition: background var(--t-fast);
}
.nav__menu-link:hover { background: var(--gold-a10); }
.nav__menu-name { font-size: 0.95rem; color: var(--ivory); }
.nav__menu-meta { font-size: 0.74rem; color: var(--ash-dim); letter-spacing: 0.02em; }
.nav__menu-all {
  display: flex;
  align-items: center;
  gap: 0.5em;
  margin-top: 0.5rem;
  padding: 0.7rem 0.8rem 0.35rem;
  border-top: 1px solid var(--rule);
  font-size: var(--fs-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}
.nav__menu-all .ico { width: 15px; height: 15px; transition: transform var(--t-fast); }
.nav__menu-all:hover .ico { transform: translateX(3px); }

.hdr__actions {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex: none;
}
.hdr__tel {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: var(--fs-sm);
  color: var(--fg-mute);
  letter-spacing: 0.02em;
  transition: color var(--t-fast);
}
.hdr__tel .ico { width: 15px; height: 15px; color: var(--gold); }
.hdr__tel:hover { color: var(--ivory); }

.burger {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--rule-strong);
  place-items: center;
  gap: 5px;
}
.burger span {
  display: block;
  width: 17px;
  height: 1px;
  background: var(--ivory);
  transition: transform var(--t-fast) var(--e-out), opacity var(--t-fast);
}
.burger[aria-expanded='true'] span:first-child { transform: translateY(3px) rotate(45deg); }
.burger[aria-expanded='true'] span:last-child { transform: translateY(-3px) rotate(-45deg); }

/* ---------- 7. Drawer ---------------------------------------------------- */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: linear-gradient(160deg, var(--ink-850), var(--ink-950));
  display: flex;
  flex-direction: column;
  padding: 1.3rem var(--gut) calc(1.6rem + env(safe-area-inset-bottom));
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t-mid) var(--e-out), visibility var(--t-mid);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.drawer[hidden] { display: flex; }
.drawer.is-open { opacity: 1; visibility: visible; }
.drawer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.2rem;
}
.drawer__eyebrow {
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
}
.drawer__close {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--rule-strong);
}
.drawer__nav { display: grid; gap: 2px; padding-block: 0.5rem; }
.drawer__link {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  padding: 0.55rem 0;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 8vw, 2.5rem);
  line-height: 1.15;
  border-bottom: 1px solid var(--rule);
  opacity: 0;
  translate: 0 14px;
  transition: opacity var(--t-mid) var(--e-out), translate var(--t-mid) var(--e-out), color var(--t-fast);
}
.drawer.is-open .drawer__link {
  opacity: 1;
  translate: 0 0;
  transition-delay: calc(70ms + var(--i) * 44ms);
}
.drawer__link--sub { font-size: clamp(1.2rem, 5.4vw, 1.55rem); color: var(--fg-mute); }
.drawer__n {
  font-family: var(--font-body);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  padding-top: 0.4em;
}
.drawer__link:hover { color: var(--gold); }
.drawer__foot { margin-top: auto; display: grid; gap: 1rem; padding-top: 2rem; }
.drawer__tel {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  color: var(--fg-mute);
  font-size: var(--fs-sm);
  letter-spacing: 0.06em;
}
.drawer__tel .ico { width: 16px; height: 16px; color: var(--gold); }

/* ---------- 8. Footer ---------------------------------------------------- */
.foot {
  position: relative;
  padding-top: clamp(3.5rem, 8vw, 6.5rem);
  border-top: 1px solid var(--rule);
  background: linear-gradient(180deg, var(--ink-900), var(--ink-950));
  overflow: hidden;
}
.foot__glow {
  position: absolute;
  left: 50%;
  bottom: -46%;
  translate: -50% 0;
  width: min(1200px, 130vw);
  aspect-ratio: 2 / 1;
  background: radial-gradient(ellipse at 50% 50%, rgb(201 163 86 / 0.16), transparent 66%);
  pointer-events: none;
  filter: blur(18px);
}
.foot__in { position: relative; }
.foot__grid {
  display: grid;
  grid-template-columns: 1.5fr 0.85fr 1.1fr 1.05fr;
  gap: clamp(1.8rem, 4vw, 3.6rem);
  padding-bottom: clamp(2.4rem, 5vw, 4rem);
}
.foot__logo { width: 118px; margin-bottom: 1.2rem; opacity: 0.95; }
.foot__blurb {
  font-size: 0.93rem;
  line-height: 1.68;
  color: var(--fg-dim);
  max-width: 34ch;
}
.foot__contact { display: grid; gap: 0.55rem; margin-top: 1.5rem; }
.foot__contact a {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-size: var(--fs-sm);
  color: var(--fg-mute);
  transition: color var(--t-fast);
}
.foot__contact a:hover { color: var(--gold); }
.foot__contact .ico { width: 15px; height: 15px; color: var(--gold); opacity: 0.85; }

.foot__h {
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}
.foot__col ul { display: grid; gap: 0.62rem; }
.foot__col a {
  font-size: 0.94rem;
  color: var(--fg-mute);
  transition: color var(--t-fast), padding-left var(--t-fast) var(--e-out);
  display: inline-block;
}
.foot__col a:hover { color: var(--ivory); padding-left: 4px; }
.foot__col a span {
  display: block;
  font-size: 0.76rem;
  color: var(--ash-dim);
  letter-spacing: 0.02em;
}
.foot__col--cta p {
  font-size: 0.9rem;
  color: var(--fg-dim);
  margin-bottom: 1.3rem;
  max-width: 26ch;
}

.foot__wordmark {
  position: relative;
  margin-top: 1rem;
  line-height: 0.72;
  pointer-events: none;
  user-select: none;
}
.foot__wordmark span {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 22vw, 19rem);
  font-weight: 300;
  letter-spacing: -0.035em;
  text-align: center;
  background: linear-gradient(180deg, rgb(247 242 233 / 0.17), rgb(247 242 233 / 0.055) 58%, transparent 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transform: translateY(0.08em);
}

.foot__base {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.5rem 0 1.7rem;
  border-top: 1px solid var(--rule);
  font-size: var(--fs-xs);
  color: var(--ash-dim);
  letter-spacing: 0.04em;
}
.foot__base-mid {
  display: flex;
  align-items: center;
  gap: 0.6em;
}
.foot__base-mid i { color: var(--gold-dk); font-style: normal; }
.foot__top {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  color: var(--fg-mute);
  transition: color var(--t-fast);
}
.foot__top .ico { width: 14px; height: 14px; rotate: -90deg; transition: transform var(--t-fast) var(--e-out); }
.foot__top:hover { color: var(--gold); }
.foot__top:hover .ico { transform: translateY(-3px); }

/* ---------- 9. Reveal / motion ------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity var(--t-slow) var(--e-out), transform var(--t-slow) var(--e-out);
  transition-delay: var(--d, 0ms);
  will-change: opacity, transform;
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}
.reveal--blur { filter: blur(8px); transition: opacity var(--t-slow) var(--e-out), transform var(--t-slow) var(--e-out), filter var(--t-slow) var(--e-out); }
.reveal--blur.is-in { filter: blur(0); }

/* split-line headline animation */
.lines span {
  display: block;
  overflow: hidden;
}
.lines span > i {
  display: block;
  font-style: inherit;
  transform: translateY(105%);
  transition: transform 1.15s var(--e-out);
  transition-delay: calc(var(--ln, 0) * 110ms + 120ms);
}
.lines.is-in span > i { transform: none; }

/* ---------- 10. Utilities ------------------------------------------------ */
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.hr-gold {
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, transparent, var(--gold-a30) 18%, var(--gold-a30) 82%, transparent);
}

.marquee {
  display: flex;
  overflow: hidden;
  user-select: none;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: flex;
  flex: none;
  min-width: 100%;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  padding-right: clamp(1.5rem, 4vw, 3.5rem);
  animation: marquee-x 42s linear infinite;
}
.marquee__track--rev { animation-direction: reverse; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee-x {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

/* ---------- 11. Responsive ----------------------------------------------- */
@media (max-width: 1180px) {
  .hdr__tel span { display: none; }
  .brand__tag { display: none; }
}

@media (max-width: 1000px) {
  :root { --hdr-h: 74px; }
  .nav,
  .hdr__tel { display: none; }
  .burger { display: grid; }
  .foot__grid { grid-template-columns: 1fr 1fr; }
  .foot__brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  :root { --hdr-h: 66px; --gut: 1.15rem; }
  .brand__mark { width: 40px; height: 40px; }
  .brand__name { font-size: 1.06rem; }
  .hdr__actions .btn { display: none; }
  .foot__grid { grid-template-columns: 1fr; gap: 2.2rem; }
  .foot__col--cta p { max-width: none; }
  .foot__base { flex-direction: column; align-items: flex-start; gap: 0.7rem; }
  .foot__base-mid { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; filter: none; }
  .lines span > i { transform: none; }
  body::before { animation: none; }
}

@media print {
  body::before,
  .hdr,
  .drawer,
  .scroll-rail,
  .foot__wordmark { display: none !important; }
  body { background: #fff; color: #000; }
}
