/* ==========================================================================
   EMIL'S COOK BOOK — stylesheet (v3)
   White space, black text, photos first. All Keynote text renders in caps,
   caption colors (black/white) follow the Keynote exactly.
   ========================================================================== */

:root {
  --ink: #111;
  --paper: #fff;
  --muted: #6b6b6b;
  --hairline: rgba(0, 0, 0, .14);
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --content-w: 1480px;
  --gutter: clamp(16px, 4vw, 56px);
  --block-gap: clamp(56px, 11vh, 128px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { display: block; }
a { color: inherit; }

/* ---------- top navigation (appears after the hero) ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 var(--gutter);
  height: 52px;
  background: rgba(255, 255, 255, .86);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline);
  transform: translateY(-100%);
  transition: transform .35s ease;
}
.nav.show { transform: translateY(0); }
.nav .brand {
  font-family: var(--display);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}
.nav ul {
  display: flex;
  gap: clamp(10px, 1.6vw, 26px);
  margin: 0 0 0 auto;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav ul::-webkit-scrollbar { display: none; }
.nav ul a {
  font-family: var(--display);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: .09em;
  text-transform: uppercase;
  text-decoration: none;
  opacity: .75;
  white-space: nowrap;
  transition: opacity .2s;
}
.nav ul a:hover { opacity: 1; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  height: 100svh;
  min-height: 540px;
  overflow: hidden;
}
.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero .titles {
  position: absolute;
  left: 5vw;
  right: 5vw;
  top: 34%;
  color: #fff;
}
.hero h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(54px, 13.2vw, 256px);
  line-height: .95;
  letter-spacing: .015em;
  text-transform: uppercase;
}
.hero .sub {
  margin: .35em 0 0 .05em;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(19px, 3.1vw, 60px);
  letter-spacing: .03em;
  text-transform: uppercase;
  opacity: .92;
}
.hero .contact-row {
  position: absolute;
  left: 5vw;
  bottom: max(28px, 4.5vh);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* contact buttons (hero + final contact) */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid rgba(255, 255, 255, .75);
  border-radius: 999px;
  color: #fff;
  font-family: var(--display);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  background: rgba(0, 0, 0, .12);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  transition: background .2s, color .2s;
}
.btn:hover { background: #fff; color: #111; }
.btn svg { width: 15px; height: 15px; fill: currentColor; }

/* ---------- table of contents / index ---------- */

.toc {
  max-width: var(--content-w);
  margin: 0 auto;
  padding: var(--block-gap) var(--gutter) 0;
}
.toc h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(44px, 7vw, 110px);
  line-height: 1;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.toc .sub {
  margin: .4em 0 0;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(17px, 2vw, 30px);
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
}
.toc nav { margin-top: clamp(36px, 6vh, 72px); }
.index-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--hairline);
}
.index-list a {
  display: flex;
  align-items: baseline;
  gap: 22px;
  padding: 12px 0;
  text-decoration: none;
  border-bottom: 1px solid var(--hairline);
  transition: padding-left .25s ease;
}
.index-list a:hover { padding-left: 16px; }
.index-list .num {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: .12em;
  min-width: 2.4em;
}
.index-list .word {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(32px, 4.6vw, 62px);
  line-height: 1.12;
  letter-spacing: .025em;
  text-transform: uppercase;
}
.index-list a:hover .word { font-style: italic; }

