/* ==========================================================================
   Trump Offers — Foundations
   ========================================================================== */

:root {
  --ink: #0a0a0b;
  --ink-soft: #0f0f11;
  --charcoal: #16161a;
  --charcoal-2: #1d1d22;
  --graphite: #2a2a30;

  --gold: #c6a25b;
  --gold-light: #e3c88f;
  --gold-bright: #f0d9a7;
  --gold-deep: #96743a;
  --champagne: #eee0c2;

  --ivory: #f4efe5;
  --paper: #faf7f1;
  --cream: #eae2d3;
  --sand: #d8cdb8;

  --text: #f3eee4;
  --text-dim: #b6b1a7;
  --text-faint: #817d75;
  --ink-text: #18171a;
  --ink-muted: #625e58;
  --ink-faint: #928c82;

  --line: rgba(198, 162, 91, 0.24);
  --line-strong: rgba(198, 162, 91, 0.5);
  --line-dark: rgba(243, 238, 228, 0.12);
  --line-ink: rgba(24, 23, 26, 0.13);

  --success: #7e9d7c;
  --success-bg: rgba(126, 157, 124, 0.14);
  --warning: #c79a53;
  --warning-bg: rgba(199, 154, 83, 0.14);
  --danger: #b96b5e;
  --danger-bg: rgba(185, 107, 94, 0.14);
  --info: #7d98a8;
  --info-bg: rgba(125, 152, 168, 0.14);

  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --container: 1380px;
  --gutter: clamp(20px, 4.6vw, 72px);
  --section-y: clamp(80px, 11vw, 160px);
  --header-h: 88px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);

  --radius: 2px;
  --shadow-lg: 0 34px 90px -30px rgba(0, 0, 0, 0.55);
  --shadow-card: 0 24px 60px -28px rgba(0, 0, 0, 0.5);

  --z-header: 100;
  --z-overlay: 200;
  --z-modal: 300;
  --z-toast: 400;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.no-scroll {
  overflow: hidden;
}

img,
svg,
video,
canvas {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: 0;
  background: none;
  padding: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

p,
h1,
h2,
h3,
h4,
h5,
h6,
figure,
blockquote,
ul,
ol,
dl {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

strong,
b {
  font-weight: 600;
}

small {
  font-size: 0.8125rem;
}

hr {
  border: 0;
  border-top: 1px solid var(--line-dark);
  margin: 0;
}

::selection {
  background: var(--gold);
  color: var(--ink);
}

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

:focus:not(:focus-visible) {
  outline: none;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: var(--ink);
}
::-webkit-scrollbar-thumb {
  background: #38352f;
  border: 3px solid var(--ink);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold-deep);
}

/* --------------------------------------------------------------------------
   Type
   -------------------------------------------------------------------------- */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.025em;
}

.display {
  font-family: var(--serif);
  font-size: clamp(3.4rem, 8.4vw, 8.6rem);
  font-weight: 400;
  line-height: 0.86;
  letter-spacing: -0.045em;
}

.display em,
.h-serif em {
  font-style: italic;
  font-weight: 300;
  color: var(--gold-light);
}

.display--sm {
  font-size: clamp(2.9rem, 6.2vw, 6rem);
  line-height: 0.9;
}

.h-serif {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 4.4vw, 4.4rem);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.h-serif--lg {
  font-size: clamp(2.8rem, 5.6vw, 5.6rem);
}

.hs {
  font-family: var(--serif);
  font-size: clamp(1.65rem, 2.4vw, 2.3rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--sans);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--gold);
}

.eyebrow--muted {
  color: var(--text-faint);
}

.eyebrow__line {
  width: 36px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
  flex: none;
}

.eyebrow--center {
  justify-content: center;
}

.lede {
  font-size: clamp(1.05rem, 1.35vw, 1.25rem);
  line-height: 1.75;
  color: var(--text-dim);
  font-weight: 300;
}

.body-copy {
  color: var(--text-dim);
  font-size: 0.975rem;
  line-height: 1.85;
  font-weight: 300;
}

