/* =========================================================================
   INKDROP PC CLUB — styles
   LAYOUT SCHEME: B — narrow-880 (max-width 880px reading column;
                  media may bleed to 1080px via .bleed-media)
   SPACING SCALE: monastic — 160px / 96px section rhythm (72px mobile)
   Theme: LIGHT. One dark contrast section (Hardware "inkwell").
   ========================================================================= */

:root {
  /* palette */
  --c-bg: #fbfaf7;
  --c-bg-dark: #1a1c22;
  --c-ink: #1a1c22;      /* text on light */
  --c-ink-inv: #fbfaf7;  /* text on dark  */
  --c-a1: #3b5bdb;       /* blue ink      */
  --c-a2: #c2255c;       /* magenta drop  */
  --c-line: rgba(26, 28, 34, 0.3);
  --c-line-soft: #e9e6de;

  /* fonts */
  --f-display: "Marcellus", Georgia, serif;
  --f-body: "Piazzolla", Georgia, serif;

  /* radius */
  --r-card: 6px;

  /* spacing scale — 8px step */
  --s-1: 8px;
  --s-2: 16px;
  --s-3: 24px;
  --s-4: 32px;
  --s-5: 40px;
  --s-6: 56px;

  /* monastic section rhythm */
  --sec-y: 160px;
  --block-y: 96px;

  /* container */
  --w-container: 880px;
  --w-bleed: 1080px;
}

@media (max-width: 768px) {
  :root { --sec-y: 72px; --block-y: 48px; }
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-ink);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.78;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-a1); text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 400; line-height: 1.12; margin: 0; }
h1 { font-size: clamp(38px, 6vw, 80px); }
h2 { font-size: clamp(28px, 4.5vw, 48px); }
h3 { font-size: clamp(20px, 2.6vw, 26px); }
p { margin: 0 0 var(--s-2); }

.u-visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.u-skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--c-bg-dark); color: var(--c-ink-inv);
  padding: var(--s-2); border-radius: var(--r-card);
}
.u-skip:focus { left: var(--s-2); top: var(--s-2); }

/* ---------- container ---------- */
.container {
  max-width: var(--w-container);
  margin-inline: auto;
  padding-inline: var(--s-3);
}
.container--form { max-width: 720px; }
.bleed-media {
  max-width: var(--w-bleed);
  margin: 0 auto var(--s-5);
  padding-inline: var(--s-3);
}
.bleed-media img {
  width: 100%; height: auto; border-radius: var(--r-card);
  border: 1px solid var(--c-line-soft);
}

/* ---------- ink motifs ---------- */
/* pen underline: line thickens toward the end ("pressure") */
.ink-underline {
  position: relative;
  white-space: nowrap;
  color: inherit;
}
.ink-underline::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -0.12em;
  height: 6px;
  background: linear-gradient(90deg,
    var(--c-a1) 0%, var(--c-a1) 60%,
    color-mix(in srgb, var(--c-a1) 100%, black 8%) 100%);
  border-radius: 0 6px 6px 0;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .6s cubic-bezier(.2,.7,.2,1);
  clip-path: polygon(0 60%, 100% 0, 100% 100%, 0 100%);
}
.ink-underline--inv::after { background: var(--c-a2); }
.is-inview .ink-underline::after,
h1 .ink-underline::after { transform: scaleX(1); }

/* ---------- nav: split-logo ---------- */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: transparent;
  transition: background .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: color-mix(in srgb, var(--c-bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--c-line-soft);
}
.nav__inner {
  max-width: var(--w-bleed);
  margin-inline: auto;
  padding: var(--s-2) var(--s-3);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--s-3);
}
.nav__side { display: flex; gap: var(--s-3); align-items: center; }
.nav__side--right { justify-content: flex-end; }
.nav__side a { color: var(--c-ink); font-size: 15px; }
.nav__side a:not(.nav__cta):hover { color: var(--c-a1); }
.nav__brand { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.nav__badge {
  font-size: 11px; letter-spacing: .12em; text-transform: lowercase;
  color: var(--c-a2); font-style: italic;
  border: 1px solid var(--c-line); border-radius: 999px;
  padding: 2px 10px;
}
.nav__cta {
  background: var(--c-a1); color: var(--c-ink-inv) !important;
  padding: 8px 18px; border-radius: var(--r-card);
  position: relative; overflow: hidden;
}
.nav__cta::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at var(--mx,50%) var(--my,50%),
    color-mix(in srgb, var(--c-a2) 70%, transparent), transparent 45%);
  opacity: 0; transform: scale(.2);
  transition: opacity .5s ease, transform .5s ease;
}
.nav__cta:hover::before { opacity: 1; transform: scale(1.6); }

