.project-page {
  --project-line: var(--line);
  --project-heading: "Oswald", "Arial Narrow", "Manrope", sans-serif;
}

.team-layout { width: min(var(--container), 92%); }

.project-page:has(.project-about) {
  background: linear-gradient(#0e041d, #14062a 50%, #0d031b);
}
.project-about {
  --about-panel: linear-gradient(150deg, #2e104e, #1d0a37);
  --about-outline: #59397d;
  --line-soft: #39224e;
  padding-block: var(--page-heading-gap) 26px;
}
.project-head h1 { font-size: clamp(36px, 4.65vw, 57px); }
.project-head p { margin-top: 6px; font-size: clamp(16px, 1.75vw, 21px); line-height: 1.4; }
.project-head h1, .team-benefits h2, .project-callout-title {
  font-family: var(--project-heading);
  font-weight: 700;
  line-height: 1.1;
  text-transform: uppercase;
}
.project-callout-title { font-size: clamp(22px, 2.65vw, 32px); }
.team-benefits h2 { font-size: clamp(23px, 2.4vw, 30px); }
.project-mark { position: relative; padding-left: .95em; }
.project-head .project-mark { padding-left: .75em; }
.project-mark::before {
  position: absolute;
  inset: .11em auto .07em 0;
  width: .36em;
  border-radius: 4px;
  background: var(--yellow);
  content: "";
}

.project-intro {
  display: grid;
  grid-template-columns: 46% minmax(0, 1fr);
  border-color: var(--about-outline);
  background: linear-gradient(145deg, #290e45, #1d0b35);
}
.project-intro > img { width: 100%; height: 100%; object-fit: cover; min-height: 0; min-width: 0; }
.project-intro-copy {
  position: relative;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 10px;
  padding: clamp(18px, 2.4vw, 32px);
}
.project-intro-copy::before { content: ""; position: absolute; inset: 12% auto 12% 0; border-left: 1px solid var(--about-outline); }
.project-intro h1 { font-size: clamp(29px, 4vw, 50px); line-height: 1.07; font-weight: 800; }
.project-intro h1 small { display: block; margin-bottom: 2px; font-size: 15px; text-transform: uppercase; }
.project-intro-copy strong {
  padding: 6px 16px;
  border-radius: 20px;
  background: var(--yellow);
  color: #1a1100;
  font-size: clamp(15px, 1.55vw, 19px);
  font-weight: 800;
  line-height: 1.3;
}
.project-intro-copy p { line-height: 1.4; }
.project-section { margin: clamp(24px, 2.5vw, 34px) clamp(0px, 1vw, 14px) 0; }
.project-trio {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 16px;
}
.project-readers li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-content: start;
  gap: 8px clamp(12px, 1.6vw, 22px);
}
.project-trio img { width: 44px; height: 44px; object-fit: contain; }
.project-trio h3, .project-host h3 { font-size: 20px; font-weight: 800; line-height: 1.25; }
.project-trio a:hover h3 { color: var(--yellow); }
.project-trio p, .project-host p { font-size: 15px; line-height: 1.4; }
.project-section:has(.project-readers) { margin-top: clamp(34px, 3.5vw, 48px); }
.project-readers { gap: 18px; margin-top: clamp(24px, 2.4vw, 32px); }
.project-readers strong { font-size: 18px; line-height: 1.25; }
.project-readers li + li { border-left: 1px solid var(--line-soft); padding-left: 18px; }
.project-readers img { grid-row: span 2; width: clamp(48px, 5.8vw, 72px); height: auto; aspect-ratio: 1; padding: 12px; border-radius: 13px; background: var(--about-panel); }
.project-actions { gap: 14px; }
.project-actions > a {
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 8px;
  padding: 16px;
  text-align: center;
  border: 1px solid var(--about-outline);
  border-radius: 14px;
  background: var(--about-panel);
}
.project-actions > a:hover { border-color: var(--yellow); }

.project-hosts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 12px; }
.project-host {
  display: grid;
  grid-template-columns: 48% minmax(0, 1fr);
  min-height: clamp(208px, 21vw, 260px);
  border: 1px solid var(--about-outline);
  border-radius: 14px;
  background: var(--about-panel);
}
.project-host img {
  width: min(100%, 250px);
  height: auto;
  place-self: center;
  border-radius: 12px;
}
.project-host-copy { align-self: center; padding: 12px; }
.project-host h3 { max-width: min-content; font-size: clamp(21px, 2.3vw, 28px); line-height: 1.08; }
.project-host-copy strong { display: block; margin-block: 8px 6px; color: var(--yellow); }

.project-collab {
  position: relative;
  border-top: 1px solid var(--line-soft);
  margin-top: 26px;
  padding: clamp(30px, 3vw, 40px) 22px;
  min-height: clamp(190px, 20vw, 245px);
  scroll-margin-top: 82px;
}
.project-collab::before {
  position: absolute;
  inset: 0 0 0 auto;
  width: 60%;
  background: url("/static/img/project-seats.jpg") right bottom / contain no-repeat;
  mask-image: linear-gradient(90deg, transparent, #000 28%);
  content: "";
  pointer-events: none;
}
.project-collab > div { position: relative; max-width: 45%; }
.project-collab h2, .project-join h2 { line-height: 1.25; }
.project-collab p { margin: 15px 0 12px; max-width: 38ch; font-size: 17px; }
.project-cta { display: inline-flex; align-items: center; gap: 15px; border-bottom: 2px solid; padding-bottom: 4px; color: var(--yellow); font-weight: 800; }
.project-cta:hover { color: #ffe084; }
.project-cta span { font-size: 22px; line-height: 1; }
.project-join {
  display: grid;
  grid-template-columns: 51% minmax(0, 1fr);
  gap: clamp(24px, 3.6vw, 48px);
  align-items: center;
  margin-top: 16px;
  padding-block: clamp(14px, 1.5vw, 21px);
  border-top: 1px solid var(--line-soft);
}
.project-join img { width: 100%; height: auto; border-radius: 16px; }
.project-join > div { display: grid; justify-items: start; gap: 18px; }
.project-join p { max-width: 44ch; font-size: 17px; }

.project-contacts { display: flex; align-items: center; gap: clamp(14px, 4vw, 54px); border-top: 1px solid var(--line-soft); margin-top: 24px; padding-top: 18px; }
.project-contacts h2 { font-size: clamp(20px, 2.35vw, 29px); }
.project-mail { display: flex; align-items: center; gap: 14px; min-width: 0; }
.project-mail a { font-weight: 800; overflow-wrap: anywhere; }
.project-mail a:hover { color: var(--yellow); }
.project-mail p { font-size: 13px; }
.project-socials { margin-left: auto; padding-left: clamp(14px, 4vw, 54px); border-left: 1px solid var(--line-soft); display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.project-socials h3 { font-size: 17px; margin-right: min(2vw, 20px); }
.project-socials .soc { border: 1.5px solid var(--line); border-radius: 12px; background: rgba(60, 22, 100, .4); display: grid; place-content: center; min-width: 50px; height: 36px; }
.project-socials .soc img { width: 23px; height: 20px; object-fit: contain; }

.idea-dialog {
  width: min(90vw, 1080px);
  max-width: none;
  max-height: calc(100dvh - 32px);
  padding: 0;
  color: inherit;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--bg-2);
  box-shadow: 0 0 24px var(--glow);
  overflow: auto;
  scrollbar-color: #b34dac #260d2b;
  scrollbar-width: thin;
}
.idea-dialog::backdrop { background: #100815cc; backdrop-filter: blur(6px); }
.idea-dialog[open]:not(:modal) { position: fixed; inset: 0; z-index: 100; box-shadow: 0 0 0 100vmax #100815eb; }
.project-page:has(.idea-dialog[open]) { overflow: hidden; }
.idea-panel {
  position: relative;
  padding: clamp(25px, 4vw, 48px) clamp(23px, 3vw, 38px) clamp(28px, 4vw, 48px) 34%;
  background: linear-gradient(90deg, transparent 27%, var(--bg-2) 35%, transparent 58%),
    url("/static/img/project-chair.jpg") left bottom / 34% auto no-repeat,
    radial-gradient(ellipse at bottom right, var(--panel-a), var(--bg-2) 65%);
}
.idea-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 44px;
  height: 44px;
  display: grid;
  place-content: center;
  border-radius: 50%;
  font-family: system-ui, sans-serif;
  font-size: 36px;
  font-weight: 300;
  line-height: 1;
}
.idea-close:hover { background: #5a1c58; }
.idea-content h2 { font-size: clamp(18px, 3.5vw, 40px); line-height: 1.08; font-weight: 800; padding-left: .65em; }
.idea-content h2::before { bottom: auto; height: .83em; width: .33em; }
.idea-content > p { margin: clamp(20px, 2vw, 26px) 0 20px; font-size: clamp(14px, 1.45vw, 17px); line-height: 1.4; }
.project-form { display: grid; gap: 14px; min-width: 0; }
.project-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; }
.project-field { display: grid; align-content: start; gap: 4px; min-width: 0; }
.project-field label, .project-form legend { font-weight: 800; line-height: 1.18; }
.project-field input, .project-field textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--project-line);
  border-radius: 9px;
  padding: 7px 11px;
  background: #54295484;
  color: var(--text);
  font: inherit;
  line-height: 1.25;
}
.project-field input { height: auto; min-height: 33px; }
.project-field textarea { display: block; resize: vertical; }
.project-field :is(input, textarea)::placeholder { color: #ebdcec; opacity: 1; }
.project-form :is(.has-error input, .has-error textarea, .has-error label:has([type="radio"]), .has-error .team-role) { border-color: #ff989f; }
.project-error { color: #ffb3b8; font-size: 14px; line-height: 1.35; margin-top: 4px; }
.project-form fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.project-form legend { padding: 0; margin-bottom: 5px; }
.project-form :is([type="checkbox"], [type="radio"]) {
  appearance: none;
  display: grid;
  place-content: center;
  margin: 0;
  width: 17px;
  height: 17px;
  border: 1px solid #ebcae6;
  border-radius: 3px;
  background: #200a24;
  cursor: pointer;
}
.project-form [type="radio"] { border-radius: 50%; }
.project-form [type="checkbox"]:checked::after {
  content: "";
  width: 8px;
  height: 5px;
  border: solid var(--yellow);
  border-width: 0 0 2px 2px;
  transform: translateY(-1px) rotate(-45deg);
}
.project-form [type="radio"]:checked::after {
  content: "";
  background: var(--yellow);
  border-radius: 50%;
  width: 8px;
  height: 8px;
}
.project-form input[aria-invalid="true"] { border-color: #ff989f; }
.project-consent { display: grid; grid-template-columns: 20px 1fr; gap: 8px 14px; align-items: baseline; width: fit-content; cursor: pointer; }
.project-consent input { align-self: center; }
.project-consent a { text-decoration: underline; text-underline-offset: 3px; }
.project-consent a:hover { color: var(--yellow); }
.project-submit { width: fit-content; max-width: 100%; min-height: 55px; gap: 17px; font-size: clamp(16px, 1.95vw, 24px); font-weight: 800; padding: 8px 28px; box-shadow: none; white-space: normal; }
.project-submit span { font-size: 1.4em; font-weight: 500; line-height: 1; }
.idea-content .project-form { gap: 23px; }
.idea-content .project-form > .project-field > label { margin-block: -3px 6px; }
.idea-content .project-fields { gap: 13px 19px; }
.idea-content .project-field input, .idea-content .project-field textarea { padding: 10px 16px; border-radius: 13px; }
.idea-content .project-field textarea { min-height: 96px; }
.idea-content .project-field input { min-height: 48px; }
.idea-content .project-fields .project-field { position: relative; }
.idea-content .project-fields label { position: absolute; left: 16px; top: 13px; color: #ebdcec; font-weight: 500; pointer-events: none; }
.idea-content .project-fields .project-field:has(input:focus, input:not(:placeholder-shown)) label {
  top: -.55em;
  padding-inline: 4px;
  font-size: .75em;
  background: #32132f;
}
.idea-content .project-submit { min-height: 45px; padding-inline: 18px; font-size: clamp(14px, 1.45vw, 17px); }

.team-stage { padding: 8px 0 28px; }
.team-intro::after {
  content: "";
  display: block;
  margin-top: 10px;
  aspect-ratio: 1024 / 531;
  background: url("/static/img/project-audience.jpg") center / cover;
  mask-image: linear-gradient(180deg, transparent, #000 25%, #000 72%, transparent),
    linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
  mask-composite: intersect;
}
.team-layout { display: grid; grid-template-columns: 43% minmax(0, 1fr); align-items: start; gap: 14px; }
.team-intro { min-width: 0; }
.team-intro .project-head { padding-top: 25px; }
.team-intro .project-head h1 { font-size: clamp(31px, 4.4vw, 54px); letter-spacing: -.02em; }
.team-intro .project-head p { margin-block: 20px 32px; }
.team-gallery { display: grid; grid-template-columns: 1.1fr 1fr; gap: 12px; }
.team-gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: 19px; }
.team-gallery img:first-child { grid-column: 1 / -1; aspect-ratio: 407 / 279; }
.team-gallery img:not(:first-child) { aspect-ratio: 4 / 5; }
.team-benefits { margin-top: 28px; }
.team-benefits ul { display: grid; gap: 19px; margin: 24px 0 0 17px; }
.team-benefits li { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 22px; align-items: center; }
.team-benefits h3 { font-size: clamp(15px, 1.55vw, 19px); line-height: 1.2; margin-bottom: 4px; }
.team-benefits p { font-size: clamp(13px, 1.35vw, 16px); line-height: 1.35; }
.team-form {
  gap: 10px;
  padding: clamp(15px, 2vw, 25px);
  border: 1px solid #f28cec;
  border-radius: 20px;
  background: radial-gradient(ellipse at top right, #4a134b75, transparent 70%), #260928c4;
  font-size: clamp(14px, 1.38vw, 16px);
}
.team-form .project-fields { gap: 10px 20px; }
.team-form fieldset > p:first-of-type:not(.project-error) { margin-bottom: 7px; line-height: 1.22; }
.team-roles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.team-role, .team-choices label { border: 1px solid var(--project-line); border-radius: 9px; padding: 7px; background: #4a204a60; cursor: pointer; }
.team-role { display: grid; grid-template-columns: 17px 30px minmax(0, 1fr); align-items: start; gap: 7px; line-height: 1.14; }
.team-role input { margin-top: 3px; }
.team-role-icon { width: 30px; height: 30px; background: url("/static/img/team-roles.png") calc(-30px * var(--role-index)) 0 no-repeat; }
.team-role:last-child { grid-column: 1 / -1; }
.team-role strong, .team-role small { display: block; overflow-wrap: anywhere; }
.team-role small { font-size: .85em; margin-top: 3px; }
.team-role:hover, .team-choices label:hover { background: #67336280; }
.team-role:has(input:checked), .team-choices label:has(input:checked) { border-color: var(--yellow); }
.team-choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.team-choices label { display: flex; align-items: center; gap: 8px; line-height: 1.15; font-size: .92em; }
.team-choices input { flex: none; }
.team-form .project-submit { width: 100%; margin-top: 4px; }

.project-thanks {
  position: relative;
  padding-block: clamp(26px, 5vw, 64px) clamp(72px, 18vh, 160px);
  min-height: calc(100dvh - 65px);
  background: radial-gradient(ellipse at 50% 57%, #390b40, #1b0621 76%);
}
.project-thanks::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: min(45vw, 440px);
  background: url("/static/img/project-audience.jpg") center / cover no-repeat;
  mask-image: linear-gradient(0deg, #000 82%, transparent);
  pointer-events: none;
}
.project-thanks-card {
  position: relative;
  display: grid;
  justify-items: center;
  margin-inline: auto;
  width: min(var(--container), 680px, 92%);
  padding: clamp(22px, 3.4vw, 42px) clamp(16px, 4vw, 46px);
  text-align: center;
  border: 1px solid #ff90f1;
  border-radius: 30px;
  background: radial-gradient(ellipse at 50% 112%, #5a115a9c, #1f0624 60%);
  box-shadow: 0 0 22px #ec46e166, inset 0 0 17px #ef48db40;
}
.project-check {
  display: grid;
  place-items: center;
  width: clamp(54px, 7vw, 80px);
  aspect-ratio: 1;
  border: 4px solid #ffca18;
  border-radius: 50%;
  margin-bottom: clamp(14px, 2vw, 22px);
}
.project-check img { width: 55%; }
.project-thanks h1 { font-size: clamp(26px, 4vw, 44px); line-height: 1.1; font-weight: 800; }
.project-thanks h1 span { font-size: .85em; display: block; margin-top: .1em; }
.project-thanks p { max-width: 43ch; margin: 16px auto 20px; font-size: clamp(15px, 1.6vw, 19px); line-height: 1.45; }
.project-thanks .project-submit { min-height: 47px; font-size: clamp(15px, 1.6vw, 18px); }

@media (max-width: 900px) {
  .project-hosts, .project-readers { grid-template-columns: minmax(0, 1fr); }
  .project-readers li + li { padding: 14px 0 0; border: 0; border-top: 1px solid var(--line-soft); }
  .project-host { grid-template-columns: min(42%, 240px) minmax(0, 1fr); }
}

@media (max-width: 719px) {
  .project-actions { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 820px) {
  .project-contacts { flex-wrap: wrap; gap: 13px 24px; }
  .project-socials { margin-left: 0; }
  .team-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .team-intro { display: contents; }
  .team-intro::after { margin-top: 0; }
  .team-form { grid-row: 2; }
  .team-form .project-field input { min-height: 40px; }
  .team-intro .project-head { padding-top: 12px; }
  .team-intro .project-head p { margin-bottom: 0; }
  .team-gallery { margin-top: 8px; grid-template-columns: 2fr 1fr 1fr; min-height: 120px; }
  .team-gallery img:first-child { grid-column: auto; height: 100%; }
  .team-benefits { margin-top: 0; }
}
@media (max-width: 580px) {
  .project-intro, .project-join { grid-template-columns: minmax(0, 1fr); }
  .project-intro > img { height: auto; min-height: 0; }
  .project-intro-copy::before { display: none; }
  .project-section { margin-inline: 0; }
  .project-collab { padding-inline: 12px; padding-bottom: 85px; }
  .project-collab::before { width: 85%; opacity: .8; }
  .project-collab > div { max-width: 100%; }
  .project-join { gap: 22px; padding-block: 26px; }
  .project-socials { padding-left: 0; border: 0; }
  .idea-panel { background: radial-gradient(ellipse at bottom right, var(--panel-a), var(--bg-2) 65%); padding: 45px 15px 22px; }
  .idea-content h2 { font-size: clamp(18px, 5.8vw, 29px); }
  .idea-content .project-fields { grid-template-columns: 1fr; }
  .idea-content .project-form { gap: 15px; }
  .idea-content .project-submit { width: 100%; }
  .team-role { grid-template-columns: 17px minmax(0, 1fr); }
  .team-role-icon { display: none; }
  .team-choices { grid-template-columns: 1fr; }
  .project-thanks::before { height: 210px; }
}
@media (max-width: 365px) {
  .project-readers p { font-size: 14px; }
  .project-readers li:last-child p { text-wrap: balance; }
  .project-readers li:last-child br { display: none; }
  .team-form .project-fields, .team-roles { grid-template-columns: 1fr; }
}
