/* ==========================================================================
   Banbury Top Nails
   1  Design tokens      6  Hero and shade fan    11  Contact
   2  Base               7  Nail studio           12  Footer
   3  Glass material     8  Services              13  Reservation page
   4  Buttons and links  9  Gallery               14  Motion
   5  Navigation        10  About                 15  Fallbacks
   ========================================================================== */

/* 1  Design tokens --------------------------------------------------------- */
:root {
  /* Colour: champagne, blush and one lacquer accent, plus neutrals */
  --champagne: #f2e7db;
  --blush: #e6c7ba;
  --lacquer: #7b1e3a;
  --lacquer-deep: #5e142b;
  --night: #2a0f18; /* the lacquer at its darkest, behind the studio */
  --ink: #27181c;
  --ink-soft: #4d393b;
  --on-dark: #fff;
  --on-dark-soft: #eddcd6;
  --line: rgba(39, 24, 28, 0.2);
  --line-strong: rgba(39, 24, 28, 0.58);
  --line-dark: rgba(255, 255, 255, 0.22);
  --error: #8a1230;

  /* Glass */
  --glass-top: rgba(255, 255, 255, 0.18);
  --glass-bottom: rgba(255, 255, 255, 0.09);
  --glass-border: rgba(255, 255, 255, 0.42);
  --glass-edge: rgba(255, 255, 255, 0.62);
  --glass-inner: rgba(255, 255, 255, 0.12);
  --glass-blur: 22px;
  --glass-saturate: 135%;
  --glass-shadow: 0 1px 2px rgba(60, 25, 30, 0.06), 0 14px 36px rgba(60, 25, 30, 0.12);
  --glass-solid: rgba(250, 243, 236, 0.95);
  --glass-solid-dark: rgba(66, 24, 38, 0.97);

  /* Radius */
  --radius-s: 12px;
  --radius-m: 20px;
  --radius-l: 28px;
  --radius-pill: 999px;

  /* Spacing scale */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;
  --gutter: 16px;
  --section: clamp(72px, 10vw, 136px);
  --max: 1320px;

  /* Type */
  --display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Motion */
  --ease: cubic-bezier(0.22, 0.7, 0.25, 1);
  --fast: 200ms;
  --slow: 400ms;
}

@media (min-width: 768px) {
  :root { --gutter: 32px; }
}
@media (min-width: 1200px) {
  :root { --gutter: 48px; }
}

/* 2  Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 104px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--champagne);
  color: var(--ink);
  font: 400 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, ol, dl, dd, figure, fieldset, address { margin: 0; padding: 0; }
ul, ol { list-style: none; }
address { font-style: normal; }
fieldset { border: 0; min-width: 0; }
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
/* Held at a low optical size: at Bodoni's display setting the thin strokes all but vanish */
h1, h2, h3, .wordmark, .fan-caption strong, .card-meta dd, .contact-block address, .contact-phone, .cal-title, .look-title strong, .my-look strong { font-optical-sizing: none; font-variation-settings: "opsz" 20; }
h1, h2 { font-family: var(--display); font-weight: 500; letter-spacing: -0.012em; line-height: 1.02; }
h1 { font-size: clamp(56px, 8.2vw, 128px); }
h1 em, h2 em { font-style: italic; }
h2 { font-size: clamp(40px, 5vw, 72px); }
h3 { font-family: var(--display); font-weight: 500; font-size: 26px; line-height: 1.15; }
:focus-visible { outline: 2px solid var(--lacquer); outline-offset: 3px; border-radius: 4px; }
/* Browsers flash a blue box on tap and select text on a quick double press. Buttons answer with a small press instead (section 4). */
html { -webkit-tap-highlight-color: transparent; }
a, button, label { touch-action: manipulation; }
button, label, .btn { -webkit-user-select: none; user-select: none; }
.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.section { padding-block: var(--section); }
.lead { font-size: clamp(18px, 1.5vw, 22px); line-height: 1.45; color: var(--ink-soft); max-width: 30em; }
.skip { position: absolute; left: var(--s-3); top: -80px; z-index: 100; padding: var(--s-3) var(--s-4); background: var(--ink); color: #fff; border-radius: var(--radius-s); }
.skip:focus { top: var(--s-3); }

/* Clearly marked placeholders */
.ph { border-bottom: 1.5px dashed currentColor; padding-bottom: 1px; }
.ph-note { font-size: 15px; color: var(--ink-soft); }
.tag { display: inline-block; padding: 1px 9px; border: 1.5px dashed currentColor; border-radius: var(--radius-pill); font: 500 13px/1.5 var(--sans); vertical-align: middle; }

/* Soft colour fields behind everything. Long diagonal bands, like folds of satin. */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(118deg, transparent 26%, rgba(255, 255, 255, 0.5) 37%, transparent 49%),
    linear-gradient(118deg, transparent 50%, rgba(184, 118, 110, 0.22) 64%, transparent 80%),
    radial-gradient(70% 60% at 88% 8%, rgba(214, 160, 145, 0.6), transparent 72%),
    radial-gradient(60% 60% at 6% 92%, rgba(228, 190, 160, 0.6), transparent 72%),
    var(--champagne);
}

