/*
 * Sebastián Pérez — personal website
 * Site-specific styles layered over HTML5 UP “Story”.
 *
 * The file is intentionally organised by page/feature so that future edits
 * can be made without searching through version-specific overrides.
 */

/* --------------------------------------------------------------------------
   1. Design tokens and global defaults
   -------------------------------------------------------------------------- */

:root {
  --ink: #101315;
  --ink-soft: #2d3337;
  --paper: #f7f7f5;
  --paper-alt: #eceeec;
  --white: #ffffff;
  --accent-inferno: #bb3754;
  --accent-inferno-light: #e36a79;
  --accent-viridis: #29788e;
  --accent-viridis-light: #59aeb0;
  --accent: var(--accent-inferno);
  --accent-dark: var(--accent-viridis);
  --muted: #676d70;
  --line: rgba(16, 19, 21, 0.16);
  --site-width: 1380px;
  --gutter: clamp(1.15rem, 3.6vw, 3.75rem);
  --header-height: 4rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink-soft);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-active {
  overflow: hidden;
}

main,
section,
article,
header,
footer,
nav,
div,
figure {
  min-width: 0;
}

input,
select,
textarea,
button {
  font-family: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 0.8em;
  color: var(--ink);
  font-family: inherit;
  font-weight: 500;
  letter-spacing: -0.026em;
  line-height: 1.12;
}

h1 {
  font-size: clamp(2rem, 3.4vw, 3.25rem);
}

h2 {
  font-size: clamp(1.45rem, 2.15vw, 2.05rem);
}

h3 {
  font-size: clamp(1.05rem, 1.55vw, 1.35rem);
}

p {
  margin: 0 0 1.35rem;
  line-height: 1.68;
}

strong,
b {
  color: inherit;
  font-weight: 600;
}

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

/* Links are identified through colour and motion rather than underlining. */
a,
a:hover,
a:focus,
a:active {
  border-bottom: 0 !important;
  text-decoration: none !important;
}

a {
  color: var(--accent-dark);
  transition: color 0.18s ease, opacity 0.18s ease, transform 0.18s ease;
}

a:hover {
  color: var(--accent);
}

#wrapper.divided > * {
  box-shadow: none;
}

/* --------------------------------------------------------------------------
   2. Navigation
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10000;
  background: rgba(247, 247, 245, 0.97);
  border-bottom: 0;
  backdrop-filter: blur(12px);
}

.home-site-header {
  position: fixed;
  inset: 0 0 auto 0;
  background: rgba(7, 10, 12, 0.74);
  border-bottom: 0;
  backdrop-filter: blur(12px);
  transition: background 0.25s ease;
}

.home-site-header.is-scrolled,
.home-site-header.menu-open {
  background: rgba(7, 10, 12, 0.9);
}

.site-nav {
  width: min(100%, var(--site-width));
  min-height: var(--header-height);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.site-mark {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1;
  white-space: nowrap;
}

.site-mark:hover {
  color: var(--accent);
}

.site-links {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 2vw, 1.8rem);
}

.site-links a {
  display: inline-block;
  padding: 0.3rem 0;
  color: var(--ink-soft);
  font-size: 0.8rem;
  font-weight: 450;
  line-height: 1;
  white-space: nowrap;
}

.site-links a:hover,
.site-links a[aria-current="page"] {
  color: var(--accent-dark);
}

.home-site-header .site-mark,
.home-site-header .site-links a {
  color: rgba(255, 255, 255, 0.92);
}

.home-site-header .site-mark:hover,
.home-site-header .site-links a:hover,
.home-site-header .site-links a[aria-current="page"] {
  color: #ffffff;
}

.nav-toggle {
  display: none;
}

/* --------------------------------------------------------------------------
   3. Shared components
   -------------------------------------------------------------------------- */

.section-shell,
.page-shell {
  width: min(100%, var(--site-width));
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section-shell {
  padding-top: clamp(4.5rem, 8vw, 7.5rem);
  padding-bottom: clamp(4.5rem, 8vw, 7.5rem);
}

.section-shell.compact {
  padding-top: 3.6rem;
  padding-bottom: 3.6rem;
}

.section-label,
.eyebrow,
.section-kicker,
.project-meta,
.video-card .meta {
  margin: 0 0 0.8rem;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.35;
  text-transform: none;
}

.plain-arrow,
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: inherit;
  font-size: 0.82rem;
  font-weight: 520;
}


.plain-arrow:hover,
.text-link:hover {
  color: var(--accent);
}

.button,
input[type="submit"],
input[type="reset"],
input[type="button"] {
  min-width: 0;
  height: auto;
  padding: 0.75rem 0.95rem;
  border-radius: 0;
  box-shadow: inset 0 0 0 1px var(--ink) !important;
  color: var(--ink) !important;
  font-size: 0.77rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: none;
}

.button:hover {
  box-shadow: inset 0 0 0 1px var(--accent) !important;
  color: var(--accent) !important;
}

.button.small {
  padding: 0.62rem 0.78rem;
  font-size: 0.73rem;
}

.button.primary-personal {
  background: var(--ink);
  color: #ffffff !important;
}

.button.primary-personal:hover {
  background: var(--accent);
  color: #ffffff !important;
}

.button.ghost-light {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.56) !important;
  color: #ffffff !important;
}

.button.ghost-light:hover {
  box-shadow: inset 0 0 0 1px var(--accent) !important;
  color: var(--accent) !important;
}

.page-links,
.project-detail-links,
.cv-inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.5rem;
}

.page-links {
  margin-top: 1.6rem;
}

.paper-section {
  background: var(--paper);
}

/* --------------------------------------------------------------------------
   4. Homepage cover
   -------------------------------------------------------------------------- */

