/* Barbería Norte — "Rumbo Norte"
   Warm charcoal, bone, one sodium-yellow accent. One family: Archivo (width + weight axes). */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-var.woff2") format("woff2-variations"),
       url("../fonts/archivo-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --charcoal: #1c1a17;
  --tobacco: #2a2722;
  --tobacco-2: #35312b;
  --line: #4a453d;
  --stone: #a39c90;
  --bone: #f3eee4;
  --sodium: #f5c230;
  --sodium-deep: #d9a514;

  --wide: 125%;
  --gutter: 16px;
  --max: 1240px;
  --radius-plate: 10px;
  --ease-settle: cubic-bezier(.2, .9, .25, 1.15);
  --ease: cubic-bezier(.25, .8, .25, 1);

  --step--1: .875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  --step-3: clamp(2rem, 1.4rem + 2.6vw, 3.25rem);
  --step-4: clamp(2.6rem, 1.4rem + 5.4vw, 5.5rem);
  --step-5: clamp(3.4rem, 19.5vw, 10.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--charcoal);
  color: var(--bone);
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: var(--step-0);
  line-height: 1.6;
  font-stretch: 100%;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--sodium); color: var(--charcoal); }

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

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--sodium); color: var(--charcoal);
  padding: 10px 16px; border-radius: 6px; font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
@media (min-width: 720px) { :root { --gutter: 32px; } }
@media (min-width: 1100px) { :root { --gutter: 48px; } }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- type ---------- */
.display, h1, h2, h3 {
  font-stretch: var(--wide);
  font-weight: 850;
  line-height: 1.02;
  letter-spacing: -.01em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); line-height: 1.2; }
p { margin: 0 0 1em; max-width: 62ch; }
.lead { font-size: var(--step-1); line-height: 1.5; color: var(--bone); }
.muted { color: var(--stone); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 52px; padding: 0 1.4em;
  border-radius: 999px; border: 2px solid transparent;
  font-weight: 750; font-stretch: 112%; font-size: 1rem;
  text-decoration: none; cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn-primary { background: var(--sodium); color: var(--charcoal); }
.btn-primary:hover { background: #ffd24f; }
.btn-ghost { border-color: var(--line); color: var(--bone); background: transparent; }
.btn-ghost:hover { border-color: var(--bone); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn svg { width: 18px; height: 18px; flex: none; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .5em; min-height: 44px;
  font-weight: 700; color: var(--sodium); text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color .2s var(--ease);
}
.link-arrow:hover { border-color: var(--sodium); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(28, 26, 23, .92);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(74, 69, 61, .6);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; min-height: 44px; }
.brand svg { width: 30px; height: 30px; flex: none; }
.brand span { font-stretch: var(--wide); font-weight: 850; font-size: 1.05rem; letter-spacing: .01em; line-height: 1; }
.brand small { display: block; font-stretch: 100%; font-weight: 500; font-size: .75rem; color: var(--stone); letter-spacing: 0; margin-top: 3px; }

.nav { display: none; }
.nav a {
  text-decoration: none; font-weight: 600; color: var(--stone);
  padding: 10px 4px; transition: color .2s var(--ease);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--bone); }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--sodium); }
.header-cta { display: flex; align-items: center; gap: 8px; }
.header-cta .btn { min-height: 44px; padding: 0 1.1em; font-size: .95rem; }