/* 3  Glass material --------------------------------------------------------
   Solid first, so browsers without backdrop-filter still get a readable
   surface. The real glass is added in section 15. */
.glass {
  position: relative;
  background: var(--glass-solid);
  border: 1px solid var(--glass-border);
  box-shadow: inset 0 1px 0 var(--glass-edge), inset 0 0 28px var(--glass-inner), var(--glass-shadow);
}
.glass--dark {
  --glass-top: rgba(255, 255, 255, 0.13);
  --glass-bottom: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.24);
  --glass-edge: rgba(255, 255, 255, 0.34);
  --glass-inner: rgba(255, 255, 255, 0.05);
  --glass-shadow: 0 1px 2px rgba(0, 0, 0, 0.2), 0 18px 44px rgba(0, 0, 0, 0.3);
  --glass-saturate: 112%;
  background: var(--glass-solid-dark);
  color: var(--on-dark);
}

/* Gentle sheen that follows the pointer on hover (position set in main.js) */
[data-sheen]::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(260px circle at var(--mx, 30%) var(--my, 0%), rgba(255, 255, 255, 0.34), transparent 70%);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--slow) var(--ease);
}
@media (hover: hover) {
  [data-sheen]:hover::after { opacity: 1; }
}

/* 4  Buttons and links ------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  min-height: 48px;
  padding: 0 var(--s-5);
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.1;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--fast) var(--ease), color var(--fast) var(--ease), border-color var(--fast) var(--ease), transform var(--fast) var(--ease);
}
/* The press */
.btn:active:not(:disabled), .steps button:active, .chip:active span, .slot:active span, .cal-nav:active:not(:disabled), .cal-day:active:not(:disabled) { transform: scale(0.97); }
.swatch:active i { transform: scale(0.9); }
.nav-toggle:active, .text-btn:active, .link-arrow:active, .nav-links a:active { opacity: 0.65; }
.tip:active { --lift: -6%; }
.btn-lg { min-height: 58px; padding: 0 var(--s-6); font-size: 18px; }
.btn-primary { background: var(--lacquer); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24); }
.btn-primary:hover { background: var(--lacquer-deep); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover:not(:disabled) { background: var(--champagne); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  min-height: 44px;
  font-weight: 600;
  text-decoration: none;
  transition: color var(--fast) var(--ease);
}
.link-arrow .u { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.link-arrow:hover { color: var(--lacquer); }
.text-btn {
  min-height: 44px;
  padding: 0;
  background: none;
  border: 0;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

/* 5  Navigation -------------------------------------------------------------- */
.nav-wrap { position: sticky; top: var(--s-3); z-index: 50; padding-inline: var(--s-3); margin-top: var(--s-3); }
.nav {
  /* Tinted well past the cards' 8-18%: the nav's text has to stay readable over
     anything that scrolls under it, including dark photos. On the light page it
     looks no heavier, because what's behind it is light too. */
  --glass-top: rgba(255, 255, 255, 0.62);
  --glass-bottom: rgba(255, 255, 255, 0.5);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-1);
  max-width: calc(var(--max) + 2 * var(--s-5));
  margin-inline: auto;
  padding: var(--s-2) var(--s-2) var(--s-2) var(--s-3);
  border-radius: 32px;
  transition: color var(--slow) var(--ease), background-color var(--slow) var(--ease), border-color var(--slow) var(--ease);
}
.wordmark {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-right: auto;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(17px, 5vw, 20px); /* wordmark, Menu and Reserve share one row, even at 360px */
  line-height: 1.1;
  text-decoration: none;
  white-space: nowrap;
}
.nav-links { display: none; order: 3; flex-basis: 100%; padding: var(--s-2) 0 var(--s-2); }
.nav-links.is-open { display: block; }
.nav-links a { display: flex; align-items: center; min-height: 48px; font-weight: 500; text-decoration: none; }
.nav-toggle { min-height: 44px; padding: 0 var(--s-2); background: none; border: 0; font-weight: 500; }
.no-js .nav-links, html:not(.js) .nav-links { display: block; }
html:not(.js) .nav-toggle { display: none; }
.nav-reserve { min-height: 44px; padding: 0 var(--s-3); }

/* Over the dark studio section the nav turns light so its text stays readable */
.nav.is-on-dark {
  --glass-top: rgba(74, 32, 46, 0.66);
  --glass-bottom: rgba(42, 15, 24, 0.6);
  --glass-border: rgba(255, 255, 255, 0.24);
  --glass-edge: rgba(255, 255, 255, 0.34);
  --glass-solid: var(--glass-solid-dark);
  color: var(--on-dark);
}
.nav.is-on-dark .btn-primary { background: #fff; color: var(--lacquer); box-shadow: none; }
.nav.is-on-dark .btn-primary:hover { background: var(--champagne); }
.nav.is-on-dark :focus-visible { outline-color: #fff; }

@media (min-width: 768px) {
  .nav { flex-wrap: nowrap; gap: var(--s-2); padding-left: var(--s-5); }
  .wordmark { font-size: 22px; }
  .nav-toggle { display: none; }
  .nav-links { display: flex; order: 0; flex-basis: auto; gap: var(--s-1); padding: 0; margin-right: var(--s-3); }
  .nav-links a { min-height: 44px; padding: 0 var(--s-3); border-radius: var(--radius-pill); transition: background-color var(--fast) var(--ease); }
  .nav-links a:hover { background: rgba(255, 255, 255, 0.28); }
  .nav-reserve { min-height: 48px; padding: 0 var(--s-5); }
}

/* 6  Hero and shade fan ------------------------------------------------------ */
.hero { padding-block: var(--s-7) var(--s-6); overflow-x: clip; }
.hero-grid { display: grid; gap: var(--s-7); }
.hero-copy { display: flex; flex-direction: column; gap: var(--s-5); }
.hero-copy .lead { margin-top: var(--s-2); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-5); margin-top: var(--s-2); }

.fan-wrap { display: flex; flex-direction: column; gap: var(--s-4); min-width: 0; }
.fan { position: relative; width: 100%; aspect-ratio: 1.42 / 1; }
.tip {
  --lift: 0%;
  position: absolute;
  left: 50%;
  bottom: 3%;
  width: 13.5%;
  height: 92%;
  margin-left: -6.75%;
  padding: 0;
  background: none;
  border: 0;
  transform-origin: 50% 100%;
  transform: rotate(var(--a));
  transition: transform 700ms var(--ease);
}
.js .fan:not(.is-open) .tip { transform: rotate(0deg); }
.tip svg { width: 100%; height: 100%; overflow: visible; transform: translateY(var(--lift)); transition: transform var(--slow) var(--ease); filter: drop-shadow(0 3px 6px rgba(60, 25, 30, 0.22)); }
.tip:hover { --lift: -3%; }
.tip[aria-pressed="true"] { --lift: -6%; }
.tip:focus-visible { outline: none; }
.tip:focus-visible svg { --lift: -6%; }
.tip:focus-visible .tip-nail { stroke: var(--ink); stroke-width: 3; }
.tip-nail { fill: currentColor; stroke: rgba(60, 25, 30, 0.2); stroke-width: 1; }
.tip-stem { fill: rgba(255, 255, 255, 0.5); stroke: rgba(60, 25, 30, 0.14); stroke-width: 1; }
.fan-pin { position: absolute; left: 50%; bottom: 3%; width: 4.2%; aspect-ratio: 1; margin: 0 0 -2.1% -2.1%; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #c9b19f 60%, #8b7263); box-shadow: 0 1px 3px rgba(60, 25, 30, 0.4); pointer-events: none; }
.fan-caption { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--s-1) var(--s-3); }
.fan-caption strong { font-family: var(--display); font-weight: 500; font-size: 24px; line-height: 1.2; }
.fan-caption a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 500; text-underline-offset: 4px; }
.fan-dot { width: 18px; height: 18px; border-radius: 50%; background: var(--lacquer); box-shadow: inset 0 0 0 1px rgba(60, 25, 30, 0.2); transition: background-color var(--slow) var(--ease); }

@media (min-width: 960px) {
  .hero { padding-block: var(--s-8) var(--s-6); }
  .hero-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--s-5); align-items: center; min-height: min(calc(100svh - 150px), 760px); }
  .hero-copy { grid-column: 1 / span 6; }
  .fan-wrap { grid-column: 7 / -1; }
}