.cover-hero {
  position: relative;
  min-height: max(640px, 100svh);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #07090b;
  color: #ffffff;
}

.cover-media,
.cover-shade {
  position: absolute;
  inset: 0;
}

.cover-media {
  background-image: url("../../images/site/home-hero-observatory.webp");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  transform: scale(1.002);
}

.cover-shade {
  background:
    linear-gradient(90deg, rgba(3, 6, 8, 0.82) 0%, rgba(3, 6, 8, 0.52) 39%, rgba(3, 6, 8, 0.12) 72%, rgba(3, 6, 8, 0.2) 100%),
    linear-gradient(0deg, rgba(2, 5, 7, 0.66) 0%, rgba(2, 5, 7, 0.08) 47%, rgba(2, 5, 7, 0.24) 100%);
}

.cover-content {
  position: relative;
  z-index: 2;
  width: min(100%, var(--site-width));
  margin: 0 auto;
  padding: clamp(7rem, 14vh, 10rem) var(--gutter) clamp(5rem, 9vh, 7.5rem);
}

.cover-kicker {
  margin: 0 0 1rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.72rem;
  font-weight: 550;
  letter-spacing: 0.035em;
}

.cover-hero h1 {
  max-width: 15ch;
  margin: 0 0 0.7rem;
  color: #ffffff;
  font-size: clamp(2.35rem, 4.5vw, 4rem);
  font-weight: 520;
  line-height: 1;
}

.cover-intro {
  max-width: 37rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(0.98rem, 1.35vw, 1.15rem);
  line-height: 1.58;
}

.cover-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.5rem;
  margin-top: 1.65rem;
}

.cover-links a {
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 520;
}

.cover-links a:hover {
  color: var(--accent-inferno-light);
}

.cover-social {
  margin: 2rem 0 0 !important;
}

.cover-social a {
  color: rgba(255, 255, 255, 0.78) !important;
}

.cover-social a:hover {
  color: #ffffff !important;
}

/* --------------------------------------------------------------------------
   5. Homepage section headings
   -------------------------------------------------------------------------- */

.home-section-head {
  width: min(100%, var(--site-width));
  margin: 0 auto;
  padding: clamp(3.5rem, 7vw, 6.5rem) var(--gutter) clamp(2.1rem, 4vw, 3.4rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.55fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: end;
}

.home-section-head h2 {
  margin: 0;
  font-size: clamp(1.65rem, 2.6vw, 2.55rem);
}

.home-section-summary {
  max-width: 30rem;
}

.home-section-summary p {
  margin: 0 0 0.8rem;
  font-size: 0.94rem;
  line-height: 1.6;
}

.dark-head {
  color: rgba(255, 255, 255, 0.72);
}

.dark-head h2 {
  color: #ffffff;
}

.dark-head .section-label {
  color: var(--accent-inferno-light);
}

.dark-head .plain-arrow {
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   6. Homepage research mosaic
   -------------------------------------------------------------------------- */

.home-research {
  background: #080b0d;
}

.research-mosaic {
  height: clamp(690px, 61vw, 1000px);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: 1.12fr 0.88fr;
  background: #050708;
}

.visual-tile {
  position: relative;
  display: block;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: #14181b;
}

.visual-tile--planet {
  grid-column: 1 / span 5;
  grid-row: 1 / span 2;
}

.visual-tile--kinematics {
  grid-column: 6 / span 7;
  grid-row: 1;
}

.visual-tile--eruptive {
  grid-column: 6 / span 4;
  grid-row: 2;
}

.visual-tile--demography {
  grid-column: 10 / span 3;
  grid-row: 2;
}

.visual-tile img,
.work-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.45s ease;
}

.visual-tile--planet img {
  object-position: 51% center;
}

.visual-tile--kinematics img {
  object-position: center 48%;
}

.visual-tile-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(1, 4, 5, 0.76) 0%, rgba(1, 4, 5, 0.12) 54%, rgba(1, 4, 5, 0.08) 100%);
  transition: background 0.35s ease;
}

.visual-tile--planet .visual-tile-shade,
.visual-tile--kinematics .visual-tile-shade {
  background: linear-gradient(0deg, rgba(1, 4, 5, 0.72) 0%, rgba(1, 4, 5, 0.06) 55%, rgba(1, 4, 5, 0.02) 100%);
}

.visual-tile-caption {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: clamp(1.1rem, 2.4vw, 2.1rem);
  color: #ffffff;
}

.visual-tile-caption h3 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(0.95rem, 1.45vw, 1.3rem);
  font-weight: 500;
}

.visual-tile:hover img,
.work-visual:hover img {
  transform: scale(1.025);
  filter: saturate(1.08) contrast(1.03);
}

.visual-tile:hover .visual-tile-shade {
  background: linear-gradient(0deg, rgba(1, 4, 5, 0.84) 0%, rgba(1, 4, 5, 0.06) 60%);
}

/* --------------------------------------------------------------------------
   7. Homepage selected works
   -------------------------------------------------------------------------- */

.home-works {
  padding-bottom: clamp(3.5rem, 8vw, 7.5rem);
  background: var(--paper);
}