.menu-btn {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line);
  background: transparent; display: grid; place-items: center; cursor: pointer;
}
.menu-btn span, .menu-btn span::before, .menu-btn span::after {
  display: block; width: 18px; height: 2px; background: var(--bone); border-radius: 2px; position: relative;
  transition: transform .25s var(--ease), background-color .2s;
}
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; }
.menu-btn span::before { top: -6px; }
.menu-btn span::after { top: 6px; }
.menu-open .menu-btn span { background: transparent; }
.menu-open .menu-btn span::before { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-btn span::after { transform: translateY(-6px) rotate(-45deg); }

.mobile-nav {
  position: fixed; inset: 64px 0 0 0; z-index: 39;
  background: var(--charcoal);
  padding: 24px var(--gutter) 40px;
  display: none; flex-direction: column;
}
.menu-open .mobile-nav { display: flex; }
.mobile-nav a {
  font-stretch: var(--wide); font-weight: 850; font-size: 2rem; line-height: 1.1;
  text-decoration: none; padding: 12px 0; border-bottom: 1px solid var(--line);
}
.mobile-nav a[aria-current="page"] { color: var(--sodium); }
.mobile-nav .btn { margin-top: 28px; }
.menu-open { overflow: hidden; }

@media (min-width: 960px) {
  .nav { display: flex; gap: 22px; }
  .menu-btn, .mobile-nav { display: none !important; }
}

/* ---------- compass ---------- */
.compass .ring { fill: none; stroke: var(--bone); }
.compass .ticks line { stroke: var(--stone); }
.compass .card-pt { fill: var(--bone); font-family: "Archivo", sans-serif; font-weight: 850; font-stretch: 125%; }
.compass .card-pt.n { fill: var(--sodium); }
.compass .needle-n { fill: var(--sodium); }
.compass .needle-s { fill: var(--bone); }
.compass .hub { fill: var(--charcoal); stroke: var(--bone); }

/* ---------- hero (home) ---------- */
.hero {
  position: relative;
  min-height: calc(100svh - 64px);
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  isolation: isolate;
}
.hero-photo {
  position: relative;
  height: 52svh; min-height: 300px;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.hero-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(28,26,23,0) 45%, rgba(28,26,23,.85) 85%, var(--charcoal) 100%);
}
.hero-body { position: relative; padding: 0 var(--gutter) 36px; margin-top: -72px; z-index: 2; }
.wordmark .w-big { display: block; white-space: nowrap; }
.wordmark .o { display: inline-block; width: .72em; height: .72em; vertical-align: 0; margin: 0 .06em; }
.wordmark .o svg { width: 100%; height: 100%; overflow: visible; }
.o-compass .o-ring { fill: none; stroke: var(--bone); }
.o-compass .needle-n { fill: var(--sodium); }
.o-compass .needle-s { fill: var(--stone); }
.hero-kicker { font-weight: 600; color: var(--stone); margin: 0 0 6px; font-size: 1rem; }
.wordmark {
  font-size: var(--step-5);
  font-stretch: var(--wide);
  font-weight: 900;
  line-height: .86;
  letter-spacing: -.02em;
  margin: 0 0 18px;
  text-transform: uppercase;
}
.wordmark .w-small { display: block; font-size: .34em; letter-spacing: .02em; line-height: 1; margin-bottom: .12em; color: var(--bone); }
.hero-lead { font-size: var(--step-1); line-height: 1.45; max-width: 30ch; margin-bottom: 24px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-meta { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--stone); font-size: .95rem; }
.hero-meta strong { color: var(--bone); font-weight: 650; }

@media (min-width: 900px) {
  .hero {
    grid-template-rows: 1fr;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    min-height: min(calc(100svh - 64px), 900px);
  }
  .hero-photo { grid-column: 2; grid-row: 1; height: auto; min-height: 0; }
  .hero-photo::after { background: linear-gradient(90deg, var(--charcoal) 0%, rgba(28,26,23,.4) 22%, rgba(28,26,23,0) 50%); }
  .hero-body {
    grid-column: 1 / -1; grid-row: 1;
    margin: 0; align-self: center;
    padding: 48px var(--gutter);
    width: 100%; max-width: var(--max); margin-inline: auto;
  }
  .hero-lead { max-width: 34ch; }
}

