/* Umid Kerimli: portfolio and CV
   Ivory paper, true black ink, stone neutrals. The work supplies the colour. */

:root {
  --paper: #F1EEE8;
  --stone: #E4DFD6;
  --trav: #B5AB9C;
  --graphite: #67635C;
  --ink: #000;

  --serif: "Bodoni Moda", "Bodoni 72", Didot, Georgia, serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

  --pad: clamp(20px, 4vw, 56px);
  --max: 1440px;
  --bar: 64px;
  --ease: cubic-bezier(.22, .61, .21, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html.lock, html.lock body { overflow: hidden; }

body {
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
::selection { background: var(--ink); color: var(--paper); }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
#main:focus { outline: none; }

.skip {
  position: fixed; left: 16px; top: -100px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 10px 16px;
}
.skip:focus { top: 16px; }

/* ---------- Bar ---------- */

.bar {
  position: sticky; top: 0; z-index: 30;
  height: var(--bar);
  display: flex; align-items: center; gap: 40px;
  padding: 0 var(--pad);
  padding-top: env(safe-area-inset-top);
  box-sizing: content-box;
  background: rgba(241, 238, 232, .88);
  -webkit-backdrop-filter: saturate(1.2) blur(14px);
  backdrop-filter: saturate(1.2) blur(14px);
}

.mark {
  font-family: var(--serif);
  font-size: 21px;
  letter-spacing: -.01em;
  margin-right: auto;
}

.nav { display: flex; gap: 32px; font-size: 15px; }
.nav a, .lang button, .back, .link-row a, .foot a {
  text-decoration-line: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
  transition: text-decoration-color .2s;
}
.nav a:hover, .nav a[aria-current="page"],
.back:hover, .link-row a:hover, .foot a:hover { text-decoration-color: currentColor; }

.lang { display: flex; gap: 2px; font-size: 13px; letter-spacing: .02em; }
.lang button { padding: 8px 6px; color: var(--graphite); min-height: 40px; }
.lang button[aria-pressed="true"] { color: var(--ink); text-decoration-color: currentColor; }

/* ---------- Mobile dock ---------- */

.dock {
  position: fixed; z-index: 30;
  left: 50%; bottom: calc(14px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  display: none;
  background: var(--ink); color: var(--paper);
  border-radius: 999px;
  padding: 5px;
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .45);
}
.dock a {
  display: grid; place-items: center;
  height: 44px; padding: 0 20px;
  border-radius: 999px;
  font-size: 15px;
  transition: background .25s, color .25s;
}
.dock a[aria-current="page"] { background: var(--paper); color: var(--ink); }

/* ---------- Page enter ---------- */

#main.enter { animation: enter .45s var(--ease-out) both; }
@keyframes enter { from { opacity: 0; transform: translateY(8px); } }

/* ---------- Hero ---------- */

.hero {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(40px, 8vh, 96px) var(--pad) clamp(64px, 10vh, 128px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: end;
  gap: clamp(32px, 5vw, 88px);
  min-height: calc(100svh - var(--bar));
}

.hero-name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(76px, 14.2vw, 228px);
  line-height: .86;
  letter-spacing: -.04em;
  margin-left: -.04em;
}
.hero-name .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-name .line > span { display: block; }
.hero-name .line-2 { padding-left: .62em; }

.hero-role {
  margin-top: clamp(28px, 4vw, 48px);
  font-size: clamp(19px, 1.7vw, 23px);
  line-height: 1.35;
  max-width: 28ch;
}
.hero-sub { margin-top: 10px; color: var(--graphite); font-size: 15px; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 50px; padding: 0 26px;
  border: 1px solid var(--ink); border-radius: 999px;
  font-size: 15px; font-weight: 500;
  transition: background .25s, color .25s;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn-solid { background: var(--ink); color: var(--paper); }
.btn-solid:hover { background: transparent; color: var(--ink); }

.mono {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-family: var(--serif); font-size: clamp(56px, 7vw, 96px);
  color: var(--trav); letter-spacing: -.03em;
}

/* One orchestrated entrance, first load only */
.intro .hero-name .line > span { animation: rise 1.1s var(--ease-out) both; }
.intro .hero-name .line-2 > span { animation-delay: .12s; }
.intro .hero-role, .intro .hero-sub, .intro .actions { animation: fade .8s .55s var(--ease) both; }
@keyframes rise { from { transform: translateY(105%); } }
@keyframes fade { from { opacity: 0; } }

/* ---------- Sections ---------- */

.section {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(72px, 12vh, 144px) var(--pad);
  scroll-margin-top: var(--bar);
}

.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 4.4vw, 64px);
  line-height: 1.04;
  letter-spacing: -.02em;
  margin-bottom: clamp(32px, 5vw, 64px);
}

/* ---------- Work rows (home) ---------- */

.rows { border-top: 1px solid var(--stone); }
.row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: baseline;
  gap: 24px;
  padding: clamp(20px, 2.6vw, 36px) 0;
  border-bottom: 1px solid var(--stone);
}
.row-title {
  font-family: var(--serif);
  font-size: clamp(46px, 7.6vw, 120px);
  line-height: .95;
  letter-spacing: -.03em;
  transition: opacity .35s var(--ease), transform .6s var(--ease-out);
}
.row-meta { display: grid; justify-items: end; font-size: 15px; color: var(--graphite); }
.row-meta span:first-child { color: var(--ink); }
.row-thumb { display: none; }

@media (hover: hover) and (pointer: fine) {
  .rows:hover .row-title, .index:hover .ir-title { opacity: .25; }
  .rows .row:hover .row-title, .index .index-row:hover .ir-title { opacity: 1; transform: translateX(.06em); }
}

/* ---------- Peek (desktop hover preview) ---------- */

.peek {
  position: fixed; left: 0; top: 0; z-index: 40;
  width: clamp(200px, 17vw, 260px);
  aspect-ratio: 9 / 16;
  background: var(--stone);
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s var(--ease);
}
.peek.on { opacity: 1; }
.peek img, .peek video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.peek video { opacity: 0; transition: opacity .3s; }
.peek video.playing { opacity: 1; }

/* ---------- About (LinkedIn logic) ---------- */

.about-grid {
  display: grid;
  grid-template-columns: minmax(240px, 4fr) minmax(0, 8fr);
  gap: clamp(40px, 7vw, 112px);
  align-items: start;
}

.card { position: sticky; top: calc(var(--bar) + 32px); }
.portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--stone);
  overflow: hidden;
}
.portrait img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; }
.card-name { font-family: var(--serif); font-size: 28px; line-height: 1.1; margin-top: 20px; letter-spacing: -.01em; }
.card-role { margin-top: 6px; }
.card-loc { color: var(--graphite); font-size: 15px; }
.card .actions { margin-top: 24px; }
.card .btn { height: 44px; padding: 0 20px; font-size: 14px; }

.summary {
  font-family: var(--serif);
  font-size: clamp(20px, 1.85vw, 26px);
  line-height: 1.45;
  letter-spacing: -.005em;
  max-width: 36ch;
  margin-bottom: clamp(48px, 7vw, 88px);
}
.summary p + p { margin-top: 1em; }

