/* ============================================================
   LOVEWORLD CONSULATE — SOUTH AMERICA
   Summit Portal 2026 · Design system
   Light editorial diplomatic. Navy ink on warm ivory. No gradients.
   ============================================================ */

:root {
  --ink: #16304b;
  --ink-2: #22405e;
  --ink-3: #2e4f6e;
  --ink-soft: rgba(22, 48, 75, 0.06);
  --ink-faint: rgba(22, 48, 75, 0.03);

  --paper: #ffffff;
  --paper-2: #f4f6f8;
  --paper-3: #e8ebf0;
  --card: #ffffff;

  --steel: #4c5a6b;
  --steel-2: #7e8a99;

  --bronze: #a07a3e;
  --bronze-deep: #7f5f2c;
  --bronze-soft: rgba(160, 122, 62, 0.15);

  --line: rgba(22, 48, 75, 0.1);
  --line-strong: rgba(22, 48, 75, 0.28);

  --ok: #3f6d52;
  --warn: #8a6d3b;
  --bad: #9c4a3a;

  --serif: "Newsreader", "Georgia", serif;
  --sans: "Figtree", -apple-system, "Segoe UI", sans-serif;
  --mono: "Spline Sans Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --e1: 0 1px 2px rgba(22, 48, 75, 0.07);
  --e2: 0 1px 2px rgba(22, 48, 75, 0.08), 0 18px 44px -22px rgba(22, 48, 75, 0.22);
  --inner-hi: inset 0 1px 0 rgba(255, 255, 255, 0.7);

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;

  --maxw: 1180px;

  /* Motion — spring physics (cubic-bezier overshoot) + premium decel.
     Tier 1 browsers use linear() springs via @supports below. */
  --ease-snap: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-dramatic: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --spring-snappy: linear(
    0, 0.009, 0.035 2.1%, 0.141 4.4%, 0.723 12.9%,
    0.938 16.7%, 1.017 19.4%, 1.067 22.5%, 1.089 26.0%,
    1.079 30.3%, 1.049 36.0%, 1.024 42.6%, 1.011 50.3%,
    1.004 59.2%, 1.001 69.3%, 1
  );
  --spring-bouncy: linear(
    0, 0.014, 0.055 1.8%, 0.218 3.7%, 0.867 8.5%,
    1.085 10.7%, 1.212 12.9%, 1.264 15.0%, 1.262 17.0%,
    1.217 19.5%, 1.098 24.0%, 1.035 28.5%, 0.993 33.0%,
    0.981 38.0%, 0.988 45.0%, 0.998 55.0%, 1.001 68.0%, 1
  );
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: rgba(151, 118, 74, 0.3); }

img { max-width: 100%; display: block; }

a { color: var(--bronze-deep); text-underline-offset: 3px; }
a:hover { color: var(--ink); }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 520; line-height: 1.16; margin: 0; letter-spacing: -0.02em; }

/* ---------- Browser surfaces ---------- */
* { caret-color: var(--bronze-deep); }
input, textarea, select { caret-color: var(--ink-2); }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--paper); }
::-webkit-scrollbar-thumb { background: var(--paper-3); border: 3px solid var(--paper); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: var(--steel-2); }

/* ---------- Typographic helpers ---------- */
.mono { font-family: var(--mono); }
.muted { color: var(--steel); }
.small { font-size: 14px; }
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

.display {
  font-family: var(--serif);
  font-weight: 520;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.06;
  letter-spacing: -0.025em;
}

.datalabel {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel);
  font-weight: 500;
}

