/* Ebru Yaman — intro: a scroll-driven descent from orbit to the office balcony. */

@property --write {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 0%;
}

:root {
  color-scheme: dark;
  --ink: #f6f2ea;
  --ink-soft: rgb(246 242 234 / 0.78);
  --ink-faint: rgb(246 242 234 / 0.5);
  --night: #000;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
  --gutter: clamp(20px, 5.5vw, 96px);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; }
html { background: var(--night); -webkit-text-size-adjust: 100%; }
/* the camera moves, the page does not: gestures are read by intro.js */
.js, .js body { height: 100%; overflow: hidden; overscroll-behavior: none; }
body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font: 400 17px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; }

/* ---------- Stage ---------- */
.stage {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background: #000;
}
.stage canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.screen { position: absolute; inset: 0; }
.layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  pointer-events: none;
}
.scrim {
  position: absolute;
  inset: 0;
  opacity: var(--scrim, 0);
  background:
    linear-gradient(90deg, rgb(0 0 0 / .55) 0%, rgb(0 0 0 / .28) 32%, transparent 58%),
    linear-gradient(0deg, rgb(0 0 0 / .45) 0%, transparent 42%);
  pointer-events: none;
}
.scrim.right {
  background:
    linear-gradient(270deg, rgb(0 0 0 / .45) 0%, rgb(0 0 0 / .2) 30%, transparent 55%),
    linear-gradient(0deg, rgb(0 0 0 / .3) 0%, transparent 40%);
}
.vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 120% 95% at 50% 46%, transparent 55%, rgb(0 0 0 / .5) 100%);
  pointer-events: none;
}
.grain {
  position: absolute;
  inset: -50%;
  opacity: .075;
  mix-blend-mode: overlay;
  background-size: 220px 220px;
  pointer-events: none;
}

/* ---------- Opening: the handwritten name ---------- */
.brand {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}
.name {
  position: absolute;
  left: 0;
  top: 0;
  width: min(62vw, 620px);
  margin: 0;
  transform-origin: 0 0;
  will-change: transform, opacity;
}
.name img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 18px rgb(255 255 255 / .12)) drop-shadow(0 1px 6px rgb(0 0 0 / .35));
  /* Ink runs left to right behind a soft pen edge */
  -webkit-mask-image: linear-gradient(90deg, #000 calc(var(--write) - 6%), transparent var(--write));
  mask-image: linear-gradient(90deg, #000 calc(var(--write) - 6%), transparent var(--write));
  --write: 0%;
}
.is-ready .name img { animation: write 3.1s cubic-bezier(.55, .08, .35, 1) .9s forwards; }
@keyframes write { to { --write: 112%; } }
.logo-slot {
  position: absolute;
  left: var(--gutter);
  top: clamp(18px, 3.4vh, 34px);
  width: clamp(112px, 11vw, 150px);
  aspect-ratio: 778 / 283;
}

.cue {
  position: fixed;
  left: 50%;
  bottom: clamp(24px, 5vh, 48px);
  z-index: 3;
  margin: 0;
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  gap: 14px;
  font-size: 11px;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--ink-faint);
  opacity: 0;
  transition: opacity 1.2s ease, color .3s;
  pointer-events: none;
  padding: 10px 16px 0;
  border: 0;
  background: none;
  font-family: inherit;
  cursor: pointer;
}
.cue.is-on { opacity: 1; pointer-events: auto; }
.cue.is-waiting i::after { animation-duration: .9s; }
.cue.is-waiting span::after { content: " · yükleniyor"; letter-spacing: .2em; }
.cue:hover { color: var(--ink); }
.cue:focus-visible { outline: 1px solid var(--ink-soft); outline-offset: 4px; border-radius: 4px; }
.cue span { padding-left: .32em; }
.cue i {
  position: relative;
  width: 1px;
  height: 46px;
  background: rgb(246 242 234 / .16);
  overflow: hidden;
}
.cue i::after {
  content: "";
  position: absolute;
  left: 0;
  top: -40%;
  width: 1px;
  height: 40%;
  background: var(--ink);
  animation: drip 2.2s var(--ease-out) infinite;
}
@keyframes drip { to { top: 100%; } }

/* ---------- The rail: altitude + every stop, clickable ----------
   A thin strip at the right edge of the screen, so the scenes keep their space: a dot per stop (its name on hover),
   and the altitude in a small pill that rides with the marker. In the office the pill steps away too. */