.body-copy + .body-copy {
  margin-top: 1.2em;
}

.section--light .body-copy,
.section--light .lede {
  color: var(--ink-muted);
}

.section--light .eyebrow {
  color: var(--gold-deep);
}

.section--light .display em,
.section--light .h-serif em {
  color: var(--gold-deep);
}

.fine {
  font-size: 0.75rem;
  line-height: 1.7;
  color: var(--text-faint);
  letter-spacing: 0.01em;
}

.section--light .fine {
  color: var(--ink-faint);
}

.mono {
  font-family: var(--sans);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.05em;
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow {
  max-width: 980px;
}

.section {
  position: relative;
  padding-block: var(--section-y);
  background: var(--ink);
  color: var(--text);
}

.section--light {
  background: var(--ivory);
  color: var(--ink-text);
}

.section--paper {
  background: var(--paper);
  color: var(--ink-text);
}

.section--charcoal {
  background: var(--charcoal);
}

.section--flush-top {
  padding-top: 0;
}

.section--flush-bottom {
  padding-bottom: 0;
}

.grid {
  display: grid;
  gap: clamp(28px, 4vw, 64px);
}

.g-12 {
  grid-template-columns: repeat(12, 1fr);
}

.g-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.g-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.g-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.span-5 { grid-column: span 5; }
.span-6 { grid-column: span 6; }
.span-7 { grid-column: span 7; }
.span-8 { grid-column: span 8; }
.span-12 { grid-column: span 12; }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  gap: clamp(28px, 6vw, 90px);
  align-items: end;
  margin-bottom: clamp(44px, 6vw, 84px);
}

.section-head--center {
  display: block;
  text-align: center;
  max-width: 820px;
  margin-inline: auto;
  margin-bottom: clamp(44px, 6vw, 84px);
}

.section-head__aside {
  padding-bottom: 8px;
}

.section-head .eyebrow {
  margin-bottom: 22px;
}

.section-head h2 {
  max-width: 18ch;
}

.section-head--center h2 {
  margin-inline: auto;
  max-width: 20ch;
}

.section-head--center .lede {
  margin: 24px auto 0;
  max-width: 54ch;
}

.rule {
  height: 1px;
  background: var(--line-dark);
  width: 100%;
}

.section--light .rule {
  background: var(--line-ink);
}

/* --------------------------------------------------------------------------
   Buttons & links
   -------------------------------------------------------------------------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 28px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.17em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease),
    border-color 0.4s var(--ease), transform 0.4s var(--ease);
  overflow: hidden;
}

.btn svg {
  width: 15px;
  height: 15px;
  flex: none;
  transition: transform 0.4s var(--ease);
}

.btn:hover svg {
  transform: translateX(3px);
}

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

.btn--gold {
  background: linear-gradient(115deg, #d7bb80 0%, #c6a25b 48%, #b18c48 100%);
  color: #131210;
  border-color: transparent;
}

.btn--gold:hover {
  background: linear-gradient(115deg, #efd9a9 0%, #d9bb82 48%, #c6a25b 100%);
}

.btn--ghost {
  border-color: rgba(243, 238, 228, 0.28);
  color: var(--text);
  background: transparent;
}

.btn--ghost:hover {
  border-color: var(--gold);
  color: var(--gold-light);
  background: rgba(198, 162, 91, 0.06);
}

.btn--dark {
  background: var(--ink);
  color: var(--ivory);
  border-color: var(--ink);
}

.btn--dark:hover {
  background: var(--charcoal);
  border-color: var(--charcoal);
  color: var(--gold-light);
}

.btn--outline-dark {
  border-color: rgba(24, 23, 26, 0.28);
  color: var(--ink-text);
}

.btn--outline-dark:hover {
  border-color: var(--ink-text);
  background: rgba(24, 23, 26, 0.04);
}

.btn--sm {
  min-height: 42px;
  padding: 0 20px;
  font-size: 0.625rem;
}

.btn--lg {
  min-height: 58px;
  padding: 0 34px;
}

.btn--block {
  width: 100%;
}

.btn[disabled],
.btn.is-disabled {
  opacity: 0.42;
  pointer-events: none;
}

.btn--loading {
  pointer-events: none;
  color: transparent !important;
}

.btn--loading::after {
  content: '';
  position: absolute;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  border: 2px solid rgba(10, 10, 11, 0.25);
  border-top-color: #131210;
  animation: spin 0.7s linear infinite;
}

.btn--ghost.btn--loading::after {
  border-color: rgba(243, 238, 228, 0.25);
  border-top-color: var(--gold-light);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-light);
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line-strong);
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease), gap 0.3s var(--ease);
}

.link-arrow:hover {
  color: var(--gold-bright);
  border-color: var(--gold-bright);
  gap: 15px;
}

.section--light .link-arrow {
  color: var(--gold-deep);
  border-color: rgba(150, 116, 58, 0.4);
}

.section--light .link-arrow:hover {
  color: var(--ink-text);
  border-color: var(--ink-text);
}

.link-quiet {
  color: var(--text-dim);
  transition: color 0.3s var(--ease);
}

.link-quiet:hover {
  color: var(--gold-light);
}

/* --------------------------------------------------------------------------
   Badges, pills, avatars
   -------------------------------------------------------------------------- */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.5625rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--gold-light);
  background: rgba(198, 162, 91, 0.05);
  white-space: nowrap;
}

