:root {
  --navy: #06172f;
  --navy-soft: #0d2748;
  --navy-ink: #102033;
  --gold: #c89022;
  --gold-bright: #ffd166;
  --teal: #0f8f8a;
  --wine: #8d1f3f;
  --red: #a4273f;
  --green: #11845b;
  --page: #eef3f8;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --line: #d7e0eb;
  --muted: #5a687b;
  --shadow: 0 24px 70px rgba(5, 18, 40, 0.2);
  --shadow-strong: 0 32px 90px rgba(5, 18, 40, 0.32);
  --radius: 8px;
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html {
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, #f7f9fc 0%, var(--page) 42%, #ffffff 100%);
  color: var(--navy-ink);
  font-family: Inter, Aptos, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  max-width: 100%;
  overflow-x: hidden;
}

body::selection {
  background: rgba(255, 209, 102, 0.45);
}

img,
svg {
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ─── HEADER ──────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 68px;
  padding: 0 32px;
  background:
    linear-gradient(90deg, rgba(5, 18, 39, 0.98), rgba(9, 33, 62, 0.98));
  color: #fff;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  font-weight: 800;
  font-size: 0.78rem;
  line-height: 1.15;
  text-transform: uppercase;
  white-space: nowrap;
}

.brand img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  flex-shrink: 0;
}

.brand,
.button,
.translate-control {
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.translate-control {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid rgba(244, 191, 74, 0.65);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.translate-control svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  stroke: currentColor;
  stroke-width: 1.9;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.translate-control select {
  width: 96px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.translate-control option {
  color: var(--navy);
}

/* ─── BUTTONS ──────────────────────────────────────────────── */

.button {
  display: inline-flex;
  position: relative;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1;
  overflow: hidden;
  white-space: nowrap;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button::after {
  content: "";
  position: absolute;
  inset: -40% auto -40% -70%;
  width: 45%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: skewX(-18deg);
  transition: left 520ms ease;
}

.button:hover::after,
.button:focus-visible::after {
  left: 125%;
}

.button-gold {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold) 62%, #b67718);
  color: #111827;
  box-shadow: 0 10px 28px rgba(200, 144, 34, 0.28);
}

.button-navy {
  width: 100%;
  background: linear-gradient(135deg, var(--navy), #0c315f);
  color: #fff;
}

.button-outline {
  background: #fff;
  color: var(--navy);
  border-color: var(--line);
}

/* ─── HERO ──────────────────────────────────────────────────── */

.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--navy);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: rgba(3, 12, 28, 0);
  transition: background 360ms ease;
}

.hero-image {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.04);
  animation: heroDrift 18s ease-in-out infinite alternate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(6, 23, 47, 0.94) 0%, rgba(6, 23, 47, 0.78) 42%, rgba(6, 23, 47, 0.5) 100%),
    linear-gradient(180deg, rgba(6, 23, 47, 0.28), rgba(6, 23, 47, 0.6));
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(440px, 0.82fr);
  gap: 44px;
  align-items: center;
  max-width: 1220px;
  min-height: calc(100svh - 112px);
  margin: 0 auto;
  padding: 28px 32px 34px;
}

.hero-copy {
  max-width: 600px;
  min-width: 0;
  color: #fff;
}

.hero-copy,
.registration-panel {
  will-change: transform, opacity;
}

.hero-copy h1 {
  margin: 0;
  font-size: 3.15rem;
  line-height: 1.02;
  font-weight: 850;
}

.hero-copy h1 span {
  display: block;
  margin-bottom: 12px;
  color: var(--gold-bright);
  font-size: 1.8rem;
}

.hero-copy h1 strong {
  display: block;
  font-weight: inherit;
}

.hero-copy p {
  max-width: 510px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.18rem;
  line-height: 1.45;
}

.date-line {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
}

.date-line svg {
  width: 28px;
  height: 28px;
  color: var(--gold-bright);
  stroke: currentColor;
  stroke-width: 1.9;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.date-line b {
  color: var(--gold-bright);
}

.time-line {
  margin-top: 10px;
}

.countdown-card {
  width: min(100%, 520px);
  margin-top: 24px;
  padding: 16px;
  border: 1px solid rgba(255, 209, 102, 0.4);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 209, 102, 0.18), rgba(15, 143, 138, 0.12)),
    rgba(6, 23, 47, 0.68);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(14px);
}

