/* Version B — "Hantverk". The salon's own materials as section grounds; one superfamily in two widths. */
:root {
  --graphite: var(--prim-graphite-700);
  --cape: var(--prim-graphite-900);
  --led: var(--prim-led-50);
  --brass: var(--prim-brass-500);
  --fg: var(--led);
  --fg-muted: color-mix(in srgb, var(--led) 68%, var(--graphite));

  --font: 'Archivo', system-ui, sans-serif;
  --narrow: 'wdth' 62;
  --wide: 'wdth' 112;

  --gutter: clamp(1rem, 4vw, 3.5rem);
  --wrap: min(1240px, 100% - 2 * var(--gutter));
}

* { box-sizing: border-box; }
html {
  background: var(--graphite); color: var(--fg);
  -webkit-tap-highlight-color: transparent; -webkit-text-size-adjust: 100%;
  scrollbar-color: var(--brass) var(--cape);
}
body { margin: 0; font: 400 1rem/1.6 var(--font); font-variation-settings: var(--wide); }
::selection { background: var(--brass); color: var(--cape); }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 0.25em; text-decoration-thickness: 1px; }
:focus-visible { outline: 1.5px solid currentColor; outline-offset: 4px; border-radius: 3px; }
.icon { width: 1.1em; height: 1.1em; flex: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 50; background: var(--led); color: var(--cape); padding: 0.6rem 1rem; border-radius: 99px; }
.skip:focus { top: 1rem; }
.wrap { width: var(--wrap); margin-inline: auto; }

/* Oval hairline button */
.oval {
  display: inline-grid; place-items: center; min-height: 3.1rem; padding: 0 1.5rem;
  border: 1px solid currentColor; border-radius: 50%; text-decoration: none;
  font: 400 0.75rem/1 var(--font); font-variation-settings: var(--wide); letter-spacing: 0.08em; text-transform: uppercase;
  touch-action: manipulation; user-select: none; -webkit-user-select: none;
  transition: background-color var(--dur-ui) ease, color var(--dur-ui) ease, transform var(--dur-press) var(--ease-out);
}
.oval:active { transform: scale(0.97); }
.oval-lg { min-height: 5rem; padding: 0 3rem; font-size: 0.875rem; }
.oval-dark { color: var(--cape); }
.link { display: inline-flex; align-items: center; gap: 0.4rem; text-decoration: none; font-size: 0.9375rem; opacity: 0.8; transition: opacity var(--dur-ui) ease; }
@media (hover: hover) and (pointer: fine) {
  .oval:hover { background: var(--led); color: var(--cape); border-color: var(--led); }
  .oval-dark:hover { background: var(--cape); color: var(--led); border-color: var(--cape); }
  .link:hover { opacity: 1; }
}

/* Header floats over the film */
.top {
  position: fixed; inset: 0 0 auto; z-index: 20;
  display: flex; justify-content: space-between; align-items: center;
  padding: calc(env(safe-area-inset-top, 0px) + 1rem) var(--gutter) 1rem;
  color: var(--led);
  background: linear-gradient(to bottom, rgb(18 18 20 / 0.62), rgb(18 18 20 / 0));
}
.top .oval { background: var(--led); color: var(--cape); border-color: var(--led); }
@media (hover: hover) and (pointer: fine) { .top .oval:hover { background: var(--brass); border-color: var(--brass); color: var(--cape); } }
.word { font: 400 0.8125rem/1 var(--font); font-variation-settings: var(--wide); letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none; }