/* ---------- Layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); }
.wrap--narrow { max-width: 780px; }

.grid-2 { display: grid; grid-template-columns: 1fr; gap: clamp(24px, 4vw, 56px); }
@media (min-width: 860px) {
  .grid-2 { grid-template-columns: 1.05fr 0.95fr; align-items: start; }
}

/* ---------- Top bar ---------- */
.topbar {
  position: fixed;
  top: max(14px, env(safe-area-inset-top));
  left: 14px;
  right: 14px;
  z-index: 60;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  box-shadow: 0 10px 32px -12px rgba(22, 48, 75, 0.18);
}
.topbar__in { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 68px; }
@media (max-width: 640px) {
  .topbar { top: max(10px, env(safe-area-inset-top)); left: 10px; right: 10px; }
  .topbar__in { min-height: 58px; gap: 10px; }
  .topbar__in > * { min-width: 0; }
  .brand { gap: 10px; }
  .brand__logo { width: 48px; height: 48px; padding: 2px; }
  .brand__word b { font-size: 18px; }
  .brand__word { gap: 0; }
  .brand__word b { font-size: 14px; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .brand__short { display: inline; }
  .brand__full, .brand__region { display: none; }
  .topbar__meta { gap: 10px; font-size: 10px; }
}

/* ---------- Reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity 0.55s ease, transform 0.55s ease; }
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal-words] { opacity: 1 !important; transform: none !important; }
[data-reveal-words] .w { display: inline-block; opacity: 0; transform: translateY(0.5em) rotate(0.5deg); transition: opacity 0.5s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1); }
[data-reveal-words].is-in .w { opacity: 1; transform: none; }
[data-reveal-delay="1"] { transition-delay: 0.08s; }
[data-reveal-delay="2"] { transition-delay: 0.16s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-reveal] { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Print ---------- */
@media print {
  .topbar, .adm__top, .btn, .toolbar, .lang, .wizard__nav, .flash { display: none !important; }
  body { background: #fff; }
  .panel { box-shadow: none; border: 1px solid #ccc; }
}


.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand__logo {
  width: 62px; height: 62px;
  display: grid; place-items: center;
  overflow: hidden;
  padding: 2px;
}
.brand__logo img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.brand__word {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  min-width: 0;
  line-height: 1;
}
.brand__word b {
  font-family: var(--serif);
  font-weight: 590;
  font-size: 22px;
  line-height: 1.08;
  letter-spacing: -0.012em;
  color: var(--ink);
}
.brand__word b span {
  font: inherit;
  letter-spacing: inherit;
  text-transform: none;
  color: inherit;
}
.brand__short { display: none; }
.brand__region {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 680;
  line-height: 1.25;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--steel);
}

.topbar__meta { display: flex; align-items: center; gap: 22px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--steel); }
.topbar__meta a { position: relative; text-decoration: none; color: inherit; transition: color 0.25s var(--ease-out); }
.topbar__meta a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 1.5px;
  background: var(--bronze);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease-snap);
}
.topbar__meta a:hover { color: var(--ink); }
.topbar__meta a:hover::after { transform: scaleX(1); transform-origin: left; }
.topbar__meta time { display: none; }
@media (min-width: 900px) { .topbar__meta time { display: inline; } }
.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: var(--r-sm);
  cursor: pointer;
}
.menu-toggle__icon { display: grid; gap: 4px; width: 18px; }
.menu-toggle__icon span { display: block; height: 1.5px; background: currentColor; transition: transform 0.2s ease, opacity 0.2s ease; }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--ink);
  --fg: var(--card);
  --rim: rgba(255, 255, 255, 0.22);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 560;
  letter-spacing: 0.01em;
  color: var(--fg);
  background: var(--bg);
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  padding: 13px 26px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: var(--e1);
  transition: transform 0.5s var(--spring-snappy), box-shadow 0.4s var(--ease-out), background 0.25s var(--ease-out), border-color 0.25s var(--ease-out), opacity 0.25s var(--ease-out);
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--e2); color: var(--fg); }
.btn:active { transform: translateY(0) scale(0.98); box-shadow: var(--e1); color: var(--fg); transition-duration: 0.1s; transition-timing-function: var(--ease-snap); }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--bronze);
  outline-offset: 2px;
}
.btn--paper { --bg: var(--card); --fg: var(--ink); border-color: var(--line-strong); }
.btn--outline { --bg: transparent; --fg: var(--ink); border-color: var(--line-strong); box-shadow: none; }
.btn--outline:hover { border-color: var(--ink); transform: translateY(-2px); box-shadow: var(--e2); }
.btn--outline:active { transform: translateY(0) scale(0.98); }
.btn--outline-ink { --bg: transparent; --fg: var(--ink); border-color: var(--line-strong); box-shadow: none; }
.btn--outline-ink:hover { border-color: var(--ink); }
.btn--ghost { --bg: transparent; --fg: var(--steel); box-shadow: none; padding-left: 12px; padding-right: 12px; }
.btn--ghost:hover { color: var(--ink); }
.btn--sm { padding: 8px 16px; font-size: 13.5px; }
.btn--block { width: 100%; }
.btn--bronze { --bg: var(--bronze-deep); --fg: var(--card); }
.btn .arrow { display: inline-flex; }
.btn--block .arrow { display: none; }
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.02) 42%, rgba(255, 255, 255, 0.06) 78%, rgba(255, 255, 255, 0.16) 100%);
  opacity: 0.9;
  pointer-events: none;
}
.btn--paper::before, .btn--outline::before, .btn--outline-ink::before {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.28) 34%, rgba(22, 48, 75, 0.04) 72%, rgba(22, 48, 75, 0.10) 100%);
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* ---------- Button loading state ---------- */
.btn.is-loading {
  pointer-events: none;
  opacity: 0.82;
  transform: none !important;
}
.btn.is-loading > * { visibility: hidden; }
.btn.is-loading::after {
  content: "";
  position: absolute;
  width: 15px;
  height: 15px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Link underline slide ---------- */
.link-slide { position: relative; text-decoration: none; }
.link-slide::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease-snap);
}
.link-slide:hover::after, .link-slide.is-active::after { transform: scaleX(1); transform-origin: left; }

/* ---------- Card lift ---------- */
.card-depth { transition: transform 0.45s var(--ease-snap), box-shadow 0.45s var(--ease-snap), border-color 0.45s var(--ease-snap); will-change: transform; }
.card-depth:hover { box-shadow: 0 1px 2px rgba(22, 48, 75, 0.08), 0 22px 60px -24px rgba(22, 48, 75, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.9), inset 0 -18px 42px -14px rgba(22, 48, 75, 0.18); }

/* ---------- Choice pop ---------- */
.choice__item span { transition: transform 0.5s var(--spring-bouncy), border-color 0.25s var(--ease-out), background 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out); }
.choice__item input:active + span { transform: scale(0.96); }
.choice__item input:checked + span { transform: scale(1.02); }

