:root {
  --ink: #120d09;
  --panel: #15100b;
  --card: #1b140e;
  --card-hover: #221a12;
  --cream: #F3EADB;
  --cream-bright: #F6EFE3;
  --body: #CBBFAC;
  --muted: #9A8E7C;
  --gold: #E0B567;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --gutter: clamp(20px, 4vw, 56px);
  --font: 'Schibsted Grotesk', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--cream); }
a:hover { color: #ffffff; }

main {
  background: var(--ink);
  color: var(--cream);
}

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

.hero {
  position: sticky;
  /* On short screens the hero stays 620px tall and sticks with its bottom edge on the screen's bottom edge. */
  top: min(0px, calc(100vh - 620px));
  top: min(0px, calc(100svh - 620px));
  z-index: 0;
  height: 100vh;
  height: 100svh;
  min-height: 620px;
  max-height: 1200px;
  overflow: hidden;
  background: var(--ink);
}

.hero.is-dragging { cursor: grabbing; }

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.stage {
  position: absolute;
  left: 0;
  top: 0;
  width: 1920px;
  height: 1080px;
  transform-origin: 0 0;
  pointer-events: none;
  /* Shown by main.js once it has matched the stage to the photo's crop. */
  visibility: hidden;
}

.puppet {
  position: absolute;
  left: 0;
  top: 0;
  width: 400px;
  height: 900px;
  transform: matrix(0.71374, 0, 0, 0.71374, 954.17543, 356.038);
  transform-origin: 0 0;
}

.puppet img {
  position: absolute;
  left: 0;
  top: 0;
  max-width: none;
  transform-origin: 0 0;
  user-select: none;
  -webkit-user-drag: none;
}

.strings {
  position: absolute;
  left: 0;
  top: 0;
  overflow: visible;
  pointer-events: none;
}

.string {
  fill: none;
  stroke: rgba(20, 15, 11, 0.88);
  stroke-width: 1.6;
  stroke-linecap: round;
  transition: stroke 0.2s;
}

.string.is-lit {
  stroke: rgba(240, 226, 200, 0.95);
  stroke-width: 2.4;
}

.string-knee {
  stroke: rgba(20, 15, 11, 0.78);
  stroke-width: 1.4;
}

.string-hit {
  fill: none;
  stroke: transparent;
  stroke-width: 24;
  pointer-events: stroke;
  cursor: grab;
  touch-action: none;
}

.hero.is-dragging .string-hit { cursor: grabbing; }

/* The control bar: hover lights it like a string; drag it sideways and the puppet walks after it. */
.control-wood {
  fill: url(#control-wood);
  stroke: rgba(20, 15, 11, 0.75);
  stroke-width: 1.2;
  transition: stroke 0.2s;
}

.control.is-lit .control-wood {
  stroke: rgba(240, 226, 200, 0.95);
  stroke-width: 2.4;
}

.control-ring {
  fill: none;
  stroke: rgba(20, 15, 11, 0.85);
  stroke-width: 2;
}

.control-cord {
  fill: none;
  stroke: rgba(20, 15, 11, 0.8);
  stroke-width: 1.6;
}

.control-hit {
  fill: transparent;
  pointer-events: all;
  cursor: grab;
  touch-action: none;
}

.hero.is-dragging .control-hit { cursor: grabbing; }

.grip {
  fill: rgba(243, 234, 219, 0.12);
  stroke: rgba(243, 234, 219, 0.9);
  stroke-width: 1.5;
  opacity: 0;
}

.scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.scrim-bottom {
  background: linear-gradient(to top, rgba(14, 10, 7, 0.816) 0%, rgba(14, 10, 7, 0.612) 22%, rgba(14, 10, 7, 0.238) 48%, rgba(14, 10, 7, 0) 68%);
}

.scrim-left {
  background: linear-gradient(to right, rgba(14, 10, 7, 0.425) 0%, rgba(14, 10, 7, 0.187) 30%, rgba(14, 10, 7, 0) 52%);
}

.scrim-top {
  bottom: auto;
  height: 160px;
  background: linear-gradient(to bottom, rgba(14, 10, 7, 0.55), rgba(14, 10, 7, 0));
}

.site-header {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  padding: 28px var(--gutter);
  pointer-events: none;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px clamp(20px, 3vw, 44px);
  pointer-events: auto;
}

/* The logo: the m of emSav hangs from a marionette control bar. It swings once when pointed at (main.js). */
.brand {
  display: block;
  /* The control bar makes the logo taller than its letters; this lines the letters up with the nav links. */
  margin-top: -12px;
  text-decoration: none;
  color: var(--cream);
}

.brand-logo {
  display: block;
  height: 34px;
  width: auto;
  overflow: visible;
}

.brand.is-swinging .brand-puppet { animation: brand-swing 1.6s ease-in-out; }

@keyframes brand-swing {
  0% { transform: rotate(0deg); }
  18% { transform: rotate(-7deg); }
  42% { transform: rotate(4.5deg); }
  64% { transform: rotate(-2.5deg); }
  84% { transform: rotate(1deg); }
  100% { transform: rotate(0deg); }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 32px);
  font-size: 15px;
  font-weight: 500;
}

.nav-links a {
  text-decoration: none;
  padding: 12px 0;
}

.booking {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding: 12px 0;
  pointer-events: auto;
}

.booking-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(224, 181, 103, 0.18);
}

