@font-face {
  font-family: "EB Garamond";
  src: url("assets/fonts/eb-garamond-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "EB Garamond";
  src: url("assets/fonts/eb-garamond-latin-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "EB Garamond";
  src: url("assets/fonts/eb-garamond-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "EB Garamond";
  src: url("assets/fonts/eb-garamond-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* Magic Lantern Show: projection black, brass, one madder red, screen light. */
:root {
  color-scheme: dark;
  --ground: #0a0909;
  --brass: #b08a4a;
  --brass-bright: #dcb878;
  --brass-dim: #5e4524;
  --screen: #f3e6c8;
  --screen-dim: #bcae90;
  --serif: "EB Garamond", "Garamond", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --shell: 1240px;
  --gutter: clamp(20px, 6vw, 96px);
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
  scrollbar-color: var(--brass-dim) var(--ground);
}
body {
  margin: 0;
  background: var(--ground);
  color: var(--screen);
  font: 400 20px/1.6 var(--serif);
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, p, figure, dl, dd, ul { margin: 0; }
ul { padding: 0; list-style: none; }
::selection { background: var(--brass); color: var(--ground); }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--brass-bright);
  outline-offset: 4px;
}
.page { overflow: clip; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 50;
  padding: 10px 16px; background: var(--screen); color: var(--ground);
}
.skip-link:focus { top: 16px; }
.shell {
  width: 100%;
  max-width: calc(var(--shell) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.caps {
  font-variant-caps: all-small-caps;
  letter-spacing: .14em;
}

/* ---------- Brass rule with a diamond ---------- */
.rule {
  position: relative;
  display: flex;
  justify-content: center;
  width: min(100%, 27vw);
  min-width: 220px;
  height: 12px;
}
.rule::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--brass) 18%, var(--brass) 82%, transparent);
  opacity: .7;
}
.rule svg { position: relative; fill: var(--ground); stroke: var(--brass-bright); stroke-width: 1.2px; }
.rule-wide { width: 100%; margin: 0 0 clamp(56px, 7vw, 104px); }

/* ---------- Masthead ---------- */
.mast {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 48px);
  padding: clamp(16px, 2.6vw, 32px) clamp(20px, 6.2vw, 96px);
}
.brand { display: flex; align-items: center; gap: 14px; margin-right: auto; }
.brand img { width: auto; height: clamp(44px, 5.4vw, 72px); mix-blend-mode: screen; -webkit-mask-image: radial-gradient(closest-side, #000 62%, transparent 100%); mask-image: radial-gradient(closest-side, #000 62%, transparent 100%); }
.brand span {
  display: flex; flex-direction: column; align-items: center;
  color: var(--brass-bright);
  font-size: clamp(19px, 1.9vw, 28px);
  line-height: 1.05;
  font-variant-caps: all-small-caps;
  letter-spacing: .1em;
}
.brand small { font-size: max(12px, .62em); letter-spacing: .5em; color: var(--brass); padding-left: .5em; }
.mast nav {
  display: flex;
  gap: clamp(20px, 3vw, 44px);
  position: relative;
  padding-bottom: 10px;
  font-size: clamp(18px, 1.35vw, 21px);
}
.mast nav::before,
.mast nav::after { content: ""; position: absolute; pointer-events: none; }
.mast nav::before { left: 0; right: 0; bottom: 0; height: 1px; background: color-mix(in srgb, var(--brass) 55%, transparent); }
.mast nav::after {
  left: 50%; bottom: -3.5px;
  width: 6px; height: 6px;
  border: 1px solid var(--brass-bright);
  background: var(--ground);
  transform: translateX(-50%) rotate(45deg);
}
.mast nav a { color: var(--screen); transition: color .2s; }
.mast nav a:hover { color: var(--brass-bright); }
.motion-toggle {
  margin-left: 16px;
  border: 0; background: none; padding: 4px 0;
  color: var(--screen-dim);
  font-size: 18px;
  font-variant-caps: all-small-caps;
  letter-spacing: .12em;
}
.motion-toggle:hover { color: var(--brass-bright); }

/* ---------- Hero: the projection ---------- */
.hero { position: relative; height: 150svh; }
.stage-rule { position: absolute; z-index: 4; left: var(--gutter); right: var(--gutter); bottom: 6%; width: auto; }
.hero-stage {
  position: sticky;
  top: 0;
  height: 100svh;
  min-height: 640px;
  overflow: hidden;
}
.hero-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 46% 40% at 66% 50%, rgba(120,78,30,.22), transparent 70%),
    radial-gradient(ellipse 40% 26% at 44% 82%, rgba(110,70,26,.2), transparent 75%);
  opacity: calc(.2 + var(--lit) * .8);
}
.hero { --lit: 1; --spot-x: 36%; --spot-y: 60%; }
.js [data-motion="on"] .hero { --lit: 0; }

.projector {
  position: absolute;
  left: -1vw;
  top: 13%;
  height: 80%;
  width: auto;
  z-index: 2;
  filter: brightness(.82) drop-shadow(0 30px 60px rgba(0,0,0,.6));
}
.beam {
  position: absolute;
  left: 0; top: 0;
  z-index: 1;
  transform-origin: 0 50%;
  mix-blend-mode: screen;
  pointer-events: none;
  opacity: calc(.5 + var(--lit) * .5);
  /* Without JavaScript the beam keeps the comp's angle toward the slide. */
  width: 40vw;
  transform: translate(15vw, 60svh) rotate(-14deg);
}
.dust {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.hero-copy {
  position: absolute;
  z-index: 4;
  left: 10.2vw;
  top: 19%;
  width: min(35vw, 600px);
}
.hero h1 {
  font-weight: 600;
  font-size: clamp(46px, 5vw, 96px);
  line-height: .98;
  letter-spacing: -.01em;
  color: var(--screen);
  text-wrap: balance;
  text-shadow: 0 2px 30px rgba(0,0,0,.6);
}
.hero-copy .rule { margin: clamp(18px, 1.8vw, 28px) 0 clamp(14px, 1.2vw, 20px); width: 100%; }
.lede {
  max-width: 40ch;
  font-size: clamp(18px, 1.6vw, 26px);
  line-height: 1.32;
  color: var(--screen);
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(100%, max(300px, 25vw));
  aspect-ratio: 900 / 174;
  margin-top: clamp(22px, 2.2vw, 34px);
  padding: 0 1.6em;
  background: url("assets/plates/button-plaque.webp") center / 100% 100% no-repeat;
  filter: drop-shadow(0 12px 20px rgba(0,0,0,.45));
  color: var(--screen);
  text-shadow: 0 1px 2px rgba(0,0,0,.6);
  font-size: clamp(19px, 1.65vw, 27px);
  transition: filter .2s, transform .2s;
}
.button:hover { filter: brightness(1.18) drop-shadow(0 12px 20px rgba(0,0,0,.45)); }
.button:active { transform: translateY(1px); }
.hero-controls {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: clamp(26px, 2.4vw, 38px);
}
.slide-markers {
  display: flex;
  gap: 14px;
  padding-left: clamp(100px, 8vw, 128px);
}
.slide-markers a {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--brass);
  transition: background .2s;
}
.slide-markers a[aria-current] { background: var(--screen); box-shadow: 0 0 0 3px var(--ground), 0 0 0 4px var(--brass); }
.slide-markers a:hover { background: var(--brass-dim); }

/* A projected slide: round glass, brass ring, carrier plaque. */
.slide {
  position: relative;
  aspect-ratio: 1260 / 1215;
}
.slide[data-slide] { --lit: 1; }
.js [data-motion="on"] .slide[data-slide] { --lit: 0; }
.slide-glass {
  position: absolute;
  inset: 3.3% 3.6% 3.3% 3.4%;
  border-radius: 50%;
  overflow: hidden;
  background: #050403;
  box-shadow: 0 0 120px rgba(243,230,200,.07);
}
.slide-art {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(calc(.55 + var(--lit) * .45)) brightness(calc(.75 + var(--lit) * .25));
}
.slide-dark {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  /* The lit spot widens from a pool of light to the whole glass. */
  background:
    radial-gradient(circle at var(--spot-x, 50%) var(--spot-y, 50%),
      transparent calc(24% + var(--lit) * 84%),
      rgba(5,4,3,.9) calc(50% + var(--lit) * 110%)),
    radial-gradient(circle, transparent 58%, rgba(5,4,3,.7) 100%);
  pointer-events: none;
}
.slide-ring {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  filter: drop-shadow(0 18px 40px rgba(0,0,0,.65));
}
.carrier {
  position: absolute;
  left: 23%;
  width: 54%;
  top: 87.6%;
  aspect-ratio: 900 / 164;
  container-type: inline-size;
  display: grid;
  place-items: center;
  background: url("assets/plates/carrier-label.webp") center / 100% 100% no-repeat;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,.6));
}
/* Sized to the plaque so the name stays between its two engraved ornaments. */
.carrier span {
  color: #24170b;
  font-weight: 600;
  font-size: max(12px, 6.4cqw);
  text-transform: uppercase;
  letter-spacing: .05em;
  padding-left: .05em;
  line-height: 1;
  text-shadow: 0 1px 0 rgba(255,230,180,.35);
}
.slide-hero {
  position: absolute;
  z-index: 2;
  right: 6.1vw;
  top: calc(44% - min(53vw, 76svh * 1.037) * 1215 / 1260 / 2);
  width: min(53vw, 76svh * 1.037);
}

