/* ==========================================================================
   ONLY A KID WITH DREAMS
   ========================================================================== */

@font-face {
  font-family: "Bebas Neue";
  src: url("../assets/BebasNeue-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #0a0a0a;
  --paper: #f2f2f2;
  --muted: #7a7a7a;
  --muted-2: #8a8a8a;
  --muted-3: #6e6e6e;
  --pad: clamp(16px, 4vw, 56px);
  --header-h: 74px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --safe-l: env(safe-area-inset-left, 0px);
  --safe-r: env(safe-area-inset-right, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
}

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

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: "Bebas Neue", "Arial Narrow", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }

/* Must beat any display rule below (.lightbox, .banner-wrap, …). */
[hidden] { display: none !important; }

a { color: inherit; text-decoration: none; }

button {
  font: inherit;
  color: inherit;
  border: 0;
  background: transparent;
  cursor: pointer;
}

::selection { background: var(--paper); color: var(--ink); }

:focus-visible {
  outline: 3px solid #0a84ff;
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: 12px 20px;
  background: var(--paper);
  color: var(--ink);
  letter-spacing: .16em;
}
.skip-link:focus { left: 8px; top: 8px; }

/* Shared bits ------------------------------------------------------------ */

.hl {
  display: inline-block;
  background: var(--paper);
  color: var(--ink);
  line-height: 1;
  padding: .14em .15em .05em;
}
.hl--dark { background: var(--ink); color: var(--paper); }

.caret {
  display: none;
  width: .07em;
  height: .72em;
  margin-left: .06em;
  background: var(--paper);
  vertical-align: baseline;
  animation: oakwd-caret 1s steps(1) infinite;
}
.caret--tight { margin-left: .02em; margin-right: .06em; }
.caret--dark { background: var(--ink); align-self: center; height: .7em; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 30px;
  font-size: clamp(16px, 1.7vw, 21px);
  letter-spacing: .16em;
  transition: background .3s ease, color .3s ease;
}
.btn--solid { background: var(--paper); color: var(--ink); }
.btn--solid:hover { background: #b8b8b8; }
.btn--ghost { background: #1a1a1a; color: var(--paper); }
.btn--ghost:hover { background: var(--paper); color: var(--ink); }
.btn--dark { background: #2b2b2b; color: var(--paper); }
.btn--dark:hover { background: var(--paper); color: var(--ink); }
.btn--plain { background: transparent; color: var(--muted-2); }
.btn--plain:hover { color: var(--paper); }

.section-note {
  margin: 0;
  font-size: clamp(16px, 1.7vw, 21px);
  letter-spacing: .16em;
  line-height: 1.4;
  color: var(--muted);
  text-wrap: pretty;
}

/* Header ----------------------------------------------------------------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px calc(var(--pad) * .8 + var(--safe-r)) 14px calc(var(--pad) * .8 + var(--safe-l));
  background: #0a0a0aeb;
}

/* backdrop-filter makes an element the containing block for every
   position: fixed descendant. The mobile menu IS such a descendant, so the
   blur may only exist at widths where the menu is not an overlay. Otherwise
   the overlay gets trapped inside the 76px header box and its links land
   above the top edge of the screen. */
@media (min-width: 901px) {
  .site-header {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }
}

.brand { display: flex; align-items: center; min-width: 0; position: relative; z-index: 70; }
.brand img { height: clamp(46px, 5.4vw, 74px); width: auto; }

.nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.4vw, 30px);
}

.nav-link {
  /* Padding is what makes these comfortable tap targets. */
  padding: 11px 2px;
  font-size: clamp(15px, 1.6vw, 19px);
  letter-spacing: .18em;
  transition: opacity .25s ease;
}
.nav-link:hover { opacity: .55; }

.nav-link--solid {
  padding: 11px 18px;
  background: var(--paper);
  color: var(--ink);
  transition: background .25s ease;
}
.nav-link--solid:hover { background: #b8b8b8; opacity: 1; }

.lang-toggle {
  padding: 11px 10px;
  color: var(--muted-2);
  font-size: 15px;
  letter-spacing: .18em;
  transition: color .25s ease;
}
.lang-toggle:hover { color: var(--paper); }

.burger {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 48px;
  height: 48px;
  padding: 0;
  /* Must sit above the open menu overlay, otherwise it is covered by it
     and the menu can no longer be closed. */
  position: relative;
  z-index: 70;
}
.burger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--paper);
  transition: transform .35s var(--ease), opacity .2s ease;
}

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

.hero {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  justify-items: center;
  /* A definite height is what lets the polaroid resolve max-height: 100%
     and stay above the fold. */
  height: 100vh;
  height: 100svh;
  padding: calc(var(--header-h) + clamp(8px, 2vh, 26px)) var(--pad) clamp(24px, 4vh, 52px);
}

.hero-type {
  position: relative;
  z-index: 2;
  width: 100%;
  text-align: center;
  pointer-events: none;
}

.hero-title {
  margin: 0;
  font-size: clamp(46px, 11vw, 190px);
  line-height: .8;
  letter-spacing: .01em;
}

.hero-media {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 0;
  padding-top: clamp(6px, 1.4vw, 18px);
}

.hero-media img {
  width: auto;
  max-width: min(94vw, 780px);
  max-height: 100%;
  object-fit: contain;
  will-change: transform, opacity;
  animation: oakwd-toss 1.3s cubic-bezier(.22, .9, .24, 1) .12s both;
}

.hero-cta {
  position: relative;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: clamp(18px, 3vw, 34px);
}

.hero-hint {
  position: absolute;
  right: clamp(4px, 1.2vw, 18px);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  font-size: clamp(14px, 1.5vw, 19px);
  letter-spacing: .2em;
  color: var(--muted-2);
  pointer-events: none;
  will-change: opacity;
}
.hero-hint-text {
  writing-mode: vertical-rl;
  animation: oakwd-nudge 2s ease-in-out infinite;
}
.hero-hint-arrow {
  font-size: 1.25em;
  animation: oakwd-sweep 2s ease-in-out .12s infinite;
}

/* Marquee ---------------------------------------------------------------- */

.marquee {
  position: relative;
  z-index: 1;
  overflow: hidden;
  padding: 10px 0;
  background: var(--paper);
  color: var(--ink);
}
.marquee--reverse { margin-top: clamp(30px, 5vw, 60px); padding: 8px 0; }

.marquee-track {
  display: flex;
  width: max-content;
  animation: oakwd-marquee 30s linear infinite;
}
.marquee-track--reverse { animation-duration: 26s; animation-direction: reverse; }

.marquee-group {
  display: flex;
  gap: 34px;
  padding-right: 34px;
  font-size: clamp(26px, 3.4vw, 48px);
  letter-spacing: .03em;
  white-space: nowrap;
}
.marquee--reverse .marquee-group { gap: 30px; padding-right: 30px; font-size: clamp(24px, 3.2vw, 44px); }

/* Work ------------------------------------------------------------------- */

.work { position: relative; z-index: 1; padding-top: clamp(50px, 8vw, 110px); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 0 var(--pad) clamp(22px, 3vw, 38px);
}
.section-head h2 {
  margin: 0;
  font-size: clamp(46px, 9vw, 150px);
  line-height: .82;
}

.project { margin-bottom: clamp(30px, 5vw, 70px); }

.project-head {
  position: sticky;
  top: var(--header-h);
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 18px;
  padding: 10px var(--pad) 14px;
  background: #0a0a0aeb;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.project-head h3 {
  margin: 0;
  font-size: clamp(38px, 7vw, 104px);
  line-height: .85;
}
.project-tag {
  font-size: clamp(14px, 1.5vw, 18px);
  letter-spacing: .22em;
  color: var(--muted);
}

.shot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr));
}