.hero-copy {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  max-width: 780px;
  padding: 0 var(--gutter) clamp(40px, 7vh, 80px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  pointer-events: none;
  will-change: transform, opacity;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(42px, 6.2vw, 92px);
  line-height: 0.98;
  font-weight: 600;
  letter-spacing: -0.035em;
  color: var(--cream-bright);
  text-wrap: balance;
}

.hero-copy p {
  margin: 0;
  max-width: 600px;
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.5;
  color: #E2D7C6;
}

.button {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  background: var(--cream);
  color: #1A130D;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  pointer-events: auto;
}

.button:hover { color: #1A130D; background: #ffffff; }

.hero-dim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: #0b0805;
  opacity: 0;
}

/* ---------- Panel and sections ---------- */

.panel {
  position: relative;
  z-index: 1;
  background: var(--panel);
  border-radius: 32px 32px 0 0;
  box-shadow: 0 -28px 70px rgba(0, 0, 0, 0.5);
  padding-bottom: clamp(88px, 10vw, 152px);
}

.section {
  padding: clamp(72px, 9vw, 136px) var(--gutter) 0;
}

/* Later sections sit under a hairline instead of a second big gap. */
.section + .section { padding-top: clamp(64px, 8vw, 120px); }
.section + .section .section-inner {
  border-top: 1px solid rgba(243, 234, 219, 0.08);
  padding-top: clamp(56px, 7vw, 104px);
}

.section-inner {
  max-width: 1328px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: clamp(40px, 5vw, 64px);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 48px;
}

.section-title-group {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 760px;
}

.eyebrow {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.section h2 {
  margin: 0;
  font-size: clamp(36px, 4.6vw, 66px);
  line-height: 1;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--cream-bright);
  text-wrap: balance;
}

.section-lede {
  margin: 0;
  max-width: 420px;
  font-size: clamp(16px, 1.3vw, 18px);
  line-height: 1.55;
  color: var(--body);
}

.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.card-slot {
  flex: 1 1 340px;
  min-width: 0;
  display: flex;
}

.app-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: var(--card);
  border: 1px solid rgba(243, 234, 219, 0.09);
  border-radius: 20px;
  overflow: hidden;
  transition: transform .55s var(--ease), border-color .3s ease, background-color .3s ease;
}

.app-card:hover {
  color: inherit;
  transform: translateY(-6px);
  border-color: rgba(243, 234, 219, 0.24);
  background-color: var(--card-hover);
}

.app-card:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

.app-visual {
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--tint);
  border-bottom: 1px solid rgba(243, 234, 219, 0.06);
}

.app-visual svg { transition: transform .9s var(--ease); }
.app-card:hover .app-visual svg { transform: scale(1.045); }

.app-visual .key {
  fill: none;
  stroke: #D9D1C0;
  stroke-opacity: 0.35;
  stroke-width: 1.2;
}

.app-visual .cross-letter {
  fill: #15100b;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  text-anchor: middle;
}

.app-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px 28px 26px;
}

.app-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.app-num { color: var(--muted); }

.app-body h3 {
  margin: 0;
  font-size: 30px;
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--cream-bright);
}

.app-body p {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  color: var(--body);
}

.app-link {
  margin-top: auto;
  padding-top: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--cream);
  overflow-wrap: anywhere;
}

.app-link svg {
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Design ---------- */

.looks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 12px;
}

.looks li {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 14px;
  row-gap: 2px;
  align-items: center;
  padding: 18px 20px;
  background: var(--card);
  border: 1px solid rgba(243, 234, 219, 0.09);
  border-radius: 14px;
}

.look-swatch {
  grid-row: 1 / span 2;
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

.look-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--cream-bright);
}

.look-mood {
  font-size: 14px;
  color: var(--body);
}

.points {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 48px;
}