.rail {
  position: fixed;
  right: 14px;
  top: 50%;
  z-index: 3;
  width: 26px;
  height: min(54vh, 470px);
  transform: translateY(-50%);
  opacity: 0;
  transition: opacity .9s ease;
  pointer-events: none;
  font-variant-numeric: tabular-nums;
}
.rail.is-on { opacity: 1; }
/* a soft frosted backing so the strip reads over white boards and sunlit walls alike */
.rail::before {
  content: "";
  position: absolute;
  inset: -14px 0;
  border-radius: 99px;
  background: rgb(12 10 8 / .26);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  backdrop-filter: blur(14px) saturate(1.1);
  box-shadow: inset 0 0 0 1px rgb(255 240 220 / .1);
}
.rail.is-on .rail-stops button { pointer-events: auto; }
.rail-track {
  position: absolute;
  right: 12px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgb(246 242 234 / .26);
}
.rail-track i {
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: calc(var(--m, 0) * 100%);
  background: rgb(246 242 234 / .85);
}
.rail-stops { margin: 0; padding: 0; list-style: none; }
.rail-stops li {
  position: absolute;
  right: 12px;
  top: calc(var(--y) * 100%);
  transform: translateY(-50%);
}
.rail-stops button {
  position: relative;
  display: flex;
  align-items: center;
  margin-right: -12px;
  padding: 9px;
  border: 0;
  background: none;
  color: var(--ink);
  font: 500 10.5px/1 var(--sans);
  letter-spacing: .14em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  pointer-events: none;
}
.rail-stops button::after {
  content: "";
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: rgb(246 242 234 / .4);
  box-shadow: 0 0 0 1px rgb(0 0 0 / .12);
  transition: background .35s, transform .35s;
}
.rail-stops button:hover::after { transform: scale(1.35); }
.rail-stops .is-past button::after { background: rgb(246 242 234 / .8); }
.rail-stops .is-here button::after { background: var(--ink); }
.rail-stops button:focus-visible { outline: none; }
.rail-stops button:focus-visible::after { box-shadow: 0 0 0 2px var(--ink); }
/* every stop's name stands to the left of its dot, faint; the stop on screen is fully visible */
.rail-stops .rl {
  position: absolute;
  right: 30px;
  top: 50%;
  translate: 0 -50%;
  color: rgb(246 242 234 / .58);         /* faint by the colour, so the dark outline stays and it reads over bright sky */
  text-shadow: 0 0 1px rgb(0 0 0 / .5), 0 0 7px rgb(0 0 0 / .38), 0 1px 14px rgb(0 0 0 / .4);
  transition: color .6s ease;
}
.rail-stops .is-here .rl { color: var(--ink); }
.rail-stops button:hover .rl, .rail-stops button:focus-visible .rl { color: rgb(246 242 234 / .9); }
/* the marker: a dot at the end of the filled track */
.rail-track i::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 0 0 4px rgb(246 242 234 / .18);
  transform: translate(-50%, 50%);
}
/* the altitude: a small readout above the strip (the names keep the side of the strip to themselves) */
.rail-mark {
  position: absolute;
  right: -4px;
  bottom: calc(100% + 22px);
  display: grid;
  justify-items: end;
  padding: 4px 9px 5px;
  border-radius: 99px;
  background: rgb(12 10 8 / .3);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  white-space: nowrap;
  text-shadow: 0 0 1px rgb(0 0 0 / .5), 0 0 7px rgb(0 0 0 / .38), 0 1px 14px rgb(0 0 0 / .4);
  pointer-events: none;
}
.rail-alt { font-size: 13px; font-weight: 400; letter-spacing: -.01em; }
.rail-sub {
  margin-top: 1px;
  font-size: 8.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.rail-sub:empty { display: none; }

/* in the office the rail goes away altogether, so the room stays clear */
.rail.is-swapping { opacity: 0; transition: opacity .4s ease; }
.rail-slim .rail, .rail-slim .rail.is-on { opacity: 0; visibility: hidden; transition: opacity .4s ease, visibility 0s linear .4s; }

/* ---------- Story stations ---------- */
.story { position: relative; z-index: 2; }
.js .station {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 var(--gutter);
  pointer-events: none;
  visibility: hidden;
}
.js .station.is-on { visibility: visible; }
.station.side-right { align-items: flex-end; text-align: right; padding-right: calc(var(--gutter) + 170px); }
.station.low { justify-content: flex-end; padding-bottom: clamp(56px, 14vh, 150px); }
.js [data-i] {
  opacity: var(--p, 0);
  transform: translate3d(0, calc((1 - var(--p, 0)) * 22px), 0);
  filter: blur(calc((1 - var(--p, 0)) * 6px));
  will-change: opacity, transform, filter;
}
.station p, .station h2 { margin: 0; text-shadow: 0 1px 2px rgb(0 0 0 / .25), 0 2px 28px rgb(0 0 0 / .35); }
/* above the clouds the ground is bright: the text there is inked in the night blue of the sky above it */
.station[data-key="C"] { --cloud-ink: #10203a; }
.station[data-key="C"] .label, .station[data-key="C"] .about { color: var(--cloud-ink); text-shadow: 0 0 1px rgb(255 250 240 / .35), 0 0 22px rgb(255 248 236 / .7), 0 0 48px rgb(255 248 236 / .45); }
.station[data-key="C"] .label { color: rgb(16 32 58 / .82); font-weight: 600; }
.station[data-key="C"] .about { font-weight: 400; }
.js:has(.station[data-key="C"].is-on) .cue { color: #10203a; text-shadow: 0 0 16px rgb(255 248 236 / .8); }
.js:has(.station[data-key="C"].is-on) .cue i { background: rgb(16 32 58 / .22); }
.js:has(.station[data-key="C"].is-on) .cue i::after { background: #10203a; }

.label {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.label::before {
  content: "";
  width: 34px;
  height: 1px;
  background: currentColor;
}
.about {
  margin-top: 26px !important;
  max-width: 21ch;
  font-size: clamp(26px, 3.15vw, 50px);
  font-weight: 300;
  line-height: 1.16;
  letter-spacing: -.018em;
  text-wrap: balance;
}
.coords {
  position: absolute;
  left: 50%;
  bottom: clamp(40px, 9vh, 96px);
  translate: -50% 0;
  font-size: 12px;
  letter-spacing: .34em;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.figure {
  display: flex;
  align-items: flex-start;
  font-size: clamp(96px, 15.5vw, 250px);
  font-weight: 200;
  line-height: .86;
  letter-spacing: -.045em;
  font-variant-numeric: tabular-nums;
}
.plus {
  font-size: .42em;
  font-weight: 200;
  line-height: 1;
  margin: .1em 0 0 .06em;
  color: var(--ink-soft);
}
.caption {
  margin-top: 18px !important;
  font-size: clamp(17px, 1.6vw, 24px);
  font-weight: 400;
  letter-spacing: .02em;
  color: var(--ink-soft);
}

/* indoor stops: a glass card over a busy scene */
.js .station.card { justify-content: flex-end; padding-bottom: clamp(32px, 7vh, 72px); }
.card .panel { max-width: 500px; }
.card-text {
  margin-top: 16px !important;
  font-size: clamp(21px, 1.85vw, 28px);
  font-weight: 400;
  line-height: 1.28;
  letter-spacing: -.012em;
  text-wrap: pretty;
}
.card .label { color: rgb(255 240 222 / .78); }

/* over the Bosphorus: four numbers, one after another */
.crossing {
  position: fixed;
  left: 0;
  right: 0;
  bottom: clamp(36px, 9vh, 96px);
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, auto);
  justify-content: space-between;
  gap: 24px;
  margin: 0;
  padding: 0 var(--gutter);
  pointer-events: none;
  visibility: hidden;
}
.crossing.is-on { visibility: visible; }
.crossing::before {
  content: "";
  position: fixed;
  inset: auto 0 0 0;
  height: 55vh;
  z-index: -1;
  background: linear-gradient(0deg, rgb(0 0 0 / .62), rgb(0 0 0 / .22) 55%, transparent);
  opacity: var(--vis, 0);
}
.stat {
  display: grid;
  gap: 10px;
  margin: 0;
  opacity: var(--p, 0);
  transform: translate3d(0, calc((1 - var(--p, 0)) * 18px), 0);
  filter: blur(calc((1 - var(--p, 0)) * 5px));
  text-shadow: 0 1px 2px rgb(0 0 0 / .25), 0 2px 24px rgb(0 0 0 / .35);
}
.stat-num {
  display: flex;
  align-items: flex-start;
  font-size: clamp(54px, 7vw, 116px);
  font-weight: 200;
  line-height: .9;
  letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
}
.stat-label { font-size: clamp(15px, 1.3vw, 20px); color: var(--ink); letter-spacing: .01em; }

/* the balcony: the last word, read over the view */
.station.final { justify-content: center; }
.panel {
  max-width: 470px;
  padding: clamp(26px, 3vw, 40px);
  border-radius: 22px;
  background: rgb(14 10 8 / .34);
  -webkit-backdrop-filter: blur(22px) saturate(1.25);
  backdrop-filter: blur(22px) saturate(1.25);
  box-shadow: inset 0 0 0 1px rgb(255 240 220 / .14), 0 30px 80px -30px rgb(0 0 0 / .5);
  opacity: var(--panel, 0);
  transform: translate3d(0, calc((1 - var(--panel, 0)) * 30px), 0);
}
.final p, .final h2 { text-shadow: none; }
.final-title {
  margin-top: 22px !important;
  font-size: clamp(26px, 2.5vw, 36px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -.02em;
  text-wrap: balance;
}
.final-body {
  margin-top: 16px !important;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
}
.services {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}
.services li {
  padding: 6px 13px;
  border-radius: 99px;
  font-size: 13px;
  letter-spacing: .01em;
  box-shadow: inset 0 0 0 1px rgb(255 240 220 / .3);
}
.contact {
  display: grid;
  gap: 4px;
  margin-top: 24px !important;
  padding-top: 20px;
  border-top: 1px solid rgb(255 240 220 / .18);
  font-size: 16px;
}
.contact a {
  width: fit-content;
  text-decoration: none;
  pointer-events: auto;
  background: linear-gradient(currentColor 0 0) 0 100% / 0 1px no-repeat;
  transition: background-size .5s var(--ease-out);
}
.contact a:hover, .contact a:focus-visible { background-size: 100% 1px; }
.contact a:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 2px; }
.js .final.is-on .panel { pointer-events: auto; }

/* ---------- Loading line ---------- */
.loading {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  height: 2px;
  pointer-events: none;
  transition: opacity .8s ease;
}
.loading i {
  display: block;
  height: 100%;
  width: calc(var(--loaded, 0) * 100%);
  background: rgb(246 242 234 / .35);
  transition: width .3s linear;
}
.loading.is-done { opacity: 0; }


/* ---------- Phones ---------- */
@media (max-width: 760px) {
  .name { width: 80vw; }
  .rail { right: 6px; top: 13vh; height: 38vh; transform: none; width: 26px; }
  .rail::before { inset: -14px 0 -14px 0; border-radius: 99px; }
  .rail-track, .rail-stops li { right: 12px; }
  .rail-stops button { font-size: 9px; letter-spacing: .12em; }
  .rail-stops .rl { right: 28px; }
  .rail-stops button { padding: 9px 9px 9px 9px; margin-right: -12px; }
  .rail-mark { bottom: calc(100% + 18px); }
  .rail-alt { font-size: 12px; }
  .rail-sub { font-size: 8px; }
  .station.side-right { align-items: flex-start; text-align: left; padding-right: var(--gutter); }
  .js .station { justify-content: flex-end; padding-bottom: max(64px, 12vh); }
  .js .station[data-key="C"] { padding-bottom: max(128px, 17vh); }   /* clear of the scroll hint below it */
  .about { font-size: 27px; max-width: 18ch; }
  .figure { font-size: clamp(92px, 30vw, 140px); }
  .js .station.final { justify-content: flex-end; padding: 0 12px max(12px, env(safe-area-inset-bottom)); }
  .panel { max-width: none; padding: 20px 20px 18px; border-radius: 20px; }
  .final-title { font-size: 23px; margin-top: 12px !important; }
  .final-body { font-size: 14px; line-height: 1.5; margin-top: 10px !important; }
  .services { margin-top: 14px; gap: 6px; }
  .services li { padding: 5px 11px; font-size: 12px; }
  .contact { margin-top: 16px !important; padding-top: 14px; font-size: 15px; }
  .scrim, .scrim.right {
    background: linear-gradient(0deg, rgb(0 0 0 / .62) 0%, rgb(0 0 0 / .25) 45%, transparent 70%);
  }
  .coords { letter-spacing: .24em; }
  .js .station.card { padding: 0 12px max(14px, env(safe-area-inset-bottom)); }
  .card .panel { padding: 20px 20px 22px; }
  .card-text { font-size: 20px; margin-top: 12px !important; }
  .crossing { grid-template-columns: repeat(2, auto); row-gap: 26px; bottom: max(40px, 8vh); }
  .cue.over-card { opacity: 0; pointer-events: none; }
  .stat-num { font-size: clamp(50px, 15vw, 72px); }
}
@media (max-width: 760px) and (max-height: 700px) {
  .final-body { display: none; }
}

/* ---------- Without JavaScript: a plain stacked page ---------- */
.no-js .stage, .no-js .cue, .no-js .rail, .no-js .loading { display: none; }
.no-js .brand { position: static; padding: 18vh var(--gutter) 6vh; }
.no-js .name { position: static; transform: none; }
.no-js .name img { -webkit-mask-image: none; mask-image: none; }
.no-js .station { padding: 8vh var(--gutter); }
.no-js .panel { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .grain { animation: none; }
  .cue i::after { animation: none; top: 30%; }
  .is-ready .name img { animation: none; --write: 112%; }
}

/* ---------- The office: a room to look around in ---------- */
.pano {
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  transform-origin: 0 0;
  will-change: transform, opacity;
}
.pano img, .pano video {
  position: absolute;
  top: 0;
  display: block;
  max-width: none;
  pointer-events: none;
  user-select: none;
}
.pano video {
  /* the living part fades into the still room around it */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%);
}
/* a window's water: the ferry in it shows only where the mask is white (posts, frames, plants hide it) */
.pano .fwin {
  position: absolute;
  overflow: hidden;
  pointer-events: none;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}
.pano .fwin .ferry { position: absolute; left: 0; max-width: none; will-change: transform; }
.office {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  transition: opacity .9s var(--ease-out), visibility 0s linear .9s;
}
.office.is-on { visibility: visible; opacity: 1; transition: opacity .9s var(--ease-out) .25s, visibility 0s; }
.js.is-office .stage { cursor: grab; }
.js.is-office.is-dragging .stage { cursor: grabbing; }
/* phones: a sideways finger turns the room (the page, not the browser, takes horizontal moves) */
.js.is-office { touch-action: pan-y pinch-zoom; }
.hot {
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font: 500 13px/1 var(--sans);
  letter-spacing: .04em;
  cursor: pointer;
  pointer-events: auto;
  translate: -11px -11px;
  transform: translate3d(var(--sx, 0px), var(--sy, 0px), 0);
}
.hot i {
  position: relative;
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgb(255 244 230 / .9);
  box-shadow: 0 0 0 5px rgb(255 244 230 / .22), 0 4px 18px rgb(0 0 0 / .35);
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.hot i::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1px solid rgb(255 244 230 / .55);
  animation: hot-ring 2.6s var(--ease-out) infinite;
}
@keyframes hot-ring { 0% { transform: scale(.7); opacity: .9; } 70%, 100% { transform: scale(1.9); opacity: 0; } }
.hot span {
  padding: 8px 13px;
  border-radius: 99px;
  background: rgb(14 10 8 / .45);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: inset 0 0 0 1px rgb(255 240 220 / .2);
  white-space: nowrap;
  transition: background .3s ease;
}
/* out of view: a chip at the screen edge, pointing the way */
.hot.at-right { flex-direction: row-reverse; translate: calc(-100% + 11px) -11px; }
.hot.at-right span::after { content: "\203A"; margin-left: 8px; }
.hot.at-left span::before { content: "\2039"; margin-right: 8px; }
.hot.is-edge i { width: 14px; height: 14px; margin: 4px; }
.hot:hover i, .hot:focus-visible i { transform: scale(1.15); box-shadow: 0 0 0 7px rgb(255 244 230 / .3), 0 4px 22px rgb(0 0 0 / .4); }
.hot:hover span, .hot:focus-visible span { background: rgb(14 10 8 / .66); }
.hot:focus-visible { outline: none; }
.hot:focus-visible span { box-shadow: inset 0 0 0 2px var(--ink); }
.look {
  position: absolute;
  left: 50%;
  bottom: clamp(26px, 6vh, 56px);
  translate: -50% 0;
  margin: 0;
  padding: 9px 16px;
  border-radius: 99px;
  background: rgb(14 10 8 / .4);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--ink-soft);
  white-space: nowrap;
  transition: opacity .8s ease;
}
.look span { display: inline-block; margin: 0 6px; color: var(--ink); }
.office.has-looked .look { opacity: 0; }

/* ---------- Full-screen pages ----------
   Every object in the office opens into a page of its own that covers the screen. It grows out of the dot that was
   clicked (intro.js, a clip-path circle) and shrinks back into it on close. */
dialog { color: var(--ink); }
dialog::backdrop { background: rgb(6 4 3 / .55); }
.fs {
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --fs-bg: #15100c;
  position: fixed;
  inset: 0;
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: hidden auto;
  overscroll-behavior: contain;
  background: var(--fs-bg);
  background-attachment: fixed;
  color: var(--ink);
  font: 400 16px/1.6 var(--sans);
  scrollbar-width: thin;
  scrollbar-color: rgb(246 242 234 / .28) transparent;
}
.fs ::selection { background: rgb(240 214 150 / .4); color: inherit; }
.fs a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 1px; }
.fs :focus-visible { outline: 2px solid rgb(246 226 180 / .9); outline-offset: 3px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.dlg-close {
  position: fixed;
  top: max(14px, env(safe-area-inset-top));
  right: max(14px, env(safe-area-inset-right));
  z-index: 60;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgb(18 12 9 / .6);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: inset 0 0 0 1px rgb(255 240 220 / .2);
  color: var(--ink);
  cursor: pointer;
  transition: background .2s ease, transform .3s var(--ease-out);
}
.dlg-close:hover { background: rgb(60 42 30 / .8); transform: rotate(90deg); }
.dlg-close:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.fs-in {
  position: relative;
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: clamp(84px, 12vh, 132px) var(--gutter) clamp(64px, 10vh, 110px);
}
.fs h2 {
  margin: 0;
  font: 400 clamp(40px, 5.4vw, 78px)/1.02 var(--serif);
  letter-spacing: -.02em;
  text-wrap: balance;
}
.fs h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -.01em; text-wrap: balance; }
.fs .lede {
  max-width: 58ch;
  margin: 22px 0 0;
  font-size: clamp(17px, 1.35vw, 21px);
  line-height: 1.55;
  color: var(--ink-soft);
  text-wrap: pretty;
}
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 0; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 99px;
  background: var(--ink);
  color: #1a120d !important;
  text-decoration: none;
  font-weight: 500;
  transition: background .2s ease, box-shadow .2s ease;
}
.btn.ghost { background: none; color: var(--ink) !important; box-shadow: inset 0 0 0 1px rgb(255 240 220 / .45); }
.btn:hover { background: #fff7ea; }
.btn.ghost:hover { background: rgb(255 240 220 / .1); }

/* ---------- Ekibimiz ---------- */
.team-dlg { --fs-bg: radial-gradient(90% 70% at 78% -12%, #45301f 0%, #21160f 48%, #120d0a 100%); }
.lead-mb {
  display: grid;
  grid-template-columns: minmax(220px, 360px) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: end;
  margin: clamp(48px, 7vh, 80px) 0 0;
  padding-bottom: clamp(40px, 6vh, 64px);
  border-bottom: 1px solid rgb(255 240 220 / .14);
}
.lead-mb img, .mb img, .director img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 22px 40px -22px rgb(0 0 0 / .85), 0 0 0 1px rgb(255 240 220 / .08);
}
.lead-mb h3 { margin: 0; font-size: clamp(34px, 3.6vw, 52px); line-height: 1.05; }
.duty { margin: 8px 0 0; font-size: 15px; color: rgb(240 214 170 / .82); }
.lead-mb .bio { max-width: 62ch; margin: 18px 0 0; font-size: 17px; line-height: 1.65; color: var(--ink-soft); }
.mbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 196px), 1fr));
  gap: clamp(40px, 5vh, 56px) clamp(24px, 3vw, 40px);
  margin: clamp(40px, 6vh, 64px) 0 0;
  padding: 0;
  list-style: none;
}
.mb img { width: 100%; }
.mb h3 { margin: 18px 0 0; font-size: 24px; line-height: 1.15; }
.mb .duty { font-size: 14px; }
.mb .bio { margin: 10px 0 0; font-size: 14.5px; line-height: 1.6; color: rgb(246 242 234 / .72); text-wrap: pretty; }