.shot {
  position: relative;
  display: block;
  padding: 0;
  overflow: hidden;
  background: var(--ink);
  aspect-ratio: 1 / 1;
}
.shot img {
  width: 100%;
  height: 112%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
  transition: filter .5s ease;
  will-change: transform;
}
.shot:hover img { filter: grayscale(0) contrast(1); }

.films {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
}

.film {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--ink);
}
.film-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  filter: grayscale(1);
  opacity: .8;
  transition: opacity .4s ease, filter .5s ease, transform .8s var(--ease);
}
.film:hover .film-thumb { opacity: 1; filter: grayscale(0); transform: scale(1.04); }

.film-blocked {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 20px;
  background: #141414;
  text-align: center;
  font-size: clamp(15px, 1.6vw, 19px);
  letter-spacing: .16em;
  line-height: 1.4;
  color: var(--muted-2);
}

.film-badge {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 6px 16px;
  background: var(--paper);
  color: var(--ink);
  font-size: 15px;
  letter-spacing: .22em;
}

/* Story ------------------------------------------------------------------ */

.story {
  position: relative;
  z-index: 1;
  background: var(--paper);
  color: var(--ink);
  padding: clamp(46px, 7vw, 100px) 0 0;
}

.story-inner { padding: 0 var(--pad); }

