/* Art & Storyboard 2.0 — "projection room" base, one wall color per room */

:root {
  --wall: #141312;
  --wall-2: #221f1c;
  --ink: #ede6d8;
  --ink-soft: #a39c90;
  --accent: #e3a341;
  --line: rgba(237, 230, 216, 0.14);

  --font-title: "DM Serif Display", Georgia, serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-label: "Courier Prime", "Courier New", monospace;

  --max: 1160px;
}

/* Room palettes: each room gets its own wall, like a museum */
body.room-illustration { --wall: #1a1714; --wall-2: #2a241d; --accent: #d9a05b; }
body.room-sketchbook   { --wall: #24211d; --wall-2: #332e28; --accent: #7fa8d6; }
body.room-storyboard   { --wall: #1b1d20; --wall-2: #26292d; --accent: #6fa0d6; }
body.room-photography  { --wall: #0d0d0d; --wall-2: #1a1919; --accent: #c8503f; }
body.room-film         { --wall: #141312; --wall-2: #221f1c; --accent: #e3a341; }
body.room-book         { --wall: #11151b; --wall-2: #1b212a; --accent: #f0c13a; }

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--wall);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 28px; }

/* ---------- Header ---------- */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.brand { text-decoration: none; font-family: var(--font-title); font-size: 22px; letter-spacing: 0.01em; }
.brand span { color: var(--accent); }
.nav { display: flex; flex-wrap: wrap; gap: 4px 22px; font-family: var(--font-label); font-size: 14px; }
.nav a { text-decoration: none; color: var(--ink-soft); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"] { border-bottom: 1px solid var(--accent); }

/* ---------- Shared type ---------- */
.label { font-family: var(--font-label); font-size: 14px; color: var(--ink-soft); letter-spacing: 0.02em; }
.signature { font-family: var(--font-label); font-size: 14px; color: var(--ink-soft); }
h1, h2, h3 { font-family: var(--font-title); font-weight: 400; line-height: 1.05; margin: 0; }
.rule { width: 44px; height: 2px; background: var(--accent); border: 0; margin: 28px 0; }

/* ---------- Lobby ---------- */
.lobby-hero { padding: 96px 0 72px; }
.lobby-hero h1 { font-size: clamp(56px, 10vw, 128px); }
.lobby-hero .intro { max-width: 560px; font-size: 19px; color: var(--ink-soft); margin: 0; }

.map-title { display: flex; justify-content: space-between; align-items: baseline; padding: 0 0 20px; border-bottom: 1px solid var(--line); }

.rooms { list-style: none; margin: 0 0 120px; padding: 0; counter-reset: room; }
.room-link {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: padding 0.25s ease;
}
.room-link:hover { padding-left: 12px; }
.room-link .num { font-family: var(--font-label); font-size: 14px; color: var(--ink-soft); }
.room-link h2 { font-size: clamp(30px, 4.5vw, 52px); }
.room-link .note { font-family: var(--font-label); font-size: 14px; color: var(--ink-soft); text-align: right; }
.room-link:hover h2 { color: var(--accent); }
.swatch { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-left: 10px; vertical-align: middle; }

/* ---------- Room (project page) ---------- */
.room-hero { padding: 80px 0 40px; }
.room-hero h1 { font-size: clamp(52px, 9vw, 112px); }
.room-hero .label { margin-bottom: 18px; display: block; }

.screen {
  aspect-ratio: 16 / 9;
  background: var(--wall-2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 24px 0 72px;
}
.screen { background-size: cover; background-position: center; }
img.still { width: 100%; height: auto; object-fit: cover; }
.screen .play {
  width: 84px; height: 84px; border-radius: 50%;
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); font-size: 24px;
}

.placard {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 48px;
  padding: 40px 0 72px;
  border-top: 1px solid var(--line);
}
.placard dl { margin: 0; font-family: var(--font-label); font-size: 15px; }
.placard dt { color: var(--ink-soft); font-size: 13px; margin-top: 16px; }
.placard dt:first-child { margin-top: 0; }
.placard dd { margin: 2px 0 0; }
.placard .text p { margin: 0 0 1.1em; max-width: 620px; font-size: 18px; }
.placard .text p.aside { color: var(--ink-soft); font-size: 16px; }

.stills { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 96px; }
.still { aspect-ratio: 16 / 9; background: var(--wall-2); }
.placeholder { display: flex; align-items: flex-end; padding: 14px; font-family: var(--font-label); font-size: 13px; color: var(--ink-soft); }

.next-room {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 40px 0; border-top: 1px solid var(--line); text-decoration: none;
}
.next-room h2 { font-size: clamp(32px, 5vw, 56px); }
.next-room:hover h2 { color: var(--accent); }

.room-hero .intro { max-width: 620px; font-size: 19px; color: var(--ink-soft); margin: 0 0 0.8em; }
.room-hero { padding-bottom: 56px; }

/* ---------- Galleries ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 96px; }
.gallery .still { aspect-ratio: 4 / 5; }
.gallery.single { grid-template-columns: 1fr; }
.gallery.single .still { aspect-ratio: 16 / 9; }
.gallery.photos .still { aspect-ratio: 3 / 2; }

.series { padding-top: 40px; border-top: 1px solid var(--line); }
.series-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.series-head h2 { font-size: clamp(30px, 4vw, 44px); }
.series-text { max-width: 620px; font-size: 18px; margin: 14px 0 28px; }
.series .gallery { margin-bottom: 72px; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; padding-bottom: 96px; }
.about-portrait { aspect-ratio: 4 / 5; }
.about .text p { font-size: 19px; margin: 0 0 1.1em; }

/* ---------- Film room ---------- */
.films { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-bottom: 96px; }
.film-card { text-decoration: none; display: block; }
.film-card .still { aspect-ratio: 2 / 3; margin-bottom: 18px; transition: outline-color 0.2s; outline: 1px solid transparent; }
.film-card:hover .still { outline-color: var(--accent); }
.film-card h2 { font-size: 30px; margin-bottom: 6px; }
.film-card:hover h2 { color: var(--accent); }

.scripts { margin-bottom: 96px; border-top: 1px solid var(--line); }
.script { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.script h2 { font-size: clamp(28px, 4vw, 40px); }

/* ---------- Book ---------- */
.book { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 56px; padding-bottom: 96px; align-items: start; }
.book-cover { aspect-ratio: 2 / 3; }
.book .label { display: block; margin-bottom: 20px; }
.book .text p { font-size: 19px; margin: 0 0 1.1em; max-width: 600px; }
.button {
  display: inline-block; margin-top: 12px; padding: 14px 26px;
  border: 1px solid var(--accent); color: var(--accent);
  font-family: var(--font-label); font-size: 15px; text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.button:hover { background: var(--accent); color: var(--wall); }

/* ---------- Contact ---------- */
.contact { padding-bottom: 120px; }
.contact-mail { font-family: var(--font-title); font-size: clamp(28px, 5vw, 56px); text-decoration: none; border-bottom: 2px solid var(--accent); overflow-wrap: anywhere; }
.contact-mail:hover { color: var(--accent); }
.contact-links { list-style: none; padding: 0; margin: 56px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.contact-links a { text-decoration: none; display: block; padding-top: 16px; border-top: 1px solid var(--line); }
.contact-links .label { display: block; margin-bottom: 6px; }
.contact-links a:hover { color: var(--accent); }

/* ---------- Footer ---------- */
.site-footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px;
  padding: 36px 0 48px; border-top: 1px solid var(--line);
  font-family: var(--font-label); font-size: 14px; color: var(--ink-soft);
}
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--ink); }
.site-footer .links { display: flex; gap: 20px; }

@media (max-width: 720px) {
  .site-header { flex-direction: column; }
  .room-link { grid-template-columns: 40px 1fr; }
  .room-link .note { display: none; }
  .placard { grid-template-columns: 1fr; gap: 28px; }
  .stills { grid-template-columns: 1fr; }
  .gallery, .films { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about, .book { grid-template-columns: 1fr; gap: 32px; }
  .contact-links { grid-template-columns: 1fr; }
  .series-head { flex-direction: column; gap: 4px; }
}

/* ---------- Video embeds ---------- */
.screen.video { display: block; position: relative; background: #000; }
.screen.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.series .screen.video { margin: 0 0 72px; }

/* ---------- Photography masonry (keeps each photo's own proportions) ---------- */
.masonry { column-count: 3; column-gap: 16px; margin-bottom: 96px; }
.masonry a { display: block; margin-bottom: 16px; break-inside: avoid; }
.masonry img { width: 100%; height: auto; transition: opacity 0.2s; }
.masonry a:hover img { opacity: 0.85; }
@media (max-width: 720px) { .masonry { column-count: 2; column-gap: 10px; } .masonry a { margin-bottom: 10px; } }

/* ---------- Work-in-progress note ---------- */
.wip { font-family: var(--font-label); font-size: 14px; color: var(--accent); border: 1px dashed var(--line); padding: 10px 14px; margin: 0 0 48px; display: inline-block; }