.works-mosaic {
  width: min(calc(100% - 2 * var(--gutter)), var(--site-width));
  height: clamp(1120px, 92vw, 1440px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: 1fr 0.9fr 0.82fr 0.78fr;
  gap: clamp(0.55rem, 1vw, 0.9rem);
}

.work-visual {
  position: relative;
  display: block;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: #171a1c;
}

.work-visual--book {
  grid-column: 1 / span 5;
  grid-row: 1 / span 2;
}

.work-visual--concert {
  grid-column: 6 / span 7;
  grid-row: 1;
}

.work-visual--planisferio {
  grid-column: 6 / span 4;
  grid-row: 2;
}

.work-visual--charango {
  grid-column: 10 / span 3;
  grid-row: 2;
}

.work-visual--tahay {
  grid-column: 1 / span 4;
  grid-row: 3;
}

.work-visual--cuerpo {
  grid-column: 5 / span 4;
  grid-row: 3;
}

.work-visual--wenumapu {
  grid-column: 9 / span 4;
  grid-row: 3;
}

.work-visual--ckunza {
  grid-column: 1 / span 6;
  grid-row: 4;
}

.work-visual--recreo {
  grid-column: 7 / span 6;
  grid-row: 4;
}

.work-visual--book img {
  object-position: center 48%;
}

.work-visual--concert img {
  object-position: center 52%;
}

.work-visual--tahay img {
  object-position: center 28%;
}

.work-visual--cuerpo img,
.work-visual--wenumapu img,
.work-visual--ckunza img,
.work-visual--charango img,
.work-visual--planisferio img,
.work-visual--recreo img {
  object-position: center;
}

.work-visual--recreo .visual-tile-shade {
  background: linear-gradient(0deg, rgba(1, 4, 5, 0.64) 0%, rgba(1, 4, 5, 0.05) 65%);
}

.work-visual-caption {
  position: absolute;
  right: clamp(1rem, 2vw, 1.8rem);
  bottom: clamp(1rem, 2vw, 1.8rem);
  left: clamp(1rem, 2vw, 1.8rem);
  z-index: 2;
  color: #ffffff;
}

.work-visual-caption p {
  margin: 0 0 0.28rem;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.68rem;
}

.work-visual-caption h3 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(0.95rem, 1.4vw, 1.25rem);
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   8. Homepage about and teaching
   -------------------------------------------------------------------------- */

.home-about {
  min-height: 720px;
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr);
  background: #ffffff;
}

.about-portrait {
  min-height: 620px;
  overflow: hidden;
  background: #d8d9d6;
}

.about-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  filter: grayscale(1) contrast(0.96);
}

.about-copy {
  padding: clamp(4rem, 8vw, 8rem) max(var(--gutter), calc((100vw - var(--site-width)) / 2 + var(--gutter))) clamp(4rem, 8vw, 8rem) clamp(2rem, 7vw, 7rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-copy h2 {
  max-width: 19ch;
  margin-bottom: 1.5rem;
  font-size: clamp(1.55rem, 2.25vw, 2.2rem);
}

.about-copy p {
  max-width: 43rem;
  margin-bottom: 1rem;
  font-size: 0.94rem;
  line-height: 1.65;
}

.about-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  margin-top: 0.8rem;
}

.teaching-section {
  background: var(--white);
}


.teaching-head {
  max-width: none;
  padding: 0 0 1rem;
}

.course-list {
  margin-top: 2rem;
  border-top: 1px solid var(--line);
}

.course-link {
  padding: 1.05rem 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  border-bottom: 1px solid var(--line) !important;
  color: var(--ink);
  font-size: 0.9rem;
}

.course-link:hover {
  padding-left: 0.35rem;
  color: var(--accent);
}

.course-link span:last-child {
  color: var(--muted);
  font-size: 0.76rem;
}

/* --------------------------------------------------------------------------
   9. Inner-page hero sections
   -------------------------------------------------------------------------- */

.page-hero {
  padding: clamp(5rem, 9vw, 8rem) var(--gutter) clamp(3rem, 6vw, 5rem);
  background: var(--paper);
  border-bottom: 0;
}

.page-hero .inner {
  width: min(100%, var(--site-width));
  margin: 0 auto;
}

.page-hero h1 {
  max-width: 22ch;
  margin-bottom: 1rem;
  font-size: clamp(1.85rem, 2.8vw, 2.75rem);
}

.page-hero p.major {
  max-width: 740px;
  color: #4e5961;
  font-size: clamp(1.03rem, 1.4vw, 1.18rem);
  line-height: 1.62;
}

.image-page-hero {
  position: relative;
  isolation: isolate;
  min-height: clamp(360px, 48vw, 620px);
  padding: 0;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background-color: #090c0e;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  border-bottom: 0;
}

.image-page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(0deg, rgba(3, 6, 8, 0.82) 0%, rgba(3, 6, 8, 0.28) 55%, rgba(3, 6, 8, 0.22) 100%),
    linear-gradient(90deg, rgba(3, 6, 8, 0.58), rgba(3, 6, 8, 0.08) 72%);
}

.research-page-hero {
  background-image: url("../../images/research/hero/v960-mon.webp");
}

.works-page-hero {
  background-image: url("../../images/works/works-hero-collage.webp");
  background-position: center;
}

.conversations-page-hero {
  background-image: url("../../images/works/concierto-cielos-rehearsal.jpg");
  background-position: center 48%;
}

.image-page-hero .inner {
  width: min(100%, var(--site-width));
  margin: 0 auto;
  padding: clamp(5rem, 10vw, 8rem) var(--gutter) clamp(2.8rem, 6vw, 5rem);
}

.image-page-hero h1 {
  color: #ffffff;
}

.image-page-hero p.major {
  max-width: 42rem;
  color: rgba(255, 255, 255, 0.82);
}

.image-page-hero .eyebrow {
  color: var(--accent-inferno-light);
}

/* --------------------------------------------------------------------------
   10. Research page
   -------------------------------------------------------------------------- */

.research-page {
  background: var(--paper);
}

.research-directory {
  border-bottom: 0;
}

.research-directory .section-shell {
  padding-top: 1.2rem;
  padding-bottom: 1.2rem;
}

.research-directory-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.5rem;
}

.research-directory a {
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 500;
}

.research-directory a:hover,
.research-directory a:focus-visible {
  color: var(--accent-dark);
}

