/* =========================================================================
   TOMEK TURLEJ TATTOO — design system
   Black & grey realism · Edinburgh · Studio XIII Gallery
   ========================================================================= */

/* ---- Tokens ------------------------------------------------------------- */
:root {
  /* Ink palette — strictly monochrome, one warm bone accent */
  --ink-000: #050506;
  --ink-050: #0a0a0b;
  --ink-100: #101012;
  --ink-150: #16161a;
  --ink-200: #1d1d22;
  --ink-300: #26262c;
  --line:    rgba(255,255,255,.09);
  --line-2:  rgba(255,255,255,.16);

  --bone:    #ece7dd;   /* primary text — warm off-white */
  --bone-dim:#a8a49b;   /* muted text */
  --bone-fade:#6d6a63;  /* faint captions */
  --accent:  #c8b088;   /* aged bone / ink-wash gold, used sparingly */
  --accent-soft: rgba(200,176,136,.14);

  --ok:   #7fb98a;
  --warn: #d8b26a;
  --danger:#d98b7c;

  /* Type */
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans:  "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Rhythm */
  --pad: clamp(1.25rem, 5vw, 6rem);
  --maxw: 1320px;
  --radius: 3px;

  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
}

/* ---- Reset / base ------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
body {
  margin: 0;
  background: var(--ink-050);
  color: var(--bone);
  font-family: var(--sans);
  font-size: clamp(1rem, .96rem + .2vw, 1.075rem);
  line-height: 1.7;
  font-weight: 350;
  letter-spacing: .002em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
::selection { background: var(--accent); color: var(--ink-000); }

/* Film-grain + vignette overlay for the cinematic realism feel */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 9;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  opacity: .035;
  mix-blend-mode: screen;
}
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 8;
  background: radial-gradient(120% 90% at 50% -10%, transparent 55%, rgba(0,0,0,.55) 100%);
}

/* ---- Layout helpers ----------------------------------------------------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: clamp(4.5rem, 11vh, 9rem); position: relative; }
.eyebrow {
  font-family: var(--sans);
  font-size: .72rem;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  display: inline-flex; align-items: center; gap: .8rem;
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--accent); opacity: .6; }
.eyebrow.center::after { content: ""; width: 34px; height: 1px; background: var(--accent); opacity: .6; }
.eyebrow.center { justify-content: center; }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.02; letter-spacing: -.01em; margin: 0; }
.display {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.7rem, 8.5vw, 7.5rem);
  line-height: .95;
  letter-spacing: -.02em;
}
.h2 { font-size: clamp(2rem, 4.5vw, 3.6rem); }
.lead { font-size: clamp(1.05rem, 1rem + .5vw, 1.35rem); color: var(--bone-dim); font-weight: 350; }
.muted { color: var(--bone-dim); }
.serif-i { font-family: var(--serif); font-style: italic; }

/* ---- Buttons ------------------------------------------------------------ */
.btn {
  --bg: var(--bone); --fg: var(--ink-000);
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .95rem 1.7rem;
  background: var(--bg); color: var(--fg);
  border: 1px solid var(--bg);
  border-radius: 999px;
  font-family: var(--sans); font-size: .8rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  transition: transform .4s var(--ease), background .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease);
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn .arw { transition: transform .4s var(--ease); }
.btn:hover .arw { transform: translateX(4px); }
.btn--ghost {
  --bg: transparent; --fg: var(--bone);
  border-color: var(--line-2);
}
.btn--ghost:hover { border-color: var(--bone); background: rgba(255,255,255,.04); }
.btn--gold { --bg: var(--accent); --fg: var(--ink-000); }
.btn--sm { padding: .62rem 1.1rem; font-size: .72rem; }
.btn--block { width: 100%; }

.link-underline {
  position: relative; color: var(--bone); font-weight: 500;
  padding-bottom: 2px;
}
.link-underline::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease);
}
.link-underline:hover::after { transform: scaleX(1); transform-origin: left; }

