/* =================================================================
   ELEMENT Barbershop — HERO EXPERIMENT
   "Bauhaus Ausstellung poster": hard rules, stacked display type,
   framed geometric stage, marquee band. Mobile-first.
   ================================================================= */

/* ---------- Design tokens ---------- */
:root {
  --cream:  #F1EFE9;
  --ink:    #111111;
  --blue:   #1B4FD8;
  --red:    #E63329;
  --yellow: #F5C200;
  --white:  #FFFFFF;

  --font: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(1.1rem, 5vw, 1.6rem);
  --rule: 2.5px solid var(--ink);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* WebView font-boosting guard (see v4 notes) */
.hero__title, .hero__line, .band__group span, .cta__text {
  max-height: 1000000px;
}

body {
  font-family: var(--font);
  color: var(--ink);
  background: #e7e4dc;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 50%;
  top: -100%;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--white);
  padding: 0.6rem 1.1rem;
  z-index: 100;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* ---------- Phone frame ---------- */
.phone {
  width: 100%;
  max-width: 30rem;
  min-height: 100vh;
  min-height: 100svh;
  margin-inline: auto;
  background: var(--cream);
  overflow: clip;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* =================================================================
   HEADER — ruled band, logo + boxed burger
   ================================================================= */
.header {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  border-bottom: var(--rule);
}

.logo {
  display: flex;
  align-items: center;
  padding: clamp(0.9rem, 4vw, 1.2rem) var(--gutter);
}

.logo__mark { width: clamp(9.5rem, 46vw, 12rem); height: auto; }

/* burger boxed off by a left rule — poster grid cell */
.burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: clamp(3.6rem, 16vw, 4.4rem);
  border-left: var(--rule);
}
.burger span {
  display: block;
  width: 1.5rem;
  height: 2.5px;
  background: var(--ink);
}

/* =================================================================
   HERO
   ================================================================= */
main {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.hero {
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* ---------- plate row: index no. / place / shapes ---------- */
.hero__plate {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.55rem var(--gutter);
  border-bottom: var(--rule);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero__plate-no { color: var(--red); }

.hero__plate-shapes {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.ps { display: block; }
.ps--circle { width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--blue); }
.ps--square { width: 0.55rem; height: 0.55rem; background: var(--yellow); }
.ps--tri {
  width: 0.62rem; height: 0.58rem;
  background: var(--red);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

/* ---------- headline: stacked poster caps ---------- */
.hero__title {
  padding: clamp(0.95rem, 4.2vw, 1.4rem) var(--gutter) clamp(0.85rem, 3.8vw, 1.2rem);
  font-weight: 900;
  font-size: clamp(2.35rem, 11.4vw, 3.3rem);
  line-height: 0.98;
  letter-spacing: -0.025em;
  text-transform: uppercase;
}

.hero__line { display: block; overflow: hidden; }
.hero__line .reveal { display: block; }

.hero__title em { font-style: normal; }

.t-red { color: var(--red); }

/* outlined word — ink stroke, paper fill */
.t-outline {
  color: var(--cream);
  -webkit-text-stroke: 2px var(--ink);
  paint-order: stroke fill;
}

/* full stop as a yellow square — geometry instead of punctuation */
.t-dot {
  display: inline-block;
  width: 0.17em;
  height: 0.17em;
  margin-left: 0.08em;
  background: var(--yellow);
  outline: 2.5px solid var(--ink);
  outline-offset: -1px;
}

/* ---------- stage: ruled frame with geometry + cut-out ---------- */
.stage {
  position: relative;
  margin-inline: var(--gutter);
  border: var(--rule);
  background: var(--white);
  aspect-ratio: 1 / 1.02;   /* floor height; grows to fill tall screens */
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

/* yellow sun circle */
.stage__circle {
  position: absolute;
  top: 7%;
  left: 50%;
  width: 74%;
  aspect-ratio: 1;
  transform: translateX(-52%);
  border-radius: 50%;
  background: var(--yellow);
}

/* stripe block, top-left — echoes the L / T letterforms */
.stage__stripes {
  position: absolute;
  top: 0;
  left: 0;
  width: 34%;
  height: 15%;
  background: repeating-linear-gradient(
    0deg,
    var(--ink) 0 2.5px,
    transparent 2.5px 9px
  );
}

/* blue square, mid-left */
.stage__square {
  position: absolute;
  left: 6%;
  bottom: 30%;
  width: 13%;
  aspect-ratio: 1;
  background: var(--blue);
}

/* red corner triangle, bottom-right */
.stage__tri {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 34%;
  aspect-ratio: 1;
  background: var(--red);
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
}

.stage__cutout {
  position: absolute;
  left: 50%;
  bottom: 0;
  height: 94%;
  width: auto;
  transform: translateX(-50%);
  z-index: 2;
  /* B&W figure against primary geometry — keeps the palette to the triad */
  filter: grayscale(1) contrast(1.06)
          drop-shadow(0 10px 24px rgba(17, 17, 17, 0.18));
}

/* vertical address label, right rule */
.stage__label {
  position: absolute;
  top: 4%;
  right: 3.5%;
  z-index: 3;
  writing-mode: vertical-rl;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

/* rating chip pinned inside the frame */
.stage__rate {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.8rem;
  background: var(--white);
  border-top: var(--rule);
  border-right: var(--rule);
  font-size: 0.78rem;
  font-weight: 800;
}
.stage__rate-star {
  width: 0.95rem;
  height: 0.95rem;
  fill: var(--yellow);
  stroke: var(--ink);
  stroke-width: 1.4;
}
.stage__rate-count {
  font-weight: 600;
  font-size: 0.72rem;
  color: #4a4a48;
}
.stage__rate-google { width: 0.95rem; height: 0.95rem; }

/* ---------- actions: book + instagram ---------- */
.hero__actions {
  display: flex;
  gap: 0.7rem;
  padding: clamp(0.85rem, 3.8vw, 1.2rem) var(--gutter);
}

/* split cell: black label + red arrow block, divided like the poster grid */
.cta {
  flex: 1;
  display: flex;
  align-items: stretch;
  background: var(--ink);
  color: var(--cream);
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cta__text {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 1rem 1.25rem;
}

.cta__cell {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  background: var(--red);
  transition: background-color 0.2s;
}
.cta:hover .cta__cell, .cta:active .cta__cell { background: var(--blue); }

.cta__arrow {
  width: 1.35rem;
  height: 1.35rem;
  stroke: currentColor;
  stroke-width: 2.2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.2s;
}
.cta:hover .cta__arrow { transform: translateX(4px); }

.ig {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  border: var(--rule);
  transition: background-color 0.2s, color 0.2s;
}
.ig svg { width: 1.4rem; height: 1.4rem; }
.ig:hover { background: var(--ink); color: var(--cream); }

/* ---------- utility row: hours | address, ruled cells ---------- */
.util {
  display: flex;
  border-top: var(--rule);
}

.util__cell {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.65rem var(--gutter);
  font-size: 0.82rem;
  line-height: 1.35;
}
.util__cell + .util__cell { border-left: var(--rule); }

.util__cell strong { font-weight: 800; }
.util__cell span {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #4a4a48;
}

.util__ne { color: var(--red); }
.util__cell--link:hover strong { color: var(--blue); }

/* ---------- marquee band: poster footer ---------- */
.band {
  margin-top: auto;
  background: var(--ink);
  color: var(--cream);
  border-top: var(--rule);
  overflow: hidden;
  padding-block: 0.7rem;
}

.band__track {
  display: flex;
  width: max-content;
  animation: band-scroll 22s linear infinite;
}

.band__group {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding-right: 1.1rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  white-space: nowrap;
}

.bs { display: block; flex: none; }
.bs--circle { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--red); }
.bs--square { width: 0.5rem; height: 0.5rem; background: var(--blue); }
.bs--tri {
  width: 0.56rem; height: 0.52rem;
  background: var(--yellow);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

@keyframes band-scroll {
  to { transform: translateX(calc(-100% / 3)); }
}

/* =================================================================
   SERVICES — ruled price index
   ================================================================= */
.hero__plate--section {
  border-top: var(--rule);
}

.sec-title {
  padding: clamp(1.2rem, 5vw, 1.7rem) var(--gutter) clamp(1rem, 4.2vw, 1.4rem);
  font-weight: 900;
  font-size: clamp(1.75rem, 8.2vw, 2.4rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.t-dot--blue { background: var(--blue); }

.price {
  list-style: none;
  padding: 0;
  border-top: var(--rule);
}

.price__row + .price__row { border-top: var(--rule); }

.price__link {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 0.9rem;
  padding: 0.95rem var(--gutter);
  transition: background-color 0.15s;
}
.price__link:hover, .price__link:active { background: var(--white); }

.price__marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.price__body {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
}

.price__name {
  font-size: clamp(1.02rem, 4.6vw, 1.15rem);
  font-weight: 800;
  line-height: 1.15;
}

.price__meta {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #4a4a48;
}

.price__tag-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.1rem;
}

.price__eur {
  font-size: clamp(1.05rem, 4.8vw, 1.2rem);
  font-weight: 900;
  white-space: nowrap;
}
.price__eur small {
  font-size: 0.62em;
  font-weight: 600;
}

.price__bgn {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #4a4a48;
  white-space: nowrap;
}

.price__ne {
  font-size: 1rem;
  font-weight: 800;
  color: var(--red);
}

/* signature row — inverted plate */
.price__row--signature { background: var(--ink); color: var(--cream); }
.price__row--signature .price__link:hover,
.price__row--signature .price__link:active { background: #232323; }
.price__row--signature .price__meta,
.price__row--signature .price__bgn { color: #b9b6ae; }
.price__row--signature .price__ne { color: var(--yellow); }

.price__sig {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--yellow);
}

/* =================================================================
   GALLERY — Mondrian mosaic: ink joints, photo + primary cells
   ================================================================= */
.t-dot--red { background: var(--red); }

.mosaic {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(4, 1fr);
  gap: 2.5px;                 /* joints read as rules */
  background: var(--ink);     /* shows through the gaps */
  border-top: var(--rule);
  aspect-ratio: 3 / 3.6;
}

.mosaic__tile {
  position: relative;
  overflow: hidden;
  background: var(--white);
}

.mosaic__zoom {
  position: absolute;
  inset: 0;
  padding: 0;
  cursor: zoom-in;
}
.mosaic__zoom:focus-visible { outline-offset: -3px; }

.mosaic__tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mosaic__tile--lead   { grid-column: 1 / 3; grid-row: 1 / 3; }
.mosaic__tile--studio { grid-column: 3 / 4; grid-row: 1 / 3; }
.mosaic__cell--red    { grid-column: 1 / 2; grid-row: 3 / 4; background: var(--red); }
.mosaic__tile--work   { grid-column: 2 / 4; grid-row: 3 / 5; }
.mosaic__tile--fade   { grid-column: 1 / 2; grid-row: 4 / 5; }

/* see-more row — ruled, like a price row */
.more {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.95rem var(--gutter);
  border-top: var(--rule);
  transition: background-color 0.15s;
}
.more:hover, .more:active { background: var(--white); }

.more__text {
  font-size: 0.95rem;
  font-weight: 800;
}

.more__handle {
  margin-left: auto;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #4a4a48;
}

.more__ne {
  font-size: 1rem;
  font-weight: 800;
  color: var(--red);
}

/* =================================================================
   LIGHTBOX — fullscreen viewer, poster chrome
   ================================================================= */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  background: rgba(17, 17, 17, 0.95);
  color: var(--cream);
}
.lightbox[hidden] { display: none; }

.lightbox__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem var(--gutter);
}

.lightbox__count {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.24em;
}

.lightbox__close,
.lightbox__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border: 2px solid var(--cream);
  color: var(--cream);
  transition: background-color 0.15s, color 0.15s;
}
.lightbox__close:hover, .lightbox__close:active,
.lightbox__btn:hover, .lightbox__btn:active {
  background: var(--cream);
  color: var(--ink);
}

.lightbox__close svg,
.lightbox__btn svg {
  width: 1.3rem;
  height: 1.3rem;
  stroke: currentColor;
  stroke-width: 2.2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;   /* taps always target the button, not the icon */
}

.lightbox__stage {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--gutter);
}

.lightbox__img {
  max-width: 100%;
  max-height: 100%;
  border: 2.5px solid var(--cream);
  background: var(--ink);
}

.lightbox__nav {
  display: flex;
  justify-content: space-between;
  padding: 0.8rem var(--gutter) calc(0.8rem + env(safe-area-inset-bottom, 0px));
}

/* focus rings must stay visible on the dark chrome */
.lightbox :focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}

/* =================================================================
   SCROLL REVEALS — added by JS only when motion is allowed
   ================================================================= */
.sr {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.sr-in {
  opacity: 1;
  transform: none;
}

/* ---------- entrance reveals ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    animation: rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
  .reveal--d1 { animation-delay: 0.09s; }
  .reveal--d2 { animation-delay: 0.18s; }

  @keyframes rise {
    from { transform: translateY(110%); }
    to   { transform: translateY(0); }
  }

  .stage__cutout {
    animation: fade-up 0.8s 0.25s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
  @keyframes fade-up {
    from { opacity: 0; transform: translateX(-50%) translateY(3%); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
  }
}

@media (prefers-reduced-motion: reduce) {
  .band__track { animation: none; }
}
