/* ============================================================
   Palette and type. Change a value here and it changes everywhere.
   ============================================================ */

:root {
  --paper:      #FBFCFE;
  --blue:       #5B84C9;   /* the cornflower. Display type, accents.   */
  --blue-deep:  #2E4C93;   /* small text — dark enough to read easily. */
  --blue-mist:  #9DB2E0;   /* captions, secondary                      */
  --hairline:   #DCE4F5;
  --scrim:      rgba(20, 38, 84, 0.30);

  --script: 'Pinyon Script', 'Snell Roundhand', cursive;
  --sans:   'Archivo', 'Helvetica Neue', Helvetica, Arial, sans-serif;

  --hang: 20px;            /* gap between the wire and the top of each plate */
  --media-h: clamp(170px, 42vh, 520px);  /* height of every cover on the reel */
  --gap:  clamp(20px, 3vw, 44px);
  --pad:  clamp(20px, 4vw, 56px);
}

/* Prefer a different script? Download one from fonts.google.com as a
   .woff2, drop it in /fonts, and change the filename in the @font-face
   block above plus the name in --script. Closest alternatives to this one:
   'Italianno'   — thinner, more flourish
   'Great Vibes' — heavier, rounder
   'Tangerine'   — very light                                            */

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--blue-deep);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

img { display: block; max-width: 100%; }

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

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

/* ---------- shared type ---------- */

.script {
  font-family: var(--script);
  font-weight: 400;
  color: var(--blue);
  line-height: 1.12;
  letter-spacing: 0.0em;
}

.label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
}

/* ============================================================
   Header — same on both pages
   ============================================================ */

.masthead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(12px, 2vh, 22px) var(--pad) clamp(14px, 2.4vh, 28px);
}

.wordmark {
  font-family: var(--script);
  font-size: clamp(34px, 4.8vh, 54px);
  color: var(--blue);
  text-decoration: none;
  line-height: 1.34;
}

.nav {
  display: flex;
  gap: 40px;
}

