:root {
  --bg: #060606;
  --bg-center: #151513;
  --surface: rgba(255, 255, 255, 0.025);
  --surface-hover: rgba(255, 255, 255, 0.05);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #ecebe6;
  --muted: #9a978f;
  --faint: #5f5d58;
  --accent: #a6d673;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", "Segoe UI", system-ui, sans-serif;
  --max: 820px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(ellipse 70% 55% at 50% 0%, var(--bg-center), transparent 70%),
    var(--bg);
  background-attachment: fixed;
}

main {
  flex: 1;
}

::selection {
  background: var(--accent);
  color: #0b0c08;
}

.vignette,
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.vignette {
  z-index: 0;
  background: radial-gradient(
    ellipse 85% 75% at var(--vx, 50%) var(--vy, 45%),
    transparent 35%,
    rgba(0, 0, 0, 0.55) 75%,
    rgba(0, 0, 0, 0.92) 100%
  );
}

.grain {
  z-index: 50;
  opacity: 0.06;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

[hidden] {
  display: none !important;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

em {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.08em;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 60;
  padding: 0.6rem 0.9rem;
  border-radius: 8px;
  background: var(--text);
  color: var(--bg);
}

.skip:focus {
  top: 1rem;
}

:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 4px;
  border-radius: 6px;
}

.wrap {
  width: min(var(--max), calc(100% - 3rem));
  margin-inline: auto;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.site-header.scrolled {
  background: rgba(6, 6, 6, 0.7);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.brand-logo {
  width: 30px;
  height: 26px;
  filter: drop-shadow(0 2px 8px rgba(78, 143, 42, 0.35));
  transition: transform 0.4s var(--ease);
}

.brand:hover .brand-logo {
  transform: translateY(-2px) rotate(-6deg);
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.nav a {
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.88rem;
}

.nav a:hover,
.nav a.active,
.nav a[aria-current="page"] {
  color: var(--text);
}

.nav .nav-cta {
  margin-left: 0.35rem;
  color: var(--text);
  border: 1px solid var(--line-strong);
  transition: background 0.2s ease, color 0.2s ease;
}

.nav .nav-cta:hover {
  background: var(--text);
  color: var(--bg);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.3rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s var(--ease);
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--text);
  color: #0a0a0a;
}

.btn-primary:hover {
  background: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}

.btn-ghost:hover {
  background: var(--surface-hover);
  border-color: rgba(255, 255, 255, 0.28);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 2.2rem;
}

/* Hero */

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(4.5rem, 14vh, 9rem) 0 clamp(4rem, 10vh, 6.5rem);
}

.frog-stage {
  position: relative;
  display: grid;
  place-items: center;
  width: 168px;
  height: 150px;
  margin-bottom: 2.2rem;
}

.frog-stage::before {
  content: "";
  position: absolute;
  inset: -50px -40px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(110, 180, 60, 0.2), transparent 62%);
  filter: blur(14px);
  animation: breathe 6s ease-in-out infinite;
}

.frog {
  position: relative;
  z-index: 1;
  width: 150px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  transform-origin: 50% 100%;
  -webkit-tap-highlight-color: transparent;
}

.frog svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.55));
  transition: transform 0.4s var(--ease);
}

.frog:hover svg {
  transform: scale(1.04);
}

.frog:focus-visible {
  outline-offset: 10px;
  border-radius: 24px;
}

.frog-eye {
  transform-box: fill-box;
  transform-origin: center;
  animation: blink 5.5s infinite;
}

.frog-eye + .frog-eye {
  animation-delay: 0.04s;
}

.frog-pupil {
  transition: transform 0.15s ease-out;
}

.frog-shadow {
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: 120px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(0, 0, 0, 0.7), transparent 70%);
  transform: translateX(-50%);
}

.frog-ripple {
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 140px;
  height: 30px;
  border: 1px solid rgba(160, 210, 110, 0.5);
  border-radius: 50%;
  opacity: 0;
  transform: translateX(-50%) scale(0.4);
  pointer-events: none;
}

