/* Artist biography page — original stylesheet.
   Layout: fixed patterned header, left-aligned text column, full-page portrait
   fixed behind the content on the right. */

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

html {
  height: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  font-family: 'Source Sans Pro', 'Source Sans 3', 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  font-weight: 400;
  color: #555;
  background: #fff;
  overflow-x: hidden;
  overflow-y: scroll;
}

h1, h2, h3, p, ul { margin: 0; padding: 0; }

a {
  color: #467091;
  text-decoration: none;
  line-height: 1.5;
}
a:hover { color: #c42026; }

img { max-width: 100%; height: auto; border: 0; }

/* Shared container: left-aligned, not centred. */
.ctr {
  position: relative;
  box-sizing: content-box;
  max-width: 1080px;
  margin: 0 auto 0 8px;
  padding: 0 2%;
}
.ctr::after { content: ''; display: table; clear: both; }

/* ---------- Background portrait (biography page) ---------- */
/* The portrait is pinned to the right of the window, below the header, and
   its left edge fades into the white page so the text column stays clean. */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: #fff;
}
.backdrop img {
  position: absolute;
  top: 58px;
  right: 0;
  display: block;
  width: 46%;
  height: calc(100% - 58px);
  max-width: none;
  object-fit: cover;
  object-position: 50% 72%;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 24%);
  mask-image: linear-gradient(to right, transparent 0, #000 24%);
}

/* Second photo on the biography page (group portrait): the group fills the
   frame, so it sits lower and gets a shorter fade on the left. */
.backdrop img.backdrop-group {
  object-position: 50% 55%;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 17%);
  mask-image: linear-gradient(to right, transparent 0, #000 17%);
}

/* Photos that take turns: stacked on top of each other, one visible at a time. */
.photo-rotator img {
  opacity: 0;
  transition: opacity 1s ease-in-out;
}
.photo-rotator img.is-on { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .photo-rotator img { transition: none; }
}

/* Wider, landscape stage photo on the "What is Conjuring" page. */
.backdrop-stage img {
  width: 52%;
  object-position: 47% 50%;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 20%);
  mask-image: linear-gradient(to right, transparent 0, #000 20%);
}

/* Projects page: keep the performer and the dove in view. */
.backdrop-projects img { object-position: 62% 50%; }

/* ---------- Header ---------- */
#hdr {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  width: 100%;
  min-height: 20px;
  padding: 15px 0;
  background: #170203 url(../images/header-pattern.svg) repeat;
}

#logo {
  position: absolute;
  z-index: 30;
  display: block;
  width: 200px;
  height: 48px;
  margin-top: -8px;
  line-height: 0;
}
#logo img {
  display: block;
  width: 200px;
  height: 48px;
  max-width: none;
}

#hdr-r {
  margin-left: 245px;
  text-align: right;
}

#nav {
  margin: 0;
  padding: 0 10px;
  list-style: none;
}
#nav li {
  position: relative;
  display: inline-block;
  margin: 0;
  padding: 0;
}
#nav li a {
  display: block;
  margin-right: 2px;
  padding: 5px;
  font-size: 18px;
  font-weight: 300;
  line-height: 1;
  color: #fff;
  transition: all 0.3s;
}
#nav li a:hover { opacity: 0.9; color: #ff0909; }
#nav li a.active { opacity: 0.9; color: #ff0909; font-weight: 700; }

#nav-expand {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 9999;
  height: 42px;
  padding: 13px 15px 15px 35px;
  font-size: 14px;
  line-height: 14px;
  letter-spacing: 1px;
  text-align: left;
  text-transform: uppercase;
  color: #888;
  background: #333 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='12'%3E%3Cpath d='M0 1h14M0 6h14M0 11h14' stroke='%23888' stroke-width='2'/%3E%3C/svg%3E") no-repeat 11px 50%;
}
#nav-expand:hover { color: #888; }

/* ---------- Page title and language switch ---------- */
#page-title {
  position: relative;
  width: 60%;
  margin: 120px 0 5px;
  padding: 0 0 10px;
}
#page-title .title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  color: #c42026;
}