/* ---- Header ------------------------------------------------------------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.5rem var(--pad);
  transition: background .5s var(--ease), padding .5s var(--ease), border-color .5s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(8,8,9,.72);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  padding-block: .95rem;
  border-bottom-color: var(--line);
}
.brand { display: flex; align-items: baseline; gap: .6rem; line-height: 1; }
.brand__mark {
  font-family: var(--serif); font-size: 1.4rem; font-weight: 600; letter-spacing: .02em;
}
.brand__sub { font-size: .62rem; letter-spacing: .32em; text-transform: uppercase; color: var(--bone-fade); }
.nav { display: flex; align-items: center; gap: 2.2rem; }
.nav a { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--bone-dim); transition: color .3s; }
.nav a:hover { color: var(--bone); }
.nav-cta { display: flex; align-items: center; gap: 1.2rem; }
.nav-toggle { display: none; background: none; border: 0; width: 34px; height: 34px; position: relative; }
.nav-toggle span { position: absolute; left: 5px; right: 5px; height: 1.5px; background: var(--bone); transition: transform .4s var(--ease), opacity .3s; }
.nav-toggle span:nth-child(1) { top: 12px; }
.nav-toggle span:nth-child(2) { top: 18px; }
.nav-toggle span:nth-child(3) { top: 24px; }
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---- Hero --------------------------------------------------------------- */
.hero {
  min-height: 100svh;
  display: flex; flex-direction: column;
  position: relative; overflow: hidden;
  padding-top: 6rem; padding-bottom: 2.4rem;
}
/* content column grows and centres itself; the stats bar sits below it in flow */
.hero > .wrap:not(.hero__meta) {
  flex: 1 1 auto; min-height: 0;
  display: flex; flex-direction: column; justify-content: center;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__photo {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center 22%;
  opacity: .6; filter: grayscale(.22) contrast(1.05);
}
.hero__bg::before {
  /* legibility wash over the hero photo — dark left/bottom, photo shows mid-right */
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(85% 65% at 82% 22%, rgba(200,176,136,.12), transparent 55%),
    linear-gradient(90deg, rgba(5,5,6,.95) 0%, rgba(5,5,6,.72) 40%, rgba(5,5,6,.34) 74%, rgba(5,5,6,.6) 100%),
    linear-gradient(0deg, var(--ink-050) 2%, rgba(5,5,6,.2) 42%, transparent 70%);
}
.hero__bg::after {
  /* faint engraved rings — abstract, evokes fine linework */
  content: ""; position: absolute; inset: 0; z-index: 1; opacity: .4;
  background-image:
    repeating-radial-gradient(circle at 82% 24%, rgba(255,255,255,.03) 0 1px, transparent 1px 90px);
  -webkit-mask-image: radial-gradient(60% 60% at 82% 24%, #000, transparent 75%);
          mask-image: radial-gradient(60% 60% at 82% 24%, #000, transparent 75%);
}
.hero .wrap { position: relative; z-index: 2; }
.hero__eyebrow { margin-bottom: 2rem; }
.hero h1 { max-width: 15ch; }
.hero h1 .thin { font-style: italic; font-weight: 300; color: var(--bone-dim); }
.hero__lead { max-width: 46ch; margin-top: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.8rem; }
.hero__meta {
  position: relative; z-index: 2; margin-top: 2.5rem;
  display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; align-items: center;
  border-top: 1px solid var(--line); padding-top: 1.5rem;
}
.hero__meta .stat { display: flex; flex-direction: column; }
.hero__meta .stat b { font-family: var(--serif); font-size: 1.9rem; font-weight: 500; line-height: 1; }
.hero__meta .stat span { font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--bone-fade); margin-top: .4rem; }
.scroll-cue {
  position: absolute; bottom: 8rem; right: var(--pad); z-index: 2;
  writing-mode: vertical-rl; font-size: .66rem; letter-spacing: .28em; text-transform: uppercase; color: var(--bone-fade);
  display: flex; align-items: center; gap: 1rem;
}
.scroll-cue::after { content: ""; width: 1px; height: 60px; background: linear-gradient(var(--accent), transparent); animation: cue 2.4s var(--ease) infinite; }
@keyframes cue { 0%,100%{ transform: scaleY(.4); transform-origin: top; opacity:.4 } 50%{ transform: scaleY(1); opacity:1 } }

/* ---- Marquee ------------------------------------------------------------ */
/* Static, centred row that always fits the page width (wraps on narrow
   screens) — no scrolling, so every category stays fully visible. */
.marquee { border-block: 1px solid var(--line); padding-block: 1.15rem; background: var(--ink-100); }
.marquee__track {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: .5rem clamp(.7rem, 1.7vw, 1.4rem);
  max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad);
}
.marquee span {
  font-family: var(--serif); font-style: italic; color: var(--bone-dim); white-space: nowrap;
  font-size: clamp(.82rem, .7rem + .45vw, 1.1rem);
  display: inline-flex; align-items: center; gap: clamp(.7rem, 1.7vw, 1.4rem);
  cursor: pointer; transition: color .3s var(--ease);
}
.marquee span:hover { color: var(--bone); }
.marquee span:not(:last-child)::after {
  content: ""; width: 5px; height: 5px; background: var(--accent); transform: rotate(45deg); opacity: .55; flex: none;
}

/* ---- Section heading ---------------------------------------------------- */
.sec-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1.5rem; margin-bottom: 3.5rem; }
.sec-head .h2 { max-width: 18ch; }
.sec-head p { max-width: 40ch; margin: 0; }