/* ---------- Games: the slide catalogue ---------- */
.games { padding-top: clamp(32px, 4vw, 56px); }
.game {
  display: grid;
  align-items: start;
  gap: clamp(32px, 5vw, 88px);
  margin-bottom: clamp(96px, 11vw, 168px);
}
.game-lead { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; }
.game-second { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; }
.entry h3 {
  font-weight: 600;
  font-size: clamp(42px, 4.6vw, 72px);
  line-height: 1;
  letter-spacing: -.005em;
}
.entry-promise {
  margin: 10px 0 26px;
  color: var(--brass-bright);
  font-style: italic;
  font-size: clamp(21px, 1.8vw, 27px);
}
.entry-answer { color: var(--screen); font-size: 22px; line-height: 1.45; margin-bottom: 14px; }
.entry p { max-width: 62ch; color: var(--screen-dim); }
.entry .entry-answer { color: var(--screen); }
.ledger {
  margin: 32px 0 28px;
  border-top: 1px solid var(--brass-dim);
  max-width: 560px;
}
.ledger div {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--brass-dim) 70%, transparent);
}
.ledger dt {
  color: var(--brass);
  font-size: 20px;
  font-variant-caps: all-small-caps;
  letter-spacing: .14em;
}
.ledger dt::after {
  content: "";
  flex: 1;
}
.ledger dd { margin-left: auto; text-align: right; color: var(--screen); }
.entry-intro { font-style: italic; }
.entry-note {
  margin-top: 12px;
  color: var(--brass);
  font-size: 20px;
  font-variant-caps: all-small-caps;
  letter-spacing: .12em;
}
/* ---------- Studio ---------- */
.studio { padding-bottom: clamp(96px, 10vw, 150px); }
.studio-grid {
  display: grid;
  grid-template-columns: minmax(200px, 4fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}
.studio-mark { width: 100%; height: auto; max-width: 380px; justify-self: center; mix-blend-mode: screen; -webkit-mask-image: radial-gradient(closest-side, #000 62%, transparent 100%); mask-image: radial-gradient(closest-side, #000 62%, transparent 100%); }
.studio h2, .faq h2, .contact h2 {
  font-weight: 600;
  font-size: clamp(38px, 4.2vw, 64px);
  line-height: 1.04;
  text-wrap: balance;
}
.studio-copy p { max-width: 58ch; margin-top: 22px; color: var(--screen-dim); }
.founder { display: flex; flex-direction: column; color: var(--screen) !important; font-size: 24px; }
.founder span { color: var(--brass); font-size: 20px; font-variant-caps: all-small-caps; letter-spacing: .14em; }
.principles {
  margin-top: clamp(64px, 7vw, 104px);
  border-top: 1px solid var(--brass-dim);
}
.principles li {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(20px, 6vw, 96px);
  padding: 28px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--brass-dim) 70%, transparent);
}
.principles h3 { font-weight: 500; font-size: clamp(24px, 2.2vw, 32px); line-height: 1.15; color: var(--brass-bright); }
.principles p { color: var(--screen-dim); max-width: 60ch; }

/* ---------- FAQ ---------- */
.faq { padding-bottom: clamp(96px, 10vw, 150px); }
.faq-list { margin-top: clamp(32px, 4vw, 56px); border-top: 1px solid var(--brass-dim); max-width: 920px; }
.faq details { border-bottom: 1px solid color-mix(in srgb, var(--brass-dim) 70%, transparent); }
.faq summary {
  position: relative;
  padding: 22px 48px 22px 0;
  cursor: pointer;
  list-style: none;
  font-size: clamp(21px, 1.9vw, 27px);
  line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after {
  content: "";
  position: absolute;
  right: 8px; top: 50%;
  width: 16px; height: 1.5px;
  background: var(--brass);
  transition: transform .25s;
}
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq summary:hover { color: var(--brass-bright); }
.faq details p { padding: 0 0 26px; max-width: 64ch; color: var(--screen-dim); }

/* ---------- Contact ---------- */
.contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-bottom: clamp(110px, 12vw, 180px);
}
.contact > p { margin-top: 18px; color: var(--screen-dim); max-width: 44ch; }
.contact-address { margin-top: 18px; color: var(--brass-bright); border-bottom: 1px solid var(--brass-dim); }
.contact-address:hover { border-color: var(--brass-bright); }

/* ---------- Footer ---------- */
.footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px 40px;
  padding-top: 40px;
  padding-bottom: 48px;
  border-top: 1px solid var(--brass-dim);
}
.footer .brand img { height: 52px; }
.footer-line { color: var(--screen-dim); font-style: italic; }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 26px; font-size: 18px; }
.footer nav a:hover { color: var(--brass-bright); }
.footer-copy { grid-column: 1 / -1; color: var(--screen-dim); font-size: 16px; }