/* contact band — sits directly under the index, anchored by the same hairlines */
.contact-band {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 1fr);
  gap: clamp(20px, 4vw, 70px);
  align-items: center;
  padding: clamp(26px, 4vh, 44px) 0;
  border-bottom: 1px solid var(--ink);
}
.contact-band .kicker {
  margin: 0 0 6px;
  font-family: var(--display);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-band .cta {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(30px, 4vw, 56px);
  line-height: 1;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.contact-band .cb-right p { margin: 0 0 9px; font-size: 15px; }
.contact-band .cb-right p:last-child { margin-bottom: 0; }
.contact-band a { text-decoration: none; border-bottom: 1px solid var(--hairline); }
.contact-band a:hover { border-color: var(--ink); }
@media (max-width: 760px) {
  .contact-band { grid-template-columns: 1fr; }
.hero .titles { top: 52%; }
    .hero .sub { color: #fff; }
}

/* ---------- section dividers (word always centered) ---------- */

.divider {
  position: relative;
  height: 100svh;
  min-height: 480px;
  overflow: hidden;
}
.divider img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.divider .word {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 94vw;
  margin: 0;
  text-align: center;
  color: #fff;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(62px, 16vw, 312px);
  line-height: .95;
  letter-spacing: .02em;
  text-transform: uppercase;
  text-shadow: 0 2px 38px rgba(0, 0, 0, .25);
}

/* ---------- full-bleed breather images ---------- */

.breather { margin: var(--block-gap) 0; }
.breather img {
  width: 100%;
  height: 100svh;
  min-height: 420px;
  object-fit: cover;
}
@media (max-width: 760px) {
  .breather img { height: auto; }
}

/* ---------- canvas blocks (faithful 1920×1080 slide layouts) ---------- */

.slide-block {
  max-width: var(--content-w);
  margin: var(--block-gap) auto;
  padding: 0 var(--gutter);
}
.canvas {
  position: relative;
  aspect-ratio: 1920 / 1080;
  container-type: inline-size;
  margin: 0;
  overflow: hidden;
}
.canvas .ph {
  position: absolute;
  overflow: hidden;
  background: #f2f2f2;
}
.canvas .ph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* captions exactly where (and in the color) the Keynote put them */
.canvas .caption {
  position: absolute;
  color: #fff;
  text-shadow: 0 1px 26px rgba(0, 0, 0, .45), 0 0 2px rgba(0, 0, 0, .25);
  z-index: 3;
}
.canvas .caption.dark,
.canvas .caption .dark {
  color: var(--ink);
  text-shadow: none;
}
.canvas .caption h3, .cap-stack h3 {
  margin: 0 0 .55em;
  font-family: var(--display);
  font-weight: 600;
  font-size: 20px;
  font-size: clamp(13px, 1.55cqw, 30px);
  line-height: 1.1;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.canvas .caption p, .cap-stack p {
  margin: 0 0 .8em;
  font-size: 14px;
  font-size: clamp(10px, 1.02cqw, 20px);
  line-height: 1.5;
  text-transform: uppercase;
}
.canvas .caption .credit, .cap-stack .credit {
  font-style: italic;
  opacity: .85;
}
.canvas .label {
  position: absolute;
  color: #fff;
  z-index: 3;
  font-family: var(--display);
  font-weight: 500;
  font-size: 13px;
  font-size: clamp(9px, 1.05cqw, 20px);
  letter-spacing: .06em;
  text-transform: uppercase;
  text-shadow: 0 1px 14px rgba(0, 0, 0, .55);
  white-space: nowrap;
}
.canvas .label.dark { color: var(--ink); text-shadow: none; }

/* big in-photo statements (childhood stories) keep their caps look */
.canvas .caption.statement p {
  font-family: var(--display);
  font-weight: 500;
  font-size: 22px;
  font-size: clamp(11px, 1.7cqw, 33px);
  line-height: 1.3;
  letter-spacing: .035em;
}

/* stacked caption shown under the block on small screens */
.cap-stack { display: none; padding-top: 18px; }
.cap-stack h3 { font-size: 19px; }
.cap-stack p { font-size: 14px; color: var(--ink); }
@media (max-width: 760px) {
  .canvas .caption { display: none; }
  [data-slide="68"] .canvas .label { transform: translateY(-14px); }
  .cap-stack { display: block; }
  .slide-block { padding: 0 12px; }
  
  
}

/* photo series (first cookbook) — two rows like the Keynote */
.strip-block {
  max-width: var(--content-w);
  margin: var(--block-gap) auto;
  padding: 0 var(--gutter);
}
.strip-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: clamp(6px, .9vw, 14px);
}
.strip-grid img { width: 100%; height: auto; }
.strip-grid .caption-side {
  grid-column: 8;
  grid-row: 2;
  align-self: end;
  justify-self: start;
  font-size: 13px;
  line-height: 1.5;
  text-transform: uppercase;
}
@media (max-width: 760px) {
  .strip-grid { grid-template-columns: repeat(4, 1fr); }
  .strip-grid .caption-side { grid-column: 1 / -1; grid-row: auto; padding-top: 6px; }
}

/* ---------- closing statement (baseball story below the photo) ---------- */

.closing {
  max-width: var(--content-w);
  margin: clamp(40px, 8vh, 90px) auto var(--block-gap);
  padding: 0 var(--gutter);
}
.closing p {
  margin: 0;
  max-width: 1180px;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(20px, 2.6vw, 40px);
  line-height: 1.32;
  letter-spacing: .03em;
  text-transform: uppercase;
}

/* ---------- final contact section ---------- */

.contact-final {
  background: var(--ink);
  color: #fff;
  padding: clamp(64px, 13vh, 150px) var(--gutter) clamp(48px, 9vh, 100px);
  text-align: center;
}
.contact-final .kicker {
  margin: 0 0 14px;
  font-family: var(--display);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: .26em;
  text-transform: uppercase;
  opacity: .65;
}
.contact-final h2 {
  margin: 0 0 36px;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(44px, 8vw, 130px);
  line-height: .98;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.contact-final .contact-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.contact-final .btn { background: transparent; }
.contact-final .btn:hover { background: #fff; color: #111; }
.contact-final .fineline {
  margin: clamp(48px, 9vh, 90px) 0 0;
  font-family: var(--display);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .55;
}

/* ---------- reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}


/* ---------- lightbox (click a photo for the full-resolution view) ---------- */

.canvas .ph img, .breather img, .strip-grid img { cursor: zoom-in; }
.lb {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(8, 8, 8, .94);
}
.lb.open { display: flex; }
.lb img {
  max-width: min(94vw, 1800px);
  max-height: 92svh;
  width: auto;
  height: auto;
  box-shadow: 0 10px 60px rgba(0, 0, 0, .6);
}
.lb button {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 999px;
  background: rgba(0, 0, 0, .35);
  color: #fff;
  font: 400 26px/1 var(--body);
  cursor: pointer;
  transition: background .2s;
}
.lb button:hover { background: rgba(255, 255, 255, .18); }
.lb .lb-close { top: 18px; right: 18px; }
.lb .lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb .lb-next { right: 14px; top: 50%; transform: translateY(-50%); }
.lb .lb-count {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, .65);
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: .14em;
}
@media (max-width: 760px) {
  .lb .lb-prev, .lb .lb-next { display: none; }   /* swipe instead */
}
body.lb-lock { overflow: hidden; }
.ph, .breather, .canvas { position: relative; }
.credit-tag {
  position: absolute;
  left: 2.5%;
  bottom: 2.5%;
  z-index: 4;
  color: #fff;
  opacity: .55;
  font-family: var(--display);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-shadow: 0 1px 4px rgba(0,0,0,.6);
  pointer-events: none;
}
.intro {
  max-width: var(--content-w);
  margin: 0 auto;
  padding: clamp(40px, 7vh, 90px) var(--gutter);
  text-align: center;
}
.intro p {
  margin: 0 auto;
  max-width: 1180px;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(20px, 2.6vw, 40px);
  line-height: 1.32;
  letter-spacing: .03em;
  text-transform: uppercase;
}