/* elle-marz.com: sprue sheet design. Dark plum ground, coral used sparingly. */

:root {
  --bg: #171318;
  --ink: #f1eaee;
  --muted: #b9aab4;
  --accent: #ff6b57;
  --line: #2b242c;
  --panel: #1f1a21;
  --max: 1120px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Funnel Sans", "Helvetica Neue", Arial, sans-serif;
  font-size: 16.5px;
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

p { margin: 0 0 1.1em; }

h1, h2, h3 {
  font-family: "Savate", "Funnel Sans", Arial, sans-serif;
  font-weight: 600;
  margin: 0;
}

::selection { background: var(--accent); color: var(--bg); }

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

.wrap {
  width: min(var(--max), calc(100% - 48px));
  margin-inline: auto;
}

.kicker {
  font-family: "Funnel Sans", Arial, sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.tick {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 10px;
  background: var(--accent);
  vertical-align: 1px;
}

/* Header */

.site-head {
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 30;
}

.head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Savate", Arial, sans-serif;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  line-height: 1;
}

.brand::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--accent);
  display: block;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
}

.main-nav a {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  line-height: 1.4;
}

.main-nav a:hover {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

.main-nav a.is-current {
  color: var(--ink);
  border-bottom-color: var(--line);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 2px;
  color: var(--bg);
  font-family: "Savate", Arial, sans-serif;
  font-weight: 600;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 14px 22px;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.btn:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}

/* Specificity guard: .main-nav a would otherwise recolour the button. */
.main-nav a.btn {
  color: var(--bg);
  padding: 14px 22px;
  border-bottom: 1px solid var(--accent);
  margin-left: 6px;
  letter-spacing: 0.12em;
}

.main-nav a.btn:hover {
  color: var(--bg);
  background: var(--ink);
  border-color: var(--ink);
  border-bottom-color: var(--ink);
}

.btn-lg { padding: 17px 26px; font-size: 13px; }

/* Hero */

.hero {
  padding-top: 58px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 24px;
  align-items: start;
}

.hero-photo {
  grid-column: 1 / 7;
  margin: 0;
  margin-left: calc(600px - 50vw);
}

.hero-photo img {
  width: 600px;
  max-width: none;
  height: 600px;
  object-fit: cover;
  object-position: 50% 30%;
}

.hero-copy {
  grid-column: 7 / 13;
  padding-top: 72px;
}

.hero h1 {
  font-size: 54px;
  line-height: 1;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  margin: 18px 0 0;
}

.hero .lead {
  max-width: 30ch;
  margin: 24px 0 0;
  font-size: 17.5px;
  line-height: 1.62;
  color: var(--muted);
}

.hero .btn { margin-top: 28px; }

.part-row {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.pn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  border: 1px solid var(--muted);
  border-radius: 50%;
  background: var(--bg);
  color: var(--muted);
  font-family: "Savate", Arial, sans-serif;
  font-size: 8px;
  line-height: 1;
  letter-spacing: 0;
}

.pn-22 { width: 22px; height: 22px; font-size: 8px; }
.pn-20 { width: 20px; height: 20px; font-size: 8px; }

/* Section frame */

.sec { padding-top: 88px; }

.sec-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.sec-no {
  font-family: "Savate", Arial, sans-serif;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--muted);
  line-height: 1;
}

.sec-no.is-accent { color: var(--accent); }

