:root {
  --charcoal: #0c0c0e;
  --charcoal-elevated: #141417;
  --charcoal-soft: #1c1c22;
  --border: rgba(201, 162, 39, 0.14);
  --border-strong: rgba(201, 162, 39, 0.28);
  --gold: #c9a227;
  --gold-bright: #e8c45a;
  --gold-muted: #9a7a28;
  --gold-deep: #5c4a12;
  --dust: #f0ebe3;
  --text: #f3efe8;
  --text-secondary: #a8a399;
  --font-display: "Syne", system-ui, sans-serif;
  --font-body: "Literata", "Times New Roman", serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --max: 40rem;
  --wide: 72rem;
  --pad: clamp(1rem, 4vw, 1.5rem);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overscroll-behavior-x: none;
}

body {
  margin: 0;
  min-height: 100vh;
  max-width: 100%;
  overflow-x: hidden;
  overscroll-behavior-x: none;
  touch-action: pan-y;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  font-optical-sizing: auto;
  background-color: var(--charcoal);
  background-image:
    radial-gradient(ellipse 100% 70% at 0% -20%, rgba(232, 196, 90, 0.12), transparent 50%),
    radial-gradient(ellipse 80% 55% at 100% 10%, rgba(92, 74, 18, 0.35), transparent 48%),
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(201, 162, 39, 0.06), transparent 55%),
    linear-gradient(180deg, #121215 0%, var(--charcoal) 35%, #080809 100%);
  background-attachment: fixed;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  z-index: 0;
}

a {
  color: var(--gold-bright);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  transition: color 0.35s var(--ease), border-color 0.35s var(--ease), opacity 0.35s var(--ease);
  touch-action: manipulation;
}

a:hover,
a:focus-visible {
  color: var(--dust);
}

a:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 4px;
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
}

.wrap {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 2 * var(--pad)), var(--wide));
  max-width: 100%;
  margin-inline: auto;
  overflow-x: hidden;
  min-width: 0;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.site-header a.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-bright);
  text-decoration: none;
  flex-shrink: 0;
  z-index: 3;
}

.nav-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.nav-burger {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  border: 1px solid var(--border-strong);
  background: rgba(20, 20, 23, 0.7);
  cursor: pointer;
  z-index: 3;
  flex-shrink: 0;
  margin-left: auto;
}

.nav-burger span,
.nav-burger span::before,
.nav-burger span::after {
  display: block;
  width: 1.15rem;
  height: 1.5px;
  background: var(--gold-bright);
  position: relative;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.nav-burger span::before,
.nav-burger span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-burger span::before {
  top: -5px;
}

.nav-burger span::after {
  top: 5px;
}

.nav-toggle:checked + .nav-burger span {
  background: transparent;
}

.nav-toggle:checked + .nav-burger span::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle:checked + .nav-burger span::after {
  top: 0;
  transform: rotate(-45deg);
}

.site-header nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem 1.25rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-header nav a {
  color: var(--text-secondary);
  text-decoration: none;
  opacity: 0.9;
  padding: 0.35rem 0;
}

.site-header nav a:hover,
.site-header nav a[aria-current="page"] {
  color: var(--gold-bright);
  opacity: 1;
}

/* Hero */
.hero {
  min-height: calc(100svh - 5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 0 4.5rem;
  position: relative;
  overflow: hidden;
  min-width: 0;
  max-width: 100%;
  width: 100%;
}

.hero > * {
  min-width: 0;
  max-width: 100%;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
}

.brand {
  margin: 0;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: visible;
  line-height: 1.15;
  animation: brand-in 1.1s var(--ease) both;
}

.brand span {
  display: inline-block;
  max-width: 100%;
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.5rem, 11vw, 8rem);
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: #e8c45a;
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  /* soft gold sheen without clipping risk of background-clip */
  text-shadow: 0 0 28px rgba(232, 196, 90, 0.22);
  padding-right: 0.06em;
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .brand span {
    color: transparent;
    text-shadow: none;
    background: linear-gradient(100deg, #f6de7a 0%, #e8c45a 55%, #d8b84a 100%);
    -webkit-background-clip: text;
    background-clip: text;
  }
}

.hero h1 {
  margin: 1.5rem 0 0;
  max-width: 18ch;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.25rem, 3.2vw, 2rem);
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--dust);
  animation: rise 1s var(--ease) 0.12s both;
  overflow-wrap: anywhere;
}

.hero .lede {
  margin: 1rem 0 0;
  max-width: 36ch;
  font-size: clamp(1rem, 2.8vw, 1.125rem);
  font-weight: 400;
  color: var(--text-secondary);
  animation: rise 1s var(--ease) 0.22s both;
}

