/* ==========================================================================
   Emperyal Friseur, Linz — design plan
   Identity: "imperial" (the crown on the shop window) + the window sign's flat
   line drawings (comb, scissors, dryer, spray). Charming brutalism after the
   reference: black/white, oversized serif with wordplay, raw index numbers,
   one warm brown taken from the hair in their own photo, plus the bottle green
   of the hair dryer painted on their sign.
   ========================================================================== */
:root {
  --paper: #f4f2ee;
  --paper-2: #e8e3db;
  --ink: #131211;
  --ink-2: #3b3834;
  --mute: #6d6760;
  --copper: #93542e;        /* hair in their photo */
  --copper-lt: #c98a5e;     /* copper on dark */
  --green: #1d4a3b;         /* hair dryer on the window sign */
  --green-2: #255c4a;
  --line: rgba(19, 18, 17, .16);
  --line-lt: rgba(244, 242, 238, .2);

  --f-display: "Instrument Serif", "Times New Roman", serif;
  --f-sans: "Archivo", "Helvetica Neue", Arial, sans-serif;

  --pad: clamp(18px, 4vw, 64px);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --radius-arch: 999px 999px 0 0;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: clamp(16px, 1.05vw, 18px);
  line-height: 1.6;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
em { font-style: italic; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--copper); color: var(--paper); }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 200; background: var(--ink); color: var(--paper); padding: 10px 16px; }
.skip:focus { left: 8px; }

.label {
  font-family: var(--f-sans); font-stretch: 75%; font-weight: 700;
  text-transform: uppercase; letter-spacing: .16em; font-size: 12px;
  color: var(--copper); margin: 0 0 22px;
}
.label--light { color: var(--copper-lt); }
.eyebrow { font-stretch: 75%; font-weight: 700; text-transform: uppercase; letter-spacing: .16em; font-size: 12px; margin: 0; }