.research-list {
  width: min(100%, var(--site-width));
  margin: 0 auto;
  padding: clamp(3.8rem, 6vw, 5.5rem) var(--gutter) clamp(5rem, 8vw, 7rem);
  scroll-margin-top: 6rem;
}

.research-inner {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.research-section-heading {
  margin-bottom: 1.4rem;
}

.research-section-heading h2 {
  margin: 0;
  font-size: clamp(1.45rem, 2.4vw, 1.9rem);
}

.research-page .index > section {
  margin: 0;
  padding: clamp(2.6rem, 4vw, 3.8rem) 0;
  display: grid;
  grid-template-columns: minmax(190px, 0.25fr) minmax(0, 0.75fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  border: 0;
  background: transparent;
}


.research-page .index > section > header,
.research-page .index > section > .content {
  width: auto;
  padding: 0;
  border: 0;
}

.research-page .index h3 {
  margin-bottom: 0.45rem;
  color: var(--ink);
  font-size: 1.08rem;
  line-height: 1.35;
}

.research-page .index h4 {
  margin: 0;
  color: var(--accent-viridis);
  font-size: 0.73rem;
  font-weight: 400;
}

.research-page .index p:last-child {
  margin-bottom: 0;
}

.research-page .image.fit {
  display: block;
  width: 100%;
  margin: 0 0 1.25rem;
}

.research-page .image.fit img,
.research-page .image.right img {
  width: 100%;
  height: auto;
  border-radius: 0;
}

.research-page .image.right {
  width: min(42%, 360px);
  margin: 0 0 1rem 1.5rem;
  float: right;
}

.research-highlight--arks .image.fit {
  background: #030305;
}

.research-highlight--arks .image.fit img {
  width: 100%;
  aspect-ratio: 5 / 3;
  object-fit: cover;
  object-position: center;
}

.research-list .image-credit {
  margin: -0.65rem 0 1.25rem;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.45;
}

.review-chapters,
.group-collaborators {
  width: min(100%, var(--site-width));
  margin: 0 auto;
  padding-right: var(--gutter);
  padding-left: var(--gutter);
  scroll-margin-top: 6rem;
}

.review-chapters {
  padding-bottom: clamp(5rem, 8vw, 7rem);
}

.review-chapters > .section-shell {
  width: 100%;
  padding: 0;
}

.review-chapters-head,
.group-collaborators > header {
  padding-top: clamp(3.8rem, 6vw, 5.5rem);
  border-top: 0;
}

.review-chapters-head {
  margin-bottom: 1.2rem;
}

.review-chapters-head h2,
.group-collaborators h2 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.45rem, 2.4vw, 1.9rem);
}

.review-chapters-head p,
.collaborator-content > p {
  max-width: 46rem;
  margin: 0;
  color: var(--muted);
}

.review-grid {
  display: block;
}

.review-card {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: clamp(1.8rem, 4vw, 4rem);
  align-items: center;
  padding: clamp(2.2rem, 4vw, 3.4rem) 0;
  border-top: 0;
  background: transparent;
}


.review-image {
  display: flex;
  align-items: center;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: transparent;
}

.review-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.review-copy {
  display: block;
  padding: 0;
}

.review-copy .meta {
  margin: 0 0 0.7rem;
  color: var(--accent-inferno);
  font-size: 0.72rem;
}

.review-copy h3 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.08rem, 1.7vw, 1.35rem);
  line-height: 1.3;
}

.review-authors {
  margin: 0 0 1rem;
  color: var(--accent-viridis);
  font-size: 0.82rem;
}

.review-copy > p:not(.meta):not(.review-authors) {
  margin-bottom: 1.2rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.group-collaborators {
  padding-bottom: clamp(5rem, 8vw, 7rem);
}

.group-collaborators > header {
  margin-bottom: 1rem;
}

.collaborator-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 5vw, 5rem);
  margin-top: 2rem;
}

.collaborator-columns h4 {
  margin-bottom: 0.8rem;
  color: var(--accent-viridis);
  font-size: 0.86rem;
}

.collaborator-columns ul {
  margin: 0;
  padding-left: 1.05rem;
}

.collaborator-columns li {
  margin-bottom: 0.5rem;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   11. Works page
   -------------------------------------------------------------------------- */

.works-page {
  background: var(--paper);
}

.works-archive {
  width: 100%;
}

.works-archive-head {
  max-width: 760px;
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

.works-archive-head h2 {
  margin: 0;
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  font-weight: 500;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(3rem, 6vw, 6rem) clamp(1.2rem, 2.5vw, 2.6rem);
  align-items: start;
}

.project-card {
  grid-column: span 4;
  min-width: 0;
}

.project-image-link {
  display: block;
  width: 100%;
  height: 100%;
}

.project-image-link:focus-visible {
  outline: 2px solid var(--accent-dark);
  outline-offset: 3px;
}

.project-card figure {
  margin: 0 0 1rem;
  overflow: hidden;
  background: var(--paper-alt);
}

.project-card figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}


.project-card h3 {
  margin: 0.25rem 0 0.55rem;
  color: var(--ink);
  font-size: clamp(1.05rem, 1.45vw, 1.3rem);
  font-weight: 500;
}

.project-card > p:not(.project-meta) {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.58;
}

.project-footer {
  margin-top: 0.9rem;
  padding-top: 0;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-top: 0;
}

.project-footer span {
  max-width: 52%;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.4;
  text-align: right;
}

.project-card--cazadores {
  grid-column: span 7;
}

.project-card--concierto {
  grid-column: span 5;
}

.project-card--planisferio {
  grid-column: span 5;
}

.project-card--tahay {
  grid-column: span 7;
}

.project-card--charango {
  grid-column: span 8;
}

.project-card--cuerpo {
  grid-column: span 4;
}

.project-card--wenumapu,
.project-card--ckunza {
  grid-column: span 6;
}

.project-card--recreo,
.project-card--platform {
  grid-column: span 4;
}

.project-card--visual {
  grid-column: span 12;
}

.project-card--cazadores figure {
  aspect-ratio: 4 / 5;
}

.project-card--concierto figure,
.project-card--planisferio figure,
.project-card--tahay figure,
.project-card--wenumapu figure,
.project-card--ckunza figure,
.project-card--platform figure {
  aspect-ratio: 16 / 10;
}

.project-card--charango figure {
  aspect-ratio: 16 / 9;
}

.project-card--cuerpo figure {
  aspect-ratio: 1 / 1;
}

.project-card--recreo figure {
  aspect-ratio: 4 / 3;
}

.project-card--visual figure {
  aspect-ratio: 21 / 9;
}

.project-card--cazadores figure img {
  object-position: center 48%;
}

.project-card--concierto figure img {
  object-position: center 52%;
}

.project-card--tahay figure img {
  object-position: center 28%;
}

/* --------------------------------------------------------------------------
   12. Conversations page
   -------------------------------------------------------------------------- */

.video-page {
  background: var(--paper);
}

.video-lite {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 0 0 1.3rem;
  overflow: hidden;
  background: #080b0e;
}

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

.video-play {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.3), transparent 52%);
  box-shadow: none !important;
  color: #ffffff !important;
  cursor: pointer;
}