.cv-block {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 24px;
  padding: 36px 0;
  border-top: 1px solid var(--stone);
}
.cv-block h3 { font-family: var(--serif); font-weight: 400; font-size: 22px; line-height: 1.3; }

.jobs { display: grid; gap: 32px; }
.job-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.job-role { font-size: 18px; font-weight: 600; line-height: 1.35; }
.job-period { font-size: 14px; color: var(--graphite); font-variant-numeric: tabular-nums; white-space: nowrap; }
.job-co { margin-top: 2px; }
.job-desc { margin-top: 8px; color: var(--graphite); max-width: 60ch; }

.plain { display: flex; flex-wrap: wrap; gap: 10px 32px; }
.langs { display: grid; grid-template-columns: max-content 1fr; gap: 10px 32px; }
.langs dd { color: var(--graphite); }

/* ---------- Contact ---------- */

.contact-lede { color: var(--graphite); max-width: 40ch; margin-bottom: 28px; }
.contact-main {
  display: inline-block;
  font-family: var(--serif);
  font-size: clamp(34px, 6.4vw, 104px);
  line-height: 1.02;
  letter-spacing: -.03em;
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .14em;
  transition: text-decoration-color .3s;
}
.contact-main:hover { text-decoration-color: var(--trav); }
.link-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px 32px;
  margin-top: clamp(40px, 6vw, 72px);
}
.link-row dt { font-size: 14px; color: var(--graphite); }
.link-row dd { margin-top: 4px; overflow-wrap: anywhere; }

/* ---------- Collection & project pages ---------- */

.page {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(28px, 5vh, 56px) var(--pad) clamp(72px, 12vh, 144px);
}

.back {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px;
  font-size: 15px; color: var(--graphite);
}
.back svg { transition: transform .3s var(--ease); }
.back:hover { color: var(--ink); }
.back:hover svg { transform: translateX(-3px); }

.page-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  margin-bottom: clamp(40px, 7vw, 96px);
}
.page-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(60px, 11.5vw, 184px);
  line-height: .9;
  letter-spacing: -.04em;
  margin: clamp(16px, 3vw, 40px) 0 clamp(24px, 3.4vw, 48px) -.04em;
}
.page-intro {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 32px;
  align-items: end;
}
.lede { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.5; max-width: 46ch; }
.meta-list { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 28px; font-size: 15px; color: var(--graphite); }
.page-intro > .meta-list:only-child { grid-column: 1 / -1; justify-content: flex-start; }

/* Project index: an address directory */
.index { border-top: 1px solid var(--ink); }
.index-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px 80px 110px;
  align-items: baseline;
  gap: 24px;
  padding: clamp(22px, 2.6vw, 34px) 0;
  border-bottom: 1px solid var(--stone);
}
.ir-media { display: none; }
.ir-title {
  font-family: var(--serif);
  font-size: clamp(40px, 5.6vw, 88px);
  line-height: .95;
  letter-spacing: -.03em;
  transition: opacity .35s var(--ease), transform .6s var(--ease-out);
}
.ir-loc, .ir-year, .ir-count { font-size: 15px; color: var(--graphite); }
.ir-count { text-align: right; color: var(--ink); }

/* ---------- Real Estate entrance (assets/js/giris.js) ----------
   Night blue, brass and linen: the one dark room in an ivory site. */

.giris {
  --night: #0F1925;
  --slate: #8B97A6;
  --brass: #C4A272;
  --brass-hi: #D8BB8E;
  --linen: #EFE8DC;
  --stage-h: calc(100svh - var(--bar) - env(safe-area-inset-top));
  position: relative;
  height: calc(var(--len, 6) * var(--stage-h));
  background: var(--night);
  color: var(--linen);
}
.giris ::selection { background: var(--brass); color: var(--night); }
.giris :focus-visible { outline-color: var(--brass-hi); }
.g-stage {
  position: sticky; top: calc(var(--bar) + env(safe-area-inset-top));
  height: var(--stage-h);
  overflow: hidden;
  background: var(--night);
}
.g-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.g-shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(15, 25, 37, .74) 0%, rgba(15, 25, 37, .3) 36%, rgba(15, 25, 37, 0) 60%),
    linear-gradient(0deg, rgba(15, 25, 37, .66) 0%, rgba(15, 25, 37, 0) 34%);
}
.g-shade::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(15, 25, 37, .2), rgba(15, 25, 37, .72));
  opacity: 0; transition: opacity .8s;
}
.lobby-on .g-shade { background: none; }
.lobby-on .g-shade::after { opacity: 1; }

/* Stage headlines, one at a time */
.g-beats {
  position: absolute;
  left: var(--pad); bottom: clamp(56px, 11vh, 112px);
  width: min(620px, 52vw);
}
.g-beat {
  position: absolute; left: 0; bottom: 0; width: 100%;
  opacity: 0; transform: translateY(18px); visibility: hidden;
  transition: opacity .5s, transform .9s var(--ease-out), visibility 0s .5s;
}
.g-beat.on {
  opacity: 1; transform: none; visibility: visible;
  transition: opacity .7s .1s, transform .9s .1s var(--ease-out), visibility 0s;
}
.lobby-on .g-beat { opacity: 0; visibility: hidden; }
.g-beat-title {
  font-family: var(--serif);
  font-size: clamp(40px, 5.2vw, 84px);
  line-height: 1.02;
  letter-spacing: -.02em;
  max-width: 13ch;
  text-wrap: balance;
}
.g-beat-text { margin-top: 18px; max-width: 38ch; color: rgba(239, 232, 220, .78); }

/* Lobby: the projects, mounted on the lit back wall */
.g-lobby {
  position: absolute; inset: 0;
  display: grid; align-content: center; justify-items: center;
  padding: 64px calc(var(--pad) + 40px) 72px;
  text-align: center;
  opacity: 0; visibility: hidden;
  transition: opacity .5s, visibility 0s .5s;
}
.lobby-on .g-lobby { opacity: 1; visibility: visible; transition: opacity .8s, visibility 0s; }
.g-lobby-title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(40px, 4.8vw, 72px);
  line-height: 1; letter-spacing: -.02em;
}
.g-lobby-text { margin-top: 14px; color: rgba(239, 232, 220, .74); font-size: 16px; }
.g-logos {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 14px;
  width: min(100%, 1040px);
  margin-top: clamp(28px, 5vh, 52px);
}
.g-logos li {
  flex: 0 1 240px;
  opacity: 0; transform: translateY(14px);
  transition: opacity .4s, transform .6s var(--ease-out);
}
.lobby-on .g-logos li {
  opacity: 1; transform: none;
  transition: opacity .7s calc(.15s + var(--i, 0) * 90ms), transform 1s calc(.15s + var(--i, 0) * 90ms) var(--ease-out);
}
.g-logo {
  position: relative;
  display: grid; justify-items: center; align-content: start; gap: 4px;
  height: 100%;
  padding: 28px 18px 22px;
  background: rgba(11, 17, 25, .6);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid rgba(196, 162, 114, .36);
  transition: border-color .3s, background-color .3s;
}
.g-logo:hover, .g-logo:focus-visible { border-color: var(--brass); background-color: rgba(22, 28, 36, .76); }
.g-mark { display: grid; place-items: center; width: 100%; height: 64px; margin-bottom: 14px; }
.g-mark img {
  max-width: 80%; max-height: 64px; object-fit: contain;
  filter: brightness(0) invert(1); opacity: .9;
  transition: opacity .3s, transform .5s var(--ease-out);
}
.g-mark img.raw { filter: none; opacity: 1; }
.g-logo:hover .g-mark img { opacity: 1; transform: translateY(-2px); }
.g-word { font-family: var(--serif); font-size: clamp(26px, 2.3vw, 32px); line-height: 1.05; letter-spacing: -.01em; }
.g-name { font-size: 14px; }
.g-name.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.g-count { font-size: 13px; color: var(--slate); }

