/* ============================================================
   GM coiffure by Pauline — Nice
   Composition: black + white + one colour per section,
   receipt/listing layout, stacked headline, grain overlay,
   drag-to-scroll band, gentle fade+rise on scroll enter.
   ============================================================ */

:root {
  --bg-1: #0a0a0a;
  --bg-2: #e10600;
  --bg-3: #003c8a;
  --bg-4: #f4ff33;
  --ink: #0a0a0a;
  --paper: #f7f5f0;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --col: 40ch;
  --pad: clamp(1.25rem, 5vw, 3rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; padding: 0; }

body {
  min-height: 100vh;
  background: var(--bg-1);
  color: var(--paper);
  font-family: var(--mono);
  font-size: clamp(0.9rem, 0.55vw + 0.78rem, 1rem);
  line-height: 1.65;
  font-variation-settings: "wght" 380;
  overflow-x: hidden;
}

img, video { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

/* ---- grain overlay ---- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* ---- focus ---- */
:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--bg-4);
  color: var(--ink);
  padding: 0.6rem 1rem;
  z-index: 1000;
}
.skip:focus { left: 0.5rem; top: 0.5rem; }

/* ============================================================
   HEADER
   ============================================================ */
.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg-1) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px dotted rgba(247, 245, 240, 0.28);
}
.head-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0.7rem var(--pad);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1.4rem;
}
.mark {
  margin: 0;
  font-family: var(--display);
  font-size: 1.05rem;
  font-variation-settings: "wght" 600, "opsz" 24;
  letter-spacing: 0.01em;
  text-transform: none;
}
.mark span { font-style: italic; font-variation-settings: "wght" 400, "opsz" 24; opacity: 0.75; }
.head-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.1rem;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-right: auto;
}
.head-nav a {
  text-decoration: none;
  padding: 0.55rem 0.15rem;
  border-bottom: 1px solid transparent;
}
.head-nav a:hover { border-bottom-color: currentColor; }
.head-tel {
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  border: 1px solid currentColor;
  padding: 0.5rem 0.85rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}
.head-tel:hover { background: var(--paper); color: var(--ink); }

/* ============================================================
   SECTION SHELL + COLOUR ROTATION
   ============================================================ */
section { position: relative; }

.col {
  width: 100%;
  max-width: var(--col);
  margin: 0 auto;
  padding: clamp(3rem, 9vw, 6rem) var(--pad);
}
.col > *:first-child { margin-top: 0; }
.col > *:last-child { margin-bottom: 0; }