.breadcrumbs {
  margin: 5px 0 0;
  padding: 5px 0;
  list-style: none;
}
.breadcrumbs::after { content: ''; display: table; clear: both; }
.breadcrumbs li {
  display: block;
  float: left;
  margin: 0 20px 0 0;
  padding-top: 5px;
  font-size: 14px;
  line-height: 1.2;
  letter-spacing: 1px;
  color: #000;
}
.breadcrumbs li a {
  padding-right: 14px;
  font-size: 14px;
  line-height: 1.2;
  letter-spacing: 1px;
  color: #676767;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='15'%3E%3Cpath d='M1.5 1.5l6 6-6 6' fill='none' stroke='%23e2585c' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat 100% 40%;
}
.breadcrumbs li a:hover { color: #c42026; }

/* ---------- Biography ---------- */
#about-cnt {
  position: relative;
  z-index: 80;
  min-height: 600px;
}
.about-cnt-inner {
  position: relative;
  box-sizing: content-box;
  width: 56%;
  margin-bottom: 20px;
  padding: 20px 30px 40px 0;
}
.about-cnt-inner p {
  margin-bottom: 20px;
  font-size: 14px;
  line-height: 1.5;
  color: #2d2d2d;
}
.about-cnt-inner p.bio-date { text-align: right; }
.about-cnt-inner .spacer { clear: both; height: 20px; }

/* Photo across the top of the page: phones only. */
.page-photo { display: none; }

/* ---------- What is Conjuring ---------- */
.what-cnt-inner {
  position: relative;
  box-sizing: content-box;
  width: 52%;
  margin-bottom: 20px;
  padding: 20px 30px 40px 0;
}
.what-cnt-inner p {
  margin-bottom: 20px;
  font-size: 16px;
  line-height: 24px;
  color: #2d2d2d;
}
/* 16:9 video box (plus 30px for the player bar); the embed fills it. */
.video-frame {
  position: relative;
  height: 0;
  margin-bottom: 20px;
  padding: 30px 0 56.25%;
  overflow: hidden;
}
.video-frame iframe,
.video-frame video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-placeholder {
  background: #1d1f24;
  outline: 1px solid #3a3e46;
  outline-offset: -1px;
}
.video-placeholder span {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  margin-top: -12px;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 1px;
  text-align: center;
  color: #aeb5bf;
}