/* Floor counter */
.g-meter {
  position: absolute;
  right: calc(var(--pad) + 52px); bottom: clamp(56px, 11vh, 112px);
  display: grid; justify-items: end;
  transition: opacity .5s;
}
.g-meter.off { opacity: 0; }
.g-meter-label { font-size: 14px; color: rgba(239, 232, 220, .72); }
.g-meter-num {
  font-family: var(--serif);
  font-size: clamp(72px, 8vw, 128px);
  line-height: .9; letter-spacing: -.03em;
  font-variant-numeric: lining-nums tabular-nums;
  margin-top: 6px;
}

/* Progress rail */
.g-rail {
  position: absolute;
  right: var(--pad); top: 50%;
  width: 1px; height: min(40vh, 360px);
  transform: translateY(-50%);
  background: rgba(239, 232, 220, .22);
  transition: opacity .5s;
}
.g-rail-fill { position: absolute; inset: 0; background: var(--brass); transform-origin: top; transform: scaleY(0); }
.g-rail li {
  position: absolute; left: 0;
  display: flex; flex-direction: row-reverse; align-items: center; gap: 12px;
  transform: translate(-100%, -50%); margin-left: 5px;
}
.g-dot { width: 9px; height: 9px; border-radius: 50%; border: 1px solid rgba(239, 232, 220, .55); background: var(--night); transition: background-color .3s, border-color .3s; }
.g-stop { font-size: 12px; color: rgba(239, 232, 220, .5); white-space: nowrap; transition: color .3s; }
.g-rail li.passed .g-dot { border-color: var(--brass); }
.g-rail li.on .g-dot { background: var(--brass); border-color: var(--brass); }
.g-rail li.on .g-stop { color: var(--linen); }
.lobby-on .g-rail { opacity: .5; }

.g-hint {
  position: absolute; left: 50%; bottom: 20px;
  transform: translateX(-50%);
  display: grid; justify-items: center; gap: 10px;
  font-size: 13px; color: rgba(239, 232, 220, .72); white-space: nowrap;
  transition: opacity .4s;
}
.g-hint.off { opacity: 0; }
.g-hint-line {
  width: 1px; height: 34px;
  background: linear-gradient(var(--brass), rgba(196, 162, 114, 0));
  transform-origin: top;
  animation: g-drop 2.2s cubic-bezier(.65, 0, .35, 1) infinite;
}
@keyframes g-drop {
  0% { transform: scaleY(0); opacity: 1; }
  60% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}

.g-skip {
  position: absolute; left: var(--pad); top: 14px;
  min-height: 40px; padding: 0;
  font-size: 14px; color: rgba(239, 232, 220, .78);
  text-decoration: underline 1px transparent; text-underline-offset: 6px;
  transition: color .2s, text-decoration-color .2s, opacity .4s;
}
.g-skip:hover { color: var(--linen); text-decoration-color: currentColor; }
.lobby-on .g-skip { opacity: 0; pointer-events: none; }
.g-note { position: absolute; left: var(--pad); top: 58px; max-width: 44ch; font-size: 12px; color: var(--slate); }
.lobby-on .g-note { display: none; }

/* Media grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: clamp(28px, 3vw, 44px) clamp(12px, 1.6vw, 24px);
  align-items: start;
}
.grid + .index, .index + .grid { margin-top: clamp(56px, 8vw, 112px); }
.tile { display: block; width: 100%; text-align: left; }
.tile-media {
  display: block;
  position: relative;
  aspect-ratio: var(--ar, 9 / 16);
  background: var(--stone);
  overflow: hidden;
}
.tile-media img, .tile-media video { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.tile:hover .tile-media img, .tile:hover .tile-media video { transform: scale(1.035); }
.tile-dur {
  position: absolute; left: 10px; bottom: 10px;
  padding: 3px 9px; border-radius: 999px;
  background: rgba(0, 0, 0, .5); color: #fff;
  font-size: 12px; font-variant-numeric: tabular-nums;
}
.tile-play {
  position: absolute; right: 10px; bottom: 10px;
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(241, 238, 232, .92); color: var(--ink);
}
.tile-title { display: block; margin-top: 12px; font-size: 15px; line-height: 1.35; }

/* Case study: slides stacked edge to edge, like one long presentation */
.story { display: flex; flex-direction: column; }
.story + .index { margin-top: clamp(56px, 8vw, 112px); }
.story-item { margin: 0; aspect-ratio: var(--ar, 16 / 9); background: var(--stone); overflow: hidden; }
.story-item img, .story-item video { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 760px) {
  /* slides carry their own margins, so let them run to the screen edge */
  .story { margin-inline: calc(var(--pad) * -1); }
}

.empty {
  padding: clamp(48px, 8vw, 96px) 0;
  border-top: 1px solid var(--stone);
  color: var(--graphite);
  max-width: 52ch;
}
.devnote { margin-top: 12px; font-size: 14px; }
.devnote code { font-size: 13px; background: var(--stone); padding: 2px 6px; color: var(--ink); }

.next {
  display: grid;
  margin-top: clamp(80px, 12vw, 160px);
  padding-top: 28px;
  border-top: 1px solid var(--ink);
}
.next-label { font-size: 15px; color: var(--graphite); }
.next-title {
  font-family: var(--serif);
  font-size: clamp(48px, 8vw, 128px);
  line-height: .95;
  letter-spacing: -.035em;
  margin-top: 12px;
  transition: transform .6s var(--ease-out);
}
.next:hover .next-title { transform: translateX(.05em); }

/* ---------- Footer ---------- */

.foot {
  max-width: var(--max); margin: 0 auto;
  display: flex; justify-content: space-between; gap: 16px;
  padding: 32px var(--pad) 40px;
  font-size: 14px; color: var(--graphite);
}

/* ---------- Viewer ---------- */

