:root {
  --ink: #28181f;
  --green: #88bc40;
  --brown: #55301f;
  --gold: #efbe1a;
  --paper: #f1f6e4;
  --line: #55301f;
}

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

html,
body {
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--green);
  color: var(--ink);
  font: 400 18px/1.6 Barlow, system-ui, sans-serif;
}

h2, h4,
.btn b {
  font-family: 'Pirata One', Impact, serif;
  font-weight: 400;
  line-height: 0.95;
  margin: 0;
}

.mono {
  font-family: 'Fira Code', ui-monospace, monospace;
  font-weight: 500;
}

a { color: var(--gold); }
a:hover { color: var(--green); }

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

.track {
  display: flex;
  width: 300vw;
  height: 100dvh;
  transform: translateX(-100vw);
  transition: transform 0.7s cubic-bezier(0.75, 0, 0.2, 1);
}

.track.l { transform: translateX(0); }
.track.r { transform: translateX(-200vw); }

.home,
.side {
  width: 100vw;
  height: 100%;
  flex: none;
  overflow-y: auto;
  overflow-x: hidden;
}

.wipe {
  position: fixed;
  top: -3%;
  bottom: -5%;
  left: 0;
  width: 34vw;
  background: var(--gold);
  transform: translateX(120vw) skewX(-14deg);
  z-index: 20;
  pointer-events: none;
}

.wipe.goR { animation: sweepL 0.7s cubic-bezier(0.75, 0, 0.2, 1); }
.wipe.goL { animation: sweepR 0.7s cubic-bezier(0.75, 0, 0.2, 1); }

@keyframes sweepL {
  from { transform: translateX(110vw) skewX(-14deg); }
  to   { transform: translateX(-50vw) skewX(-14deg); }
}

@keyframes sweepR {
  from { transform: translateX(-50vw) skewX(-14deg); }
  to   { transform: translateX(110vw) skewX(-14deg); }
}

@keyframes bob {
  50% { transform: translateY(-8px) rotate(-1.2deg); }
}

@keyframes float {
  50% { translate: 0 -7px; }
}

@keyframes in {
  from {
    opacity: 0;
    translate: 0 24px;
  }
}

.home {
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 6vh, 64px);
  padding: 0;
  background: linear-gradient(to bottom, #88bc40 0%, #4c9a4e 100%);
}

.stage,
.plaque {
  position: relative;
  z-index: 1;
}

.stage {
  flex: none;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 6vw;
  margin-top: 1%;
  padding: calc(env(safe-area-inset-top, 0px) + 12vh) 4vw 0;
}

.mid {
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: bob 5s ease-in-out infinite;
}

.typo {
  display: block;
  width: auto;
  height: min(17vh, 170px);
  max-width: 50vw;
  aspect-ratio: 2.15;
  margin-top: -5vh;
  background: var(--ink);
  -webkit-mask: var(--src) center / contain no-repeat;
          mask: var(--src) center / contain no-repeat;
}

.mark {
  display: block;
  width: auto;
  height: min(28vh, 270px);
  max-width: 26vw;
  object-fit: contain;
}

.lg {
  display: block;
  flex: none;
  height: var(--h);
  aspect-ratio: var(--ar);
  background: currentColor;
  -webkit-mask: var(--src) center / contain no-repeat;
          mask: var(--src) center / contain no-repeat;
}

.nan { --ar: 2.145; --h: 28px; }
.ugr { --ar: 0.8;   --h: 54px; }
.cas { --ar: 1.596; --h: 52px; }

.plaque {
  align-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: auto;
  padding: 14px 34px 16px;
  background: var(--ink);
  color: var(--paper);
  transform: rotate(-1deg);
  animation: float 4.5s ease-in-out -2s infinite;
  clip-path: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px);
}