/* ---- Gallery ------------------------------------------------------------ */
.filters { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2.2rem; }
.filter {
  padding: .5rem 1.05rem; border-radius: 999px; border: 1px solid var(--line-2);
  background: transparent; color: var(--bone-dim);
  font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 500;
  transition: all .35s var(--ease);
}
.filter:hover { color: var(--bone); border-color: var(--bone); }
.filter.active { background: var(--bone); color: var(--ink-000); border-color: var(--bone); }

/* Grid (not CSS multi-column) — native lazy-loading is unreliable inside
   `columns`, so a grid keeps every photo loading correctly as you scroll. */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .gallery { grid-template-columns: 1fr; } }
.tile {
  position: relative; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--ink-150);
  cursor: pointer; display: block; width: 100%; text-align: left;
}
.tile__ph {
  position: relative; width: 100%;
  background:
    radial-gradient(140% 120% at 30% 0%, rgba(255,255,255,.06), transparent 60%),
    linear-gradient(160deg, var(--ink-300), var(--ink-100) 70%);
  display: grid; place-items: center;
}
.tile__ph svg { width: 46%; opacity: .16; transition: opacity .5s var(--ease), transform .8s var(--ease); }
.tile:hover .tile__ph svg { opacity: .28; transform: scale(1.06); }
/* Real photo tiles: reserve a square box up front (so lazy images don't
   collapse to 0px in the column layout and stall the lazy loader), subtle hover */
.tile__img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; background: var(--ink-200); filter: grayscale(.08) contrast(1.02); transition: transform 1.1s var(--ease), filter .6s var(--ease); }
.tile:hover .tile__img { transform: scale(1.045); filter: grayscale(0) contrast(1.05); }
.tile__ph::after {
  content: ""; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
  opacity: .04; mix-blend-mode: screen;
}
.tile__meta {
  position: absolute; inset: auto 0 0 0; padding: 1rem 1.1rem;
  display: flex; align-items: end; justify-content: space-between;
  background: linear-gradient(transparent, rgba(0,0,0,.72));
  transform: translateY(8px); opacity: 0; transition: all .5s var(--ease);
}
.tile:hover .tile__meta { transform: none; opacity: 1; }
.tile__cat { font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }
.tile__no { font-family: var(--serif); font-style: italic; font-size: 1.1rem; color: var(--bone); }
.tile__frame { position: absolute; inset: 10px; border: 1px solid rgba(255,255,255,.10); border-radius: 2px; pointer-events: none; }

.gallery-note {
  margin-top: 2.4rem; padding: 1rem 1.2rem; border: 1px dashed var(--line-2); border-radius: var(--radius);
  color: var(--bone-fade); font-size: .82rem; display: flex; gap: .8rem; align-items: center;
}
.gallery-note b { color: var(--bone-dim); font-weight: 600; }

/* ---- Lightbox ----------------------------------------------------------- */
.lightbox {
  position: fixed; inset: 0; z-index: 90; display: none; place-items: center;
  background: rgba(4,4,5,.94); backdrop-filter: blur(6px);
  padding: var(--pad);
}
.lightbox.open { display: grid; }
.lightbox__inner { max-width: 640px; width: 100%; text-align: center; }
.lightbox__frame {
  aspect-ratio: 4/5; border: 1px solid var(--line-2); border-radius: var(--radius);
  background: linear-gradient(160deg, var(--ink-300), var(--ink-100));
  display: grid; place-items: center; margin-bottom: 1.4rem;
}
.lightbox__frame svg { width: 40%; opacity: .2; }
.lightbox__close { position: absolute; top: 1.6rem; right: 1.8rem; background: none; border: 1px solid var(--line-2); border-radius: 999px; width: 44px; height: 44px; color: var(--bone); font-size: 1.1rem; }
.lightbox__close:hover { border-color: var(--bone); }