.sec-head h2 {
  font-size: 26px;
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.sec-rule {
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* 01 Partners: one runner frame with six cells */

.frame {
  position: relative;
  width: 1080px;
  max-width: 100%;
  height: 240px;
  margin: 36px auto 0;
  border: 1px solid var(--line);
  background: var(--panel);
}

.frame-cells {
  display: flex;
  height: 100%;
  padding: 12px 4px 26px;
}

.pcell {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 8px 12px;
  border-left: 1px solid var(--line);
  transition: background-color 160ms ease;
}

.pcell:first-child { border-left: 0; }

.pcell:hover { background: #241e26; }

.pcell .gate {
  position: absolute;
  top: -12px;
  left: 50%;
  width: 1px;
  height: 12px;
  background: var(--line);
}

.pcell .pn {
  position: absolute;
  top: -21px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg);
}

.pcell:first-child .pn {
  color: var(--accent);
  border-color: var(--accent);
}

.pcell img {
  width: 140px;
  height: 84px;
  object-fit: contain;
  margin-top: 18px;
  filter: grayscale(1);
  opacity: 0.9;
  transition: filter 160ms ease, opacity 160ms ease;
}

.pcell:hover img {
  filter: none;
  opacity: 1;
}

.pcell-name {
  margin-top: auto;
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1;
}

/* 02 Quick profile */

.qgrid {
  width: 1050px;
  max-width: 100%;
  margin: 26px auto 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
}

.qgrid .qcell:nth-child(n + 4) { transform: translateX(12px); }

.qcell {
  height: 96px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 4px;
  border-bottom: 1px solid var(--line);
}

.qbody {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.qlabel {
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  line-height: 1.4;
}

.qdots {
  flex: 1;
  min-width: 12px;
  height: 1px;
  transform: translateY(-3px);
  background-image: repeating-linear-gradient(to right, var(--muted) 0 3px, transparent 3px 7px);
  opacity: 0.55;
}

.qval {
  font-size: 14px;
  line-height: 1.35;
  text-align: right;
  color: var(--ink);
  max-width: 190px;
}

/* 03 About */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40px 380px;
  column-gap: 28px;
  align-items: start;
}

.about-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 28px;
}

.about-cols p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.75;
  max-width: 40ch;
}

.about-note {
  margin: 24px 0 0;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 66ch;
}

.about-sprue {
  padding-top: 6px;
  color: var(--line);
}

.about-sprue svg { display: block; width: 40px; height: 120px; }

.about-photo { margin: 0; }

.about-photo img {
  width: 380px;
  max-width: 100%;
  height: 380px;
  object-fit: cover;
  object-position: 50% 40%;
}

.hl { color: var(--accent); }

/* 04 Career tree */

.tree {
  --spine: 180px;
  position: relative;
  height: 760px;
  margin-top: 8px;
}

.tree-spine {
  position: absolute;
  left: var(--spine);
  top: 0;
  width: 1px;
  height: 760px;
  background: var(--line);
}

.branches {
  list-style: none;
  margin: 0;
  padding: 0;
  position: absolute;
  inset: 0;
}

.branch { position: relative; height: 64px; }

.branch-line {
  position: absolute;
  left: var(--spine);
  top: 30px;
  width: var(--len, 140px);
  height: 1px;
  background: var(--line);
}

.branch .pn {
  position: absolute;
  left: calc(var(--spine) + var(--len, 140px) - 10px);
  top: 20px;
  width: 20px;
  height: 20px;
  font-size: 8px;
}

.b-year {
  position: absolute;
  left: calc(var(--spine) + var(--len, 140px) + 10px);
  top: 11px;
  font-family: "Savate", Arial, sans-serif;
  font-size: 15px;
  line-height: 1;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.b-year.is-accent { color: var(--accent); }

.b-event {
  position: absolute;
  left: calc(var(--spine) + var(--len, 140px) + 10px);
  top: 32px;
  width: 300px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink);
}

/* 05 Gallery: parts laid out on a sheet */

.gallery {
  position: relative;
  width: 1080px;
  max-width: 100%;
  aspect-ratio: 1080 / 852;
  margin-top: 10px;
}

.gimg {
  position: absolute;
  margin: 0;
}

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

.gimg .pn {
  position: absolute;
  left: 8px;
  bottom: 8px;
  background: var(--bg);
}

.g1 { left: 0; top: 0; width: 38.889%; height: 49.296%; }
.g2 { left: 72.222%; top: 0; width: 27.778%; height: 46.948%; }
.g3 { left: 0; top: 53.052%; width: 20.370%; height: 37.089%; }
.g4 { left: 23.333%; top: 53.052%; width: 27.778%; height: 35.211%; }
.g5 { left: 76.852%; top: 58.451%; width: 23.148%; height: 26.408%; }

/* 06 Social wall */

.social-wall {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 48px;
}

