/* ---------- Tokens ---------- */
:root {
  --color-bg: #F8F4F1;
  --color-accent: #6A00FF;
  --color-accent-2: #954CFD;
  --color-on-accent: #F8F4F1;
  --nav-initials-color: #fff;
  --gradient-rgb: 106,0,255;
  --gradient-mid-rgb: 125,32,255;
  --gradient-soft-rgb: 181,128,255;

  --font-body: "General Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --fs-hero: clamp(2.75rem, 6vw + 2rem, 9.375rem);
  --fs-h1: clamp(2.25rem, 4.2vw + 1.5rem, 6.25rem);
  --fs-h2: clamp(1.75rem, 1.2vw + 1.4rem, 2.8125rem);
  --fs-subtitle: clamp(1.5rem, 1.4vw + 1.1rem, 2.8125rem);
  --fs-footer-title: clamp(1.75rem, 1.6vw + 1.2rem, 2.8125rem);
  --fs-body: clamp(0.8rem, 0.9vw + 0.2rem, 2rem); 
  --fs-small: clamp(0.7rem, 0.8vw + 0.2rem, 2rem);

  --container-pad: max(1.5rem, 10vw + 2px);
  --grid-col: calc(var(--container-pad) - 20px);
  --section-gap: clamp(4rem, 8vw, 8rem);

  --header-h: clamp(4.5rem, 5vw, 10.4rem);
  --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
  --nav-icon-h: 1.38rem;
  --logo-h: clamp(2.1rem, 1.4vw, 1.5rem);
  --cta-icon-h: 2.15rem;
  --gap-xl: clamp(8rem, 12vw, 14rem);
  --gap-md: clamp(6rem, 10vw, 12rem);
  --gap-sm: clamp(0.75rem, 2vw, 5rem);

}