.plaque .cap {
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.plaque .row {
  display: flex;
  align-items: center;
  gap: clamp(22px, 3vw, 40px);
}

.plaque .lg { opacity: 0.8; }

.plaque .sep {
  width: 2px;
  height: 34px;
  background: var(--brown);
}

.menu {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.menu.l { align-items: flex-end; }
.menu.r { align-items: flex-start; }

.btn {
  display: grid;
  gap: 2px;
  width: min(300px, 100%);
  padding: 16px 22px 14px;
  border: 0;
  cursor: pointer;
  background: var(--ink);
  color: var(--paper);
  font: inherit;
  transition: transform 0.25s, background 0.25s;
  animation: float 4.5s ease-in-out infinite;
}

.menu.l .btn {
  text-align: right;
  clip-path: polygon(18px 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%, 0 18px);
  transform: rotate(-1.2deg);
}

.menu.r .btn {
  text-align: left;
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
  transform: rotate(1.2deg);
}

.menu .btn:nth-child(2) { margin-inline: 18px; }

.btn i {
  font-style: normal;
  color: var(--gold);
  font-size: 14px;
}

.btn b {
  font-size: 36px;
  color: var(--green);
}

.btn span {
  font: 500 13px 'Fira Code', monospace;
  opacity: 0.75;
}

.menu .btn:hover { background: var(--brown); }
.menu.l .btn:hover { transform: translateX(12px); }
.menu.r .btn:hover { transform: translateX(-12px); }

.menu.l .btn:nth-child(1) { animation-delay: -0.4s; }
.menu.l .btn:nth-child(2) { animation-delay: -1.9s; }
.menu.l .btn:nth-child(3) { animation-delay: -3.2s; }
.menu.r .btn:nth-child(1) { animation-delay: -1.2s; }
.menu.r .btn:nth-child(2) { animation-delay: -2.6s; }
.menu.r .btn:nth-child(3) { animation-delay: -3.9s; }

.side {
  background: var(--ink);
  color: var(--paper);
  --line: var(--brown);
}

.side.r {
  background: #33201a;
  --line: #88bc4055;
}

.bar {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 18px;
  background: inherit;
  padding: 16px 6vw;
  padding-top: calc(16px + env(safe-area-inset-top, 0px));
  border-bottom: 3px solid var(--line);
}

.side.l .bar {
  flex-direction: row-reverse;
  justify-content: space-between;
}

.back {
  border: 0;
  cursor: pointer;
  background: var(--gold);
  color: var(--ink);
  font: 500 28px 'Fira Code', monospace;
  padding: 6px 22px;
  transition: transform 0.2s, background 0.2s;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}

.back:hover { background: var(--green); }
.side.l .back:hover { transform: translateX(6px); }
.side.r .back:hover { transform: translateX(-6px); }

.ptitle {
  font-size: clamp(44px, 8vw, 84px);
  color: var(--green);
}

.side.r .ptitle { color: var(--gold); }

.page {
  max-width: 960px;
  margin: 0 auto;
  padding: 34px 6vw 90px;
  animation: in 0.5s both;
}

.page p { max-width: 62ch; }

.lead {
  font: 400 clamp(30px, 4.5vw, 46px) / 1.05 'Pirata One', serif;
  color: var(--gold);
  max-width: 22ch;
  margin: 0 0 22px;
}

.tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 22px;
}

.tabs button {
  font: 500 16px 'Fira Code', monospace;
  background: transparent;
  color: var(--green);
  border: 2px solid var(--green);
  padding: 10px 18px;
  cursor: pointer;
}

.tabs button[aria-selected=true] {
  background: var(--green);
  color: var(--ink);
}

.slot {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 16px;
  padding: 16px 0;
  border-top: 2px solid var(--line);
  align-items: baseline;
}

.slot time { color: var(--gold); }

.slot h4 {
  font-size: 32px;
  color: var(--paper);
}

.slot p {
  margin: 2px 0 0;
  opacity: 0.8;
  font-size: 16px;
}

.tag {
  font-size: 14px;
  color: var(--ink);
  background: var(--paper);
  padding: 2px 10px;
}

.people {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.people .col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.card {
  background: var(--paper);
  color: var(--ink);
  border: 3px solid var(--green);
}

.avatar {
  aspect-ratio: 1.3;
  background: var(--brown);
  display: grid;
  place-items: center;
  overflow: hidden;
  font: 400 80px 'Pirata One', serif;
  color: var(--gold);
}

.avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.people .card .avatar:has(img) { background: var(--paper); }

.card:nth-child(3n+2) .avatar {
  background: var(--ink);
  color: var(--green);
}

.card:nth-child(3n) .avatar {
  background: var(--gold);
  color: var(--ink);
}

.card:nth-child(n) .avatar:has(img) {
  background: none;
  aspect-ratio: auto;
  display: block;
}

.card .avatar img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.card .b { padding: 12px 16px 16px; }

.card h4 { font-size: 30px; }

.role {
  color: var(--brown);
  font-size: 14px;
  margin: 2px 0 8px;
}

.card button {
  all: unset;
  cursor: pointer;
  text-decoration: underline;
  font-weight: 600;
  font-size: 16px;
}

.card button:hover { color: var(--brown); }
.card button:focus-visible { outline: 3px solid var(--brown); }

.bio {
  display: none;
  font-size: 16px;
  margin: 8px 0 0;
}

.card.open .bio { display: block; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.ph {
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: flex-end;
  padding: 12px;
  font-size: 15px;
  background: var(--green);
  color: var(--ink);
}

.ph:nth-child(3n+2) {
  background: var(--brown);
  color: var(--gold);
}

.ph:nth-child(3n) { background: var(--gold); }

.ph.next {
  background: transparent;
  color: var(--green);
  border: 2px dashed var(--green);
}

details {
  border-top: 2px solid var(--line);
  padding: 6px 0;
}

summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 12px 0;
}

summary::-webkit-details-marker { display: none; }

summary b {
  font: 400 54px 'Pirata One', serif;
  color: var(--gold);
}

summary span { opacity: 0.8; }

summary::after {
  content: "+";
  margin-left: auto;
  font: 500 28px 'Fira Code', monospace;
  color: var(--green);
}

details[open] summary::after { content: "–"; }

details .grid { margin: 6px 0 20px; }

dt {
  color: var(--green);
  margin-top: 14px;
}

dd {
  margin: 0;
  font-size: 22px;
}

.org-cap {
  margin: 0 0 22px;
  font-size: 16px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.orgs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.org {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}

.org-logo {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 4 / 3;
  margin-bottom: 8px;
  border: 3px solid var(--gold);
  color: var(--green);
  clip-path: polygon(18px 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%, 0 18px);
}

.org-logo .lg { --h: 45%; }
.org-logo .nan { --h: 22%; }

.org h3 {
  margin: 0;
  font: 400 40px/1 'Pirata One', serif;
  color: var(--paper);
}

.org-mail {
  font-size: 15px;
  word-break: break-all;
}

.org-mail:hover { color: var(--gold); }

.socials {
  display: flex;
  gap: 12px;
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}

.socials a {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  color: var(--gold);
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.socials a:hover {
  background: var(--gold);
  color: var(--ink);
  transform: translateY(-3px);
}

.socials svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.socials svg .fill,
.socials svg path:only-child {
  fill: currentColor;
  stroke: none;
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 34px;
}

.fact {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px 18px;
  border: 3px solid var(--gold);
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
}

.fact .k {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
}

.fact .v {
  font: 400 32px/1 'Pirata One', serif;
  color: var(--gold);
}

@media (max-width: 820px) {
  .stage {
    grid-template-columns: 1fr 1fr;
    align-content: center;
    gap: 14px;
    padding: calc(env(safe-area-inset-top, 0px) + 5vh + 18px) 16px 0;
  }

  .mid {
    grid-column: 1 / -1;
    order: -1;
    margin-bottom: 6px;
  }

  .typo { height: min(8vh, 70px); max-width: 60vw; margin-top: -2.2vh; }
  .mark { height: min(17vh, 150px); max-width: 44vw; }

  .menu { gap: 10px; }

  .menu.l,
  .menu.r { align-items: stretch; }

  .btn,
  .menu .btn:nth-child(2) {
    width: 100%;
    margin-inline: 0;
    padding: 12px 12px 10px;
  }

  .menu.l .btn,
  .menu.r .btn { text-align: left; }

  .btn b { font-size: 27px; }
  .btn span { display: none; }

  .menu.l .btn:hover,
  .menu.r .btn:hover { transform: none; }

  .plaque { padding: 12px 20px 14px; max-width: 94vw; }
  .plaque .row { gap: 18px; }
  .plaque .sep { height: 24px; }
  .nan { --h: 18px; }
  .ugr { --h: 34px; }
  .cas { --h: 34px; }

  .slot { grid-template-columns: 68px 1fr; }

  .slot .tag {
    grid-column: 2;
    justify-self: start;
  }

  .bar {
    padding-left: 18px;
    padding-right: 18px;
  }

  .page { padding: 26px 18px 80px; }

  summary b { font-size: 44px; }

  .facts { grid-template-columns: 1fr; }
  .orgs { gap: 14px; }
  .org h3 { font-size: 30px; }
  .org-mail { font-size: 12px; }
  .socials { gap: 8px; }
  .socials a { width: 38px; height: 38px; }
}

@media (max-width: 360px) {
  .btn b { font-size: 23px; }
}

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