/* ---------- Flash entry ---------- */
.flash { animation: flash-in 0.6s var(--spring-snappy) both; }
@keyframes flash-in {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Hero (light) ---------- */
.hero {
  background: var(--paper);
  color: var(--ink);
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  position: relative;
  isolation: isolate;
}
.hero__main { flex: 1; display: flex; flex-direction: column; justify-content: center; padding-top: 130px; padding-bottom: 60px; }
.hero__brandline {
  font-family: var(--serif);
  font-size: clamp(2rem, 4.6vw, 3.6rem);
  font-weight: 520;
  letter-spacing: -0.025em;
  line-height: 1.08;
  margin: 0;
  max-width: 24ch;
  text-wrap: balance;
}
.hero__sub {
  font-size: 17px;
  color: var(--steel);
  max-width: 60ch;
  margin: 26px 0 0;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.hero__foot {
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px 32px;
  padding: 24px 0;
}
@media (min-width: 760px) {
  .hero__foot { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.hero__foot div { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--steel); }
.hero__foot b { color: var(--ink); font-weight: 500; }
.hero__aside {
  display: none;
  border-left: 1px solid var(--line);
  padding-left: 28px;
}
@media (min-width: 980px) {
  .hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 44px; align-items: center; }
  .hero__aside { display: flex; flex-direction: column; gap: 18px; }
}

/* ---------- Summit landing hero ---------- */
.hero--home {
  background: #0b1d2f url("../hero-globe-lagos.png") center center / cover no-repeat;
  color: #fff;
  overflow: hidden;
}
.hero--home::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(7, 20, 34, 0.8) 0%, rgba(12, 38, 60, 0.62) 34%, rgba(12, 38, 60, 0.24) 62%, rgba(255, 255, 255, 0.08) 100%),
    linear-gradient(180deg, rgba(5, 16, 28, 0.22) 0%, transparent 42%, rgba(4, 15, 26, 0.36) 100%);
}
.hero--home .hero__main { position: relative; z-index: 1; }
.hero__eyebrow {
  margin: 0 0 18px;
  color: #d8b276;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
}
.hero--home .hero__brandline {
  max-width: 20ch;
  color: #fff;
  font-size: clamp(2.65rem, 5.6vw, 4.65rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  text-shadow: 0 2px 22px rgba(2, 12, 22, 0.38);
}
.hero__title-primary {
  display: inline-block;
  color: #fffdf7;
  font-size: 1.06em;
  font-weight: 680;
  letter-spacing: -0.045em;
  text-shadow: 0 3px 26px rgba(2, 12, 22, 0.52);
}
.hero__title-edition {
  display: inline-block;
  margin-top: 0.16em;
  font-size: 0.72em;
  font-weight: 520;
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.92);
}
.hero--home .hero__sub { color: rgba(255, 255, 255, 0.84); }
.hero--home .hero__actions .btn:not(.btn--outline) {
  --bg: #f4efe4;
  --fg: var(--ink);
  --rim: rgba(255, 255, 255, 0.55);
  background: linear-gradient(145deg, #fffaf0 0%, #f4efe4 58%, #e2d5bd 100%);
  box-shadow:
    0 1px 1px rgba(2, 12, 22, 0.16),
    0 14px 28px -15px rgba(2, 12, 22, 0.72),
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    inset 0 -1px 0 rgba(127, 95, 44, 0.22);
}
.hero--home .hero__actions .btn:not(.btn--outline)::before {
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.72) 0%, rgba(255, 255, 255, 0.16) 42%, rgba(127, 95, 44, 0.14) 100%);
  opacity: 1;
}
.hero--home .hero__actions .btn:not(.btn--outline):hover {
  background: linear-gradient(145deg, #fffdf7 0%, #f7f0e5 58%, #e8dac2 100%);
  box-shadow:
    0 2px 2px rgba(2, 12, 22, 0.16),
    0 18px 36px -15px rgba(2, 12, 22, 0.78),
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    inset 0 -1px 0 rgba(127, 95, 44, 0.24);
}
.hero--home .hero__actions .btn:not(.btn--outline):active {
  box-shadow:
    0 1px 2px rgba(2, 12, 22, 0.3),
    inset 0 1px 2px rgba(127, 95, 44, 0.18);
}
.hero--home .hero__actions .btn--outline {
  --bg: rgba(255, 255, 255, 0.07);
  --fg: #fff;
  --rim: rgba(255, 255, 255, 0.32);
  border-color: rgba(255, 255, 255, 0.34);
  backdrop-filter: blur(12px) saturate(1.4);
  -webkit-backdrop-filter: blur(12px) saturate(1.4);
  box-shadow: 0 10px 30px -16px rgba(2, 12, 22, 0.5);
}
.hero--home .hero__actions .btn--outline::before { opacity: 0; }
.hero--home .hero__actions .btn--outline:hover {
  --bg: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: 0 14px 34px -16px rgba(2, 12, 22, 0.55);
}
.hero--home .hero__aside {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.78);
  border: 0;
  border-radius: var(--r-md);
  padding: 22px;
  gap: 0;
  box-shadow: 0 1px 2px rgba(22, 48, 75, 0.06), 0 16px 36px -20px rgba(22, 48, 75, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.9), inset 0 -18px 42px -14px rgba(22, 48, 75, 0.18);
  backdrop-filter: none;
}
.hero--home .hero__aside::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='linear' slope='0.045'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero--home .hero__aside::before {
  display: none;
}
.hero--home .hero__aside-title { padding: 3px 0 18px; border-bottom: 1px solid var(--line); }
.hero--home .hero__aside-title p { margin: 0; color: var(--ink); font-family: var(--serif); font-size: 1.34rem; letter-spacing: -0.025em; line-height: 1.08; }
.hero--home .hero__aside-title span { color: var(--bronze-deep); }
.hero--home .hero__aside-label,
.hero--home .hero__aside-foot {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  line-height: 1.3;
  text-transform: uppercase;
}
.hero--home .hero__aside-label { color: var(--steel); }
.hero--home .hero__aside-details { display: grid; gap: 13px; padding-top: 17px; }
.hero--home .hero__aside-row { display: grid; grid-template-columns: 58px minmax(0, 1fr); align-items: start; gap: 10px; }
.hero--home .hero__aside-value { margin: 0; color: var(--ink); font-size: 13px; line-height: 1.3; }
.hero--home .hero__aside-foot { margin: 18px 0 0; padding-top: 14px; color: var(--bronze-deep); border-top: 1px solid var(--line); }