.badge::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}

.badge--plain::before {
  display: none;
}

.badge--success {
  color: #a8c6a3;
  border-color: rgba(126, 157, 124, 0.35);
  background: var(--success-bg);
}

.badge--warning {
  color: #dfb978;
  border-color: rgba(199, 154, 83, 0.35);
  background: var(--warning-bg);
}

.badge--danger {
  color: #d79a8e;
  border-color: rgba(185, 107, 94, 0.35);
  background: var(--danger-bg);
}

.badge--info {
  color: #a9c0cd;
  border-color: rgba(125, 152, 168, 0.35);
  background: var(--info-bg);
}

.badge--ink {
  color: var(--ink-muted);
  border-color: var(--line-ink);
  background: rgba(24, 23, 26, 0.03);
}

.section--light .badge,
.card-surface .badge {
  color: var(--gold-deep);
  border-color: rgba(150, 116, 58, 0.28);
  background: rgba(198, 162, 91, 0.08);
}

.tag {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  font-size: 0.625rem;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  white-space: nowrap;
}

.section--light .tag {
  border-color: var(--line-ink);
  color: var(--ink-muted);
}

.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--charcoal-2);
  color: var(--gold-light);
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 500;
  flex: none;
}

.avatar--sm {
  width: 32px;
  height: 32px;
  font-size: 0.85rem;
}

.avatar--lg {
  width: 60px;
  height: 60px;
  font-size: 1.5rem;
}

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */

.field {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.field + .field {
  margin-top: 20px;
}

.field__label {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.section--light .field__label,
.card-surface .field__label {
  color: var(--ink-muted);
}

.field__hint {
  font-size: 0.72rem;
  color: var(--text-faint);
  line-height: 1.5;
}

.section--light .field__hint {
  color: var(--ink-faint);
}

.input,
.select,
.textarea {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border: 1px solid rgba(243, 238, 228, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.025);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 400;
  transition: border-color 0.25s ease, background-color 0.25s ease;
  appearance: none;
}

.input::placeholder,
.textarea::placeholder {
  color: var(--text-faint);
}

.input:hover,
.select:hover,
.textarea:hover {
  border-color: rgba(243, 238, 228, 0.28);
}

.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.04);
}

.textarea {
  height: auto;
  min-height: 132px;
  padding: 14px 16px;
  line-height: 1.65;
  resize: vertical;
}