.frog.hop {
  animation: hop 0.7s var(--ease);
}

.frog.hop ~ .frog-shadow {
  animation: hop-shadow 0.7s var(--ease);
}

.frog-ripple.go {
  animation: ripple 0.9s ease-out 0.5s;
}

@keyframes blink {
  0%, 93%, 100% {
    transform: scaleY(1);
  }
  95% {
    transform: scaleY(0.08);
  }
}

@keyframes breathe {
  0%, 100% {
    opacity: 0.7;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}

@keyframes hop {
  0% {
    transform: none;
  }
  15% {
    transform: scale(1.12, 0.86);
  }
  45% {
    transform: translateY(-46px) scale(0.94, 1.08) rotate(-3deg);
  }
  75% {
    transform: translateY(0) scale(1.1, 0.9);
  }
  88% {
    transform: scale(0.97, 1.03);
  }
  100% {
    transform: none;
  }
}

@keyframes hop-shadow {
  45% {
    opacity: 0.35;
    transform: translateX(-50%) scale(0.6);
  }
}

@keyframes ripple {
  0% {
    opacity: 0.9;
    transform: translateX(-50%) scale(0.4);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) scale(1.6);
  }
}

/* Ambient effects */

.fireflies {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  height: 2px;
  background: linear-gradient(90deg, #4e8f2a, var(--accent));
  box-shadow: 0 0 12px rgba(160, 210, 110, 0.6);
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
}

.spot {
  position: relative;
  isolation: isolate;
}

.spot::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 50%), rgba(160, 210, 110, 0.12), transparent 60%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.spot:hover::before {
  opacity: 1;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 0.95;
}