.viewer {
  position: fixed; inset: 0; z-index: 60;
  background: #000; color: #fff;
  animation: fade .3s var(--ease) both;
}
.viewer-track {
  height: 100%;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  overscroll-behavior: contain;
  scrollbar-width: none;
}
.viewer-track::-webkit-scrollbar { display: none; }

.slide {
  position: relative;
  height: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: grid;
  padding: 76px 0 72px;
}
.slide-media { position: relative; min-height: 0; cursor: pointer; }
.slide-media video, .slide-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.slide-play {
  position: absolute; left: 50%; top: 50%;
  width: 72px; height: 72px; margin: -36px 0 0 -36px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .16);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  opacity: 0; transform: scale(.85);
  transition: opacity .25s, transform .35s var(--ease-out);
  pointer-events: none;
}
.slide.paused .slide-play { opacity: 1; transform: none; }
.slide-cap {
  position: absolute; left: var(--pad); right: var(--pad);
  bottom: calc(24px + env(safe-area-inset-bottom));
  font-size: 15px; color: rgba(255, 255, 255, .86);
}

.viewer-top {
  position: absolute; top: 0; left: 0; right: 0;
  display: flex; justify-content: space-between; align-items: center;
  padding: calc(14px + env(safe-area-inset-top)) var(--pad) 14px;
  pointer-events: none;
}
.viewer-top > * { pointer-events: auto; }
.viewer-count { font-size: 14px; font-variant-numeric: tabular-nums; color: rgba(255, 255, 255, .7); }
.viewer-actions { display: flex; gap: 8px; }
.vbtn {
  height: 44px; padding: 0 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  font-size: 14px; color: #fff;
  transition: background .2s;
}
.vbtn:hover { background: rgba(255, 255, 255, .24); }
.vbtn:focus-visible { outline-color: #fff; }
.vround { width: 48px; height: 48px; padding: 0; display: grid; place-items: center; }
.viewer-nav {
  position: absolute; right: var(--pad); top: 50%;
  transform: translateY(-50%);
  display: grid; gap: 10px;
}

/* ---------- Tablet & mobile ---------- */

@media (max-width: 900px) {
  .index-row { grid-template-columns: minmax(0, 1fr) auto; }
  .ir-loc, .ir-year { display: none; }
  .about-grid { grid-template-columns: minmax(0, 1fr); }
  .card { position: static; display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 20px; align-items: end; }
  .card-name { margin-top: 0; }
  .card .actions { grid-column: 1 / -1; margin-top: 4px; }
  .page-intro { grid-template-columns: minmax(0, 1fr); }
  .meta-list { justify-content: flex-start; }
}

@media (max-width: 760px) {
  body { font-size: 16px; padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
  :root { --bar: 56px; }
  .nav { display: none; }
  .dock { display: flex; }
  .mark { font-size: 19px; }

  .g-shade {
    background:
      linear-gradient(0deg, rgba(15, 25, 37, .9) 0%, rgba(15, 25, 37, .5) 38%, rgba(15, 25, 37, 0) 62%),
      linear-gradient(rgba(15, 25, 37, .5), rgba(15, 25, 37, 0) 20%);
  }
  .g-beats { right: calc(var(--pad) + 16px); width: auto; bottom: calc(156px + env(safe-area-inset-bottom)); }
  .g-beat-title { font-size: clamp(32px, 9.4vw, 44px); }
  .g-beat-text { font-size: 15px; margin-top: 12px; }
  .g-meter { top: 12px; bottom: auto; right: calc(var(--pad) + 16px); }
  .g-meter-label { font-size: 12px; }
  .g-meter-num { font-size: 48px; }
  .g-rail { right: 12px; height: 30vh; top: 48%; }
  .g-stop { display: none; }
  .g-rail li { margin-left: 4px; }
  .g-dot { width: 7px; height: 7px; }
  .g-hint { bottom: calc(92px + env(safe-area-inset-bottom)); font-size: 12px; gap: 8px; }
  .g-hint-line { height: 22px; }
  .g-skip { top: 8px; font-size: 13px; }
  .g-note { top: 50px; right: calc(var(--pad) + 90px); }
  .g-lobby { padding: 48px var(--pad) calc(96px + env(safe-area-inset-bottom)); }
  .g-lobby-title { font-size: 40px; }
  .g-lobby-text { font-size: 15px; margin-top: 10px; }
  .g-logos { gap: 10px; margin-top: 24px; }
  .g-logos li { flex: 0 1 calc(50% - 5px); }
  .g-logo { padding: 20px 10px 16px; }
  .g-mark { height: 46px; margin-bottom: 10px; }
  .g-mark img { max-height: 46px; }
  .g-word { font-size: 22px; }
  .g-name { font-size: 13px; }
  .g-count { font-size: 12px; }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    padding-top: 28px;
    gap: 40px;
  }
  .hero-name { font-size: 21.5vw; }
  .hero-name .line-2 { padding-left: .42em; }

  .row { grid-template-columns: minmax(0, 1fr) 76px; align-items: center; gap: 16px; padding: 18px 0; }
  .row-text { display: grid; gap: 8px; }
  .row-meta { justify-items: start; font-size: 14px; }
  .row-thumb { display: block; position: relative; aspect-ratio: 3 / 4; background: var(--stone); overflow: hidden; }
  .row-thumb img, .row-thumb video { width: 100%; height: 100%; object-fit: cover; }

  .card { grid-template-columns: 112px minmax(0, 1fr); }
  .cv-block { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 28px 0; }

  /* Index becomes a stack of cards that play as they enter the screen */
  .index { border-top: 0; display: grid; gap: 44px; }
  .index-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 16px; padding: 0; border: 0; }
  .ir-media {
    display: block; position: relative;
    grid-column: 1 / -1;
    aspect-ratio: 4 / 5;
    background: var(--stone);
    overflow: hidden;
    margin-bottom: 10px;
  }
  .ir-title { font-size: 36px; }
  .ir-count { align-self: end; font-size: 14px; color: var(--graphite); }

  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 10px; }
  .tile-title { font-size: 14px; margin-top: 8px; }

  .viewer-nav { display: none; }
  .slide { padding: 0; }
  .slide-cap { bottom: calc(28px + env(safe-area-inset-bottom)); }
  .foot { padding-bottom: 24px; }
}

/* Short phones: keep every lobby plaque above the bottom menu */
@media (max-width: 760px) and (max-height: 740px) {
  .g-lobby { padding-top: 32px; }
  .g-lobby-title { font-size: 34px; }
  .g-logos { margin-top: 18px; gap: 8px; }
  .g-logo { padding: 14px 10px 12px; }
  .g-mark { height: 38px; margin-bottom: 8px; }
  .g-mark img { max-height: 38px; }
  .g-word { font-size: 20px; }
}

/* Card media layers: poster under, autoplay video over */
.ir-media img, .ir-media video, .row-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ir-media video { opacity: 0; transition: opacity .5s; }
.ir-media video.playing { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
  .g-hint-line { animation: none; }
}

/* =====================================================================
   Hazy: the brand's own room. Black page, one extended typeface
   (ABC Pelikan Extended), chrome-white type, photographs carry the rest.
   Turned on by info.json "theme": "hazy" (html[data-theme="hazy"]).
   ===================================================================== */