.video-play::after {
  content: "";
  position: absolute;
  top: 50%;
  left: calc(50% + 0.08rem);
  transform: translate(-50%, -50%);
  border-top: 0.62rem solid transparent;
  border-bottom: 0.62rem solid transparent;
  border-left: 0.98rem solid #ffffff;
  filter: drop-shadow(0 1px 5px rgba(0, 0, 0, 0.55));
}

.video-lite iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-toolbar {
  margin: 0 0 3.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.15rem;
}

.filter-button {
  min-width: 0;
  min-height: 2.5rem;
  padding: 0.5rem 0;
  display: inline-flex;
  align-items: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none !important;
  color: var(--muted) !important;
  font-size: 0.78rem;
  font-weight: 450;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: none;
}

.filter-button:hover,
.filter-button.is-active {
  border-color: transparent;
  background: transparent;
  color: var(--ink) !important;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3rem 1.35rem;
  align-items: start;
}

.video-card {
  padding-bottom: 0;
  border-bottom: 0;
}

.video-card h3 {
  margin: 0.3rem 0 0.5rem;
  font-size: 1rem;
}

.video-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.55;
}

.video-card[hidden] {
  display: none;
}

/* --------------------------------------------------------------------------
   13. CV page
   -------------------------------------------------------------------------- */

.cv-page {
  background: var(--paper);
}

.cv-wrapper {
  max-width: 920px !important;
}

.cv-header {
  padding-top: 3rem;
}

.cv-name {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
}

.cv-section {
  margin-top: 3.5rem;
}

.cv-section h2 {
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--line);
  font-size: 1.55rem;
}

.cv-section li {
  margin-bottom: 0.7rem;
  line-height: 1.55;
}

.cv-muted {
  color: var(--muted);
  opacity: 1;
}

/* --------------------------------------------------------------------------
   14. Planisphere detail page
   -------------------------------------------------------------------------- */

.project-detail-hero {
  position: relative;
  min-height: clamp(470px, 72vh, 760px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #090b0c;
  color: #ffffff;
}

.project-detail-hero-image,
.project-detail-hero-shade {
  position: absolute;
  inset: 0;
}

.project-detail-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
}

.project-detail-hero-shade {
  background:
    linear-gradient(0deg, rgba(5, 7, 9, 0.86) 0%, rgba(5, 7, 9, 0.44) 46%, rgba(5, 7, 9, 0.12) 78%),
    linear-gradient(90deg, rgba(5, 7, 9, 0.5), rgba(5, 7, 9, 0.06) 68%);
}

.project-detail-hero-copy {
  position: relative;
  z-index: 1;
  width: min(100%, var(--site-width));
  margin: 0 auto;
  padding: clamp(7rem, 14vh, 10rem) var(--gutter) clamp(3rem, 7vw, 5.5rem);
}

.project-detail-hero-copy .eyebrow {
  color: var(--accent-inferno-light);
}

.project-detail-hero-copy h1 {
  max-width: 780px;
  margin-bottom: 1rem;
  color: #ffffff;
  font-size: clamp(2rem, 4vw, 3.7rem);
  font-weight: 500;
}

.project-detail-hero-copy > p:last-child {
  max-width: 600px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1rem;
}

.project-detail-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: clamp(2.5rem, 7vw, 7rem);
  align-items: center;
}

.project-detail-text h2 {
  max-width: 520px;
}

.project-detail-links {
  margin-top: 2rem;
}

.planisferio-object {
  margin: 0;
  text-align: center;
}

.planisferio-object img {
  width: min(100%, 720px);
  margin: 0 auto;
}

.planisferio-object figcaption,
.project-detail-launch .image-credit {
  margin-top: 0.9rem;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.5;
}

.project-detail-launch {
  min-height: 520px;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.55fr);
  background: #111517;
  color: rgba(255, 255, 255, 0.8);
}

.project-detail-launch-image img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  object-position: center;
}

.project-detail-launch-copy {
  padding: clamp(3rem, 7vw, 6rem) var(--gutter);
  align-self: center;
}

.project-detail-launch-copy h2 {
  color: #ffffff;
}

.project-detail-launch-copy .section-label {
  color: var(--accent-inferno-light);
}

.project-detail-launch .image-credit {
  color: rgba(255, 255, 255, 0.55);
}

