/* Studio Plant — site styles
   Structure after adamclarkecolour.com: dark rail with a + drawer, hairline
   column rules, a giant wordmark, blurred tinted stills that sharpen on hover. */

:root {
  --g: #2D6BFF;          /* ground colour, overridden from the Customizer */
  --ink: #000;
  --paper: #F0F0F0;
  --rail: #1E1E1E;
  --line-dark: #3A3A3A;
  --railw: 48px;
  --ease: cubic-bezier(.23, 1, .32, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--g);
  color: var(--ink);
  font-family: 'Archivo', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-stretch: 125%;
  font-size: 15px;
  line-height: .95;
  text-transform: uppercase;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip; /* a long title must never make a phone scroll sideways */
}
body.is-film { background: #000; color: var(--paper); }
body.is-paper { background: var(--paper); }
body.menu-is-open { overflow: hidden; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }

.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link:focus {
  clip: auto; width: auto; height: auto; margin: 0; z-index: 100;
  top: 8px; left: 56px; padding: 10px 12px; background: var(--paper); color: var(--ink);
}

/* ---------- Rail, menu button, drawer ---------- */

.rail {
  position: fixed; top: 0; bottom: 0; left: 0; width: var(--railw);
  background: var(--rail); z-index: 20;
}
.menu-open {
  position: fixed; left: 0; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; padding: 0; border: 0; background: none;
  display: flex; align-items: center; justify-content: center;
  color: var(--g); cursor: pointer; z-index: 21;
}
.film-close {
  position: fixed; left: 0; top: 12px; width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  color: var(--paper); z-index: 21;
}
.menu-open svg, .menu-close svg, .film-close svg { transition: transform .75s var(--ease); }
.menu-open:hover svg, .menu-close:hover svg, .film-close:hover svg { transform: rotate(90deg); }

.drawer {
  position: fixed; top: 0; bottom: 0; left: 0; width: 75vw;
  background: var(--rail); color: var(--g); z-index: 30;
  display: flex;
  transform: translateX(-101%); visibility: hidden;
  transition: transform .75s var(--ease), visibility 0s linear .75s;
}
.drawer.is-open { transform: none; visibility: visible; transition: transform .75s var(--ease); }
.scrim { position: fixed; inset: 0; z-index: 25; display: none; }
body.menu-is-open .scrim { display: block; }

.drawer-body {
  flex: 1; min-width: 0; overflow-y: auto;
  padding: 20px 24px 20px 72px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
}
.drawer-name { font-weight: 800; }
.drawer-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; margin-top: 40px; }
.drawer-list a { display: block; border-top: 1px solid var(--line-dark); padding: 8px 0 10px; transition: color .3s; }
.drawer-list b { display: block; font-weight: 800; }
.drawer-nav a {
  display: block; border-top: 1px solid var(--line-dark);
  font-weight: 800; font-size: 6.5vw; line-height: .86; padding: 6px 0 2px;
  transition: color .3s;
}
.drawer-list a:hover, .drawer-nav a:hover, .drawer-name:hover { color: var(--paper); }
.menu-close {
  flex: 0 0 64px; padding: 0; border: 0; border-left: 1px solid var(--line-dark);
  background: none; color: inherit; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}

/* ---------- Grid ---------- */

.grid { display: grid; grid-template-columns: var(--railw) minmax(0, .6fr) minmax(0, 1.4fr) minmax(0, .9fr); }

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

.hero { height: 100vh; height: 100svh; min-height: 560px; grid-template-rows: minmax(0, 1fr); }
.hero--short { height: 62vh; height: 62svh; min-height: 420px; }
.hero .col { grid-row: 1; min-width: 0; margin: 20px 0; padding-left: 6px; border-left: 1px solid; }
.hero .col-a { grid-column: 3; }
.hero .col-b { grid-column: 4; }
.hero-label { font-weight: 800; }
.hero-nav a { display: block; }
.hero-nav a:hover, .hero-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 2px; }
.wordmark {
  grid-column: 3 / 5; grid-row: 1; align-self: end; position: relative;
  margin: 0 20px 20px 0; padding-left: 7px;
  /* Sized so "PRODUCTIONS" (about 10.2em wide) fills columns 2 and 3 without wrapping. */
  font-weight: 800; font-size: calc((79.3vw - 65px) / 10.2); line-height: .84;
}
.hero--short .wordmark { font-size: calc((79.3vw - 65px) / 5); }

/* ---------- Feed ---------- */

.item { grid-column: 3 / 5; display: block; min-width: 0; margin: 0 28px 140px 0; padding-left: 6px; border-left: 1px solid; }
.item figure { margin: 0; }
.clip { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--rail); }
.clip img {
  display: block; width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) blur(5px); transform: scale(1.04);
  transition: filter .75s var(--ease), transform .75s var(--ease);
}
.clip::after {
  content: ''; position: absolute; inset: 0;
  background: var(--g); mix-blend-mode: multiply;
  transition: opacity .75s var(--ease);
}
.item:hover .clip img, .item:focus-visible .clip img, .item.is-active .clip img { filter: none; transform: none; }
.item:hover .clip::after, .item:focus-visible .clip::after, .item.is-active .clip::after { opacity: 0; }
.cap { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding-top: 6px; font-size: 26px; }
.cap b { display: block; font-weight: 800; }
.cap small { flex: 0 0 auto; padding-top: 4px; font-size: 15px; white-space: nowrap; }
.feed-empty { grid-column: 3 / 5; margin: 0 28px 140px 0; padding-left: 6px; border-left: 1px solid; }