/* The film: one camera drop, scrubbed by scroll */
.film { height: 420svh; position: relative; background: var(--graphite); }
.film-stick {
  position: sticky; top: 0; height: 100svh; overflow: hidden;
  display: grid; grid-template-columns: 1.25fr 1fr; grid-template-rows: 100svh; align-items: stretch;
}
.film-frame { order: 2; position: relative; min-height: 0; background: var(--cape); }
.film-frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.film-copy { min-height: 0; }
.film-copy {
  order: 1; display: grid; grid-template-rows: 1fr auto; align-content: center;
  padding: calc(env(safe-area-inset-top, 0px) + 5rem) var(--gutter) var(--space-6);
}
.menu { list-style: none; margin: 0; padding: 0; align-self: center; }
.menu li { display: flex; align-items: flex-end; gap: var(--space-5); }
.menu .name {
  font: 400 clamp(3rem, 1rem + 6.4vw, 7.5rem)/0.86 var(--font); font-variation-settings: var(--narrow);
  text-transform: uppercase; letter-spacing: -0.01em;
  color: color-mix(in srgb, var(--led) 44%, var(--graphite));
  transition: color 500ms var(--ease-out);
}
.menu .meta {
  font: 400 0.9375rem/1.2 var(--font); font-variation-settings: var(--wide); font-variant-numeric: tabular-nums;
  color: color-mix(in srgb, var(--brass) 78%, var(--led)); padding-bottom: 0.55em; white-space: nowrap;
  opacity: 0; transform: translateX(-8px); filter: blur(3px);
  transition: opacity 400ms var(--ease-out), transform 400ms var(--ease-out), filter 400ms var(--ease-out);
}
.menu li.is-on .name { color: var(--led); }
.menu li.is-on .meta { opacity: 1; transform: none; filter: none; }
.film-foot { display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); color: var(--fg-muted); font-size: 0.875rem; }
.addr { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; }
.sep { width: 1.5rem; height: 1px; background: currentColor; opacity: 0.5; }
.status { display: inline-flex; align-items: center; gap: 0.45rem; }
.status .dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; border: 1px solid var(--brass); }
.status.is-open .dot { background: var(--brass); }
.status [data-status-label] { color: var(--led); }
.hint { margin: 0; font-variation-settings: var(--narrow); text-transform: uppercase; letter-spacing: 0.2em; font-size: 0.75rem; transition: opacity 300ms ease; }
.hint::after { content: ''; display: inline-block; width: 1px; height: 1.6rem; margin-left: 0.7rem; vertical-align: middle; background: currentColor; transform-origin: top; animation: drip 1.8s var(--ease-in-out) infinite; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
.film.is-moving .hint { opacity: 0; }

@media (max-width: 820px) {
  .film-stick { grid-template-columns: 1fr; }
  .film-frame { position: absolute; inset: 0; order: 0; }
  .film-frame::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgb(18 18 20 / 0.92) 0%, rgb(18 18 20 / 0.55) 42%, transparent 70%); }
  .film-copy { position: relative; z-index: 1; grid-template-rows: auto auto; align-content: end; padding-bottom: calc(env(safe-area-inset-bottom, 0px) + var(--space-6)); }
  .menu .name { font-size: clamp(2.6rem, 13vw, 4.5rem); color: color-mix(in srgb, var(--led) 38%, transparent); }
  .film-foot { margin-top: var(--space-5); }
  .hint { display: none; }
}

/* Rooms: each section owns a full ground */
.room { padding-block: clamp(5rem, 3rem + 9vw, 11rem); }
.room-led { background: var(--led); color: var(--cape); --fg-muted: color-mix(in srgb, var(--cape) 66%, var(--led)); }
.room-cape { background: var(--cape); }
.room-brass { background: var(--brass); color: var(--cape); --fg-muted: color-mix(in srgb, var(--cape) 88%, var(--brass)); }
.room-graphite { background: var(--graphite); }
.display {
  margin: 0; font: 400 clamp(3.25rem, 1.4rem + 7vw, 8.5rem)/0.86 var(--font); font-variation-settings: var(--narrow);
  text-transform: uppercase; letter-spacing: -0.01em; text-wrap: balance;
}
.lede { max-width: 44ch; margin: var(--space-6) 0 var(--space-8); font-size: 1.125rem; color: var(--fg-muted); }
.row-head { display: flex; justify-content: space-between; align-items: end; gap: var(--space-5); flex-wrap: wrap; margin-bottom: var(--space-7); }

/* Roster: names are the list; the portrait opens from the name */
.roster { list-style: none; margin: 0; padding: 0; border-top: 1px solid currentColor; }
.roster li:focus-within .peek { clip-path: inset(0 0 0 0); }
.roster li {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--space-5);
  padding: var(--space-4) 0; border-bottom: 1px solid color-mix(in srgb, currentColor 30%, transparent);
  position: relative;
}
.roster .who { display: flex; align-items: center; gap: var(--space-5); min-width: 0; }
.roster .thumb { width: 4.5rem; aspect-ratio: 1; flex: none; object-fit: cover; border-radius: 50%; background: color-mix(in srgb, var(--cape) 10%, var(--led)); display: grid; place-items: center; font: 400 1.6rem/1 var(--font); font-variation-settings: var(--narrow); }
.roster h3 { margin: 0; font: 400 clamp(2.25rem, 1rem + 4.4vw, 5rem)/0.9 var(--font); font-variation-settings: var(--narrow); text-transform: uppercase; }
.roster .role { font-size: 0.875rem; color: var(--fg-muted); text-align: right; font-variant-numeric: tabular-nums; }
.roster .role strong { display: block; font-weight: 400; color: var(--cape); font-size: 1rem; }
.roster .peek {
  position: absolute; right: 22%; top: 50%; width: clamp(9rem, 16vw, 13rem); aspect-ratio: 4 / 5; object-fit: cover;
  translate: 0 -50%; pointer-events: none; z-index: 2;
  clip-path: inset(50% 0 50% 0); transition: clip-path 380ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .roster li:hover .peek { clip-path: inset(0 0 0 0); }
}
@media (hover: none), (pointer: coarse) { .roster .peek { display: none; } }