/* ---------- intro ---------- */
.intro { display: none; }
.js .intro {
  display: grid; place-items: center;
  position: fixed; inset: 0; z-index: 100;
  background: var(--ink); color: var(--paper);
  clip-path: inset(0 0 0 0);
  animation: intro-failsafe .01s 3s forwards; /* never block content if JS breaks */
}
@keyframes intro-failsafe { to { visibility: hidden; opacity: 0; } }
.intro__inner { display: grid; justify-items: center; gap: 18px; }
.intro__crown { width: 84px; fill: none; stroke: var(--copper-lt); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.intro__word { display: flex; overflow: hidden; font-family: var(--f-display); font-size: clamp(54px, 9vw, 120px); line-height: 1; padding-bottom: .08em; }
.intro__word span { display: inline-block; }

/* ---------- header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 18px var(--pad);
  transition: background-color .4s, box-shadow .4s;
}
.site-header.is-solid { background: rgba(244, 242, 238, .92); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand__crown { width: 38px; fill: none; stroke: var(--ink); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.brand__name { font-family: var(--f-sans); font-stretch: 70%; font-weight: 800; font-size: 22px; letter-spacing: .02em; text-transform: uppercase; line-height: .95; }
.brand__name small { display: block; font-weight: 500; font-size: 11px; letter-spacing: .18em; color: var(--mute); margin-top: 4px; }
.nav { display: flex; gap: clamp(18px, 3vw, 42px); margin-left: auto; }
.nav a { text-decoration: none; font-size: 15px; position: relative; padding: 4px 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--ink); --fg: var(--paper);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px;
  background: var(--bg); color: var(--fg); border: 1.5px solid var(--bg);
  font-family: var(--f-sans); font-weight: 600; font-size: 15px; letter-spacing: .02em;
  text-decoration: none; position: relative; overflow: hidden; isolation: isolate;
  transition: color .45s var(--ease), border-color .45s var(--ease);
}
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--copper); transform: translateY(101%); transition: transform .55s var(--ease); border-radius: inherit; }
.btn:hover::before { transform: translateY(0); }
.btn:hover { border-color: var(--copper); color: var(--paper); }
.btn span { display: inline-block; }
.btn--small { min-height: 42px; padding: 0 20px; font-size: 14px; }
.btn--copper { --bg: var(--copper); --fg: var(--paper); }
.btn--copper::before { background: var(--ink); }
.btn--copper:hover { border-color: var(--ink); }
.btn--line { --bg: transparent; --fg: var(--ink); border-color: var(--ink); }
.btn--line-light { --bg: transparent; --fg: var(--paper); border-color: rgba(244,242,238,.55); }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; gap: clamp(24px, 4vw, 64px);
  padding: 120px var(--pad) 70px;
}
.hero__eyebrow { color: var(--copper); margin-bottom: clamp(18px, 2.4vw, 34px); }
.hero__title { font-family: var(--f-display); font-size: clamp(58px, 9.4vw, 158px); line-height: .9; letter-spacing: -.02em; margin-bottom: clamp(22px, 2.6vw, 40px); }
.hero__title em { color: var(--copper); }
.hl { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.hl__i { display: block; }
.hl:nth-child(2) { padding-left: .9em; }
.hero__lead { max-width: 32em; font-size: clamp(16px, 1.25vw, 19px); color: var(--ink-2); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.hero__visual { position: relative; justify-self: center; width: min(100%, 470px); aspect-ratio: 4 / 5.15; margin-top: 30px; }
.hero__slab { position: absolute; inset: 7% -9% -5% 9%; background: var(--green); transform: rotate(3deg); }
.hero__outline { position: absolute; inset: -16px -16px 16px 16px; border: 1.5px solid var(--copper); border-radius: var(--radius-arch); }
.mirror { position: absolute; inset: 0; margin: 0; border-radius: var(--radius-arch); overflow: hidden; background: var(--ink); }
.mirror img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; transform-origin: 50% 60%; }
.badge { position: absolute; left: -54px; bottom: 40px; width: 150px; height: 150px; border-radius: 50%; background: var(--paper); display: grid; place-items: center; box-shadow: 0 0 0 1.5px var(--ink) inset; }
.badge > svg:first-child { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 22s linear infinite; }
.badge text { font-family: var(--f-sans); font-stretch: 75%; font-weight: 700; font-size: 15.5px; letter-spacing: .14em; text-transform: uppercase; fill: var(--ink); }
.badge__crown { width: 40px; fill: none; stroke: var(--copper); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
@keyframes spin { to { transform: rotate(360deg); } }

.scrollcue { position: absolute; left: 50%; transform: translateX(-50%); bottom: 28px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-decoration: none; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; font-weight: 600; }
.scrollcue span { writing-mode: vertical-rl; }
.scrollcue i { width: 1.5px; height: 64px; background: var(--ink); transform-origin: top; animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { 0% { transform: scaleY(0); } 45% { transform: scaleY(1); transform-origin: top; } 55% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- statement ---------- */
.statement { position: relative; padding: clamp(110px, 14vw, 220px) var(--pad) clamp(80px, 10vw, 150px); }
.cutline { position: absolute; left: 0; top: 0; width: 100%; height: clamp(120px, 15vw, 220px); overflow: visible; pointer-events: none; }
.cutline path { fill: none; stroke: var(--ink); stroke-width: 1.4; stroke-dasharray: 9 8; vector-effect: non-scaling-stroke; }
.cutline__scissors { position: absolute; left: 0; top: 0; width: 46px; height: 46px; fill: none; stroke: var(--copper); stroke-width: 5; stroke-linecap: round; pointer-events: none; opacity: 0; }
.cutline__scissors .fill { fill: var(--copper); }
.statement__title { font-family: var(--f-display); font-size: clamp(34px, 5vw, 84px); line-height: 1.02; letter-spacing: -.015em; max-width: 17em; }
.statement__title em { color: var(--copper); }
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 56px); margin-top: clamp(56px, 7vw, 110px); border-top: 1.5px solid var(--ink); }
.trio__item { padding-top: 22px; }
.trio__no { font-family: var(--f-display); font-style: italic; font-size: 22px; color: var(--copper); }
.trio__item h3 { font-family: var(--f-sans); font-stretch: 70%; font-weight: 800; font-size: clamp(30px, 3vw, 46px); text-transform: uppercase; letter-spacing: .01em; line-height: 1; margin: 10px 0 14px; }
.trio__item p { color: var(--ink-2); max-width: 26em; }