h1 {
  font-size: clamp(4.2rem, 13vw, 8.5rem);
  background: linear-gradient(180deg, #fbfaf6 30%, #8d8a83 120%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.handle {
  margin: 1.3rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.handle strong {
  color: var(--text);
  font-weight: 500;
}

.lede {
  max-width: 32rem;
  margin: 1.3rem auto 0;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.7;
}

.lede em {
  color: var(--text);
}

/* Sections */

.chapter {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 2.5rem;
  padding: clamp(4rem, 10vh, 6rem) 0;
  border-top: 1px solid var(--line);
}

.chapter-head {
  position: sticky;
  top: 96px;
  align-self: start;
}

h2 {
  font-size: clamp(2.2rem, 4.5vw, 2.8rem);
  font-style: italic;
  color: var(--muted);
}

.eyebrow {
  margin: 0;
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* Work */

.project h3 {
  margin: 0.8rem 0 1rem;
  font-size: clamp(2.8rem, 7vw, 4.2rem);
}

.project p {
  max-width: 32rem;
  margin: 0;
  color: var(--muted);
}

.tags {
  margin-top: 1.4rem !important;
  color: var(--faint) !important;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

/* Contact */

.links {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.links li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid var(--line);
}

.links a {
  flex: 1;
  display: grid;
  grid-template-columns: 90px 1fr auto;
  align-items: center;
  gap: 1rem;
  min-width: 0;
  padding: 1.25rem 0;
}

.links .label {
  color: var(--faint);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.links .value {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 3.4vw, 1.75rem);
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.links svg {
  color: var(--faint);
  transition: transform 0.3s var(--ease), color 0.2s ease;
}

.links a:hover .value {
  color: #fff;
}

.links a:hover svg {
  color: var(--accent);
  transform: translate(2px, -2px);
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.icon-btn:hover {
  color: var(--text);
  border-color: var(--line-strong);
  background: var(--surface-hover);
}

.icon-btn .check,
.icon-btn.done .copy {
  display: none;
}

.icon-btn.done .check {
  display: block;
  color: var(--accent);
}

.fine {
  margin: 1.4rem 0 0;
  color: var(--faint);
  font-size: 0.85rem;
}

/* Footer */

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.8rem 0 2.4rem;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 0.82rem;
}

.site-footer a:hover {
  color: var(--text);
}

/* Donate */

.page-hero {
  padding-bottom: clamp(2.5rem, 6vh, 3.5rem);
}

.donate {
  max-width: 480px;
  margin: 0 auto;
  padding-bottom: 5rem;
}

.amounts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}

.amounts a {
  display: grid;
  place-items: center;
  padding: 1.6rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  font-family: var(--serif);
  font-size: 2.4rem;
  line-height: 1;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.25s var(--ease);
}

.amounts a:hover {
  border-color: var(--accent);
  background: rgba(160, 210, 110, 0.05);
  transform: translateY(-2px);
}

.donate .btn-primary {
  width: 100%;
  margin-top: 0.6rem;
  padding-block: 0.95rem;
}

.donate .fine {
  text-align: center;
}

.text-btn {
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
  border-bottom: 1px solid var(--line-strong);
}

.text-btn:hover {
  color: var(--text);
}

/* Team */

.team {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.member {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 100%;
  padding: 1.3rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  overflow: hidden;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.member::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.4);
}

.member:hover {
  border-color: var(--line-strong);
  background: var(--surface-hover);
}

.member-initial {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, #2a2a27, #121211);
  box-shadow: 0 0 0 1px var(--line-strong), inset 0 0 14px rgba(0, 0, 0, 0.6);
  color: var(--muted);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.5rem;
  line-height: 1;
}

.member-info {
  display: grid;
  flex: 1;
  min-width: 0;
  line-height: 1.25;
}

.member-role {
  color: var(--accent);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.member-name {
  margin-top: 0.35rem;
  font-family: var(--serif);
  font-size: 1.6rem;
  line-height: 1.05;
}

.member-handle {
  margin-top: 0.2rem;
  overflow: hidden;
  color: var(--faint);
  font-size: 0.84rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-arrow {
  align-self: flex-start;
  flex-shrink: 0;
  color: var(--faint);
  transition: transform 0.3s var(--ease), color 0.2s ease;
}

.member:hover .member-arrow {
  color: var(--accent);
  transform: translate(2px, -2px);
}

/* Join */

.join p {
  max-width: 32rem;
  margin: 0;
  color: var(--muted);
}

.join .big {
  margin-bottom: 0.8rem;
  color: var(--text);
  font-size: clamp(1.3rem, 2.6vw, 1.6rem);
  line-height: 1.45;
  letter-spacing: -0.015em;
}

.join .actions {
  justify-content: flex-start;
  margin-top: 1.8rem;
}

/* Forms */

.form {
  display: grid;
  gap: 1.1rem;
}

.field {
  display: grid;
  gap: 0.45rem;
  min-width: 0;
}

.field label,
.field .label {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
}

.optional {
  margin-left: 0.3rem;
  color: var(--faint);
  font-weight: 400;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.8rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.field textarea {
  resize: vertical;
  min-height: 7rem;
  line-height: 1.55;
}

.field select {
  appearance: none;
  padding-right: 2.4rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M3 4.5l3 3 3-3' stroke='%239a978f' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.95rem center;
  cursor: pointer;
}

.field select option {
  background: #121211;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--faint);
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: var(--line-strong);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(160, 210, 110, 0.5);
  background: rgba(0, 0, 0, 0.5);
  box-shadow: 0 0 0 4px rgba(160, 210, 110, 0.08);
}

.field [aria-invalid="true"] {
  border-color: rgba(232, 128, 110, 0.6);
}

.input-wrap {
  position: relative;
}

.input-wrap input {
  padding-right: 4.2rem;
}

.pw-toggle {
  position: absolute;
  top: 50%;
  right: 0.5rem;
  transform: translateY(-50%);
  padding: 0.3rem 0.55rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.78rem;
  cursor: pointer;
}

.pw-toggle:hover {
  color: var(--text);
  background: var(--surface-hover);
}

.input-prefix {
  position: absolute;
  top: 50%;
  left: 0.95rem;
  transform: translateY(-50%);
  color: var(--faint);
  font-size: 0.95rem;
  pointer-events: none;
}

.input-wrap .input-prefix + input {
  padding-left: 2rem;
  padding-right: 0.95rem;
}

.hint {
  margin: 0;
  color: var(--faint);
  font-size: 0.78rem;
  transition: color 0.2s ease;
}

.hint[data-state="good"] {
  color: var(--accent);
}

.hint[data-state="bad"],
.hint.warn {
  color: #eaa597;
}

.strength {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.strength-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  flex: 1;
}

.strength-bar span {
  height: 3px;
  border-radius: 2px;
  background: var(--line);
  transition: background 0.25s ease;
}

.strength[data-score="0"] .strength-bar span:nth-child(-n + 1) {
  background: #c9665a;
}

.strength[data-score="1"] .strength-bar span:nth-child(-n + 1) {
  background: #d98b5f;
}

.strength[data-score="2"] .strength-bar span:nth-child(-n + 2) {
  background: #d9c36a;
}

.strength[data-score="3"] .strength-bar span:nth-child(-n + 3),
.strength[data-score="4"] .strength-bar span {
  background: var(--accent);
}

.strength-label {
  min-width: 8.5rem;
  color: var(--faint);
  font-size: 0.78rem;
  text-align: right;
}

.form-error {
  margin: 0;
  padding: 0.7rem 0.9rem;
  border: 1px solid rgba(232, 128, 110, 0.25);
  border-radius: 10px;
  background: rgba(232, 128, 110, 0.06);
  color: #eaa597;
  font-size: 0.86rem;
}

.btn-block {
  width: 100%;
  padding-block: 0.9rem;
  margin-top: 0.3rem;
}

.btn.loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}

.btn.loading::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border: 1.5px solid rgba(0, 0, 0, 0.25);
  border-top-color: #0a0a0a;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Auth */

.auth {
  display: grid;
  place-items: center;
  padding: clamp(3rem, 10vh, 6rem) 0 5rem;
}

.auth-card {
  width: min(400px, 100%);
}

.auth-title {
  margin-top: 0.8rem;
  font-size: clamp(3rem, 9vw, 3.8rem);
  background: linear-gradient(180deg, #fbfaf6 30%, #8d8a83 130%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.auth-sub {
  margin: 0.8rem 0 1.8rem;
  color: var(--muted);
}

.segmented {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 1.6rem;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
}

.segmented button {
  position: relative;
  z-index: 1;
  padding: 0.55rem 0.8rem;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.25s ease;
}

.segmented button[aria-selected="true"] {
  color: #0a0a0a;
}

.segmented-thumb {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc(50% - 4px);
  border-radius: 999px;
  background: var(--text);
  transition: transform 0.35s var(--ease);
}

.segmented[data-mode="signup"] .segmented-thumb {
  transform: translateX(100%);
}

.auth-fine {
  margin-top: 1.6rem;
  text-align: center;
}

/* Apply */

.apply {
  max-width: 640px;
  margin: 0 auto;
  padding-bottom: 5rem;
}

.account-bar {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 2.4rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}

.account-initial {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(160, 210, 110, 0.1);
  box-shadow: 0 0 0 1px rgba(160, 210, 110, 0.25);
  color: var(--accent);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
}

.account-who {
  flex: 1;
  min-width: 0;
  line-height: 1.3;
}

.account-who strong {
  display: block;
  font-weight: 500;
  font-size: 0.92rem;
}

.account-who small {
  display: block;
  overflow: hidden;
  color: var(--faint);
  font-size: 0.8rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-bar .text-btn {
  font-size: 0.85rem;
}

.apply fieldset {
  display: grid;
  gap: 1.1rem;
  margin: 0 0 1.4rem;
  padding: 0 0 2.2rem;
  border: 0;
  border-bottom: 1px solid var(--line);
}

.apply legend {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  margin-bottom: 1.3rem;
  padding: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.8rem;
  line-height: 1;
}

.apply legend span {
  color: var(--faint);
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.chips label {
  position: relative;
  cursor: pointer;
}

.chips input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.chips span {
  display: inline-block;
  padding: 0.5rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.3);
  color: var(--muted);
  font-size: 0.86rem;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.chips label:hover span {
  color: var(--text);
  border-color: var(--line-strong);
}

.chips input:checked + span {
  color: #0a0a0a;
  background: var(--text);
  border-color: var(--text);
}

.chips input:focus-visible + span {
  outline: 1px solid var(--accent);
  outline-offset: 3px;
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--muted);
  font-size: 0.9rem;
  cursor: pointer;
}

.check input {
  appearance: none;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin: 0.2rem 0 0;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.35);
  cursor: pointer;
}

.check input:checked {
  background: var(--accent);
  border-color: var(--accent);
}

.check input:checked::after {
  content: "";
  width: 9px;
  height: 5px;
  margin-top: -2px;
  border-left: 1.6px solid #0b0c08;
  border-bottom: 1.6px solid #0b0c08;
  transform: rotate(-45deg);
}

.check-sm {
  align-items: center;
  font-size: 0.86rem;
}

.check-sm input {
  margin: 0;
}

.account-menu {
  position: relative;
}

.menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 5;
  display: grid;
  min-width: 170px;
  padding: 0.35rem;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: rgba(18, 18, 17, 0.96);
  backdrop-filter: blur(16px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.menu button {
  padding: 0.6rem 0.75rem;
  border: 0;
  border-radius: 9px;
  background: none;
  color: var(--text);
  font: inherit;
  font-size: 0.88rem;
  text-align: left;
  cursor: pointer;
}

.menu button:hover,
.menu button:focus-visible {
  background: var(--surface-hover);
  outline: none;
}

.menu .danger {
  color: #eaa597;
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.6rem;
}

.form-actions .fine {
  margin: 0;
}

.submitted {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2.5rem 0 1rem;
  outline: none;
}

.submitted-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 1.4rem;
  border-radius: 50%;
  background: rgba(160, 210, 110, 0.1);
  box-shadow: 0 0 0 1px rgba(160, 210, 110, 0.3), 0 0 50px rgba(160, 210, 110, 0.15);
  color: var(--accent);
}

.submitted h2 {
  color: var(--text);
}

.submitted > p {
  max-width: 26rem;
  margin: 0.9rem 0 0;
  color: var(--muted);
}

.summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: 100%;
  margin: 2.2rem 0 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.summary > div {
  padding: 1.1rem 0.5rem;
  min-width: 0;
}

.summary > div + div {
  border-left: 1px solid var(--line);
}

.summary dt {
  color: var(--faint);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.summary dd {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}

/* Toast */

.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  z-index: 40;
  padding: 0.55rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(20, 20, 18, 0.9);
  backdrop-filter: blur(12px);
  color: var(--text);
  font-size: 0.85rem;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(10px);
  transition: opacity 0.25s ease, transform 0.3s var(--ease);
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Reveal */

.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  filter: blur(4px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease), filter 0.9s var(--ease);
  transition-delay: var(--d, 0s);
}

.js .reveal.in {
  opacity: 1;
  transform: none;
  filter: none;
}

/* Responsive */

@media (max-width: 680px) {
  .wrap {
    width: calc(100% - 2.2rem);
  }

  .nav a {
    padding: 0.4rem 0.55rem;
  }

  .chapter {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }

  .chapter-head {
    position: static;
  }

  .links a {
    grid-template-columns: 1fr auto;
    gap: 0.3rem 1rem;
  }

  .links .label {
    grid-column: 1 / -1;
  }

  .grid,
  .team,
  .summary {
    grid-template-columns: 1fr;
  }

  .summary > div + div {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .form-actions {
    flex-direction: column-reverse;
    align-items: stretch;
    text-align: center;
  }

  .vignette {
    background: radial-gradient(ellipse 120% 80% at 50% 40%, transparent 40%, rgba(0, 0, 0, 0.6) 80%, rgba(0, 0, 0, 0.9) 100%);
  }
}

@media (max-width: 440px) {
  .brand-name {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
    filter: none;
  }

  .frog-stage::before,
  .frog.hop,
  .frog.hop ~ .frog-shadow,
  .frog-ripple.go {
    animation: none;
  }
}