/* 7  Nail studio -------------------------------------------------------------- */
.studio {
  position: relative;
  padding-block: max(var(--section), var(--s-9)) var(--section);
  scroll-margin-top: -104px; /* its own top padding clears the nav, so land flush with the section */
  background:
    radial-gradient(52% 62% at 90% 46%, rgba(118, 40, 62, 0.85), transparent 74%),
    radial-gradient(46% 58% at 26% 48%, rgba(104, 36, 54, 0.8), transparent 76%),
    var(--night);
  color: var(--on-dark);
  overflow: clip;
}
.studio :focus-visible { outline-color: #fff; }
.studio-grid { display: grid; gap: var(--s-6); }
.studio-head { display: flex; flex-direction: column; gap: var(--s-3); max-width: 34em; }
.studio-head p { font-size: 18px; color: var(--on-dark-soft); }
.stage-col { display: flex; flex-direction: column; gap: var(--s-4); min-width: 0; }
.stage { position: relative; width: min(100%, calc((100svh - 180px) * 640 / 600)); margin-inline: auto; aspect-ratio: 640 / 600; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.stage canvas { width: 100%; height: 100%; }
@media (hover: hover) and (pointer: fine) {
  .stage.has-tool, .stage.has-tool button { cursor: none; }
}
/* Invisible, keyboard-friendly button over each nail */
.nail-btn {
  position: absolute;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 40% 40% 24% 24%;
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
}
.nail-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-radius: 40% 40% 24% 24%; }

.tones { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-1) var(--s-3); }
.tones legend { float: left; margin-right: var(--s-3); line-height: 44px; font-weight: 500; }