.hero-links {
  margin-top: 2.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  animation: rise 1s var(--ease) 0.34s both;
}

.hero-links a {
  color: var(--gold-bright);
  text-decoration: none;
  border-bottom: 1px solid rgba(232, 196, 90, 0.35);
  padding: 0.45rem 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.hero-links a:hover {
  border-bottom-color: var(--gold-bright);
  color: var(--dust);
}

.hero-links a.ghost {
  border-bottom-color: transparent;
  color: var(--text-secondary);
}

.hero-links a.ghost:hover {
  color: var(--gold-bright);
}

/* Sections */
.section {
  padding: clamp(3rem, 8vw, 5.5rem) 0;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: 1rem;
}

.section:last-of-type {
  border-bottom: none;
}

.section-label {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-muted);
}

.section h2 {
  margin: 0 0 1rem;
  max-width: 20ch;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.45rem, 5vw, 2.35rem);
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--dust);
  overflow-wrap: anywhere;
}

.section > .intro {
  margin: 0 0 1.75rem;
  max-width: 38rem;
  color: var(--text-secondary);
  font-size: clamp(1rem, 2.5vw, 1.1rem);
}

.benefit-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 40rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.benefit-list li {
  padding: 1.2rem 0;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 0.35rem;
}

.benefit-list li:last-child {
  border-bottom: 1px solid var(--border);
}

.benefit-list strong {
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  color: var(--gold-bright);
}

.benefit-list span {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.65;
}

.split {
  display: grid;
  gap: 2rem;
}

@media (min-width: 840px) {
  .split {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 4rem;
    align-items: start;
  }

  .split .sticky-head {
    position: sticky;
    top: 2.5rem;
  }
}

.contact-block {
  padding: clamp(3rem, 8vw, 5rem) 0 clamp(3.5rem, 8vw, 6rem);
  scroll-margin-top: 1rem;
}

.contact-block h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.4rem, 4.5vw, 2rem);
  color: var(--dust);
  overflow-wrap: anywhere;
}

.contact-block p {
  margin: 0 0 1.5rem;
  max-width: 36rem;
  color: var(--text-secondary);
}

.contact-block .mail,
.contact-lines a {
  font-family: var(--font-display);
  font-size: clamp(1rem, 4vw, 1.15rem);
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
  border-bottom: 1px solid var(--border-strong);
  padding: 0.35rem 0;
  word-break: break-word;
}

.contact-lines {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.contact-lines .hint {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-secondary);
  border: none;
  font-family: var(--font-body);
  font-weight: 400;
  letter-spacing: 0;
}

.page-hero {
  padding: clamp(2rem, 6vw, 3.5rem) 0 1rem;
  max-width: 40rem;
}

.page-hero h1 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-weight: 750;
  font-size: clamp(1.75rem, 7vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--dust);
  overflow-wrap: anywhere;
}

.page-hero p {
  margin: 0;
  color: var(--text-secondary);
  font-size: clamp(1rem, 3vw, 1.1rem);
}

.register-layout {
  display: grid;
  gap: 2.5rem;
  padding: 1.5rem 0 4rem;
}

@media (min-width: 900px) {
  .register-layout {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 4rem;
    align-items: start;
  }
}

.register-aside .steps {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
}

.register-aside .steps li {
  padding: 1.1rem 0;
  border-top: 1px solid var(--border);
  color: var(--text-secondary);
}

.register-aside .steps li:last-child {
  border-bottom: 1px solid var(--border);
}

.register-aside .steps strong {
  display: block;
  margin-bottom: 0.25rem;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 0.9rem;
  color: var(--gold-bright);
}

.form {
  display: grid;
  gap: 1.15rem;
  max-width: 34rem;
  width: 100%;
}

.form label {
  display: grid;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-muted);
}

.form input,
.form select,
.form textarea {
  width: 100%;
  max-width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid var(--border-strong);
  border-radius: 0;
  background: rgba(20, 20, 23, 0.85);
  color: var(--dust);
  font-family: var(--font-body);
  font-size: 16px; /* prevents iOS input zoom */
  line-height: 1.4;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(28, 28, 34, 0.95);
}