/* ---------- Project themes ---------- */
.theme-underpressure {
  --color-accent: #3E4D00; /* dark olive for text: the lime itself is too light to read on the cream background */
  --color-accent-2: #3E4D00;
  --gradient-rgb: 185,226,59; /* #B9E23B */
  --gradient-mid-rgb: 185,226,59;
  --gradient-soft-rgb: 214,238,140;
}
.theme-underpressure .hero { color: var(--color-accent); }
/* portrait images in landscape sliders: the empty sides are filled with a warm grey, close to the rendered walls */
.theme-underpressure .media-frame__images img.media-frame__images-item--contain { background: #DEDBD6; }
.theme-underpressure .site-header,
.theme-underpressure .site-footer { --color-on-accent: #3E4D00; }
.theme-underpressure .site-header { --nav-initials-color: #3E4D00; }
@media (max-width: 55.99em) {
  .theme-underpressure .nav-panel { background: rgb(var(--gradient-rgb)); }
}
.theme-saxxella {
  --color-accent: #2F2A9E;
  --color-accent-2: #2F2A9E;
  --gradient-rgb: 122,201,112;
  --gradient-mid-rgb: 122,201,112;
  --gradient-soft-rgb: 170,224,160;
}
.theme-saxxella .hero { color: var(--color-accent); }
/* the portrait T-shirt photo is shown whole; its wall colour fills the rest of the frame */
.saxxella-shirt { background: #E6E4E1; }
/* radial gradient on the right edge, straddling Concept and Idea and Final Concept */
.theme-saxxella .final-result { position: relative; }
.theme-saxxella .final-result::before {
  content: "";
  position: absolute;
  right: 0;
  top: calc(-1 * var(--gap-xl) / 2 - 8vw);
  width: 32vw;
  height: 42vw;
  transform: translateY(-50%);
  background: radial-gradient(ellipse 100% 50% at 100% 50%, rgba(var(--gradient-rgb),0.9) 0%, rgba(var(--gradient-rgb),0.6) 30%, rgba(var(--gradient-soft-rgb),0.3) 60%, rgba(248,244,241,0) 100%);
  pointer-events: none;
}
.theme-saxxella .final-result > .container { position: relative; }
/* Final Concept: the slider sits under the text, across all 8 content columns
   (same distance between text and slider as between lede and slider on Entangled) */
.theme-saxxella .final-result__grid {
  grid-template-columns: 1fr;
  row-gap: clamp(3rem, 6vw, 5rem);
}
@media (min-width: 56em) {
  /* text starts at page column 4, like the Concept and Idea text (the heading stays at column 2) */
  .theme-saxxella .final-result__text > p {
    width: calc(3 * var(--container-pad) - 20px); /* 3 columns */
    max-width: none;
    margin-left: calc(2 * var(--container-pad));
  }
}
@media (max-width: 40em) {
  /* the long first subtitle line has to fit inside the margins so both lines end at the same edge */
  .theme-saxxella .hero__subtitle { font-size: 5.1vw; }
}
/* intro image as a full-width strip */
.theme-saxxella .concept-video__player { aspect-ratio: 5 / 1; object-position: 50% 50%; }
@media (max-width: 40em) {
  .theme-saxxella .concept-video__player { aspect-ratio: 3 / 1; }
}
.theme-saxxella .site-header,
.theme-saxxella .site-footer { --color-on-accent: #2F2A9E; }
.theme-saxxella .site-header { --nav-initials-color: #2F2A9E; }
@media (max-width: 55.99em) {
  .theme-saxxella .nav-panel { background: rgb(var(--gradient-rgb)); }
}
.theme-mumuth {
  --color-accent: #1D13FF;
  --color-accent-2: #1D13FF;
  --gradient-rgb: 137,132,255;
  --gradient-mid-rgb: 137,132,255;
  --gradient-soft-rgb: 137,132,255;
}
.theme-mumuth .hero { color: var(--color-accent); }
.theme-mumuth .site-header,
.theme-mumuth .site-footer { --color-on-accent: #1D13FF; }
.theme-mumuth .site-header { --nav-initials-color: #1D13FF; }
@media (max-width: 55.99em) {
  .theme-mumuth .nav-panel { background: rgb(var(--gradient-rgb)); }
}

.theme-cs2 {
  --color-accent: #E040FB;
  --color-accent-2: #E040FB;
  --gradient-rgb: 224,64,251;
  --gradient-mid-rgb: 224,64,251;
  --gradient-soft-rgb: 238,150,252;
}
/* CS² magenta is lighter than the other themes: keep the hero colour solid for longer so the light title and subtitle stay readable */
.theme-cs2 .hero {
  background:
    radial-gradient(ellipse 60% 55% at 12% 0%, rgba(var(--gradient-rgb),0.9) 0%, rgba(var(--gradient-rgb),0.7) 20%, rgba(var(--gradient-soft-rgb),0.35) 55%, rgba(248,244,241,0) 80%),
    linear-gradient(180deg, rgb(var(--gradient-rgb)) 0%, rgba(var(--gradient-rgb),0.9) 45%, var(--color-bg) 78%);
}
@media (max-width: 40em) {
  /* the long CS² title needs a slightly smaller size to fit on phones */
  .theme-cs2 .hero__title { font-size: 9.5vw; }
}
.theme-landing {
  --color-accent: #1D13FF;
  --color-accent-2: #1D13FF;
  --gradient-rgb: 29,19,255;
  --gradient-mid-rgb: 29,19,255;
  --gradient-soft-rgb: 138,132,248;
  --landing-lime: #9AC80A;
  --landing-line: 2px solid #000;
  /* landing scale unit: 1vw, but shrinks on wide, short screens so the first screen still fits (design frame 1440 x 952) */
  --lu: min(1vw, 1.5126vh);
}
.theme-about {
  --color-accent: #1D13FF;
  --color-accent-2: #1D13FF;
  --gradient-rgb: 29,19,255;
  --gradient-mid-rgb: 29,19,255;
  --gradient-soft-rgb: 138,132,248;
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-accent);
  font-family: var(--font-body);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
button { font: inherit; background: none; border: none; padding: 0; color: inherit; cursor: pointer; }

.container {
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  padding-inline: clamp(1.25rem, 4vw, 3.25rem);
  background: linear-gradient(180deg, rgb(var(--gradient-rgb)) 0%, rgba(var(--gradient-rgb),0.55) 55%, rgba(var(--gradient-rgb),0) 100%);
  pointer-events: none;
}
.site-header > * { pointer-events: auto; }

.site-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: -1;
  height: var(--header-h);
  background: linear-gradient(180deg, rgb(var(--gradient-rgb)) 0%, rgba(var(--gradient-rgb),0.55) 55%, rgba(var(--gradient-rgb),0) 100%);
  transition: height 0.4s var(--ease-out-expo);
  pointer-events: none;
}
.site-header:hover::before,
.site-header:focus-within::before,
.site-header.is-open::before {
  height: calc(var(--header-h) + 11rem);
}

.logo {
  font-weight: 600;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  font-size: var(--logo-h);
  line-height: 1;
  color: var(--color-on-accent);
}

/* ---------- Nav (hover flyout, staggered cascade) ---------- */
.nav-zone {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}
.nav-trigger {
  position: relative;
  z-index: 1;
  display: inline-flex;
}
.nav-trigger__plus {
  display: none;
}
.nav-trigger img {
  width: 1.75rem;
  height: var(--nav-icon-h);
  transition: opacity 0.3s var(--ease-out-expo);
}
.nav-zone:hover .nav-trigger img,
.nav-zone:focus-within .nav-trigger img,
.site-header:hover .nav-trigger img,
.site-header:focus-within .nav-trigger img,
.site-header.is-open .nav-trigger img {
  opacity: 0;
}

.nav-panel {
  position: absolute;
  top: calc(50% - (var(--logo-h) / 2));
  left: 0;
  min-width: 16rem;
  color: var(--color-on-accent);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease-out-expo), visibility 0.3s;
  pointer-events: none;
}
.nav-zone:hover .nav-panel,
.nav-zone:focus-within .nav-panel,
.site-header:hover .nav-panel,
.site-header:focus-within .nav-panel,
.site-header.is-open .nav-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.nav-list__item > a {
  font-size: 1rem;
  text-transform: uppercase;
  font-weight: 400;
  -webkit-text-stroke: 0px currentColor;
  transition: -webkit-text-stroke-width 3s var(--ease-out-expo);
}
.nav-list__item > a:hover {
  font-weight: 700;
  -webkit-text-stroke-width: 0.2px;
}


.nav-sublist {
  display: flex;
  flex-direction: column;
  gap: 0rem;
  margin-top: 0 rem;
  padding-left: 1.25rem;
  text-transform: uppercase;
  line-height: 90%;
}
.nav-sublist a {
  font-size: 0.8rem;
  opacity: 0.85;
  -webkit-text-stroke: 0px currentColor;
  transition: -webkit-text-stroke-width 3s var(--ease-out-expo);
}
.nav-sublist a:hover {
  font-weight: 700;
  -webkit-text-stroke-width: 0.2px;
}
.nav-sublist .is-current a { font-weight: 600; text-decoration: underline; opacity: 1; }

.nav-panel__initials {
  display: none;
}

/* each item cascades in on its own, translate + fade, staggered top to bottom */
.nav-list__item,
.nav-sublist li {
  transform: translateY(-0.6rem);
  opacity: 0;
  transition: transform 0.6s var(--ease-out-expo), opacity 0.5s var(--ease-out-expo);
}
.nav-zone:hover .nav-list__item,
.nav-zone:hover .nav-sublist li,
.nav-zone:focus-within .nav-list__item,
.nav-zone:focus-within .nav-sublist li,
.site-header:hover .nav-list__item,
.site-header:hover .nav-sublist li,
.site-header:focus-within .nav-list__item,
.site-header:focus-within .nav-sublist li,
.site-header.is-open .nav-list__item,
.site-header.is-open .nav-sublist li {
  transform: translateY(0);
  opacity: 1;
}
.nav-list__item:nth-child(1) { transition-delay: 0.03s; }
.nav-sublist li:nth-child(1) { transition-delay: 0.07s; }
.nav-sublist li:nth-child(2) { transition-delay: 0.1s; }
.nav-sublist li:nth-child(3) { transition-delay: 0.13s; }
.nav-sublist li:nth-child(4) { transition-delay: 0.16s; }
.nav-sublist li:nth-child(5) { transition-delay: 0.19s; }
.nav-list__item:nth-child(2) { transition-delay: 0.22s; }
.nav-list__item:nth-child(3) { transition-delay: 0.25s; }

/* ---------- Get in touch CTA ---------- */
.header-cta {
  position: relative;
  display: flex;
  align-items: center;
  color: var(--color-on-accent);
}
.header-cta__icon {
  display: inline-flex;
  transform: translateY(0.2rem);
  transition: transform 0.7s var(--ease-out-expo);
}
.header-cta__icon img { width: var(--cta-icon-h); height: var(--cta-icon-h); }
.header-cta__label {
  position: absolute;
  top: 0;
  left: 50%;
  writing-mode: vertical-rl;
  text-align: end;
  transform: translateX(-50%) translateY(calc((var(--cta-icon-h) - var(--logo-h) + 8px) / 2)) rotate(180deg);
  text-transform: uppercase;
  font-size: 1.3rem; /* short enough to leave room above the icon, which now stops level with About me */
  font-weight: 300;
  letter-spacing: 0.05em;
  line-height: 80%;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.5s var(--ease-out-expo), transform 0.6s var(--ease-out-expo);
}
.site-header:hover .header-cta__icon,
.site-header:focus-within .header-cta__icon,
.site-header.is-open .header-cta__icon {
  transform: translateY(5.95rem); /* icon sits just below the last menu entry (About me) */
}
.site-header:hover .header-cta__label,
.site-header:focus-within .header-cta__label,
.site-header.is-open .header-cta__label {
  opacity: 1;
  transition-delay: 0.1s;
}

/* ---------- Hero ---------- */
.hero {
  padding-top: calc(var(--header-h) + var(--gap-xl));
  padding-bottom: var(--gap-xl);
  background:
    radial-gradient(ellipse 60% 55% at 12% 0%, rgba(var(--gradient-rgb),0.9) 0%, rgba(var(--gradient-mid-rgb),0.7) 20%, rgba(var(--gradient-soft-rgb),0.35) 55%, rgba(248,244,241,0) 80%),
    linear-gradient(180deg, rgb(var(--gradient-rgb)) 0%, rgba(var(--gradient-rgb),0.6) 30%, var(--color-bg) 62%);
  color: var(--color-on-accent);
}
.hero__title {
  font-size: var(--fs-hero);
  font-weight: 600;
  text-transform: uppercase;
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin: 0 0 var(--gap-sm);
  max-width: calc(8 * var(--grid-col) + 7 * 20px);
}
.hero__title-line {
  display: inline-block;
  white-space: nowrap;
}
@media (max-width: 40em) {
  .hero__title { font-size: 10.5vw; }
}
.hero__subtitle {
  font-weight: 400;
  font-size: var(--fs-subtitle);
  line-height: 1.15;
  margin: 0 0 var(--gap-md);
  width: fit-content; /* box hugs its longest line, so all lines end at the same right edge */
  max-width: 100%;
  margin-left: auto;
  text-align: right;
}
.hero__subtitle-line {
  display: inline-block;
  white-space: nowrap;
}
/* line break used only on phones */
.br-mobile { display: none; }
@media (max-width: 40em) { .br-mobile { display: inline; } }
@media (max-width: 40em) {
  .hero__subtitle { font-size: clamp(1.1rem, 5.5vw, 1.5rem); }
  :root {
    --fs-h1: clamp(1.8rem, 8vw, 2.25rem);
    --fs-h2: clamp(1.15rem, 4.5vw, 1.4rem);
  }
}
.hero__info {
  display: grid;
  gap: var(--gap-sm);
  max-width: 36rem;
  font-size: var(--fs-body);
  line-height: 1.4;
  color: var(--color-accent);
}
.info-block__label { font-weight: 600; margin-bottom: 0.15em; }

/* ---------- Section titles / shared type ---------- */
.section-title {
  color: var(--color-accent);
  text-transform: uppercase;
  font-weight: 600;
  line-height: 1;
  margin: 0 0 var(--gap-sm);
}
.section-title--h1 { font-size: var(--fs-h1); }
.section-title--h2 { font-size: var(--fs-h2); }
.section-lede {
  color: var(--color-accent);
  font-size: var(--fs-body);
  margin-bottom: clamp(3rem, 6vw, 5rem);
}
.concept-intro { margin-bottom: clamp(3rem, 6vw, 5rem); }
/* when nothing follows in the section (saXXella), keep the large distance before Final Concept, as on Entangled */
.concept-intro:last-child { margin-bottom: var(--gap-xl); }
.concept-intro__image {
  width: 100%;
  height: auto;
  margin-bottom: 1.5rem;
}
.final-result__figure { margin: 0; }
.final-result__figure img { width: 100%; height: auto; }
.final-result__text > p {
  font-size: var(--fs-body);
  max-width: 24rem;
}

/* ---------- Concept video ---------- */
.concept-video__player {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  background: var(--color-accent);
}

/* ---------- Concept & Idea ---------- */
.concept {
  position: relative;
  overflow: hidden;
  padding-top: var(--gap-xl);
  padding-bottom: 0;
  background:
    radial-gradient(ellipse 45% 30% at -5% 0%, rgba(var(--gradient-rgb),0.55) 0%, rgba(var(--gradient-soft-rgb),0.25) 45%, rgba(248,244,241,0) 75%);
}

.media-frame {
  margin: 0 0 var(--gap-md);
}
.media-frame img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.media-frame__images {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  cursor: pointer;
}
.media-frame__images img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}
.media-frame__images img.is-active {
  opacity: 1;
}
.media-frame__images img.media-frame__images-item--contain {
  object-fit: contain;
}
.media-frame__images::before,
.media-frame__images::after {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  z-index: 1;
  display: flex;
  align-items: center;
  padding-inline: clamp(1rem, 2vw, 2rem);
  color: var(--color-on-accent);
  font-size: var(--fs-h2);
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease-out-expo);
}
.media-frame__images::before {
  content: "<";
  justify-content: flex-start;
  left: 0;
  background: linear-gradient(to right, rgba(var(--gradient-rgb),0.6), transparent);
}
.media-frame__images::after {
  content: ">";
  justify-content: flex-end;
  right: 0;
  background: linear-gradient(to left, rgba(var(--gradient-rgb),0.6), transparent);
}
/* hover hint only where a real pointer can hover; a tap would leave it stuck */
@media (hover: hover) and (pointer: fine) {
  .media-frame__images[data-hover-side="prev"]::before,
  .media-frame__images[data-hover-side="next"]::after {
    opacity: 1;
  }
}
.media-frame--portrait img,
.media-frame--portrait .media-frame__images { aspect-ratio: 571 / 856; border-radius: 0; }
.media-frame figcaption {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.75rem;
  font-size: var(--fs-body);
}
.media-frame__nav { display: flex; gap: 0.5rem; }
.media-frame__caption { font-weight: 600; flex: 1; text-align: center; }
.media-frame__count { margin-left: auto; }
.media-frame--portrait figcaption .media-frame__count { margin-left: 0; flex: 1; text-align: right; }
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.icon-btn--sm {
  color: var(--color-accent);
  font-size: calc(var(--fs-body) * 1.4);
  font-weight: 400;
  transition: font-weight 0.2s ease;
}
.icon-btn--sm:hover {
  font-weight: 600;
}

.material {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: var(--gap-md);
}
.material__text p { max-width: 28rem; font-size: var(--fs-body); }
.material__swatches {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.5rem, 3vw, 2.5rem);
}
.material__swatches li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}
.material__swatch-media {
  position: relative;
  display: block;
  width: 100%;
  padding-top: 100%;
}
.material__swatch-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}
.material__swatches span { font-size: var(--fs-body); text-align: center; }

.dramaturgy {
  position: relative;
}
.dramaturgy::before {
  content: "";
  position: absolute;
  top: -23rem;
  left: 50%;
  width: 100vw;
  height: 55rem;
  transform: translateX(-50%);
  background: radial-gradient(ellipse 45rem 30rem at 100% 23rem, rgba(var(--gradient-rgb),0.55) 0%, rgba(var(--gradient-soft-rgb),0.25) 45%, rgba(248,244,241,0) 75%);
  pointer-events: none;
  z-index: -1;
}
.dramaturgy__intro p { max-width: 28rem; font-size: var(--fs-body); }
.dramaturgy__legend {
  display: flex;
  flex-direction: column;
  gap: 0rem;
  margin: 2.5rem 0 1.5rem;
}
.dramaturgy__legend > div { display: flex; align-items: center; gap: 0.6rem; }
.dramaturgy__legend dt { font-weight: 600; font-size: var(--fs-body); }
.legend-line { width: 2.25rem; height: 0; border-top: 2px solid var(--color-accent); display: block; }
.legend-line--dashed { border-top-style: dashed; }
.legend-line--dotted { border-top-style: dotted; }
.legend-line--dashdot {
  border-top: none;
  height: 2px;
  background-image: repeating-linear-gradient(to right, var(--color-accent) 0 6px, transparent 6px 9px, var(--color-accent) 9px 11px, transparent 11px 16px);
}
.dramaturgy__chart img { display: block; width: 100%; height: auto; } /* the SVG draws its own axes */
.dramaturgy__rooms {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem 1rem;
  margin-top: var(--gap-sm);
  font-size: var(--fs-body);
}
.dramaturgy__rooms strong { display: block; font-weight: 600; margin-bottom: 0.2em; }
.room-num { display: none; }
@media (max-width: 40em) {
  .dramaturgy__rooms {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
  }
  .dramaturgy__rooms li { text-align: center; }
  .dramaturgy__rooms strong { margin-bottom: 0; }
  .room-num { display: inline-block; }
  .room-full,
  .room-desc { display: none; }
}

/* ---------- Floorplan ---------- */
.floorplan { padding-top: var(--gap-md); padding-bottom: var(--gap-xl); }
/* the drawn floor plan has the room names in it, so it keeps its own proportions */
.floorplan__diagram--plan { aspect-ratio: auto; }
.floorplan__diagram--plan img { display: block; width: 100%; height: auto; }
.floorplan__diagram {
  position: relative;
  width: 100%;
  aspect-ratio: 1440 / 922;
  margin-top: 1.5rem;
}
.floorplan__diagram img { width: 100%; height: 100%; object-fit: contain; }
.room-label {
  position: absolute;
  color: var(--color-accent-2);
  font-weight: 600;
  font-size: var(--fs-body);
  line-height: 1.15;
  text-align: center;
  transform: translateX(-50%);
  pointer-events: none;
}
.room-label--1 { left: 41.77%; top: 65.7%; width: 11.2%; }
.room-label--2 { left: 41.81%; top: 32.9%; width: 10.5%; }
.room-label--3 { left: 58.98%; top: 29.9%; width: 10.5%; }
.room-label--4 { left: 80.21%; top: 29.2%; width: 10.5%; }
.room-label--5 { left: 58.26%; top: 71.0%; width: 10.5%; }

/* ---------- Final Result ---------- */
.final-result { padding-top: 0; padding-bottom: var(--section-gap); }
.final-result__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
.final-result__text > * + * { margin-top: 1.5rem; }
.final-result__text > .section-title { margin-top: -0.12em; margin-left: -0.05em; }
/* heading-to-text gap comes from the heading's own margin, as in Concept and Idea */
.final-result__text > .section-title + * { margin-top: 0; }
@media (max-width: 40em) {
  .final-result__text > .final-result__room-link + .final-result__room-link {
    margin-top: var(--gap-sm);
  }
}
.final-result__room-link strong {
  display: block;
  font-weight: 400;
  font-size: var(--fs-body);
}
.final-result__room-link span {
  display: block;
  font-weight: 400;
  font-size: var(--fs-body);
}
.final-result__room-link p {
  display: none;
  margin-top: 0.5rem;
  font-weight: 400;
  font-size: var(--fs-body);
  max-width: 24rem;
}
.final-result__room-link.is-active p {
  display: block;
}
.final-result__room-link.is-active strong,
.final-result__room-link.is-active span,
.final-result__room-link.is-active p {
  font-weight: 600;
}
.final-result__room-link {
  display: block;
  width: 100%;
  text-align: left;
  opacity: 0.65;
  transition: opacity 0.2s ease;
}
.final-result__room-link.is-active {
  opacity: 1;
}
.final-result__room-link:hover { opacity: 1; }
.final-result__room-link:hover strong,
.final-result__room-link:hover span { font-weight: 600; }

/* ---------- About me ---------- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.nav-list__item.is-current > a { text-decoration: underline; }

.about-intro {
  padding-top: calc(var(--header-h) + var(--gap-xl));
  background: radial-gradient(ellipse 35vw 40vw at 100% 55%, rgba(var(--gradient-rgb),1) 0%, rgba(var(--gradient-rgb),0.875) 12.5%, rgba(var(--gradient-rgb),0.75) 25%, rgba(var(--gradient-soft-rgb),0.5) 50%, rgba(248,244,241,0) 100%);
}
.about-intro__grid { display: flex; flex-direction: column; }
.about-intro__photo {
  width: 100%; /* phones: full content width */
  height: auto;
  aspect-ratio: 418 / 564;
  object-fit: cover;
  object-position: 100% 100%;
}
.about-intro__hello,
.about-intro__text {
  font-size: var(--fs-subtitle);
  line-height: 1.1;
}
.about-intro__hello { margin: var(--gap-sm) 0; }
.about-intro__claim {
  display: flex;
  flex-direction: column;
  margin: 0;
  font-size: 17vw;
  font-weight: 600;
  text-transform: uppercase;
  line-height: 0.95;
  letter-spacing: -0.02em;
}
.about-intro__word { white-space: nowrap; }
.about-intro__word--meets { align-self: flex-end; }
.about-intro__text { margin: clamp(3rem, 6vw, 5rem) 0 0; }