.tray { display: flex; flex-direction: column; gap: var(--s-5); padding: var(--s-4); border-radius: var(--radius-l); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-1); padding: var(--s-1); border-radius: var(--radius-pill); background: rgba(0, 0, 0, 0.22); }
.steps button { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; min-height: 48px; padding: 0 var(--s-2); background: none; border: 0; border-radius: var(--radius-pill); font-weight: 600; color: var(--on-dark); transition: background-color var(--fast) var(--ease), color var(--fast) var(--ease); }
.steps button:hover { background: rgba(255, 255, 255, 0.12); }
.steps button span { font-weight: 400; opacity: 0.8; }
.steps button[aria-current="step"] { background: #fff; color: var(--lacquer); }
.tray-panel { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-4); min-height: 208px; }
.tray-panel fieldset { width: 100%; }
.tray-panel legend { padding: 0; margin-bottom: var(--s-2); font-weight: 500; }
.tray-panel legend strong { font-weight: 600; }
.tray-note { font-size: 15px; color: var(--on-dark-soft); }

.chips { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.chip { position: relative; }
.chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.chip span { display: flex; align-items: center; min-height: 44px; padding: 0 var(--s-4); border: 1px solid rgba(255, 255, 255, 0.55); border-radius: var(--radius-pill); font-weight: 500; font-size: 16px; transition: background-color var(--fast) var(--ease), color var(--fast) var(--ease); }
.chip:hover span { background: rgba(255, 255, 255, 0.12); }
.chip input:checked + span { background: #fff; border-color: #fff; color: var(--lacquer); }
.chip input:focus-visible + span { outline: 2px solid #fff; outline-offset: 2px; }

.swatches { display: flex; flex-wrap: wrap; gap: 2px; margin-inline: -4px; }
.swatch { position: relative; display: block; width: 44px; height: 44px; }
.swatch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.swatch i { position: absolute; inset: 6px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4), inset 0 3px 5px rgba(255, 255, 255, 0.25); transition: transform var(--fast) var(--ease); }
.swatch b { position: absolute; inset: 1px; border: 2px solid transparent; border-radius: 50%; transition: border-color var(--fast) var(--ease); }
.swatch input:checked ~ b { border-color: #fff; }
.swatch input:focus-visible ~ b { border-color: #fff; outline: 2px solid #fff; outline-offset: 1px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.look { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-3); width: 100%; padding-top: var(--s-4); border-top: 1px solid var(--line-dark); }
.look-title strong { font-family: var(--display); font-weight: 500; font-size: 22px; }
.look .btn-primary { background: #fff; color: var(--lacquer); box-shadow: none; }
.look .btn-primary:hover { background: var(--champagne); }
.tray-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-2) var(--s-4); padding-top: var(--s-3); border-top: 1px solid var(--line-dark); }
.tray-status { flex: 1 1 200px; min-height: 48px; font-size: 16px; line-height: 1.45; color: var(--on-dark-soft); }

@media (min-width: 560px) {
  .tray { padding: var(--s-5); }
}
@media (min-width: 960px) {
  /* The hand fills the left and everything else stacks beside it, so both fit on one screen */
  .studio { padding-block: var(--s-9) var(--s-8); } /* the top clears the floating nav */
  .studio-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: auto 1fr; column-gap: var(--s-5); row-gap: var(--s-5); align-items: start; }
  .stage-col { grid-column: 1 / span 7; grid-row: 1 / span 2; }
  .studio-head { grid-column: 8 / -1; grid-row: 1; }
  .studio-head h2 { font-size: clamp(40px, 4.2vw, 60px); }
  .tray { grid-column: 8 / -1; grid-row: 2; }
}

/* 8  Services ------------------------------------------------------------------ */
.services { position: relative; isolation: isolate; overflow: clip; padding-top: max(var(--section), var(--s-9)); scroll-margin-top: -104px; }
/* A deeper fold of colour running behind the cards, so the glass reads as glass */
.services::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(112deg, transparent 30%, rgba(176, 118, 110, 0.5) 56%, rgba(214, 170, 150, 0.3) 72%, transparent 92%),
    radial-gradient(40% 50% at 80% 90%, rgba(168, 106, 102, 0.36), transparent 75%);
  -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent);
  mask-image: linear-gradient(to bottom, #000 72%, transparent);
}
.services-grid { display: grid; gap: var(--s-6); }
.services-head { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-3); }
.services-head p:not(.ph-note) { font-size: 18px; max-width: 22em; }
.services-head .btn { margin-top: var(--s-3); }
.cards { display: grid; gap: var(--s-4); }
.card { display: flex; flex-direction: column; gap: var(--s-3); padding: var(--s-5); border-radius: var(--radius-m); }
.card p { flex: 1; color: var(--ink); }
.card-meta { display: flex; gap: var(--s-6); margin-top: var(--s-3); padding-top: var(--s-3); border-top: 1px solid var(--line); }
.card-meta dt { font-size: 14px; color: var(--ink-soft); }
.card-meta dd { font-family: var(--display); font-size: 24px; font-weight: 500; line-height: 1.3; }