.s1 { background: var(--bg-1); color: var(--paper); }
.s2 { background: var(--bg-2); color: #fff; }
.s3 { background: var(--bg-3); color: #fff; }
.s4 { background: var(--bg-4); color: var(--ink); }
.s5 { background: var(--bg-1); color: var(--paper); }
.s6 { background: var(--bg-2); color: #fff; }

.s-band { background: var(--bg-1); color: var(--paper); padding-bottom: clamp(2rem, 6vw, 4rem); }
.s-band .col { padding-bottom: 1.5rem; }

/* ============================================================
   TYPE
   ============================================================ */
.kicker {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.8;
  margin: 0 0 1.1rem;
}

h1 {
  font-family: var(--display);
  font-variation-settings: "wght" 700, "opsz" 144;
  font-size: clamp(2.6rem, 11vw, 5.6rem);
  line-height: 0.94;
  letter-spacing: -0.02em;
  margin: 0 0 1.6rem;
}
h1 span { display: block; }
h1 span:nth-child(2) { margin-left: 1.6em; font-style: italic; font-variation-settings: "wght" 400, "opsz" 144; }
h1 span:nth-child(3) { margin-left: -0.35em; }

h2 {
  font-family: var(--display);
  font-variation-settings: "wght" 600, "opsz" 72;
  font-size: clamp(1.7rem, 5.5vw, 2.7rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin: 0 0 1.2rem;
  text-wrap: balance;
}

h3 { font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; margin: 0 0 0.9rem; }

p { margin: 0 0 1.1rem; text-wrap: pretty; }

.lede { font-size: 1.02em; max-width: 34ch; }
.intro { max-width: 38ch; }

.fine { font-size: 0.78rem; opacity: 0.78; margin-top: 1.6rem; }
.note { font-size: 0.76rem; opacity: 0.7; margin-top: 1rem; }

/* ============================================================
   BUTTONS
   ============================================================ */
.cta-row { display: flex; flex-wrap: wrap; gap: 0.7rem; margin: 1.8rem 0 0; }
.btn {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0.75rem 1.15rem;
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid currentColor;
  background: transparent;
  transition: background-color 180ms ease, color 180ms ease;
}
.btn:hover { background: currentColor; }
.btn:hover { color: var(--bg-1); }
.s2 .btn:hover, .s6 .btn:hover { color: var(--bg-2); }
.s3 .btn:hover { color: var(--bg-3); }
.s4 .btn:hover { color: var(--bg-4); }
.btn.ghost { opacity: 0.85; }

/* ============================================================
   RECEIPT / LISTING
   ============================================================ */
.receipt {
  margin: 0 0 2.4rem;
  padding-top: 1.4rem;
  border-top: 1px dotted currentColor;
}
.receipt--plain { border-top: 1px dotted currentColor; padding-top: 1.4rem; }
.receipt-h { margin-bottom: 0.7rem; }

.lines { list-style: none; margin: 0; padding: 0; }
.lines li {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  padding: 0.42rem 0;
  font-size: 0.86rem;
}
.lines .lbl { flex: 0 1 auto; }
.lines .dots {
  flex: 1 1 auto;
  min-width: 1.5rem;
  border-bottom: 1px dotted currentColor;
  opacity: 0.45;
  transform: translateY(-0.28em);
}
.lines .val { flex: 0 0 auto; text-align: right; font-variant-numeric: tabular-nums; }
.lines .val a { text-decoration: none; border-bottom: 1px solid currentColor; }
.hours .lbl { min-width: 6.5rem; }

/* ============================================================
   DRAG BAND
   ============================================================ */
.band-title { font-size: clamp(1.4rem, 4.5vw, 2rem); margin-bottom: 0.4rem; }
.band-hint { font-size: 0.76rem; opacity: 0.7; margin: 0; }

.band {
  overflow: hidden;
  cursor: grab;
  padding: 1.2rem 0 2rem;
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
}
.band.is-dragging { cursor: grabbing; }
.band-track {
  display: flex;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0 var(--pad);
  width: max-content;
  will-change: transform;
}
.band-item { width: min(62vw, 260px); flex: 0 0 auto; }
.band-item img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
  transition: filter 300ms ease;
}
.band-item:hover img { filter: grayscale(0) contrast(1); }
.band-cap {
  font-size: 0.74rem;
  line-height: 1.45;
  margin: 0.6rem 0 0;
  opacity: 0.85;
}
.band-cap span {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.66rem;
  opacity: 0.7;
}

/* ============================================================
   QUOTE / AVIS
   ============================================================ */
.quote {
  margin: 2.4rem 0 0;
  padding-left: 1.1rem;
  border-left: 3px solid currentColor;
  font-family: var(--display);
  font-style: italic;
  font-variation-settings: "wght" 400, "opsz" 40;
  font-size: 1.15rem;
  line-height: 1.4;
}
.quote cite {
  display: block;
  margin-top: 0.8rem;
  font-family: var(--mono);
  font-style: normal;
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.8;
}

.quotes { list-style: none; margin: 1.6rem 0 0; padding: 0; }
.quotes li {
  padding: 0.9rem 0;
  border-top: 1px dotted currentColor;
  font-size: 0.88rem;
}
.quotes li:last-child { border-bottom: 1px dotted currentColor; }

.street {
  margin: 2.2rem 0 0;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  filter: grayscale(1) contrast(1.08);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-foot {
  background: var(--bg-1);
  color: var(--paper);
  border-top: 1px dotted rgba(247, 245, 240, 0.3);
}
.site-foot .col { padding-bottom: 5.5rem; }
.foot-mark {
  font-family: var(--display);
  font-variation-settings: "wght" 600, "opsz" 32;
  font-size: 1.25rem;
  margin: 0 0 0.6rem;
}
.foot-mark span { font-style: italic; font-variation-settings: "wght" 400, "opsz" 32; opacity: 0.75; }
.foot-line { font-size: 0.82rem; margin: 0 0 0.5rem; }
.foot-line a { text-decoration: none; border-bottom: 1px solid currentColor; }
.muted { opacity: 0.72; }

.claim-banner {
  display: inline-block;
  margin-top: 1.6rem;
  padding: 0.5rem 0.8rem;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--paper);
  background: rgba(247, 245, 240, 0.08);
  border: 1px dotted rgba(247, 245, 240, 0.35);
}
.claim-banner:hover { background: rgba(247, 245, 240, 0.16); }

.attribution {
  position: fixed;
  bottom: 0.5rem;
  right: 0.75rem;
  font-size: 0.7rem;
  opacity: 0.5;
  font-family: var(--mono);
  z-index: 60;
}
.attribution a { color: inherit; }

/* ============================================================
   MOTION — fade + rise on scroll enter
   ============================================================ */
@keyframes fadeRise {
  from { opacity: 0; translate: 0 12px; }
  to   { opacity: 1; translate: 0 0; }
}

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .s1 .col, .s2 .col, .s3 .col, .s4 .col, .s5 .col, .s6 .col, .s-band .col {
      animation: fadeRise 420ms cubic-bezier(.2, .7, .1, 1) both;
      animation-timeline: view();
      animation-range: entry 0% cover 25%;
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .band-track { transition: none !important; }
}

/* ============================================================
   WIDE SCREENS — keep the receipt column narrow, let colour breathe
   ============================================================ */
@media (min-width: 900px) {
  .col { max-width: 46ch; }
  .band-item { width: 300px; }
}

@media (max-width: 480px) {
  .head-nav { font-size: 0.7rem; gap: 0.3rem 0.8rem; }
  .head-tel { font-size: 0.76rem; padding: 0.5rem 0.7rem; }
  .band-item { width: 74vw; }
}
