:root {
  --bg: #05070a;
  --panel: rgba(9, 13, 18, 0.44);
  --panel-strong: rgba(9, 13, 18, 0.88);
  --text: #f4f7fb;
  --muted: #b9c2cf;
  --soft: #7d8a9a;
  --line: rgba(255,255,255,0.12);
  --accent: #8baab4;
  --accent-2: #d2e0e3;
  --ember: #bf6a2a;
  --ember-soft: #d18a47;
  --red-muted: #8f3b2f;
  --green-muted: #5f7e62;
  --radius: 22px;
  --max: 1120px;
}

* { box-sizing: border-box; }

html {
  background: var(--bg);
  color: var(--text);
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  min-height: 100vh;
  line-height: 1.62;
  text-rendering: optimizeLegibility;
  background: transparent;
}

.site-video,
.site-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.site-video {
  object-fit: cover;
  z-index: 0;
  opacity: 1;
  filter: brightness(1.12) saturate(1.05) contrast(1.03);
  background: #05070a;
}

.site-overlay {
  z-index: 1;
  display: block;
  background:
    linear-gradient(
      120deg,
      rgba(5,7,10,.24),
      rgba(5,7,10,.14) 42%,
      rgba(5,7,10,.34)
    );
}


.site-header,
.site-main,
.site-footer {
  position: relative;
  z-index: 5;
  width: min(var(--max), calc(100% - 40px));
  margin-left: auto;
  margin-right: auto;
}

.site-header {
  margin-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.035);
  box-shadow: 0 0 34px rgba(121,215,255,.08);
  overflow: hidden;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.brand-text {
  display: flex;
  flex-direction: column;
  font-family: "IBM Plex Sans Condensed", Inter, sans-serif;
  font-size: 17px;
  line-height: .94;
  letter-spacing: .04em;
  font-weight: 500;
}

.main-nav,
.footer-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.main-nav a,
.footer-nav a,
.link-button {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  font: inherit;
}

button,
.button,
.main-nav a,
.footer-nav a,
.link-button,
.choice-row label {
  transition:
    transform .18s ease,
    color .18s ease,
    background .18s ease,
    border-color .18s ease,
    box-shadow .18s ease,
    opacity .18s ease;
}

.main-nav a:hover,
.footer-nav a:hover,
.link-button:hover,
.main-nav a[aria-current="page"],
.choice-row label:hover,
.choice-row label:has(input:checked) {
  color: var(--text);
}

.main-nav a:hover,
.footer-nav a:hover,
.link-button:hover,
button:hover,
.button:hover,
.choice-row label:hover {
  transform: translateY(-1px);
}

.site-main {
  margin-top: 64px;
  margin-bottom: 84px;
}

.panel {
  background: transparent;
  border: none;
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 48px);
  backdrop-filter: none;
  box-shadow: none;
  position: relative;
}