@font-face {
  font-family: "Pelikan Extended";
  src: url("../fonts/pelikan-extended.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

html[data-theme="hazy"] {
  --paper: #000;
  --ink: #EDEBE6;
  --stone: #161616;
  --trav: #3A3A38;
  --graphite: #8F8D88;
  --hz-soft: #B8B6B0;
  --hz-line: rgba(237, 235, 230, .16);
  --hz: "Pelikan Extended", "Hanken Grotesk", system-ui, sans-serif;
  color-scheme: dark;
  background: #000;
}
html[data-theme="hazy"] body { background: #000; color: var(--ink); font-family: var(--hz); font-weight: 380; font-size: 16px; line-height: 1.6; }
html[data-theme="hazy"] .bar { background: rgba(0, 0, 0, .82); color: var(--ink); }
html[data-theme="hazy"] .mark { font-family: var(--hz); font-weight: 760; letter-spacing: -.01em; }
html[data-theme="hazy"] .dock { box-shadow: 0 0 0 1px var(--hz-line); background: #000; color: var(--ink); }
html[data-theme="hazy"] .empty { border-color: var(--hz-line); }
html[data-theme="hazy"] .tile-play { background: rgba(237, 235, 230, .94); color: #000; }
html[data-theme="hazy"] ::selection { background: var(--ink); color: #000; }
html[data-theme="hazy"] :focus-visible { outline-color: var(--ink); }

/* ---------- Entrance, recoloured: black stage, white rail, wordless chrome ---------- */

.giris.g-hazy {
  --night: #000;
  --slate: #8F8D88;
  --brass: #EDEBE6;
  --brass-hi: #fff;
  --linen: #EDEBE6;
  font-family: var(--hz);
  background: #000;
}
.g-hazy .g-meter { display: none; }
.g-hazy .g-shade {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .78) 0%, rgba(0, 0, 0, .32) 36%, rgba(0, 0, 0, 0) 60%),
    linear-gradient(0deg, rgba(0, 0, 0, .7) 0%, rgba(0, 0, 0, 0) 34%);
}
.g-hazy .g-shade::after { background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(0, 0, 0, .25), rgba(0, 0, 0, .8)); }
.g-hazy.lobby-on .g-shade { background: none; }
.g-hazy .g-stage canvas { transition: opacity .8s; }
.g-hazy.lobby-on .g-stage canvas { opacity: .18; }
.g-hazy .g-beat-title {
  font-family: var(--hz); font-weight: 780; font-style: normal;
  font-size: clamp(34px, 4.1vw, 66px);
  line-height: 1; letter-spacing: -.025em;
  max-width: 15ch;
}
.g-hazy .g-beat-text { color: rgba(237, 235, 230, .74); max-width: 40ch; font-size: 16px; }
.g-hazy .g-lobby-title {
  font-family: var(--hz); font-weight: 780; font-style: normal;
  font-size: clamp(30px, 3.6vw, 56px);
  letter-spacing: -.025em; line-height: 1;
  max-width: 18ch; text-wrap: balance;
}
.g-hazy .g-lobby-text { color: rgba(237, 235, 230, .7); font-size: 15px; }
.g-hazy .g-logo { background-color: rgba(0, 0, 0, .55); border-color: rgba(237, 235, 230, .22); }
.g-hazy .g-logo:hover, .g-hazy .g-logo:focus-visible { border-color: var(--linen); background-color: rgba(24, 24, 24, .85); }
.g-hazy .g-word { font-family: var(--hz); font-weight: 800; font-style: normal; letter-spacing: -.01em; line-height: 1.1; }
/* Hazy marks are already white on transparent: show them as drawn. */
.g-hazy .g-mark { height: 84px; }
.g-hazy .g-mark img { max-height: 84px; max-width: 86%; filter: none; opacity: 1; }
.g-hazy .g-count { display: none; }
.g-hazy .g-hint-line { background: linear-gradient(var(--linen), rgba(237, 235, 230, 0)); }

/* ---------- Brand page ---------- */

.hz {
  max-width: var(--max, 1440px); margin: 0 auto;
  padding: clamp(28px, 5vh, 56px) var(--pad) clamp(72px, 12vh, 144px);
}
.hz p { max-width: 46ch; }

.hz-mark { margin: clamp(28px, 5vw, 72px) 0 clamp(40px, 6vw, 88px); line-height: 0; font-size: 0; }
.hz-mark img { display: block; width: 100%; height: auto; filter: invert(1); }

.hz-intro {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.hz-tagline {
  font-weight: 760;
  font-size: clamp(26px, 2.9vw, 44px);
  line-height: 1.08; letter-spacing: -.02em;
  text-wrap: balance;
}
.hz-lede { margin-top: 22px; color: var(--hz-soft); font-size: clamp(16px, 1.2vw, 18px); }
.hz-meta { display: grid; border-top: 1px solid var(--hz-line); margin: 0; }
.hz-meta > div {
  display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 16px;
  padding: 14px 0; border-bottom: 1px solid var(--hz-line);
  font-size: 14px;
}
.hz-meta dt { color: var(--graphite); }
.hz-meta dd { margin: 0; }

.hz-sec { padding-top: clamp(96px, 13vw, 192px); }
.hz-sec-head {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: clamp(24px, 6vw, 96px);
  align-items: start;
  margin-bottom: clamp(40px, 5vw, 72px);
}
.hz-h2 {
  font-family: var(--hz); font-style: normal;
  font-weight: 800;
  font-size: clamp(34px, 4.6vw, 74px);
  line-height: .98; letter-spacing: -.03em;
  max-width: 12ch; text-wrap: balance;
}
.hz-sec-copy { display: grid; gap: 16px; padding-top: .4em; color: var(--hz-soft); }
.hz-sub { color: var(--ink); font-weight: 640; font-size: clamp(18px, 1.5vw, 22px); line-height: 1.3; }

/* What we share: three living crops from the community film */
.hz-label {
  font-family: var(--hz); font-style: normal;
  font-weight: 600; font-size: 15px;
  padding-bottom: 16px; margin-bottom: 24px;
  border-bottom: 1px solid var(--hz-line);
}
.hz-values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.hz-value-media { margin: 0; aspect-ratio: var(--ar, 2 / 1); background: var(--stone); overflow: hidden; }
.hz-value-media video { display: block; width: 100%; height: 100%; object-fit: cover; }
.hz-h3 { font-family: var(--hz); font-style: normal; font-weight: 760; font-size: 20px; letter-spacing: -.01em; margin-top: 18px; }
.hz-value p { color: var(--hz-soft); margin-top: 6px; font-size: 15px; }

/* Drops: a lineup, one row each */
.hz-drop-list { border-top: 1px solid var(--hz-line); }
.hz-drop {
  display: grid;
  grid-template-columns: clamp(120px, 12vw, 176px) minmax(0, 1fr) minmax(0, 300px) auto;
  align-items: center;
  gap: clamp(20px, 3vw, 48px);
  padding: clamp(18px, 2vw, 28px) 0;
  border-bottom: 1px solid var(--hz-line);
  color: inherit; text-decoration: none;
}
.hz-drop-media { position: relative; aspect-ratio: 4 / 5; background: var(--stone); overflow: hidden; }
.hz-drop-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.2, .7, .2, 1), opacity .4s; opacity: .86; }
.hz-drop-mark { display: none; }
.hz-drop-title {
  font-weight: 800;
  font-size: clamp(30px, 4.6vw, 76px);
  line-height: .98; letter-spacing: -.03em;
  transition: transform .6s cubic-bezier(.2, .7, .2, 1);
}
.hz-drop-line { color: var(--hz-soft); font-size: 15px; }
.hz-drop-go { font-size: 14px; text-decoration: underline 1px transparent; text-underline-offset: 6px; transition: text-decoration-color .2s; white-space: nowrap; }
@media (hover: hover) {
  .hz-drop:hover .hz-drop-media img { transform: scale(1.04); opacity: 1; }
  .hz-drop:hover .hz-drop-title { transform: translateX(.04em); }
  .hz-drop:hover .hz-drop-go { text-decoration-color: currentColor; }
}

/* Shots that open in the viewer */
.hz-shot .tile-media { background: var(--stone); }
.hz-shot .tile-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hz-shot .tile-title { color: var(--graphite); font-size: 13px; }

.hz-collage {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: clamp(12px, 1.6vw, 24px);
  align-items: start;
}
.hz-collage .hz-lead { grid-row: span 2; }

.hz-wide .hz-shot { display: block; max-width: min(100%, 1040px); margin-left: auto; }

.hz-film-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 3vw, 44px) clamp(12px, 1.6vw, 24px);
}
@media (max-width: 600px) { .hz-film-grid { grid-template-columns: minmax(0, 1fr); } }