.story-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 .16em;
  margin: 0 0 clamp(14px, 2vw, 26px);
  font-size: clamp(44px, 10vw, 180px);
  line-height: .84;
  color: var(--ink);
}

.story-cols {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(20px, 2.8vw, 48px);
  align-items: flex-start;
}

.story-side {
  flex: 0 1 240px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(22px, 3vw, 34px);
}

.lang-pills { display: flex; gap: 8px; }
.pill {
  min-height: 40px;
  padding: 6px 20px;
  font-size: 16px;
  letter-spacing: .22em;
  background: #dcdcdc;
  color: var(--ink);
  transition: background .25s ease, color .25s ease;
}
.pill.is-active { background: var(--ink); color: var(--paper); }

.facts {
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 2vw, 20px);
  margin: 0;
}
.fact { display: flex; flex-direction: column; gap: 2px; }
.fact dt {
  font-size: clamp(13px, 1.4vw, 15px);
  letter-spacing: .26em;
  color: #8f8b84;
}
.fact dd {
  margin: 0;
  font-size: clamp(22px, 2.4vw, 32px);
  letter-spacing: .06em;
  line-height: 1;
  color: var(--ink);
}

.story-main { flex: 1 1 480px; min-width: 0; }

.story-lead {
  margin: 0 0 clamp(26px, 3.5vw, 44px);
  font-size: clamp(26px, 3.4vw, 54px);
  line-height: 1.02;
  color: var(--ink);
  text-wrap: pretty;
}

.story-body { columns: 2 280px; column-gap: clamp(24px, 3vw, 46px); }
.story-body p {
  margin: 0 0 18px;
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.45;
  letter-spacing: .04em;
  color: #2b2b2b;
  text-wrap: pretty;
}

.story-outro {
  margin: clamp(28px, 4vw, 48px) 0 0;
  font-size: clamp(24px, 3vw, 44px);
  line-height: 1;
  color: var(--ink);
}

/* Collage ---------------------------------------------------------------- */

.collage {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  padding: clamp(28px, 4.5vw, 64px) var(--pad) clamp(10px, 1.5vw, 20px);
}
.collage-note {
  position: relative;
  z-index: 1;
  width: min(62%, 540px);
  will-change: transform;
}
.collage-logo {
  position: relative;
  z-index: 2;
  width: min(36%, 300px);
  margin-left: -9%;
  margin-top: clamp(20px, 4vw, 64px);
  will-change: transform;
}

/* Album book ------------------------------------------------------------- */

.book-track {
  position: relative;
  height: 320vh;
  height: 320svh;
  padding: 0 var(--pad);
}

.book-pin {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--header-h) + 8px) 0 clamp(16px, 2.5vh, 30px);
}

.book-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 12px;
  margin-bottom: clamp(12px, 2.4vw, 26px);
}
.book-note {
  font-size: clamp(14px, 1.7vw, 21px);
  letter-spacing: .22em;
  line-height: 1.3;
  color: var(--muted-3);
}
.book-nav { display: flex; align-items: center; gap: 14px; }
.book-label {
  font-size: clamp(15px, 1.6vw, 19px);
  letter-spacing: .22em;
  color: var(--muted-3);
}
.book-dots { display: flex; gap: 6px; }
.book-dots i {
  width: 22px;
  height: 3px;
  background: #c9c5bd;
  transition: background .3s ease;
}
.book-dots i.is-on { background: var(--ink); }

.book-stage {
  position: relative;
  perspective: 2400px;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
}

.book-cover {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 3vw, 32px);
  padding: clamp(18px, 4vw, 48px);
  background: var(--ink);
  transform-origin: left center;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  box-shadow: 0 30px 60px -26px #0a0a0a80, inset -14px 0 26px -14px #ffffff1a;
  will-change: transform, opacity;
  pointer-events: none;
}
.book-cover img { width: min(62%, 380px); }
.book-spine {
  position: absolute;
  top: 0;
  bottom: 0;
  left: clamp(14px, 2vw, 26px);
  width: 2px;
  background: #ffffff2b;
}
.book-cover-hint {
  font-size: clamp(14px, 1.6vw, 19px);
  letter-spacing: .28em;
  color: var(--muted);
  text-align: center;
}