.about-career {
  position: relative;
  padding-top: var(--section-gap);
}
/* gradient on its own layer so it can fade out beyond the section edges */
.about-career::before {
  content: "";
  position: absolute;
  top: 55%;
  left: 0;
  width: 50vw;
  height: 56vw;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(var(--gradient-rgb),1) 0%, rgba(var(--gradient-rgb),0.875) 12.5%, rgba(var(--gradient-rgb),0.75) 25%, rgba(var(--gradient-soft-rgb),0.5) 50%, rgba(248,244,241,0) 100%);
  pointer-events: none;
}
.about-career > .container { position: relative; }
.timeline {
  --tl-x: 14px;
  --tl-gap: 3rem;
  list-style: none;
  margin: clamp(3rem, 6vw, 5rem) 0 0;
  padding: 0;
  font-size: var(--fs-body);
  line-height: 1.35;
}
.timeline__item {
  position: relative;
  padding-left: calc(var(--tl-x) + 1.75rem);
}
.timeline__item + .timeline__item { margin-top: var(--tl-gap); }
.timeline__item p { margin: 0; }
.timeline__date { font-weight: 600; margin-bottom: 0.25rem; }
/* line from this dot down to the next one */
.timeline__item::before {
  content: "";
  position: absolute;
  left: calc(var(--tl-x) - 1.5px);
  top: 0.675em;
  width: 3px;
  height: calc(100% + var(--tl-gap));
  background: var(--color-accent);
}
.timeline__item:last-child::before { height: 1.2em; }
.timeline__item::after {
  content: "";
  box-sizing: border-box; /* border inside the 18/28px, so the dot is centred on the line */
  position: absolute;
  left: calc(var(--tl-x) - 9px);
  top: calc(0.675em - 9px);
  width: 18px;
  height: 18px;
  border: 3px solid var(--color-accent);
  border-radius: 50%;
  background: var(--color-bg);
}
.timeline__item:first-child::after {
  left: calc(var(--tl-x) - 14px);
  top: calc(0.675em - 14px);
  width: 28px;
  height: 28px;
  background: var(--color-accent);
}

