/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg:        #f4efe6;
  --bg-2:      #e8dfd0;
  --paper:     #ffffff;
  --ink:       #201c17;
  --ink-soft:  #3a342c;
  --ink-mute:  #746b5d;
  --accent:    #b3673f;
  --accent-2:  #5c5238;
  --line:      rgba(32,28,23,0.12);

  --serif: "Fraunces", "Georgia", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:   cubic-bezier(0.7, 0, 0.84, 0);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  --container: 1280px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 18px;
}

@property --mesh-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; tab-size: 2; scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.08; letter-spacing: -0.02em; font-family: var(--serif); font-weight: 500; color: var(--ink); }
em { font-style: italic; color: var(--accent); }
::selection { background: var(--accent); color: var(--paper); }

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

.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .6rem 1rem; background: var(--ink); color: var(--bg);
  z-index: 9999; border-radius: 8px; font-weight: 500;
  transition: top .25s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

/* =============================================================
   3. Utilities
   ============================================================= */
.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.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;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); font-weight: 600; margin-bottom: 1rem;
}
.eyebrow::before {
  content: ""; width: 22px; height: 1px; background: var(--accent);
}
.section { padding: clamp(4rem, 9vw, 8rem) 0; position: relative; }
.section-head { max-width: 640px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--ink-mute); font-size: 1.05rem; }
.section-title { font-size: clamp(1.9rem, 4vw, 2.7rem); margin-bottom: .9rem; }

/* Reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity .9s var(--ease-soft), transform .9s var(--ease-soft); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }

/* =============================================================
   4. Buttons
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .95rem 1.9rem; border-radius: 999px;
  font-size: .92rem; font-weight: 600; letter-spacing: .01em;
  transition: transform .45s var(--ease-out), background .3s var(--ease-out), color .3s var(--ease-out), box-shadow .3s var(--ease-out);
  white-space: nowrap;
}
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: var(--accent); box-shadow: 0 10px 30px -10px rgba(179,103,63,.6); transform: translateY(-2px); }
.btn-ghost { border: 1px solid var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn-sm { padding: .7rem 1.4rem; font-size: .82rem; }

/* =============================================================
   5. Nav
   ============================================================= */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem var(--gutter);
  color: var(--bg);
  transition: background .4s var(--ease-out), padding .4s var(--ease-out), box-shadow .4s var(--ease-out), color .4s var(--ease-out);
}
.nav.is-scrolled {
  background: rgba(244,239,230,.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding-block: .85rem;
  box-shadow: 0 1px 0 var(--line);
  color: var(--ink);
}
.nav-logo { font-family: var(--serif); font-size: 1.4rem; letter-spacing: .04em; }
.nav-logo span { display: block; font-family: var(--sans); font-size: .58rem; letter-spacing: .22em; color: rgba(244,239,230,.7); text-transform: uppercase; margin-top: -2px; transition: color .4s var(--ease-out); }
.nav.is-scrolled .nav-logo span { color: var(--ink-mute); }
.nav-links { display: none; align-items: center; gap: 2.1rem; }
.nav-links a { font-size: .92rem; font-weight: 500; position: relative; padding-bottom: 3px; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 1px; background: var(--accent);
  transition: width .35s var(--ease-out);
}
.nav-links a:hover::after { width: 100%; }
.nav-cta { display: none; }
.nav-toggle {
  display: flex; flex-direction: column; gap: 5px; padding: .5rem; z-index: 110;
}
.nav-toggle span { width: 22px; height: 1.5px; background: var(--bg); transition: transform .3s var(--ease-out), opacity .3s var(--ease-out), background .4s var(--ease-out); }
.nav.is-scrolled .nav-toggle span, .nav-toggle.is-open span { background: var(--ink); }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 99; background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.7rem;
  transform: translateY(-100%); transition: transform .5s var(--ease-out);
}
.mobile-menu.is-open { transform: translateY(0); }
.mobile-menu a { font-family: var(--serif); font-size: 1.7rem; }