.album {
  position: relative;
  padding: clamp(12px, 3vw, 38px);
  background: #101010;
  box-shadow: 0 30px 60px -30px #0a0a0a73, inset 0 0 0 1px #ffffff14;
  transform-style: preserve-3d;
  will-change: transform, opacity;
}
.album-gutter {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: #ffffff1f;
  pointer-events: none;
}

.spread {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(10px, 2.2vw, 30px);
}
.spread:not(.is-active) { display: none; }

.photo {
  position: relative;
  display: block;
  width: 100%;
  padding: clamp(7px, 1.6vw, 18px) clamp(7px, 1.6vw, 18px) clamp(24px, 4vw, 46px);
  background: var(--paper);
  box-shadow: 4px 7px 18px #00000073;
  transition: transform .5s var(--ease), box-shadow .5s ease;
}
.photo:hover { transform: translateY(-6px) rotate(-.6deg); box-shadow: 8px 14px 30px #000000a6; }
.photo img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #d8d4cc;
}
.photo-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(6px, 1.2vw, 14px);
  text-align: center;
  font-size: clamp(12px, 1.5vw, 18px);
  letter-spacing: .2em;
  color: #4a4a4a;
}
.photo-corner {
  position: absolute;
  width: 16px;
  height: 16px;
}
.photo-corner--tl {
  top: clamp(6px, 1vw, 12px);
  left: clamp(6px, 1vw, 12px);
  border-top: 2px solid #0a0a0a33;
  border-left: 2px solid #0a0a0a33;
}
.photo-corner--br {
  bottom: clamp(6px, 1vw, 12px);
  right: clamp(6px, 1vw, 12px);
  border-bottom: 2px solid #0a0a0a33;
  border-right: 2px solid #0a0a0a33;
}

/* Flow / chat ------------------------------------------------------------ */

.flow { position: relative; z-index: 1; }

.chat-track {
  position: relative;
  height: 300vh;
  height: 300svh;
  padding: 0 var(--pad);
}
.chat-pin {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--header-h) + 12px) 0 clamp(30px, 5vh, 56px);
}

.chat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(20px, 5vw, 70px);
  align-items: center;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
}

.chat-copy { min-width: 0; }

.stack-title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .06em;
  margin: 0 0 clamp(18px, 3vw, 28px);
  font-size: clamp(36px, 6.4vw, 112px);
  line-height: .9;
}
.chat-copy .section-note { max-width: 34ch; color: var(--muted-2); }

.chat-wrap { min-width: 0; display: flex; justify-content: center; }

.phone {
  width: min(100%, 400px);
  padding: 12px;
  border-radius: 34px;
  background: #0f0f0f;
  box-shadow: 0 0 0 1px #2a2a2a;
}
.phone-screen {
  display: flex;
  flex-direction: column;
  min-height: clamp(400px, 58vh, 560px);
  min-height: clamp(400px, 58svh, 560px);
  border-radius: 26px;
  background: #000;
  overflow: hidden;
}

.chat-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px 12px;
  background: #121212;
}
.chat-back { color: var(--muted-2); font-size: 22px; line-height: 1; }
.chat-avatar {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #2e2e2e;
  font-size: 14px;
  letter-spacing: .06em;
}
.chat-name { font-size: 17px; letter-spacing: .1em; }

.chat-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  padding: 16px 14px 10px;
  overflow: hidden;
}

.bubble { display: flex; justify-content: flex-start; }
.bubble--mine { justify-content: flex-end; }
.bubble span {
  max-width: 78%;
  padding: 9px 15px 10px;
  border-radius: 20px;
  background: #262628;
  color: var(--paper);
  font-size: clamp(15px, 1.7vw, 19px);
  letter-spacing: .045em;
  line-height: 1.3;
}
.bubble--mine span { background: #0a84ff; color: #fff; }

.typing { display: flex; justify-content: flex-end; }
.typing span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  animation: oakwd-dot 1.6s ease-in-out infinite;
}
.typing {
  gap: 5px;
  padding: 13px 16px;
  border-radius: 20px;
  background: #0a84ff;
  align-self: flex-end;
  width: max-content;
}
.typing span:nth-child(2) { animation-delay: .22s; }
.typing span:nth-child(3) { animation-delay: .44s; }

.chat-input {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px 16px;
}
.chat-field {
  flex: 1 1 auto;
  padding: 9px 16px;
  border-radius: 20px;
  background: #1a1a1a;
  color: #5c5c5c;
  font-size: 17px;
  letter-spacing: .06em;
}
.chat-send {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #2e2e2e;
  color: var(--muted-2);
  font-size: 15px;
}

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