@media (min-width: 640px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 960px) {
  .services-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--s-5); align-items: start; }
  .services-head { grid-column: 1 / span 4; position: sticky; top: 112px; }
  .cards { grid-column: 5 / -1; gap: var(--s-5); }
  .card { padding: var(--s-6); min-height: 280px; }
}

/* 9  Gallery -------------------------------------------------------------------- */
.gallery { padding-top: 0; }
.gallery-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--s-2) var(--s-5); margin-bottom: var(--s-6); }
.shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); }
.shots a { display: block; overflow: hidden; border-radius: var(--radius-m); }
.shots img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform var(--slow) var(--ease); }
.shots a:hover img { transform: scale(1.02); }
.lightbox { width: min(92vw, 640px); padding: 0; border: 0; border-radius: var(--radius-m); background: var(--champagne); color: var(--ink); }
.lightbox::backdrop { background: rgba(42, 15, 24, 0.78); }
.lightbox img { width: 100%; max-height: 72vh; object-fit: contain; }
.lightbox-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--s-2); padding: var(--s-3); }
.lightbox-bar span { padding-inline: var(--s-2); }
.lightbox .btn-light { border-color: var(--line-strong); }

@media (min-width: 768px) {
  .shots { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); }
}

/* 10  About ---------------------------------------------------------------------- */
.about { padding-top: 0; }
.about-grid { display: grid; gap: var(--s-7); }
.about-lead { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-4); }
.about-lead h2 { font-size: clamp(48px, 7vw, 104px); }
.about-lead p { font-size: 18px; max-width: 26em; }
.about-lead .source { font-size: 15px; color: var(--ink-soft); }
.about-list li { display: flex; flex-direction: column; gap: var(--s-2); padding-block: var(--s-5); border-top: 1px solid var(--line); }
.about-list li:last-child { border-bottom: 1px solid var(--line); }
@media (min-width: 960px) {
  .about-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--s-5); align-items: start; }
  .about-lead { grid-column: 1 / span 7; }
  .about-list { grid-column: 8 / -1; }
}