/* hero moment: needle swings and settles on N, then the name stamps in */
@media (prefers-reduced-motion: no-preference) {
  .js .hero .wordmark { animation: stamp .55s var(--ease-settle) .15s both; }
  .js .hero .o-compass .needle { transform-origin: 100px 100px; animation: swing 2.2s var(--ease) .55s both; }
  .js .hero .hero-kicker, .js .hero .hero-lead, .js .hero .hero-actions, .js .hero .hero-meta { animation: rise .6s var(--ease) both; }
  .js .hero .hero-kicker { animation-delay: .05s; }
  .js .hero .hero-lead { animation-delay: 1.1s; }
  .js .hero .hero-actions { animation-delay: 1.2s; }
  .js .hero .hero-meta { animation-delay: 1.3s; }
}
@keyframes swing {
  0% { transform: rotate(-150deg); }
  35% { transform: rotate(38deg); }
  55% { transform: rotate(-17deg); }
  72% { transform: rotate(8deg); }
  86% { transform: rotate(-3deg); }
  100% { transform: rotate(0deg); }
}
@keyframes stamp { 0% { opacity: 0; transform: scale(1.12); } 100% { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- sections ---------- */
.section { padding-block: 72px; }
@media (min-width: 900px) { .section { padding-block: 112px; } }
.section-head { display: grid; gap: 14px; margin-bottom: 36px; }
.section-head p { color: var(--stone); margin: 0; }
.band { background: var(--tobacco); }

/* statement */
.statement { font-size: var(--step-3); font-stretch: 112%; font-weight: 700; line-height: 1.12; letter-spacing: -.01em; max-width: 22ch; margin: 0; text-wrap: balance; }
.statement-grid { display: grid; gap: 28px; }
.statement-grid .side { color: var(--stone); max-width: 46ch; }
@media (min-width: 900px) {
  .statement-grid { grid-template-columns: 1.6fr 1fr; align-items: end; gap: 64px; }
}

/* ---------- enamel price board (signature element) ---------- */
.board { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--bone); }
.board-row {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "name plate" "desc plate" "act act";
  column-gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.board-row h3 { grid-area: name; font-size: 1.2rem; }
.board-row .desc { grid-area: desc; color: var(--stone); font-size: .98rem; margin: 6px 0 0; }
.board-row .desc .dur { color: var(--bone); font-weight: 600; white-space: nowrap; }
.plate {
  grid-area: plate; align-self: start;
  min-width: 78px; padding: 8px 12px 9px;
  background: var(--sodium); color: var(--charcoal);
  border-radius: var(--radius-plate);
  box-shadow: inset 0 0 0 2px var(--sodium), inset 0 0 0 4px var(--charcoal);
  text-align: center; line-height: 1;
  font-stretch: var(--wide); font-weight: 900; font-size: 1.35rem;
  font-variant-numeric: tabular-nums;
}
.plate small { font-size: .62em; font-weight: 800; margin-left: 1px; }
.board-row .act { grid-area: act; margin-top: 8px; }
.board-row .act a { min-height: 44px; }
@media (min-width: 720px) {
  .board-row {
    grid-template-columns: minmax(0, 1fr) auto auto;
    grid-template-areas: "name plate act" "desc plate act";
    align-items: center; padding: 24px 0;
  }
  .board-row h3 { font-size: 1.45rem; }
  .board-row .act { margin: 0 0 0 12px; }
  .plate { font-size: 1.6rem; min-width: 96px; padding: 10px 14px 11px; align-self: center; }
}

.board-group + .board-group { margin-top: 64px; }
.board-group > header { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 14px; flex-wrap: wrap; }
.board-group > header h2 { font-size: var(--step-2); }
.board-group > header p { margin: 0; color: var(--stone); }

.demo-note {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .9rem; color: var(--stone);
  border: 1px dashed var(--line); border-radius: 8px; padding: 6px 10px;
}

/* ---------- gallery strip (home) ---------- */
.strip {
  display: grid; grid-auto-flow: column; grid-auto-columns: 72%;
  gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 0 var(--gutter) 8px; margin: 0;
  scrollbar-width: thin; scrollbar-color: var(--line) transparent;
  overscroll-behavior-x: contain;
}
.strip figure { margin: 0; scroll-snap-align: start; }
.strip img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 6px; }
.strip figcaption { font-size: .9rem; color: var(--stone); margin-top: 8px; }
@media (min-width: 720px) { .strip { grid-auto-columns: 38%; } }
@media (min-width: 1100px) {
  .strip { grid-auto-columns: calc((min(100vw, var(--max)) - 2 * var(--gutter) - 36px) / 4); padding-inline: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))); }
}