.select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='m1 1.5 5 5 5-5' stroke='%23b6b1a7' stroke-width='1.2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  padding-right: 44px;
  cursor: pointer;
}

.select option {
  background: var(--charcoal);
  color: var(--text);
}

.section--light .input,
.section--light .select,
.section--light .textarea,
.auth__panel .input,
.auth__panel .select,
.auth__panel .textarea {
  border-color: rgba(24, 23, 26, 0.16);
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink-text);
}

.section--light .input::placeholder,
.section--light .textarea::placeholder,
.auth__panel .input::placeholder {
  color: var(--ink-faint);
}

.section--light .select,
.auth__panel .select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='m1 1.5 5 5 5-5' stroke='%23625e58' stroke-width='1.2'/%3E%3C/svg%3E");
}

.section--light .select option,
.auth__panel .select option {
  background: var(--paper);
  color: var(--ink-text);
}

.section--light .input:focus,
.section--light .select:focus,
.section--light .textarea:focus,
.auth__panel .input:focus {
  border-color: var(--gold-deep);
  background: #fff;
}

.field.has-error .input,
.field.has-error .select,
.field.has-error .textarea {
  border-color: var(--danger);
}

.field__error {
  font-size: 0.72rem;
  line-height: 1.5;
  color: #d79a8e;
  display: none;
}

.section--light .field__error,
.auth__panel .field__error {
  color: #a24f43;
}

.field.has-error .field__error {
  display: block;
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--text-dim);
  cursor: pointer;
}

.section--light .checkbox,
.auth__panel .checkbox {
  color: var(--ink-muted);
}

.checkbox input {
  appearance: none;
  width: 17px;
  height: 17px;
  margin: 2px 0 0;
  border: 1px solid rgba(243, 238, 228, 0.3);
  border-radius: 1px;
  background: transparent;
  flex: none;
  cursor: pointer;
  position: relative;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.checkbox input:checked {
  background: var(--gold);
  border-color: var(--gold);
}

.checkbox input:checked::after {
  content: '';
  position: absolute;
  inset: 2px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10'%3E%3Cpath d='M1 5l3 3 7-7' fill='none' stroke='%23131210' stroke-width='1.8'/%3E%3C/svg%3E") center/11px no-repeat;
}

.section--light .checkbox input,
.auth__panel .checkbox input {
  border-color: rgba(24, 23, 26, 0.32);
}

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

.form-grid .field + .field {
  margin-top: 0;
}

.form-grid .span-2 {
  grid-column: span 2;
}

.form-note {
  margin-top: 18px;
  font-size: 0.72rem;
  line-height: 1.65;
  color: var(--text-faint);
}

.form-note--light {
  color: var(--ink-faint);
}

/* --------------------------------------------------------------------------
   Media
   -------------------------------------------------------------------------- */

.media {
  position: relative;
  overflow: hidden;
  background: var(--charcoal-2);
}

.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}

.media--zoom:hover img {
  transform: scale(1.045);
}

.media--warm img {
  filter: saturate(0.72) sepia(0.14) contrast(1.03) brightness(0.96);
}

.media__tag {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 2;
  font-size: 0.5625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.84);
}

.media__tag--dark {
  color: rgba(24, 23, 26, 0.7);
}

.media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(5, 5, 6, 0.38));
  pointer-events: none;
}

.media--clean::after {
  display: none;
}

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

/* --------------------------------------------------------------------------
   Reveal motion
   -------------------------------------------------------------------------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 1.05s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

[data-reveal='fade'] {
  transform: none;
}

[data-reveal='left'] {
  transform: translateX(-32px);
}

[data-reveal='right'] {
  transform: translateX(32px);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* Horizontal reveal offsets would extend past narrow viewports before the
   element enters the observer. Use vertical motion on small screens. */
@media (max-width: 720px) {
  [data-reveal='left'],
  [data-reveal='right'] {
    transform: translateY(20px);
  }
}

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

/* --------------------------------------------------------------------------
   Utilities
   -------------------------------------------------------------------------- */