/* logo lockup */
.logo { display: inline-flex; align-items: center; gap: var(--s-1); }
.logo__word { display: flex; flex-direction: column; line-height: 1; }
.logo__name { font-family: var(--f-display); font-size: 20px; letter-spacing: .06em; color: var(--c-ink); }
.logo__sub { font-size: 10px; letter-spacing: .26em; color: var(--c-a1); font-variant: small-caps; text-transform: uppercase; }

@media (max-width: 768px) {
  .nav__inner { grid-template-columns: 1fr auto; grid-template-areas: "brand cta"; }
  .nav__brand { grid-area: brand; align-items: flex-start; }
  .nav__side--left { display: none; }
  .nav__side--right { grid-area: cta; }
  .nav__side--right a:not(.nav__cta) { display: none; }
}

/* ---------- hero ---------- */
.s-hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: var(--block-y) 0;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__photo { width: 100%; height: 100%; object-fit: cover; opacity: .16; filter: grayscale(.4); }
.hero__wash {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 50% 40%, transparent 30%, var(--c-bg) 78%),
    linear-gradient(var(--c-bg-op, rgba(251,250,247,.62)), rgba(251,250,247,.72));
}
.ink-bloom {
  position: absolute; top: 6%; left: 50%; transform: translateX(-50%);
  width: min(880px, 96%); height: 60%;
  opacity: .5; z-index: 0;
}
.ink-bloom__drop { transform-box: fill-box; transform-origin: center; }

.hero__content {
  position: relative; z-index: 1;
  max-width: var(--w-container);
  margin-inline: auto;
  padding-inline: var(--s-3);
  text-align: center;
}
.hero__eyebrow {
  font-style: italic; color: var(--c-a2);
  letter-spacing: .02em; margin-bottom: var(--s-3);
}
.s-hero h1 { margin-bottom: var(--s-4); }
.hero__lead { font-size: clamp(17px, 2.1vw, 20px); max-width: 640px; margin: 0 auto var(--s-5); color: color-mix(in srgb, var(--c-ink) 82%, transparent); }
.hero__actions { display: flex; gap: var(--s-2); justify-content: center; flex-wrap: wrap; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--f-body); font-size: 16px;
  padding: 12px 26px; border-radius: var(--r-card);
  border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, opacity .2s ease;
  position: relative; overflow: hidden;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--c-a1); color: var(--c-ink-inv); }
.btn--primary::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at var(--mx,50%) var(--my,50%),
    color-mix(in srgb, var(--c-a2) 80%, transparent), transparent 42%);
  opacity: 0; transform: scale(.15);
  transition: opacity .55s ease, transform .55s ease;
  pointer-events: none;
}
.btn--primary:hover::before { opacity: 1; transform: scale(1.7); }
.btn--ghost { background: transparent; color: var(--c-ink); border-color: var(--c-line); }
.btn--ghost:hover { border-color: var(--c-a1); color: var(--c-a1); }
.btn--block { display: block; width: 100%; text-align: center; }

/* ---------- section shell ---------- */
.section { padding-block: var(--sec-y); }
.section__eyebrow {
  font-style: italic; color: var(--c-a2);
  letter-spacing: .04em; margin-bottom: var(--s-2);
}
.section h2 { margin-bottom: var(--s-3); }
.section__intro {
  font-size: clamp(17px, 1.9vw, 19px);
  color: color-mix(in srgb, var(--c-ink) 82%, transparent);
  max-width: 620px; margin-bottom: var(--s-6);
}

/* ---------- ink divider ---------- */
.ink-divider { display: flex; justify-content: center; padding: var(--block-y) 0 0; }
.ink-divider__drop {
  width: 10px; height: 10px; border-radius: 50% 50% 50% 50%;
  background: var(--c-a1);
}
.is-inview .ink-divider__drop { animation: dropFall .9s cubic-bezier(.4,.05,.5,1) both; }
@keyframes dropFall {
  0% { transform: translateY(-40px) scale(.5); opacity: 0; border-radius: 50%; }
  60% { transform: translateY(0) scale(1); opacity: 1; border-radius: 50%; }
  100% { transform: translateY(0) scaleX(9) scaleY(.32); opacity: .8; border-radius: 40%; }
}