/* 11  Contact --------------------------------------------------------------------- */
.contact { padding-top: 0; }
.contact-grid { display: grid; gap: var(--s-6); }
.contact-details { display: flex; flex-direction: column; gap: var(--s-5); }
.contact-block { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-1); }
.contact-block h3, .contact-hours h3 { font-family: var(--sans); font-size: 15px; font-weight: 500; line-height: 1.5; color: var(--ink-soft); }
.contact-block address, .contact-phone { font-family: var(--display); font-size: 28px; font-weight: 500; line-height: 1.2; }
.contact-phone a { display: inline-flex; align-items: center; min-height: 44px; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.contact-block p a { display: inline-flex; align-items: center; min-height: 44px; margin-right: var(--s-4); }
.contact-hours { display: flex; flex-direction: column; gap: var(--s-3); }
.hours > div { display: flex; justify-content: space-between; gap: var(--s-4); padding-block: var(--s-2); border-top: 1px solid var(--line); }
.hours > div:last-child { border-bottom: 1px solid var(--line); }
.hours .is-today { font-weight: 600; }
.map { display: grid; place-items: center; min-height: 300px; padding: var(--s-5); border: 1.5px dashed var(--line-strong); border-radius: var(--radius-m); text-align: center; color: var(--ink-soft); }
.map iframe { display: block; width: 100%; height: 100%; min-height: 300px; border: 0; }
.map.has-map { padding: 0; border: 0; overflow: hidden; }
@media (min-width: 720px) {
  .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s-6); }
  .map { grid-column: 1 / -1; }
}
@media (min-width: 1100px) {
  .contact-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--s-5); }
  .contact-details { grid-column: 1 / span 4; }
  .contact-hours { grid-column: 5 / span 3; padding-top: 86px; }
  .map { grid-column: 8 / -1; min-height: 480px; }
}

/* 12  Footer ----------------------------------------------------------------------- */
.footer { padding-block: var(--s-5); border-top: 1px solid var(--line); }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-2) var(--s-5); font-size: 15px; }
.footer .wordmark { margin: 0; font-size: 20px; }
.footer p a { display: inline-block; padding-block: 12px; text-underline-offset: 3px; }

