:root {
  --bg: #ffffff;
  --ink: #151515;
  --muted: #5a5a5a;
  --green: #4e7d1e;          /* small text, 4.9:1 on white */
  --green-display: #5e9026;  /* display sizes only, 3.8:1 on white */
  --green-on-dark: #86c232;  /* on the dark overlay, 8.5:1 */
  --blue: #2b21e2;
  --overlay: rgba(21, 21, 21, 0.88);
  --rule: #e6e6e6;

  --serif: "Cormorant Garamond", Garamond, "Times New Roman", serif;
  --sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --gutter: clamp(16px, 4vw, 40px);
  --ease: 200ms ease;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul { margin: 0; }
ul[role="list"] { list-style: none; padding: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.mono {
  font-family: var(--mono);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 11px;
  line-height: 1.4;
}

.display {
  font-family: var(--serif);
  font-weight: 400;
  font-style: normal;
  line-height: 0.9;
  letter-spacing: -0.03em;
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translate(-50%, -200%);
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  font-size: 14px;
  text-decoration: none;
}
.skip-link:focus { transform: translate(-50%, 0); }

/* ---------- Fixed chrome ---------- */

.chrome-top {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px var(--gutter);
  background: var(--bg);
  pointer-events: none;
}
.chrome-top > * { pointer-events: auto; }

.wordmark { color: #333; text-decoration: none; }

.clock {
  color: var(--green);
  font-variant-numeric: tabular-nums;
}

.dock {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 4px;
}

.dock button {
  appearance: none;
  border: 0;
  background: var(--ink);
  color: #fff;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
  padding: 15px 24px;
  border-radius: 3px;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color var(--ease), color var(--ease);
}
.dock .dock-icon {
  width: 46px;
  height: 46px;
  padding: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.dock button:hover { background: #2e2e2e; }
.dock :focus-visible { outline-color: var(--blue); outline-offset: 2px; }

.dock .is-disabled,
.dock .is-disabled:hover {
  color: #9a9a9a;
  background: var(--ink);
  cursor: default;
}

.to-top {
  position: fixed;
  left: var(--gutter);
  bottom: 20px;
  z-index: 30;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 0;
  background: var(--blue);
  color: #fff;
  cursor: pointer;
  transition: background-color var(--ease);
}
.to-top:hover { background: #1f17b8; }

/* ---------- Hero ---------- */

.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 150px var(--gutter) 96px;
}

.display { transform: scaleX(0.78); transform-origin: center; }
.hero h1 { font-size: clamp(64px, 9.7vw, 132px); line-height: 0.85; white-space: nowrap; }
.hero h1 span { display: inline; }
.hero-first { color: var(--green-display); }
.hero-last { color: var(--ink); }

.hero-intro {
  max-width: 430px;
  text-align: left;
  margin-top: clamp(40px, 5vw, 64px);
  color: var(--muted);
  font-size: 16px;
}
.hero-intro p + p { margin-top: 14px; }

.scroll-hint {
  margin-top: clamp(48px, 7vw, 88px);
  color: var(--green);
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 12px;
}

/* ---------- Poster wall ---------- */

.work {
  padding: clamp(96px, 14vw, 200px) var(--gutter) clamp(160px, 20vw, 280px);
}

.wall {
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 300px);
  justify-content: center;
  gap: 20px 14px;
}

.poster { min-width: 0; }
.poster:nth-child(2) { transform: rotate(-4deg); margin-top: 14px; }
.poster:nth-child(3) { transform: rotate(3deg); margin-top: 6px; }

.poster-media {
  position: relative;
  display: block;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
}

.poster-media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
}
.poster-media img.art-blend { transform: scale(2.63); transform-origin: 49.5% 50%; }

.poster-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px;
  background: var(--overlay);
  opacity: 0;
  transition: opacity var(--ease);
}

.overlay-label { color: var(--green-on-dark); font-size: 9px; }

.overlay-text {
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.18;
  font-weight: 400;
}

.poster-media:focus-visible .poster-overlay { opacity: 1; }
@media (hover: hover) {
  .poster-media:hover .poster-overlay { opacity: 1; }
}

.poster-meta { padding-top: 14px; }

.poster-title {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--ink);
}

.poster-hmw { display: none; }

.tags {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 2px 12px;
  color: var(--muted);
  font-size: 9.5px;
}

/* ---------- Side quests ---------- */

.quests {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(160px, 20vw, 280px);
}

.quests-beat {
  display: grid;
  grid-template-columns: 1fr 240px 1fr;
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
}

.quests-illustration { width: 240px; }

.quests-aside {
  font-size: 15px;
  color: var(--muted);
}
.quests-aside-left { text-align: right; }
.quests-aside-right { text-align: left; }

.quests-list {
  max-width: 760px;
  margin: clamp(64px, 8vw, 96px) auto 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  text-align: center;
}

.quests-list h3 { font-size: 11px; color: var(--ink); }

.quests-list p {
  margin-top: 10px;
  font-size: 15px;
  color: var(--muted);
}

/* ---------- Contact / footer ---------- */

.contact {
  padding: clamp(80px, 10vw, 140px) var(--gutter) 24px;
}

.contact-main { text-align: center; position: relative; }

.contact-nudge {
  position: absolute;
  top: 8px;
  right: 14%;
  display: inline-block;
  background: var(--blue);
  color: #ffffff;
  font-size: 15px;
  font-weight: 500;
  padding: 4px 12px;
  transform: rotate(3deg);
}
.contact-arrow {
  position: absolute;
  top: 34px;
  right: calc(14% + 150px);
  width: 90px;
  height: 60px;
  color: var(--blue);
  transform: rotate(8deg);
}
@media (max-width: 700px) {
  .contact-nudge { position: static; display: block; width: max-content; margin: 20px 8% 6px auto; font-size: 13px; }
  .contact-arrow { display: none; }
}

.contact-lead { color: var(--muted); font-size: 15px; }

.contact-title {
  margin-top: 24px;
  font-size: clamp(64px, 14.4vw, 196px);
  line-height: 0.78;
  color: var(--ink);
}
.contact-title em { font-style: italic; }

.contact-links {
  margin-top: 32px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 36px;
  font-size: 16px;
  font-weight: 400;
}

.contact-links a {
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: border-color var(--ease);
}
.contact-links a:hover,
.contact-links a:focus-visible { border-bottom-color: var(--green); }
.contact-links li:last-child a { color: var(--green); }

.footer-bar {
  margin: clamp(20px, 2.5vw, 24px) 0 0;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 24px;
}

.colophon {
  margin-left: 56px;
  color: var(--muted);
  font-size: 10px;
  text-transform: none;
  letter-spacing: 0.06em;
}

.footer-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  display: inline-block;
  padding: 10px 16px;
  border: 0;
  border-radius: 3px;
  background: var(--ink);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1;
  color: #ffffff;
  text-decoration: none;
  transition: background-color var(--ease);
}
.pill:hover { background: #2e2e2e; }

.pill.is-disabled,
.pill.is-disabled:hover {
  color: #9a9a9a;
  background: var(--ink);
  cursor: default;
}

/* ---------- Menu overlay ---------- */

.menu {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.97);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px var(--gutter);
}
.menu[hidden] { display: none; }