/* ---------- Şirket Tiyatrosu ---------- */
.theatre-dlg {
  --fs-bg: radial-gradient(55% 48% at 50% -6%, rgb(255 210 150 / .2), transparent 70%), linear-gradient(180deg, #4b0e0f 0%, #2b0a0b 42%, #170808 100%);
}
/* velvet at both sides and a valance on top: the page is a stage */
.curtain i {
  position: fixed;
  top: 0;
  bottom: 0;
  z-index: 2;
  width: clamp(16px, 3.6vw, 58px);
  background:
    linear-gradient(90deg, rgb(0 0 0 / .45), transparent 40%, rgb(0 0 0 / .25)),
    repeating-linear-gradient(90deg, #4f0d0f 0 9px, #75181b 9px 15px, #3c0a0b 15px 21px);
  box-shadow: 0 0 40px rgb(0 0 0 / .6);
  pointer-events: none;
}
.curtain i:first-child { left: 0; }
.curtain i:last-child { right: 0; transform: scaleX(-1); }
.curtain::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  z-index: 3;
  height: clamp(14px, 2.6vh, 26px);
  background: radial-gradient(14px 12px at 50% 0, #6a1517 98%, transparent) 0 0 / 28px 100% repeat-x;
  filter: drop-shadow(0 4px 6px rgb(0 0 0 / .5));
  pointer-events: none;
}
.th { padding-left: max(var(--gutter), calc(3.6vw + 28px)); padding-right: max(var(--gutter), calc(3.6vw + 28px)); }
.th { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); column-gap: clamp(28px, 4vw, 64px); align-items: end; }
.th > * { grid-column: 1 / -1; }
.th > .th-hero { grid-column: 1; }
.th > .th-photo { grid-column: 2; }
.th-hero h2 { font-size: clamp(40px, 5.8vw, 84px); }
.th-photo { margin: 0; }
.th-photo img, .on-stage img {
  display: block;
  width: 100%;
  height: auto;
  border: 8px solid #f4ead8;
  box-shadow: 0 30px 60px -28px rgb(0 0 0 / .9);
}
.th-photo img { max-width: 520px; aspect-ratio: 448 / 276; object-fit: cover; rotate: 1.2deg; }
.playbill {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: clamp(28px, 4vw, 64px);
  margin: clamp(48px, 8vh, 88px) 0 0;
  padding: clamp(28px, 4vw, 56px);
  background: #f4ead8;
  color: #2b1a14;
  box-shadow: 0 30px 70px -30px rgb(0 0 0 / .9);
  font-family: var(--serif);
}
.playbill h3 { margin: 0 0 18px; font-size: clamp(24px, 2.2vw, 32px); line-height: 1.15; color: #5b1111; }
.pb-list, .pb-steps { margin: 0; padding: 0; list-style: none; font-size: 17px; line-height: 1.5; }
.pb-list li { position: relative; padding: 9px 0 9px 22px; border-top: 1px solid rgb(91 17 17 / .16); }
.pb-list li::before { content: ""; position: absolute; left: 2px; top: 1.05em; width: 9px; height: 1px; background: #8a2a20; }
.pb-steps { counter-reset: st; }
.pb-steps li { counter-increment: st; display: grid; grid-template-columns: 34px 1fr; padding: 9px 0; border-top: 1px solid rgb(91 17 17 / .16); }
.pb-steps li::before { content: counter(st); font-size: 22px; line-height: 1.1; color: #8a2a20; }
.director {
  display: grid;
  grid-template-columns: minmax(160px, 240px) minmax(0, 1fr);
  gap: clamp(24px, 3.5vw, 48px);
  align-items: center;
  margin: clamp(56px, 9vh, 96px) 0 0;
}
.director h3 { margin: 0; font-size: clamp(30px, 3vw, 42px); }
.director p:not(.duty) { max-width: 60ch; margin: 14px 0 0; color: var(--ink-soft); font-size: 17px; }
.on-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
  margin: clamp(56px, 9vh, 96px) 0 0;
  padding-top: clamp(40px, 6vh, 64px);
  border-top: 1px solid rgb(255 220 200 / .16);
}
.on-stage h3 { margin: 0; font-size: clamp(28px, 2.8vw, 40px); }
.on-stage p:not(.cta) { margin: 14px 0 0; color: var(--ink-soft); font-size: 17px; }
.on-stage figure { margin: 0; }
.on-stage img { aspect-ratio: 4 / 3; object-fit: cover; }

/* ---------- İletişim ---------- */
.contact-dlg { --fs-bg: radial-gradient(80% 70% at 15% 0%, #3f2a1b 0%, #1d140e 52%, #110c09 100%); }
.ctc { display: flex; flex-direction: column; justify-content: center; min-height: 100dvh; }
.ctc h2 { max-width: 18ch; }
.ct-big { margin: clamp(36px, 6vh, 64px) 0 0; padding: 0; list-style: none; }
.ct-big li + li { margin-top: 10px; }
.ct-big a {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 10px 0;
  font: 400 clamp(26px, 3.6vw, 52px)/1.1 var(--serif);
  letter-spacing: -.01em;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.ct-big a span { display: flex; flex-direction: column; }
.ct-big small { font: 400 13px/1.4 var(--sans); color: rgb(240 214 170 / .78); letter-spacing: .02em; }
.ct-big svg { flex: none; width: 26px; height: 26px; color: rgb(240 214 170 / .9); }
.ct-big a:hover span { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 10px 22px; max-width: 760px; margin: clamp(36px, 6vh, 56px) 0 0; padding-top: 24px; border-top: 1px solid rgb(255 240 220 / .14); font-size: 16px; }
.facts dt { color: rgb(246 242 234 / .55); }
.facts dd { margin: 0; color: var(--ink-soft); }

/* ---------- Bize ulaşın: every call / e-mail button opens this card ----------
   The number and the address are always shown, with a direct call / write and a copy for each, so it works on a
   computer with no phone or mail app as well as on a phone. */
.reveal {
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  width: min(460px, calc(100vw - 32px));
  padding: 28px 26px 22px;
  border: 0;
  border-radius: 22px;
  background: #1d1510;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px rgb(255 240 220 / .14), 0 40px 100px -30px rgb(0 0 0 / .85);
  font: 400 16px/1.5 var(--sans);
}
.reveal::backdrop { background: rgb(6 4 3 / .55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.reveal[open] { animation: rv-in .35s var(--ease-out); }
@keyframes rv-in { from { opacity: 0; transform: translateY(10px) scale(.97); } }
.reveal .dlg-close { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; background: rgb(255 244 230 / .08); box-shadow: none; }
.reveal h2 { margin: 0 44px 14px 0; font: 400 28px/1.1 var(--serif); letter-spacing: -.01em; }
.rv-list { margin: 0; padding: 0; list-style: none; }
.rv-list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 4px 14px;
  padding: 14px 0;
  border-top: 1px solid rgb(255 240 220 / .12);
}
.rv-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgb(255 244 230 / .08); color: rgb(240 214 170 / .95); }
.rv-val { display: flex; flex-direction: column; min-width: 0; }
.rv-val small { font-size: 12.5px; color: rgb(246 242 234 / .62); }
.rv-val b { font: 400 clamp(16px, calc((100vw - 144px) / 13.2), 22px)/1.2 var(--serif); letter-spacing: -.005em; overflow-wrap: break-word; user-select: all; }   /* the address fits one line on a phone; if not, it breaks after the @ */
.rv-act { grid-column: 2; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.rv-go, .rv-copy {
  padding: 8px 15px;
  border: 0;
  border-radius: 99px;
  font: 500 14px/1.2 var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.rv-go { background: var(--ink); color: #1a120d; }
.rv-go:hover { background: #fff7ea; }
.rv-copy { background: none; color: var(--ink); box-shadow: inset 0 0 0 1px rgb(255 240 220 / .38); }
.rv-copy:hover { background: rgb(255 240 220 / .1); }
.rv-copy.is-done { background: rgb(160 200 150 / .2); box-shadow: inset 0 0 0 1px rgb(170 210 160 / .6); }
.rv-go:focus-visible, .rv-copy:focus-visible { outline: 2px solid rgb(246 226 180 / .9); outline-offset: 2px; }

/* ---------- The references wall ----------
   intro.js starts .refs-zoom exactly over the wall in the room and lets it grow to the whole screen; then it
   softens into a backdrop and the plaques come up sharp in front of it, over the whole screen. */
.refs-dlg {
  position: fixed;
  inset: 0;
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  overflow: hidden;
}
.refs-dlg[open] { display: block; }
.refs-zoom {
  position: absolute;
  inset: 0;
  background: #2a1a0e url("media/stills/refs-wall.webp") center / cover no-repeat;
  transform-origin: 0 0;
  transition: transform .85s cubic-bezier(.6, .02, .2, 1), filter .7s ease;
}
.refs-dlg.is-in .refs-zoom { filter: blur(12px) brightness(.36) saturate(.9); }
.refs-panel {
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  position: absolute;
  inset: 0;
  overflow: hidden auto;
  overscroll-behavior: contain;
  padding: clamp(84px, 12vh, 132px) var(--gutter) clamp(56px, 8vh, 96px);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s ease, transform .7s var(--ease-out);
  scrollbar-width: thin;
  scrollbar-color: rgb(246 242 234 / .28) transparent;
}
.refs-dlg.is-in .refs-panel { opacity: 1; transform: none; }
.refs-panel > * { max-width: 1320px; margin-left: auto; margin-right: auto; }
.refs-panel h2 { margin-top: 0; margin-bottom: 0; font: 400 clamp(40px, 5.4vw, 78px)/1.02 var(--serif); letter-spacing: -.02em; }
.refs-panel .lede { margin-top: 18px; margin-bottom: 0; font-size: clamp(17px, 1.35vw, 21px); color: var(--ink-soft); }
.refs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 26px 22px;
  margin-top: clamp(32px, 5vh, 52px);
  padding: 0;
  list-style: none;
}
.refs-grid li { display: flex; flex-direction: column; align-items: center; gap: 10px; min-width: 0; }
.plq {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  border-radius: 2px;
  background: #f8f4ec;
  box-shadow: 0 0 0 1px rgb(120 84 34 / .55), 0 0 0 4px #b58a45, 0 0 0 5px rgb(80 52 20 / .6), 0 14px 24px -12px rgb(0 0 0 / .75);
}
.plq img { position: absolute; inset: 13% 12%; width: 76%; height: 74%; object-fit: contain; }
.refs-grid .nm { font-size: 12.5px; line-height: 1.3; text-align: center; color: var(--ink-soft); overflow-wrap: anywhere; }

/* ---------- The book ----------
   A real book on a desk lamp's pool of light: a leather cover, cream pages, and six tinted divider sheets whose tabs
   stand out of the fore-edge. A tab moves with its sheet: sections still ahead stand on the right, those behind
   you on the left. Pages turn one at a time; a tab or a contents line riffles through to its page. */
.book-dlg {
  --fs-bg: radial-gradient(62% 58% at 50% 48%, #3d2b1d 0%, #1d140e 58%, #0e0a08 100%);
  overflow: hidden;
  overflow: clip;              /* never scrolls, not even from script: the book stays where it is centred */
}
.book-dlg[open] { display: grid; place-items: center; place-content: center; }
/* the book fills the screen: as tall as the screen allows (a strip kept for the page controls), as wide as the
   tabs on both sides allow; everything on a page is sized from the page, so the print grows with it */
.book {
  --tw: clamp(58px, 5.6vw, 112px);
  --ph: min(calc(100dvh - 80px), calc((100vw - 2 * var(--tw) - 40px) / 1.44));
  --pw: calc(var(--ph) * .72);
  --n: 24;                     /* > the number of leaves */
  --dz: .35px;                 /* each leaf lies this much above the one under it in its pile */
  position: relative;
  width: calc(var(--pw) * 2);
  height: var(--ph);
  margin-top: -30px;
  perspective: calc(var(--ph) * 4.2);
  transform-style: preserve-3d;    /* one 3D scene: pages are drawn by their real depth */
  transition: transform 1s var(--ease-out);
}
/* the book's own thickness under the pages, and its shadow on the desk */
.book::before {
  content: "";
  position: absolute;
  inset: 1% 0 -1.2%;
  transition: left .5s ease;
  border-radius: 6px;
  background: #2a0b08;
  box-shadow: 0 40px 70px -24px rgb(0 0 0 / .85), 0 8px 18px rgb(0 0 0 / .45);
}
.book::before { transform: translateZ(-1px); }
.book[data-turn="0"]::before { left: 50%; }
.leaf {
  position: absolute;
  left: 50%;
  top: 0;
  width: var(--pw);
  height: var(--ph);
  transform-origin: 0 50%;
  transform-style: preserve-3d;
  transform: translateZ(calc((var(--n) - var(--i)) * var(--dz))) rotateY(0deg);
  transition: transform 1.05s cubic-bezier(.45, .05, .2, 1);
  cursor: pointer;
}
.leaf.is-turned { transform: translateZ(calc((var(--i) + 1) * var(--dz))) rotateY(-180deg); }
.face {
  position: absolute;
  inset: 0;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  overflow: hidden;
}
.face.back { transform: rotateY(180deg); }
.page {
  display: flex;
  flex-direction: column;
  padding: 7% 7.5% 9%;
  background:
    radial-gradient(120% 90% at 50% 40%, transparent 60%, rgb(140 100 50 / .1)),
    linear-gradient(90deg, rgb(110 80 40 / .22), rgb(110 80 40 / 0) 9%, rgb(110 80 40 / 0) 94%, rgb(110 80 40 / .1)),
    var(--tint, #f6efe1);
  color: #2b2119;
  font: 400 max(12px, calc(var(--pw) / 40))/1.5 var(--fs-serif, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif);
  overflow: hidden auto;
  scrollbar-width: none;
}
.face.back.page {
  background:
    radial-gradient(120% 90% at 50% 40%, transparent 60%, rgb(140 100 50 / .1)),
    linear-gradient(270deg, rgb(110 80 40 / .22), rgb(110 80 40 / 0) 9%, rgb(110 80 40 / 0) 94%, rgb(110 80 40 / .1)),
    var(--tint, #f6efe1);
}
.page ::selection { background: rgb(233 214 120 / .55); }
.page .rh {
  flex: none;
  margin: 0 0 1.1em;
  padding-bottom: .55em;
  border-bottom: 1px solid rgb(120 90 50 / .28);
  font-size: max(11px, .78em);
  color: #6b5640;
}
.page h3 { margin: 0 0 .45em; font-size: 2.15em; line-height: 1.05; color: #5b1712; }
.page h4 { margin: 0 0 .5em; font-size: 1.5em; font-weight: 400; line-height: 1.14; letter-spacing: -.01em; color: #3a1c14; text-wrap: balance; }
.page h5 { margin: 1em 0 .35em; font-size: 1.05em; font-weight: 600; color: #3a2a1d; }
.page .aim { margin: 0 0 .8em; color: #46362a; text-wrap: pretty; }
.page .pf { flex: none; height: 23%; margin: 0 0 1.1em; overflow: hidden; background: #efe5d2; }
.page .pf img, .dv-photo img, .page.photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: multiply;
  filter: saturate(.82) sepia(.1) contrast(.97);
}
.page .ct { margin: 0 0 .8em; padding: 0; list-style: none; }
.page .ct li { position: relative; margin: .16em 0; padding-left: 1.15em; }
.page .ct li::before { content: "–"; position: absolute; left: 0; color: #a07a2c; }
.page .actor { margin: .2em 0 .8em; }
.page mark { padding: .05em .15em; background: linear-gradient(transparent 12%, rgb(236 220 120 / .7) 12%, rgb(236 220 120 / .7) 88%, transparent 88%); color: inherit; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.page .who { margin: 0 0 .8em; color: #46362a; }
.page .who span { display: block; font-size: max(11px, .78em); color: #6b5640; }
.pg-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: .9em;
  margin: auto 0 0;
  padding-top: .7em;
  border-top: 1px solid rgb(120 90 50 / .3);
}
.pg-facts dt { font-size: max(11px, .74em); color: #6b5640; }
.pg-facts dd { margin: .1em 0 0; font-size: .92em; line-height: 1.3; }
.page .pull { margin: .2em 0 1em; padding-left: .9em; border-left: 1px solid #a07a2c; font-size: 1.2em; font-style: italic; line-height: 1.35; color: #5b1712; }
.page .phase { margin: 0 0 .6em; color: #46362a; }
.page .phase b { display: block; font-weight: 600; color: #3a2a1d; }
.folio { position: absolute; bottom: 3.6%; left: 50%; translate: -50% 0; font-size: max(11px, .8em); color: #6b5640; font-variant-numeric: oldstyle-nums; }
.page button { font: inherit; color: inherit; cursor: pointer; }
/* contents */
.toc h3 { font-size: 2.4em; margin-top: .6em; }
.toc-list { margin: 1em 0 0; padding: 0; list-style: none; }
.toc-list button, .dv-list button {
  display: flex;
  align-items: baseline;
  gap: .6em;
  width: 100%;
  padding: .45em 0;
  border: 0;
  border-bottom: 1px solid rgb(120 90 50 / .2);
  background: none;
  text-align: left;
}
.toc-list span { font-size: 1.12em; }
.toc-list i { flex: 1; border-bottom: 1px dotted rgb(120 90 50 / .5); translate: 0 -.3em; }
.toc-list b, .dv-list b { font-weight: 400; color: #6b5640; font-variant-numeric: oldstyle-nums; }
.toc-list button:hover span, .dv-list button:hover span { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.toc .dv-photo { margin: 1.4em 0 1em; }
.toc-note { margin: auto 0 0; font-size: max(11.5px, .86em); font-style: italic; color: #5e4a38; }
/* divider sheets: tinted stock */
.page.divider h3 { font-size: 2.3em; margin-top: .3em; }
.dv-lede { margin: 0 0 1em; font-size: 1.12em; font-style: italic; line-height: 1.45; color: #4a3a2c; }
.dv-list { margin: 0 0 1em; padding: 0; list-style: none; }
.dv-list button { justify-content: space-between; padding: .32em 0; }
.dv-photo { flex: 1 1 0; min-height: 22%; margin: auto 0 1.2em; overflow: hidden; background: #e8dcc6; position: relative; }
.dv-photo figcaption, .page.photo figcaption { position: absolute; inset: auto 0 0; padding: 1.6em .8em .5em; background: linear-gradient(transparent, rgb(20 12 6 / .62)); font-size: max(11px, .8em); font-style: italic; color: #fff8ea; }
.page.photo { padding: 7%; }
.page.photo figure { position: relative; flex: 1; margin: 0 0 6%; overflow: hidden; background: #e8dcc6; }
.page.last { justify-content: center; }
.page.last .cta { flex-direction: column; align-items: flex-start; gap: .4em; margin: .6em 0 1.4em; }
.page.last .cta a { color: #5b1712; font-size: 1.35em; text-decoration: none; border-bottom: 1px solid rgb(91 23 18 / .35); }
.page.last .toc-note { margin-top: 0; }
/* the leather cover */
.cover {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  border-radius: 3px 10px 10px 3px;
  background:
    radial-gradient(120% 90% at 30% 20%, rgb(255 255 255 / .08), transparent 60%),
    repeating-linear-gradient(35deg, rgb(255 255 255 / .015) 0 2px, transparent 2px 5px),
    linear-gradient(135deg, #5b1712, #3c0f0b);
  box-shadow: inset 6px 0 14px rgb(0 0 0 / .45), inset 0 0 0 10px rgb(0 0 0 / .08), inset 0 0 0 12px rgb(214 175 92 / .5);
  color: #e3c27a;
  text-align: center;
}
.cover-name {
  width: 68%;
  aspect-ratio: 778 / 283;
  background: linear-gradient(105deg, #a9772f, #f2d68f 42%, #b58637 64%, #e9c877);
  -webkit-mask: url("assets/name.png") center / contain no-repeat;
  mask: url("assets/name.png") center / contain no-repeat;
}
.cover-title { font: 400 calc(var(--pw) / 15)/1.15 "Iowan Old Style", Georgia, serif; }
.cover-sub { font: 500 11px/1 var(--sans); letter-spacing: .3em; color: rgb(227 194 122 / .7); }
.cover.inner { background: linear-gradient(90deg, #3c0f0b, #5b1712); box-shadow: inset -6px 0 14px rgb(0 0 0 / .45); }
.leaf:not(.is-turned):hover .face.front { filter: brightness(1.02); }
/* index tabs on the fore-edge */
.tab {
  position: absolute;
  right: calc(-1 * var(--tw) + 2px);
  top: calc(var(--ph) * .07 + var(--k) * var(--ph) * .143);
  width: var(--tw);
  height: calc(var(--ph) * .132);
  padding: 0;
  border: 0;
  background: none;
  transform-style: preserve-3d;
  cursor: pointer;
}
.tab span {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px 0 10px;
  border-radius: 0 7px 7px 0;
  background: linear-gradient(90deg, rgb(0 0 0 / .14), transparent 30%), var(--tc);
  box-shadow: 2px 3px 6px rgb(0 0 0 / .3);
  color: #2b2119;
  font: 500 max(10.5px, calc(var(--tw) / 8))/1.15 var(--sans);
  text-align: center;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transition: filter .2s ease;
}
.tab .tb { transform: rotateY(180deg); border-radius: 7px 0 0 7px; padding: 0 10px 0 6px; background: linear-gradient(270deg, rgb(0 0 0 / .14), transparent 30%), var(--tc); }
.tab:hover span { filter: brightness(1.08); }
.tab:focus-visible { outline: none; }
.tab:focus-visible span { box-shadow: 0 0 0 2px #fff4dc, 2px 3px 6px rgb(0 0 0 / .3); }
.book-chips { display: none; }
.book-nav {
  position: absolute;
  left: 50%;
  bottom: 10px;
  translate: -50% 0;
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--ink-soft);
  font-size: 13px;
  letter-spacing: .04em;
  font-variant-numeric: tabular-nums;
}
.book-nav button {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: rgb(255 244 230 / .12);
  color: var(--ink);
  cursor: pointer;
}
.book-nav button:disabled { opacity: .3; cursor: default; }
.book-nav button:not(:disabled):hover, .book-nav button:focus-visible { background: rgb(255 244 230 / .24); outline: none; }

/* phones: one page at a time, tall pages, the tabs become a row of section chips above the book */
@media (max-width: 760px) {
  .hot span { padding: 7px 11px; font-size: 12px; }
  .lead-mb, .director, .on-stage, .playbill, .th { grid-template-columns: 1fr; }
  .th > .th-hero, .th > .th-photo { grid-column: 1; }
  .th-photo { margin-top: 32px; }
  .lead-mb img { width: min(100%, 300px); }
  .mbs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px; }
  .mb h3 { font-size: 19px; }
  .mb .bio { font-size: 13.5px; }
  .director img { width: 180px; }
  .refs-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 12px; }
  .ct-big a { gap: 14px; font-size: clamp(20px, 6vw, 26px); overflow-wrap: normal; }
  .ct-big svg { width: 22px; height: 22px; }
  .refs-grid .nm { font-size: 11px; }
  .book { --pw: min(92vw, 520px); --ph: min(calc(100dvh - 132px), calc(var(--pw) * 1.95)); margin-top: 14px; }
  .page { font-size: 12.6px; line-height: 1.42; padding: 6% 6.5% 10%; }
  .page .rh { margin-bottom: .8em; }
  .page .pf { height: 15%; margin-bottom: .8em; }
  .page h4 { font-size: 1.36em; }
  .page .ct li { margin: .08em 0; }
  .page .aim, .page .who, .page .actor { margin-bottom: .6em; }
  .dv-photo { min-height: 16%; }
  .folio { bottom: 2.4%; }
  .book-nav { bottom: 10px; }
  .book-nav button { width: 42px; height: 42px; }
  .tab { display: none; }
  .book-chips {
    position: absolute;
    top: max(14px, env(safe-area-inset-top));
    left: 0;
    right: 74px;
    display: flex;
    gap: 8px;
    padding: 4px 4px 4px 16px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .book-chips button {
    flex: none;
    padding: 8px 13px;
    border: 0;
    border-radius: 99px;
    background: rgb(255 244 230 / .1);
    box-shadow: inset 3px 0 0 var(--tc, transparent);
    color: var(--ink-soft);
    font: 500 13px/1 var(--sans);
    cursor: pointer;
  }
  .book-chips button.is-on { background: rgb(255 244 230 / .24); color: var(--ink); }
}
@media (prefers-reduced-motion: reduce) {
  .reveal[open] { animation: none; }
  .leaf, .book, .refs-zoom, .refs-panel, .dlg-close { transition-duration: .01s; }
  .hot i::after { animation: none; }
}