/* ---------- Summit pillars ---------- */
.summit-pillars__layout { display: grid; gap: clamp(24px, 4vw, 48px); }
.summit-pillars__head { max-width: 760px; margin-bottom: 0; }
.summit-pillars__head .datalabel { margin: 0 0 14px; }
.summit-pillars__head .summit-pillars__eyebrow {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3.8vw, 2.8rem);
  font-weight: 520;
  letter-spacing: -0.025em;
  line-height: 1.08;
  text-transform: none;
  text-wrap: balance;
}
.summit-pillars__content { min-width: 0; }
.summit-pillars__grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
.summit-pillar { min-height: 100%; padding: clamp(22px, 3vw, 30px); text-align: left; }
.summit-pillar__icon {
  width: 74px;
  height: 74px;
  margin: 0 0 20px;
  object-fit: contain;
}
.summit-pillar h2 { color: var(--ink); font-size: 1.35rem; }
.summit-pillar p { margin: 10px 0 0; color: var(--steel); font-size: 14.5px; line-height: 1.55; }
.summit-dates {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 4vw, 40px);
}
.summit-dates > h2 { margin: 0 0 12px; color: var(--ink); font-size: 1.55rem; }
.summit-date {
  flex: 1;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-content: center;
  align-items: center;
  column-gap: 14px;
  row-gap: 3px;
  min-height: 108px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.summit-date:last-child { border-bottom: 0; padding-bottom: 0; }
.summit-date svg { grid-row: 1 / 3; width: 24px; height: 24px; fill: none; stroke: var(--bronze-deep); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.summit-date time { color: var(--bronze-deep); font-family: var(--mono); font-size: 0.76rem; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap; }
.summit-date span { color: var(--ink); font-size: 12px; font-weight: 600; letter-spacing: 0.04em; line-height: 1.35; text-transform: uppercase; overflow-wrap: anywhere; }
@media (min-width: 700px) {
  .summit-pillars__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
  .summit-pillars__layout { grid-template-columns: minmax(0, 1fr) minmax(330px, 0.48fr); align-items: stretch; column-gap: 32px; }
  .summit-pillars__head { grid-column: 1 / -1; }
}
@media (max-width: 430px) {
  .summit-date { column-gap: 12px; }
}

/* ---------- Invitation card ---------- */
.invite-grid { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
@media (min-width: 900px) {
  .invite-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 56px; }
}
.invite-card {
  background: linear-gradient(160deg, #1d3d5f 0%, #16304b 55%, #102538 100%);
  color: rgba(255, 253, 247, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--r-lg);
  box-shadow: 0 2px 4px rgba(2, 12, 22, 0.18), 0 32px 64px -28px rgba(2, 12, 22, 0.55);
  padding: clamp(26px, 3.4vw, 38px);
  position: relative;
  overflow: hidden;
  max-width: 460px;
  width: 100%;
  justify-self: start;
}
@media (min-width: 900px) {
  .invite-card { justify-self: end; }
}
.invite-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(120% 70% at 85% -10%, rgba(255, 255, 255, 0.14) 0%, transparent 55%);
}
.invite-card > * { position: relative; z-index: 1; }
.invite-card__logo { display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 6px; border: 1px solid rgba(255, 255, 255, 0.3); border-radius: var(--r-sm); background: rgba(255, 255, 255, 0.92); overflow: hidden; }
.invite-card__logo img { width: 100%; height: 100%; object-fit: contain; }
.invite-card__title {
  font-family: var(--serif);
  font-weight: 540;
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #fffdf7;
  margin: 18px 0 0;
}
.invite-card__meta { display: grid; margin-top: 20px; }
.invite-card__meta div {
  display: flex; align-items: baseline; justify-content: space-between; gap: 18px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255, 253, 247, 0.62);
  padding: 11px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.invite-card__meta div:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.invite-card__meta b { color: #fffdf7; font-weight: 500; text-align: right; }
.invite-card__tag {
  display: inline-block;
  margin-top: 20px;
  border: 1px solid var(--bronze);
  color: #e8c98a;
  border-radius: var(--r-sm);
  padding: 7px 14px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

/* ---------- Forms ---------- */
.form { display: grid; gap: 0; }

.form__sec h2 { font-size: 1.45rem; margin-top: 10px; }
.form__step { display: inline-grid; place-items: center; width: 30px; height: 30px; margin-right: 8px; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 50%; background: linear-gradient(180deg, #244869 0%, var(--ink) 58%, #10283f 100%); color: var(--paper); box-shadow: 0 1px 2px rgba(22, 48, 75, 0.18), 0 9px 18px -9px rgba(22, 48, 75, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.22), inset 0 -1px 0 rgba(0, 0, 0, 0.2); transform: translateY(-1px); font-family: var(--mono); font-size: 13px; vertical-align: 3px; }
.form__sec p { margin: 8px 0 28px; color: var(--steel); font-size: 14.5px; max-width: 52ch; }
.form__sec + .form__sec {
  margin-top: 42px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}

.field { margin: 0 0 22px; }
.field--row { display: grid; grid-template-columns: 1fr; gap: 0 18px; }
@media (min-width: 640px) {
  .field--row { grid-template-columns: 1fr 1fr; }
}
.field--row-3 { display: grid; grid-template-columns: 1fr; gap: 0 18px; }
@media (min-width: 640px) {
  .field--row-3 { grid-template-columns: repeat(3, 1fr); }
}
.phone-field { display: grid; grid-template-columns: 108px minmax(0, 1fr); gap: 8px; margin-top: auto; }
.dob-row { display: grid; grid-template-columns: 90px minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.form__sec-title {
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 620;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel-2);
  margin: 6px 0 18px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.form__sec-title:first-child { padding-top: 0; border-top: 0; margin-top: 0; }
.form__sec-desc { margin: -12px 0 20px; font-size: 13.5px; line-height: 1.55; color: var(--steel-2); }
@media (max-width: 639px) {
  .dob-row { grid-template-columns: 1fr 1fr; }
  .dob-row select:first-child { grid-column: 1 / -1; }
}
label { display: block; font-size: 13.5px; font-weight: 560; color: var(--ink); margin-bottom: 7px; }
label .req { color: var(--bad); }
label .hint { display: block; font-weight: 400; font-size: 12.5px; color: var(--steel-2); margin-top: 3px; }
input[type="text"], input[type="email"], input[type="tel"], input[type="date"], input[type="number"], input[type="password"], select, textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 15.5px;
  color: var(--ink);
  background: var(--ink-faint);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  padding: 13px 14px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
input::placeholder, textarea::placeholder { color: var(--steel-2); opacity: 1; }
input:hover, select:hover, textarea:hover { border-color: rgba(22, 48, 75, 0.45); background: var(--card); }
input:focus, select:focus, textarea:focus {
  outline: none;
  background: var(--card);
  border-color: var(--bronze);
  box-shadow: 0 0 0 3px var(--bronze-soft);
}
select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5' fill='none' stroke='%234c5a6b' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px;
  padding-right: 42px;
  cursor: pointer;
}
textarea { resize: vertical; min-height: 110px; line-height: 1.55; }
.photo-row { display: flex; align-items: center; gap: 14px; }
.photo-row .avatar { flex: none; }
.photo-row input[type="file"] { min-width: 0; flex: 1 1 auto; }
.field--row > .field,
.field--row-3 > .field { min-width: 0; display: flex; flex-direction: column; }
.field--row > .field > input,
.field--row > .field > select,
.field--row > .field > textarea,
.field--row > .field > .photo-row,
.field--row-3 > .field > input,
.field--row-3 > .field > select,
.field--row-3 > .field > textarea,
.field--row-3 > .field > .photo-row { margin-top: auto; }
input[type="file"] { font-size: 14px; color: var(--steel); background: transparent; border: 0; padding: 0; max-width: 100%; }
input[type="file"]::file-selector-button {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 560;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  padding: 9px 15px;
  margin-right: 12px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
input[type="file"]::file-selector-button:hover { border-color: var(--ink); background: var(--paper-2); }
.field--other { margin-top: 10px; }
input.input--code { font-family: var(--mono); letter-spacing: 0.12em; }
.interp-pair { display: flex; align-items: center; gap: 10px; }
.interp-pair select { flex: 1; }
.interp-pair__arrow { flex: none; color: var(--steel); }
.choice { display: grid; gap: 10px; margin: 0 0 22px; }
.choice--inline { display: flex; flex-wrap: wrap; gap: 10px; }
.choice__item { position: relative; }
.choice__item input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.choice__item span {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--card);
  padding: 13px 16px;
  font-size: 15px;
  font-weight: 520;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.choice__item span::before {
  content: "";
  width: 16px; height: 16px;
  border: 1.5px solid var(--line-strong);
  border-radius: 50%;
  flex: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.choice__item input:checked + span { border-color: var(--ink); background: var(--paper); }
.choice__item input:checked + span::before { border-color: var(--ink); background: var(--ink); box-shadow: inset 0 0 0 3.5px var(--paper); }
.choice__item input:focus-visible + span { outline: 2px solid var(--bronze); outline-offset: 2px; }

.form-err { color: var(--bad); font-size: 13px; margin-top: 6px; display: none; }
.field.invalid input, .field.invalid select, .field.invalid textarea {
  border-color: var(--bad);
  box-shadow: 0 0 0 3px rgba(156, 74, 58, 0.1);
}
.field.invalid .form-err { display: block; }
.form-err--global {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  border: 1px solid rgba(156, 74, 58, 0.4);
  background: rgba(156, 74, 58, 0.06);
  color: var(--bad);
  border-radius: var(--r-sm);
  padding: 13px 16px;
  font-size: 14px;
  margin-bottom: 24px;
}

.form__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.form__foot > :only-child { margin-left: auto; }

.card-depth {
  position: relative;
  isolation: isolate;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: clamp(24px, 4vw, 40px);
  box-shadow: 0 1px 2px rgba(22, 48, 75, 0.06), 0 16px 36px -20px rgba(22, 48, 75, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.9), inset 0 -18px 42px -14px rgba(22, 48, 75, 0.18);
}
.card-depth::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='linear' slope='0.045'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Modal ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(22, 48, 75, 0.42);
  animation: modal-fade 0.3s ease;
}
.modal__card {
  position: relative;
  width: min(480px, 100%);
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  padding: 30px;
  box-shadow: 0 1px 2px rgba(22, 48, 75, 0.06), 0 24px 70px -24px rgba(22, 48, 75, 0.4);
  animation: modal-in 0.4s var(--ease-snap);
}
.modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: var(--ink-faint);
  color: var(--ink);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.modal__close:hover { background: var(--paper-2); }
.modal__card input[readonly] {
  display: block;
  width: 100%;
  margin: 14px 0;
  padding: 12px 14px;
  font-size: 12px;
  color: var(--ink);
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
}
.modal__actions { display: flex; gap: 10px; justify-content: flex-end; }
.modal.is-leaving { opacity: 0; transition: opacity 0.25s ease; }
@keyframes modal-fade { from { opacity: 0; } }
@keyframes modal-in { from { opacity: 0; transform: translateY(14px) scale(0.98); } }

.companion-row { align-items: flex-end; position: relative; }
.companion-row__rm {
  width: 34px;
  height: 34px;
  margin-bottom: 1px;
  flex: none;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: none;
  color: var(--ink);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}
.companion-row__rm:hover { background: var(--ink-faint); }
.companions .btn--sm { margin-top: 14px; }

/* ---------- Panels ---------- */
.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(24px, 4vw, 40px);
}
.panel--accent {
  background: var(--paper-2);
  border: 1px solid var(--line-strong);
  color: var(--ink);
  box-shadow: var(--e1);
}
.card-depth.panel--accent {
  overflow: hidden;
  background-color: var(--paper-2);
  background-image: url("../panel-shader-dark-bg.png");
  background-position: center;
  background-size: cover;
  border: 0;
  color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 44px -22px rgba(22, 48, 75, 0.38);
}
.card-depth.panel--accent::after { display: none; }
.card-depth.panel--accent:hover { box-shadow: 0 24px 56px -24px rgba(22, 48, 75, 0.46); }
.card-depth.panel--accent > * { position: relative; z-index: 1; }
.card-depth.panel--accent .datalabel { color: rgba(255, 255, 255, 0.64); }
.panel__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.panel__head h2 { font-size: 1.55rem; }

/* ---------- Wizard ---------- */
.wizard { display: grid; gap: 28px; }
.wizard__steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.wizard__steps::before { content: ""; position: absolute; top: 17px; left: 12.5%; right: 12.5%; height: 2px; background: var(--line-strong); }
.wizard__step {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel);
  min-width: 0;
}
.wizard__index { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line-strong); border-radius: 50%; background: var(--card); color: var(--steel); box-shadow: 0 1px 2px rgba(22, 48, 75, 0.08); font-size: 12px; line-height: 1; }
.wizard__step--done { color: var(--ink); }
.wizard__step--done .wizard__index { border-color: var(--ink); background: var(--ink); color: var(--card); }
.wizard__step--active { color: var(--ink); font-weight: 600; }
.wizard__step--active .wizard__index { border-color: rgba(255, 255, 255, 0.14); background: linear-gradient(180deg, #244869 0%, var(--ink) 58%, #10283f 100%); color: var(--card); box-shadow: 0 2px 3px rgba(22, 48, 75, 0.16), 0 10px 20px -10px rgba(22, 48, 75, 0.72), inset 0 1px 0 rgba(255, 255, 255, 0.22), inset 0 -1px 0 rgba(0, 0, 0, 0.2); transform: translateY(-2px) scale(1.06); }
.wizard__step span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.wizard__nav { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line); }
.wizard__nav .side { display: flex; gap: 12px; }
.wizard__save { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ok); }

/* ---------- Page header (light) ---------- */
.pagehead { background: var(--paper); padding: 128px 0 56px; border-bottom: 1px solid var(--line); }
.pagehead h1 { font-size: clamp(2rem, 4.4vw, 3.4rem); max-width: 24ch; margin-top: 18px; text-wrap: balance; }
.pagehead p { color: var(--steel); max-width: 58ch; margin-top: 16px; font-size: 17px; }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 9vw, 110px) 0; }
.section--alt { background: var(--paper-2); border-top: 1px solid var(--line); }
.section__head { max-width: 640px; margin-bottom: 40px; }
.section__head h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin-top: 14px; }

.steps-rail { counter-reset: flow; }
.steps-rail > div {
  position: relative;
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 24px 26px;
  box-shadow: 0 1px 2px rgba(22, 48, 75, 0.06), 0 16px 36px -20px rgba(22, 48, 75, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.9), inset 0 -18px 42px -14px rgba(22, 48, 75, 0.18);
}
.steps-rail > div:nth-child(1) { z-index: 1; }
.steps-rail > div:nth-child(2) { z-index: 2; }
.steps-rail > div:nth-child(3) { z-index: 3; }
.steps-rail > div:nth-child(4) { z-index: 4; }
.steps-rail > div + div { margin-top: -108px; }
@media (max-width: 640px) {
  .steps-rail { display: grid; gap: 18px; }
  .steps-rail > div + div { margin-top: 0; }
}
@media (min-width: 900px) {
  .steps-rail { padding-bottom: clamp(72px, 10vh, 110px); }
  .steps-rail > div {
    position: sticky;
    top: 96px;
    margin-bottom: clamp(42px, 7vh, 72px);
  }
  .steps-rail > div + div { margin-top: 10px; }
  .steps-rail > div:nth-child(4) { margin-bottom: 0; }
}
.steps-rail > div::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='linear' slope='0.045'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}
.steps-rail > div::before {
  counter-increment: flow;
  content: "0" counter(flow);
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.7rem;
  line-height: 1;
  color: var(--bronze);
  padding-top: 4px;
}
.steps-rail b { grid-column: 2; font-family: var(--serif); font-size: 1.25rem; font-weight: 540; }
.steps-rail p { grid-column: 2; margin: 7px 0 0; color: var(--steel); font-size: 15px; max-width: 56ch; }