/* ---- About -------------------------------------------------------------- */
.about-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }
.portrait {
  position: relative; aspect-ratio: 3/4; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(170deg, var(--ink-300), var(--ink-050));
  display: grid; place-items: center;
}
.portrait svg { width: 46%; opacity: .18; }
.portrait::after {
  content: ""; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
  opacity: .05; mix-blend-mode: screen;
}
.portrait__tag { position: absolute; bottom: 0; left: 0; right: 0; padding: 1rem; font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--bone-fade); background: linear-gradient(transparent, rgba(0,0,0,.6)); }
.about-body h2 { margin-bottom: 1.6rem; }
.about-body p + p { margin-top: 1.2rem; }
.sig { font-family: var(--serif); font-style: italic; font-size: 2rem; color: var(--bone); margin-top: 1.6rem; }
.pill-row { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1.8rem; }
.pill { border: 1px solid var(--line-2); border-radius: 999px; padding: .4rem .9rem; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--bone-dim); }

/* ---- Process ------------------------------------------------------------ */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.step { background: var(--ink-100); padding: 2.2rem 1.6rem; transition: background .5s var(--ease); }
.step:hover { background: var(--ink-150); }
.step__no { font-family: var(--serif); font-style: italic; font-size: 2.6rem; color: var(--accent); line-height: 1; }
.step h3 { font-size: 1.35rem; margin: 1rem 0 .6rem; }
.step p { font-size: .92rem; color: var(--bone-dim); margin: 0; }

/* ---- Testimonials ------------------------------------------------------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
@media (max-width: 860px) { .quotes { grid-template-columns: 1fr; } }
.quote { border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; background: var(--ink-100); }
.quote__stars { color: var(--accent); letter-spacing: .2em; font-size: .8rem; }
.quote blockquote { margin: 1.1rem 0; font-family: var(--serif); font-size: 1.35rem; font-style: italic; line-height: 1.4; color: var(--bone); }
.quote figcaption { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--bone-fade); }

/* ---- FAQ ---------------------------------------------------------------- */
.faq { max-width: 820px; margin-inline: auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 1.5rem 0; display: flex; justify-content: space-between; gap: 1.5rem; align-items: center;
  font-family: var(--serif); font-size: clamp(1.2rem, 2vw, 1.6rem); color: var(--bone);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { flex: none; width: 26px; height: 26px; position: relative; transition: transform .4s var(--ease); }
.faq summary .ic::before, .faq summary .ic::after { content: ""; position: absolute; background: var(--accent); }
.faq summary .ic::before { top: 12px; left: 2px; right: 2px; height: 1.5px; }
.faq summary .ic::after { left: 12px; top: 2px; bottom: 2px; width: 1.5px; transition: transform .4s var(--ease); }
.faq details[open] summary .ic::after { transform: scaleY(0); }
.faq details[open] summary .ic { transform: rotate(180deg); }
.faq .ans { padding: 0 0 1.6rem; color: var(--bone-dim); max-width: 60ch; }

/* ---- CTA band ----------------------------------------------------------- */
.cta {
  position: relative; overflow: hidden; text-align: center;
  background: linear-gradient(180deg, var(--ink-100), var(--ink-000));
  border-block: 1px solid var(--line);
}
.cta::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 120% at 50% 0%, var(--accent-soft), transparent 60%);
}
.cta .wrap { position: relative; }
.cta h2 { margin-bottom: 1.4rem; }
.cta .btn-row { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 2.2rem; }

/* ---- Footer ------------------------------------------------------------- */
.site-footer { background: var(--ink-000); border-top: 1px solid var(--line); padding-block: clamp(3rem, 7vh, 5rem) 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { font-family: var(--sans); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--bone-fade); margin: 0 0 1.1rem; font-weight: 600; }
.footer-grid a, .footer-grid p { color: var(--bone-dim); font-size: .92rem; margin: .3rem 0; }
.footer-grid a:hover { color: var(--bone); }
.footer-brand .brand__mark { font-size: 1.8rem; }
.footer-brand p { max-width: 32ch; margin-top: 1rem; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: .76rem; color: var(--bone-fade); letter-spacing: .04em; }

/* ---- Reveal animations -------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }
.reveal[data-d="4"] { transition-delay: .32s; }

/* =========================================================================
   FORMS  ·  Booking page
   ========================================================================= */
.page-shell { min-height: 100svh; display: flex; flex-direction: column; padding-top: 6rem; }
.page-hero { padding: clamp(2.5rem,7vh,5rem) 0 2rem; text-align: center; }
.page-hero h1 { font-size: clamp(2.4rem, 6vw, 4.5rem); }
.page-hero p { margin: 1.2rem auto 0; max-width: 46ch; }
.back-link { position: fixed; top: 1.5rem; left: var(--pad); z-index: 50; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--bone-dim); display: inline-flex; gap: .5rem; align-items: center; }
.back-link:hover { color: var(--bone); }