.hz-motion-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: end;
}
.hz-motion-copy { display: grid; gap: 20px; color: var(--hz-soft); padding-bottom: 8px; }
.hz-motion-copy .hz-h2 { color: var(--ink); }
.hz-film .hz-shot { display: block; max-width: 400px; }

.hz-role-list {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: clamp(16px, 2vw, 28px);
  border-top: 1px solid var(--hz-line);
  list-style: none; padding: 0; margin: 0;
}
.hz-role-list li {
  padding: 18px 0 20px;
  border-bottom: 1px solid var(--hz-line);
  font-weight: 560; font-size: 15px; line-height: 1.35;
}

.hz-stay {
  font-family: var(--hz); font-style: normal;
  font-weight: 860;
  font-size: clamp(56px, 12vw, 200px);
  line-height: .9; letter-spacing: -.045em;
  margin-left: -.04em;
}
.hz-contact-text { margin-top: clamp(20px, 2.6vw, 36px); color: var(--hz-soft); }
.hz-links {
  display: grid; grid-template-columns: repeat(2, minmax(0, max-content));
  gap: 20px clamp(40px, 7vw, 120px);
  margin-top: clamp(32px, 4vw, 56px);
  list-style: none; padding: 0;
}
.hz-links li { display: grid; gap: 4px; }
.hz-links span { font-size: 13px; color: var(--graphite); }
.hz-links a {
  font-weight: 680; font-size: clamp(20px, 2.4vw, 34px); letter-spacing: -.015em;
  overflow-wrap: anywhere; color: inherit;
  text-decoration: underline 1px transparent; text-underline-offset: .18em;
  transition: text-decoration-color .25s;
}
.hz-links a:hover { text-decoration-color: currentColor; }

/* ---------- Drop page ---------- */

.hz-drop-top {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
  margin: clamp(16px, 3vw, 40px) 0 clamp(56px, 8vw, 112px);
}
.hz-title {
  font-family: var(--hz); font-style: normal;
  font-weight: 840;
  font-size: clamp(44px, 6.6vw, 112px);
  line-height: .92; letter-spacing: -.04em;
  margin-left: -.03em;
  text-wrap: balance;
}
.hz-drop-top .hz-tagline { margin-top: clamp(18px, 2vw, 28px); font-size: clamp(20px, 1.9vw, 28px); }
.hz-object { margin: 0; aspect-ratio: var(--ar, 1 / 1); background: #000; overflow: hidden; }
.hz-object video, .hz-object img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hz-object-logo { display: grid; place-items: center; aspect-ratio: 1 / 1; }
.hz-object-logo img { width: 60%; height: auto; object-fit: contain; }

.hz-shots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 3vw, 44px) clamp(12px, 1.6vw, 24px);
  align-items: start;
}
.hz-shots.one { grid-template-columns: minmax(0, 560px); }
.hz-shots:has(> :nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 1040px; }
.hz-drop-top > :only-child { grid-column: 1 / -1; }
html[data-theme="hazy"] .next { border-top-color: var(--hz-line); color: inherit; }
html[data-theme="hazy"] .next-title { font-family: var(--hz); font-style: normal; font-weight: 820; letter-spacing: -.04em; }

@media (max-width: 900px) {
  .hz-intro, .hz-sec-head, .hz-motion-grid, .hz-drop-top { grid-template-columns: minmax(0, 1fr); }
  .hz-sec-copy { padding-top: 0; }
  .hz-drop { grid-template-columns: 120px minmax(0, 1fr); row-gap: 8px; }
  .hz-drop-media { grid-row: span 2; }
  .hz-drop-title { align-self: end; }
  .hz-drop-line { align-self: start; }
  .hz-drop-go { display: none; }
  .hz-role-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hz-shots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hz-object { max-width: 520px; }
}