@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-toggle { display: none; }
}

/* =============================================================
   6. Hero — full-bleed rotating banner
   ============================================================= */
.hero-full {
  position: relative;
  width: 100%;
  min-height: 78svh;
  margin-top: 0;
  display: flex; align-items: center;
  overflow: hidden;
  isolation: isolate;
}
.hero-full-carousel { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero-slide {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s var(--ease-soft);
}
.hero-slide.is-active { opacity: 1; z-index: 1; }
.hero-full-overlay {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(20,17,13,.62) 0%, rgba(20,17,13,.32) 45%, rgba(20,17,13,.12) 75%);
}
.hero-full-content { position: relative; z-index: 2; padding-block: 7rem 4rem; color: var(--bg); }
.hero-full-content .eyebrow { color: #e8b98a; }
.hero-full-title {
  font-size: clamp(2.8rem, 7vw, 5.2rem); color: var(--bg); margin-bottom: 1.2rem;
  max-width: 16ch;
}
.hero-full-sub { font-size: clamp(1.02rem, 1.6vw, 1.25rem); color: rgba(244,239,230,.85); max-width: 44ch; margin-bottom: 2.2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.btn-ghost-light { border-color: rgba(244,239,230,.5); color: var(--bg); }
.btn-ghost-light:hover { border-color: var(--bg); color: var(--bg); background: rgba(244,239,230,.12); }
.hero-full-dots {
  position: absolute; left: 50%; bottom: 1.6rem; z-index: 2; transform: translateX(-50%);
  display: flex; gap: .55rem;
}
.hero-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(244,239,230,.4); transition: background .3s var(--ease-out), transform .3s var(--ease-out); }
.hero-dot.is-active { background: var(--bg); transform: scale(1.3); }

@media (min-width: 960px) {
  .hero-full { min-height: 88svh; }
  .hero-full-content { padding-block: 8rem 5rem; }
}

/* =============================================================
   7. Marquee
   ============================================================= */
.marquee {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  overflow: hidden; white-space: nowrap; padding: 1.1rem 0;
}
.marquee-track { display: inline-flex; gap: 3rem; animation: marquee 32s linear infinite; }
.marquee-track span { font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: var(--ink-mute); white-space: nowrap; }
.marquee-track span::after { content: "✦"; margin-left: 3rem; color: var(--accent); font-style: normal; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* =============================================================
   8. Intro
   ============================================================= */
.intro-grid { display: grid; gap: 2.5rem; align-items: center; }
.intro-media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; }
.intro-media img { width: 100%; height: 100%; object-fit: cover; }
.intro-num { font-family: var(--serif); font-size: 3.4rem; color: var(--accent); opacity: .5; line-height: 1; margin-bottom: 1rem; }
@media (min-width: 960px) {
  .intro-grid { grid-template-columns: .85fr 1.15fr; gap: 4.5rem; }
}

/* =============================================================
   9. Stats
   ============================================================= */
.stats-bar {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem 1rem;
  text-align: center; padding: 3rem 0;
}
.stat-num { font-family: var(--serif); font-size: clamp(2.2rem, 5vw, 3.2rem); color: var(--ink); }
.stat-label { font-size: .85rem; color: var(--ink-mute); margin-top: .3rem; }
@media (min-width: 720px) { .stats-bar { grid-template-columns: repeat(4, 1fr); } }

/* =============================================================
   10. Services bento
   ============================================================= */
.bento {
  display: grid; gap: 1.1rem;
  grid-template-columns: 1fr;
}
.bento-card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 4/5;
  isolation: isolate;
  transform: perspective(900px);
  transition: transform .55s var(--ease-out), box-shadow .55s var(--ease-out);
}
.bento-card img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s var(--ease-out), filter .8s var(--ease-out);
  filter: saturate(1.05);
}
.bento-card::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(32,28,23,0) 35%, rgba(20,17,13,.82) 100%);
}
.bento-card .halo {
  position: absolute; inset: -40%; z-index: 0; opacity: 0;
  background: radial-gradient(circle at var(--mx,50%) var(--my,50%), rgba(179,103,63,.55), transparent 60%);
  transition: opacity .5s var(--ease-out);
}
.bento-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 1.4rem; color: var(--bg); }
.bento-body h3 { color: var(--bg); font-size: 1.35rem; margin-bottom: .4rem; }
.bento-body p {
  color: rgba(244,239,230,.78); font-size: .88rem; max-width: 30ch;
  max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height .5s var(--ease-out), opacity .4s var(--ease-out);
}
.bento-card:hover, .bento-card.is-active {
  box-shadow: 0 30px 60px -20px rgba(20,17,13,.5);
}
.bento-card:hover .halo { opacity: 1; }
.bento-card:hover img { transform: scale(1.1); filter: saturate(1.25) brightness(1.03); }
.bento-card:hover .bento-body p { max-height: 4.5rem; opacity: 1; }