.about-skills { padding-top: var(--section-gap); padding-bottom: var(--section-gap); }
.about-subtitle {
  font-size: var(--fs-h2);
  font-weight: 600;
  line-height: 1;
  margin: 0 0 clamp(3rem, 6vw, 5rem);
}
.about-subtitle--small-gap { margin-bottom: var(--gap-sm); }
.about-extras {
  display: grid;
  gap: clamp(3rem, 6vw, 5rem);
  margin-top: var(--section-gap);
}
.about-extras__text {
  margin: 0;
  font-size: var(--fs-body);
  line-height: 1.35;
}

.skills-chart {
  --label-w: 0px;
  position: relative;
  font-size: var(--fs-body);
}
/* level columns: a line at the start of each level and one closing line */
.skills-chart::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--label-w);
  right: 0;
  border-right: 3px solid var(--color-accent);
  background: linear-gradient(to right, var(--color-accent) 3px, transparent 3px) 0 0 / 25% 100% repeat-x;
}
.skills-chart__levels {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0 0 1rem var(--label-w);
  padding: 0;
  list-style: none;
  font-size: var(--fs-small);
  font-weight: 600;
}
.skills-chart__levels li { padding: 0.75rem 0 0 0.6rem; }
.skills-chart__bars {
  position: relative;
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.skill-bar {
  width: calc(var(--label-w) + (100% - var(--label-w)) * var(--level) / 4);
  padding: 0.2em 0.5rem;
  line-height: 1.2;
  white-space: nowrap;
  background: var(--color-accent);
  color: var(--color-on-accent);
}
.skills-chart__group {
  position: relative;
  margin: 1.25rem 0 0.5rem;
  padding-left: 0.5rem;
  font-size: var(--fs-subtitle);
  font-weight: 400;
  line-height: 1.1;
}

.languages {
  display: grid;
  grid-template-columns: max-content 1fr;
  column-gap: 2.5rem;
  margin: 0;
  font-size: var(--fs-body);
  line-height: 1.35;
}
.languages dt { font-weight: 600; }
.languages dd { margin: 0; }

/* ---------- Landing page ---------- */
/* the gradient circles of the first design continue over the footer's background, under its text */
.theme-landing .site-footer { position: relative; }
.theme-landing .footer__grid { position: relative; z-index: 2; }
.landing-hero { z-index: 1; }
/* the menu flyout opens over the page's "About Me" link; hide that link meanwhile (the menu has it too) */
.landing-links { transition: opacity 0.3s var(--ease-out-expo); }
@media (min-width: 56em) {
  .theme-landing:has(.site-header:hover, .site-header:focus-within, .site-header.is-open) .landing-links { opacity: 0; }
}
.landing {
  overflow-x: clip; /* decorative circles run past the right edge; vertically they may run on into the footer */
  color: #000;
}
/* hover: blue and heavier; a sideways text-shadow thickens the letters without
   shifting the layout (a text-stroke left light seams inside some letters) */
.landing a { transition: color 0.2s ease, text-shadow 0.2s ease; }
.landing a:hover,
.landing a:focus-visible {
  color: var(--color-accent);
  text-shadow: 0.03em 0 0 currentColor;
}
.br-desktop { display: none; }

.landing-links,
.landing-projects { position: relative; z-index: 1; }
.landing-links ul {
  display: flex;
  align-items: center;
  margin: 0;
  padding-block: calc(var(--header-h) + max(2.5rem, 4.5 * var(--lu))) max(1.5rem, 2.4 * var(--lu));
  padding-inline: var(--container-pad);
  list-style: none;
  font-size: max(1rem, 1.39 * var(--lu));
  font-weight: 700;
}
.landing-links li + li {
  margin-left: 1.25rem;
  padding-left: 1.5rem;
  border-left: var(--landing-line);
}

/* hero: an outlined "pill" with the text inside, plus gradient circles.
   All decoration is sized from the hero box so it scales with the text. */
.landing-hero,
.landing-hero__stage { position: relative; }
.landing-hero__deco { position: absolute; inset: 0; pointer-events: none; }
.landing-hero__deco > * { position: absolute; display: block; }
.landing-blob,
.landing-circle { aspect-ratio: 1; border-radius: 50%; }
.landing-blob { transform: translate(-50%, -50%); }
.landing-blob--lime-large {
  left: 62.2%; top: 41.8%; height: 158%;
  background: radial-gradient(closest-side, var(--landing-lime) 0%, #D1E496 59.6%, rgba(248,244,241,0) 100%);
}
.landing-blob--lime-small {
  left: 97.4%; top: -39.7%; height: 70.5%;
  background: radial-gradient(closest-side, var(--landing-lime), rgba(154,200,10,0));
}
.landing-blob--fade {
  left: 86.9%; top: 108.8%; height: 101.5%;
  background: linear-gradient(140deg, rgba(248,244,241,0) 33.65%, var(--color-accent));
}
.landing-pill { border: var(--landing-line); }
.landing-pill--main {
  left: -6.13%; right: 7.36%; top: 0; bottom: 0;
  border-left: 0;
  border-radius: 0 9999px 9999px 0;
}
.landing-circle--main {
  right: 7.36%; top: 0; height: 100%;
  background: linear-gradient(to left, rgba(29,19,255,0) 33.65%, var(--color-accent));
}
.landing-pill--upper {
  left: 50.3%; right: -10px; top: -55%; height: 103%;
  border-right: 0;
  border-radius: 9999px 0 0 9999px;
}
.landing-circle--upper {
  left: 50.3%; top: -55%; height: 103%;
  background: linear-gradient(to right, rgba(29,19,255,0) 33.65%, var(--color-accent));
}

.landing-hero__content {
  position: relative;
  z-index: 1;
  padding-block: max(2rem, 4.1 * var(--lu)) max(1.5rem, 2.3 * var(--lu));
}
.landing-title {
  margin: 0;
  font-size: max(3.5rem, 10.42 * var(--lu));
  font-weight: 700;
  line-height: 0.88;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}
.landing-claim {
  margin: max(1.5rem, 3.1 * var(--lu)) 0 0.6rem;
  font-size: max(1.75rem, 3.47 * var(--lu));
  font-weight: 300;
  line-height: 1.2;
}
.landing-intro {
  max-width: 29.5em;
  margin: 0;
  font-size: max(0.8125rem, 1.04 * var(--lu));
  font-weight: 300;
  line-height: 1.3;
}
.landing-change {
  position: absolute;
  z-index: 2;
  left: 84.66%;
  top: 47.75%;
  width: max(7rem, 10.33 * var(--lu));
  aspect-ratio: 1;
  padding: 0 1.2rem;
  transform: translate(-50%, -50%);
  border: var(--landing-line);
  border-radius: 50%;
  background: var(--color-accent);
  color: var(--color-on-accent);
  font-size: max(1rem, 1.39 * var(--lu));
  font-weight: 700;
  line-height: 1.2;
}

.landing-projects ul {
  display: flex; /* one row; on narrower screens the columns get narrower and their text wraps */
  margin: 0;
  padding-block: max(1.5rem, 2.2 * var(--lu)) max(3rem, 4.2 * var(--lu));
  list-style: none;
}
.landing-project + .landing-project {
  margin-left: 1.05rem;
  padding-left: 1.05rem;
  border-left: var(--landing-line);
}
.landing-project { flex: 0 1 auto; min-width: 0; }
.landing-project a { display: block; }
.landing-project__title {
  display: block;
  margin-bottom: 0.3rem;
  font-size: max(1rem, 1.39 * var(--lu));
  font-weight: 700;
}
.landing-project__desc {
  display: block;
  font-size: max(0.8125rem, 1.04 * var(--lu));
  font-weight: 300;
  line-height: 1.25;
}
.landing-project__media { display: none; }
.landing-project__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* blue tint over the black-and-white photos */
.landing-project__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(29,19,255,0.65);
  mix-blend-mode: soft-light;
}


/* fixed line breaks only where the row has room for them; narrower, the text wraps freely */
@media (min-width: 75em) {
  .br-desktop { display: inline; }
}
@media (min-width: 56em) {
  /* the landing fills exactly one screen, so the footer only shows after scrolling;
     on taller screens the composition is centred instead of stretched */
  .landing {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
    min-height: 100svh;
  }
}
/* desktop: the project image floats in above the project while hovering */
@media (min-width: 56em) and (hover: hover) {
  .landing-project { position: relative; }
  .landing-project__media {
    position: absolute;
    z-index: 3;
    bottom: calc(100% + 1.25rem);
    left: 0;
    display: block;
    width: max(13rem, 18 * var(--lu));
    aspect-ratio: 3 / 2;
    border: var(--landing-line);
    background: var(--color-accent); /* no light page showing through at the edges while it moves */
    overflow: hidden;
    opacity: 0;
    transform: translateY(0.75rem);
    backface-visibility: hidden;
    transition: opacity 0.35s var(--ease-out-expo), transform 0.5s var(--ease-out-expo);
    pointer-events: none;
  }
  .landing-project + .landing-project .landing-project__media { left: 1.05rem; }
  .landing-project:hover .landing-project__media,
  .landing-project:focus-within .landing-project__media {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 55.99em) {
  .landing { display: flex; flex-direction: column; }
  .landing-hero { order: 1; margin-top: calc(var(--header-h) + 4.25rem); }
  .landing-links { order: 2; }
  .landing-projects { order: 3; }

  .landing-blob--lime-large {
    left: 55%; top: 122.7%; height: 92%;
  }
  .landing-blob--lime-small { left: 94.3%; top: -8.5%; height: 62.5%; }
  .landing-blob--fade,
  .landing-pill--upper,
  .landing-circle--upper { display: none; }
  .landing-pill--main { left: 0; right: 3%; }
  .landing-circle--main {
    right: 3%;
    background: linear-gradient(to right, rgba(29,19,255,0) 33.65%, var(--color-accent));
  }

  .landing-hero__content { padding-block: 0.9rem 2.4rem; }
  .landing-title { font-size: 16vw; line-height: 1.25; }
  .landing-claim { margin: 0 0 0.5rem; font-size: 9vw; line-height: 1.6; }
  .landing-intro { max-width: 77%; font-size: 0.9375rem; }
  .landing-change {
    position: relative;
    left: auto;
    top: auto;
    width: 11.8rem;
    aspect-ratio: auto;
    margin: 3.9rem 0 0 clamp(1.25rem, 4vw, 3.25rem);
    padding: 0.45rem 0;
    transform: none;
    border-radius: 999px;
    font-size: 1.25rem;
  }

  .landing-links ul {
    display: block;
    margin: 4.4rem clamp(1.25rem, 4vw, 3.25rem) 0;
    padding: 0;
  }
  .landing-links li {
    padding-block: 0.9rem;
    border-bottom: var(--landing-line);
  }
  .landing-links li + li { margin-left: 0; padding-left: 0; border-left: 0; }

  .landing-projects ul { display: block; padding-block: 0 4.3rem; }
  .landing-project + .landing-project { margin-left: 0; padding-left: 0; border-left: 0; }
  .landing-project { border-bottom: var(--landing-line); }
  .landing-project a {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 6.3rem;
  }
  .landing-project__text { padding: 1rem 0.5rem 1rem 0; }
  .landing-project:nth-child(even) .landing-project__media { order: -1; }
  .landing-project:nth-child(even) .landing-project__text { padding-left: 0.5rem; }
  .landing-project__title { font-size: 1.25rem; line-height: 1.1; }
  .landing-project__desc { font-size: 0.9375rem; }
  .landing-project__media {
    position: relative;
    display: block;
  }

}

/* ---------- Landing page: alternate design ("Change Design") ---------- */
/* switch between the two designs: matching text in both designs shares a view-transition-name,
   so it travels to its new position and size and cross-fades into the new font */
.landing-claim__word { display: inline-block; }
.landing-claim__word:nth-child(1),
.alt-title__line--1 { view-transition-name: word-digital; }
.landing-claim__word:nth-child(2),
.alt-title__line--2 { view-transition-name: word-meets; }
.landing-claim__word:nth-child(3),
.alt-title__line--3 { view-transition-name: word-space; }
.landing-intro,
.alt-intro { view-transition-name: intro; }
.landing-change,
.alt-change { view-transition-name: change; }
.landing-links li:nth-child(1) a,
.alt-links li:nth-child(1) a { view-transition-name: link-about; }
.landing-project:nth-child(1) .landing-project__title,
.alt-project:nth-child(1) .alt-project__title { view-transition-name: project-1-title; }
.landing-project:nth-child(1) .landing-project__desc,
.alt-project:nth-child(1) .alt-project__desc { view-transition-name: project-1-desc; }
.landing-project:nth-child(2) .landing-project__title,
.alt-project:nth-child(2) .alt-project__title { view-transition-name: project-2-title; }
.landing-project:nth-child(2) .landing-project__desc,
.alt-project:nth-child(2) .alt-project__desc { view-transition-name: project-2-desc; }
.landing-project:nth-child(3) .landing-project__title,
.alt-project:nth-child(3) .alt-project__title { view-transition-name: project-3-title; }
.landing-project:nth-child(3) .landing-project__desc,
.alt-project:nth-child(3) .alt-project__desc { view-transition-name: project-3-desc; }
.landing-project:nth-child(4) .landing-project__title,
.alt-project:nth-child(4) .alt-project__title { view-transition-name: project-4-title; }
.landing-project:nth-child(4) .landing-project__desc,
.alt-project:nth-child(4) .alt-project__desc { view-transition-name: project-4-desc; }
.landing-project:nth-child(5) .landing-project__title,
.alt-project:nth-child(5) .alt-project__title { view-transition-name: project-5-title; }
.landing-project:nth-child(5) .landing-project__desc,
.alt-project:nth-child(5) .alt-project__desc { view-transition-name: project-5-desc; }
::view-transition-group(*) {
  animation-duration: 0.8s;
  animation-timing-function: cubic-bezier(0.65, 0, 0.35, 1);
}
::view-transition-old(root),
::view-transition-new(root) { animation-duration: 0.5s; }
/* the gradient circles of the first design shrink away / grow back in at the same time */
.landing-blob--lime-large { view-transition-name: grad-lime-large; }
.landing-blob--lime-small { view-transition-name: grad-lime-small; }
.landing-blob--fade { view-transition-name: grad-fade; }
.landing-circle--upper { view-transition-name: grad-circle-upper; }
.landing-circle--main { view-transition-name: grad-circle-main; }
/* the header gets its own layer so the growing circles stay underneath it */
.theme-landing .site-header { view-transition-name: site-header; }
::view-transition-old(grad-lime-large),
::view-transition-old(grad-lime-small),
::view-transition-old(grad-fade),
::view-transition-old(grad-circle-upper),
::view-transition-old(grad-circle-main) {
  animation: landing-gradient-shrink 1s cubic-bezier(0.65, 0, 0.35, 1) both;
}
::view-transition-new(grad-lime-large),
::view-transition-new(grad-lime-small),
::view-transition-new(grad-fade),
::view-transition-new(grad-circle-upper),
::view-transition-new(grad-circle-main) {
  animation: landing-gradient-grow 1s cubic-bezier(0.65, 0, 0.35, 1) both;
}
@keyframes landing-gradient-shrink { to { transform: scale(0); opacity: 0; } }
@keyframes landing-gradient-grow { from { transform: scale(0); opacity: 0; } }

/* switch between the two designs (see js/script.js): the page fades,
   and the pattern unfolds out of / folds back into the "Change Design" button */
.alt-pattern g {
  opacity: 0;
  transition: opacity 0.25s ease;
  transition-delay: var(--d-out, 0ms);
}
.alt-pattern.is-shown g {
  opacity: 1;
  transition-delay: var(--d-in, 0ms);
}
.alt-pattern.is-static g { transition: none; }
.theme-landing main,
.theme-landing .site-header,
.theme-landing .site-footer { transition: opacity 0.35s ease; }
.design-switching .theme-landing main,
.design-switching .theme-landing .site-header,
.design-switching .theme-landing .site-footer { opacity: 0; }
.landing-alt { display: none; }
.design-alt .landing { display: none; }
.design-alt .landing-alt {
  display: block;
  overflow-x: clip; /* the pixel pattern runs past the right edge */
  color: #000;
}
.design-alt body { background: #fff; }

/* header and footer: white with black type */
.design-alt .site-header {
  --color-on-accent: #000;
  --nav-initials-color: var(--color-accent);
  background: #fff;
}
.design-alt .site-header img { filter: brightness(0); }
.design-alt .site-footer {
  --color-on-accent: #000;
  background: #fff;
  border-top: 0;
  padding-block: clamp(4rem, 7vw, 6.5rem) clamp(3rem, 6vw, 5rem);
}
.design-alt .footer__grid { min-height: 0; align-items: flex-end; }
.design-alt .footer__title {
  max-width: 28rem;
  font-size: var(--fs-footer-title);
  font-weight: 500;
}
.design-alt .footer__links { font-size: var(--fs-body); font-weight: 600; }

.alt-hero {
  position: relative;
  padding-block: calc(var(--header-h) + clamp(3rem, 7vw, 6.5rem)) clamp(2.5rem, 4vw, 3.5rem);
}
/* generated by js/script.js: pixel pattern framing the intro, from the header line down to the project list.
   It sits outside the second design's <main> so it can fold up while the first design returns;
   while it is folded (no .is-shown) all cells are transparent. */
.alt-pattern {
  position: absolute;
  top: var(--header-h);
  left: 0;
  display: block;
  pointer-events: none;
}
.alt-hero,
.alt-projects { position: relative; }
.alt-hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 43% 1fr;
  /* last row soaks up the intro's extra height so the title lines stay together */
  grid-template-rows: auto auto auto auto 1fr;
}
.alt-title { display: contents; }
.alt-title__line {
  font-family: "Array", var(--font-body);
  font-size: clamp(3.25rem, 8.89vw, 8rem);
  font-weight: 600;
  line-height: 0.94;
  text-transform: uppercase;
  white-space: nowrap;
  justify-self: start; /* box hugs the word, so the pattern can come close */
}
.alt-title__line--1 { grid-column: 1 / -1; grid-row: 1; }
.alt-title__line--2 { grid-column: 1; grid-row: 2; }
.alt-title__line--3 { grid-column: 1; grid-row: 3; }
.alt-hero__aside { grid-column: 2; grid-row: 2 / span 4; padding-top: 0.25em; }
.alt-hero__aside { position: relative; }
.alt-intro {
  max-width: 68%;
  margin: 0;
  font-size: clamp(1.25rem, 2.22vw, 2rem);
  font-weight: 300;
  line-height: 1.35;
}
.alt-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  margin: clamp(1.5rem, 2.5vw, 2.25rem) 0 0;
  padding: 0;
  list-style: none;
}
.alt-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: var(--fs-body);
  font-weight: 600;
  text-transform: uppercase;
}
.alt-links img { width: 1.5rem; height: 1.5rem; }
.alt-tags {
  position: relative;
  z-index: 1;
  grid-column: 1;
  grid-row: 4;
  align-self: start;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.9rem;
  margin-top: clamp(1.5rem, 3.5vw, 3.2rem);
}
.alt-tag {
  display: inline-block;
  padding: 0.3rem 0.7rem;
  background: var(--color-accent);
  color: #fff;
  font-size: max(0.8125rem, 1.04vw);
  font-weight: 600;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
}
.alt-tag--outline {
  padding-block: calc(0.3rem - 2px);
  background: none;
  border: 2px solid currentColor;
  color: #000;
}
/* "Change Design": a black rectangle set into the pattern column on the right (desktop) */
.alt-change {
  position: absolute;
  z-index: 1;
  top: calc(var(--header-h) + 15vw); /* middle of the pattern column */
  right: 3vw;
  padding: 0.9rem 1.4rem;
  border: 2px solid #000;
  background: #000;
  color: #fff;
  font-size: max(1rem, 1.39vw);
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.alt-change:hover,
.alt-change:focus-visible { background: var(--color-accent); border-color: var(--color-accent); }

.alt-projects { padding-top: clamp(2rem, 4vw, 3.5rem); }
.alt-heading {
  width: fit-content; /* box hugs the words, so the pattern can run beside it */
  margin: 0 0 clamp(1.25rem, 2.3vw, 2rem);
  font-family: "Array", var(--font-body);
  font-size: clamp(2.25rem, 4.44vw, 4rem);
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
}
.alt-list { margin: 0; padding: 0; list-style: none; border-top: 2px solid #000; }
.alt-project { border-bottom: 2px solid #000; }
.alt-project a {
  display: grid;
  grid-template-columns: 4.5rem 4rem minmax(0, 1fr) auto 2.25rem;
  align-items: center;
  min-height: clamp(6rem, 8.26vw, 7.4rem);
  padding: 1rem 0.9rem; /* keeps the number off the edge of the blue hover background */
}
.alt-project__num { font-size: var(--fs-body); font-weight: 300; }
.alt-project__thumb {
  width: 4rem;
  aspect-ratio: 63 / 61;
  background: url("../assets/images/landing page/alt/pixel-pattern.png") no-repeat;
  background-size: 970% auto;
}
.alt-project__text { padding: 0 2rem 0 3.9rem; }
.alt-project__title {
  display: block;
  margin-bottom: 0.4rem;
  font-family: "Array", var(--font-body);
  font-size: clamp(1.5rem, 2.22vw, 2rem);
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
  transition: color 0.2s ease;
}
.alt-project__desc {
  display: block;
  max-width: 27.6rem;
  font-size: max(0.8125rem, 1.04vw);
  font-weight: 300;
  line-height: 1.3;
}
.alt-project__tag { margin-right: clamp(2rem, 5.5vw, 5rem); }
.alt-project__arrow { width: 2.25rem; height: 2.25rem; transition: transform 0.3s var(--ease-out-expo); }
/* hover: the whole row turns blue with white content, arrow nudges right */
.alt-project a { transition: background 0.2s ease, color 0.2s ease; }
.alt-project a:hover,
.alt-project a:focus-visible {
  background: var(--color-accent);
  color: #fff;
}
.alt-project a:hover .alt-project__tag,
.alt-project a:focus-visible .alt-project__tag { color: #fff; }
.alt-project a:hover .alt-project__arrow,
.alt-project a:focus-visible .alt-project__arrow {
  filter: invert(1);
  transform: translateX(0.4rem);
}
.alt-project__thumb { transition: box-shadow 0.2s ease; }
.alt-project a:hover .alt-project__thumb,
.alt-project a:focus-visible .alt-project__thumb { box-shadow: 0 0 0 2px #fff; background-color: #fff; }
.alt-links a:hover,
.alt-links a:focus-visible { color: var(--color-accent); }

.alt-strip {
  display: block;
  width: 96.7%;
  height: auto;
  margin-top: clamp(4rem, 8vw, 7rem);
  border-bottom: 2px solid #000;
  box-sizing: content-box;
  padding-right: 3.3%;
}

.design-alt .site-header::before {
  background: #fff;
  border-bottom: 2px solid #000;
}
@media (min-width: 56em) {
  /* open menu: the white panel ends just below "About me" and the Get in touch icon */
  .design-alt .site-header:hover::before,
  .design-alt .site-header:focus-within::before,
  .design-alt .site-header.is-open::before {
    height: calc(var(--header-h) + 6.5rem);
  }
}

@media (max-width: 55.99em) {
  .design-alt .nav-panel { background: #fff; }
  .design-alt .footer__title { font-size: 2rem; }
  .design-alt .footer__links { font-size: 1.125rem; }

  .alt-hero { padding-top: calc(var(--header-h) + 3.5rem); }
  .alt-hero__grid { grid-template-columns: 1fr; }
  .alt-title__line { font-size: 14vw; }
  .alt-title__line--1, .alt-title__line--2, .alt-title__line--3 { grid-column: 1; }
  .alt-hero__aside { grid-column: 1; grid-row: 5; padding-top: 0; margin-top: 1.5rem; }
  .alt-intro { max-width: none; font-size: 1.25rem; }
  .alt-tags { grid-column: 1; grid-row: 4; gap: 0.6rem; margin-top: 1.25rem; }
  .alt-change {
    position: relative;
    top: auto;
    right: auto;
    grid-column: 1;
    grid-row: 6;
    justify-self: start;
    margin-top: 2rem;
    padding: 0.6rem 1.1rem;
    font-size: 1rem;
  }
  .alt-tag { font-size: 0.8125rem; }

  .alt-heading { font-size: 10vw; }
  .alt-project a {
    grid-template-columns: 1.75rem 3rem minmax(0, 1fr) 2rem;
    grid-template-areas:
      "num thumb text arrow"
      ".   .     tag  .";
    align-items: start;
    row-gap: 0.75rem;
    padding: 1rem 0.5rem;
  }
  .alt-project__num { grid-area: num; padding-top: 0.15rem; }
  .alt-project__thumb { grid-area: thumb; width: 3rem; }
  .alt-project__text { grid-area: text; padding: 0 0.75rem 0 1rem; }
  .alt-project__tag { grid-area: tag; justify-self: start; margin: 0 0 0 1rem; }
  .alt-project__arrow { grid-area: arrow; width: 2rem; height: 2rem; }
  .alt-project__title { font-size: 1.375rem; }
  .alt-project__desc { font-size: 0.9375rem; }
  .alt-strip { width: 100%; padding-right: 0; }
}

/* ---------- Under Pressure ---------- */
.download-button {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.4em;
  justify-self: start;
  margin-top: var(--gap-sm);
  padding: 0.8rem 1.3rem;
  border: 2px solid var(--color-accent);
  background: var(--color-accent);
  color: var(--color-bg);
  font-size: var(--fs-body);
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease;
}
.download-button:hover,
.download-button:focus-visible { background: rgb(var(--gradient-rgb)); color: var(--color-accent); }
.download-button__meta { font-weight: 400; opacity: 0.8; }

.up-section { padding-bottom: var(--gap-md); }
.up-section.concept { padding-bottom: 0; } /* Testing's own top spacing is the gap */
.up-section.concept { overflow-x: clip; overflow-y: visible; } /* gradients may run on below the section */
.up-block { margin-top: var(--gap-md); }
.up-block--h3 { margin-top: clamp(3rem, 6vw, 5rem); }
#dramaturgy > .section-lede { margin-bottom: 0; }
@media (max-width: 55.99em) { #dramaturgy > .up-figure { margin-top: var(--gap-sm); } } /* phones: small gap under the text */
.up-block > .section-lede:last-child,
.up-section .section-lede:last-child { margin-bottom: 0; }
.up-question { margin-bottom: 0; } /* spans all 8 content columns */
#research-question + #theory,
#theory + #criteria { margin-top: var(--gap-xl); }
.up-column { font-size: var(--fs-body); color: var(--color-accent); }
.up-column > p { margin-bottom: 1.25rem; }
.up-figure {
  display: block;
  width: 100%;
  height: auto;
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
}
#visual-identity > .section-lede { margin-bottom: 0; } /* images close under the text */
#visual-identity > .up-figure { margin-top: var(--gap-sm); } /* small distance */
.up-figure--materials { mix-blend-mode: multiply; } /* the sample photo's white ground disappears into the page */
.up-block .media-frame { margin: clamp(1.5rem, 3vw, 2.5rem) 0 0; }
.up-section.final-result { padding-top: var(--gap-xl); padding-bottom: var(--gap-xl); }
.up-final { padding-top: 0; }
#testing .media-frame { margin-bottom: 0; } /* the section's xl padding is the whole gap */
.up-conclusion { padding-top: 0; padding-bottom: var(--gap-xl); }
.up-final { padding-bottom: var(--gap-xl); } /* xl gap before Conclusion */
#rooms .media-frame { margin-bottom: 0; }
/* rooms: the three room texts side by side, one shared slider below */
.up-rooms__grid { display: grid; gap: clamp(2rem, 4vw, 3rem); }
.up-rooms__text { margin: 0; font-size: var(--fs-body); color: var(--color-accent); }
.up-rooms .media-frame { margin-top: clamp(3rem, 6vw, 5rem); }
@media (min-width: 56em) {
  /* headings share one row, so the three texts start at the same height */
  .up-rooms__grid { grid-template-columns: repeat(3, 1fr); grid-template-rows: auto auto; column-gap: 20px; row-gap: 0; }
  .up-rooms__item { display: grid; grid-row: span 2; grid-template-rows: subgrid; }
}

/* radial gradients glowing in from the page edge, alternating sides */
#research-question,
#criteria { position: relative; isolation: isolate; }
#final-concept > .container > .section-title:first-child { position: relative; }
#research-question::before,
#criteria::before,
#final-concept > .container > .section-title:first-child::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 50%;
  width: 32vw;
  height: 42vw;
  transform: translateY(-50%);
  pointer-events: none;
}
#research-question::before {
  right: calc(-1 * var(--container-pad));
  background: radial-gradient(ellipse 100% 50% at 100% 50%, rgba(var(--gradient-rgb),0.9) 0%, rgba(var(--gradient-rgb),0.6) 30%, rgba(var(--gradient-soft-rgb),0.3) 60%, rgba(248,244,241,0) 100%);
}
#research-question::before { width: 48vw; height: 64vw; } /* larger, to match the big question */
#criteria::before,
#final-concept > .container > .section-title:first-child::before {
  top: 20%; /* centred on the heading rather than the whole block */
  left: calc(-1 * var(--container-pad));
  background: radial-gradient(ellipse 100% 50% at 0% 50%, rgba(var(--gradient-rgb),0.9) 0%, rgba(var(--gradient-rgb),0.6) 30%, rgba(var(--gradient-soft-rgb),0.3) 60%, rgba(248,244,241,0) 100%);
}
#final-concept > .container > .section-title:first-child::before { top: 50%; } /* anchored on the heading itself */

/* accordions (theory premises, criteria tables) */
.accordions { border-top: 1px solid currentColor; color: var(--color-accent); }
.accordions--wide { margin-top: clamp(1.5rem, 3vw, 2.5rem); }
.accordion { border-bottom: 1px solid currentColor; }
.accordion summary {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding: 1rem 0;
  font-size: var(--fs-body);
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::before {
  content: "▸";
  display: inline-block;
  transition: transform 0.25s var(--ease-out-expo);
}
.accordion[open] summary::before { transform: rotate(90deg); }
.accordion summary:hover { color: var(--color-accent); text-decoration: underline; }
.accordion__body { padding: 0 0 1.25rem 1.5rem; font-size: var(--fs-body); line-height: 1.45; }
.accordion__body p { margin: 0; }

.criteria-table__scroll { overflow-x: auto; }
.criteria-table {
  width: 100%;
  min-width: 36rem;
  border-collapse: collapse;
  font-size: var(--fs-small);
  line-height: 1.4;
}
.criteria-table th,
.criteria-table td { padding: 0.7rem 1rem 0.7rem 0; text-align: left; vertical-align: top; }
.criteria-table thead th { border-bottom: 1px solid currentColor; font-weight: 600; }
.criteria-table tbody tr + tr > * { border-top: 1px solid rgba(62,77,0,0.2); }
.criteria-table tbody th { width: 28%; font-weight: 600; }

@media (max-width: 40em) {
  /* phones: each table row becomes a small block instead of scrolling sideways */
  .criteria-table { min-width: 0; }
  .criteria-table thead { display: none; }
  .criteria-table tr { display: block; padding: 0.9rem 0; }
  .criteria-table tbody tr + tr { border-top: 1px solid rgba(62,77,0,0.2); }
  .criteria-table tbody tr + tr > * { border-top: 0; }
  .criteria-table th,
  .criteria-table td,
  .criteria-table tbody th { display: block; width: auto; padding: 0 0 0.35rem; }
  .criteria-table td::before { content: attr(data-label) ": "; font-weight: 600; }
  .accordion__body { padding-left: 0; }
}
@media (min-width: 56em) {
  /* dramaturgy: text from page column 2 over 3 columns, floor plan below across all 8 content columns */
  .up-plan {
    display: grid;
    grid-template-columns: repeat(8, var(--grid-col));
    grid-template-rows: auto auto 1fr; /* the plan's extra height goes into the last row, not between heading and text */
    column-gap: 20px;
  }
  .up-plan > .section-title { grid-column: 1 / -1; grid-row: 1; position: relative; z-index: 1; }
  /* the text sits in the empty top-left corner of the plan; plan and text start at the same height */
  .up-plan > .section-lede { grid-column: 1 / span 3; grid-row: 2; position: relative; z-index: 1; width: auto; margin-left: 0; margin-bottom: 0; }
  /* the building's left wall starts 11.625% into the image: shift and enlarge the plan so that wall
     lines up with the text and the right edge stays at the content edge */
  .up-block.up-plan > .up-figure {
    grid-column: 1 / -1;
    grid-row: 1 / -1; /* top of the plan = top of the heading */
    align-self: start;
    width: calc(100% / 0.88375);
    max-width: none;
    margin: 0 0 0 calc(-100% * 0.11625 / 0.88375);
  }
}
@media (min-width: 56em) {
  /* text blocks sit in the lede column (page column 4, four columns wide); tables and sliders use the full width */
  .up-column,
  .up-block > .up-figure {
    width: calc(4 * var(--container-pad) - 20px);
    margin-left: calc(2 * var(--container-pad));
  }
  .up-figure--materials { width: calc(3 * var(--container-pad) - 20px); }
}

/* ---------- Imprint / Data protection ---------- */
.legal { padding-block: calc(var(--header-h) + var(--gap-xl)) var(--gap-xl); }
.legal__body {
  max-width: 42rem;
  margin-top: var(--gap-md);
  font-size: var(--fs-body);
  line-height: 1.5;
  color: var(--color-accent);
}
.legal__body h2 {
  margin: 2.5rem 0 0.6rem;
  font-size: var(--fs-body);
  font-weight: 600;
}
.legal__body h2:first-child { margin-top: 0; }
.legal__body p { margin: 0 0 0.9rem; }
.legal__body ul { margin: 0 0 0.9rem; padding-left: 1.2rem; list-style: disc; }
.legal__body a { text-decoration: underline; }
.legal__note { opacity: 0.8; }
@media (min-width: 56em) {
  .legal__body { margin-left: calc(2 * var(--container-pad)); width: calc(4 * var(--container-pad) - 20px); max-width: none; }
}
.legal-page .footer__legal a[aria-current] { text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer {
  padding-block: clamp(4rem, 10vw, 8rem) clamp(3rem, 6vw, 5rem);
  background: linear-gradient(180deg, var(--color-bg) 0%, rgba(var(--gradient-soft-rgb),0.4) 35%, rgb(var(--gradient-rgb)) 100%);
  color: var(--color-on-accent);
}
.footer__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2.5rem;
  min-height: clamp(10rem, 20vw, 15rem);
}
/* legal links: phones after the contact links, desktop under the CTA */
.footer__legal {
  display: flex;
  flex-wrap: wrap;
  flex-basis: 100%;
  gap: 0.5rem 1.5rem;
  margin: calc(var(--gap-sm) - 2.5rem) 0 0; /* small distance to the line above (cancels the footer's 2.5rem gap) */
  font-size: var(--fs-small);
}
.footer__legal a:hover { text-decoration: underline; }
@media (max-width: 55.99em) {
  .footer__legal { flex-direction: column; gap: 0.35rem; } /* phones: stacked like the contact links */
}
.footer__title {
  font-weight: 500;
  font-size: var(--fs-footer-title);
  line-height: 1.1;
  max-width: 28rem;
  margin: 0;
}
.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--gap-sm);
  font-weight: 600;
  font-size: var(--fs-body);
}
.footer__links a:hover { text-decoration: underline; }

/* ---------- Layout: mobile menu overlay ---------- */
@media (max-width: 55.99em) {
  .site-header { --nav-overlay-pad: clamp(1.25rem, 4vw, 3.25rem); }
  /* content uses the same side padding as the header */
  .container { padding-inline: clamp(1.25rem, 4vw, 3.25rem); }
  .footer__links { gap: 0.25rem; }
  .logo { order: 1; }
  .nav-zone { order: 2; margin-left: auto; }
  .header-cta { display: none; }

  .nav-trigger img { display: none; }
  .nav-trigger__plus {
    position: relative;
    display: block;
    width: 1.75rem;
    height: 1.75rem;
  }
  .nav-trigger__plus::before,
  .nav-trigger__plus::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--color-on-accent);
    transform-origin: center;
    transition: transform 0.3s var(--ease-out-expo);
  }
  .nav-trigger__plus::before {
    transform: translateY(-50%);
  }
  .nav-trigger__plus::after {
    transform: translateY(-50%) rotate(90deg);
  }
  .site-header.is-open .nav-trigger__plus::before {
    transform: translateY(-50%) rotate(45deg);
  }
  .site-header.is-open .nav-trigger__plus::after {
    transform: translateY(-50%) rotate(-45deg);
  }
  /* open overlay: the name stays on top (links to the landing page), the menu starts below it */
  .site-header.is-open .logo { position: relative; z-index: 2; }

  .nav-panel {
    position: fixed;
    inset: 0;
    top: 0;
    left: 0;
    min-width: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background: var(--color-accent);
    padding-inline: var(--nav-overlay-pad);
    padding-top: calc(var(--header-h) + 1.5rem);
  }
  .nav-list { position: relative; z-index: 1; gap: 1.1rem; }
  .nav-list__item { line-height: 1; }
  .nav-list__item > a {
    display: block;
    font-size: var(--logo-h);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1;
  }
  .nav-sublist {
    gap: 0;
    margin-top: 0.75rem;
    margin-bottom: 0.75rem;
    padding-left: 3rem;
    line-height: 1.35;
  }
  .nav-sublist a { font-size: 1.25rem; font-weight: 600; opacity: 1; }
  .nav-sublist__long { display: none; }

  .nav-panel__initials {
    display: block;
    position: absolute;
    left: -0.09em;
    bottom: -0.292em;
    margin: 0;
    font-size: min(124.4vw, 80vh);
    font-weight: 400;
    line-height: 1.348;
    letter-spacing: -0.13em;
    white-space: nowrap;
    color: var(--nav-initials-color);
    pointer-events: none;
  }

  /* On touch devices ":hover"/":focus-within" can stay "stuck" after tapping
     the trigger, which would keep the overlay visible even after JS removes
     "is-open". On mobile, only "is-open" should control visibility. */
  .nav-zone:hover .nav-panel,
  .nav-zone:focus-within .nav-panel,
  .site-header:hover .nav-panel,
  .site-header:focus-within .nav-panel {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
  .site-header:hover::before,
  .site-header:focus-within::before {
    height: var(--header-h);
  }
  .nav-zone:hover .nav-list__item,
  .nav-zone:hover .nav-sublist li,
  .nav-zone:focus-within .nav-list__item,
  .nav-zone:focus-within .nav-sublist li,
  .site-header:hover .nav-list__item,
  .site-header:hover .nav-sublist li,
  .site-header:focus-within .nav-list__item,
  .site-header:focus-within .nav-sublist li {
    transform: translateY(-0.6rem);
    opacity: 0;
  }

  /* ...unless the menu was explicitly opened via JS ("is-open") — that must win. */
  .site-header.is-open .nav-panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .site-header.is-open::before {
    height: calc(var(--header-h) + 11rem);
  }
  .site-header.is-open .nav-list__item,
  .site-header.is-open .nav-sublist li {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ---------- Layout: tablet+ ---------- */
@media (min-width: 56em) {
  .footer__links {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
  }
  .section-lede {
    width: calc(4 * var(--container-pad) - 20px);
    margin-left: calc(2 * var(--container-pad));
  }
  .concept-intro {
    display: grid;
    grid-template-columns: repeat(8, var(--grid-col));
    column-gap: 20px;
    align-items: start;
  }
  .concept-intro__image { grid-column: 3 / span 3; margin-bottom: 0; }
  .concept-intro__lede { grid-column: 6 / span 3; width: auto; margin-left: 0; }
  .material {
    grid-template-columns: repeat(8, var(--grid-col));
    column-gap: 20px;
    align-items: center;
  }
  .material__text { grid-column: 1 / span 3; }
  .material__swatches { grid-column: 5 / span 4; }
  .dramaturgy {
    display: grid;
    grid-template-columns: repeat(8, var(--grid-col));
    column-gap: 20px;
  }
  .dramaturgy__legend {
    grid-column: 1 / span 2;
    grid-row: 1;
    justify-content: flex-end;
    justify-self: center;
    width: max-content;
    margin: 0;
  }
  .dramaturgy__intro {
    grid-column: 1 / -1;
    grid-row: 1;
    width: calc(3 * var(--container-pad) - 20px);
    margin-left: calc(2 * var(--container-pad));
    align-self: start;
  }
  .dramaturgy__chart { grid-column: 1 / -1; grid-row: 2; }
  .dramaturgy__rooms { grid-column: 1 / -1; grid-row: 3; grid-template-columns: repeat(5, 1fr); }
  /* About me: desktop grid placement */
  .about-intro__grid {
    display: grid;
    grid-template-columns: repeat(8, var(--grid-col));
    grid-template-rows: 1fr auto auto auto auto;
    column-gap: 20px;
  }
  /* explicit height (3 columns wide, design ratio) so the image's natural size can't stretch the rows */
  .about-intro__photo { grid-column: 1 / span 3; grid-row: 1 / span 3; width: 100%; height: calc((3 * var(--grid-col) + 40px) * 564 / 418); }
  .about-intro__hello { grid-column: 5 / -1; grid-row: 1; align-self: end; margin: 0 0 1.1rem; }
  .about-intro__claim { display: contents; font-size: var(--fs-hero); }
  .about-intro__word { font-size: var(--fs-hero); font-weight: 600; text-transform: uppercase; line-height: 0.95; letter-spacing: -0.02em; }
  .about-intro__word--digital { grid-column: 4 / -1; grid-row: 2; }
  .about-intro__word--meets { grid-column: 5 / -1; grid-row: 3; justify-self: end; }
  .about-intro__word--space { grid-column: 3 / -1; grid-row: 4; }
  .about-intro__text { grid-column: 5 / -1; grid-row: 5; }
  .timeline { --tl-x: calc(2 * var(--container-pad)); --tl-gap: clamp(3rem, 6vw, 5rem); }
  .timeline__item {
    display: grid;
    grid-template-columns: repeat(8, var(--grid-col));
    column-gap: 20px;
    padding-left: 0;
  }
  .timeline__date { grid-column: 4 / span 2; margin-bottom: 0; }
  .timeline__text { grid-column: 6 / span 2; }
  .skills-chart { --label-w: calc(2 * var(--container-pad)); }
  .about-extras {
    grid-template-columns: repeat(8, var(--grid-col));
    column-gap: 20px;
  }
  .about-extras__languages { grid-column: 1 / span 4; }
  .about-extras__volunteering { grid-column: 5 / span 4; }
  .skills-chart__levels { font-size: var(--fs-body); }
  .final-result__grid { grid-template-columns: 0.9fr 1fr; align-items: start; }
  /* same columns as .final-result__grid so the links line up with its slider */
  .footer__grid {
    display: grid;
    grid-template-columns: 0.9fr 1fr;
    column-gap: 3rem;
    align-items: end;
  }
  .footer__grid { align-content: end; } /* extra height goes above, not between the rows */
  .footer__title { grid-column: 1; grid-row: 1; }
  .footer__links { grid-column: 2; grid-row: 1; }
  .footer__legal { grid-column: 1; grid-row: 2; } /* under the CTA */
}