.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;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 20px;
  z-index: 999;
  padding: 12px 20px;
  background: var(--gold);
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 20px;
}

.text-gold { color: var(--gold-light); }
.text-dim { color: var(--text-dim); }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mt-5 { margin-top: 48px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.mb-5 { margin-bottom: 48px; }
.w-full { width: 100%; }
.nowrap { white-space: nowrap; }
.hidden { display: none !important; }
.divider { height: 1px; background: var(--line-dark); }
.section--light .divider { background: var(--line-ink); }

.loading-block {
  display: grid;
  place-items: center;
  gap: 16px;
  padding: 60px 20px;
  color: var(--text-faint);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.spinner {
  width: 26px;
  height: 26px;
  border: 1px solid rgba(198, 162, 91, 0.22);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.85s linear infinite;
}

/* --------------------------------------------------------------------------
   Toast
   -------------------------------------------------------------------------- */

.toast-stack {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: min(360px, calc(100vw - 44px));
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 15px 16px;
  background: rgba(20, 20, 23, 0.96);
  border: 1px solid var(--line);
  box-shadow: 0 20px 50px -18px rgba(0, 0, 0, 0.7);
  color: var(--text);
  font-size: 0.8rem;
  line-height: 1.55;
  pointer-events: auto;
  animation: toastIn 0.4s var(--ease);
  backdrop-filter: blur(10px);
}

.toast.is-out {
  animation: toastOut 0.3s ease forwards;
}

.toast__icon {
  width: 18px;
  height: 18px;
  flex: none;
  margin-top: 1px;
  color: var(--gold-light);
}

.toast--error {
  border-color: rgba(185, 107, 94, 0.5);
}

.toast--error .toast__icon {
  color: #d79a8e;
}

.toast--success .toast__icon {
  color: #a8c6a3;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

@keyframes toastOut {
  to { opacity: 0; transform: translateY(8px); }
}

/* --------------------------------------------------------------------------
   Modal
   -------------------------------------------------------------------------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.is-open {
  opacity: 1;
  visibility: visible;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 6, 0.8);
  backdrop-filter: blur(6px);
}

.modal__panel {
  position: relative;
  width: min(640px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  background: var(--charcoal);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  padding: clamp(24px, 4vw, 44px);
  transform: translateY(16px);
  transition: transform 0.4s var(--ease);
}

.modal.is-open .modal__panel {
  transform: none;
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line-dark);
  color: var(--text-dim);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.modal__close:hover {
  color: var(--gold-light);
  border-color: var(--line-strong);
}

.modal__title {
  font-family: var(--serif);
  font-size: 2rem;
  margin-bottom: 10px;
}

/* --------------------------------------------------------------------------
   Empty state
   -------------------------------------------------------------------------- */

.empty {
  padding: 48px 24px;
  text-align: center;
  border: 1px dashed var(--line-dark);
}

.empty__title {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--text);
  margin-bottom: 6px;
}

.empty__text {
  font-size: 0.82rem;
  color: var(--text-faint);
  max-width: 38ch;
  margin: 0 auto;
}

.section--light .empty {
  border-color: var(--line-ink);
}

.section--light .empty__title {
  color: var(--ink-text);
}

.section--light .empty__text {
  color: var(--ink-faint);
}

@media (max-width: 1024px) {
  .g-12 { grid-template-columns: repeat(6, 1fr); }
  .span-5, .span-7 { grid-column: span 6; }
  .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-head { grid-template-columns: 1fr; gap: 22px; }
}

@media (max-width: 760px) {
  :root {
    --header-h: 72px;
  }
  .g-2,
  .g-3,
  .g-4 {
    grid-template-columns: 1fr;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-grid .span-2 {
    grid-column: span 1;
  }
  .display {
    font-size: clamp(3rem, 15vw, 5rem);
  }
  .section-head h2 {
    max-width: none;
  }
  .toast-stack {
    right: 12px;
    bottom: 12px;
    width: calc(100vw - 24px);
  }
}