/* ---------- Narrower desktops ---------- */
@media (max-width: 1180px) {
  .hero-copy { width: 36vw; left: 8vw; }
  .slide-hero { right: 3vw; }
}

/* ---------- Tablet and phone: the projection in normal flow ---------- */
@media (max-width: 899px) {
  body { font-size: 19px; }
  .mast { position: absolute; flex-wrap: wrap; row-gap: 14px; }
  .brand span { font-size: 17px; }
  .brand img { height: 40px; }
  .mast nav { order: 3; width: 100%; justify-content: flex-start; }
  .hero { height: auto; }
  .hero-stage {
    position: relative;
    height: auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding: 168px var(--gutter) 48px;
  }
  .hero-copy { position: relative; left: auto; top: auto; width: 100%; max-width: 560px; }
  .hero h1 { font-size: clamp(44px, 11.5vw, 76px); }
  .lede { max-width: 34ch; }
  .button { width: 100%; max-width: 380px; }
  .carrier { left: 17%; width: 66%; top: 86.5%; }
  .hero-controls { flex-direction: column; gap: 18px; max-width: 380px; }
  .slide-markers { padding-left: 0; }
  .motion-toggle { margin-left: 0; font-size: 16px; }
  .projector { top: auto; bottom: calc(100px + 20vw); height: 46vw; max-height: 340px; left: 0; }
  .stage-rule { position: relative; left: auto; right: auto; bottom: auto; margin-top: 8px; }
  .slide-hero { position: relative; right: auto; top: auto; width: min(80vw, 520px); margin: 48px 0 32px auto; }
  .game-lead, .game-second { grid-template-columns: 1fr; }
  .game .slide { width: min(88vw, 520px); justify-self: center; margin-bottom: 24px; }
  .game-lead .slide { order: -1; }
  .studio-grid { grid-template-columns: 1fr; }
  .studio-mark { max-width: 240px; }
  .principles li { grid-template-columns: 1fr; gap: 8px; }
  .footer { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero, .slide { --lit: 1 !important; }
  .hero { height: auto; }
  .hero-stage { position: relative; }
  .dust { display: none; }
}
[data-motion="off"] .dust { display: none; }
[data-motion="off"] .hero { height: auto; }
[data-motion="off"] .hero-stage { position: relative; }
