:root {
  --bg: #fcf2c1;
  --ink: #111;
  --ink-soft: #3a3628;
  --watermark: #f4e7a3;
  --line: #111;
  --serif: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --display: "Bebas Neue", "Oswald", Impact, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-optical-sizing: auto;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

/* Faint logo mark covering the whole viewport; "slice" keeps its proportions
   and crops the overflow, like background-size: cover */
.watermark {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: var(--watermark);
  pointer-events: none;
  z-index: 0;
}

header, main, footer { position: relative; z-index: 1; }

/* "—— Title ——" heading with rules running to the page edge */
.rule-title {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 0 0 3rem;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.6rem, 3.6vw, 2.5rem);
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
}
.rule-title::before,
.rule-title::after {
  content: "";
  flex: 1;
  height: 2px;
  background: var(--line);
}
/* Black label the line runs into */
.rule-title span {
  background: var(--ink);
  color: #fff;
  padding: .3em .6em .2em;
}

/* ---------- Hero ---------- */
/* Not full-height on purpose: the brand list peeks in below so visitors scroll */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(2.5rem, 7vh, 6rem) 16px clamp(2rem, 5vh, 4rem);
  --mark: min(clamp(7rem, 20vw, 10.5rem), 15vh); /* logo mark width, shared with the polaroid overlap */
}

/* Tilted landscape photo with an even white border; the logo mark overlaps its lower edge */
.polaroid {
  position: relative;
  z-index: 0;
  margin: 0 0 calc(var(--mark) * -.62);
  padding: clamp(.5rem, 1.4vw, .85rem);
  width: min(38rem, 88vw, 60vh); /* vh cap keeps the brands title in view on short screens */
  background: #fff;
  box-shadow: 0 1px 2px rgba(17, 17, 17, .12), 10px 14px 30px rgba(17, 17, 17, .2);
  rotate: -4deg;
}
.polaroid img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: 50% 46%;  /* keep the three faces in frame */
}

.logo {
  position: relative;
  z-index: 1; /* sits on top of the polaroid */
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1rem, 2.5vh, 2rem);
  font-weight: 400;
}
.logo-mark {
  width: var(--mark);
  height: auto;
  fill: var(--ink);
}
.logo-word {
  font-family: var(--display);
  font-weight: 800;
  font-size: min(clamp(2.4rem, 6.5vw, 4rem), 7vh);
  line-height: 1;
  letter-spacing: 0;
}
.logo-word em { font-style: normal; }

.tagline {
  max-width: 42ch;
  margin: clamp(1rem, 2.5vh, 1.75rem) auto 0;
  line-height: 1.5;
  font-style: italic;
  font-size: min(clamp(1.2rem, 2.5vw, 1.55rem), 2.9vh);
  color: var(--ink);
}

.socials {
  display: flex;
  gap: 1rem;
  margin-top: clamp(1.25rem, 3vh, 2rem);
}
.socials a {
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  background: var(--ink);
  color: #fff;
  border-radius: 50%;
  transition: transform .25s, box-shadow .25s;
}
.socials a:hover,
.socials a:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 3px 0 rgba(17, 17, 17, .25);
}
.socials svg {
  width: 1.35rem;
  height: 1.35rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.socials svg .fill { fill: currentColor; stroke: none; }

/* ---------- Brands ---------- */
.brands { padding: clamp(.5rem, 2vh, 2rem) 0 0; }

.brand-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 5vw, 3.5rem);
}
/* Three columns: stretchy line | centred logo column | stretchy line.
   Left rows hug the column's left edge, right rows its right edge. */
.brand-list li {
  display: grid;
  grid-template-columns: minmax(1rem, 1fr) minmax(0, 36rem) minmax(1rem, 1fr);
  align-items: center;
  column-gap: 1.5rem;
}
/* Each logo sets its own width via --w (in rem) so the wordmarks balance;
   below ~640px they all shrink by the same ratio */
.brand-list img {
  display: block;
  width: min(calc(var(--w, 18) * 1rem), calc(var(--w, 18) * 2.5vw));
  max-width: 100%;
  height: auto;
  min-width: 0;
}
.brand-list li::before,
.brand-list li::after {
  content: "";
  height: 2px;
  background: var(--line);
}
.brand-list .left::before  { grid-column: 1; }
.brand-list .left::after   { display: none; }
.brand-list .left img      { grid-column: 2; justify-self: start; }
.brand-list .right::before { display: none; }
.brand-list .right img     { grid-column: 2; justify-self: end; }
.brand-list .right::after  { grid-column: 3; }

.full-rule {
  border: 0;
  height: 2px;
  background: var(--line);
  margin: clamp(3rem, 7vw, 5rem) 0 0;
}

/* ---------- Visit ---------- */
.visit { padding: clamp(4rem, 9vw, 7rem) 0 3rem; }

.visit-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr); /* always stacked: info, then map */
  gap: clamp(2rem, 5vw, 4rem);
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 clamp(16px, 5vw, 3rem);
}