/* ---------- Projects ---------- */
.projects-cnt-inner {
  position: relative;
  box-sizing: content-box;
  width: 50%;
  min-height: 620px;
  margin-bottom: 20px;
  padding: 20px 30px 40px 0;
}
/* Two cards per row: image on top, then the title and one short line. */
.project-grid {
  --project-photo-ratio: 2 / 3;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 16px;
  max-width: 560px;
  margin: 7px 0 0;
  padding: 0;
  list-style: none;
}
.project-grid li {
  background: rgba(242, 246, 244, 0.72);
  transition: background 0.1s linear;
}
.project-grid li:hover { background: #f6f6f6; }
.project-grid a {
  display: block;
  height: 100%;
  padding-bottom: 13px;
  line-height: 18px;
  color: #2d2d2d;
}
.project-photo {
  position: relative;
  display: block;
  aspect-ratio: var(--project-photo-ratio);
  overflow: hidden;
  background: #1b1d21;
}
.project-photo img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  transition: opacity 0.3s;
}
.project-grid a:hover .project-photo img { opacity: 0.88; }
/* A poster that is not portrait: show all of it, with dark bands above and below. */
.project-photo-fit { background: linear-gradient(to bottom, #18222c 0, #18222c 50%, #110e13 50%, #110e13 100%); }
.project-photo-fit img { object-fit: contain; }
.project-grid .project-title {
  display: block;
  padding: 12px 15px 0;
  font-size: 16px;
  line-height: 18px;
  letter-spacing: 1px;
  color: #2d2d2d;
}
.project-grid .project-title strong { letter-spacing: normal; }
.project-note {
  display: block;
  padding: 5px 15px 0;
  font-size: 13px;
  line-height: 17px;
  letter-spacing: 0.5px;
  color: #c42026;
}
/* Small label on the corner of the image, e.g. "Latest". */
.project-badge {
  position: absolute;
  top: 12px;
  left: 0;
  padding: 6px 10px 5px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #fff;
  background: #c42026;
}
/* Current status line, e.g. "Now touring in China". */
.project-status {
  display: block;
  padding: 7px 15px 1px;
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #2d2d2d;
}
.project-status::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  margin: 0 7px 1px 0;
  border-radius: 50%;
  background: #c42026;
}
.spacer-50 { clear: both; height: 50px; }

/* ---------- Project page (one production) ---------- */
/* No photo behind the page here: poster on the left, facts and photos on the right. */
.back-link {
  margin-bottom: 10px;
  font-size: 13px;
  line-height: 1.2;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.back-link a { color: #676767; }
.back-link a:hover { color: #c42026; }
.back-link a::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  margin: 0 6px 1px 2px;
  border-bottom: 1.6px solid #e2585c;
  border-left: 1.6px solid #e2585c;
  transform: rotate(45deg);
}
#page-title .title-original {
  display: block;
  margin-top: 6px;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 1px;
  color: #2d2d2d;
}
#page-project #page-title { width: auto; max-width: 980px; }
.project-detail {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 36px;
  max-width: 980px;
  padding: 20px 0 50px;
}
.project-poster img,
.project-gallery img {
  display: block;
  width: 100%;
  height: auto;
  background: #1b1d21;
}
.project-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-bottom: 24px;
}
.project-tags .project-badge { position: static; }
.project-tags .project-status { padding: 0; }
.project-kicker {
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #2d2d2d;
}
.project-intro {
  margin-bottom: 28px;
  font-size: 17px;
  line-height: 1.6;
  color: #2d2d2d;
}
.project-heading {
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #c42026;
}
.project-facts {
  margin-bottom: 30px;
  list-style: none;
  border-bottom: 1px solid #e6e9ec;
}
.project-facts li {
  padding: 11px 0 12px;
  border-top: 1px solid #e6e9ec;
  font-size: 16px;
  line-height: 1.45;
  color: #2d2d2d;
}
.fact-original {
  display: block;
  margin-top: 3px;
  font-size: 13px;
  letter-spacing: 0.5px;
  color: #777;
}
.project-gallery {
  display: grid;
  gap: 14px;
  margin-bottom: 30px;
}

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  right: 2px;
  bottom: 36px;
  z-index: 90;
  padding: 14px;
  line-height: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s, visibility 0.5s;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; }
.back-to-top.is-visible:hover { opacity: 0.5; }
.back-to-top svg { display: block; width: 70px; height: 70px; }

/* ---------- Footer ---------- */
#ftr { height: 40px; }

#ftr-home {
  position: relative;
  z-index: 40;
  padding: 10px 0;
  text-align: left;
}
.footer-lab {
  min-height: 45px;
  font-size: 12px;
  line-height: 14px;
  color: #333;
}
.footer-lab::after { content: ''; display: table; clear: both; }
.footer-lab a {
  font-size: 12px;
  line-height: 14px;
  color: #333;
}
.footer-lab a:hover { color: #c42026; }
.footer-credit {
  float: left;
  padding: 4px 35px 0 15px;
}
/* ---------- Home page ---------- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

body.home {
  overflow: hidden;
  background: #fbfbfb;
}

/* Phone-only pieces of the home page. */
body.home #logo,
.hero-logo,
.features-title { display: none; }

/* Large logo: starts inside the header and hangs down over the photo. */
#logo-home {
  position: absolute;
  z-index: 30;
  display: block;
  width: 275px;
  height: 158px;
  line-height: 0;
}
#logo-home img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
}

/* Hero: full-screen showreel behind everything. Pure background: it takes no
   clicks, and a still image sits underneath for loading, failure and
   reduced-motion. */