.contact {
  position: relative;
  z-index: 1;
  overflow: hidden;
  padding: clamp(60px, 9vw, 130px) 0 0;
}

.contact-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(150%, 1500px);
  max-width: none;
  transform: translate(-50%, -50%);
  opacity: .16;
  filter: grayscale(1) contrast(1.2);
  pointer-events: none;
  will-change: transform;
}

.contact-head { position: relative; padding: 0 var(--pad); }
.contact-head .stack-title {
  gap: .04em;
  margin: 0 0 clamp(30px, 5vw, 64px);
  font-size: clamp(40px, 8.6vw, 160px);
  line-height: .84;
}
.stack-row { display: flex; align-items: flex-end; gap: .05em; }

.socials { position: relative; }

.social {
  display: flex;
  align-items: center;
  gap: clamp(12px, 3vw, 44px);
  padding: clamp(16px, 2.4vw, 30px) var(--pad);
  color: var(--paper);
  transition: background .45s var(--ease), color .45s ease, padding-left .45s var(--ease);
}
.social:hover {
  background: var(--paper);
  color: var(--ink);
  padding-left: clamp(26px, 5vw, 84px);
}
.social-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: clamp(30px, 4vw, 62px);
  height: clamp(30px, 4vw, 62px);
}
.social-icon svg { width: 100%; height: 100%; }
.social-label {
  flex: 1 1 auto;
  min-width: 0;
  font-size: clamp(22px, 5.4vw, 92px);
  line-height: .9;
  letter-spacing: .01em;
  overflow-wrap: anywhere;
}
.social-arrow { flex: 0 0 auto; font-size: clamp(22px, 3.4vw, 54px); line-height: 1; }

/* Footer ----------------------------------------------------------------- */

.site-footer { position: relative; z-index: 1; padding-top: clamp(36px, 5.5vw, 80px); }

.to-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: clamp(14px, 2vw, 26px) var(--pad);
  transition: background .45s var(--ease), color .45s ease, padding-left .45s var(--ease);
}
.to-top:hover {
  background: var(--paper);
  color: var(--ink);
  padding-left: clamp(26px, 5vw, 84px);
}
.to-top-label { font-size: clamp(24px, 5vw, 84px); line-height: .9; letter-spacing: .01em; }
.to-top-arrow { font-size: clamp(22px, 3.4vw, 54px); line-height: 1; }

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px clamp(18px, 3vw, 42px);
  margin-top: clamp(26px, 4vw, 56px);
  padding: 0 var(--pad) calc(clamp(22px, 3vw, 34px) + var(--safe-b));
  font-size: clamp(14px, 1.5vw, 17px);
  letter-spacing: .22em;
  color: var(--muted-3);
}
.footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(14px, 2.4vw, 30px); }
.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--muted-3);
  transition: color .25s ease;
}
.footer-links a:hover { color: var(--paper); }

/* Cookie banner ---------------------------------------------------------- */

.cookie-fab {
  position: fixed;
  z-index: 92;
  left: calc(clamp(12px, 2vw, 22px) + var(--safe-l));
  bottom: calc(clamp(12px, 2vw, 22px) + var(--safe-b));
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--paper);
  font-size: 24px;
  line-height: 1;
  box-shadow: 0 8px 22px #000000a6;
  transition: transform .35s var(--ease);
}
.cookie-fab:hover { transform: scale(1.1) rotate(-8deg); }

.banner-wrap {
  position: fixed;
  z-index: 94;
  left: calc(clamp(12px, 2vw, 22px) + var(--safe-l));
  right: calc(clamp(12px, 2vw, 22px) + var(--safe-r));
  bottom: calc(clamp(12px, 2vw, 22px) + var(--safe-b));
  display: flex;
  justify-content: flex-start;
  pointer-events: none;
}

.banner {
  pointer-events: auto;
  width: min(100%, 540px);
  max-height: calc(100vh - 24px);
  max-height: calc(100svh - 24px);
  overflow-y: auto;
  padding: clamp(16px, 2.6vw, 28px);
  background: #101010;
  box-shadow: 0 20px 50px #000000cc, inset 0 0 0 1px #ffffff1f;
}
.banner-title { margin: 0 0 14px; font-size: clamp(24px, 3vw, 40px); line-height: .9; }
.banner-text {
  margin: 0 0 8px;
  font-size: clamp(15px, 1.7vw, 19px);
  line-height: 1.45;
  letter-spacing: .04em;
  color: #c4c4c4;
  text-wrap: pretty;
}
.banner-text--muted { margin-bottom: 18px; font-size: clamp(14px, 1.6vw, 18px); color: var(--muted-2); }

