/* Kömür: kebab shop website concept by Mint Labs. Fictional brand. */
:root {
  --bd: #ebdece;        /* the film's seamless backdrop: keep the page the same colour */
  --paper: #f3ebdf;
  --ink: #6b2a1f;
  --body: #4b3a31;
  --rust: #a6442e;
  --rust-deep: #86331f;
  --olive: #5b6642;
  --olive-deep: #4a5435;
  --olive-ink: #f1e8d8;
  --tan: #f3dfc6;
  --line: rgba(107, 42, 31, .2);
  --display: "Libre Caslon Condensed", "Iowan Old Style", "Palatino Linotype", serif;
  --sans: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --side: max(20px, 4.5vw);
  --top-h: 96px;
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bd); color: var(--ink); -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 16px/1.55 var(--sans); background: var(--bd); }
img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
section[id], .mxs-step[id] { scroll-margin-top: var(--top-h); }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2 { margin: 0; font-family: var(--display); font-weight: 700; line-height: .92; letter-spacing: .005em; text-transform: uppercase; text-wrap: balance; }
:focus-visible { outline: 2px solid var(--rust); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 14px; border-radius: 999px; background: var(--ink); color: var(--bd); text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- header: clear over the film, solid once the film has gone by ---------- */
.top { position: fixed; inset: 0 0 auto; z-index: 20; }
.concept-bar { margin: 0; padding: 6px var(--side); background: var(--ink); color: var(--bd); font-size: 11.5px; letter-spacing: .02em; text-align: center; }
.concept-bar a { text-underline-offset: 2px; }
.bar { display: flex; align-items: center; gap: 24px; padding: 12px var(--side); transition: background .3s, box-shadow .3s; }
html:not(.film) .bar, body:has(.story.mxs-static) .bar, .top.solid .bar { background: rgba(235, 222, 206, .9); box-shadow: 0 1px 0 var(--line); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.logo { margin-right: auto; font-family: var(--display); font-weight: 700; font-size: 30px; line-height: .95; text-decoration: none; }
.logo small { display: block; margin-top: 3px; font-family: var(--sans); font-size: 9.5px; font-weight: 650; letter-spacing: .32em; text-transform: uppercase; color: var(--rust); }
.nav { display: flex; align-items: center; gap: 28px; font-size: 14px; font-weight: 550; }
.nav a { text-decoration: none; }
.nav a:not(.pill):hover { text-decoration: underline; text-underline-offset: 4px; }
.pill { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--rust); color: #fbf3e6;
  font-size: 14px; font-weight: 650; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background .2s, transform .2s; }
.pill:hover { background: var(--rust-deep); }
.pill:active { transform: scale(.98); }

/* ---------- shared type ---------- */
.eyebrow { margin: 0 0 14px; color: var(--rust); font-size: 12px; font-weight: 650; letter-spacing: .24em; text-transform: uppercase; }
.eyebrow span { display: inline-block; margin-right: 8px; padding: 2px 8px; border: 1px solid currentColor; border-radius: 999px; letter-spacing: .06em; }
.lede { margin: 0; max-width: 40ch; color: var(--body); font-size: clamp(15px, 1.15vw, 17px); line-height: 1.5; }
.text-link { display: inline-flex; align-items: center; gap: 8px; padding-bottom: 2px; border-bottom: 1px solid var(--line); font-size: 14px; font-weight: 600; text-decoration: none; }
.text-link:hover { border-color: currentColor; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.fine { margin: 0; font-size: 12.5px; color: var(--body); opacity: .8; }
h1 { font-size: clamp(46px, 6.4vw, 104px); }
h2 { font-size: clamp(38px, 4.6vw, 76px); }

/* ---------- story: still layout first (no JS, reduced motion, data saver, missing frames) ---------- */
.story { padding: calc(var(--top-h) + 32px) var(--side) 48px; }
.story .poster, .story .mxs-canvas, .story .fbox, .mxs-watch, .mxs-hint, .scroll-cue, .mxs-loading, .rail { display: none; }
.mxs-step { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 5vw; align-items: center; padding: 24px 0; }
.mxs-step .still { grid-row: 1 / span 4; grid-column: 2; width: 100%; max-width: 560px; justify-self: center;
  -webkit-mask: radial-gradient(closest-side, #000 80%, transparent); mask: radial-gradient(closest-side, #000 80%, transparent); }
.mxs-step > :not(.still) { grid-column: 1; }
.step-fill .still { grid-column: 1; }
.step-fill > :not(.still) { grid-column: 2; }
.mxs-step .head + .under { margin-top: 18px; }
.mxs-step .actions { margin-top: 26px; }
.step-hero h1 { font-size: clamp(44px, 4.8vw, 84px); }
.step-hero h1 span { display: block; }
/* missing frames: the engine may already have faded later captions inline, so force every caption back */
.story.mxs-static .mxs-step { opacity: 1 !important; visibility: visible !important; }

/* the dürüm card: an olive panel with the copy and three notes */
.card { display: grid; gap: 28px; padding: clamp(26px, 3vw, 44px); border-radius: 26px; background: var(--olive); color: var(--olive-ink); }
.card .eyebrow { color: var(--tan); }
.card h2 { color: var(--olive-ink); font-size: clamp(34px, 3.6vw, 58px); }
.card .lede { margin-top: 14px; color: rgba(241, 232, 216, .88); }
.card .pill { background: var(--bd); color: var(--ink); }
.card .pill:hover { background: #fff7ec; }
.notes { list-style: none; display: grid; gap: 12px; margin: 0; padding: 0; }
.notes li { padding-top: 10px; border-top: 1px solid rgba(241, 232, 216, .28); font-size: 14px; line-height: 1.35; }
.notes b { display: block; margin-bottom: 3px; color: var(--tan); font-size: 11px; font-weight: 650; letter-spacing: .2em; text-transform: uppercase; }

/* ---------- story: film layout (motion wanted, frames found) ---------- */
.film .story:not(.mxs-static) { padding: 0; }
.film .story:not(.mxs-static) .mxs-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: var(--bd); container-type: size; }
.film .story:not(.mxs-static) .poster,
.film .story:not(.mxs-static) .mxs-canvas { display: block; position: absolute; inset: 0; width: 100%; height: 100%; }
.film .story:not(.mxs-static) .poster img { width: 100%; height: 100%; object-fit: cover; }
.film .story:not(.mxs-static) .mxs-canvas { opacity: 0; transition: opacity .35s; }
.film .story.mxs-ready .mxs-canvas { opacity: 1; }
.film .story:not(.mxs-static) .mxs-step { display: block; position: absolute; inset: 0; z-index: 2; padding: 0; opacity: 0; visibility: hidden; will-change: opacity; pointer-events: none; }
.film .story:not(.mxs-static) .mxs-step[data-step="0"] { opacity: 1; visibility: visible; }
.film .story:not(.mxs-static) .mxs-step .still { display: none; }
.film .story:not(.mxs-static) .mxs-step a, .film .story:not(.mxs-static) .mxs-step button { pointer-events: auto; }

/* wide screens: the square film is centred and the bread's top edge sits at 53% of the screen's height, so the
   copy stacks centred in the empty backdrop above it */
.film .story:not(.mxs-static) .step-hero,
.film .story:not(.mxs-static) .step-fill { display: flex; flex-direction: column; align-items: center; padding: calc(var(--top-h) + 3vh) var(--side) 0; text-align: center; }
.film .story:not(.mxs-static) .step-hero h1 { font-size: min(5.4vw, 7.6vh, 92px); }
.film .story:not(.mxs-static) .step-fill h2 { font-size: min(4.4vw, 6.6vh, 72px); }
.film .story:not(.mxs-static) .mxs-step .head + .under { margin-top: 12px; }
.film .story:not(.mxs-static) .step-hero .lede,
.film .story:not(.mxs-static) .step-fill .lede { max-width: 48em; margin: 0 auto; }
.film .story:not(.mxs-static) .step-hero .actions { justify-content: center; margin-top: 20px; }

/* the dürüm: an olive card behind the wrap, the wrap cut out of the last frame in front of it. Both appear only in
   the last few frames of the fold, where the footage has settled onto the frame the cutout was made from. The
   wrap spans 40-60% of the frame's width, and the frame covers the stage, so the card leaves 24% of the frame's
   width (max(100cqw, 177.78cqh)) clear in the middle. */
.fbox { position: absolute; left: 50%; top: 50%; width: max(100cqw, 177.778cqh); aspect-ratio: 16 / 9; transform: translate(-50%, -50%); pointer-events: none; }
.fbox .cut, .fbox .cut img { position: absolute; inset: 0; width: 100%; height: 100%; }
.film .story:not(.mxs-static) .fbox { display: block; z-index: 3; opacity: clamp(0, calc((var(--mxs-pos, 2) - 1.95) * 40), 1); }
.film .story:not(.mxs-static) .step-wrap .card { position: absolute; z-index: 2; left: var(--side); right: var(--side); top: 30vh; bottom: 11vh; margin: 0 auto; max-width: 1360px;
  grid-template-columns: minmax(0, 1fr) calc(.24 * max(100cqw, 177.78cqh)) minmax(0, 1fr); align-items: center; gap: 0; padding: 0 clamp(26px, 3.2vw, 52px);
  opacity: clamp(0, calc((var(--mxs-pos, 2) - 1.95) * 20), 1); }
.film .story:not(.mxs-static) .step-wrap .notes { grid-column: 3; justify-self: end; width: min(100%, 260px); }
.film .story:not(.mxs-static) .step-wrap .actions { margin-top: 22px; }

.film .story:not(.mxs-static) .mxs-watch { display: inline-flex; position: absolute; z-index: 4; right: var(--side); bottom: 28px; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px;
  border: 1px solid var(--line); border-radius: 999px; background: rgba(243, 235, 223, .78); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font-size: 13px; font-weight: 600; cursor: pointer; }
.mxs-watch span { font-size: 9px; }
.film .story.mxs-playing .mxs-watch { opacity: 0; pointer-events: none; }
.film .story:not(.mxs-static) .mxs-hint { display: block; position: absolute; z-index: 4; right: var(--side); bottom: 40px; margin: 0; font-size: 12px; color: var(--body); opacity: 0; transition: opacity .3s; pointer-events: none; }
.film .story.mxs-playing .mxs-hint { opacity: 1; }
.film .story:not(.mxs-static) .scroll-cue { display: flex; position: absolute; z-index: 2; left: 50%; bottom: 22px; flex-direction: column; align-items: center; gap: 8px; transform: translateX(-50%);
  font-size: 11px; font-weight: 650; letter-spacing: .22em; text-transform: uppercase; color: var(--body); opacity: calc(1 - var(--mxs-pos, 0) * 4); }
.scroll-cue span { position: relative; width: 1px; height: 28px; background: var(--line); overflow: hidden; }
.scroll-cue span::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--ink); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { to { top: 100%; } }
.film .story:not(.mxs-static) .mxs-loading { display: block; position: absolute; z-index: 4; right: var(--side); top: calc(var(--top-h) + 14px); font-size: 11px; color: var(--body); }

/* stage dots: the active one stretches as the footage reaches its stage */
.film .story:not(.mxs-static) .rail { display: flex; position: absolute; z-index: 4; left: var(--side); bottom: 34px; align-items: center; gap: 8px; }
.rail i { display: block; height: 6px; border-radius: 999px; background: var(--ink);
  --on: clamp(0, 1 - max(var(--mxs-pos, 0) - var(--k), var(--k) - var(--mxs-pos, 0)) * 2, 1);
  width: calc(6px + 22px * var(--on)); opacity: calc(.22 + .78 * var(--on)); }

/* short wide screens: drop the hero's eyebrow so the headline clears the bread */
@media (min-aspect-ratio: 9/10) and (max-height: 700px) {
  .film .story:not(.mxs-static) .step-hero .eyebrow { display: none; }
}

/* tall screens (the 9:16 frames): the square sits at the top with the bread at 39-59% of the frame's height and
   the wrap at 18-58%. The frame covers the stage, so its height is max(100cqh, 177.78cqw) around the stage's
   middle. Headings go above the bread, copy below it, and the dürüm card starts just above the wrap's foot. */
@media (max-aspect-ratio: 9/10) {
  .film .story:not(.mxs-static) .step-hero,
  .film .story:not(.mxs-static) .step-fill { padding-top: calc(var(--top-h) + 2.2vh); }
  .film .story:not(.mxs-static) .step-hero h1 { font-size: min(10.4vw, 5.2vh); }
  .film .story:not(.mxs-static) .step-fill h2 { font-size: min(9.6vw, 4.8vh); }
  .film .story:not(.mxs-static) .mxs-step .under { position: absolute; left: var(--side); right: var(--side); top: calc(50cqh + .115 * max(100cqh, 177.78cqw)); margin: 0; }
  .film .story:not(.mxs-static) .step-hero .lede,
  .film .story:not(.mxs-static) .step-fill .lede { max-width: 34ch; }
  .film .story:not(.mxs-static) .step-wrap .card { display: block; top: calc(50cqh + .03 * max(100cqh, 177.78cqw)); bottom: 84px; left: var(--side); right: var(--side); padding: max(28px, 6vh) 24px 24px; }
  .film .story:not(.mxs-static) .step-wrap .card h2 { font-size: min(9vw, 4.6vh); }
  .film .story:not(.mxs-static) .step-wrap .notes { display: none; }
  .fbox { width: max(100cqw, 56.25cqh); aspect-ratio: 9 / 16; }
  .film .story:not(.mxs-static) .rail { bottom: 30px; }
  .film .story:not(.mxs-static) .mxs-watch { bottom: 18px; min-height: 40px; }
  .film .story:not(.mxs-static) .mxs-hint { bottom: 72px; }
  .film .story:not(.mxs-static) .scroll-cue { display: none; }
}
@media (max-aspect-ratio: 9/10) and (max-height: 700px) {
  .film .story:not(.mxs-static) .mxs-step .lede { font-size: 14px; line-height: 1.4; }
  .film .story:not(.mxs-static) .step-wrap .card { padding-top: 22px; }
  .film .story:not(.mxs-static) .step-wrap .card .lede { display: none; }
}

/* ---------- the grill ---------- */
.grill { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 56px 6vw; align-items: center; padding: 140px var(--side) 120px; background: var(--paper); border-top: 1px solid var(--line); }
.grill-copy { display: grid; gap: 22px; }
.grill-copy h2 { font-size: clamp(46px, 6vw, 100px); }
.grill-bread { margin: 0; grid-row: span 2; }
.grill-bread img { width: 100%; border-radius: 26px; }
.steps { list-style: none; counter-reset: s; display: grid; gap: 0; margin: 0; padding: 0; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 48px 1fr; gap: 2px 14px; padding: 18px 0; border-top: 1px solid var(--line); color: var(--body); font-size: 15px; }
.steps li::before { content: "0" counter(s); grid-row: span 2; font-family: var(--display); font-size: 28px; font-weight: 700; line-height: 1; color: var(--rust); }
.steps b { color: var(--ink); font-size: 17px; font-weight: 650; }
.grill .fine { grid-column: 1 / -1; }

/* ---------- hours and location ---------- */
.visit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px 6vw; align-items: end; padding: 140px var(--side) 120px; background: var(--olive); color: var(--olive-ink); }
.visit-copy { display: grid; gap: 22px; }
.visit .eyebrow { color: var(--tan); }
.visit h2 { color: var(--olive-ink); font-size: clamp(46px, 6vw, 100px); }
.visit .lede { color: rgba(241, 232, 216, .86); }
.hours { margin: 0; display: grid; }
.hours div { display: flex; justify-content: space-between; gap: 20px; padding: 16px 0; border-bottom: 1px solid rgba(241, 232, 216, .24); }
.hours dt { font-weight: 600; }
.hours dd { margin: 0; text-align: right; color: rgba(241, 232, 216, .86); }
.visit .fine { grid-column: 1 / -1; color: var(--olive-ink); opacity: .7; }

/* ---------- footer ---------- */
.foot { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 40px; padding: 36px var(--side) 44px; background: var(--olive-deep); color: var(--olive-ink); font-size: 14px; }
.foot .logo { margin-right: 0; font-size: 26px; }
.foot .logo small { color: var(--tan); }
.foot p { flex: 1 1 320px; margin: 0; opacity: .85; }
.foot .text-link { border-color: rgba(241, 232, 216, .4); }

/* ---------- small screens ---------- */
@media (max-width: 760px) {
  :root { --top-h: 88px; }
  .wide-only { display: none; }
  .bar { gap: 16px; padding: 10px var(--side); }
  .logo { font-size: 26px; }
  .nav { gap: 18px; }
  .nav .pill { min-height: 40px; padding: 0 16px; }
  .mxs-step { grid-template-columns: 1fr; }
  .mxs-step .still, .step-fill .still { grid-row: auto; grid-column: 1; max-width: 420px; margin-bottom: 8px; }
  .mxs-step > :not(.still), .step-fill > :not(.still) { grid-column: 1; }
  .grill, .visit { grid-template-columns: 1fr; padding: 96px var(--side) 84px; }
  .grill-bread { grid-row: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-cue span::after { animation: none; }
  .pill, .bar { transition: none; }
}