.social-col { display: flex; flex-direction: column; }

.social-row {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: baseline;
  gap: 14px;
  padding: 13px 8px;
  border-bottom: 1px solid var(--line);
  transition: background-color 140ms ease, padding-left 140ms ease;
}

.social-col .social-row:first-child { border-top: 1px solid var(--line); }

.social-row:hover {
  background: var(--panel);
  padding-left: 14px;
}

.s-plat {
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.5;
}

.s-handle {
  font-size: 13px;
  color: var(--ink);
  line-height: 1.5;
  overflow-wrap: anywhere;
}

/* Footer */

.site-foot {
  margin-top: 96px;
  padding: 22px 0 42px;
  border-top: 1px solid var(--line);
}

.foot-sprue {
  height: 40px;
  margin-bottom: 20px;
  color: var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr auto;
  align-items: center;
  gap: 24px;
}

.f-name {
  font-family: "Savate", Arial, sans-serif;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1;
}

.f-tag {
  margin: 6px 0 0;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--muted);
}

.f-langs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.f-brand { min-width: 0; }

.f-langs span[aria-current="true"] { color: var(--ink); }

.f-langs a { color: var(--muted); padding: 2px 0; }
.f-langs a:hover { color: var(--ink); }
.f-langs a.is-current { color: var(--ink); }
.f-langs .sep { color: var(--line); }

.f-copy {
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-align: right;
  white-space: nowrap;
}

.foot-notes {
  margin-top: 16px;
  font-size: 11px;
  line-height: 1.65;
  color: var(--muted);
}

.foot-notes p { margin: 0; }

/* Subpages: instruction sheet */

.sheet { padding-top: 54px; }

.sheet-head {
  padding-bottom: 34px;
  border-bottom: 1px solid var(--line);
}

.sheet-head .kicker { margin: 0 0 18px; }

.sheet-title-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 36px;
}

.sheet-head h1 {
  font-size: 54px;
  line-height: 0.98;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  max-width: 16ch;
}

.sheet-lead {
  max-width: 54ch;
  margin: 22px 0 0;
  font-size: 17px;
  line-height: 1.62;
  color: var(--muted);
}

.sheet-photo { margin: 0 0 4px; flex: 0 0 auto; }

.sheet-photo img {
  width: 230px;
  height: 230px;
  object-fit: cover;
  object-position: 50% 32%;
}

.sheet-body {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  column-gap: 56px;
  padding-top: 40px;
}

.sheet-rail {
  align-self: start;
  position: sticky;
  top: 26px;
}

.rail-sprue {
  height: 156px;
  color: var(--line);
  margin-bottom: 20px;
}

.rail-sprue svg { display: block; width: 190px; height: 156px; }

.rail-facts { margin: 0; }

.rail-facts dt {
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 14px;
  line-height: 1.5;
}

.rail-facts dt:first-child { margin-top: 0; }

.rail-facts dd {
  margin: 3px 0 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink);
}

.sheet-main { max-width: 760px; }

.sheet-sec { margin-bottom: 46px; }