.hero-media {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: #0b0d10;
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
}
.hero-poster,
.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
}
.hero-video {
  opacity: 0;
  transition: opacity 0.6s linear;
}
.hero-video.is-playing { opacity: 1; }
.hero-video.is-off { display: none; }
.hero-video::-webkit-media-controls,
.hero-video::-webkit-media-controls-start-playback-button { display: none !important; }
/* Dark gradient over the footage so the logo, quotes and footer stay readable. */
.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(6, 8, 12, 0.55) 0%, rgba(6, 8, 12, 0.2) 28%, rgba(6, 8, 12, 0.25) 50%, rgba(6, 8, 12, 0.78) 100%),
    linear-gradient(to right, rgba(6, 8, 12, 0.35) 0%, rgba(6, 8, 12, 0) 35%, rgba(6, 8, 12, 0) 60%, rgba(6, 8, 12, 0.4) 100%);
}
@media (prefers-reduced-motion: reduce) {
  .hero-video { display: none; }
}

/* Rotating press quotes, lower right. */
#press-quotes {
  position: fixed;
  right: 20px;
  bottom: 30px;
  width: 410px;
  height: 200px;
  overflow: hidden;
  cursor: default;
}
.quotes {
  margin: 0;
  padding: 0 5px 0 20px;
  list-style: none;
}
.quotes li {
  display: none;
  height: 200px;
  overflow: hidden;
  font-size: 18px;
  line-height: 21.6px;
  color: #fff;
  opacity: 1;
  transition: opacity 1.2s linear;
}
.quotes li.current { display: block; }
.quotes li.is-fading { opacity: 0; }

/* Honours in place of press quotes: a large line and a small one, changing
   every few seconds. All of them share one grid cell, so the block keeps the
   height of the tallest and nothing jumps when they change. */
#press-quotes.honours {
  bottom: 62px;
  display: flex;
  align-items: flex-end;
  height: 170px;
  overflow: visible;
}
.honours .quotes {
  display: grid;
  width: 100%;
  margin-left: 20px;
  padding: 3px 5px 3px 18px;
  border-left: 2px solid #c42026;
}
.honours .quotes li {
  grid-area: 1 / 1;
  display: block;
  height: auto;
  overflow: visible;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s linear;
}
.honours .quotes li.current { opacity: 1; visibility: visible; }
.honours .quotes li.is-fading { opacity: 0; }
.honour-title {
  display: block;
  font-size: 26px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.3px;
  color: #fff;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.55);
}
.honour-note {
  display: block;
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.35;
  letter-spacing: 0.5px;
  color: #d5dae0;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.6);
}