@media (max-width: 760px) {
  html[data-theme="hazy"] body { font-size: 15px; }
  .g-hazy .g-shade {
    background:
      linear-gradient(0deg, rgba(0, 0, 0, .92) 0%, rgba(0, 0, 0, .5) 38%, rgba(0, 0, 0, 0) 62%),
      linear-gradient(rgba(0, 0, 0, .5), rgba(0, 0, 0, 0) 20%);
  }
  .g-hazy.lobby-on .g-shade { background: none; }
  .g-hazy .g-beat-title { font-size: clamp(28px, 8vw, 38px); }
  .g-hazy .g-beat-text { font-size: 14px; }
  .g-hazy .g-lobby-title { font-size: clamp(26px, 7.4vw, 34px); }
  .g-hazy .g-mark { height: 56px; }
  .g-hazy .g-mark img { max-height: 56px; }

  .hz-mark { margin: 20px 0 32px; }
  .hz-sec { padding-top: 88px; }
  .hz-values { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .hz-drop-list { border-top: 0; display: grid; gap: 40px; }
  .hz-drop { grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 0; border: 0; }
  .hz-drop-media { grid-row: auto; margin-bottom: 10px; }
  .hz-drop-media img { opacity: 1; }
  .hz-drop-title { font-size: clamp(30px, 9vw, 40px); }
  .hz-collage { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
  .hz-collage .hz-lead { grid-column: 1 / -1; grid-row: auto; }
  .hz-film .hz-shot { max-width: none; }
  .hz-role-list { grid-template-columns: minmax(0, 1fr); }
  .hz-role-list li { padding: 14px 0; }
  .hz-links { grid-template-columns: minmax(0, 1fr); }
  .hz-shots { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 10px; }
  .hz-shots.one { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .hz-drop-media img, .hz-drop-title { transition: none; }
}

/* =====================================================================
   Real Estate: the page takes the entrance film's colours. The film ends
   in a lit travertine lobby, so the room is its shadow (espresso bronze),
   the type is the lit stone and the accent is the brass of the door frames.
   Turned on by info.json "theme": "lobby" (html[data-theme="lobby"]).
   ===================================================================== */

html[data-theme="lobby"] {
  --paper: #1F1610;
  --ink: #EEDCC3;
  --stone: #2C2018;
  --trav: #5A4433;
  --graphite: #AE9479;
  --lb-brass: #D3A877;
  --lb-line: rgba(238, 220, 195, .18);
  color-scheme: dark;
  background: var(--paper);
}
html[data-theme="lobby"] body { background: var(--paper); color: var(--ink); }
html[data-theme="lobby"] .bar { background: rgba(31, 22, 16, .84); color: var(--ink); }
html[data-theme="lobby"] .dock { box-shadow: 0 0 0 1px var(--lb-line), 0 10px 30px -12px rgba(0, 0, 0, .6); background: #120C08; color: var(--ink); }
html[data-theme="lobby"] .dock a[aria-current="page"] { background: var(--ink); color: var(--paper); }
html[data-theme="lobby"] .tile-play { background: rgba(238, 220, 195, .94); color: var(--paper); }
html[data-theme="lobby"] .empty { border-color: var(--lb-line); }
html[data-theme="lobby"] .index, html[data-theme="lobby"] .next { border-top-color: var(--lb-line); }
html[data-theme="lobby"] .index-row, html[data-theme="lobby"] .row { border-color: var(--lb-line); }
html[data-theme="lobby"] .ir-count, html[data-theme="lobby"] .row-meta span:first-child { color: var(--lb-brass); }
html[data-theme="lobby"] ::selection { background: var(--lb-brass); color: var(--paper); }
html[data-theme="lobby"] :focus-visible { outline-color: var(--lb-brass); }

/* Entrance: dusk stays blue on the way down; the lobby fades into the page's bronze */
html[data-theme="lobby"] .giris { --night: #1F1610; }
html[data-theme="lobby"] .g-shade::after {
  background:
    linear-gradient(0deg, #1F1610 0%, rgba(31, 22, 16, 0) 26%),
    radial-gradient(ellipse 70% 60% at 50% 46%, rgba(31, 22, 16, .18), rgba(31, 22, 16, .74));
}
html[data-theme="lobby"] .g-logo { background-color: rgba(31, 22, 16, .58); border-color: rgba(211, 168, 119, .38); }
html[data-theme="lobby"] .g-logo:hover, html[data-theme="lobby"] .g-logo:focus-visible { background-color: rgba(31, 22, 16, .8); border-color: var(--lb-brass); }

/* =====================================================================
   Lumina: a shop window in the brand's own colours. Wax cream page,
   the tan of the packshot behind the hero and the contact, petal blush
   for the story, wick brown for type and for the work band. Didot throughout.
   ===================================================================== */

@font-face { font-family: "Didot LU"; src: url("../fonts/didot.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Didot LU"; src: url("../fonts/didot-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Didot Title LU"; src: url("../fonts/didot-title.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

html[data-theme="lumina"] {
  --paper: #F3EBE0;
  --ink: #2B211B;
  --stone: #E6DACB;
  --trav: #C9B8A4;
  --graphite: #6E5B4C;
  --lu-tan: #B49B7D;
  --lu-stage: #B8A088;
  --lu-petal: #EBD9CF;
  --lu-wall: #D3C0A8;
  --lu-wick: #2B211B;
  --lu-line: rgba(43, 33, 27, .16);
  --lu-serif: "Didot LU", "Bodoni Moda", Didot, Georgia, serif;
  --lu-title: "Didot Title LU", "Didot LU", "Bodoni Moda", Didot, serif;
  background: var(--paper);
}
html[data-theme="lumina"] body { background: var(--paper); color: var(--ink); }
html[data-theme="lumina"] .bar { background: rgba(243, 235, 224, .86); }
html[data-theme="lumina"] .mark { font-family: var(--lu-serif); }
html[data-theme="lumina"] .dock { background: var(--lu-wick); color: var(--paper); }
html[data-theme="lumina"] .dock a[aria-current="page"] { background: var(--paper); color: var(--lu-wick); }
html[data-theme="lumina"] ::selection { background: var(--lu-wick); color: var(--paper); }

.lu { font-family: var(--lu-serif); }
.lu-h2 { font-family: var(--lu-title); font-weight: 400; font-size: clamp(40px, 5.4vw, 84px); line-height: 1; letter-spacing: -.01em; }
.lu-h3 { font-family: var(--lu-serif); font-weight: 400; font-size: clamp(24px, 2.2vw, 32px); line-height: 1.1; }
.lu-italic { font-family: var(--lu-serif); font-style: italic; }

.lu-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 26px; border-radius: 999px;
  border: 1px solid currentColor;
  font: 500 15px/1 var(--sans);
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.lu-btn:hover { background: var(--lu-wick); border-color: var(--lu-wick); color: var(--paper); }
.lu-btn-solid { background: var(--lu-wick); border-color: var(--lu-wick); color: var(--paper); }
.lu-btn-solid:hover { background: transparent; color: var(--lu-wick); }

/* Hero: the copy on the left and the logo alone on the right, both on the tan wall.
   On phones the logo sits centred under the copy. */
.lu-hero {
  display: flex; align-items: stretch;
  background: var(--lu-wall); color: var(--lu-wick);
  min-height: calc(100svh - var(--bar));
}
.lu-hero .back { color: rgba(43, 33, 27, .72); }
.lu-hero .back:hover { color: var(--lu-wick); }
.lu-hero-copy {
  flex: none;
  display: flex; flex-direction: column; align-items: flex-start;
  width: min(46%, 640px); min-height: calc(100svh - var(--bar));
  padding: clamp(24px, 4vh, 48px) 0 clamp(32px, 5vh, 72px) var(--pad);
}
.lu-title {
  font-family: var(--lu-title); font-weight: 400;
  font-size: clamp(50px, min(6.6vw, 11.5vh), 116px); line-height: .96; letter-spacing: -.015em;
  max-width: 10.5ch; margin: auto 0 clamp(20px, 3vh, 36px) -.04em; padding-top: clamp(28px, 5vh, 72px);
  text-wrap: balance;
}
.lu-lede { font-size: clamp(19px, 1.55vw, 23px); line-height: 1.5; max-width: 40ch; }
.lu-role { font: 500 14.5px/1.5 var(--sans); margin-top: 18px; max-width: 46ch; color: rgba(43, 33, 27, .8); }
.lu-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(24px, 3vh, 40px); }

.lu-mark {
  flex: 1; min-width: 0; display: grid; place-items: center;
  padding: clamp(32px, 6vh, 72px) var(--pad);
}
/* 700 x 599 logo: about 58% of the right side, never taller than 58% of the screen */
.lu-mark img { width: min(58%, calc(58svh * 700 / 599), 560px); height: auto; }

/* Packaging and personalisation */
.lu-feats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--lu-line);
}
.lu-feat { padding: clamp(28px, 3.4vw, 48px) var(--pad); }
.lu-feat + .lu-feat { border-left: 1px solid var(--lu-line); }
.lu-icon { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.15; stroke-linejoin: round; stroke-linecap: round; margin-bottom: 18px; }
.lu-feat h3 { font-weight: 400; font-size: 22px; line-height: 1.2; }
.lu-feat p { font: 400 14.5px/1.5 var(--sans); color: var(--graphite); margin-top: 8px; max-width: 30ch; }

/* The collection */
.lu-col { padding: clamp(72px, 10vw, 144px) var(--pad) clamp(80px, 10vw, 152px); max-width: var(--max); margin: 0 auto; scroll-margin-top: var(--bar); }
.lu-col-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 24px 40px; margin-bottom: clamp(36px, 4.4vw, 64px); }
.lu-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.lu-chips button {
  min-height: 40px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--lu-line); font: 500 14px/1 var(--sans);
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.lu-chips button:hover { border-color: var(--lu-wick); }
.lu-chips button[aria-pressed="true"] { background: var(--lu-wick); border-color: var(--lu-wick); color: var(--paper); }
.lu-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(40px, 4vw, 64px) clamp(14px, 1.8vw, 28px); }
.lu-prod-img { display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--stone); }
.lu-prod-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-out); }
.lu-prod-btn:hover .lu-prod-img img { transform: scale(1.04); }
.lu-prod-code { display: block; margin-top: 16px; font: 500 12px/1 var(--sans); letter-spacing: .04em; color: var(--graphite); }
.lu-prod-name { font-weight: 400; font-size: clamp(19px, 1.5vw, 22px); line-height: 1.2; margin-top: 8px; }
.lu-prod-text { font: 400 14px/1.5 var(--sans); color: var(--graphite); margin-top: 6px; max-width: 34ch; }

/* About: petal blush beside the diffuser in the dark */
.lu-about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: var(--lu-petal); }
.lu-about-img { margin: 0; min-height: 100%; }
.lu-about-img img { width: 100%; height: 100%; min-height: 480px; object-fit: cover; }
.lu-about-copy { align-self: center; padding: clamp(48px, 7vw, 120px) var(--pad); max-width: 680px; }
.lu-about-copy .lu-h2 { font-size: clamp(36px, 4.4vw, 68px); line-height: 1.04; }
.lu-about-copy p { font-size: clamp(18px, 1.4vw, 21px); line-height: 1.6; margin-top: 28px; max-width: 44ch; }

/* My work: a wick-brown band, the shoot's dark marble sits well on it */
.lu-work { background: var(--lu-wick); color: var(--paper); padding: clamp(72px, 10vw, 144px) var(--pad); }
.lu-work > * { max-width: var(--max); margin-inline: auto; }
.lu-work-intro { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 32px 64px; align-items: start; }
.lu-work-intro p { font-size: clamp(18px, 1.4vw, 21px); line-height: 1.6; max-width: 44ch; }
.lu-role-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 32px; border-top: 1px solid rgba(243, 235, 224, .2); }
.lu-role-list li { font-style: italic; font-size: 20px; padding: 14px 0; border-bottom: 1px solid rgba(243, 235, 224, .2); }
.lu-work-part { margin-top: clamp(64px, 8vw, 120px); }
.lu-work-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 24px; margin-bottom: clamp(24px, 3vw, 40px); }
.lu-work-head p { font: 400 15px/1.5 var(--sans); color: rgba(243, 235, 224, .66); }
.lu-shot .tile-media { background: #3A2E26; }
.lu-shot .tile-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lu-shot .tile-title { font: 400 14px/1.4 var(--sans); color: rgba(243, 235, 224, .7); }
.lu-work .tile-play { background: rgba(243, 235, 224, .94); color: var(--lu-wick); }
.lu-films { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.8vw, 28px); max-width: 1120px; }
.lu-design-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .703fr); gap: clamp(12px, 1.8vw, 28px); max-width: 1040px; }
.lu-design-grid .lu-shot:last-child { grid-column: 1 / -1; }