/* 13  Reservation page ---------------------------------------------------------------- */
.page-reserve .backdrop {
  background:
    linear-gradient(112deg, transparent 22%, rgba(201, 128, 118, 0.38) 50%, rgba(226, 170, 150, 0.24) 70%, transparent 90%),
    linear-gradient(118deg, transparent 8%, rgba(255, 255, 255, 0.45) 20%, transparent 32%),
    radial-gradient(60% 60% at 92% 92%, rgba(190, 112, 108, 0.3), transparent 75%),
    var(--champagne);
}
.page-reserve { display: flex; flex-direction: column; min-height: 100svh; }
.reserve-main { flex: 1; padding-block: var(--s-7) var(--s-8); }
.reserve-grid { display: grid; gap: var(--s-6); }
.reserve-intro { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-4); }
.reserve-intro h1 { font-size: clamp(48px, 6.4vw, 96px); }
.reserve-intro > p { font-size: 18px; max-width: 26em; }
.reserve-intro .hours-wrap { width: 100%; max-width: 380px; margin-top: var(--s-3); }
.reserve-intro .hours-wrap h2 { display: flex; align-items: center; gap: var(--s-2); margin-bottom: var(--s-2); font: 500 15px/1.5 var(--sans); letter-spacing: 0; color: var(--ink-soft); }
.reserve-call a { font-weight: 600; text-underline-offset: 4px; }

.my-look { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-3); padding-block: var(--s-3); border-block: 1px solid var(--line); width: 100%; max-width: 380px; }
.my-look svg { width: 112px; height: 44px; flex: none; }
.my-look p { flex: 1 1 120px; line-height: 1.3; }
.my-look strong { display: block; font-family: var(--display); font-weight: 500; font-size: 20px; }