.steps-section { display: grid; grid-template-columns: 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (min-width: 900px) {
  .steps-section { grid-template-columns: minmax(0, 300px) 1fr; gap: 64px; align-items: start; }
  .steps-section .section__head { position: sticky; top: 108px; }
}
.steps-section .section__head { text-align: left; }
.steps-section .section__head h2 { max-width: 24ch; margin-inline: 0; }

/* ---------- Status lookup ---------- */
.status-timeline { display: grid; grid-template-columns: 1fr; gap: 0; margin-top: 8px; }
@media (min-width: 700px) { .status-timeline { grid-template-columns: repeat(4, 1fr); } }
.status-timeline div {
  position: relative;
  padding: 18px 14px;
  border-top: 3px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel-2);
}
.status-timeline div::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 14px;
  width: 13px; height: 13px;
  border-radius: 50%;
  background: var(--paper-2);
  border: 2px solid var(--line-strong);
}
.status-timeline div.on { border-top-color: var(--ink); color: var(--ink); }
.status-timeline div.on::before { background: var(--ink); border-color: var(--ink); }

/* ---------- Flash ---------- */
.flash { display: flex; gap: 12px; align-items: center; border-radius: var(--r-sm); padding: 14px 18px; font-size: 14.5px; margin-bottom: 26px; border: 1px solid; }
.flash--ok { background: rgba(63, 109, 82, 0.07); border-color: rgba(63, 109, 82, 0.35); color: #2c533c; }
.flash--err { background: rgba(156, 74, 58, 0.06); border-color: rgba(156, 74, 58, 0.4); color: var(--bad); }
.flash--info { background: rgba(47, 74, 99, 0.06); border-color: rgba(47, 74, 99, 0.3); color: var(--ink-2); }

/* ---------- Admin ---------- */
.adm { min-height: 100svh; }
.adm__top { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.adm__top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; }
.adm__top h1 { font-family: var(--serif); font-size: 18px; font-weight: 560; }
.adm__top nav { display: flex; gap: 4px; align-items: center; }
.adm__top nav a {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--steel);
  padding: 8px 12px;
  border-radius: var(--r-sm);
}
.adm__top nav a:hover { color: var(--ink); background: var(--ink-soft); }
.adm__top nav a.on { color: var(--ink); background: var(--ink-soft); box-shadow: inset 0 -2px 0 var(--bronze); }
.adm__top nav a:first-child { display: none; }
.adm__top nav form.nav-out { margin: 0; }
.adm__top nav form.nav-out button {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel);
  padding: 8px 12px;
  border: 0;
  border-radius: var(--r-sm);
  background: none;
  cursor: pointer;
}
.adm__top nav form.nav-out button:hover { color: var(--ink); background: var(--ink-soft); }
@media (min-width: 860px) { .adm__top nav a:first-child { display: inline-block; } }