/* ---------- cards (stations) ---------- */
.cards { display: grid; gap: var(--s-5); }
.card {
  border: 1px solid var(--c-line-soft);
  border-radius: var(--r-card);
  background: #fff;
  overflow: hidden;
  position: relative;
}
.card::after {
  content: ""; position: absolute; left: var(--s-4); right: var(--s-4); bottom: 0;
  height: 3px; background: var(--c-a1);
  border-radius: 3px 3px 0 0;
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}
.card__media img { width: 100%; height: 240px; object-fit: cover; }
.card__body { padding: var(--s-4); }
.card__body h3 { margin-bottom: var(--s-2); }
.card__spec {
  font-style: italic; font-size: 14px; color: var(--c-a1);
  border-top: 1px dashed var(--c-line); padding-top: var(--s-2); margin-bottom: 0;
}
@media (min-width: 720px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .card:first-child { grid-column: 1 / -1; }
  .card:first-child { display: grid; grid-template-columns: 1fr 1fr; }
  .card:first-child .card__media img { height: 100%; }
}

/* ---------- sketch wall ---------- */
.sketch-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-3);
  margin-top: var(--s-5);
}
.sketch-frame {
  aspect-ratio: 3 / 4;
  border: 1px solid var(--c-line);
  border-radius: 2px;
  background:
    repeating-linear-gradient(135deg, transparent 0 14px, rgba(59,91,219,.05) 14px 15px),
    #fff;
  position: relative;
  transform-origin: top center;
}
.sketch-frame::before {
  content: ""; position: absolute; inset: 12px;
  border: 1px dashed var(--c-line);
  border-radius: 2px;
  background: radial-gradient(circle at 50% 45%, rgba(194,37,92,.08), transparent 60%);
}
.sketch-frame::after {
  content: ""; position: absolute; top: -5px; left: 50%; transform: translateX(-50%);
  width: 8px; height: 8px; border-radius: 50%; background: var(--c-a2);
}
.is-inview .sketch-frame { animation: hangIn .55s cubic-bezier(.34,1.4,.5,1) both; animation-delay: calc(var(--i) * .08s); }
@keyframes hangIn {
  0% { opacity: 0; transform: translateY(-14px) rotate(-4deg); }
  100% { opacity: 1; transform: translateY(0) rotate(0); }
}
@media (max-width: 560px) {
  .sketch-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- dark section (hardware) ---------- */
.section--dark {
  background-color: var(--c-bg-dark);
  color: var(--c-ink-inv);
  position: relative;
  overflow: hidden;
}
/* decorative dark bg texture (bg2 circuit board), very low opacity under a strong ink wash */
.section--dark::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background-image: var(--bg-layer);
  background-size: cover; background-position: center;
  opacity: .12; filter: grayscale(.4);
}
.section--dark::after {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(150deg,
    rgba(26,28,34,.92), rgba(31,59,179,.28) 60%, rgba(26,28,34,.94));
}
.section--dark .container { position: relative; z-index: 1; }
.section--dark .section__intro { color: color-mix(in srgb, var(--c-ink-inv) 82%, transparent); }

.spec-list { margin: 0; display: grid; gap: var(--s-4); }
.spec-list__row {
  display: grid; gap: var(--s-1);
  border-top: 1px solid rgba(251,250,247,.22);
  padding-top: var(--s-3);
}
.spec-list dt { font-family: var(--f-display); font-size: 22px; color: var(--c-ink-inv); }
.spec-list dd { margin: 0; color: color-mix(in srgb, var(--c-ink-inv) 80%, transparent); }
@media (min-width: 640px) {
  .spec-list__row { grid-template-columns: 200px 1fr; gap: var(--s-4); }
}