.countdown-status {
  display: block;
  color: var(--gold-bright);
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.countdown-unit {
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 74px;
  padding: 10px 6px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.09);
}

.countdown-unit b {
  display: block;
  color: #fff;
  font-size: 1.76rem;
  font-weight: 900;
  line-height: 1;
}

.countdown-unit small {
  display: block;
  margin-top: 7px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.7rem;
  font-weight: 850;
  line-height: 1;
  text-transform: uppercase;
}

.countdown-card.is-live {
  border-color: rgba(17, 132, 91, 0.72);
  background:
    linear-gradient(135deg, rgba(17, 132, 91, 0.28), rgba(255, 209, 102, 0.1)),
    rgba(6, 23, 47, 0.72);
}

.hero-cta {
  min-width: 160px;
  min-height: 46px;
  margin-top: 26px;
  font-size: 1rem;
}

/* ─── REGISTRATION PANEL ──────────────────────────────────── */

.registration-panel {
  scroll-margin-top: 108px;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.95));
  box-shadow: var(--shadow);
  transition: transform 420ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 420ms ease, border-color 420ms ease;
}

body.form-focused .hero::after {
  background: rgba(3, 12, 28, 0.48);
}

body.form-focused .registration-panel {
  position: relative;
  z-index: 4;
  border-color: rgba(255, 209, 102, 0.92);
  box-shadow: 0 0 0 1px rgba(255, 209, 102, 0.34), var(--shadow-strong);
  transform: scale(1.035);
}

.registration-form.form-arrive {
  animation: formArrive 820ms cubic-bezier(0.16, 1, 0.3, 1);
}

.registration-form,
.success-message {
  padding: 20px 30px;
}

.form-heading {
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--gold);
}

.form-heading h2,
.success-message h2,
.focus-copy h2 {
  margin: 0;
  color: var(--navy);
  font-size: 1.72rem;
  line-height: 1.15;
}

.form-heading h2 {
  font-size: 1.45rem;
}

.form-heading p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.field {
  margin-bottom: 8px;
}

.phone-grid {
  display: grid;
  grid-template-columns: minmax(150px, 0.72fr) minmax(0, 1fr);
  gap: 10px;
}

.field label,
.conference-fieldset legend {
  display: block;
  margin-bottom: 5px;
  color: var(--navy);
  font-size: 0.94rem;
  font-weight: 800;
}

.field input,
.field select {
  width: 100%;
  min-height: 38px;
  padding: 7px 13px;
  border: 1px solid #cfd7e2;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--navy-ink);
  outline: 0;
}

.field select {
  appearance: none;
  padding-right: 34px;
  background:
    linear-gradient(45deg, transparent 50%, var(--navy) 50%) calc(100% - 18px) 50% / 6px 6px no-repeat,
    linear-gradient(135deg, var(--navy) 50%, transparent 50%) calc(100% - 12px) 50% / 6px 6px no-repeat,
    rgba(255, 255, 255, 0.86);
  cursor: pointer;
}

.field input:focus,
.field select:focus,
.conference-option:has(input:focus-visible) {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(217, 155, 43, 0.18);
}

.field input[aria-invalid="true"],
.field select[aria-invalid="true"] {
  border-color: var(--red);
}

.conference-fieldset {
  min-width: 0;
  margin: 4px 0 12px;
  padding: 0;
  border: 0;
}

.conference-options {
  display: grid;
  gap: 6px;
}

.conference-option {
  display: grid;
  grid-template-columns: 18px 28px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-height: 38px;
  padding: 5px 10px;
  border: 1px solid #d6dee9;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.86);
  cursor: pointer;
  transition: transform 170ms ease, border-color 170ms ease, background 170ms ease, box-shadow 170ms ease;
}

.conference-option:hover {
  transform: translateX(3px);
  border-color: rgba(15, 143, 138, 0.38);
  box-shadow: 0 8px 22px rgba(13, 39, 72, 0.08);
}