.adm__body { padding: clamp(28px, 5vw, 56px) 0 80px; }

.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-bottom: 36px; }
@media (min-width: 860px) { .stat-grid { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px 20px; }
.stat b { font-family: var(--serif); font-size: 1.9rem; font-weight: 540; display: block; line-height: 1.1; }
.stat span { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--steel-2); }
.stat--ink { background: var(--card); border: 1.5px solid var(--ink); box-shadow: var(--e1); }

.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.toolbar form { display: flex; gap: 10px; flex-wrap: wrap; }
.toolbar select { width: auto; padding: 8px 12px; font-size: 13.5px; background: var(--card); }

.tbl-wrap { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); overflow-x: auto; }
table.adm-tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.adm-tbl th {
  text-align: left;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--steel-2);
  font-weight: 500;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.adm-tbl td { padding: 15px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.adm-tbl tr:last-child td { border-bottom: 0; }
.adm-tbl tr:hover td { background: var(--ink-faint); }
.adm-tbl .name { font-weight: 560; }
.adm-tbl .meta { font-size: 12.5px; color: var(--steel); margin-top: 2px; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: var(--r-sm);
  border: 1px solid;
  white-space: nowrap;
}
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip--submitted { color: #7a6540; background: rgba(138, 109, 59, 0.08); border-color: rgba(138, 109, 59, 0.3); }
.chip--under_review { color: #2f5a76; background: rgba(47, 90, 118, 0.08); border-color: rgba(47, 90, 118, 0.3); }
.chip--selected { color: #2c533c; background: rgba(63, 109, 82, 0.08); border-color: rgba(63, 109, 82, 0.3); }
.chip--not_selected { color: var(--steel); background: rgba(95, 107, 120, 0.08); border-color: rgba(95, 107, 120, 0.25); }
.chip--A { color: #8a2f22; background: rgba(156, 74, 58, 0.08); border-color: rgba(156, 74, 58, 0.32); }
.chip--B { color: #2f5a76; background: rgba(47, 90, 118, 0.08); border-color: rgba(47, 90, 118, 0.3); }
.chip--C { color: var(--steel); background: rgba(95, 107, 120, 0.08); border-color: rgba(95, 107, 120, 0.25); }

/* ---------- Detail / review ---------- */
.review-grid { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: start; }
@media (min-width: 980px) { .review-grid { grid-template-columns: 1fr 340px; } }

.kv { display: grid; grid-template-columns: 1fr; gap: 0; }
.kv > div { display: grid; grid-template-columns: 140px 1fr; gap: 14px; padding: 11px 0; border-top: 1px solid var(--line); }
.kv > div:last-child { border-bottom: 1px solid var(--line); }
.kv dt { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--steel-2); padding-top: 3px; }
.kv dd { margin: 0; font-size: 14.5px; }
.kv dd.quiet { color: var(--steel); font-style: italic; }

.notes { width: 100%; min-height: 140px; }

/* ---------- Avatar ---------- */
.avatar {
  width: 64px; height: 64px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-strong);
  background: var(--paper-2);
  object-fit: cover;
}
.avatar--sm { width: 40px; height: 40px; }
.avatar--lg { width: 120px; height: 120px; }
.avatar.is-picked { opacity: 1; }
.avatar:not([src]) { opacity: 0; }

/* ---------- Login ---------- */
.login { min-height: 100svh; display: grid; place-items: center; padding: 24px; }
.login__card { width: 100%; max-width: 420px; }
.login__brand { display: flex; flex-direction: column; gap: 10px; margin-bottom: 30px; }
.login__brand .logo { width: 56px; height: 56px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: var(--card); display: grid; place-items: center; overflow: hidden; box-shadow: var(--e1); padding: 6px; }
.login__brand .logo img { width: 100%; height: 100%; object-fit: contain; }
.login__brand h1 { font-size: 1.6rem; }
.login__brand p { margin: 4px 0 0; color: var(--steel); font-size: 13.5px; }

/* ---------- Footer ---------- */
main { position: relative; z-index: 2; background: var(--paper); }

.footer {
  position: relative;
  z-index: 1;
  padding: 0 0 max(24px, calc(env(safe-area-inset-bottom) + 14px));
}
.footer__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 28px;
  padding: 18px 0 16px;
  border-top: 1px solid var(--line-strong);
}
.footer__brand {
  display: flex;
  align-items: baseline;
  gap: 12px;
  min-width: 0;
}
.footer__name {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 560;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--ink);
  white-space: nowrap;
}
.footer__region {
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.13em;
  line-height: 1.35;
  text-transform: uppercase;
  color: var(--bronze-deep);
  white-space: nowrap;
}
.footer__copy {
  margin: 0;
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--steel);
  text-align: right;
}
@media (max-width: 640px) {
  .footer__bar { flex-direction: column; align-items: flex-start; gap: 10px; }
  .footer__copy { text-align: left; }
}

/* ---------- Receipt ---------- */
.receipt { position: relative; }
.receipt__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}
.receipt__ref { text-align: right; }
.receipt__ref-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 8px;
}
.receipt__ref code {
  font-family: var(--mono);
  font-size: 21px;
  letter-spacing: 0.14em;
  color: var(--ink);
  background: var(--paper-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  padding: 8px 14px;
}
.receipt__photo { float: right; margin: 0 0 20px 22px; }
@media (max-width: 640px) {
  .receipt__head { flex-direction: column; }
  .receipt__ref { text-align: left; }
  .receipt__ref-row { justify-content: flex-start; }
  .receipt__ref code { font-size: 17px; }
  .receipt__photo { float: none; display: block; margin: 0 0 18px; }
}

/* ---------- Language switch ---------- */
.lang { --lang-slot: calc((100% - 6px) / 3); display: inline-flex; border: 1px solid var(--line-strong); border-radius: var(--r-sm); overflow: hidden; }
.lang a { display: inline-flex; flex: 1 1 0; min-width: 0; align-items: center; justify-content: center; gap: 7px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; color: var(--steel); padding: 6px 11px; z-index: 1; transition: color 0.45s cubic-bezier(0.22, 0.61, 0.36, 1); }
.lang__flag { display: block; width: 18px; height: 12px; flex: 0 0 18px; object-fit: cover; border-radius: 2px; box-shadow: 0 0 0 1px rgba(22, 48, 75, 0.16); }
.lang::before {
  content: "";
  position: absolute;
  top: 3px; bottom: 3px; left: 3px;
  width: var(--lang-slot);
  background: linear-gradient(180deg, #244869 0%, var(--ink) 58%, #10283f 100%);
  border-radius: calc(var(--r-sm) - 2px);
  box-shadow: 0 1px 2px rgba(22, 48, 75, 0.18), 0 8px 16px -9px rgba(22, 48, 75, 0.72), inset 0 1px 0 rgba(255, 255, 255, 0.2), inset 0 -1px 0 rgba(0, 0, 0, 0.2);
  transition: transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
  z-index: 0;
}
.lang { position: relative; }
.lang a.on { color: var(--card); }
.lang[data-active="0"]::before { transform: translateX(0); }
.lang[data-active="1"]::before { transform: translateX(100%); }
.lang[data-active="2"]::before { transform: translateX(200%); }

/* ---------- Mobile refinements ---------- */
@media (max-width: 640px) {
  .wrap { padding-left: 24px; padding-right: 24px; }
  .pagehead { padding: 108px 0 44px; }
  .hero__main { padding: 108px 24px 48px; }
  .hero__actions .btn { width: 100%; }

  .menu-toggle { display: inline-flex; }
  .topbar__meta {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    display: none;
    width: min(220px, calc(100vw - 36px));
    padding: 10px;
    background: rgba(255, 255, 255, 0.98);
    border: 0;
    border-radius: var(--r-md);
    box-shadow: 0 18px 36px -18px rgba(22, 48, 75, 0.42);
  }
  .topbar__meta.is-open { display: flex; }
  .topbar__meta .lang { width: 100%; display: flex; flex-direction: column; gap: 4px; border: 0; border-radius: var(--r-sm); overflow: visible; }
  .topbar__meta .lang::before { display: none; }
  .topbar__meta .lang a { flex: 0 0 auto; justify-content: flex-start; gap: 10px; padding: 10px 12px; border-radius: var(--r-sm); }
  .topbar__meta .lang a.on { background: linear-gradient(180deg, #244869 0%, var(--ink) 58%, #10283f 100%); color: var(--card); box-shadow: 0 1px 2px rgba(22, 48, 75, 0.18), 0 8px 16px -9px rgba(22, 48, 75, 0.72), inset 0 1px 0 rgba(255, 255, 255, 0.2), inset 0 -1px 0 rgba(0, 0, 0, 0.2); }
  .topbar__meta .lang a:hover { background: var(--ink-soft); color: var(--ink); }
  .topbar__meta .lang a.on:hover { background: var(--ink-2); color: var(--card); }

  .wizard__steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
  .wizard__steps::before { display: none; }
  .wizard__step { grid-template-columns: 36px minmax(0, 1fr); justify-items: start; text-align: left; }
  .wizard__nav .btn[type="submit"], form .btn[type="submit"] { width: 100%; }

  input[type="text"], input[type="email"], input[type="tel"], input[type="date"], input[type="number"], input[type="password"], select, textarea { font-size: 16px; }

  .kv > div { grid-template-columns: 1fr; gap: 3px; }

  .photo-row { flex-wrap: wrap; }
  .photo-row input[type="file"] { flex: 1 1 100%; }
}

@media (max-width: 860px) {
  .adm__top nav { flex-wrap: wrap; }
  .toolbar form input[type="text"] { width: 100% !important; max-width: 100%; }
}

/* ---------- Wizard step entry ---------- */
.wizard form[data-wizard] [data-step] { animation: step-in 0.55s var(--spring-snappy) both; }
@keyframes step-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Empty state ---------- */
.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  padding: 56px 28px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-md);
  background: var(--ink-faint);
}
.empty__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 10px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  color: var(--bronze-deep);
  background: var(--card);
  box-shadow: var(--e1);
  font-size: 20px;
}
.empty__icon::before { content: "\2726"; }
.empty h3 { margin: 0 0 4px; font-family: var(--serif); font-weight: 560; font-size: 20px; letter-spacing: -0.01em; }
.empty p { margin: 0; color: var(--steel); font-size: 14.5px; max-width: 46ch; }
.empty .btn { margin-top: 18px; }

/* ---------- Toasts ---------- */
.toast-wrap {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
  max-width: min(380px, calc(100vw - 36px));
}
.toast {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--ink);
  color: #eef1f5;
  border-radius: var(--r-sm);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 14px 40px -12px rgba(22, 48, 75, 0.45);
  padding: 13px 15px;
  font-size: 14px;
  line-height: 1.45;
  position: relative;
  overflow: hidden;
  animation: toast-in 0.55s var(--spring-snappy) both;
}
.toast--err { background: #5b2b22; border-color: rgba(255, 255, 255, 0.16); }
.toast--ok { background: var(--ink); }
.toast__icon { flex: none; width: 18px; height: 18px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; line-height: 1; font-weight: 700; margin-top: 1px; }
.toast--ok .toast__icon { background: rgba(160, 122, 62, 0.9); color: #fff; }
.toast--err .toast__icon { background: rgba(255, 255, 255, 0.9); color: #5b2b22; }
.toast--ok .toast__icon::before { content: "\2713"; }
.toast--err .toast__icon::before { content: "\0021"; }
.toast__msg { flex: 1; }
.toast__bar {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  background: var(--bronze);
  transform-origin: left;
  animation: toast-bar 3.2s linear both;
}
.toast.is-leaving { animation: toast-out 0.4s var(--ease-snap) both; }
@keyframes toast-in {
  from { opacity: 0; transform: translateY(-14px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes toast-out {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to { opacity: 0; transform: translateY(-10px) scale(0.97); }
}
@keyframes toast-bar { from { transform: scaleX(1); } to { transform: scaleX(0); } }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal], [data-reveal] * { opacity: 1 !important; transform: none !important; filter: none !important; }
  .btn:hover, .btn:active, .card-depth:hover, .choice__item span { transform: none !important; }
  .toast, .flash, .empty { animation: none !important; }
}