/* ---------- rates ---------- */
.rates { display: grid; gap: var(--s-4); }
.rate {
  border: 1px solid var(--c-line-soft);
  border-radius: var(--r-card);
  padding: var(--s-4);
  background: #fff;
  display: flex; flex-direction: column;
}
.rate--feature { border-color: var(--c-a1); border-width: 1.5px; }
.rate__name { margin-bottom: var(--s-2); }
.rate__price { display: flex; align-items: baseline; gap: 8px; margin-bottom: var(--s-2); }
.rate__num { font-family: var(--f-display); font-size: 46px; color: var(--c-a1); }
.rate__unit { font-size: 14px; color: color-mix(in srgb, var(--c-ink) 65%, transparent); }
.rate__note { color: color-mix(in srgb, var(--c-ink) 82%, transparent); }
.rate__list { list-style: none; padding: 0; margin: 0 0 var(--s-4); flex: 1; }
.rate__list li { position: relative; padding-left: var(--s-3); margin-bottom: 6px; }
.rate__list li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--c-a2);
}
.rates__foot { margin-top: var(--s-4); font-style: italic; font-size: 15px; color: color-mix(in srgb, var(--c-ink) 68%, transparent); }
@media (min-width: 720px) {
  .rates { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- ink journal ---------- */
.journal { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-5); }
.journal__item { border-left: 2px solid var(--c-line); padding-left: var(--s-4); position: relative; }
.journal__item::before {
  content: ""; position: absolute; left: -6px; top: 6px;
  width: 10px; height: 10px; border-radius: 50%; background: var(--c-a1);
}
.journal__title { margin-bottom: var(--s-1); }

/* ---------- how to book: timeline-horizontal-numbered ---------- */
.timeline { display: grid; gap: var(--s-5); position: relative; }
.timeline__step { position: relative; padding-top: var(--s-2); }
.timeline__num {
  font-family: var(--f-display); font-size: 40px; color: var(--c-a1);
  display: inline-block; line-height: 1; margin-bottom: var(--s-2);
}
.timeline__num::after {
  content: ""; display: block; width: 34px; height: 4px; margin-top: 6px;
  background: var(--c-a1); border-radius: 3px;
  clip-path: polygon(0 40%, 100% 0, 100% 100%, 0 100%);
}
.timeline__step h3 { margin-bottom: var(--s-1); }
.timeline__step p { margin: 0; color: color-mix(in srgb, var(--c-ink) 84%, transparent); }
.timeline__foot { margin-top: var(--s-5); font-style: italic; font-size: 15px; color: color-mix(in srgb, var(--c-ink) 68%, transparent); }
@media (min-width: 720px) {
  .timeline--horizontal { grid-template-columns: repeat(3, 1fr); gap: var(--s-4); }
  .timeline--horizontal .timeline__step:not(:last-child)::before {
    content: ""; position: absolute; top: 24px; right: calc(-1 * var(--s-4) / 2);
    width: var(--s-3); height: 1px; background: var(--c-line);
  }
}

/* ---------- regulars: testimonials-side-photo ---------- */
.regulars { display: grid; gap: var(--s-5); align-items: start; }
.regulars__media { margin: 0; }
.regulars__media img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover;
  border-radius: var(--r-card); border: 1px solid var(--c-line-soft);
}
.regulars__media .figure-caption { margin-top: var(--s-1); }
.regulars__quote { margin: 0 0 var(--s-4); position: relative; padding-top: var(--s-4); }
.regulars__quote::before {
  content: "\201C"; position: absolute; top: -18px; left: -6px;
  font-family: var(--f-display); font-size: 72px; line-height: 1;
  color: color-mix(in srgb, var(--c-a1) 30%, transparent);
}
.regulars__quote p { font-family: var(--f-display); font-size: clamp(20px, 2.6vw, 26px); line-height: 1.3; }
.regulars__cite { font-style: italic; font-size: 15px; color: var(--c-a2); }
.regulars__perks { list-style: none; padding: 0; margin: var(--s-4) 0 0; }
.regulars__perks li { position: relative; padding-left: var(--s-3); margin-bottom: 8px; }
.regulars__perks li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--c-a1);
}
.regulars__perks strong { font-family: var(--f-display); font-weight: 400; }
@media (min-width: 720px) {
  .regulars { grid-template-columns: 5fr 6fr; gap: var(--s-6); }
}

/* ---------- stats: stats-icon-paired ---------- */
.stats-grid { display: grid; gap: var(--s-4); grid-template-columns: 1fr; }
.stat-card {
  border: 1px solid var(--c-line-soft); border-radius: var(--r-card);
  background: #fff; padding: var(--s-4); text-align: center;
}
.stat-card__mark {
  font-family: var(--f-display); font-size: 20px; color: var(--c-a2);
  display: block; margin-bottom: var(--s-1);
}
.stat-card__num { font-family: var(--f-display); font-size: clamp(38px, 5vw, 52px); color: var(--c-a1); line-height: 1; display: block; }
.stat-card__label { display: block; margin-top: var(--s-1); font-size: 15px; color: color-mix(in srgb, var(--c-ink) 74%, transparent); }
.stats__foot { margin-top: var(--s-4); font-style: italic; font-size: 15px; color: color-mix(in srgb, var(--c-ink) 68%, transparent); }
@media (min-width: 560px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 860px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }

/* ---------- gallery ---------- */
.gallery { display: grid; gap: var(--s-4); grid-template-columns: 1fr; }
.gallery__item { margin: 0; }
.gallery__item img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: var(--r-card); border: 1px solid var(--c-line-soft); }
.gallery__item--passe { padding: var(--s-3); background: #fff; border: 1px solid var(--c-line-soft); border-radius: var(--r-card); }
.gallery__item--passe img { border: none; }
.figure-caption { font-style: italic; font-size: 14px; color: color-mix(in srgb, var(--c-ink) 62%, transparent); margin-top: var(--s-1); }
@media (min-width: 640px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery__item--passe { grid-column: 1 / -1; }
}

/* ---------- faq ---------- */
.faq { display: grid; gap: 0; }
.faq__item { border-bottom: 1px solid var(--c-line-soft); }
.faq__item summary {
  cursor: pointer; list-style: none;
  font-family: var(--f-display); font-size: clamp(18px, 2.4vw, 22px);
  padding: var(--s-3) 0; position: relative; padding-right: 40px;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: ""; position: absolute; right: 4px; top: 50%;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--c-a1); transform: translateY(-50%) scale(.6);
  transition: transform .3s ease;
}
.faq__item[open] summary::after { transform: translateY(-50%) scale(1); background: var(--c-a2); }
.faq__body { padding: 0 0 var(--s-3); color: color-mix(in srgb, var(--c-ink) 84%, transparent); }
.faq__body p { margin: 0; }

/* ---------- form ---------- */
.section--form { position: relative; overflow: hidden; }
.section--form::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background-image: var(--bg-layer);
  background-size: cover; background-position: center;
  opacity: .05; filter: grayscale(1);
}
.section--form::after {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(rgba(251,250,247,.9), rgba(251,250,247,.96));
}
.section--form .container { position: relative; z-index: 1; }