.banner-switch-row { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 18px; }
.switch {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 60px;
  height: 34px;
  padding: 4px;
  background: #2b2b2b;
  transition: background .25s ease;
}
.switch[aria-checked="true"] { background: var(--paper); justify-content: flex-end; }
.switch-knob { width: 26px; height: 26px; background: var(--muted-2); transition: background .25s ease; }
.switch[aria-checked="true"] .switch-knob { background: var(--ink); }

.banner-switch-copy { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.banner-switch-label { font-size: clamp(16px, 1.8vw, 20px); letter-spacing: .12em; }
.banner-switch-hint {
  font-size: clamp(13px, 1.5vw, 16px);
  letter-spacing: .04em;
  line-height: 1.35;
  color: var(--muted-2);
  text-wrap: pretty;
}

.banner-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.banner-actions .btn {
  min-height: 44px;
  padding: 11px 24px;
  font-size: clamp(15px, 1.7vw, 19px);
  letter-spacing: .14em;
}

.banner-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
  font-size: 14px;
  letter-spacing: .2em;
  color: var(--muted-3);
}
.banner-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--muted-3);
}
.banner-links a:hover { color: var(--paper); }

/* Lightbox --------------------------------------------------------------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 96;
  display: grid;
  place-items: center;
  padding: clamp(14px, 4vw, 56px);
  background: #0a0a0af7;
  cursor: zoom-out;
}
.lightbox img { max-width: 100%; max-height: 88vh; width: auto; }
.lightbox img { max-width: 100%; max-height: 88svh; width: auto; }
.lightbox-close {
  position: absolute;
  top: 8px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: var(--paper);
  font-size: 30px;
}

/* Legal pages ------------------------------------------------------------ */

.legal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px calc(var(--pad) * .8 + var(--safe-r)) 14px calc(var(--pad) * .8 + var(--safe-l));
}
.legal-back {
  padding: 8px 18px;
  background: var(--paper);
  color: var(--ink);
  font-size: clamp(15px, 1.6vw, 19px);
  letter-spacing: .18em;
  transition: opacity .25s ease;
}
.legal-back:hover { opacity: .8; }

.legal-main {
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(24px, 5vw, 60px) calc(var(--pad) * .8) clamp(50px, 8vw, 110px);
}
.legal-main h1 {
  margin: 0 0 clamp(26px, 4vw, 48px);
  font-size: clamp(40px, 8.4vw, 124px);
  line-height: .84;
}
.legal-block { margin-bottom: clamp(28px, 4vw, 48px); }
.legal-block h2 {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0 0 12px;
  font-size: clamp(22px, 2.6vw, 34px);
  letter-spacing: .05em;
  line-height: 1.15;
  text-wrap: pretty;
}
.legal-num { flex: 0 0 auto; font-size: .6em; letter-spacing: .2em; color: var(--muted); }
.legal-block p {
  margin: 0 0 14px;
  font-size: clamp(17px, 1.9vw, 22px);
  line-height: 1.55;
  letter-spacing: .04em;
  color: #c4c4c4;
  text-wrap: pretty;
}
.legal-block ul { margin: 0; padding: 0; list-style: none; }
.legal-block li {
  display: flex;
  gap: 12px;
  margin: 0 0 10px;
  font-size: clamp(17px, 1.9vw, 22px);
  line-height: 1.55;
  letter-spacing: .04em;
  color: #c4c4c4;
  text-wrap: pretty;
}
.legal-block li::before { content: "—"; flex: 0 0 auto; color: var(--muted); }
.legal-block a { text-decoration: underline; text-underline-offset: 3px; }

.legal-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px calc(var(--pad) * .8) calc(28px + var(--safe-b));
  font-size: 15px;
  letter-spacing: .22em;
  color: var(--muted-3);
}
.legal-footer a { color: var(--muted-3); }
.legal-footer a:hover { color: var(--paper); }
.legal-footer .footer-links a { min-height: 40px; }

/* Reveal states ---------------------------------------------------------- */

.js [data-reveal="up"] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .85s var(--ease), transform .85s var(--ease);
}
.js [data-reveal="clip"] {
  clip-path: inset(0 0 100% 0);
  transform: translateY(28px);
  transition: clip-path 1s var(--ease), transform 1s var(--ease);
}
.js [data-reveal].is-in {
  opacity: 1;
  clip-path: inset(0 0 0 0);
  transform: none;
}