@media (hover: hover) and (pointer: fine) {
  .bento-card:hover { transform: perspective(900px) rotateX(var(--rx,0)) rotateY(var(--ry,0)) translateY(-4px); }
}

@media (min-width: 720px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .bento { grid-template-columns: repeat(6, 1fr); grid-template-rows: repeat(2, 260px); }
  .bento-card:nth-child(1) { grid-column: span 3; grid-row: span 2; }
  .bento-card:nth-child(2) { grid-column: span 3; grid-row: span 1; }
  .bento-card:nth-child(3) { grid-column: span 2; grid-row: span 1; }
  .bento-card:nth-child(4) { grid-column: span 1; grid-row: span 1; }
  .bento-card:nth-child(5) { grid-column: span 2; grid-row: span 1; }
  .bento-card:nth-child(6) { grid-column: span 3; grid-row: span 1; }
  .bento-card { aspect-ratio: auto; }
}

/* =============================================================
   11. Before / After slider
   ============================================================= */
.ba-wrap { max-width: 760px; margin-inline: auto; }
.ba-slider {
  position: relative; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 16/10; cursor: ew-resize; user-select: none;
  touch-action: pan-y;
}
.ba-slider img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-after-wrap { position: absolute; inset: 0; overflow: hidden; width: 50%; }
.ba-after-wrap img { width: var(--ba-img-w, 100vw); max-width: none; }
.ba-handle {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; background: var(--paper);
  transform: translateX(-50%);
}
.ba-handle::after {
  content: "⇔"; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 46px; height: 46px; border-radius: 50%; background: var(--paper); color: var(--ink);
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
  box-shadow: 0 8px 20px rgba(0,0,0,.2);
}
.ba-tag { position: absolute; top: 1rem; z-index: 2; font-size: .72rem; font-weight: 700; letter-spacing: .08em; padding: .35rem .7rem; border-radius: 999px; background: rgba(32,28,23,.65); color: var(--bg); text-transform: uppercase; }
.ba-tag.before { left: 1rem; }
.ba-tag.after { right: 1rem; }

/* =============================================================
   12. Gallery masonry
   ============================================================= */
.masonry {
  columns: 2; column-gap: .8rem;
}
.masonry img {
  width: 100%; border-radius: 12px; margin-bottom: .8rem; break-inside: avoid;
  transition: transform .6s var(--ease-out), filter .6s var(--ease-out);
  filter: saturate(1.04);
}
.masonry a { display: block; }
.masonry a:hover img { transform: scale(1.03); filter: saturate(1.2) brightness(1.03); }
@media (min-width: 720px) { .masonry { columns: 3; } }
@media (min-width: 1280px) { .masonry { columns: 4; } }

/* =============================================================
   13. Price list
   ============================================================= */
