/*
  Visual language taken from creative-ai.org: black canvas, Arial, white text,
  0.5px white rules, a sticky nav of white cells that fill with a gradient when
  active or hovered, and pills with 1px gradient borders. The eight gradients
  below are copied exactly from that site's .gradient1 to .gradient8.
*/
:root {
  --sitepadding: 1.2rem;
  --small: clamp(15px, 2.2vh, 26px);
  --large: clamp(18px, 2.8vh, 34px);
  --huge: clamp(40px, 7.4vw, 132px);
  --accent: #573BE8;
  --rule: 0.5px solid #fff;

  --g1: linear-gradient(90deg, rgba(147,149,152,1) 0%, rgba(147,149,152,1) 44%, rgba(234,235,4,0.5802696078431373) 55%, rgba(106,57,231,1) 100%);
  --g2: linear-gradient(90deg, rgba(147,149,152,1) 0%, rgba(147,149,152,1) 64%, rgba(234,235,4,1) 76%, rgba(106,57,231,1) 100%);
  --g3: linear-gradient(90deg, rgba(147,149,152,1) 0%, rgba(147,149,152,1) 88%, rgba(234,235,4,1) 94%, rgba(106,57,231,1) 100%);
  --g4: linear-gradient(90deg, rgba(255,184,9,1) 0%, rgba(197,197,197,1) 9%, rgba(254,253,254,1) 34%, rgba(231,137,236,1) 48%, rgba(235,32,212,1) 62%, rgba(97,0,124,1) 69%, rgba(0,3,251,1) 78%, rgba(197,197,197,1) 95%);
  --g5: linear-gradient(90deg, rgba(78,7,46,1) 0%, rgba(239,98,164,1) 4%, rgba(75,122,152,1) 9%, rgba(241,175,143,1) 15%, rgba(0,223,0,1) 30%, rgba(155,69,250,1) 60%, rgba(88,186,250,1) 67%, rgba(28,141,250,1) 75%, rgba(28,183,180,1) 83%, rgba(28,183,180,1) 88%, rgba(184,255,207,1) 100%);
  --g6: linear-gradient(90deg, rgba(255,3,3,0.9290091036414566) 4%, rgba(177,217,30,1) 21%, rgba(197,197,197,1) 44%);
  --g7: linear-gradient(90deg, rgba(197,197,197,1) 47%, rgba(3,255,233,0.9290091036414566) 67%, rgba(177,217,30,1) 100%);
  --g8: linear-gradient(90deg, rgba(241,175,143,1) 13%, rgba(75,122,152,1) 56%, rgba(88,186,250,1) 71%, rgba(0,223,0,1) 100%);
  --check: linear-gradient(to left, #ed0205, #3ace3e);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 8rem; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 400;
  font-size: var(--large);
  line-height: 1.25;
  color: #fff;
  background: #000;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
p a, .underline { text-decoration: underline 1px; text-underline-offset: 5px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.small { font-size: var(--small); line-height: 1.36; }

/* Gradient fills ------------------------------------------------------- */
.g1 { --fill: var(--g1); } .g2 { --fill: var(--g2); } .g3 { --fill: var(--g3); } .g4 { --fill: var(--g4); }
.g5 { --fill: var(--g5); } .g6 { --fill: var(--g6); } .g7 { --fill: var(--g7); } .g8 { --fill: var(--g8); }

/* Nav ------------------------------------------------------------------ */
.nav {
  position: sticky;
  top: 0;
  z-index: 999;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  grid-template-rows: auto auto auto;
  gap: 2px;
  background: #000;
  border-bottom: 2px solid #000;
  color: #000;
}
.nav .cell {
  position: relative;
  background: var(--fill);
  padding: calc(var(--sitepadding) / 4) var(--sitepadding);
  overflow: hidden;
  white-space: nowrap;
}
.nav .cell::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #fff;
}
.nav .cell.brand::before,
.nav .cell.active::before,
.nav .cell:hover::before { display: none; }
.nav .cell a { position: relative; display: block; height: 100%; color: #000; }
.nav .brand { grid-column: 1 / -1; grid-row: 1; }
.nav .wide { grid-column: 1 / 3; grid-row: 2; }
.nav .sub { font-size: var(--small); grid-row: 3; }
.nav .sub-1 { grid-column: 1; }
.nav .sub-2 { grid-column: 2; }
.nav .tall { grid-row: 2 / 4; padding-top: calc(var(--sitepadding) / 4 + var(--sitepadding) / 3); }
.nav .tall-1 { grid-column: 3; }
.nav .tall-2 { grid-column: 4; }
.nav-gap { height: 3rem; }

/* Rows and sections ---------------------------------------------------- */
section { border-top: var(--rule); }
.summary {
  display: grid;
  grid-template-columns: 37% 1fr;
  column-gap: 3%;
  padding: var(--sitepadding);
}
.summary > * { margin: 0; }
.heading-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: calc(var(--sitepadding) / 2) var(--sitepadding);
  font-size: var(--small);
  border-bottom: var(--rule);
}
.heading-row h2 { margin: 0; font: inherit; }
.section-body { padding: var(--sitepadding); padding-bottom: calc(var(--sitepadding) * 3); }
.section-body > .summary { padding: 0; }

/* Hero ----------------------------------------------------------------- */
.hero { border-top: var(--rule); padding-bottom: calc(var(--sitepadding) * 3); }
.hero h1 {
  font-weight: 400;
  font-size: var(--huge);
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin: 0 0 calc(var(--sitepadding) * 1.5);
  padding: var(--sitepadding) var(--sitepadding) 0;
}
.banner {
  position: relative;
  color: #000;
  background: var(--g5);
  background-size: 600% 100%;
  animation: drift 30s ease infinite;
  padding: calc(var(--sitepadding) / 4) var(--sitepadding);
  border-top: 2px solid #000;
  border-bottom: 2px solid #000;
  white-space: nowrap;
  overflow: hidden;
  font-size: var(--small);
}
.banner .track { display: inline-flex; animation: marquee 40s linear infinite; }
.banner .track span { padding-right: 3rem; }
@keyframes drift { 0% { background-position-x: 0%; } 50% { background-position-x: 100%; } 100% { background-position-x: 0%; } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .banner, .banner .track, .pill.live { animation: none !important; }
  html { scroll-behavior: auto; }
}
.hero p { margin: 0 0 1em; }
.hero .lede { margin-bottom: 0; }

/* Pills (gradient-bordered capsules) ------------------------------------ */
.pill {
  position: relative;
  display: inline-block;
  border: 0;
  border-radius: 10px;
  background: var(--fill);
  color: #fff;
  font: inherit;
  font-size: var(--large);
  line-height: 1.25;
  padding: 0 4vh;
  margin: 0 0.5rem 1vh 0;
  cursor: pointer;
  text-align: center;
}
.pill::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: 1px;
  border-radius: 9px;
  background: #000;
}
.pill > * , .pill .label { position: relative; z-index: 1; }
.pill:hover, .pill:focus-visible { color: #000; }
.pill:hover::before, .pill:focus-visible::before { background: transparent; }
.pill.small-pill { font-size: var(--small); }
.pill.live { background-size: 600% 100%; animation: drift 30s ease infinite; }
.pill[disabled] { opacity: 0.6; cursor: progress; }

/* Forms ---------------------------------------------------------------- */
form { margin: 0; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.field { display: flex; flex-direction: column; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: var(--small); line-height: 1.36; margin: 0.6rem 0 0.25rem; }
.field .hint { font-size: var(--small); opacity: 0.6; }
input[type="text"], input[type="email"], select, textarea {
  width: 100%;
  font: inherit;
  font-size: max(16px, var(--large));
  color: #fff;
  background: #000;
  border: 0.1px solid #fff;
  border-radius: 0;
  padding: 1vh 3vh;
  min-height: 2.4em;
  appearance: none;
  -webkit-appearance: none;
}
input::placeholder, textarea::placeholder { color: #fff; opacity: 0.55; }
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23fff' stroke-width='1'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 3vh center;
  padding-right: 7vh;
}
textarea { resize: vertical; min-height: 6.5em; line-height: 1.3; }
input:hover, select:hover, textarea:hover { border-color: #c5c5c5; }
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #ed0205; box-shadow: 0 0 0 1px #ed0205; }
.error-text { color: #ff6b6b; font-size: var(--small); margin-top: 0.25rem; min-height: 0; }
.error-text:empty { display: none; }
.counter { font-size: var(--small); opacity: 0.6; text-align: right; margin-top: 0.25rem; }

.notify-form { display: flex; gap: 4px; margin-top: 1.2rem; }
.notify-form input { flex: 1; }
.notify-form .pill { margin: 0; white-space: nowrap; align-self: stretch; display: flex; align-items: center; }

/* Gradient-bordered checkbox, as on creative-ai.org's sign-up form. */
.check { position: relative; display: flex; align-items: flex-start; gap: 0.6rem; margin-top: 1rem; font-size: var(--small); line-height: 1.36; cursor: pointer; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check .box {
  flex: 0 0 auto;
  width: 1.35em;
  height: 1.35em;
  border: 1px solid;
  border-image: var(--check) 1;
  display: grid;
  place-items: center;
  font-size: var(--large);
  line-height: 1;
}
.check input:checked + .box::after { content: "\2713"; color: #fff; }
.check input:focus-visible + .box { outline: 2px solid var(--accent); outline-offset: 2px; }
.check.invalid .box { border-image: none; border-color: #ed0205; }

.member-extra { display: none; }
.member-extra.open { display: flex; }
.submitwrap { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 1.4rem; flex-wrap: wrap; }
.form-status { font-size: var(--small); min-height: 1.36em; }
.form-status.error { color: #ff6b6b; }
.turnstile { margin-top: 1rem; min-height: 0; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.done {
  position: relative;
  border-radius: 10px;
  background: var(--fill, var(--g5));
  padding: 1.2rem 1.4rem;
  margin-top: 1.2rem;
}
.done::before { content: ""; position: absolute; inset: 0; margin: 1px; border-radius: 9px; background: #000; }
.done > * { position: relative; margin: 0 0 0.6em; }
.done > *:last-child { margin-bottom: 0; }

/* Prize facts ---------------------------------------------------------- */
.facts { list-style: none; padding: 0; margin: 1.4rem 0 0; font-size: var(--small); line-height: 1.36; }
.facts li { display: flex; gap: 1rem; padding: calc(var(--sitepadding) / 2) 0; border-top: var(--rule); }
.facts li:last-child { border-bottom: var(--rule); }
.facts .k { flex: 0 0 38%; opacity: 0.7; }

/* Video list (styled like creative-ai.org's database rows) -------------- */
.list-head, .video .row-top {
  display: grid;
  grid-template-columns: 1fr 9rem 2rem;
  gap: 1rem;
  align-items: baseline;
}
.list-head { font-size: var(--small); padding: calc(var(--sitepadding) / 2) var(--sitepadding); border-bottom: var(--rule); }
.videos { list-style: none; margin: 0; padding: 0 var(--sitepadding); }
.video { border-bottom: var(--rule); }
.video .row-top { padding: calc(var(--sitepadding) / 2) 0; cursor: pointer; width: 100%; background: none; border: 0; color: inherit; font: inherit; text-align: left; }
.video .row-top:hover .t { color: var(--accent); }
.video .t svg, .ext svg { width: 0.7em; height: 0.7em; margin-right: 0.35em; vertical-align: baseline; }
.video .d { font-size: var(--small); }
.plus { width: 1.1rem; height: 1.1rem; justify-self: end; transition: transform 0.2s; }
.video[open] .plus, .acc[open] .plus { transform: rotate(45deg); }
.video .player { display: none; padding: 0 0 var(--sitepadding); }
.video[open] .player { display: block; }
.frame { position: relative; width: min(100%, 960px); aspect-ratio: 16 / 9; background: #111; }
.frame img, .frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.frame .play { position: absolute; inset: 0; display: grid; place-items: center; background: transparent; border: 0; cursor: pointer; }
.frame .play span { padding: 0.2rem 1.4rem; }
.video .watch { display: inline-block; margin-top: 0.6rem; font-size: var(--small); }
.videos-note { font-size: var(--small); padding: var(--sitepadding); }

/* Socials -------------------------------------------------------------- */
.socials { display: flex; flex-wrap: wrap; padding: var(--sitepadding); padding-bottom: calc(var(--sitepadding) * 2); }
.socials .pill { padding: 0.15rem 4vh; }
.socials .handle { opacity: 0.7; font-size: var(--small); margin-left: 0.4em; }
.socials .pill:hover .handle { opacity: 1; }

/* Accordion (like creative-ai.org's About page) ------------------------- */
.acc { border-bottom: var(--rule); }
.acc summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: calc(var(--sitepadding) / 2) var(--sitepadding);
  font-size: var(--small);
  cursor: pointer;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary:hover { color: var(--accent); }
.acc .acc-body { padding: 0 var(--sitepadding) var(--sitepadding); font-size: var(--small); line-height: 1.36; max-width: 60rem; margin-left: 40%; }
.acc .acc-body p { margin: 0 0 0.8em; }
.acc .acc-body ol, .acc .acc-body ul { margin: 0 0 0.8em; padding-left: 1.2em; }

/* Privacy policy page ---------------------------------------------------- */
.policy-row {
  display: grid;
  grid-template-columns: 37% 1fr;
  column-gap: 3%;
  padding: var(--sitepadding);
  padding-bottom: calc(var(--sitepadding) * 1.5);
}
.policy-row h2 { margin: 0; font: inherit; font-size: var(--small); line-height: 1.36; }
.policy-row > div { font-size: var(--small); line-height: 1.45; max-width: 52rem; }
.policy-row p { margin: 0 0 0.8em; }
.policy-row ul { margin: 0 0 0.8em; padding-left: 1.1em; }
.policy-row li { margin-bottom: 0.45em; }
.policy-row strong { font-weight: 400; color: #fff; text-decoration: underline 1px; text-decoration-color: rgba(255,255,255,.35); text-underline-offset: 4px; }
.policy-row a, .footer a { text-decoration: underline 1px; text-underline-offset: 5px; }
.notify-note { font-size: var(--small); opacity: 0.6; margin: 0.6rem 0 0; }

/* Footer --------------------------------------------------------------- */
.footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: calc(var(--sitepadding) * 3) var(--sitepadding) var(--sitepadding);
  font-size: var(--small);
}
.footer .fine { opacity: 0.5; font-size: 0.8em; }

/* Mobile --------------------------------------------------------------- */
@media (max-width: 850px) {
  :root { --sitepadding: 0.8rem; --huge: clamp(40px, 12.5vw, 96px); }
  html { scroll-padding-top: 7rem; }
  .nav .cell { padding-left: 0.4rem; padding-right: 0.4rem; }
  .nav .sub { padding-left: 0.3rem; padding-right: 0.2rem; font-size: 14px; }
  .nav-gap { height: 1.5rem; }
  .summary { grid-template-columns: 1fr; row-gap: 1.2rem; }
  .fields { grid-template-columns: 1fr; }
  .notify-form { flex-direction: column; }
  .notify-form .pill { justify-content: center; padding: 0.35rem 1rem; }
  .submitwrap .pill { width: 100%; padding: 0.35rem 1rem; }
  .list-head, .video .row-top { grid-template-columns: 1fr 1.4rem; }
  .list-head .d, .video .row-top .d { display: none; }
  .video .player .d-mobile { display: block; font-size: var(--small); opacity: 0.7; margin-bottom: 0.5rem; }
  .facts .k { flex-basis: 42%; }
  .acc .acc-body { margin-left: 0; }
  .policy-row { grid-template-columns: 1fr; row-gap: 0.6rem; }
  .footer { flex-direction: column; }
}
@media (min-width: 851px) { .d-mobile { display: none; } }