.form { position: relative; }
.form__row { display: grid; gap: var(--s-3); margin-bottom: var(--s-3); }
@media (min-width: 620px) {
  .form__row { grid-template-columns: 1fr 1fr; }
  .form__row:nth-of-type(2) { grid-template-columns: 1fr 1fr 1fr; }
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field__label { font-size: 14px; color: color-mix(in srgb, var(--c-ink) 70%, transparent); }
.field input, .field select {
  font-family: var(--f-body); font-size: 16px; color: var(--c-ink);
  background: transparent;
  border: none; border-bottom: 1px solid var(--c-line);
  padding: 8px 2px; border-radius: 0;
  transition: border-color .25s ease;
}
.field input:focus, .field select:focus {
  outline: none; border-bottom: 2px solid var(--c-a1);
}
.field { position: relative; }
.field input:focus ~ .field__nib { opacity: 1; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__foot { display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap; margin-top: var(--s-3); }
.form__status { margin: 0; font-size: 15px; }
.form__status.success { color: var(--c-a1); }
.form__status.error { color: var(--c-a2); }

/* success ink-check that spreads and dries */
.ink-check {
  position: absolute; right: 0; top: -8px;
  width: 40px; height: 40px; opacity: 0; pointer-events: none;
}
.ink-check__path { stroke-dasharray: 60; stroke-dashoffset: 60; }
.form.is-booked .ink-check { opacity: 1; }
.form.is-booked .ink-check__path { animation: inkDry .8s ease forwards; }
@keyframes inkDry {
  0% { stroke-dashoffset: 60; stroke-width: 6; opacity: .6; }
  70% { stroke-dashoffset: 0; stroke-width: 6; opacity: 1; }
  100% { stroke-dashoffset: 0; stroke-width: 4.4; opacity: 1; }
}

/* ---------- footer ---------- */
.footer {
  background: var(--c-bg-dark); color: var(--c-ink-inv);
  padding-block: var(--block-y);
  position: relative; overflow: hidden;
}
.footer::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background-image: url('images/bg.jpg');
  background-size: cover; background-position: center;
  opacity: .1; filter: grayscale(.5);
}
.footer::after {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(rgba(26,28,34,.9), rgba(26,28,34,.96));
}
.footer .container { position: relative; z-index: 1; }
.footer__top { display: grid; gap: var(--s-6); margin-bottom: var(--s-6); }
.footer .logo__name { color: var(--c-ink-inv); }
.footer__tag { font-style: italic; color: color-mix(in srgb, var(--c-ink-inv) 78%, transparent); margin: var(--s-2) 0 var(--s-1); }
.footer__hours { font-size: 14px; color: color-mix(in srgb, var(--c-ink-inv) 66%, transparent); margin: 0; }
.footer__h { font-size: 20px; margin-bottom: var(--s-1); }
.footer__signup p { color: color-mix(in srgb, var(--c-ink-inv) 78%, transparent); }
.footer__newsletter { display: flex; gap: var(--s-2); flex-wrap: wrap; margin-top: var(--s-2); }
.footer__newsletter input[type="email"] {
  flex: 1; min-width: 200px;
  font-family: var(--f-body); font-size: 16px; color: var(--c-ink-inv);
  background: transparent; border: none;
  border-bottom: 1px solid rgba(251,250,247,.35);
  padding: 8px 2px;
}
.footer__newsletter input[type="email"]:focus { outline: none; border-bottom: 2px solid var(--c-a1); }
.footer__links { display: flex; flex-wrap: wrap; gap: var(--s-3); padding: var(--s-4) 0; border-top: 1px solid rgba(251,250,247,.2); border-bottom: 1px solid rgba(251,250,247,.2); }
.footer__links a { color: color-mix(in srgb, var(--c-ink-inv) 82%, transparent); font-size: 15px; }
.footer__links a:hover { color: var(--c-ink-inv); }
.footer__disclaimer {
  margin: var(--s-4) 0 var(--s-1);
  font-family: var(--f-display); font-size: 18px; color: var(--c-ink-inv);
  letter-spacing: .01em;
}
.footer__legal { font-size: 13px; color: color-mix(in srgb, var(--c-ink-inv) 55%, transparent); margin: 0; }
@media (min-width: 720px) {
  .footer__top { grid-template-columns: 1fr 1fr; gap: var(--s-6); }
}

/* ---------- legal pages ---------- */
.legal__body { padding-block: var(--s-6) var(--block-y); max-width: 720px; }
.legal__title { position: relative; margin-bottom: var(--s-2); }
.legal__title::before {
  content: ""; position: absolute; left: -18px; top: -14px;
  width: 54px; height: 54px; z-index: -1;
  background: radial-gradient(circle at 40% 40%, rgba(59,91,219,.16), transparent 62%);
  border-radius: 60% 40% 55% 45%;
}
.legal__body h2 { font-size: clamp(22px, 3vw, 30px); margin: var(--s-6) 0 var(--s-2); }
.legal__body p { color: color-mix(in srgb, var(--c-ink) 86%, transparent); }
.legal__disclaimer { margin-top: var(--s-6); color: var(--c-ink); }

/* ---------- scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .55s ease, transform .55s ease; }
.reveal.is-inview { opacity: 1; transform: none; }

/* =========================================================================
   Ink Bloom — signature hero animation
   Two ink drops fall and spread in water behind the h1 (~2.5s once),
   then settle as soft clouds with a slow drift. Only transform/opacity.
   ========================================================================= */
.ink-bloom__drop--a {
  animation: bloomA 2.5s cubic-bezier(.22,.7,.24,1) forwards, driftA 30s ease-in-out 2.5s infinite alternate;
}
.ink-bloom__drop--b {
  animation: bloomB 2.5s cubic-bezier(.22,.7,.24,1) .25s forwards, driftB 34s ease-in-out 2.75s infinite alternate;
}
@keyframes bloomA {
  0% { transform: translateY(-70px) scale(.12); opacity: 0; }
  30% { opacity: .9; }
  100% { transform: translateY(0) scale(1); opacity: .7; }
}
@keyframes bloomB {
  0% { transform: translateY(-60px) scale(.1); opacity: 0; }
  30% { opacity: .85; }
  100% { transform: translateY(0) scale(1); opacity: .6; }
}
@keyframes driftA {
  from { transform: translate(0,0) scale(1); }
  to { transform: translate(14px,-8px) scale(1.05); }
}
@keyframes driftB {
  from { transform: translate(0,0) scale(1); }
  to { transform: translate(-12px,10px) scale(1.06); }
}

/* pause the bloom when hero is offscreen */
.ink-bloom.is-paused .ink-bloom__drop { animation-play-state: paused; }

/* =========================================================================
   Reduced motion — everything static; clouds land in final state.
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .ink-underline::after { transform: scaleX(1); }
  .ink-bloom__drop--a { transform: translateY(0) scale(1); opacity: .7; }
  .ink-bloom__drop--b { transform: translateY(0) scale(1); opacity: .6; }
  .ink-check__path { stroke-dashoffset: 0; }
}