.price-tabs { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2.2rem; }
.price-tab {
  padding: .6rem 1.2rem; border-radius: 999px; border: 1px solid var(--line);
  font-size: .85rem; font-weight: 600; color: var(--ink-mute);
  transition: all .3s var(--ease-out);
}
.price-tab:hover { border-color: var(--accent); color: var(--accent); }
.price-tab.is-active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.price-panel { display: none; }
.price-panel.is-active { display: block; }
.price-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.price-row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding: 1.15rem 0; border-bottom: 1px solid var(--line);
}
.price-row .name { font-family: var(--serif); font-size: 1.08rem; color: var(--ink); }
.price-row .dots { flex: 1; border-bottom: 1px dotted var(--line); margin: 0 .3rem 6px; display: none; }
.price-row .amount { color: var(--accent); font-weight: 700; white-space: nowrap; }
@media (min-width: 720px) { .price-row .dots { display: block; } }

/* =============================================================
   14. Promo band
   ============================================================= */
.promo {
  position: relative; border-radius: var(--radius); overflow: hidden;
  display: grid; align-items: end; min-height: 420px;
  isolation: isolate;
}
.promo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.promo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(20,17,13,.82) 40%, rgba(20,17,13,.15)); }
.promo-body { padding: clamp(2rem, 5vw, 3.2rem); color: var(--bg); max-width: 520px; }
.promo-body h3 { color: var(--bg); font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-bottom: .8rem; }
.promo-body p { color: rgba(244,239,230,.82); margin-bottom: 1.6rem; }

/* =============================================================
   15. Team
   ============================================================= */
.team-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
.team-card { text-align: center; }
.team-photo { border-radius: var(--radius); overflow: hidden; aspect-ratio: 3/4; margin-bottom: 1rem; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.team-card:hover .team-photo img { transform: scale(1.06); }
.team-card h3 { font-size: 1.2rem; margin-bottom: .2rem; }
.team-card .role { color: var(--accent); font-size: .85rem; font-weight: 600; }
@media (min-width: 720px) { .team-grid { grid-template-columns: repeat(3, 1fr); } }

/* =============================================================
   16. Salon strip
   ============================================================= */
.salon-strip { display: grid; gap: .8rem; grid-template-columns: 1fr; }
.salon-strip img { border-radius: var(--radius); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
@media (min-width: 720px) { .salon-strip { grid-template-columns: repeat(3, 1fr); } }

/* =============================================================
   17. Offer / Hours split
   ============================================================= */
.offer-split { display: grid; gap: 2.5rem; }
.offer-card {
  position: relative; border-radius: var(--radius); overflow: hidden; min-height: 340px;
  display: flex; align-items: flex-end; isolation: isolate;
}
.offer-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.offer-card::before { content:""; position:absolute; inset:0; z-index:-1; background: linear-gradient(180deg, rgba(20,17,13,.15), rgba(20,17,13,.85)); }
.offer-content { padding: 2rem; color: var(--bg); }
.offer-content .price { font-family: var(--serif); font-size: 3rem; color: var(--bg); }
.offer-content .price em { color: #e8b98a; }
.hours-list { display: grid; gap: 0; }
.hours-row { display: flex; justify-content: space-between; padding: 1rem 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.hours-row .day { font-weight: 600; color: var(--ink); }
.hours-row.is-today .day { color: var(--accent); }
@media (min-width: 960px) { .offer-split { grid-template-columns: 1.1fr .9fr; } }

/* =============================================================
   18. Store
   ============================================================= */
.store-grid { display: grid; gap: 2rem; align-items: center; }
.store-media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 1/1; }
.store-media img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 960px) { .store-grid { grid-template-columns: .9fr 1.1fr; } }

/* =============================================================
   19. Testimonials
   ============================================================= */
.testi-wrap { max-width: 720px; margin-inline: auto; text-align: center; position: relative; min-height: 200px; }
.testi-slide {
  position: absolute; inset: 0; opacity: 0; transform: translateY(14px);
  transition: opacity .6s var(--ease-out), transform .6s var(--ease-out);
  pointer-events: none;
}
.testi-slide.is-active { opacity: 1; transform: none; pointer-events: auto; }
.testi-slide blockquote { font-family: var(--serif); font-size: clamp(1.3rem, 2.6vw, 1.8rem); font-style: italic; color: var(--ink); margin-bottom: 1.2rem; }
.testi-slide cite { font-size: .85rem; color: var(--ink-mute); font-style: normal; }
.testi-dots { display: flex; justify-content: center; gap: .5rem; margin-top: 2.2rem; }
.testi-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line); transition: background .3s var(--ease-out), transform .3s var(--ease-out); }
.testi-dot.is-active { background: var(--accent); transform: scale(1.3); }