.panel { padding: var(--s-5) var(--s-4); border-radius: var(--radius-l); }
.form-grid { display: grid; gap: var(--s-5); }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .field > legend, .field-label { padding: 0; font-weight: 600; font-size: 16px; }
.field input[type="text"], .field input[type="tel"], .field input[type="date"] {
  width: 100%;
  min-height: 52px;
  padding: 0 var(--s-4);
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-s);
  font-size: 17px;
  color: var(--ink);
  transition: border-color var(--fast) var(--ease), background-color var(--fast) var(--ease);
}
.field input::placeholder { color: var(--ink-soft); opacity: 1; }
.field input:hover { background: rgba(255, 255, 255, 0.82); }
.field input:focus { outline: 2px solid var(--lacquer); outline-offset: 1px; background: #fff; }
.field input[aria-invalid="true"] { border-color: var(--error); border-width: 2px; }
.error { min-height: 0; font-size: 15px; font-weight: 500; line-height: 1.4; color: var(--error); }
.error:empty { display: none; }

/* Calendar */
.calendar { margin-top: var(--s-3); }
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); margin-bottom: var(--s-2); }
.cal-title { font-family: var(--display); font-size: 22px; font-weight: 500; }
.cal-nav { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; background: rgba(255, 255, 255, 0.5); border: 1px solid var(--line-strong); border-radius: 50%; font-size: 18px; line-height: 1; transition: background-color var(--fast) var(--ease); }
.cal-nav:hover:not(:disabled) { background: #fff; }
.cal-nav:disabled { opacity: 0.35; cursor: not-allowed; }
.cal-grid { width: 100%; border-collapse: collapse; table-layout: fixed; }
.cal-grid th { padding-bottom: var(--s-1); font-size: 14px; font-weight: 500; color: var(--ink-soft); }
.cal-grid td { padding: 1px; text-align: center; }
.cal-day { display: block; width: 100%; height: 44px; padding: 0; background: none; border: 1px solid transparent; border-radius: var(--radius-s); font-weight: 500; font-variant-numeric: tabular-nums; transition: background-color var(--fast) var(--ease), color var(--fast) var(--ease); }
.cal-day:hover:not(:disabled) { background: rgba(255, 255, 255, 0.7); }
.cal-day[aria-current="date"] { border-color: var(--line-strong); }
.cal-day[aria-pressed="true"] { background: var(--lacquer); color: #fff; }
.cal-day:disabled { color: rgba(39, 24, 28, 0.5); font-weight: 400; text-decoration: line-through; cursor: not-allowed; }
.cal-day.is-past:disabled { text-decoration: none; }

/* Time slots */
.time-hint { font-size: 16px; color: var(--ink-soft); }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: var(--s-2); margin-top: var(--s-1); }
.slot { position: relative; }
.slot input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.slot span { display: flex; align-items: center; justify-content: center; min-height: 44px; background: rgba(255, 255, 255, 0.55); border: 1px solid var(--line-strong); border-radius: var(--radius-s); font-weight: 500; font-variant-numeric: tabular-nums; transition: background-color var(--fast) var(--ease), color var(--fast) var(--ease); }
.slot:hover span { background: #fff; }
.slot input:checked + span { background: var(--lacquer); border-color: var(--lacquer); color: #fff; }
.slot input:focus-visible + span { outline: 2px solid var(--lacquer); outline-offset: 2px; }

/* Submit */
.submit-row { display: flex; flex-direction: column; gap: var(--s-3); }
.submit { width: 100%; min-height: 58px; border: 0; font-size: 18px; }
.submit[aria-disabled="true"] { background: rgba(255, 255, 255, 0.5); border: 1px solid var(--line-strong); color: var(--ink-soft); box-shadow: none; cursor: not-allowed; }
.submit[aria-busy="true"] { background: var(--lacquer); cursor: progress; }
.spinner { width: 18px; height: 18px; border: 2px solid rgba(255, 255, 255, 0.4); border-top-color: #fff; border-radius: 50%; animation: spin 800ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.still-needed { font-size: 15px; color: var(--ink-soft); }
.form-error { padding: var(--s-3) var(--s-4); border-left: 3px solid var(--error); font-weight: 500; color: var(--error); background: rgba(255, 255, 255, 0.6); border-radius: 0 var(--radius-s) var(--radius-s) 0; }

/* Confirmation */
.confirmation { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-4); }
.confirmation h2 { font-size: clamp(36px, 4.4vw, 60px); outline: none; }
.done-art { width: 150px; height: auto; }
.reserve-grid.is-done .reserve-intro { display: none; } /* the booking is made, so "Pick your time" steps aside */
.summary { width: 100%; }
.summary > div { display: grid; grid-template-columns: 110px 1fr; gap: var(--s-3); padding-block: var(--s-3); border-top: 1px solid var(--line); }
.summary > div:last-child { border-bottom: 1px solid var(--line); }
.summary dt { color: var(--ink-soft); }
.summary dd { font-weight: 600; overflow-wrap: anywhere; }
.proto-note { padding: var(--s-3) var(--s-4); border: 1.5px dashed var(--line-strong); border-radius: var(--radius-s); font-size: 15px; }

@media (min-width: 560px) {
  .panel { padding: var(--s-6); }
  .names { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5); }
}
@media (max-width: 559px) {
  .names { display: grid; gap: var(--s-5); }
}
@media (min-width: 1040px) {
  .reserve-main { padding-block: var(--s-8); }
  .reserve-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--s-5); align-items: start; }
  .reserve-intro { grid-column: 1 / span 4; position: sticky; top: 112px; }
  .panel { grid-column: 5 / -1; }
  .is-done .panel { grid-column: 1 / span 8; }
  .when { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: var(--s-6); align-items: start; }
}
@media (max-width: 1039px) {
  .when { display: grid; gap: var(--s-5); }
  /* On a phone the form comes first and the opening hours drop below it */
  .reserve-grid { gap: var(--s-4); }
  .reserve-intro { display: contents; }
  .panel { order: 2; margin-top: var(--s-3); }
  .reserve-intro .hours-wrap { order: 3; max-width: none; margin-top: var(--s-5); }
  .my-look { max-width: none; }
}

/* 14  Motion ---------------------------------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity var(--slow) var(--ease), transform var(--slow) var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js .fan:not(.is-open) .tip { transform: rotate(var(--a)); }
  .spinner { animation: none; border-top-color: rgba(255, 255, 255, 0.4); }
}

/* 15  Fallbacks and the real glass --------------------------------------------------------
   Only browsers that support backdrop-filter get the see-through version. Everyone else
   keeps the solid translucent surface from section 3. */
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  @media (prefers-reduced-transparency: no-preference) {
    .glass {
      background: linear-gradient(180deg, var(--glass-top), var(--glass-bottom));
      -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
      backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
    }
  }
}
/* Without JavaScript the widgets can't run, so they step aside */
html:not(.js) .studio, html:not(.js) .fan-wrap, html:not(.js) .panel { display: none; }
@media (forced-colors: active) {
  .glass { border-color: CanvasText; }
  .cal-day[aria-pressed="true"], .slot input:checked + span, .chip input:checked + span { outline: 2px solid Highlight; }
}