/* ---------- tools (pinned on desktop) ---------- */
.tools { background: var(--green); color: var(--paper); position: relative; }
.tools__pin { min-height: 100vh; padding: clamp(80px, 9vw, 130px) var(--pad); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 90px); align-items: center; }
.tools__title { font-family: var(--f-display); font-size: clamp(40px, 5.2vw, 88px); line-height: .98; letter-spacing: -.015em; }
.tools__title em { color: var(--copper-lt); }
.tools__progress { list-style: none; display: flex; gap: 8px; padding: 0; margin: 34px 0 0; }
.tools__progress li { width: 34px; height: 3px; background: var(--line-lt); position: relative; overflow: hidden; }
.tools__progress li::after { content: ""; position: absolute; inset: 0; background: var(--copper-lt); transform: scaleX(var(--p, 0)); transform-origin: left; }
.tools__stage { position: relative; }
.tool { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: clamp(20px, 3vw, 48px); align-items: center; padding: 34px 0; border-top: 1px solid var(--line-lt); }
.tool:last-child { border-bottom: 1px solid var(--line-lt); }
.tool__icon { width: 100%; max-height: 120px; fill: none; stroke: var(--paper); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.tool__word { font-family: var(--f-display); font-style: italic; font-size: clamp(44px, 5.4vw, 92px); line-height: 1; margin-bottom: 12px; overflow: hidden; padding-bottom: .08em; }
.tool__word span { display: inline-block; }
.tool__body p { max-width: 30em; color: rgba(244, 242, 238, .82); margin: 0; }

/* pinned mode (set by JS on wide screens) */
.tools.is-pinned .tools__stage { height: min(58vh, 520px); }
.tools.is-pinned .tool { position: absolute; inset: 0; grid-template-columns: 1fr; align-content: center; justify-items: start; border: 0; padding: 0; }
.tools.is-pinned .tool__icon { width: auto; height: clamp(110px, 16vh, 170px); max-height: none; margin-bottom: 10px; }
.tools.is-pinned .tool__word { font-size: clamp(64px, 8.4vw, 150px); }
.tools.is-pinned .tool__body p { font-size: clamp(17px, 1.3vw, 20px); }

/* ---------- marquee ---------- */
.marquee { background: var(--ink); color: var(--paper); padding: clamp(22px, 3vw, 40px) 0; overflow: hidden; }
.marquee__row { display: flex; width: max-content; }
.marquee__track { display: flex; align-items: center; flex-shrink: 0; }
.marquee span { font-family: var(--f-display); font-size: clamp(44px, 6.4vw, 108px); line-height: 1.05; white-space: nowrap; padding: 0 .35em; }
.marquee em { color: var(--copper-lt); }
.marquee i { display: inline-block; width: clamp(30px, 3.4vw, 54px); aspect-ratio: 64 / 48; flex-shrink: 0;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 48' fill='none' stroke='%23c98a5e' stroke-width='3.2' stroke-linejoin='round' stroke-linecap='round'%3E%3Cpath d='M8 38 L5 13 L19 25 L32 6 L45 25 L59 13 L56 38 Z'/%3E%3Cpath d='M9 44 H55'/%3E%3C/svg%3E"); }

/* ---------- story ---------- */
.story { padding: clamp(90px, 12vw, 190px) var(--pad); }
.story__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 110px); align-items: center; }
.story__title { font-family: var(--f-display); font-size: clamp(46px, 6.6vw, 112px); line-height: .95; letter-spacing: -.02em; margin-bottom: 30px; }
.story__title em { color: var(--copper); display: block; }
.story__text p:not(.label) { max-width: 34em; color: var(--ink-2); font-size: clamp(16px, 1.2vw, 19px); }
.frame { margin: 0; position: relative; }
.frame__in { overflow: hidden; position: relative; }
.frame__in img { width: 100%; height: 118%; object-fit: cover; will-change: transform; }
.frame figcaption { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; margin-top: 12px; color: var(--mute); }
.story__still .frame__in { aspect-ratio: 907 / 421; border: 1.5px solid var(--ink); }
.story__still .frame__in img { filter: contrast(1.05); }
.story__still::before { content: ""; position: absolute; inset: 22px -22px -22px 22px; background: var(--paper-2); z-index: -1; }
.story__still { isolation: isolate; }