/* --------------------------------------------------------------------------
   15. Footer and accessibility helpers
   -------------------------------------------------------------------------- */

.site-footer {
  padding: 4.2rem var(--gutter);
  background: var(--ink);
  color: rgba(255, 255, 255, 0.58);
  text-align: left;
}

.site-footer .inner {
  width: min(100%, var(--site-width));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3rem;
  align-items: end;
}

.site-footer h2 {
  margin: 0 0 1rem;
  color: #ffffff;
  font-size: 1.3rem;
}

.site-footer .icons {
  margin-bottom: 0;
}

.site-footer .icons a {
  color: rgba(255, 255, 255, 0.72);
}

.site-footer .icons a:hover {
  color: var(--accent-inferno-light);
}

.site-footer p {
  margin: 0;
  font-size: 0.75rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.78);
}

.skip-link {
  position: fixed;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 20000;
  padding: 0.7rem 1rem;
  transform: translateY(-160%);
  background: #ffffff;
  color: #000000;
}

.skip-link:focus {
  transform: translateY(0);
}

.back-to-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 999;
  width: 2.6rem;
  height: 2.6rem;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  background: rgba(21, 26, 31, 0.92);
  color: #ffffff;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
}

/* --------------------------------------------------------------------------
   16. Responsive layouts
   -------------------------------------------------------------------------- */

/* Intermediate desktops and landscape tablets.
 * Switching the visual mosaics before they become narrow prevents the
 * distorted layout that appeared around 1100–1250 px in v7.
 */
@media screen and (max-width: 1279px) {
  .research-mosaic {
    height: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
  }

  .visual-tile--planet,
  .visual-tile--kinematics,
  .visual-tile--eruptive,
  .visual-tile--demography {
    grid-column: auto;
    grid-row: auto;
    aspect-ratio: 4 / 3;
  }

  .visual-tile--planet {
    aspect-ratio: 1 / 1;
  }

  .works-mosaic {
    height: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
  }

  .work-visual {
    grid-column: auto;
    grid-row: auto;
    aspect-ratio: 4 / 3;
  }

  .work-visual--book {
    aspect-ratio: 4 / 5;
  }

  .home-about {
    grid-template-columns: minmax(300px, 0.85fr) minmax(0, 1.15fr);
  }

  .about-copy {
    padding-right: var(--gutter);
  }
}

@media screen and (max-width: 1050px) {
  .project-card,
  .project-card--cazadores,
  .project-card--concierto,
  .project-card--planisferio,
  .project-card--tahay,
  .project-card--charango,
  .project-card--cuerpo,
  .project-card--wenumapu,
  .project-card--ckunza,
  .project-card--recreo,
  .project-card--platform {
    grid-column: span 6;
  }

  .project-card--visual {
    grid-column: span 12;
  }

  .video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}