.sheet-sec h2 {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 19px;
  line-height: 1.2;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.sheet-sec h2 .n {
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.sheet-sec p {
  max-width: 54ch;
  margin: 0 0 16px;
}

/* Career page phases */

.phase { margin-bottom: 44px; }

.phase h2 {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 18px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin: 0 0 6px;
}

.phase h2 .n {
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.dates { list-style: none; margin: 0; padding: 0; }

.date-row {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: 24px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.date-row:first-child { border-top: 1px solid var(--line); }

.date-row .d {
  font-family: "Savate", Arial, sans-serif;
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.date-row p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6;
  max-width: 52ch;
}

/* Filmography list */

.film-list { border-top: 1px solid var(--line); }

.film-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 6px 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.fy {
  grid-row: 1 / 3;
  font-family: "Savate", Arial, sans-serif;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

.ft {
  font-family: "Savate", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.3;
  letter-spacing: 0.01em;
}

.fk {
  display: inline-block;
  margin-left: 10px;
  font-family: "Funnel Sans", Arial, sans-serif;
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  vertical-align: 2px;
}

.fn {
  grid-column: 2;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 56ch;
}

.dist {
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 36px;
}

.dist li {
  display: grid;
  grid-template-columns: 106px minmax(0, 1fr);
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}

.dist .k {
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.dist .v { font-size: 13px; line-height: 1.5; }

.film-note {
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 70ch;
  border-left: 1px solid var(--line);
  padding-left: 16px;
}

/* FAQ */

.faq-list { border-top: 1px solid var(--line); }

.faq-item { border-bottom: 1px solid var(--line); }

.faq-item summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
  cursor: pointer;
  list-style: none;
  font-family: "Savate", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.4;
  letter-spacing: 0.01em;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  color: var(--muted);
  font-family: "Funnel Sans", Arial, sans-serif;
  font-size: 18px;
  line-height: 1;
  flex: 0 0 auto;
}

.faq-item[open] summary::after { content: "\2212"; }

.faq-item p {
  margin: 0 0 18px;
  max-width: 62ch;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--muted);
}

/* 404 */

.nf { padding: 84px 0 20px; }

.nf .big {
  font-family: "Savate", Arial, sans-serif;
  font-size: 128px;
  line-height: 0.85;
  letter-spacing: 0.01em;
  color: var(--accent);
  margin: 0 0 22px;
}

.nf h1 {
  font-size: 30px;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin: 0 0 16px;
}

.nf p { max-width: 52ch; color: var(--muted); margin: 0 0 14px; }

.nf .back {
  display: inline-block;
  margin-top: 18px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 4px;
}

/* Responsive */

/* Keep the photo and the copy from colliding on mid-size desktops. */
@media (min-width: 1025px) and (max-width: 1167px) {
  .hero-photo { margin-left: 16px; }
  .hero-photo img {
    width: min(600px, calc(50vw - 60px));
    height: auto;
    aspect-ratio: 1 / 1;
  }
  .about-grid { grid-template-columns: minmax(0, 1fr) 40px 320px; }
  .about-photo img { width: 320px; height: 320px; }
}

@media (min-width: 1168px) and (max-width: 1439px) {
  .hero-photo { margin-left: calc(40px - (100vw - 1120px) / 2); }
  .hero-photo img {
    width: min(600px, calc(50vw - 60px));
    height: auto;
    aspect-ratio: 1 / 1;
  }
}

@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 520px minmax(0, 1fr); column-gap: 40px; }
  .hero-photo { grid-column: 1; margin-left: 0; }
  .hero-photo img { width: 520px; height: 520px; }
  .hero-copy { grid-column: 2; padding-top: 40px; }
  .hero h1 { font-size: 46px; }
  .tree { --spine: 120px; }
  .qgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .qgrid .qcell:nth-child(n + 4) { transform: none; }
  .about-grid { grid-template-columns: minmax(0, 1fr) 40px 320px; }
  .about-photo img { width: 320px; height: 320px; }
  .sheet-body { grid-template-columns: 170px minmax(0, 1fr); column-gap: 34px; }
  .sheet-head h1 { font-size: 46px; }
  .sheet-photo img { width: 190px; height: 190px; }
}

@media (max-width: 1080px) {
  .about-grid { grid-template-columns: 1fr; row-gap: 26px; }
  .about-text { order: 2; }
  .about-photo { order: 1; }
  .about-photo img { width: 100%; max-width: 380px; height: auto; aspect-ratio: 1 / 1; }
  .about-sprue { display: none; }
}

@media (max-width: 1080px) {
  .frame { height: auto; border: 0; background: none; }
  .frame-cells {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    height: auto;
    padding: 0;
  }
  .pcell {
    height: 186px;
    border: 1px solid var(--line);
    padding: 26px 10px 12px;
    background: var(--panel);
  }
  .pcell:first-child { border-left: 1px solid var(--line); }
  .pcell .gate { display: none; }
  .pcell .pn { top: 8px; left: 8px; transform: none; }
  .pcell img { margin-top: 10px; }
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { grid-column: 1; order: 1; padding-top: 0; }
  .hero-photo { grid-column: 1; order: 2; margin: 34px 0 0; }
  .hero-photo img { width: 100%; height: auto; aspect-ratio: 1 / 1; }
  .hero h1 { font-size: 52px; }
  .hero .lead { max-width: 40ch; }
  .about-grid { grid-template-columns: 1fr; row-gap: 26px; }
  .about-text { order: 2; }
  .about-photo { order: 1; }
  .about-photo img { width: 100%; max-width: 380px; height: auto; aspect-ratio: 1 / 1; }
  .about-cols { order: 2; }
  .about-sprue { display: none; }
  .qgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .qgrid .qcell:nth-child(n + 4) { transform: none; }
  .social-wall { grid-template-columns: 1fr; row-gap: 34px; }
  .sheet-title-row { align-items: flex-start; }
  .sheet-body { grid-template-columns: 1fr; row-gap: 30px; }
  .sheet-rail { position: static; display: flex; gap: 24px; align-items: flex-start; }
  .rail-sprue { margin: 0; flex: 0 0 auto; height: 110px; }
  .rail-sprue svg { width: 130px; height: 110px; }
  .rail-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 22px; }
  .rail-facts dt { margin-top: 0; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 40px); }
  .head-row { flex-wrap: wrap; gap: 10px 18px; padding: 14px 0; min-height: 0; }
  .main-nav { gap: 12px 16px; }
  .main-nav a { font-size: 10px; letter-spacing: 0.1em; }
  .main-nav a.btn { margin-left: 0; padding: 11px 14px; font-size: 10px; }
  .hero { padding-top: 34px; }
  .hero h1 { font-size: 44px; }
  .hero .lead { font-size: 16.5px; }
  .sec { padding-top: 64px; }
  .sec-head { margin-bottom: 22px; }
  .sec-head h2 { font-size: 22px; }
  .frame-cells { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pcell { height: 176px; }
  .pcell img { width: 118px; height: 71px; }
  .qgrid { grid-template-columns: 1fr; gap: 0; }
  .qcell { height: auto; padding: 16px 2px; }
  .qval { max-width: 58%; }
  .about-cols { grid-template-columns: 1fr; row-gap: 4px; }
  .about-cols p { max-width: none; }
  .tree { height: auto; padding-left: 0; }
  .tree-spine { left: 0; height: 100%; }
  .branch { height: auto; min-height: 88px; padding-left: 44px; }
  .branch-line { left: 0; top: 28px; width: 24px; }
  .branch .pn { left: 14px; top: 18px; }
  .b-year { position: static; display: block; padding-top: 12px; }
  .b-event { position: static; width: auto; margin-top: 5px; max-width: 42ch; }
  .gallery {
    aspect-ratio: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .gimg { position: relative; inset: auto; width: auto; height: auto; align-self: start; }
  .g1, .g2, .g3, .g4 { aspect-ratio: 1 / 1; }
  .g2 { aspect-ratio: 3 / 4; }
  .g5 { grid-column: 1 / -1; aspect-ratio: 10 / 9; }
  .gimg img { position: absolute; inset: 0; }
  .gimg { overflow: visible; }
  .footer-grid { grid-template-columns: 1fr; gap: 18px; }
  .f-langs { justify-content: flex-start; }
  .f-copy { text-align: left; white-space: normal; }
  .sheet { padding-top: 36px; }
  .sheet-head h1 { font-size: 38px; }
  .sheet-lead { font-size: 16px; }
  .sheet-title-row { flex-direction: column-reverse; gap: 22px; }
  .sheet-photo img { width: 150px; height: 150px; }
  .sheet-rail { flex-direction: column; gap: 18px; }
  .rail-sprue { display: none; }
  .rail-facts { width: 100%; }
  .date-row { grid-template-columns: 1fr; gap: 3px; }
  .dist { grid-template-columns: 1fr; }
  .nf .big { font-size: 92px; }
}

/* partner logo plate: guarantee legibility of supplied marks on any ground */
a img[src*="/assets/partners/"] {
  background: #f4efe6;
  object-fit: contain;
  padding: 6px;
  box-sizing: border-box;
}