/* ---------- schaufenster ---------- */
.window { padding: 0 var(--pad) clamp(90px, 12vw, 190px); }
.window__head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(24px, 4vw, 70px); align-items: end; margin-bottom: clamp(36px, 5vw, 70px); }
.window__head .label { grid-column: 1 / -1; margin-bottom: 0; }
.window__title { font-family: var(--f-display); font-size: clamp(42px, 6vw, 104px); line-height: .95; letter-spacing: -.02em; }
.window__title em { color: var(--copper); }
.window__lead { color: var(--ink-2); max-width: 26em; }
.window__grid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(16px, 2.4vw, 36px); align-items: start; }
.window__wide .frame__in { aspect-ratio: 1400 / 1080; }
.window__tall .frame__in { aspect-ratio: 9 / 15; border-radius: var(--radius-arch); }
.window__tall { margin-top: clamp(40px, 8vw, 130px); }

/* ---------- voices ---------- */
.voices { background: var(--paper-2); padding: clamp(90px, 11vw, 170px) var(--pad); display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 5vw, 90px); align-items: start; }
.voices__head { position: sticky; top: 110px; }
.voices__score { font-family: var(--f-display); font-size: clamp(110px, 15vw, 250px); line-height: .8; letter-spacing: -.04em; display: flex; align-items: flex-start; }
.voices__star { font-size: .32em; color: var(--copper); margin-left: .08em; margin-top: .12em; }
.voices__meta { font-stretch: 75%; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; font-size: 13px; margin-top: 18px; }
.quotes { list-style: none; margin: 0; padding: 0; }
.quote { display: grid; grid-template-columns: 64px minmax(0, 1fr); column-gap: 18px; padding: clamp(26px, 3vw, 42px) 0; border-top: 1.5px solid var(--ink); }
.quote:last-child { border-bottom: 1.5px solid var(--ink); }
.quote__no { font-family: var(--f-display); font-style: italic; font-size: 26px; color: var(--copper); line-height: 1.2; grid-row: span 2; }
.quote blockquote { margin: 0; }
.quote blockquote p { font-family: var(--f-display); font-size: clamp(24px, 2.4vw, 40px); line-height: 1.15; margin: 0; }
.quote__src { margin: 14px 0 0; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--mute); }

/* ---------- visit ---------- */
.visit { background: var(--ink); color: var(--paper); padding: clamp(90px, 11vw, 170px) var(--pad) clamp(70px, 8vw, 120px); }
.visit__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 110px); }
.visit__title { font-family: var(--f-display); font-style: italic; font-size: clamp(56px, 8.6vw, 150px); line-height: .9; letter-spacing: -.02em; margin-bottom: 36px; hyphens: manual; }
.visit__addr { font-style: normal; font-size: clamp(18px, 1.5vw, 23px); line-height: 1.45; margin-bottom: 16px; }
.visit__addr strong { font-weight: 700; }
.visit__coords { font-stretch: 75%; font-weight: 600; letter-spacing: .14em; font-size: 13px; color: var(--copper-lt); }
.visit__facts { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.visit__facts li { border: 1px solid var(--line-lt); border-radius: 999px; padding: 6px 14px; font-size: 13px; }
.visit__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 38px; }
.visit__cta .btn--line-light:hover { border-color: var(--copper); }
.visit__h3 { font-family: var(--f-sans); font-stretch: 70%; font-weight: 800; text-transform: uppercase; font-size: clamp(26px, 2.4vw, 36px); letter-spacing: .02em; margin-bottom: 18px; }
.hours { width: 100%; border-collapse: collapse; font-size: clamp(16px, 1.2vw, 19px); }
.hours th, .hours td { padding: 15px 0; border-top: 1px solid var(--line-lt); text-align: left; font-weight: 400; }
.hours td { text-align: right; font-variant-numeric: tabular-nums; }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 1px solid var(--line-lt); }
.hours tr.is-today th, .hours tr.is-today td { color: var(--copper-lt); }
.hours tr.is-today th::after { content: "Heute"; margin-left: 12px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; border: 1px solid currentColor; border-radius: 999px; padding: 2px 8px; vertical-align: 2px; }
.visit__phone { margin-top: 26px; color: rgba(244,242,238,.75); }
.visit__phone a { color: var(--paper); font-weight: 600; }