/* Contact: back to the tan */
.lu-contact { background: var(--lu-tan); color: var(--lu-wick); text-align: center; padding: clamp(72px, 10vw, 144px) var(--pad); display: flex; flex-direction: column; align-items: center; }
.lu-contact-logo { width: clamp(120px, 12vw, 180px); height: auto; margin-bottom: clamp(32px, 4vw, 56px); }
.lu-contact-title { font-family: var(--lu-title); font-weight: 400; font-size: clamp(38px, 5.4vw, 84px); line-height: 1; max-width: 14ch; margin-bottom: clamp(28px, 3vw, 44px); text-wrap: balance; }

@media (max-width: 900px) {
  .lu-hero { flex-direction: column; min-height: 0; }
  .lu-hero-copy { width: auto; min-height: 0; padding: clamp(24px, 4vh, 48px) var(--pad) 0; }
  .lu-title { margin-top: 0; padding-top: 48px; }
  .lu-mark { padding: clamp(48px, 10vw, 72px) var(--pad) clamp(56px, 12vw, 80px); }
  .lu-mark img { width: min(56vw, 300px); }
  .lu-feats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lu-feat:nth-child(3) { border-left: 0; }
  .lu-feat:nth-child(n+3) { border-top: 1px solid var(--lu-line); }
  .lu-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lu-about { grid-template-columns: minmax(0, 1fr); }
  .lu-about-img img { min-height: 0; aspect-ratio: 4 / 4.2; }
  .lu-work-intro { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .lu-feat { padding: 24px 20px 28px; }
  .lu-feat h3 { font-size: 19px; }
  .lu-feat p { font-size: 13.5px; }
  .lu-chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--pad) * -1); padding: 0 var(--pad) 4px; scrollbar-width: none; }
  .lu-chips::-webkit-scrollbar { display: none; }
  .lu-chips button { flex: none; }
  .lu-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 12px; }
  .lu-prod-text { font-size: 13px; }
  .lu-role-list li { font-size: 18px; }
  .lu-films { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(var(--pad) * -1); padding: 0 var(--pad); scroll-padding-inline: var(--pad); scrollbar-width: none; }
  .lu-films::-webkit-scrollbar { display: none; }
  .lu-films .lu-shot { flex: 0 0 62vw; scroll-snap-align: start; }
}
@media (prefers-reduced-motion: reduce) {
  .lu-prod-img img, .lu-btn, .lu-chips button { transition: none; }
}