.menu-close {
  position: absolute;
  top: 14px;
  right: var(--gutter);
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 8px 0;
  cursor: pointer;
  transition: color var(--ease);
}
.menu-close:hover { color: var(--green); }

.menu-links { text-align: center; display: grid; gap: 8px; }

.menu-links a,
.menu-links button {
  display: inline-block;
  font-size: clamp(44px, 8vw, 88px);
  color: var(--ink);
  text-decoration: none;
  transition: color var(--ease);
}
.menu-links button {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
.menu-links a:hover,
.menu-links button:hover { color: var(--green); }

body.menu-open { overflow: hidden; }

/* ---------- Quick view ---------- */

.quick .hero {
  min-height: 0;
  padding: 120px var(--gutter) 24px;
}
.quick .hero h1 { font-size: clamp(40px, 5vw, 56px); }
.quick .hero h1 span { display: inline; }
.quick .hero-intro { margin-top: 20px; }
.quick .hero-extra,
.quick .scroll-hint,
.quick .quests { display: none; }

.quick .work { padding: 40px var(--gutter) 80px; }

.quick .wall {
  display: flex;
  max-width: 720px;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}

.quick .poster {
  flex: none;
  position: relative;
  transform: none;
  margin-top: 0;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  padding: 24px 0;
  border-top: 1px solid var(--rule);
  transition: background-color var(--ease);
}
.quick .poster:last-child { border-bottom: 1px solid var(--rule); }

/* the thumbnail link covers the whole row */
.quick .poster-media { position: static; }
.quick .poster-media::after {
  content: "";
  position: absolute;
  inset: 0;
}
.quick .poster-overlay { display: none; }
.quick .poster:hover .poster-title { text-decoration: underline; text-decoration-color: var(--green); text-underline-offset: 3px; }

.quick .poster-meta { padding-top: 0; }
.quick .poster-title { font-size: 16px; }
.quick .poster-hmw {
  display: block;
  margin-top: 6px;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.5;
}
.quick .tags { margin-top: 10px; }

.quick .contact { padding-top: 64px; }

/* ---------- Mobile ---------- */

@media (max-width: 760px) {
  .wall {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 16px;
    max-width: 480px;
  }
  .poster:nth-child(2),
  .poster:nth-child(3) { transform: none; margin-top: 0; }
  .overlay-text { font-size: 14px; }
  .poster-overlay { padding: 12px; gap: 6px; }

  .quick .wall { display: flex; max-width: none; }
  .quick .poster { grid-template-columns: 72px minmax(0, 1fr); gap: 16px; }

  .quests-beat { grid-template-columns: 1fr 160px 1fr; gap: 16px; }
  .quests-illustration { width: 160px; }
  .quests-aside { font-size: 14px; }
  .quests-list { grid-template-columns: minmax(0, 1fr); gap: 28px; }

  .footer-bar { flex-direction: column-reverse; align-items: center; text-align: center; }
  .footer-pills { justify-content: center; }
}

@media (max-width: 480px) {
  .dock {
    left: calc(var(--gutter) + 52px);
    right: var(--gutter);
    transform: none;
    justify-content: space-between;
  }
  .dock button { padding: 12px; font-size: 13px; flex: 1 1 auto; }
  .dock .dock-icon { flex: 0 0 auto; width: 42px; height: 42px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after { transition-duration: 0.01ms !important; }
}