.js .bubble {
  opacity: 0;
  transform: translateY(16px) scale(.94);
  transition: opacity .4s ease, transform .55s var(--ease);
}
.js .bubble.is-in { opacity: 1; transform: none; }
.js .typing { opacity: 0; transition: opacity .4s ease; }
.js .typing.is-in { opacity: 1; }

/* Keyframes -------------------------------------------------------------- */

@keyframes oakwd-marquee {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}
@keyframes oakwd-caret {
  0%, 45% { opacity: 1; }
  50%, 95% { opacity: 0; }
  100% { opacity: 1; }
}
@keyframes oakwd-dot {
  0%, 60%, 100% { opacity: .35; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-4px); }
}
@keyframes oakwd-toss {
  0% { transform: translate3d(-14%, 128%, 0) rotate(-34deg) scale(.68); opacity: 0; }
  22% { opacity: 1; }
  62% { transform: translate3d(2%, -6%, 0) rotate(9deg) scale(1.06); }
  78% { transform: translate3d(-1%, 2.5%, 0) rotate(-4.5deg) scale(.98); }
  90% { transform: translate3d(0, -1%, 0) rotate(1.6deg) scale(1.01); }
  100% { transform: none; opacity: 1; }
}
@keyframes oakwd-nudge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(7px); }
}
@keyframes oakwd-sweep {
  0%, 100% { transform: translateY(0); opacity: 1; }
  45% { transform: translateY(9px); opacity: .35; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

/* Tablet and below: mobile navigation */
@media (max-width: 900px) {
  .burger { display: flex; }

  .nav {
    position: fixed;
    inset: 0;
    z-index: -1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(18px, 4vh, 34px);
    padding: calc(var(--header-h) + 20px) var(--pad) calc(40px + var(--safe-b));
    background: #0a0a0a;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity .3s ease, transform .35s var(--ease), visibility .3s;
    overflow-y: auto;
  }

  .nav .nav-link { font-size: clamp(28px, 7vw, 44px); letter-spacing: .12em; }
  .nav .nav-link--solid { padding: 12px 32px; }
  .nav .lang-toggle { font-size: 20px; padding: 12px 16px; }

  body.nav-open { overflow: hidden; }
  body.nav-open .nav {
    z-index: 55;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  body.nav-open .burger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  body.nav-open .burger span:nth-child(2) { opacity: 0; }
  body.nav-open .burger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

/* Hero hint would collide with content on narrow screens */
@media (max-width: 720px) {
  .hero-hint { display: none; }
}

/* Landscape phones and other very short viewports: shrink the whole hero
   so the buttons still land above the fold. */
@media (max-height: 520px) {
  .brand img { height: 38px; }
  .hero { padding-bottom: 16px; }
  .hero-title { font-size: clamp(28px, 6vw, 64px); }
  .hero-media { padding-top: 4px; }
  .hero-media img { max-height: 100%; }
  .hero-cta { margin-top: 10px; }
  .btn { min-height: 40px; padding: 8px 20px; font-size: 15px; }
}

/* Collage: stop the negative overlap from breaking the layout */
@media (max-width: 640px) {
  .collage { gap: 8px; }
  .collage-note { width: min(84%, 420px); }
  .collage-logo { width: min(42%, 220px); margin-left: -8%; margin-top: 8px; }
}

/* Album on phones: smaller frames and a shorter scroll track, so the whole
   spread fits inside the pinned viewport and the page turn still works. */
@media (max-width: 760px) {
  .book-track { height: 240vh; padding: 0 12px; }
  .book-track { height: 240svh; padding: 0 12px; }
  .book-pin { padding-top: calc(var(--header-h) + 6px); padding-bottom: 16px; }
  .book-meta { margin-bottom: 10px; }
  .book-note { font-size: 12px; letter-spacing: .16em; }
  .book-label { font-size: 13px; }
  .book-cover { gap: 8px; padding: 14px; }
  /* The stage is only as tall as the spread, so cap the cover art by height
     as well - width alone would overflow it. */
  .book-cover img { width: min(58%, 260px); max-height: 56%; object-fit: contain; }
  .book-cover-hint { font-size: 12px; letter-spacing: .18em; }
  .album { padding: 10px; }
  .spread { gap: 8px; }
  .photo { padding: 6px 6px 20px; }
  .photo-caption { bottom: 4px; font-size: 11px; letter-spacing: .12em; }
  .photo-corner { width: 10px; height: 10px; }
}

/* Chat on phones: stacked under its heading and sized in svh, so the pinned
   block stays inside the viewport instead of being cut off. */
@media (max-width: 760px) {
  .chat-track { height: 220vh; }
  .chat-track { height: 220svh; }
  .chat-pin {
    padding-top: calc(var(--header-h) + 8px);
    padding-bottom: clamp(18px, 3vh, 34px);
  }
  .chat-grid { grid-template-columns: 1fr; gap: clamp(12px, 3vw, 22px); }
  .chat-copy .stack-title { font-size: clamp(30px, 8vw, 56px); margin-bottom: 10px; }
  .chat-copy .section-note {
    max-width: none;
    font-size: clamp(15px, 4vw, 18px);
    line-height: 1.35;
    letter-spacing: .1em;
  }
  .phone { width: min(100%, 300px); padding: 9px; border-radius: 28px; }
  .phone-screen { min-height: clamp(250px, 42vh, 440px); border-radius: 21px; }
  .phone-screen { min-height: clamp(250px, 42svh, 440px); border-radius: 21px; }
  .chat-bar { padding: 10px 12px 8px; }
  .chat-body { gap: 6px; padding: 12px 10px 8px; }
  .chat-input { padding: 8px 10px 12px; }
}

/* Short but wide viewports (laptop windows, landscape tablets): the spread is
   sized by width, so on a flat window it outgrows the pinned viewport. Cap the
   stage by viewport height instead. */
@media (min-width: 761px) and (max-height: 760px) {
  .book-stage { max-width: min(1080px, 105vh); }
  .book-stage { max-width: min(1080px, 105svh); }
}

/* Short viewports keep a compact chat even on wider screens */
@media (max-height: 680px) and (min-width: 761px) {
  .phone-screen { min-height: 340px; }
  .book-cover img { width: min(48%, 260px); }
}

/* ---- Static mode -------------------------------------------------------
   Scroll pinning needs vertical room. Only genuinely short viewports -
   landscape phones and small older devices - cannot fit the pinned content.
   There we drop the pinning and let both sections flow normally.
   js/main.js watches the same query.                                      */
@media (max-height: 600px) {
  .book-track,
  .chat-track { height: auto; }

  .book-pin,
  .chat-pin {
    position: static;
    min-height: 0;
    padding: clamp(36px, 8vw, 80px) 0;
  }

  .book-cover { display: none; }
  .book-nav { display: none; }
  .spread:not(.is-active) { display: grid; margin-top: clamp(10px, 2.2vw, 30px); }
  .typing { display: none; }
  .phone-screen { min-height: 0; }
}

/* Very small phones */
@media (max-width: 400px) {
  .shot-grid { grid-template-columns: 1fr 1fr; }
  .social { gap: 10px; }
  .social-label { font-size: clamp(20px, 6.4vw, 34px); }
  .banner-actions .btn { width: 100%; }
}

/* Touch devices: hover states must not stick */
@media (hover: none) {
  .shot img { filter: grayscale(0) contrast(1); }
  .social:hover { background: transparent; color: var(--paper); padding-left: var(--pad); }
  .to-top:hover { background: transparent; color: var(--paper); padding-left: var(--pad); }
  .photo:hover { transform: none; box-shadow: 4px 7px 18px #00000073; }
  .film-thumb { opacity: 1; filter: grayscale(0); }
}

/* Print ------------------------------------------------------------------ */

@media print {
  .site-header, .cookie-fab, .banner-wrap, .lightbox, .hero-hint, .marquee { display: none !important; }
  body { background: #fff; color: #000; }
  .book-track, .chat-track { height: auto; }
  .book-pin, .chat-pin { position: static; min-height: 0; padding: 0; }
  .book-cover { display: none; }
  .spread:not(.is-active) { display: grid; }
}

/* Reduced motion --------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .js [data-reveal] { opacity: 1 !important; clip-path: none !important; transform: none !important; }
  .js .bubble { opacity: 1 !important; transform: none !important; }
  .js .typing { display: none !important; }
  .book-track, .chat-track { height: auto !important; }
  .book-pin, .chat-pin { position: static !important; min-height: 0 !important; padding: clamp(40px, 8vw, 90px) 0 !important; }
  .book-cover { display: none !important; }
  .spread:not(.is-active) { display: grid !important; margin-top: clamp(10px, 2.2vw, 30px); }
  .hero-media img { animation: none !important; }
}