.form select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--gold-muted) 50%),
    linear-gradient(135deg, var(--gold-muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% - 2px), calc(100% - 12px) calc(50% - 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.form textarea {
  min-height: 7rem;
  resize: vertical;
}

.form .row-2 {
  display: grid;
  gap: 1.15rem;
}

@media (min-width: 560px) {
  .form .row-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.form .check {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text-secondary);
}

.form .check input {
  width: auto;
  min-width: 1.1rem;
  min-height: 1.1rem;
  margin-top: 0.3rem;
  accent-color: var(--gold);
}

.form button {
  justify-self: stretch;
  margin-top: 0.35rem;
  min-height: 48px;
  padding: 0.95rem 1.5rem;
  border: none;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold) 55%, var(--gold-deep));
  color: #141210;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: filter 0.3s var(--ease), transform 0.3s var(--ease);
  touch-action: manipulation;
}

@media (min-width: 560px) {
  .form button {
    justify-self: start;
  }
}

.form button:hover {
  filter: brightness(1.06);
}

.form button:active {
  transform: translateY(1px);
}

.form-note {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.banner-ok,
.banner-err {
  margin: 0 0 1.5rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--border-strong);
  color: var(--dust);
  background: rgba(201, 162, 39, 0.08);
}

.banner-err {
  border-color: rgba(220, 120, 100, 0.45);
  background: rgba(220, 100, 80, 0.1);
  color: #f0d2c8;
}

.form button:disabled {
  opacity: 0.65;
  cursor: wait;
  filter: none;
}

.site-footer {
  padding: 1.75rem 0 calc(2.25rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.site-footer strong {
  color: var(--gold-muted);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.site-footer .links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.15rem;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.site-footer .links a {
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.35rem 0;
}

.site-footer .links a:hover {
  color: var(--gold-bright);
}

/* Legal */
.legal {
  padding: clamp(2rem, 6vw, 3rem) 0 4rem;
  max-width: var(--max);
}

.legal .eyebrow {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-muted);
}

.legal h1 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-weight: 750;
  font-size: clamp(1.75rem, 7vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--dust);
}

.legal .updated {
  margin: 0 0 2rem;
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.legal h2 {
  margin: 2.25rem 0 0.85rem;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  color: var(--gold-bright);
}

.legal p,
.legal li {
  color: var(--text-secondary);
}

.legal p {
  margin: 0 0 1rem;
}

.legal ul,
.legal ol {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
}

.legal li {
  margin-bottom: 0.45rem;
}

.legal strong {
  color: var(--dust);
  font-weight: 600;
}

.legal .draft-banner {
  margin: 0 0 1.75rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(201, 162, 39, 0.45);
  border-radius: 8px;
  background: rgba(201, 162, 39, 0.08);
  font-size: 0.92rem;
  color: var(--dust);
  line-height: 1.5;
}

.legal .draft-banner strong {
  color: var(--gold-bright);
  letter-spacing: 0.06em;
}

.legal .placeholder {
  color: var(--gold-muted);
  font-family: ui-monospace, monospace;
  font-size: 0.88em;
}

.site-footer .links.partners {
  margin-top: 0.35rem;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.site-footer .links.partners span {
  margin-right: 0.35rem;
}

@keyframes brand-in {
  from {
    opacity: 0;
    transform: translateY(0.5rem);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(0.85rem);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

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

/* —— Phone layout —— */
@media (max-width: 767px) {
  body {
    background-attachment: scroll;
    font-size: 1rem;
  }

  .nav-burger {
    display: grid;
  }

  .site-header nav {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 0 1rem;
    background: rgba(12, 12, 14, 0.97);
    border-bottom: 1px solid var(--border);
    z-index: 2;
    box-sizing: border-box;
  }

  .nav-toggle:checked ~ nav {
    display: flex;
  }

  .site-header nav a {
    padding: 0.9rem 0.15rem;
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    border-bottom: 1px solid var(--border);
  }

  .site-header nav a:last-child {
    border-bottom: none;
  }

  .hero {
    min-height: auto;
    padding: 2.25rem 0 3rem;
    overflow: visible;
  }

  .brand {
    width: 100%;
    max-width: 100%;
  }

  .brand span {
    font-size: 2.5rem; /* JS fitBrand overrides after fonts load */
  }

  .hero h1 {
    max-width: 100%;
    margin-top: 1.15rem;
  }

  .hero .lede {
    max-width: 100%;
  }

  .section h2,
  .split .sticky-head h2 {
    max-width: 100%;
  }

  .section > .intro {
    margin-bottom: 1.25rem;
  }

  .benefit-list li {
    padding: 1rem 0;
  }

  .contact-block {
    min-height: 0;
  }

  .form button {
    width: 100%;
  }
}

@media (min-width: 768px) {
  .nav-burger {
    display: none !important;
  }

  .site-header nav {
    display: flex !important;
    position: static;
    background: none;
    border: none;
    padding: 0;
    flex-direction: row;
  }
}
