:root {
  --ink: #0a0a0a;
  --paper: #fff;
  --header-height: 122px;
  --gutter: clamp(22px, 4vw, 64px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button { color: inherit; }

.site-header {
  position: relative;
  z-index: 50;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--gutter);
  background: rgba(255,255,255,.96);
}
.wordmark {
  text-decoration: none;
  font-size: clamp(1.1rem, 1.5vw, 1.45rem);
  font-weight: 800;
  letter-spacing: -.035em;
}
.desktop-nav { display: flex; gap: 34px; }
.desktop-nav a {
  text-decoration: none;
  font-size: .92rem;
  transition: opacity .2s ease;
}
.desktop-nav a:hover, .desktop-nav a.active { text-decoration: underline; text-underline-offset: 4px; }
.menu-button {
  display: none;
  position: relative;
  width: 38px;
  height: 30px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.menu-button span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transition: transform .25s ease, top .25s ease;
}
.menu-button span:first-child { top: 8px; }
.menu-button span:last-child { top: 21px; }
.menu-button.open span:first-child { top: 14px; transform: rotate(45deg); }
.menu-button.open span:last-child { top: 14px; transform: rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  z-index: 40;
  inset: 0;
  padding: var(--header-height) var(--gutter) 40px;
  background: white;
}
.mobile-menu nav {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.mobile-menu a {
  text-decoration: none;
  font-size: 1.55rem;
  font-weight: 600;
}
.mobile-menu.open { display: block; }

.page { display: none; min-height: calc(100svh - var(--header-height)); }
.page.active { display: block; }

.commercial-page { padding: 4px var(--gutter) 80px; }
.commercial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(32px, 5vw, 72px) clamp(18px, 3vw, 42px);
  max-width: 1420px;
  margin: 0 auto;
}
.commercial-card { margin: 0; }
.commercial-item {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}
.commercial-thumb {
  display: flex;
  width: 100%;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fafafa;
}
.commercial-thumb img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.commercial-card figcaption {
  margin-top: 12px;
  font-size: .78rem;
  line-height: 1.45;
}
.commercial-card figcaption span { display: block; }
.commercial-role {
  margin-bottom: 5px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.book-arrow, .lightbox-arrow {
  border: 0;
  background: transparent;
  font-family: Georgia, serif;
  font-size: 2.6rem;
  font-weight: 300;
  cursor: pointer;
  transition: opacity .2s ease;
}
.book-arrow:hover, .lightbox-arrow:hover { opacity: .45; }

.personal-page { padding: 4px var(--gutter) 80px; }
.personal-grid {
  position: relative;
  max-width: 1500px;
  margin: 0 auto;
}
.personal-item {
  position: absolute;
  inset: 0 auto auto 0;
  margin: 0;
  padding: 0;
  display: block;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}
.personal-item img { display: block; width: 100%; height: auto; }
.overview-footer {
  max-width: 1500px;
  margin: 26px auto 0;
  padding-top: 14px;
  border-top: 1px solid #d8d8d8;
  color: #555;
  font-size: .72rem;
  letter-spacing: .02em;
  text-align: right;
}

.books-page { padding: 16px var(--gutter) 70px; text-align: center; }
.book-intro {
  max-width: 620px;
  margin: 8px auto 54px;
}
.book-intro .eyebrow {
  margin: 0 0 13px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.book-intro h1 { margin: 0 0 20px; font-size: 1.35rem; font-weight: 600; letter-spacing: .01em; }
.book-intro > p:not(.eyebrow) { margin: 0 auto; max-width: 570px; font-size: 1rem; line-height: 1.55; }
.book-intro .book-credit { margin-top: 13px; color: #555; font-size: .82rem; }
.book-stage {
  min-height: min(72vh, 760px);
  display: grid;
  grid-template-columns: 54px minmax(0, 1080px) 54px;
  align-items: center;
  justify-content: center;
}
.book {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: min(68vh, 700px);
  perspective: 1400px;
}
.book img {
  display: block;
  max-height: min(68vh, 700px);
  max-width: 50%;
  width: auto;
  box-shadow: 0 10px 34px rgba(0,0,0,.12);
  animation: pageIn .28s ease;
}
.book img:first-child { transform-origin: right center; }
.book img:last-child { transform-origin: left center; }
@keyframes pageIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
.book-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  margin-top: 16px;
  font-size: .78rem;
}
.book-controls a { text-underline-offset: 3px; }

.contact-page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 56px var(--gutter) 90px;
  grid-template-columns: minmax(0, 560px) minmax(220px, 340px);
  gap: clamp(60px, 10vw, 140px);
  align-items: start;
}
.contact-page.active { display: grid; }
.contact-copy h1, .contact-copy h2 {
  margin: 0 0 20px;
  font-size: 1rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.contact-copy h2 { margin-top: 34px; margin-bottom: 9px; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-decoration: none; text-transform: uppercase; }
.contact-copy p { margin: 0; font-size: 1rem; line-height: 1.55; }
.about-details { margin-top: 52px; }
.contact-copy a { text-underline-offset: 3px; }
.about-image { width: 100%; max-height: 520px; object-fit: cover; object-position: center; }

.lightbox {
  display: none;
  position: fixed;
  z-index: 100;
  inset: 0;
  background: rgba(255,255,255,.98);
  align-items: center;
  justify-content: center;
  padding: 50px 76px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: calc(100vw - 190px); max-height: calc(100vh - 126px); object-fit: contain; }
.lightbox p { position: absolute; left: 76px; right: 76px; bottom: 18px; margin: 0; text-align: center; font-size: .78rem; line-height: 1.35; }
.lightbox-close { position: absolute; top: 22px; right: 28px; border: 0; background: transparent; font-size: 2rem; cursor: pointer; }
.lightbox-arrow { position: absolute; top: 50%; transform: translateY(-50%); }
.lightbox-previous { left: 24px; }
.lightbox-next { right: 24px; }

@media (max-width: 760px) {
  :root { --header-height: 112px; --gutter: 20px; }
  .site-header { position: sticky; top: 0; }
  .desktop-nav { display: none; }
  .menu-button { display: block; }
  .wordmark { font-size: 1rem; }
  body.menu-open { overflow: hidden; }

  .commercial-page { padding: 0 12px 54px; }
  .commercial-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 8px; }
  .commercial-card figcaption { margin-top: 8px; font-size: .75rem; }
  .commercial-role { font-size: .75rem; }

  .personal-page { padding: 0 0 50px; }
  .personal-grid { height: auto; }
  .personal-item { position: static; width: 100%; margin: 0 0 3px; }
  .overview-footer { margin: 24px 20px 0; }

  .books-page { padding: 3px 0 48px; }
  .book-intro { margin: 8px auto 42px; padding: 0 20px; }
  .book-intro h1 { margin-bottom: 17px; font-size: 1.15rem; }
  .book-intro > p:not(.eyebrow) { font-size: .92rem; }
  .book-intro .book-credit { font-size: .76rem; }
  .book-stage { grid-template-columns: 28px minmax(0, 1fr) 28px; min-height: 66vh; }
  .book { min-height: 62vh; }
  .book img { max-width: 100%; max-height: 62vh; }
  .book img + img { display: none; }
  .book-arrow { font-size: 2rem; padding: 0; }

  .contact-page { padding: 50px 20px 70px; grid-template-columns: 1fr; gap: 48px; }
  .contact-copy p { font-size: .95rem; }
  .contact-copy h2 { margin-top: 31px; }
  .about-details { margin-top: 44px; }
  .about-image { width: 45%; min-width: 160px; margin-left: auto; margin-right: auto; }

  .lightbox { padding: 54px 34px; }
  .lightbox img { max-width: calc(100vw - 68px); max-height: calc(100vh - 130px); }
  .lightbox p { left: 34px; right: 34px; bottom: 16px; font-size: .7rem; }
  .lightbox-arrow { font-size: 2.1rem; }
  .lightbox-previous { left: 7px; }
  .lightbox-next { right: 7px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