/* Feature boxes, lower left. */
.feature-block {
  position: fixed;
  bottom: 50px;
  left: 60px;
  box-sizing: content-box;
  width: 150px;
  padding: 10px;
  overflow: hidden;
  font-size: 12px;
  line-height: 14.4px;
  color: #fff;
  background: rgba(24, 6, 6, 0.55);
}
.feature-block-2 { left: 240px; }
.feature-text {
  min-height: 57.6px;
  margin: 0;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
}
.feature-status { color: #f00; }
.feature-cover { display: block; line-height: 0; }
/* The link covers the whole box, so the text is clickable too. */
.feature-cover::after {
  content: '';
  position: absolute;
  inset: 0;
}
.feature-cover img { transition: opacity 0.3s; }
.feature-block:hover .feature-cover img { opacity: 0.88; }
.feature-cover img {
  display: block;
  width: 150px;
  height: 150px;
}
/* Footer pinned to the bottom edge. */
.home-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 45px;
  font-size: 12px;
  line-height: 14px;
  color: #fff;
}
.home-footer a {
  font-size: 12px;
  line-height: 14px;
  color: #ccc;
}
.home-footer a:hover { color: #aaa; }
.home-credit {
  float: right;
  padding: 4px 45px 0 15px;
}
/* ---------- Phones and small tablets ---------- */
/* A separate design for narrow screens: slim fixed header with a menu button,
   full-screen menu, photo across the top of each page, larger text and tap
   targets. The desktop rules above are not changed. */
@media (max-width: 800px) {
  :root {
    --bar: 56px;
    --gutter: 20px;
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --safe-left: env(safe-area-inset-left, 0px);
    --safe-right: env(safe-area-inset-right, 0px);
  }

  html.nav-open { overflow: hidden; }

  body {
    padding-top: calc(var(--bar) + var(--safe-top));
    font-size: 16px;
    background: #fff;
  }

  a,
  #nav-expand { -webkit-tap-highlight-color: transparent; }

  .ctr {
    max-width: none;
    margin: 0;
    padding: 0 calc(var(--gutter) + var(--safe-right)) 0 calc(var(--gutter) + var(--safe-left));
  }

  .backdrop { display: none; }

  /* ----- Header bar ----- */
  #hdr {
    min-height: 0;
    height: calc(var(--bar) + var(--safe-top));
    padding: var(--safe-top) 0 0;
    background: none;
  }
  /* The pattern sits on its own layer so it can fade in on the home page. */
  #hdr::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: #170203 url(../images/header-pattern.svg) repeat;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
    transition: opacity 0.3s;
  }
  #hdr .ctr {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--bar);
    padding-right: calc(6px + var(--safe-right));
    padding-left: calc(16px + var(--safe-left));
  }
  #hdr .ctr::after { display: none; }

  #logo {
    position: static;
    flex: none;
    width: 150px;
    height: 36px;
    margin: 0;
  }
  #logo img { width: 150px; height: 36px; }

  #hdr-r {
    margin: 0;
    text-align: left;
  }

  /* Menu button: three bars that turn into a cross. */
  #nav-expand {
    position: static;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    background: none;
  }
  .nav-icon,
  .nav-icon::before,
  .nav-icon::after {
    display: block;
    width: 24px;
    height: 2px;
    border-radius: 1px;
    background: #fff;
  }
  .nav-icon {
    position: relative;
    transition: background-color 0.2s;
  }
  .nav-icon::before,
  .nav-icon::after {
    content: '';
    position: absolute;
    left: 0;
    transition: transform 0.25s, top 0.25s;
  }
  .nav-icon::before { top: -7px; }
  .nav-icon::after { top: 7px; }
  #nav-expand[aria-expanded="true"] .nav-icon { background-color: transparent; }
  #nav-expand[aria-expanded="true"] .nav-icon::before { top: 0; transform: rotate(45deg); }
  #nav-expand[aria-expanded="true"] .nav-icon::after { top: 0; transform: rotate(-45deg); }
  #nav-expand:focus-visible {
    outline: 2px solid #fff;
    outline-offset: -6px;
    border-radius: 8px;
  }

  /* ----- Full-screen menu ----- */
  #nav {
    position: fixed;
    top: calc(var(--bar) + var(--safe-top));
    right: 0;
    bottom: 0;
    left: 0;
    overflow: auto;
    overscroll-behavior: contain;
    padding: 8px calc(24px + var(--safe-right)) calc(24px + var(--safe-bottom)) calc(24px + var(--safe-left));
    background: #120203;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.25s, transform 0.25s, visibility 0s 0.25s;
  }
  #nav.visible {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity 0.25s, transform 0.25s;
  }
  #nav li {
    display: block;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }
  #nav li a {
    margin: 0;
    padding: 21px 4px;
    font-size: 22px;
    font-weight: 300;
    line-height: 1.2;
    letter-spacing: 0.5px;
    color: #fff;
  }
  #nav li a:hover { opacity: 1; color: #fff; }
  #nav li a:active { color: #ff5a5a; }
  #nav li a.active {
    opacity: 1;
    font-weight: 600;
    color: #ff3b3b;
  }

  /* ----- Photo across the top of the inner pages ----- */
  .page-photo {
    display: block;
    line-height: 0;
    background: #14161a;
  }
  .page-photo img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 72vh;
    max-height: 72svh;
    object-fit: cover;
  }
  .page-photo .photo-rotator { position: relative; }
  .page-photo .photo-rotator img { object-position: 50% 22%; }
  .page-photo .photo-rotator img + img {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
  }

  /* ----- Page title and language switch ----- */
  #page-title {
    width: auto;
    margin: 24px 0 0;
    padding: 0 0 4px;
  }
  #page-title .title {
    font-size: 22px;
    line-height: 1.25;
    letter-spacing: 1px;
  }
  #page-title .title::after {
    content: '';
    display: block;
    width: 36px;
    height: 2px;
    margin-top: 10px;
    background: #c42026;
  }
  .breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0 0;
    padding: 0;
  }
  .breadcrumbs::after { display: none; }
  .breadcrumbs li {
    float: none;
    display: flex;
    align-items: center;
    min-height: 40px;
    margin: 0;
    padding: 0 18px;
    border: 1px solid #c42026;
    border-radius: 20px;
    font-size: 14px;
    letter-spacing: 0.5px;
    color: #fff;
    background: #c42026;
  }
  .breadcrumbs li.has-link {
    padding: 0;
    border-color: #cdd3d9;
    background: none;
  }
  .breadcrumbs li a {
    display: flex;
    align-items: center;
    min-height: 38px;
    padding: 0 18px;
    font-size: 14px;
    letter-spacing: 0.5px;
    color: #444;
    background: none;
  }

  /* ----- Text pages ----- */
  #about-cnt { min-height: 0; }
  .about-cnt-inner,
  .what-cnt-inner,
  .projects-cnt-inner {
    width: auto;
    max-width: 620px;
    min-height: 0;
    margin-bottom: 0;
    padding: 18px 0 28px;
  }
  .about-cnt-inner p,
  .what-cnt-inner p {
    margin-bottom: 18px;
    font-size: 16px;
    line-height: 1.65;
  }
  .about-cnt-inner p.bio-date { font-size: 14px; }
  .about-cnt-inner .spacer { height: 0; }
  .video-frame { margin-bottom: 16px; }
  .video-placeholder span { font-size: 14px; }

  /* ----- Project page ----- */
  .back-link { margin-bottom: 12px; }
  .back-link a {
    display: inline-block;
    padding: 6px 0;
  }
  .project-detail {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding: 20px 0 24px;
  }
  .project-poster {
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
  }
  .project-tags { margin-bottom: 20px; }
  .project-tags .project-badge { font-size: 11px; padding: 6px 10px 5px; }
  .project-tags .project-status { font-size: 12px; letter-spacing: 1px; }

  /* ----- Projects ----- */
  .projects-cnt-inner { max-width: none; }
  .project-grid {
    max-width: none;
    gap: 14px 12px;
    margin-top: 2px;
  }
  .project-grid li { background: #f3f5f4; }
  .project-grid a { padding-bottom: 12px; }
  .project-grid .project-title {
    padding: 10px 12px 0;
    font-size: 15px;
    line-height: 19px;
    letter-spacing: 0.3px;
  }
  .project-status {
    padding: 6px 12px 0;
    font-size: 11px;
    letter-spacing: 0.6px;
  }
  .project-badge { top: 10px; padding: 5px 8px 4px; font-size: 10px; }
  .project-note {
    padding: 4px 12px 0;
    font-size: 12.5px;
    line-height: 16px;
    letter-spacing: 0.2px;
  }
  .spacer-50 { height: 12px; }

  /* ----- Back to top ----- */
  .back-to-top {
    right: calc(12px + var(--safe-right));
    bottom: calc(16px + var(--safe-bottom));
    padding: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.82);
  }
  .back-to-top svg { width: 48px; height: 48px; }

  /* ----- Footer (inner pages) ----- */
  #ftr { height: 8px; }
  #ftr-home {
    padding: 18px 0 calc(20px + var(--safe-bottom));
    border-top: 1px solid #e8ebee;
    text-align: center;
  }
  .footer-lab { min-height: 0; color: #777; }
  /* Side room so the back-to-top button never covers the copyright line. */
  .footer-credit {
    float: none;
    padding: 0 72px;
    text-wrap: balance;
    word-break: keep-all;
  }

  /* ----- Home page: dark, stacked ----- */
  body.home {
    padding-top: 0;
    overflow-x: hidden;
    overflow-y: scroll;
    color: #e9ebee;
    background: #0b0c10;
  }
  #logo-home { display: none; }

  /* The header starts clear over the video; the pattern and the small logo
     come in once the page is scrolled (or the menu is opened). */
  body.home #hdr::before { opacity: 0; }
  html.is-scrolled body.home #hdr::before,
  html.nav-open body.home #hdr::before { opacity: 1; }
  body.home #logo {
    display: block;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0s 0.3s;
  }
  html.logo-passed body.home #logo,
  html.nav-open body.home #logo {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s;
  }

  .hero-media {
    position: relative;
    inset: auto;
    z-index: 0;
    aspect-ratio: 5 / 4;
    max-height: 70vh;
    max-height: 70svh;
    width: 100%;
  }
  /* Dark at the top for the menu button, and the bottom melts into the page. */
  .hero-shade {
    background: linear-gradient(to bottom,
      rgba(11, 12, 16, 0.62) 0%,
      rgba(11, 12, 16, 0.12) 24%,
      rgba(11, 12, 16, 0) 48%,
      rgba(11, 12, 16, 0.82) 84%,
      #0b0c10 100%);
  }
  .hero-logo {
    position: relative;
    z-index: 1;
    display: block;
    width: 232px;
    margin: -50px auto 0;
    line-height: 0;
  }
  .hero-logo img { display: block; width: 100%; height: auto; }

  /* Quotes share one grid cell, so the box is always as tall as the longest
     quote and the page does not jump when they change. */
  #press-quotes {
    position: static;
    width: auto;
    max-width: 560px;
    height: auto;
    margin: 30px auto 0;
    padding: 0 calc(24px + var(--safe-right)) 0 calc(24px + var(--safe-left));
    overflow: visible;
  }
  .quotes {
    display: grid;
    padding: 2px 0 2px 16px;
    border-left: 2px solid #c42026;
  }
  .quotes li {
    grid-area: 1 / 1;
    display: block;
    height: auto;
    overflow: visible;
    font-size: 17px;
    line-height: 1.45;
    color: #e9ebee;
    opacity: 0;
    visibility: hidden;
  }
  .quotes li.current { opacity: 1; visibility: visible; }
  .quotes li.is-fading { opacity: 0; }
  #press-quotes.honours { display: block; height: auto; }
  .honours .quotes {
    margin-left: 0;
    padding: 2px 0 2px 16px;
  }
  .honour-title { font-size: 22px; text-shadow: none; }
  .honour-note { font-size: 14px; color: #aab1bb; text-shadow: none; }

  .features {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    max-width: 560px;
    margin: 0 auto;
    padding: 40px calc(var(--gutter) + var(--safe-right)) 8px calc(var(--gutter) + var(--safe-left));
  }
  .features-title {
    display: flex;
    align-items: center;
    gap: 12px;
    grid-column: 1 / -1;
    margin-bottom: 2px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #9299a5;
  }
  .features-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.14);
  }
  .feature-block,
  .feature-block-2 {
    position: relative;
    left: auto;
    bottom: auto;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    width: auto;
    padding: 0;
    font-size: 14px;
    line-height: 1.35;
    color: #e9ebee;
    border: 1px solid rgba(255, 255, 255, 0.09);
    background: #15171c;
  }
  .feature-cover { order: -1; }
  .feature-cover img {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
  }
  .feature-text {
    min-height: 0;
    padding: 10px 12px 13px;
    overflow-wrap: anywhere;
  }
  .feature-status { color: #ff4d4d; }

  .home-footer {
    position: static;
    height: auto;
    padding: 30px 20px calc(26px + var(--safe-bottom));
    text-align: center;
    color: #7f8591;
  }
  .home-footer a { color: #9aa0ab; }
  .home-credit { float: none; padding: 0; }
}

@media (max-width: 800px) and (prefers-reduced-motion: reduce) {
  #nav,
  #nav.visible,
  .nav-icon,
  .nav-icon::before,
  .nav-icon::after,
  #hdr::before,
  body.home #logo { transition: none; }
}