/* Reels */
.reels { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(0.5rem, 1.4vw, 1.25rem); }
.reels video, .reels img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; background: #000; }
@media (max-width: 820px) {
  .reels { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 72%; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scrollbar-width: none; }
  .reels video, .reels img { scroll-snap-align: center; }
}

/* Score */
.score-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: var(--space-8); align-items: end; }
.score { margin: 0; font: 400 clamp(8rem, 4rem + 18vw, 19rem)/0.78 var(--font); font-variation-settings: var(--narrow); letter-spacing: -0.03em; }
.score-of { display: block; margin-top: var(--space-7); font: 400 1rem/1.4 var(--font); font-variation-settings: var(--wide); letter-spacing: 0; }
.quotes { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-6); }
.quotes li { border-top: 1px solid var(--cape); padding-top: var(--space-4); }
.quotes blockquote { margin: 0; font: 400 clamp(1.5rem, 1rem + 1.6vw, 2.5rem)/1.05 var(--font); font-variation-settings: var(--narrow); text-transform: uppercase; }
.quotes small { display: block; margin-top: var(--space-3); font-size: 0.875rem; color: var(--fg-muted); }
@media (max-width: 820px) { .score-grid { grid-template-columns: 1fr; gap: var(--space-7); } }

/* Visit */
.visit { display: grid; grid-template-columns: 1.3fr 1fr; gap: var(--space-8); align-items: end; }
.actions { display: flex; flex-wrap: wrap; gap: var(--space-5); align-items: center; }
.hours { margin: 0; display: grid; grid-template-columns: 1fr auto; font-variant-numeric: tabular-nums; }
.hours dt, .hours dd { margin: 0; padding: 0.85rem 0; border-bottom: 1px solid color-mix(in srgb, var(--led) 18%, transparent); }
.hours dd { text-align: right; color: color-mix(in srgb, var(--brass) 78%, var(--led)); }
.hours .today { color: var(--led); }
@media (max-width: 820px) { .visit { grid-template-columns: 1fr; } }

/* FAQ */
.faq { display: grid; grid-template-columns: 1fr 1.6fr; gap: var(--space-8); align-items: start; }
.faq-list details { border-bottom: 1px solid color-mix(in srgb, var(--led) 18%, transparent); }
.faq-list details:first-child { border-top: 1px solid color-mix(in srgb, var(--led) 18%, transparent); }
.faq-list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: var(--space-4); padding: var(--space-5) 0; font-size: 1.125rem; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary .icon { transition: transform var(--dur-ui) var(--ease-out); color: var(--brass); }
.faq-list details[open] summary .icon { transform: rotate(45deg); }
.faq-list p { margin: 0 0 var(--space-5); color: var(--fg-muted); max-width: 60ch; }
@media (max-width: 820px) { .faq { grid-template-columns: 1fr; gap: var(--space-6); } }

/* Footer */
.foot { padding-bottom: calc(var(--space-8) + env(safe-area-inset-bottom, 0px)); }
.foot-grid { display: grid; grid-template-columns: auto 1fr; gap: var(--space-7); align-items: center; }
.foot-links { display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-6); justify-content: end; }
.foot-links a { display: inline-flex; gap: 0.5rem; align-items: center; text-decoration: none; }
.fine { grid-column: 1 / -1; margin: 0; font-size: 0.8125rem; color: var(--fg-muted); }
@media (max-width: 820px) { .foot-grid { grid-template-columns: 1fr; } .foot-links { justify-content: start; } }

/* Entrance: already visible by default */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity var(--dur-reveal) var(--ease-out), transform var(--dur-reveal) var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hint::after { animation: none; }
}

.menu .meta > span { display: block; }
@media (max-width: 820px) {
  .menu li { flex-wrap: wrap; row-gap: 0; column-gap: var(--space-3); }
  .menu .meta { padding-bottom: 0.35em; font-size: 0.8125rem; }
  .menu .meta > span { display: inline; }
  .menu .meta > span + span::before { content: '·'; margin: 0 0.4em; }
}

/* After the film the header stops blending and sits on cape black */
.top { transition: background-color 300ms ease; }
.top.is-solid { mix-blend-mode: normal; background: var(--cape); color: var(--led); }
.menu .meta { font-size: clamp(0.875rem, 0.55rem + 0.45vw, 1.0625rem); }