.hero-panel {
  max-width: 860px;
  min-height: 330px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.page-hero{
  min-height: 230px;
  width:100%;
  max-width:none;
}

.about-content-width{
  max-width: 860px;
}

.eyebrow,
.human-check-heading {
  color: var(--accent);
  font-size: 12px;
  letter-spacing: .13em;
  text-transform: uppercase;
  font-weight: 600;
}

.eyebrow {
  margin: 0 0 14px;
}

.human-check-heading {
  margin: 30px 0 14px;
  font-size: 13px;
}

h1,
h2,
h3 {
  font-family: Inter, system-ui, sans-serif;
  line-height: 1.12;
  letter-spacing: -.03em;
  margin: 0 0 18px;
  font-weight: 500;
}

h1 {
  font-size: clamp(30px, 5vw, 55px);
  color: #E9F0FF;
}

h2 {
  font-size: clamp(28px, 4vw, 44px);
  transition: color 180ms ease;
}

h3 {
  font-size: 22px;
  letter-spacing: -.02em;
}

p {
  color: var(--muted);
  margin: 0 0 16px;
  max-width: 66ch;
}

.hero-statement {
  font-size: clamp(24px, 3.4vw, 42px);
  color: var(--text);
  line-height: 1.18;
  max-width: 810px;
  letter-spacing: -.035em;
}

.hero-copy {
  font-size: 17px;
  max-width: 720px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.button,
.cookie-actions button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  background: rgba(139, 170, 180, .13);
  border: 1px solid rgba(139, 170, 180, .32);
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  cursor: pointer;
}

.button:hover,
.cookie-actions button:hover,
button:hover {
  border-color: rgba(210, 224, 227, .46);
  background: rgba(139, 170, 180, .18);
}

.button:hover,
.cookie-actions button:hover {
  box-shadow:
    0 0 0 1px rgba(121,215,255,.08),
    0 10px 28px rgba(121,215,255,.10);
}

.button:active,
.cookie-actions button:active {
  transform: translateY(0);
}

.button.secondary,
.cookie-actions button:first-child {
  background: rgba(255,255,255,.05);
  border-color: var(--line);
}

.button.secondary:hover,
.cookie-actions button:first-child:hover {
  background: rgba(255,255,255,.09);
  border-color: rgba(255,255,255,.22);
  box-shadow: 0 10px 24px rgba(0,0,0,.18);
}

.section-block {
  margin-top: 28px;
}

.grid-two {
  display: grid;
  grid-template-columns: minmax(0,1.1fr) minmax(280px,.9fr);
  gap: 28px;
}

.grid-three {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 20px;
}

.compact {
  padding: 30px;
}

/* H2 palette */
.section-block:nth-of-type(4n+1) h2,
.panel:nth-of-type(4n+1) h2,
.h2-blue h2 {
  color: #6f8fa8;
}

.section-block:nth-of-type(4n+2) h2,
.panel:nth-of-type(4n+2) h2,
.h2-teal h2 {
  color: #738f8b;
}

.section-block:nth-of-type(4n+3) h2,
.panel:nth-of-type(4n+3) h2,
.h2-green h2 {
  color: #7b927d;
}

.section-block:nth-of-type(4n+4) h2,
.panel:nth-of-type(4n+4) h2,
.h2-red h2 {
  color: #9b6f68;
}

/* H3 palette */
.grid-three article:nth-child(5n+1) h3,
.card-grid article:nth-child(5n+1) h3,
.section-block article:nth-child(5n+1) h3 { color: #5f9fb8; }

.grid-three article:nth-child(5n+2) h3,
.card-grid article:nth-child(5n+2) h3,
.section-block article:nth-child(5n+2) h3 { color: #5799a4; }

.grid-three article:nth-child(5n+3) h3,
.card-grid article:nth-child(5n+3) h3,
.section-block article:nth-child(5n+3) h3 { color: #4f928f; }

.grid-three article:nth-child(5n+4) h3,
.card-grid article:nth-child(5n+4) h3,
.section-block article:nth-child(5n+4) h3 { color: #4a887b; }

.grid-three article:nth-child(5n+5) h3,
.card-grid article:nth-child(5n+5) h3,
.section-block article:nth-child(5n+5) h3 { color: #507f67; }

.image-panel {
  min-height: 380px;
}

.abstract-panel {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 50%, rgba(233,251,255,.16), transparent 11%),
    radial-gradient(circle at 58% 57%, rgba(200,117,53,.34), transparent 19%),
    radial-gradient(circle at 42% 46%, rgba(121,215,255,.34), transparent 13%),
    radial-gradient(circle at 66% 40%, rgba(143,59,47,.20), transparent 24%),
    radial-gradient(circle at 34% 64%, rgba(95,126,98,.14), transparent 31%),
    linear-gradient(135deg, rgba(255,255,255,.07) 0 1px, transparent 1px 34px),
    rgba(9,13,18,.64);
}

.abstract-panel::before {
  content: "";
  position: absolute;
  width: 410px;
  height: 410px;
  left: 50%;
  top: 51%;
  transform: translate(-50%, -50%) rotate(-18deg);
  background:
    conic-gradient(from 230deg,
      transparent 0 14deg,
      rgba(121,215,255,.95) 15deg 18deg,
      transparent 20deg 44deg,
      rgba(233,251,255,.92) 46deg 49deg,
      transparent 51deg 91deg,
      rgba(200,117,53,.86) 94deg 100deg,
      transparent 102deg 145deg,
      rgba(209,138,71,.80) 148deg 154deg,
      transparent 157deg 204deg,
      rgba(143,59,47,.42) 207deg 213deg,
      transparent 216deg 270deg,
      rgba(95,126,98,.30) 272deg 276deg,
      transparent 278deg 360deg);
  filter: blur(.2px) drop-shadow(0 0 18px rgba(121,215,255,.28));
  opacity: .95;
}

.abstract-panel::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 52%;
  width: 112px;
  height: 174px;
  transform: translate(-20%, -42%) rotate(18deg);
  background:
    radial-gradient(ellipse at 50% 84%, rgba(200,117,53,.90), transparent 50%),
    radial-gradient(ellipse at 46% 52%, rgba(209,138,71,.76), transparent 44%),
    radial-gradient(ellipse at 58% 24%, rgba(121,215,255,.74), transparent 36%);
  clip-path: polygon(45% 0%, 66% 26%, 58% 43%, 86% 67%, 61% 100%, 44% 77%, 25% 100%, 33% 66%, 13% 43%, 38% 34%);
  opacity: .86;
  filter: blur(.4px) drop-shadow(0 0 22px rgba(191,106,42,.32));
}

.cta-panel {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.site-footer {
  margin-bottom: 30px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
  color: var(--muted);
  display: grid;
  gap: 16px;
}

.site-footer strong {
  color: var(--text);
  font-weight: 500;
}

.copyright {
  font-size: 13px;
  color: var(--soft);
}

.cookie-banner[hidden] {
  display: none !important;
}

.cookie-banner {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 10;
  max-width: 840px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  background: var(--panel-strong);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  backdrop-filter: blur(18px);
}

.cookie-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.form-grid,
.verification-grid,
.contact-fields {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 18px;
  margin-bottom: 18px;
}

.verification-grid {
  grid-template-columns: repeat(3,minmax(0,1fr));
  margin-top: 22px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--text);
  font-size: 14px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.06);
  color: var(--text);
  border-radius: 12px;
  padding: 12px 13px;
  font: inherit;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(121,215,255,.55);
  box-shadow: 0 0 0 3px rgba(121,215,255,.10);
}

textarea {
  resize: vertical;
}

select option {
  color: #111;
}

.hp-field {
  position: absolute;
  left: -10000px;
  height: 1px;
  width: 1px;
  overflow: hidden;
}

.notice {
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
}

.notice.success {
  background: rgba(34,197,94,.12);
}

.notice.error {
  background: rgba(220,38,38,.12);
}

.color-swatch,
.color-swatch-inline {
  border-color: rgba(215,229,232,.28);
}

.color-swatch {
  display: block;
  width: 100%;
  height: 46px;
  border-radius: 12px;
  background: var(--swatch);
  border: 1px solid rgba(255,255,255,.16);
  box-shadow:
    inset 0 0 12px rgba(255,255,255,.05),
    0 0 10px rgba(0,0,0,.18);
}

.color-swatch-inline {
  display: inline-block;
  width: 72px;
  height: 24px;
  border-radius: 999px;
  background: var(--swatch);
  border: 1px solid rgba(215,229,232,.28);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.20);
  vertical-align: middle;
}

.color-blue {
  background: #4C78A8;
}

.animal-challenge {
  width: 100%;
  height: 210px;
  object-fit: contain;
  background: rgba(255,255,255,.97);
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 14px;
  padding: 10px;
  margin-top: 10px;
  margin-bottom: 12px;
  display: block;
}

.choice-row {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.choice-row label {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 14px;
}

.choice-row input {
  width: auto;
}

.choice-row input[type="radio"] {
  accent-color: var(--accent);
}

.compact-choice-row,
.animal-choice-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.compact-choice-row {
  margin-top: 12px;
}

.compact-choice-row label,
.animal-choice-row label {
  min-height: 36px;
  border-radius: 999px;
  padding: 7px 10px;
}

.compact-choice-row label:hover,
.animal-choice-row label:hover {
  background: rgba(255,255,255,.045);
}

.legal-copy h2 {
  margin-top: 28px;
  font-size: 25px;
}

.contact-intro {
  min-height: 185px;
}

.contact-intro h1 {
  margin-bottom: 10px;
}

.contact-panel form > label {
  margin-bottom: 18px;
}

.verification-panel {
  display: grid;
  grid-template-columns: minmax(280px, .9fr) minmax(360px, 1.1fr);
  gap: 24px;
  align-items: start;
  margin: 0 0 24px;
}

.verification-stack {
  display: grid;
  gap: 18px;
}

.task-card,
.task-fieldset {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.035);
  border-radius: 16px;
  padding: 16px;
  margin: 0;
}

.task-title {
  color: var(--text);
  font-weight: 600;
  margin: 0 0 14px;
}

.math-task {
  min-height: 74px;
  display: flex;
  align-items: center;
}

.math-task .inline-task {
  border: 0;
  background: transparent;
  border-radius: 0;
  padding: 0;
  min-height: 0;
  width: 100%;
}

.math-task .inline-task input {
  width: 92px;
  flex: 0 0 92px;
}

.inline-task {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 54px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.035);
  border-radius: 16px;
  padding: 14px 16px;
}

.inline-task input {
  width: 88px;
  text-align: center;
  flex: 0 0 88px;
}

.task-fieldset legend {
  padding: 0 8px;
  color: var(--text);
  font-weight: 600;
}

.color-task .task-title,
.color-task legend {
  display: flex;
  align-items: center;
  gap: 12px;
}

.color-task .task-title {
  margin-bottom: 16px;
}

.animal-task {
  padding: 16px;
}

.animal-task .task-title {
  margin-bottom: 12px;
}

.lockout-message {
  margin-top: 0;
}

@media (min-width: 921px) {
  .verification-panel {
    grid-template-columns: minmax(300px, .92fr) minmax(420px, 1.08fr);
  }

  .verification-stack,
  .animal-task {
    align-self: start;
  }
}

@media (max-width: 920px) {
  .verification-panel {
    grid-template-columns: 1fr;
  }

  .animal-challenge {
    height: 190px;
  }
}

@media (max-width: 820px) {
  .site-header {
    align-items: flex-start;
  }

  .main-nav {
    gap: 18px;
    padding-top: 9px;
  }

  .grid-two,
  .grid-three,
  .form-grid,
  .verification-grid,
  .contact-fields {
    grid-template-columns: 1fr;
  }

  .cookie-banner {
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .site-header,
  .site-main,
  .site-footer {
    width: min(100% - 28px, var(--max));
  }

  .site-header {
    flex-direction: column;
  }

  .brand-text {
    font-size: 16px;
  }

  .panel {
    border-radius: 18px;
  }

  .compact-choice-row,
  .animal-choice-row {
    grid-template-columns: 1fr;
  }

  .inline-task {
    align-items: flex-start;
    flex-direction: column;
  }

  .inline-task input {
    width: 112px;
    flex-basis: auto;
  }

  .color-task .task-title,
  .color-task legend {
    align-items: flex-start;
    flex-direction: column;
  }
}


/* Inline medieval image treatment */
.image-flow-section,
.hero-panel-with-image {
  display: block;
  overflow: hidden;
}

.section-image {
  display: block;
  width: clamp(180px, 25vw, 300px);
  max-width: 42%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: calc(var(--radius) - 8px);
  border: none;
  box-shadow: 0 18px 48px rgba(0,0,0,.34);
  opacity: .96;
}

.section-image-left {
  float: left;
  margin: 2px clamp(22px, 3vw, 34px) 18px 0;
}

.section-image-right {
  float: right;
  margin: 2px 0 18px clamp(22px, 3vw, 34px);
}

.hero-section-image {
  width: clamp(210px, 26vw, 330px);
  max-width: 38%;
}

.image-flow-section::after,
.hero-panel-with-image::after {
  content: "";
  display: table;
  clear: both;
}

@media (min-width: 821px) {
  .hero-panel-with-image {
    max-width: none;
  }

  .hero-panel-with-image .hero-statement,
  .hero-panel-with-image h1 {
    max-width: 780px;
  }
}

@media (max-width: 760px) {
  .section-image,
  .hero-section-image {
    float: none;
    width: min(100%, 360px);
    max-width: 100%;
    margin: 0 auto 24px;
  }
}

/* Contact page messenger image */
.contact-intro.hero-panel-with-image {
  min-height: clamp(260px, 31vw, 350px);
}

.contact-section-image {
  width: clamp(210px, 25vw, 320px);
  max-width: 38%;
}

@media (max-width: 760px) {
  .contact-intro.hero-panel-with-image {
    min-height: 0;
  }
}
