:root {
  --bg: #121212;
  --ink: #f9f9df;
  --ink-dim: rgba(249, 249, 223, 0.55);
  --ink-faint: rgba(249, 249, 223, 0.32);
  --line: rgba(249, 249, 223, 0.18);
  --panel: rgba(28, 28, 26, 0.72);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --font: 'Inter Tight', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --serif: 'Instrument Serif', 'Times New Roman', Georgia, serif;
  --pad: 20px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img { display: block; }
em, .serif { font-family: var(--serif); font-style: italic; font-weight: 400; }

/* Small uppercase label used everywhere */
.label { font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-dim); line-height: 1.3; }

/* Big editorial display type */
.display {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 0.88;
  letter-spacing: -0.02em;
}

/* ---------- Film grain ---------- */
.grain {
  position: fixed; inset: -50%;
  pointer-events: none;
  z-index: 90;
  opacity: 0.17;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.6s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -4%); }
  60% { transform: translate(-4%, -1%); }
  80% { transform: translate(3%, 3%); }
  100% { transform: translate(0, 0); }
}

/* ---------- Header + menu ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0;
  display: flex; justify-content: space-between; align-items: center;
  padding: var(--pad);
  z-index: 60;
  pointer-events: none;
  line-height: 1;
  mix-blend-mode: difference; /* stays readable over light photos */
}
.header > * { pointer-events: auto; }
.wordmark { font-family: var(--serif); font-size: 28px; letter-spacing: -0.01em; line-height: 0.9; }
.header-right { display: flex; align-items: center; gap: 24px; }
.menu-btn, .present-btn { font-size: 15px; text-transform: uppercase; letter-spacing: 0.02em; padding: 4px 0; }
.present-btn { display: inline-flex; align-items: center; gap: 8px; }
.present-btn::before {
  content: ""; width: 0; height: 0;
  border-left: 7px solid currentColor;
  border-top: 4.5px solid transparent; border-bottom: 4.5px solid transparent;
}

.menu {
  position: fixed; inset: 0;
  z-index: 55;
  background: var(--bg);
  padding: 96px var(--pad) 28px;
  display: flex; flex-direction: column; justify-content: space-between;
  opacity: 0; visibility: hidden;
  transition: opacity 300ms ease, visibility 300ms;
}
.menu.open { opacity: 1; visibility: visible; }
.menu nav { display: flex; flex-direction: column; }
.menu nav a {
  font-family: var(--serif);
  font-size: clamp(56px, 10vw, 148px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  transform: translateY(16px); opacity: 0;
  transition: transform 500ms var(--ease), opacity 500ms ease, color 200ms ease;
}
.menu nav a:nth-child(even) { font-style: italic; }
.menu.open nav a { transform: none; opacity: 1; }
.menu.open nav a:nth-child(2) { transition-delay: 50ms; }
.menu.open nav a:nth-child(3) { transition-delay: 100ms; }
.menu nav:has(a:hover) a:not(:hover) { color: var(--ink-faint); }
.menu .sub { display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 15px; text-transform: uppercase; color: var(--ink-dim); }
.menu .sub a:hover { color: var(--ink); }

/* ---------- Booking call to action ---------- */
.cta {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 15px; text-transform: uppercase; letter-spacing: 0.02em;
}
.cta .dot { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 0 rgba(74, 222, 128, .6); animation: pulse 2.4s ease-out infinite; }
.cta .arrow { transition: transform 300ms var(--ease); }
.cta:hover .arrow { transform: translateX(4px); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, .5); } 70%, 100% { box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); } }

/* Footer band with big booking line, used on work + about */
.book {
  padding: 96px var(--pad) 40px;
  border-top: 1px solid var(--line);
}
.book a.big {
  display: block;
  font-family: var(--serif);
  font-size: clamp(56px, 11vw, 180px);
  line-height: 0.9;
  letter-spacing: -0.03em;
  margin: 20px 0 56px;
  transition: color 250ms ease;
}
.book a.big em { transition: padding 400ms var(--ease); }
.book a.big:hover em { padding-left: 0.2em; }
.book .row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px 24px; font-size: 14px; text-transform: uppercase; color: var(--ink-dim); }
.book .row a:hover { color: var(--ink); }
.book .row nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }

/* ---------- Lightbox + present mode ---------- */
.lightbox {
  position: fixed; inset: 0;
  z-index: 70;
  background: rgba(18, 18, 18, 0);
  transition: background-color 450ms ease;
  touch-action: none;
}
.lightbox.on { background: rgba(18, 18, 18, 0.97); }
.lightbox.present { background: #0b0b0b; }
.lb-img {
  position: fixed;
  object-fit: cover;
  transform-origin: 0 0;
  transition: transform 600ms var(--ease);
  user-select: none; -webkit-user-drag: none;
}
.lb-ui {
  position: fixed; inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 300ms ease;
}
.lightbox.on .lb-ui { opacity: 1; transition-delay: 250ms; }
.lb-ui > * { pointer-events: auto; }
.lb-close {
  position: absolute; top: var(--pad); right: var(--pad);
  font-size: 15px; text-transform: uppercase; line-height: 1; padding: 4px 0;
}
.lb-meta {
  position: absolute; left: var(--pad); right: var(--pad); bottom: var(--pad);
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px;
  pointer-events: none;
}
.lb-title { font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 5vw, 72px); line-height: 0.9; letter-spacing: -0.02em; }
.lb-count { font-size: 14px; color: var(--ink-dim); white-space: nowrap; font-variant-numeric: tabular-nums; }
.lb-nav {
  position: absolute; top: 50%;
  width: 56px; height: 56px; margin-top: -28px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid; place-items: center;
  transition: background-color 200ms ease, color 200ms ease;
}
.lb-nav svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.25; }
.lb-prev { left: var(--pad); }
.lb-next { right: var(--pad); }
.lb-nav[hidden] { display: none; }
@media (hover: hover) { .lb-nav:hover { background: var(--ink); color: var(--bg); } }
.lb-progress { position: absolute; left: 0; top: 0; height: 2px; background: var(--ink); width: 0; transition: width 400ms var(--ease); }

/* ---------- Small helpers ---------- */
.to-top {
  position: fixed; right: var(--pad); bottom: var(--pad); z-index: 50;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 16px;
  background: var(--panel);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase;
  opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity 300ms ease, transform 300ms var(--ease), background-color 200ms ease, color 200ms ease;
}
.to-top.on { opacity: 1; transform: none; pointer-events: auto; }
.to-top svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.4; }
@media (hover: hover) { .to-top:hover { background: var(--ink); color: var(--bg); } }

.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 80;
  transform: translate(-50%, 12px);
  padding: 12px 16px;
  background: var(--ink); color: var(--bg);
  font-size: 14px; text-transform: uppercase;
  opacity: 0; pointer-events: none;
  transition: opacity 250ms ease, transform 250ms var(--ease);
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* Reveal on scroll */
.rv { opacity: 0; transform: translateY(28px); transition: opacity 900ms ease, transform 900ms var(--ease); }
.rv.in { opacity: 1; transform: none; }

@media (max-width: 760px) {
  :root { --pad: 16px; }
  .wordmark { font-size: 24px; }
  .header-right { gap: 18px; }
  .lb-nav { top: auto; bottom: 96px; margin: 0; width: 48px; height: 48px; }
  .lb-meta { bottom: max(16px, env(safe-area-inset-bottom)); }
  .book { padding: 64px var(--pad) 28px; }
  .book .row { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .grain { animation: none; }
  .lb-img { transition: none; }
  .rv { opacity: 1; transform: none; transition: none; }
  .cta .dot { animation: none; }
}