/* ---------- steps ---------- */
.steps { list-style: none; margin: 0 0 36px; padding: 0; display: grid; gap: 0; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding: 20px 0; border-top: 1px solid var(--line); }
.steps li::before {
  counter-increment: s; content: counter(s);
  font-stretch: var(--wide); font-weight: 900; font-size: 2.2rem; line-height: 1; color: var(--sodium);
}
.steps h3 { margin-bottom: 4px; }
.steps p { margin: 0; color: var(--stone); }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .steps li { grid-template-columns: 1fr; border-top: 2px solid var(--bone); padding-top: 24px; }
}

/* ---------- visit / info ---------- */
.info-grid { display: grid; gap: 40px; }
@media (min-width: 900px) { .info-grid { grid-template-columns: 1fr 1fr; gap: 64px; } }
.hours { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.hours th, .hours td { text-align: left; padding: 12px 0; border-bottom: 1px solid var(--line); font-weight: 500; }
.hours th { font-weight: 650; }
.hours td { text-align: right; color: var(--bone); }
.hours tr.closed td { color: var(--stone); }
.hours tr.today th, .hours tr.today td { color: var(--sodium); }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.contact-list a, .contact-list span.item {
  display: flex; align-items: center; gap: 12px; min-height: 48px; text-decoration: none;
}
.contact-list svg { width: 22px; height: 22px; color: var(--sodium); flex: none; }
.contact-list a:hover .t { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- page header (inner pages) ---------- */
.page-head { padding: 48px 0 32px; border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.page-head h1 { font-size: var(--step-4); max-width: 14ch; }
.page-head p { margin: 16px 0 0; color: var(--stone); font-size: var(--step-1); line-height: 1.45; max-width: 40ch; }
.page-head .compass-bg {
  position: absolute; right: -96px; top: -40px;
  width: 200px; opacity: .1; pointer-events: none;
}
@media (min-width: 900px) {
  .page-head { padding: 88px 0 56px; }
  .page-head .compass-bg { width: 420px; right: 4%; top: 50%; translate: 0 -50%; opacity: .16; }
}

/* ---------- gallery page ---------- */
.masonry { columns: 2 160px; column-gap: 10px; }
.masonry button {
  display: block; width: 100%; margin: 0 0 10px; padding: 0; border: 0; background: none; cursor: zoom-in;
  break-inside: avoid; border-radius: 6px; overflow: hidden; position: relative;
}
.masonry img { width: 100%; height: auto; transition: transform .4s var(--ease), filter .3s; }
.masonry button:hover img { transform: scale(1.03); }
@media (min-width: 900px) { .masonry { columns: 3; column-gap: 16px; } .masonry button { margin-bottom: 16px; } }

.lightbox {
  border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100svh; width: 100%; height: 100%;
  color: var(--bone);
}
.lightbox::backdrop { background: rgba(14, 13, 11, .94); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox figure { margin: 0; padding: 64px 16px 24px; display: grid; gap: 12px; justify-items: center; max-height: 100svh; }
.lightbox img { max-height: calc(100svh - 140px); width: auto; border-radius: 6px; }
.lightbox figcaption { color: var(--stone); text-align: center; }
.lightbox .close {
  position: fixed; top: 12px; right: 12px; width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--charcoal); cursor: pointer; font-size: 1.6rem; line-height: 1;
}

/* ---------- booking ---------- */
.booking { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; padding-bottom: 140px; }
.booking > div { min-width: 0; }
@media (min-width: 1000px) {
  .booking { grid-template-columns: minmax(0, 1fr) 360px; gap: 56px; align-items: start; padding-bottom: 96px; }
}
.b-step { padding: 36px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 80px; }
.b-step > header { display: flex; align-items: baseline; gap: 14px; margin-bottom: 20px; }
.b-step > header .n {
  flex: none; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  border: 2px solid var(--line); color: var(--stone);
  font-weight: 850; font-stretch: var(--wide);
  transition: background-color .25s var(--ease), color .25s, border-color .25s;
}
.b-step.done > header .n { background: var(--sodium); border-color: var(--sodium); color: var(--charcoal); }
.b-step > header h2 { font-size: var(--step-2); }
.b-step > header .sub { display: block; font-size: .95rem; color: var(--stone); font-stretch: 100%; font-weight: 500; margin-top: 4px; }
.b-step.locked { opacity: .38; }
.b-step.locked .choices, .b-step.locked form { pointer-events: none; }

.choices { display: grid; gap: 10px; border: 0; padding: 0; margin: 0; min-width: 0; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice label {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 14px;
  min-height: 64px; padding: 14px 16px;
  background: var(--tobacco); border: 2px solid transparent; border-radius: 12px;
  cursor: pointer;
  transition: border-color .2s var(--ease), background-color .2s var(--ease), transform .15s var(--ease);
}
.choice label:hover { border-color: var(--line); }
.choice input:focus-visible + label { outline: 3px solid var(--sodium); outline-offset: 2px; }
.choice input:checked + label { border-color: var(--sodium); background: var(--tobacco-2); }
.choice label:active { transform: scale(.985); }
.choice .t { font-weight: 750; font-stretch: 112%; }
.choice .s { grid-column: 1; color: var(--stone); font-size: .92rem; }
.choice .p { grid-row: 1 / span 2; grid-column: 2; font-weight: 850; font-stretch: var(--wide); font-variant-numeric: tabular-nums; }
.choice input:checked + label .p { color: var(--sodium); }

.svc-tabs { display: flex; gap: 8px; overflow-x: auto; margin: 0 calc(-1 * var(--gutter)) 16px; padding: 2px var(--gutter) 6px; scrollbar-width: none; }
.svc-tabs::-webkit-scrollbar { display: none; }
.svc-tabs button {
  flex: none; min-height: 44px; padding: 0 16px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: transparent; color: var(--stone); font-weight: 650;
  transition: background-color .2s, color .2s, border-color .2s;
}
.svc-tabs button[aria-pressed="true"] { background: var(--bone); color: var(--charcoal); border-color: var(--bone); }

.barbers { grid-template-columns: 1fr 1fr; }
.barbers .choice label { grid-template-columns: 1fr; justify-items: start; min-height: 132px; align-content: start; gap: 6px; }
.barbers .badge {
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; margin-bottom: 4px;
  background: var(--charcoal); border: 2px solid var(--line);
  font-weight: 900; font-stretch: var(--wide); font-size: 1.15rem;
  transition: background-color .2s, color .2s, border-color .2s;
}
.barbers .choice input:checked + label .badge { background: var(--sodium); color: var(--charcoal); border-color: var(--sodium); }
.barbers .choice .s { grid-column: auto; }
@media (min-width: 720px) { .barbers { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1000px) { .days { margin-inline: 0; padding-inline: 0; } }

.days {
  display: grid; grid-auto-flow: column; grid-auto-columns: 76px; gap: 8px;
  overflow-x: auto; scroll-snap-type: x proximity; overscroll-behavior-x: contain;
  margin: 0 calc(-1 * var(--gutter)) 20px; padding: 2px var(--gutter) 8px;
  scrollbar-width: none;
}
.days::-webkit-scrollbar { display: none; }
.day {
  scroll-snap-align: start;
  min-height: 84px; border-radius: 12px; border: 2px solid transparent; background: var(--tobacco);
  display: grid; place-items: center; align-content: center; gap: 2px; cursor: pointer; padding: 8px 4px;
  transition: border-color .2s, background-color .2s, transform .15s;
}
.day .dw { font-size: .875rem; color: var(--stone); text-transform: lowercase; }
.day .dn { font-size: 1.6rem; font-weight: 900; font-stretch: var(--wide); line-height: 1; font-variant-numeric: tabular-nums; }
.day .dm { font-size: .875rem; color: var(--stone); }
.day:hover { border-color: var(--line); }
.day[aria-pressed="true"] { background: var(--sodium); color: var(--charcoal); border-color: var(--sodium); }
.day[aria-pressed="true"] .dw, .day[aria-pressed="true"] .dm { color: var(--charcoal); }
.day:disabled { cursor: not-allowed; background: transparent; border: 2px dashed var(--line); }
.day:disabled .dn, .day:disabled .dw, .day:disabled .dm { color: #8d877c; }
.day:active:not(:disabled) { transform: scale(.96); }

.slots-label { font-weight: 650; margin: 0 0 10px; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(82px, 1fr)); gap: 8px; }
.slot {
  min-height: 48px; border-radius: 10px; border: 1px solid var(--line); background: transparent; cursor: pointer;
  font-weight: 700; font-variant-numeric: tabular-nums;
  transition: background-color .2s, color .2s, border-color .2s, transform .15s;
}
.slot:hover:not(:disabled) { border-color: var(--bone); }
.slot[aria-pressed="true"] { background: var(--sodium); color: var(--charcoal); border-color: var(--sodium); }
.slot:disabled { color: #8d877c; text-decoration: line-through; cursor: not-allowed; border-style: dashed; }
.slot:active:not(:disabled) { transform: scale(.95); }
.slots-empty { color: var(--stone); grid-column: 1 / -1; margin: 0; }

.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 650; }
.field input, .field textarea, .field select {
  min-height: 52px; padding: 12px 14px; border-radius: 10px;
  background: var(--tobacco); border: 2px solid var(--line); color: var(--bone);
  transition: border-color .2s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--sodium); outline: none; }
.field .err { color: #ffb4a3; font-size: .92rem; min-height: 0; }
.field input[aria-invalid="true"] { border-color: #ff8a70; }
.form-grid { display: grid; gap: 0 16px; }
@media (min-width: 720px) { .form-grid { grid-template-columns: 1fr 1fr; } }
.consent { display: flex; gap: 12px; align-items: center; min-height: 44px; cursor: pointer; font-size: .95rem; color: var(--stone); margin: 4px 0 20px; }
.consent input { width: 24px; height: 24px; margin: 0; accent-color: var(--sodium); flex: none; }

/* the ticket: sticky summary (bottom on phones, side on desktop) */
.ticket {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  background: var(--bone); color: var(--charcoal);
  padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
  box-shadow: 0 -10px 30px rgba(0,0,0,.35);
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px;
}
.ticket::before { /* perforated top edge */
  content: ""; position: absolute; left: 0; right: 0; top: -6px; height: 12px;
  background: radial-gradient(circle at 8px 0, transparent 5px, var(--bone) 5.5px) 0 0 / 16px 12px repeat-x;
}
.ticket .tk-title { display: none; }
.ticket .tk-lines { font-size: .92rem; line-height: 1.35; min-width: 0; }
.ticket .tk-lines .main { font-weight: 800; font-stretch: 112%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.ticket .tk-lines .sub { color: #55504a; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ticket .btn { min-height: 48px; background: var(--charcoal); color: var(--bone); }
.ticket .btn:hover { background: #000; }
.ticket .tk-list { display: none; }
@media (min-width: 1000px) {
  .ticket {
    position: sticky; top: 96px; left: auto; right: auto; bottom: auto;
    margin-top: 36px; border-radius: 14px; padding: 28px 24px 24px;
    grid-template-columns: 1fr; box-shadow: none;
  }
  .ticket::before { display: none; }
  .ticket .tk-title { display: block; font-stretch: var(--wide); font-weight: 900; font-size: 1.4rem; line-height: 1; margin: 0; }
  .ticket .tk-lines { display: none; }
  .ticket .tk-list { display: grid; margin: 4px 0 24px; padding: 0; list-style: none; }
  .ticket .tk-list li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px dashed #b9b1a3; font-size: .98rem; }
  .ticket .tk-list li span:first-child { color: #55504a; }
  .ticket .tk-list li span:last-child { font-weight: 750; text-align: right; }
  .ticket .tk-list li.total span:last-child { font-stretch: var(--wide); font-weight: 900; font-size: 1.25rem; }
  .ticket .btn { width: 100%; }
}
@media (prefers-reduced-motion: no-preference) {
  .ticket.bump .tk-lines .main, .ticket.bump .tk-list li.total span:last-child { animation: bump .35s var(--ease-settle); }
}
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.06); } 100% { transform: scale(1); } }

/* demo dialog */
.demo-dialog {
  border: 0; padding: 0; width: min(440px, calc(100vw - 32px)); max-height: calc(100svh - 32px);
  border-radius: 16px; background: var(--bone); color: var(--charcoal); overflow: auto;
}
.demo-dialog::backdrop { background: rgba(14, 13, 11, .8); }
.demo-dialog .dd-top { background: var(--sodium); padding: 28px 24px 22px; display: grid; gap: 10px; }
.demo-dialog .dd-top svg { width: 64px; height: 64px; }
.demo-dialog h2 { font-size: 1.9rem; }
.demo-dialog .dd-body { padding: 22px 24px 24px; }
.demo-dialog .dd-body p { color: #3d3933; }
.demo-dialog dl { margin: 0 0 18px; display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: .98rem; }
.demo-dialog dt { color: #55504a; }
.demo-dialog dd { margin: 0; font-weight: 700; text-align: right; }
.demo-dialog .dd-actions { display: grid; gap: 10px; }
.demo-dialog .btn-dark { background: var(--charcoal); color: var(--bone); }
.demo-dialog .btn-line { border-color: #b9b1a3; color: var(--charcoal); }
@media (prefers-reduced-motion: no-preference) {
  .demo-dialog[open] { animation: pop .45s var(--ease-settle); }
  .demo-dialog[open] .needle { transform-origin: 100px 100px; animation: swing 1.6s var(--ease) .15s both; }
}
@keyframes pop { from { opacity: 0; transform: translateY(24px) scale(.96); } to { opacity: 1; transform: none; } }

/* ---------- legal ---------- */
.legal { max-width: 72ch; padding-block: 48px 96px; }
.legal h2 { font-size: var(--step-1); margin: 40px 0 12px; font-stretch: 112%; }
.legal p, .legal li { color: #d8d1c4; }
.legal .ph { color: var(--sodium); font-weight: 650; }
.legal table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.legal th, .legal td { text-align: left; padding: 10px 8px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 28px; background: #171512; }
.footer-top { display: grid; gap: 32px; }
.footer-top h2 { font-size: var(--step-3); }
.footer-cols { display: grid; gap: 24px; grid-template-columns: 1fr; color: var(--stone); font-size: .98rem; }
.footer-cols h3 { color: var(--bone); font-size: 1rem; font-stretch: 112%; margin-bottom: 8px; }
.footer-cols a { text-decoration: none; display: inline-block; padding: 6px 0; min-height: 44px; line-height: 32px; }
.footer-cols a:hover { color: var(--bone); }
.footer-cols ul { list-style: none; margin: 0; padding: 0; }
.footer-bottom {
  margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center;
  font-size: .9rem; color: var(--stone);
}
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 0 18px; }
.footer-bottom nav a { text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.footer-bottom nav a:hover { color: var(--bone); }
.demo-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .82rem; color: var(--stone);
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px;
}
.demo-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--sodium); }
@media (min-width: 560px) { .footer-cols { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) {
  .footer-top { grid-template-columns: 1.2fr 1fr; align-items: start; }
  .footer-cols { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- scroll reveal (content stays visible without JS) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
  .js .reveal.in { opacity: 1; transform: none; }
  .js .board.reveal .board-row { opacity: 0; transform: translateX(-12px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
  .js .board.reveal.in .board-row { opacity: 1; transform: none; }
  .js .board.reveal.in .board-row:nth-child(2) { transition-delay: .07s; }
  .js .board.reveal.in .board-row:nth-child(3) { transition-delay: .14s; }
  .js .board.reveal.in .board-row:nth-child(4) { transition-delay: .21s; }
  .js .board.reveal.in .board-row:nth-child(5) { transition-delay: .28s; }
  html { scroll-behavior: smooth; }
}

/* compass-O on the yellow demo panel */
.demo-dialog .o-compass { width: 56px; height: 56px; }
.demo-dialog .o-compass .o-ring { stroke: var(--charcoal); }
.demo-dialog .o-compass .needle-n { fill: var(--charcoal); }
.demo-dialog .o-compass .needle-s { fill: #7a5f0c; }