.conference-option:has(input:checked) {
  border-color: rgba(200, 144, 34, 0.88);
  background: linear-gradient(90deg, #fff8e6, #ffffff);
  box-shadow: inset 3px 0 0 var(--gold);
}

.conference-option input {
  width: 16px;
  height: 16px;
  accent-color: var(--gold);
}

.option-icon {
  color: var(--gold);
}

.option-icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 1.65;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.option-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
  color: var(--navy);
  font-weight: 800;
}

.option-copy span {
  overflow-wrap: anywhere;
}

.option-copy strong {
  flex: 0 0 auto;
  font-size: 0.98rem;
}

.field-error {
  margin: 4px 0 0;
  color: var(--red);
  font-size: 0.82rem;
  font-weight: 700;
}

.field-error:empty {
  margin: 0;
}

.submit-button {
  min-height: 44px;
  margin-top: 2px;
  box-shadow: 0 12px 24px rgba(6, 23, 47, 0.2);
}

.success-message {
  min-height: 524px;
  display: grid;
  align-content: center;
  justify-items: start;
}

.success-message[hidden] {
  display: none;
}

.success-mark {
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: #e8f7ee;
  color: var(--green);
  animation: successPop 480ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.success-mark svg {
  width: 42px;
  height: 42px;
  stroke: currentColor;
  stroke-width: 2.4;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.success-message p {
  margin: 12px 0 24px;
  color: var(--muted);
  font-size: 1.05rem;
}

.focus-section {
  max-width: 1220px;
  margin: 0 auto;
  padding: 56px 32px;
}

/* ─── FOCUS SECTION ───────────────────────────────────────── */

.focus-section {
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  padding-top: 58px;
}

.focus-media {
  position: relative;
  min-height: 426px;
  overflow: visible;
}

.focus-media img {
  width: 100%;
  border-radius: var(--radius);
  object-fit: cover;
  box-shadow: 0 20px 52px rgba(13, 39, 72, 0.18);
  transition: transform 260ms ease, box-shadow 260ms ease;
}

.focus-main {
  position: relative;
  z-index: 1;
  aspect-ratio: 16 / 10;
}

.focus-media .focus-secondary {
  position: absolute;
  right: 24px;
  bottom: 0;
  z-index: 3;
  width: 38%;
  aspect-ratio: 4 / 5;
  border: 6px solid #ffffff;
  transform: translate(16px, 26px);
  box-shadow: 0 26px 70px rgba(5, 18, 40, 0.24);
}

.focus-media:hover .focus-main {
  transform: translateY(-4px);
}

.focus-media:hover .focus-secondary {
  transform: translate(16px, 18px);
}

.focus-copy h2 {
  max-width: 560px;
  font-size: 2.15rem;
}

.focus-copy > p {
  max-width: 620px;
  margin: 18px 0 24px;
  color: var(--muted);
  font-size: 1.05rem;
}

.focus-gallery {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 12px;
  margin-top: 26px;
}

.focus-gallery img {
  width: 100%;
  min-width: 0;
  border-radius: var(--radius);
  object-fit: cover;
  box-shadow: 0 16px 42px rgba(13, 39, 72, 0.14);
  transition: transform 240ms ease, box-shadow 240ms ease, filter 240ms ease;
}

.focus-gallery img:first-child {
  grid-row: span 2;
  aspect-ratio: 4 / 5;
}

.focus-gallery img:not(:first-child) {
  aspect-ratio: 16 / 10;
}

.focus-gallery img:nth-child(2) {
  transform: translateY(12px);
}

.focus-gallery img:nth-child(3) {
  transform: translateY(-4px);
}

.focus-gallery img:hover {
  filter: saturate(1.06) contrast(1.02);
  box-shadow: 0 22px 56px rgba(13, 39, 72, 0.2);
}

.focus-gallery img:nth-child(2):hover {
  transform: translateY(6px);
}

.focus-gallery img:nth-child(3):hover {
  transform: translateY(-10px);
}

/* ─── FOOTER ──────────────────────────────────────────────── */

.site-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 30px 20px;
  background: linear-gradient(90deg, #041226, var(--navy), #092742);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.95rem;
}

.site-footer img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

/* ─── REVEAL ANIMATIONS ───────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 620ms ease, transform 620ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.focus-gallery img.reveal:nth-child(2) {
  transition-delay: 70ms;
}

.focus-gallery img.reveal:nth-child(3) {
  transition-delay: 140ms;
}

/* ─── KEYFRAMES ───────────────────────────────────────────── */

@keyframes heroDrift {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }

  to {
    transform: scale(1.08) translate3d(-18px, 10px, 0);
  }
}

@keyframes formArrive {
  0% {
    opacity: 0.72;
    transform: translateY(24px) scale(0.97);
  }

  64% {
    opacity: 1;
    transform: translateY(-4px) scale(1.012);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes successPop {
  from {
    opacity: 0;
    transform: scale(0.72);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ─── RTL ─────────────────────────────────────────────────── */

html[dir="rtl"] .conference-option:hover {
  transform: translateX(-4px);
}

html[dir="rtl"] .conference-option:has(input:checked) {
  box-shadow: inset -3px 0 0 var(--gold);
}

/* ─── RESPONSIVE ──────────────────────────────────────────── */

@media (max-width: 1180px) {
  .focus-media .focus-secondary {
    width: 42%;
  }
}

@media (max-width: 1020px) {
  .hero-grid {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 48px;
  }

  .hero-copy {
    max-width: 720px;
  }

  .registration-panel {
    max-width: 720px;
  }

  .focus-section {
    grid-template-columns: 1fr;
    gap: 34px;
  }
}

/* ─── MOBILE HEADER (≤ 860px)
   Single compact bar: Logo | Lang + Register
   Brand text hidden, everything stays on one line.
──────────────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .site-header {
    gap: 12px;
    min-height: 58px;
    padding: 0 18px;
  }

  .brand img {
    width: 32px;
    height: 32px;
  }

  .brand span {
    display: none;
  }

  .header-actions {
    gap: 8px;
  }

  .translate-control {
    height: 32px;
    padding: 0 8px;
    gap: 4px;
  }

  .translate-control svg {
    width: 15px;
    height: 15px;
  }

  .translate-control select {
    width: 74px;
    font-size: 0.76rem;
  }

  .header-cta {
    min-height: 32px;
    padding: 0 12px;
    font-size: 0.78rem;
  }
}

/* ─── SMALL MOBILE (≤ 600px)
   Row 1: Logo  |  Lang + Register (compact, inline)
──────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .site-header {
    position: sticky;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0;
    width: 100%;
    max-width: 100vw;
    min-height: auto;
    padding: 10px 14px;
    overflow: hidden;
  }

  .brand {
    order: 1;
    flex: 0 0 auto;
    min-width: 34px;
  }

  .brand img {
    width: 34px;
    height: 34px;
  }

  .brand span {
    display: none;
  }

  .header-actions {
    order: 2;
    flex-direction: row;
    align-items: center;
    flex-shrink: 0;
    max-width: calc(100% - 48px);
    gap: 8px;
  }

  .header-avatar-link {
    min-height: 34px;
    padding: 0 10px;
    font-size: 0.75rem;
  }

  .translate-control {
    height: 34px;
    padding: 0 8px;
    gap: 4px;
  }

  .translate-control svg {
    width: 15px;
    height: 15px;
  }

  .translate-control select {
    width: 70px;
    font-size: 0.76rem;
  }

  .header-cta {
    min-height: 34px;
    padding: 0 14px;
    font-size: 0.8rem;
  }

  /* Hero & sections */
  .hero-grid,
  .focus-section {
    width: 100%;
    max-width: 100vw;
    padding-right: 16px;
    padding-left: 16px;
    overflow: hidden;
  }

  .hero-grid {
    padding-top: 32px;
  }

  .hero-copy,
  .registration-panel {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .hero-copy h1 {
    font-size: 2rem;
  }

  .hero-copy h1 span {
    font-size: 1.2rem;
    margin-bottom: 8px;
  }

  .hero-copy p {
    font-size: 1rem;
    max-width: 100%;
  }

  .hero-copy h1,
  .hero-copy p,
  .form-heading h2,
  .form-heading p {
    overflow-wrap: anywhere;
  }

  .countdown-card {
    width: 100%;
    max-width: 100%;
    padding: 12px;
    overflow: hidden;
  }

  .countdown-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .countdown-unit {
    min-height: 64px;
    padding: 8px 4px;
  }

  .countdown-unit b {
    font-size: 1.32rem;
  }

  .countdown-unit small {
    font-size: 0.62rem;
  }

  .hero-cta {
    min-height: 44px;
    font-size: 0.95rem;
  }

  .registration-form,
  .success-message {
    width: 100%;
    max-width: 100%;
    padding: 20px 18px;
  }

  .phone-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .form-heading h2,
  .success-message h2 {
    font-size: 1.28rem;
  }

  .option-copy {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .focus-media {
    min-height: auto;
    padding-bottom: 0;
  }

  .focus-media .focus-secondary {
    position: relative;
    right: auto;
    bottom: auto;
    width: min(72%, 260px);
    margin: -44px 18px 0 auto;
    transform: none;
  }

  .focus-media:hover .focus-secondary {
    transform: none;
  }

  .focus-copy h2 {
    font-size: 1.62rem;
  }

  .focus-gallery {
    grid-template-columns: 1fr 1fr;
  }

  .focus-gallery img:first-child {
    grid-column: 1 / -1;
    grid-row: auto;
    aspect-ratio: 16 / 9;
  }

  .focus-gallery img:nth-child(2),
  .focus-gallery img:nth-child(3),
  .focus-gallery img:nth-child(2):hover,
  .focus-gallery img:nth-child(3):hover {
    transform: none;
  }

  .date-line {
    align-items: flex-start;
  }

  .conference-option {
    grid-template-columns: 20px minmax(0, 1fr);
  }

  .option-icon {
    display: none;
  }

  .site-footer {
    align-items: center;
    text-align: center;
  }
}

/* ─── REDUCED MOTION ──────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}


.hp-field {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Dedicated conference publicity links */

body.conference-link-mode .conference-option[hidden],
body.conference-link-mode .conference-option.is-hidden-by-link {
  display: none !important;
}

body.conference-link-mode .conference-options {
  grid-template-columns: 1fr;
}
body.conference-link-mode .conference-option {
  cursor: default;
}

body.conference-link-mode .conference-option:hover {
  transform: none;
}

body.conference-link-mode .conference-option input {
  pointer-events: none;
}

body.conference-link-mode .conference-option.is-link-selected {
  border-color: rgba(200, 144, 34, 0.96);
  background: linear-gradient(90deg, #fff8e6, #ffffff);
  box-shadow: inset 3px 0 0 var(--gold), 0 8px 22px rgba(13, 39, 72, 0.06);
}

.conference-link-note {
  margin: -1px 0 7px;
  padding: 8px 10px;
  border: 1px solid rgba(200, 144, 34, 0.34);
  border-radius: 6px;
  background: rgba(255, 248, 230, 0.86);
  color: var(--navy);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.35;
}

/* ─── HEADER LINKS / AVATAR CREATOR ───────────────────────── */

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(244, 191, 74, 0.42);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link.is-active {
  border-color: rgba(255, 209, 102, 0.95);
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  color: #111827;
  transform: translateY(-1px);
}

.avatar-body {
  background:
    radial-gradient(circle at top left, rgba(15, 143, 138, 0.18), transparent 34%),
    linear-gradient(180deg, #f7f9fc 0%, #eef3f8 44%, #ffffff 100%);
}

.avatar-main {
  min-height: calc(100vh - 150px);
}

.avatar-hero {
  position: relative;
  overflow: hidden;
  padding: 68px 32px 42px;
  background:
    linear-gradient(120deg, rgba(5, 18, 39, 0.96), rgba(9, 36, 72, 0.92)),
    url("assets/outreach-street.jpg") center/cover no-repeat;
  color: #fff;
  isolation: isolate;
}

.avatar-hero::after {
  content: "";
  position: absolute;
  inset: auto -12% -44% -12%;
  height: 170px;
  border-radius: 50% 50% 0 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), #eef3f8);
  z-index: -1;
}

.avatar-hero-copy {
  width: min(100%, 980px);
  margin: 0 auto;
  text-align: center;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold-bright);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.avatar-hero h1 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
  text-transform: uppercase;
}

.avatar-hero p:last-child {
  max-width: 720px;
  margin: 18px auto 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.avatar-builder {
  display: grid;
  grid-template-columns: minmax(300px, 0.82fr) minmax(320px, 1.18fr);
  gap: 26px;
  width: min(1180px, calc(100% - 40px));
  margin: -10px auto 64px;
  position: relative;
  z-index: 2;
}

.avatar-card {
  border: 1px solid rgba(215, 224, 235, 0.92);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 24px 70px rgba(5, 18, 40, 0.12);
  backdrop-filter: blur(16px);
}

.avatar-controls-card {
  padding: 26px;
  align-self: start;
}

.avatar-card-heading h2,
.avatar-preview-heading h2 {
  margin: 0;
  color: var(--navy);
  font-size: 1.46rem;
  line-height: 1.1;
}

.avatar-card-heading p:last-child {
  margin: 10px 0 0;
  color: var(--muted);
}

.avatar-upload {
  display: grid;
  place-items: center;
  gap: 8px;
  margin: 22px 0 14px;
  min-height: 178px;
  padding: 24px;
  border: 2px dashed rgba(200, 144, 34, 0.55);
  border-radius: 14px;
  background: linear-gradient(180deg, #fffaf0, #ffffff);
  cursor: pointer;
  text-align: center;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.avatar-upload:hover,
.avatar-upload:focus-within {
  border-color: var(--gold);
  box-shadow: 0 18px 40px rgba(200, 144, 34, 0.14);
  transform: translateY(-1px);
}

.avatar-upload input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  pointer-events: none;
}

.upload-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  color: #111827;
  box-shadow: 0 14px 28px rgba(200, 144, 34, 0.28);
}

.upload-icon svg {
  width: 28px;
  height: 28px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.upload-title {
  color: var(--navy);
  font-size: 1.04rem;
  font-weight: 900;
}

.upload-copy {
  max-width: 100%;
  color: var(--muted);
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}

.avatar-status {
  min-height: 24px;
  margin: 4px 0 18px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.avatar-status[data-type="success"] {
  color: var(--green);
}

.avatar-status[data-type="error"] {
  color: #b42318;
}

.avatar-range {
  display: grid;
  gap: 10px;
  color: var(--navy);
  font-weight: 900;
}

.avatar-range input {
  width: 100%;
  accent-color: var(--gold);
}

.avatar-tool-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
}

.avatar-tool-buttons .button {
  min-height: 44px;
}

.avatar-tool-buttons .button:disabled {
  opacity: 0.48;
  cursor: not-allowed;
  transform: none;
}

.avatar-tips {
  margin-top: 22px;
  padding: 16px;
  border: 1px solid rgba(215, 224, 235, 0.84);
  border-radius: 12px;
  background: var(--surface-soft);
}

.avatar-tips h3 {
  margin: 0 0 6px;
  color: var(--navy);
  font-size: 1rem;
}

.avatar-tips p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.avatar-preview-card {
  padding: 20px;
}

.avatar-preview-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.avatar-preview-heading span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 900;
  white-space: nowrap;
}

.avatar-canvas-wrap {
  padding: 10px;
  border: 1px solid rgba(215, 224, 235, 0.9);
  border-radius: 16px;
  background:
    linear-gradient(45deg, rgba(215, 224, 235, 0.35) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(215, 224, 235, 0.35) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(215, 224, 235, 0.35) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(215, 224, 235, 0.35) 75%);
  background-position: 0 0, 0 12px, 12px -12px, -12px 0;
  background-size: 24px 24px;
}

#avatarCanvas {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 22px 50px rgba(5, 18, 40, 0.18);
  cursor: grab;
  touch-action: none;
  user-select: none;
}

#avatarCanvas.is-dragging {
  cursor: grabbing;
}

@media (max-width: 1020px) {
  .avatar-builder {
    grid-template-columns: 1fr;
    max-width: 760px;
  }
}

@media (max-width: 860px) {
  .nav-link {
    min-height: 32px;
    padding: 0 10px;
    font-size: 0.76rem;
  }

  .header-register-link {
    display: none;
  }

  .avatar-hero {
    padding: 50px 20px 34px;
  }
}

@media (max-width: 600px) {
  .header-avatar-link {
    padding: 0 10px;
  }

  .avatar-builder {
    width: min(100% - 28px, 760px);
    margin-bottom: 42px;
  }

  .avatar-controls-card,
  .avatar-preview-card {
    padding: 18px;
  }

  .avatar-tool-buttons {
    grid-template-columns: 1fr;
  }

  .avatar-preview-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .avatar-upload {
    min-height: 150px;
    padding: 18px;
  }
}