.form-card {
  max-width: 720px; margin: 0 auto clamp(3rem,8vh,6rem); width: 100%;
  background: var(--ink-100); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 3rem);
}
.steps-bar { display: flex; gap: .5rem; margin-bottom: 2.2rem; }
.steps-bar .dot { flex: 1; height: 3px; background: var(--ink-300); border-radius: 3px; overflow: hidden; position: relative; }
.steps-bar .dot::after { content: ""; position: absolute; inset: 0; width: 0; background: var(--accent); transition: width .5s var(--ease); }
.steps-bar .dot.done::after, .steps-bar .dot.active::after { width: 100%; }
.step-label { font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--bone-fade); margin-bottom: .4rem; }

.fstep { display: none; animation: fade .5s var(--ease-out); }
.fstep.active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.fstep h2 { font-size: 1.9rem; margin-bottom: .4rem; }
.fstep > p.muted { margin: 0 0 1.6rem; font-size: .95rem; }

.field { margin-bottom: 1.3rem; }
.field > label { display: block; font-size: .78rem; letter-spacing: .06em; color: var(--bone-dim); margin-bottom: .55rem; font-weight: 500; }
.field .req { color: var(--accent); }
.field input[type=text], .field input[type=email], .field input[type=tel], .field input[type=date],
.field select, .field textarea {
  width: 100%; background: var(--ink-050); border: 1px solid var(--line-2); border-radius: var(--radius);
  color: var(--bone); font: inherit; font-size: .98rem; padding: .85rem 1rem; transition: border-color .3s, background .3s;
}
.field textarea { resize: vertical; min-height: 120px; line-height: 1.6; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); background: var(--ink-000);
}
.field input::placeholder, .field textarea::placeholder { color: var(--bone-fade); }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath fill='%23a8a49b' d='M6 8 0 0h12z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.4rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 520px) { .grid-2 { grid-template-columns: 1fr; } }

.chip-group { display: flex; flex-wrap: wrap; gap: .55rem; }
.chip {
  padding: .6rem 1.05rem; border: 1px solid var(--line-2); border-radius: 999px; background: transparent;
  color: var(--bone-dim); font-size: .82rem; letter-spacing: .04em; transition: all .3s var(--ease);
}
.chip:hover { border-color: var(--bone); color: var(--bone); }
.chip.sel { background: var(--bone); color: var(--ink-000); border-color: var(--bone); }

.check { display: flex; gap: .8rem; align-items: flex-start; cursor: pointer; font-size: .92rem; color: var(--bone-dim); }
.check input { flex: none; width: 20px; height: 20px; margin-top: .15rem; accent-color: var(--accent); }
.check a { color: var(--bone); }

.form-nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2rem; }
.form-nav .btn--ghost[disabled] { opacity: .3; pointer-events: none; }
.err { color: var(--danger); font-size: .82rem; margin-top: .5rem; min-height: 1rem; }
.hint { color: var(--bone-fade); font-size: .8rem; margin-top: .4rem; }

.summary-line { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.summary-line span:first-child { color: var(--bone-fade); }

.result { text-align: center; padding: 1rem 0; }
.result .ref-code { font-family: var(--serif); font-size: 2.6rem; color: var(--accent); letter-spacing: .05em; margin: 1rem 0; }
.result .tick { width: 66px; height: 66px; border-radius: 999px; border: 1px solid var(--accent); display: grid; place-items: center; margin: 0 auto 1.5rem; color: var(--accent); font-size: 1.8rem; }

/* =========================================================================
   ADMIN base (shared tokens; full styling in admin/admin.css)
   ========================================================================= */

/* ---- Mobile nav --------------------------------------------------------- */
@media (max-width: 780px) {
  .nav {
    position: fixed; inset: 0; z-index: 40;
    flex-direction: column; justify-content: center; gap: 2rem;
    background: rgba(6,6,7,.97); backdrop-filter: blur(10px);
    transform: translateY(-100%); transition: transform .55s var(--ease); pointer-events: none;
  }
  body.nav-open .nav { transform: none; pointer-events: auto; }
  .nav a { font-size: 1.4rem; letter-spacing: .1em; }
  .nav-toggle { display: block; z-index: 60; }
  .nav-cta .btn { display: none; }
  .hero__meta { position: static; margin-top: 3rem; }
  .scroll-cue { display: none; }
}