.point {
  flex: 1 1 280px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.point-num {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.point h3,
.contact-card h3 {
  margin: 0;
  font-size: clamp(22px, 2vw, 26px);
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--cream-bright);
}

.point p:not(.point-num),
.contact-card > p:not(.contact-label) {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  color: var(--body);
}

/* ---------- About ---------- */

.about {
  display: flex;
  flex-wrap: wrap;
  gap: 40px clamp(48px, 7vw, 120px);
}

.about-copy {
  flex: 1 1 420px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-copy p {
  margin: 0;
  max-width: 640px;
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.5;
  color: #E2D7C6;
}

.about-list {
  flex: 1 1 360px;
  min-width: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.about-list div {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid rgba(243, 234, 219, 0.08);
}

.about-list div:last-child { border-bottom: 1px solid rgba(243, 234, 219, 0.08); }

.about-list dt {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  padding-top: 3px;
}

.about-list dd {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  color: var(--body);
}

/* ---------- Booking and quote ---------- */

.contact-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.contact-card {
  flex: 1 1 400px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(28px, 3vw, 40px);
  background: var(--card);
  border: 1px solid rgba(243, 234, 219, 0.09);
  border-radius: 20px;
  scroll-margin-top: 32px;
}

.contact-label {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}

.brief-list {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--body);
}

.brief-list li::marker { color: var(--gold); }

.slot {
  margin-top: auto;
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
  border: 1px dashed rgba(243, 234, 219, 0.22);
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
  color: var(--body);
}

/* A little extra room above the placeholder box, which sits at the card's foot. */
.contact-card > .brief-list,
.contact-card > p:nth-last-child(2) { margin-bottom: 10px; }

/* ---------- Films pages (films/, built by scripts/build-films.mjs; the player itself is in film-player.css) ---------- */

.films-main {
  background: var(--panel);
  padding-bottom: clamp(88px, 10vw, 152px);
}

.films-header { background: var(--ink); }

.nav-links a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 2px;
  text-underline-offset: 8px;
}

.films-main > .section:first-child { padding-top: clamp(40px, 6vw, 88px); }

.films-main h1 {
  margin: 0;
  font-size: clamp(36px, 4.6vw, 66px);
  line-height: 1;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--cream-bright);
  text-wrap: balance;
}

.film-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr));
  gap: clamp(36px, 4vw, 56px) 24px;
}

.film-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.film-card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.film-grid .film-card-title {
  margin: 0;
  font-size: clamp(22px, 2vw, 26px);
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--cream-bright);
}

.film-card-title a { text-decoration: none; color: inherit; }
.film-card-title a:hover { text-decoration: underline; text-underline-offset: 4px; }

.film-card-meta,
.film-more-time {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.film-card-desc {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  color: var(--body);
}

.films-empty {
  margin: 0;
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  border: 1px dashed rgba(243, 234, 219, 0.22);
  border-radius: 16px;
  font-size: 16px;
  color: var(--body);
}

.film-detail .section-inner,
.film-more-section .section-inner {
  max-width: 1200px;
  gap: clamp(24px, 3vw, 40px);
}

.film-detail .film-player { --film-radius: 20px; }

.film-back { margin: 0 0 -8px; }

.film-back a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  color: var(--body);
}

.film-back a:hover { color: var(--cream-bright); }

.film-back svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.film-info {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 48px;
}

/* What a film was made with: a label, then a row of tags, for each list (Models, Tools). */
.film-credits {
  margin: 0;
  max-width: 760px;
  display: flex;
  flex-direction: column;
}

.film-credit {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  align-items: baseline;
  gap: 8px 20px;
  padding: 16px 0;
  border-top: 1px solid rgba(243, 234, 219, 0.08);
}

.film-credit dt {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.film-credit dd {
  margin: 0;
  min-width: 0;
}

.film-tags {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.film-tags li {
  padding: 6px 14px;
  border: 1px solid rgba(243, 234, 219, 0.14);
  border-radius: 999px;
  background: rgba(243, 234, 219, 0.04);
  font-size: 15px;
  line-height: 1.3;
  color: var(--cream);
}

/* The smaller version on the films grid: no rules between rows, smaller tags. */
.film-credits-compact {
  gap: 10px;
  margin-top: 8px;
}

.film-credits-compact .film-credit {
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 6px 14px;
  padding: 0;
  border: 0;
}

.film-credits-compact dt { font-size: 11px; }
.film-credits-compact .film-tags { gap: 6px; }

.film-credits-compact .film-tags li {
  padding: 3px 10px;
  font-size: 13px;
}

/* On a phone the film page puts each label above its tags, so the tags get the full width. */
@media (max-width: 560px) {
  .film-credits:not(.film-credits-compact) .film-credit {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }
}

.section h2.film-more-title {
  font-size: clamp(26px, 2.6vw, 34px);
  letter-spacing: -0.02em;
}

.film-more {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 28px 24px;
}

.film-more a {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-decoration: none;
  color: inherit;
}

.film-more img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  margin-bottom: 8px;
  border-radius: 12px;
  background: #0b0805;
  box-shadow: 0 0 0 1px rgba(243, 234, 219, 0.09);
  transition: transform .55s var(--ease);
}

.film-more a:hover img { transform: translateY(-4px); }

.film-more-name {
  font-size: 18px;
  font-weight: 600;
  color: var(--cream-bright);
}

/* ---------- Reveal on scroll (main.js turns this on) ---------- */

.reveal-init .reveal:not(.is-in) {
  opacity: 0;
  transform: translate3d(0, 56px, 0) scale(0.97);
}

.reveal-ready .reveal {
  transition:
    opacity 0.9s var(--ease) var(--delay, 0ms),
    transform 1.1s var(--ease) var(--delay, 0ms);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .app-card,
  .app-visual svg,
  .string,
  .control-wood,
  .film-more img { transition: none; }
  .film-more a:hover img { transform: none; }
  .brand.is-swinging .brand-puppet { animation: none; }
}