.foot {
  grid-column: 3 / 5; display: flex; justify-content: space-between; gap: 16px;
  margin: 0 0 20px; padding: 0 28px 0 6px; border-left: 1px solid;
}
.foot a:hover { text-decoration: underline; }

/* ---------- Film page ---------- */

.film-media { position: relative; margin-left: var(--railw); aspect-ratio: 16 / 9; max-height: 100vh; background: #111; }
.film-media iframe, .film-media img {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover;
}
.film-play {
  position: absolute; inset: 0; width: 100%; padding: 0; border: 0; background: none;
  display: flex; align-items: center; justify-content: center;
  color: var(--paper); cursor: pointer;
}
.film-play svg { filter: drop-shadow(0 0 18px rgba(0, 0, 0, .35)); transition: transform .3s var(--ease); }
.film-play:hover svg { transform: scale(1.08); }
.film-bar {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 16px;
  margin: 12px 20px 0 calc(var(--railw) + 20px); padding-left: 6px; border-left: 1px solid;
}
.film-bar b { display: block; font-weight: 800; }
.film-bar span:last-child { flex: 0 0 auto; }
.film-body { padding-top: 120px; }
.film-text {
  grid-column: 3; min-width: 0; padding: 0 32px 0 6px; border-left: 1px solid;
  text-transform: none; font-stretch: 100%;
}
.film-text p { margin: 0 0 .8em; max-width: 22em; font-size: clamp(20px, 2.2vw, 32px); line-height: 1.15; }
.film-text p:last-child { margin-bottom: 0; }
.film-text a { text-decoration: underline; text-underline-offset: 3px; }
.film-text figure { margin: 32px 0 0; }
.film-text img { display: block; }
.film-credits { grid-column: 4; min-width: 0; margin: 0 20px 0 0; padding-left: 6px; border-left: 1px solid; align-self: start; }
.film-credits div { margin-bottom: 10px; }
.film-credits dt { font-weight: 800; }
.film-credits dd { margin: 0; }
.film-next { grid-column: 3 / 5; display: flex; flex-direction: column; gap: 8px; margin: 140px 20px 20px 0; padding-left: 6px; }
.film-next a { font-weight: 800; font-size: 7vw; line-height: .86; transition: color .3s; overflow-wrap: break-word; hyphens: auto; }
.film-next a:hover { color: var(--g); }

/* ---------- Paper pages (About, plain pages, 404) ---------- */

.paper { min-height: 100vh; min-height: 100svh; }
.paper-mark { grid-column: 2; padding: 20px 12px 0; font-weight: 800; }
.paper-mark:hover { text-decoration: underline; }
.paper-col {
  grid-column: 3; min-width: 0; margin: 20px 0; padding: 0 24px 0 6px; border-left: 1px solid;
  display: flex; flex-direction: column; justify-content: space-between; gap: 48px;
  text-transform: none;
}
.paper-lead { margin: 0; max-width: 19em; font-size: clamp(24px, 2.4vw, 34px); line-height: 1.1; font-weight: 400; }
.paper-body { margin-top: 28px; max-width: 36em; font-stretch: 100%; font-size: 16px; line-height: 1.3; }
.paper-body p { margin: 0 0 1em; }
.paper-body a { text-decoration: underline; text-underline-offset: 3px; }
.paper-contact { display: flex; flex-direction: column; gap: 6px; font-size: 16px; line-height: 1.2; }
.paper-contact a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Phone ---------- */

@media (max-width: 700px) {
  :root { --railw: 0px; }
  .rail, .film-close { display: none; }
  .menu-open {
    left: auto; right: 16px; top: auto; bottom: 16px; transform: none;
    width: 56px; height: 56px; border-radius: 50%; background: #000;
  }
  .grid { grid-template-columns: 12px 0 minmax(0, 1.25fr) minmax(0, 1fr); }
  .hero { height: 64vh; height: 64svh; min-height: 420px; }
  .hero--short { height: 40vh; height: 40svh; min-height: 280px; }
  .hero-label, .hero-nav { font-size: 12px; }
  .wordmark { font-size: calc((100vw - 31px) / 10.2); margin-right: 12px; }
  .hero--short .wordmark { font-size: calc((100vw - 31px) / 5); }
  .item, .feed-empty { margin: 0 12px 64px 0; }
  .cap { font-size: 15px; gap: 8px; }
  .cap small { font-size: 11px; padding-top: 2px; }
  .foot { flex-direction: column; gap: 4px; padding-right: 12px; font-size: 11px; margin-bottom: 88px; }

  .drawer { width: 100vw; }
  .drawer-body { padding: 16px 12px; }
  .drawer-list { grid-template-columns: minmax(0, 1fr); margin-top: 24px; font-size: 12px; }
  .drawer-nav a { font-size: 11.5vw; }
  .menu-close { flex-basis: 48px; }

  .film-bar { margin: 10px 12px 0; font-size: 12px; }
  .film-body { grid-template-columns: 12px minmax(0, 1fr); row-gap: 40px; padding-top: 48px; }
  .film-text, .film-credits, .film-next { grid-column: 2; margin-right: 12px; }
  .film-text { padding-right: 0; }
  .film-next { margin: 64px 12px 96px 0; }
  .film-next a { font-size: 10vw; }
  .is-film .menu-open { background: var(--g); color: #000; }

  .paper { grid-template-columns: 12px minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .paper-mark { grid-column: 2; padding: 16px 0 0; }
  .paper-col { grid-column: 2; margin: 16px 12px 96px 0; padding-right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