@media screen and (max-width: 900px) {
  :root {
    --header-height: 3.7rem;
  }

  body:not(.home-page) main {
    padding-top: var(--header-height);
  }

  .site-header,
  .home-site-header,
  .home-site-header:not(.is-scrolled) {
    position: fixed;
    inset: 0 0 auto 0;
    background: rgba(247, 247, 245, 0.97);
    border-bottom: 0;
    backdrop-filter: blur(14px);
  }

  .home-site-header:not(.is-scrolled),
  .home-site-header.menu-open:not(.is-scrolled) {
    background: rgba(7, 10, 12, 0.9);
    border-bottom: 0;
  }

  .site-nav {
    min-height: var(--header-height);
    gap: 1rem;
  }

  .site-mark {
    font-size: 0.86rem;
  }

  .nav-toggle {
    display: inline-flex;
    min-width: 0;
    padding: 0.35rem 0;
    align-items: center;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none !important;
    color: var(--ink) !important;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0;
    line-height: 1;
    text-transform: none;
  }

  .site-links {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    padding: 0.55rem var(--gutter) 0.9rem;
    display: block;
    background: rgba(247, 247, 245, 0.99);
    border-bottom: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-0.4rem);
    transition: opacity 0.18s ease, visibility 0.18s ease, transform 0.18s ease;
  }

  .site-header.menu-open .site-links {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .site-links a {
    display: block;
    padding: 0.66rem 0;
    color: var(--ink);
    font-size: 0.94rem;
  }

  .home-site-header .site-mark,
  .home-site-header .nav-toggle {
    color: #ffffff !important;
  }

  .home-site-header:not(.is-scrolled) .site-links {
    background: rgba(7, 10, 12, 0.97);
    border-bottom: 0;
  }

  .home-site-header:not(.is-scrolled) .site-links a {
    color: rgba(255, 255, 255, 0.9);
  }

  .home-section-head {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .home-about {
    grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  }


  .research-page .index > section {
    grid-template-columns: 1fr;
  }

  .research-page .index > section > header {
    padding: 0;
    margin-bottom: 1.2rem;
  }

  .research-page .index > section > .content {
    padding: 0;
    border-left: 0;
  }

  .project-card--charango {
    display: block;
  }

  .project-card--charango figure {
    margin-bottom: 1rem;
    aspect-ratio: 4 / 3;
  }

  .project-card--charango .project-meta,
  .project-card--charango h3,
  .project-card--charango > p,
  .project-card--charango .project-footer {
    grid-column: auto;
  }

  .project-detail-intro {
    grid-template-columns: 1fr;
  }

  .planisferio-object {
    order: -1;
  }

  .project-detail-launch {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .project-detail-launch-image img {
    min-height: 0;
    aspect-ratio: 3 / 2;
  }
}


@media screen and (max-width: 900px) {
  .review-card {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }


  .collaborator-columns {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 700px) {
  .research-directory-links {
    gap: 0.55rem 1.1rem;
  }

  .research-directory a {
    font-size: 0.76rem;
  }


  :root {
    --gutter: 1.15rem;
  }

  .cover-hero {
    min-height: 100svh;
  }

  .cover-media {
    background-position: 61% center;
  }

  .cover-shade {
    background:
      linear-gradient(90deg, rgba(3, 6, 8, 0.78) 0%, rgba(3, 6, 8, 0.46) 72%, rgba(3, 6, 8, 0.28) 100%),
      linear-gradient(0deg, rgba(2, 5, 7, 0.72) 0%, rgba(2, 5, 7, 0.08) 53%, rgba(2, 5, 7, 0.28) 100%);
  }

  .cover-content {
    padding-top: 7rem;
    padding-bottom: 5.5rem;
  }

  .cover-hero h1 {
    font-size: clamp(2.15rem, 12vw, 3rem);
  }

  .cover-intro {
    max-width: 31rem;
    font-size: 0.96rem;
  }


  .home-section-head {
    padding: 3.4rem var(--gutter) 2rem;
  }

  .home-section-head h2 {
    font-size: 1.72rem;
  }

  .home-section-summary p {
    font-size: 0.9rem;
  }

  .research-mosaic,
  .works-mosaic {
    display: block;
    height: auto;
  }

  .works-mosaic {
    width: calc(100% - 2 * var(--gutter));
  }

  .visual-tile--planet,
  .visual-tile--kinematics,
  .visual-tile--eruptive,
  .visual-tile--demography,
  .work-visual {
    display: block;
    width: 100%;
    margin-bottom: 0.75rem;
    aspect-ratio: 4 / 3;
  }

  .visual-tile--planet {
    aspect-ratio: 1 / 1;
  }

  .work-visual--book {
    aspect-ratio: 4 / 5;
  }

  .visual-tile-caption {
    padding: 1.15rem;
  }

  .visual-tile-caption h3 {
    font-size: 1rem;
  }

  .work-visual-caption {
    right: 1rem;
    bottom: 1rem;
    left: 1rem;
  }

  .home-about {
    min-height: 0;
    display: flex;
    flex-direction: column;
  }

  .about-portrait {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .about-copy {
    padding: 3.5rem var(--gutter) 4rem;
  }

  .about-copy h2 {
    font-size: 1.65rem;
  }

  .about-copy p {
    font-size: 0.91rem;
  }

  .course-link {
    gap: 1rem;
    align-items: baseline;
    font-size: 0.84rem;
  }

  .course-link span:first-child {
    overflow-wrap: anywhere;
  }

  .page-hero {
    padding-top: 4.5rem;
  }

  .image-page-hero {
    min-height: 390px;
  }

  .image-page-hero .inner {
    padding: 6.5rem var(--gutter) 2.7rem;
  }

  .works-page-hero {
    background-position: 58% center;
  }

  .conversations-page-hero {
    background-position: 60% center;
  }

  .research-list {
    padding-left: var(--gutter);
    padding-right: var(--gutter);
  }

  .research-page .index > section {
    padding: 2.5rem 0;
  }

  .research-page .image.right {
    width: 100%;
    max-width: none;
    margin: 0 0 1rem;
    float: none;
  }

  .works-archive-head {
    margin-bottom: 2.5rem;
  }

  .portfolio-grid {
    display: block;
  }

  .project-card {
    margin-bottom: 3.2rem;
  }

  .project-card:last-child {
    margin-bottom: 0;
  }

  .project-card figure,
  .project-card--concierto figure,
  .project-card--planisferio figure,
  .project-card--tahay figure,
  .project-card--charango figure,
  .project-card--cuerpo figure,
  .project-card--wenumapu figure,
  .project-card--ckunza figure,
  .project-card--recreo figure,
  .project-card--platform figure,
  .project-card--visual figure {
    aspect-ratio: 4 / 3;
  }

  .project-card--cazadores figure {
    aspect-ratio: 4 / 5;
  }

  .project-footer {
    align-items: flex-start;
  }

  .video-grid {
    grid-template-columns: 1fr;
  }

  .site-footer .inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .project-detail-hero {
    min-height: 76svh;
  }

  .project-detail-hero-image img {
    object-position: 42% center;
  }

  .project-detail-hero-copy h1 {
    font-size: clamp(1.8rem, 9vw, 2.7rem);
  }

  .project-detail-launch-copy {
    padding: 3rem var(--gutter);
  }
}

@media screen and (max-width: 390px) {
  .cover-links {
    display: grid;
    justify-items: start;
  }

  .cover-social li {
    padding: 0 0.55rem 0 0;
  }

  .home-section-head h2 {
    font-size: 1.55rem;
  }

  .course-link {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.25rem;
  }

  .course-link span:last-child {
    font-size: 0.7rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* CV width must override the fixed .wrapper > .inner width in Story. */
.cv-wrapper {
  width: min(100%, 920px) !important;
  max-width: 920px !important;
  margin-right: auto !important;
  margin-left: auto !important;
  padding-right: var(--gutter) !important;
  padding-left: var(--gutter) !important;
}

.cv-wrapper a {
  overflow-wrap: anywhere;
}

/* --------------------------------------------------------------------------
   16. Recreo Espacial project page
   -------------------------------------------------------------------------- */

.recreo-detail-hero .project-detail-hero-image img {
  object-position: center;
}

.recreo-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: clamp(2.5rem, 7vw, 7rem);
  align-items: center;
}

.recreo-intro-copy h2,
.recreo-section-head h2 {
  max-width: 40rem;
}

.recreo-workshop-image {
  margin: 0;
}

.recreo-workshop-image img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.recreo-workshop-image figcaption {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.72rem;
}

.recreo-method {
  background: var(--paper-alt);
}

.recreo-method .section-shell,
.recreo-visuals .section-shell {
  padding-top: clamp(4.5rem, 8vw, 7rem);
  padding-bottom: clamp(4.5rem, 8vw, 7rem);
}

.recreo-section-head {
  max-width: 48rem;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.recreo-section-head > p:last-child {
  color: var(--muted);
}

.recreo-method-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 4rem);
}

.recreo-method-grid h3 {
  margin: 0 0 0.65rem;
  font-size: 1.05rem;
}

.recreo-method-grid p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

.recreo-step {
  margin: 0 0 1rem;
  color: var(--accent-dark);
  font-size: 0.72rem;
}

.recreo-activity-list {
  counter-reset: recreo-activity;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.2rem clamp(2rem, 6vw, 6rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.recreo-activity-list li {
  counter-increment: recreo-activity;
  position: relative;
  padding-left: 2.4rem;
}

.recreo-activity-list li::before {
  content: counter(recreo-activity, decimal-leading-zero);
  position: absolute;
  top: 0.1rem;
  left: 0;
  color: var(--accent-dark);
  font-size: 0.72rem;
}

.recreo-activity-list h3 {
  margin: 0 0 0.45rem;
  font-size: 1rem;
}

.recreo-activity-list p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.recreo-visuals {
  background: #111517;
  color: rgba(255, 255, 255, 0.76);
}

.recreo-visuals .section-label {
  color: var(--accent-inferno-light);
}

.recreo-visuals h2 {
  color: #ffffff;
}

.recreo-visuals .recreo-section-head > p:last-child {
  color: rgba(255, 255, 255, 0.66);
}

.recreo-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.recreo-gallery figure {
  margin: 0;
  overflow: hidden;
  background: #090b0c;
}

.recreo-gallery img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.recreo-closing blockquote {
  max-width: 58rem;
  margin: 0 0 2rem;
  padding: 0;
  border: 0;
  color: var(--ink);
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  font-style: normal;
  line-height: 1.45;
}

.recreo-closing > p {
  max-width: 52rem;
  color: var(--muted);
}

@media screen and (max-width: 980px) {
  .recreo-intro {
    grid-template-columns: 1fr;
  }

  .recreo-workshop-image {
    order: -1;
  }

  .recreo-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media screen and (max-width: 700px) {
  .recreo-method-grid,
  .recreo-activity-list {
    grid-template-columns: 1fr;
  }

  .recreo-gallery {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   Language switch and homepage affiliation
   -------------------------------------------------------------------------- */

.language-switch {
  display: inline-flex;
  align-items: center;
  margin-left: 0.55rem;
  padding: 0.15rem;
  border: 1px solid rgba(16, 19, 21, 0.16);
  border-radius: 999px;
  background: rgba(16, 19, 21, 0.035);
  font-size: 0.67rem;
  font-weight: 650;
  letter-spacing: 0.025em;
  line-height: 1;
}

.language-switch span {
  display: none;
}

.language-switch a {
  min-width: 2rem;
  padding: 0.34rem 0.48rem;
  border-radius: 999px;
  color: var(--muted);
  text-align: center;
  transition: background-color 160ms ease, color 160ms ease;
}

.language-switch a:first-of-type:hover,
.language-switch a:first-of-type:focus-visible,
.language-switch a:first-of-type[aria-current="page"] {
  background: var(--accent-inferno);
  color: #ffffff;
}

.language-switch a:last-of-type:hover,
.language-switch a:last-of-type:focus-visible,
.language-switch a:last-of-type[aria-current="page"] {
  background: var(--accent-viridis);
  color: #ffffff;
}

.home-site-header .language-switch {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(0, 0, 0, 0.2);
}

.home-site-header .language-switch a {
  color: rgba(255, 255, 255, 0.72);
}

.home-affiliation {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: fit-content;
  margin-top: 1.35rem;
}

.home-affiliation-logo {
  display: block;
  flex: 0 0 auto;
  width: 3.85rem;
  opacity: 0.88;
}

.home-affiliation-logo:hover,
.home-affiliation-logo:focus-visible {
  opacity: 1;
}

.home-affiliation-logo img {
  display: block;
  width: 100%;
  height: auto;
}

.home-affiliation p {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.79rem;
  line-height: 1.28;
}

.home-affiliation strong,
.home-affiliation span {
  display: block;
}

.home-affiliation strong {
  margin-bottom: 0.16rem;
  font-weight: 580;
}

.home-affiliation span {
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.71rem;
}

@media screen and (max-width: 900px) {
  .language-switch {
    margin: 0.5rem 0 0;
  }

  .language-switch a {
    min-width: 2.15rem;
    padding: 0.38rem 0.5rem;
    font-size: 0.74rem;
  }
}

@media screen and (max-width: 520px) {
  .home-affiliation-logo {
    width: 3.45rem;
  }

  .home-affiliation p {
    font-size: 0.74rem;
  }
}


/* Palette consistency across page labels and inherited Story components. */
.research-directory a,
.works-directory a,
.video-filter,
.course-link span:first-child {
  color: var(--accent-viridis);
}

.research-directory a:hover,
.research-directory a:focus-visible,
.works-directory a:hover,
.works-directory a:focus-visible,
.video-filter:hover,
.video-filter:focus-visible,
.video-filter[aria-pressed="true"] {
  color: var(--accent-inferno);
}

.site-footer a:hover,
.site-footer a:focus-visible,
ul.icons a:hover,
ul.icons a:focus-visible {
  color: var(--accent-inferno-light) !important;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="search"]:focus,
input[type="url"]:focus,
select:focus,
textarea:focus {
  border-color: var(--accent-viridis) !important;
  box-shadow: 0 0 0 1px var(--accent-viridis) !important;
}