/* ---------- footer ---------- */
.footer { background: var(--ink); color: var(--paper); padding: 0 var(--pad) 34px; overflow: hidden; }
.footer__mark { font-family: var(--f-display); font-size: clamp(90px, 25.5vw, 430px); line-height: .9; padding-bottom: .16em; letter-spacing: -.04em; color: var(--copper-lt); margin: 0 0 30px; white-space: nowrap; border-top: 1px solid var(--line-lt); padding-top: .12em; }
.footer__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 30px; font-size: 14px; color: rgba(244,242,238,.8); padding-bottom: 18px; border-bottom: 1px solid var(--line-lt); }
.footer__row p { margin: 0; }
.footer__top { text-decoration: none; }
.footer__note { margin: 18px 0 0; font-size: 13px; color: rgba(244,242,238,.62); max-width: 62em; }
.footer__note a { color: var(--paper); }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .nav { display: none; }
  .tools__pin { grid-template-columns: 1fr; }
  .voices { grid-template-columns: 1fr; }
  .voices__head { position: static; }
}
@media (max-width: 800px) {
  .site-header { padding: 14px var(--pad); }
  .brand__name { font-size: 19px; }
  .brand__crown { width: 32px; }
  .hero { grid-template-columns: 1fr; padding-top: 104px; padding-bottom: 80px; gap: 30px; }
  .hero__title { font-size: clamp(54px, 15.5vw, 92px); }
  .hl:nth-child(2) { padding-left: .5em; }
  .hero__visual { width: min(76vw, 360px); margin: 26px auto 0; }
  .hero__slab { inset: 8% -6% -4% 8%; }
  .hero__outline { inset: -10px -10px 10px 10px; }
  .badge { width: 112px; height: 112px; left: -26px; bottom: 26px; }
  .badge text { font-size: 15px; }
  .badge__crown { width: 30px; }
  .scrollcue { display: none; }
  .trio { grid-template-columns: 1fr; gap: 6px; }
  .trio__item { border-bottom: 1px solid var(--line); padding-bottom: 22px; }
  .tool { grid-template-columns: 76px minmax(0, 1fr); gap: 18px; padding: 26px 0; }
  .tool__word { font-size: clamp(36px, 10vw, 54px); }
  .story__grid { grid-template-columns: 1fr; }
  .story__still::before { inset: 12px -10px -12px 10px; }
  .window__head { grid-template-columns: 1fr; }
  .window__grid { grid-template-columns: 1fr; }
  .window__tall { width: 72%; margin: 0 0 0 auto; }
  .quote { grid-template-columns: 1fr; }
  .quote__no { grid-row: auto; margin-bottom: 6px; }
  .visit__grid { grid-template-columns: 1fr; }
  .btn { min-height: 50px; padding: 0 22px; }
  .site-header .btn--small { min-height: 40px; padding: 0 16px; }
}
@media (max-width: 400px) {
  .hero__cta .btn { flex: 1 1 auto; }
  .visit__cta .btn { flex: 1 1 auto; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js .intro { display: none; }
  .badge > svg:first-child { animation: none; }
}