.nav a {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
  text-decoration: none;
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.nav a:hover { color: var(--blue-deep); }
.nav a[aria-current='page'] {
  color: var(--blue-deep);
  border-bottom-color: var(--blue-deep);
}

/* ============================================================
   LANDING PAGE — the reel
   ============================================================ */

.stage {
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.stage-heading {
  padding: 0 var(--pad) clamp(10px, 2vh, 20px);
  font-size: clamp(54px, 12.5vh, 138px);
  margin: 0;
}

.reel {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  cursor: grab;
  padding-top: var(--hang);
}

.reel::-webkit-scrollbar { display: none; }
.reel.is-dragging { cursor: grabbing; }

.track {
  display: flex;
  align-items: flex-start;
  width: max-content;
}

.set {
  display: flex;
  align-items: flex-start;
  gap: var(--gap);
  padding: 0 var(--gap) 0 var(--pad);
}

/* --- one work --- */

.plate {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 0 0 clamp(16px, 3vh, 34px);
  margin: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.plate .media {
  height: var(--media-h);
  width: calc(var(--media-h) * var(--ar, 0.75));
  flex: none;
  overflow: hidden;
  background: linear-gradient(160deg, #EDF1FB, #DCE4F5);
}

.plate .media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.4s;
}

.plate:hover .media img { transform: scale(1.03); }

.plate .caption { max-width: 34ch; }

.plate .caption h2 {
  font-family: var(--sans);
  font-size: clamp(13px, 1.6vh, 15px);
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--blue-deep);
  margin: 0 0 5px;
}

.plate .caption p {
  margin: 0;
  font-size: clamp(12px, 1.5vh, 14px);
  line-height: 1.45;
  color: var(--blue);
  white-space: pre-line;
}

.plate .caption .meta {
  color: var(--blue-mist);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 6px;

}

/* --- footer strip --- */

.stage-foot {
  flex: none;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 12px var(--pad) clamp(14px, 2vh, 22px);
  color: var(--blue-mist);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ============================================================
   The pop-up
   ============================================================ */

.sheet-dialog {
  width: min(1180px, 94vw);
  max-height: 92dvh;
  padding: 0;
  border: 0;
  background: var(--paper);
  color: var(--blue-deep);
  overflow: hidden;
}

.sheet-dialog::backdrop {
  background: var(--scrim);
  backdrop-filter: blur(3px);
}

.sheet-dialog[open] { animation: sheet-in 0.42s cubic-bezier(0.2, 0.8, 0.2, 1); }

@keyframes sheet-in {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}

.sheet {
  max-height: 92dvh;
  overflow-y: auto;
  padding: clamp(24px, 4vw, 48px);
}

.sheet-close {
  position: absolute;
  top: clamp(16px, 2.4vw, 26px);
  right: clamp(16px, 2.4vw, 26px);
  width: 38px;
  height: 38px;
  border: 0px solid var(--hairline);
  border-radius: 50%;
  background: var(--paper);
  color: var(--blue);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

.sheet-close:hover { background: var(--blue); color: var(--paper); }

.sheet-title {
  font-size: clamp(50px, 7.2vw, 98px);
  line-height: 1.18;
  margin: 0 0 10px;
  padding-right: 56px;
}

.sheet-meta {
  margin: 0 0 clamp(20px, 3vw, 30px);
  color: var(--blue-mist);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.sheet-body {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(24px, 3.4vw, 46px);
  padding-top: clamp(20px, 3vw, 30px);

}

.frame {
  aspect-ratio: 16 / 9;
  background: linear-gradient(160deg, #EDF1FB, #DCE4F5);
}

.frame iframe { width: 100%; height: 100%; border: 0; display: block; }

.frame video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
  object-fit: contain;
}

.sheet-body .prose p {
  margin: 0 0 1em;
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.6;
  color: var(--blue-deep);
  white-space: pre-line;
}

.awards {
  margin: 0 0 22px;
}

.awards .label {
  display: block;
  margin-bottom: 10px;
}

.awards ul {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 13px;
  line-height: 1.85;
  color: var(--blue);
}

.credits {
  list-style: none;
  margin: 22px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--hairline);
  font-size: 13px;
  line-height: 1.85;
  color: var(--blue);
}

.sheet-link {
  display: inline-block;
  margin-top: 22px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-deep);
  text-decoration: none;
  border-bottom: 1px solid var(--blue);
  padding-bottom: 4px;
}

.sheet-link:hover { color: var(--blue); }

.stills { margin-top: clamp(26px, 4vw, 44px); }

.stills .label { display: block; margin-bottom: 12px; }

.stills-row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
}

.stills-row img {
  height: clamp(140px, 22vh, 230px);
  width: auto;
  flex: none;
  background: #EDF1FB;
}

/* ============================================================
   PROFILE PAGE
   ============================================================ */

.page {
  max-width: 1240px;
  padding: 0 var(--pad) clamp(60px, 10vh, 120px);
}

.page-heading {
  font-size: clamp(64px, 14vw, 164px);
  margin: clamp(4px, 1.6vh, 20px) 0 clamp(30px, 5vh, 60px);
  padding-bottom: clamp(20px, 5vh, 40px);
}

.profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.portrait {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(160deg, #EDF1FB, #DCE4F5);
}

.portrait img { width: 100%; height: 100%; object-fit: cover; }

.profile-body p {
  margin: 0 0 1.15em;
  font-size: clamp(16px, 1.25vw, 19px);
  line-height: 1.65;
  max-width: 62ch;
  color: var(--blue-deep);
}

.details {
  margin: clamp(30px, 5vh, 52px) 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--hairline);
  display: grid;
  grid-template-columns: minmax(0, 140px) minmax(0, 1fr);
  gap: 10px 24px;
  font-size: 14px;
}

.details dt {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-mist);
  padding-top: 2px;
}

.details dd { margin: 0; color: var(--blue-deep); }

.contact {
  margin-top: clamp(30px, 5vh, 52px);
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.contact a {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-deep);
  text-decoration: none;
  border-bottom: 1px solid var(--blue);
  padding-bottom: 4px;
  transition: color 0.2s;
}

.contact a:hover { color: var(--blue); }

/* ============================================================
   Small screens
   ============================================================ */

@media (max-width: 860px) {
  .sheet-body { grid-template-columns: minmax(0, 1fr); }
  .profile-grid { grid-template-columns: minmax(0, 1fr); }
  .portrait { max-width: 260px; }
}

@media (max-width: 640px) {
  :root { --media-h: clamp(160px, 38vh, 380px); }
  .stage-heading { font-size: clamp(40px, 15vw, 68px); }
  .stage-foot .foot-hint { display: none; }
  .details { grid-template-columns: minmax(0, 1fr); gap: 2px 0; }
  .details dd { margin-bottom: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ============================================================
   NAV DROPDOWN — "Works" ▾ Film / Treatments / Photography
   ============================================================ */

.nav-item.has-dropdown {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 5px;
}

.nav-caret {
  background: none;
  border: 0;
  color: var(--blue);
  font-size: 9px;
  cursor: pointer;
  padding: 0 2px 3px;
  line-height: 1;
}

.nav-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 12px;
  min-width: 160px;
  background: var(--paper);
  border: 1px solid var(--hairline);
  box-shadow: 0 14px 32px rgba(46, 76, 147, 0.14);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.18s, transform 0.18s, visibility 0.18s;
  z-index: 20;
}

.nav-item.has-dropdown:hover .nav-menu,
.nav-item.has-dropdown:focus-within .nav-menu,
.nav-item.has-dropdown.is-open .nav-menu {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.nav-menu a {
  display: block;
  padding: 9px 18px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-deep);
  text-decoration: none;
  border-bottom: 0;
  white-space: nowrap;
}

.nav-menu a:hover { background: var(--hairline); }
.nav-menu a[aria-current='page'] { color: var(--blue); }

/* ============================================================
   PHOTOGRAPHY — plates that don't open anything
   ============================================================ */

.plate--static {
  cursor: default;
}

.plate--static .media img { transition: none; }
.plate--static:hover .media img { transform: none; }

/* ============================================================
   PDF FLIP-THROUGH — used in the Treatments pop-up
   ============================================================ */

.pdf-viewer {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pdf-viewer canvas {
  width: 100%;
  height: auto;
  display: block;
  background: #fff;
  cursor: pointer;
}

.pdf-status {
  font-size: 13px;
  color: var(--blue-mist);
  text-align: center;
  padding: 60px 0;
  margin: 0;
}

.pdf-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 16px;
}

.pdf-nav {
  width: 34px;
  height: 34px;
  border: 1px solid var(--hairline);
  border-radius: 50%;
  background: var(--paper);
  color: var(--blue-deep);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

.pdf-nav:hover:not(:disabled) { background: var(--blue); color: var(--paper); }
.pdf-nav:disabled { opacity: 0.35; cursor: default; }

.pdf-count {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-mist);
  min-width: 60px;
  text-align: center;
}