.info h3 {
  margin: 2.25rem 0 .75rem;
  font-family: var(--display);
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
}
.info h3:first-of-type { margin-top: 0; }

.hours {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.05rem;
}
.hours td { padding: .5rem 0; border-bottom: 1px solid rgba(17,17,17,.18); }
.hours td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.hours tr.today td { font-weight: 700; }
.hours .extra { display: block; font-size: .8em; font-style: italic; font-weight: 400; }

.note { margin: .75rem 0 0; font-size: .85rem; font-style: italic; color: var(--ink-soft); }

address { font-style: normal; font-size: 1.15rem; line-height: 1.5; }
address a, .contact-list a { text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .2s; }
address a:hover, .contact-list a:hover { border-color: currentColor; }

.contact-list { list-style: none; margin: 0; padding: 0; font-size: 1.1rem; line-height: 1.8; word-break: break-word; }

.map {
  min-height: 420px;
  border: 2px solid var(--ink);
  box-shadow: 10px 10px 0 var(--ink);
  background: var(--watermark);
}
.map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0;
  filter: sepia(.35) saturate(.85);
}

/* ---------- Footer ---------- */
footer p {
  text-align: center;
  font-size: .85rem;
  letter-spacing: .1em;
  padding: 1.75rem 16px 2.5rem;
  margin: 0;
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Intro after the preloader ----------
   preloader.js sets html.strt-intro while the board runs and removes it as the
   shutter lifts, so the content settles in from a slight zoom underneath it. */
.watermark,
.hero > *,
main {
  transition: opacity .9s ease, transform 1.2s cubic-bezier(.2, .7, .2, 1);
}
.hero > :nth-child(2) { transition-delay: .12s; }
.hero > :nth-child(3) { transition-delay: .24s; }
.hero > :nth-child(4) { transition-delay: .36s; }
main                  { transition-delay: .48s; }

html.strt-intro .watermark { opacity: 0; transform: scale(1.08); }
html.strt-intro .hero > *  { opacity: 0; transform: scale(.94); }
html.strt-intro main       { opacity: 0; transform: scale(.98); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .watermark, .hero > *, main { transition: none; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .map { box-shadow: 6px 6px 0 var(--ink); }
}
@media (max-width: 560px) {
  .socials { gap: .7rem; }
}

/* ---------- Preloader (split-flap board, rolls up like a shop shutter) ---------- */
html.strt-loading, html.strt-loading body { overflow: hidden; }

#strt-preloader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Shutter slats in the page's yellow tones */
  background: repeating-linear-gradient(180deg,
    #fdf6d4 0px, var(--bg) 6px, var(--bg) 22px, var(--watermark) 26px, #e9d987 28px);
  will-change: transform;
}
/* Bottom rail of the shutter */
#strt-preloader::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: calc(34px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, #2a2a2a, var(--ink));
  border-top: 2px solid #000;
}
#strt-preloader.strt-up {
  transition: transform .75s cubic-bezier(.7, 0, .2, 1);
  transform: translateY(-101%);
}

.strt-board {
  background: var(--ink);
  padding: clamp(10px, 1.6vw, 18px);
  border-radius: 4px;
  box-shadow: 0 2px 0 #3a3a3a inset, 10px 10px 0 rgba(17, 17, 17, .18);
}
.strt-row { display: flex; gap: clamp(4px, .8vw, 10px); }

.strt-tile {
  --w: clamp(62px, 17vw, 170px);
  width: var(--w);
  height: calc(var(--w) * 1.32);
  position: relative;
  perspective: 600px;
  font-family: var(--display);
  font-weight: 400;
  color: var(--ink);
  font-size: calc(var(--w) * 1.3);
  line-height: 1;
}
/* Hinge line across the middle */
.strt-tile::after {
  content: "";
  position: absolute;
  left: -3px;
  right: -3px;
  top: calc(50% - 1px);
  height: 2px;
  background: var(--ink);
  z-index: 3;
}
.strt-half {
  position: absolute;
  left: 0;
  right: 0;
  height: 50%;
  overflow: hidden;
  background: #fff;
  backface-visibility: hidden;
}
.strt-half.t {
  top: 0;
  border-radius: 3px 3px 0 0;
  border-bottom: 1px solid var(--ink);
  background: #fff;
}
.strt-half.b {
  bottom: 0;
  border-radius: 0 0 3px 3px;
  border-top: 1px solid var(--ink);
}
.strt-half span {
  position: absolute;
  left: 0;
  right: 0;
  height: 200%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: .06em; /* Bebas sits slightly high; optically centre it */
}
.strt-half.t span { top: 0; }
.strt-half.b span { bottom: 0; }
.strt-flap-t { transform-origin: 50% 100%; z-index: 2; }
.strt-flap-b { transform-origin: 50% 0%; z-index: 2; transform: rotateX(90deg); }

@media (prefers-reduced-motion: reduce) {
  #strt-preloader.strt-up { transition: opacity .3s; transform: none; opacity: 0; }
}
