@font-face {
  font-family: Montserrat;
  src: url("../fonts/montserrat-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "DM Sans";
  src: url("../fonts/dm-sans-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "DM Sans";
  src: url("../fonts/dm-sans-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #170749;
  --purple: #3c14cf;
  --violet: #6342f0;
  --muted: #504866;
  --paper: #f3edff;
  --line: #38247b2b;
  --radius: 24px;
  --gutter: clamp(20px, 4vw, 56px);
  --display: Montserrat, Arial, sans-serif;
  --body: "DM Sans", Arial, sans-serif;
  --glass: #ffffffbb;
  --button-wash: linear-gradient(155deg, #fbf9ff, #e8e3f9 52%, #d4cbf4);
  --button-shadow: inset 0 1px 0 #ffffffbb, 0 6px 14px #3c14cf22;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--paper); scroll-padding-top: 28px; }
body {
  margin: 0;
  min-width: 280px;
  isolation: isolate;
  color: var(--ink);
  font: 400 1rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background: var(--paper) url("./folds-desktop.webp") center / cover no-repeat;
  content: "";
}

body:has(.lightbox[open]) { overflow: hidden; }
a { color: inherit; text-underline-offset: .2em; }
button { font: inherit; }
img { display: block; width: 100%; height: auto; }
figure, p, h1, h2, h3 { margin: 0; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--purple); outline-offset: 4px; }
::selection { color: var(--ink); background: #dcd2ff; }

.skip {
  position: fixed;
  z-index: 2;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  transform: translateY(-160%);
  border-radius: 10px;
  background: white;
}

.skip:focus { transform: none; }
.icon-definitions { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.1em; height: 1.1em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.wrap { width: min(100% - var(--gutter) * 2, 1192px); margin-inline: auto; }
.site-header { padding-top: clamp(12px, 1.7vw, 24px); }

.nav-panel {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  min-height: 69px;
  padding: 10px 14px 10px 24px;
  border: 1px solid #fff;
  border-radius: 20px;
  background: #ffffffe0;
  box-shadow: 0 7px 22px #2811620a;
}

.wordmark {
  width: fit-content;
  font: 700 clamp(.95rem, 1.5vw, 1.16rem)/1.15 var(--display);
  letter-spacing: -.055em;
  text-decoration: none;
}

.wordmark span { color: var(--purple); }
.primary-nav, .footer-bottom nav { display: flex; align-items: center; gap: clamp(14px, 2.1vw, 30px); }
.primary-nav a, .footer-bottom a { color: var(--muted); text-decoration: none; }
.primary-nav a { padding-block: 11px; font-size: .94rem; font-weight: 500; }
.primary-nav a:hover, .footer-bottom a:hover { color: var(--purple); text-decoration: underline; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  min-height: 52px;
  width: fit-content;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color .2s, box-shadow .2s, color .2s;
}

.button .icon, .text-link .icon, .social-links .icon { transition: transform .2s; }
.button:hover .icon, .text-link:hover .icon, .social-links a:hover .icon { transform: translate(2px, -2px); }
.hero-actions .button-primary:hover .icon { transform: translateY(3px); }
.button-primary { color: #fff; background: var(--purple); box-shadow: inset 0 1px 0 #ffffff4d, 0 8px 22px #3c14cf35; }
.button-primary:hover { background: #4f2bdf; box-shadow: inset 0 1px 0 #ffffff4d, 0 8px 22px #3c14cf56; }
.button-soft { border-color: #fff9; background: var(--button-wash); box-shadow: var(--button-shadow); }
.button-soft:hover { box-shadow: inset 0 1px 0 white, 0 8px 22px #3c14cf40; }
.button-white { color: var(--purple); background: #fff; }
.button-white:hover { background: #eee8ff; }
.header-cta { justify-self: end; min-height: 46px; padding-inline: 15px; font-size: .9rem; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .82fr);
  align-items: center;
  gap: clamp(36px, 6.6vw, 104px);
  padding: clamp(45px, 6vw, 90px) 0 clamp(54px, 6.5vw, 100px);
}

.hero-copy { padding-left: clamp(0px, 1.7vw, 26px); }
.location { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; color: var(--muted); font-weight: 500; }
.location span { width: 8px; height: 8px; border-radius: 50%; background: var(--violet); box-shadow: 0 0 0 4px #6342f01d; }
.hero h1 { font: 700 clamp(3.5rem, 8.7vw, 8.3rem)/.88 var(--display); letter-spacing: -.088em; color: var(--purple); }
.hero h1 span { color: var(--violet); }
.hero-role { margin-top: 28px; color: var(--ink); font-size: clamp(1.05rem, 2.05vw, 1.5rem); font-weight: 500; line-height: 1.3; }
.hero-description { max-width: 39ch; margin-top: 13px; color: var(--muted); font-size: clamp(1rem, 1.6vw, 1.13rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 25px; }

.hero-portrait {
  position: relative;
  max-width: 492px;
  width: 100%;
  justify-self: end;
  padding: 9px;
  border: 1px solid white;
  border-radius: 29px;
  background: linear-gradient(151deg, #ffffffee, #e4dafcdd);
  box-shadow: 0 22px 65px #30237128;
}

.hero-portrait img { aspect-ratio: 1 / 1.09; object-fit: cover; object-position: 50% 35%; border-radius: 20px; }
.hero-portrait figcaption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  padding: 10px 11px 4px;
  font-size: .88rem;
  font-weight: 500;
}

.hero-portrait figcaption span { color: var(--muted); text-align: right; font-weight: 400; }
.section, .site-footer { border-top: 1px solid var(--line); }
.section { padding-block: clamp(42px, 6.3vw, 88px); }
.section h2, .site-footer h2 { font: 700 clamp(2.05rem, 4.8vw, 4.1rem)/1.04 var(--display); letter-spacing: -.067em; text-wrap: balance; }
.section h3 { font: 700 clamp(1.06rem, 2vw, 1.42rem)/1.22 var(--display); letter-spacing: -.035em; }
.section-heading { margin-bottom: clamp(22px, 3vw, 38px); }
.section-label, .media-label { margin-bottom: 12px; font-size: .92rem; font-weight: 500; }
.section-label { color: var(--purple); }
.text-link { display: inline-flex; width: fit-content; align-items: center; gap: 9px; min-height: 44px; color: var(--purple); font-weight: 500; }
.story-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 7.5vw, 110px); align-items: start; }
.section-intro h2 { max-width: 13ch; }
.section-intro .text-link { margin-top: 14px; }

.timeline { list-style: none; border-top: 1px solid var(--line); }
.timeline li {
  display: grid;
  grid-template-columns: minmax(110px, .38fr) minmax(0, 1fr);
  align-items: baseline;
  gap: 11px 18px;
  padding-block: 19px;
  border-bottom: 1px solid var(--line);
}

.time-label { color: var(--purple); font-weight: 500; }
.timeline h3 a { text-decoration: none; }
.timeline h3 a:hover { text-decoration: underline; }
.timeline h3 .icon { width: .75em; height: .75em; color: var(--purple); }
.timeline p, .roles li span, .journal > p:not(.media-label) { color: var(--muted); }
.timeline p { margin-top: 6px; }

.community-layout, .media-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(16px, 3.8vw, 54px); }
.community-feature, .community-roles, .media-card {
  overflow: hidden;
  border: 1px solid white;
  border-radius: var(--radius);
  background: var(--glass);
  box-shadow: 0 12px 35px #2b145710;
}

.community-feature img { aspect-ratio: 16 / 10; object-fit: cover; object-position: 50% 43%; }
.community-feature figcaption, .community-roles, .media-card { padding: clamp(21px, 3.2vw, 42px); }
.community-feature figcaption { display: grid; gap: 7px; }
.community-feature time, .roles time { color: var(--purple); font-size: .88rem; font-weight: 500; }
.community-feature p { color: var(--muted); }
.roles { list-style: none; margin: 14px 0 4px; }
.roles li { display: grid; gap: 1px; padding: 11px 0; border-top: 1px solid var(--line); }
.roles li strong { font-weight: 700; }
.roles-source { font-size: .87rem; }
.roles-source summary { width: fit-content; min-height: 38px; padding-block: 7px; color: var(--muted); cursor: pointer; }
.roles-source img { margin-top: 6px; border: 1px solid var(--line); border-radius: 10px; }

.media-card { display: flex; flex-direction: column; justify-content: center; min-height: 236px; }
.media-card h3 { font-size: clamp(1.48rem, 3vw, 2.6rem); line-height: 1.12; letter-spacing: -.055em; }
.podcast { position: relative; isolation: isolate; align-items: flex-start; color: #fff; background: linear-gradient(125deg, #3510b5, #5230e3 73%, #6848ef); }
.podcast h3 { max-width: 16ch; }
.podcast .media-label { color: #f2ebff; }
.podcast .button { margin-top: 20px; min-height: 44px; }
.play-mark { position: absolute; z-index: -1; right: -32px; bottom: -48px; display: grid; place-items: center; width: 235px; aspect-ratio: 1; border: 1px solid #fff3; border-radius: 50%; background: #fff1; color: #ffffff27; }
.play-mark .icon { width: 86px; height: 86px; }
.journal > p:not(.media-label) { max-width: 39ch; margin-top: 11px; }
.journal .media-label { color: var(--purple); }
.journal .text-link { margin-top: 8px; }

.gallery-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px 16px; }
.gallery-item { min-width: 0; }
.gallery-photo { position: relative; display: block; overflow: hidden; border: 1px solid white; border-radius: 17px; background: #e8def9; }
.gallery-photo img { aspect-ratio: 4 / 3; object-fit: cover; object-position: center 35%; transition: transform .28s ease; }
.gallery-item:nth-child(5) img { object-position: center 55%; }
.gallery-item:nth-child(6) img { object-position: center 37%; }
.gallery-photo:hover img { transform: scale(1.04); }
.photo-arrow { position: absolute; right: 8px; bottom: 8px; display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid #fff; border-radius: 11px; color: var(--purple); background: #f9f5ffed; }
.gallery-item figcaption { padding: 7px 1px 0; color: var(--muted); font-size: .88rem; }

.footer-content { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 26px; padding: clamp(35px, 6vw, 75px) 0 36px; }
.footer-content p { margin-top: 10px; color: var(--muted); }
.footer-content .button { margin-top: 19px; }
.social-links { display: flex; flex-wrap: wrap; gap: 8px; }
.social-links a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 11px; border: 1px solid #fff; border-radius: 12px; color: var(--purple); background: var(--glass); font-size: .92rem; text-decoration: none; }
.social-links a:hover { background: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 18px; padding: 16px 0 25px; border-top: 1px solid var(--line); color: var(--muted); font-size: .86rem; }
.footer-bottom nav { flex-wrap: wrap; gap: 4px 14px; }
.footer-bottom a { display: inline-flex; align-items: center; min-height: 32px; }

.lightbox {
  position: fixed;
  width: min(1100px, calc(100% - 28px));
  max-width: none;
  max-height: calc(100% - 26px);
  padding: 0;
  overflow: auto;
  border: 1px solid #ffffff73;
  border-radius: 20px;
  color: #fff;
  background: #1b0d37;
}

.lightbox::backdrop { background: #160b2ce6; }
.lightbox-inner { position: relative; display: grid; justify-items: center; gap: 12px; padding: 15px; }
.lightbox figure { display: grid; justify-items: center; gap: 8px; width: 100%; }
.lightbox figure img { width: auto; max-width: 100%; max-height: min(71vh, calc(100dvh - 157px)); object-fit: contain; border-radius: 9px; }
.lightbox figcaption { text-align: center; }
.lightbox-close { position: absolute; top: 22px; right: 22px; }
.lightbox-nav { display: flex; align-items: center; gap: 14px; }
.lightbox-nav[hidden] { display: none; }
.icon-button { display: grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0; border: 1px solid #ffffff72; border-radius: 11px; color: #fff; background: #291753ed; cursor: pointer; }
.icon-button:hover { background: #522da4; }
.icon-button:focus-visible { outline-color: #fff; }

@media (max-width: 950px) {
  .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-content { grid-template-columns: 1fr; }
}

@media (max-width: 760px), (orientation: portrait) {
  body::before { background-image: url("./folds-mobile.webp"); }
}

@media (max-width: 760px) {
  .nav-panel { grid-template-columns: 1fr auto; gap: 3px 12px; padding: 10px 12px 3px; border-radius: 16px; }
  .wordmark { padding-left: 2px; }
  .header-cta { min-height: 40px; padding-inline: 10px; border-radius: 10px; }
  .primary-nav { grid-column: 1 / -1; grid-row: 2; justify-content: space-between; gap: 8px; padding-inline: 2px; }
  .primary-nav a { min-height: 44px; font-size: .86rem; }
  .hero { grid-template-columns: 1fr; gap: 29px; padding-top: 41px; }
  .hero-copy { padding: 0; }
  .hero h1 { font-size: clamp(3.65rem, 12vw, 6.55rem); }
  .hero-portrait { max-width: 540px; justify-self: start; }
  .hero-portrait img { aspect-ratio: 1 / .88; }
  .hero-role { margin-top: 19px; }
  .location { margin-bottom: 16px; }
  .hero-actions { margin-top: 19px; }
  .story-layout, .community-layout, .media-layout { grid-template-columns: 1fr; }
  .section-intro h2 { max-width: 19ch; }
}

@media (max-width: 620px) {
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px 11px; }
  .gallery-photo { border-radius: 12px; }
  .gallery-item figcaption { font-size: .79rem; }
  .lightbox-close { top: 18px; right: 18px; }
}

@media (max-width: 460px) {
  .hero-actions .button { min-height: 48px; padding-inline: 13px; gap: 7px; font-size: .92rem; }
}

@media (max-width: 380px) {
  :root { --gutter: 16px; }
  .header-cta { font-size: .78rem; }
  .hero h1 { font-size: clamp(3.15rem, 14.2vw, 3.65rem); }
  .hero-actions .button { min-height: 46px; padding-inline: 10px; gap: 6px; font-size: .88rem; }
  .timeline li { grid-template-columns: 1fr; gap: 3px; }
}

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

@media print {
  html { background: white; }
  body::before, .site-header, .hero-actions, .lightbox, .roles-source, .site-footer { display: none; }
}