.brand-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; margin-top: 3rem; }
.brand-chip {
  padding: .6rem 1.3rem; border: 1px solid var(--line); border-radius: 999px;
  font-family: var(--serif); font-style: italic; font-size: .95rem; color: var(--ink-mute);
}

/* =============================================================
   20. Contact
   ============================================================= */
.contact-section { position: relative; color: var(--bg); isolation: isolate; }
.contact-section img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.contact-section::before { content:""; position:absolute; inset:0; z-index:-1; background: rgba(20,17,13,.82); }
.contact-section .section-title { color: var(--bg); }
.contact-section .eyebrow { color: #e8b98a; }
.contact-grid { display: grid; gap: 2.5rem; }
.contact-info dl { display: grid; gap: 1.2rem; }
.contact-info dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: rgba(244,239,230,.6); margin-bottom: .3rem; }
.contact-info dd { font-size: 1.1rem; }
.contact-form { display: grid; gap: 1rem; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: .9rem 1.1rem; border-radius: 12px; border: 1px solid rgba(244,239,230,.25);
  background: rgba(244,239,230,.08); color: var(--bg); font: inherit;
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: rgba(244,239,230,.5); }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent); background: rgba(244,239,230,.14); }
.form-status { font-size: .85rem; color: #e8b98a; min-height: 1.2em; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: .9fr 1.1fr; } }

/* =============================================================
   21. Footer
   ============================================================= */
.site-footer { background: var(--ink); color: rgba(244,239,230,.7); padding: 3rem 0 1.5rem; }
.footer-top { display: grid; gap: 2rem; margin-bottom: 2.5rem; }
.footer-brand { font-family: var(--serif); font-size: 1.6rem; color: var(--bg); margin-bottom: .6rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.2rem 1.8rem; }
.footer-links a:hover { color: var(--bg); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-top: 1.5rem; border-top: 1px solid rgba(244,239,230,.12); font-size: .8rem; }
@media (min-width: 720px) { .footer-top { grid-template-columns: 1.2fr 1fr; } }

/* =============================================================
   23. Splash
   ============================================================= */
.splash {
  position: fixed; inset: 0; z-index: 10000; background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  animation: splashOut .45s var(--ease-out) 4.5s forwards;
}
.splash span { font-family: var(--serif); font-size: 1.6rem; letter-spacing: .06em; animation: splashPulse 1.4s var(--ease-soft) infinite; }
@keyframes splashPulse { 0%,100% { opacity: .4; } 50% { opacity: 1; } }
@keyframes splashOut { to { opacity: 0; visibility: hidden; pointer-events: none; } }
html.is-ready .splash { opacity: 0; visibility: hidden; pointer-events: none; }

/* =============================================================
   24. Back to top
   ============================================================= */
.back-top {
  position: fixed; right: 1.3rem; bottom: 1.3rem; z-index: 60;
  width: 46px; height: 46px; border-radius: 50%; background: var(--ink); color: var(--bg);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: translateY(10px); pointer-events: none;
  transition: opacity .35s var(--ease-out), transform .35s var(--ease-out);
}
.back-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }

/* =============================================================
   25. Responsive base tweaks
   ============================================================= */
@media (min-width: 540px) {
  .stats-bar { padding: 4rem 0; }
}

/* =============================================================
   26. Reduced motion — only intrusive effects
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation-duration: 60s; }
  .splash { animation-duration: .2s; animation-delay: .2s; }
}
