/* ---------- Fonts ---------- */
@font-face {
  font-family: 'Aeonik Extended';
  src: url('../assets/fonts/AeonikExtended-Light.woff2') format('woff2');
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Aeonik Extended';
  src: url('../assets/fonts/AeonikExtended-Regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Aeonik Extended';
  src: url('../assets/fonts/AeonikExtended-Medium.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Aeonik Extended';
  src: url('../assets/fonts/AeonikExtended-SemiBold.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Aeonik Extended';
  src: url('../assets/fonts/AeonikExtended-Bold.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Switzer Variable';
  src: url('../assets/fonts/Switzer-Variable.woff2') format('woff2');
  font-weight: 100 900; font-style: normal; font-display: swap;
}

/* ---------- Tokens (dark theme) ---------- */
:root {
  --bg: #1a1b1e;
  --bg-soft: #131415;
  --surface: #202226;
  --ink: #faf5e4;
  --ink-dim: rgba(250, 245, 228, 0.72);
  --ink-faint: rgba(250, 245, 228, 0.58);
  --accent-ink: #f7d774;
  --gold-400: #f7d774;
  --gold-500: #f2c230;
  --gold-600: #c98f0f;
  --gold-logo: #fffb82;
  --gold-logo-deep: #f0d43c;
  --border: rgba(250, 245, 228, 0.12);
  --border-strong: rgba(250, 245, 228, 0.22);
  --card-bg: var(--surface);
  --card-bg-strong: #272a2f;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 16px 32px -18px rgba(0, 0, 0, 0.55);
  --radius-sm: 4px;
  --radius-md: 10px;
  --radius-lg: 18px;
  --font-display: 'Aeonik Extended', system-ui, -apple-system, sans-serif;
  --font-body: 'Switzer Variable', system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--gold-500);
  color: #1c1400;
  padding: 12px 20px;
  z-index: 100;
  font-weight: 600;
}
.skip-link:focus {
  left: 24px;
  top: 24px;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.12;
  color: var(--ink);
}

.eyebrow {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-500);
  margin-bottom: 14px;
}

/* ---------- Background texture ---------- */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

#particles {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.55;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(26, 27, 30, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}

.brand {
  position: relative;
  z-index: 0;
  display: inline-flex;
}

.brand::before {
  content: '';
  position: absolute;
  inset: -45% -25%;
  background: radial-gradient(ellipse at center, rgba(242, 194, 48, 0.38) 0%, rgba(242, 194, 48, 0.16) 35%, transparent 70%);
  filter: blur(16px);
  z-index: -1;
  pointer-events: none;
  animation: logo-glow-pulse 4s ease-in-out infinite;
}

@keyframes logo-glow-pulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.12); }
}

@media (prefers-reduced-motion: reduce) {
  .brand::before { animation: none; }
}

.brand-logo {
  position: relative;
  height: 34px;
  width: auto;
  filter:
    brightness(1.4) saturate(1.2) sepia(0.3) contrast(1.2)
    drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35))
    drop-shadow(0 0 14px rgba(255, 255, 121, 0.4));
}

.landing .brand-logo {
  height: 48px;
}

.site-header .brand-logo {
  height: 42px;
}

.site-header .brand::before {
  background: radial-gradient(ellipse at center, rgba(242, 194, 48, 0.26) 0%, rgba(242, 194, 48, 0.1) 35%, transparent 70%);
}

.landing .brand {
  transform: translateY(-8px);
}

.site-nav {
  display: flex;
  gap: 32px;
  font-size: 0.9rem;
  color: var(--ink-dim);
}

.site-nav a {
  position: relative;
  padding: 4px 0;
  transition: color 0.2s var(--ease);
}
.site-nav a:hover { color: var(--gold-400); }

.site-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -2px;
  height: 1px;
  background: var(--gold-500);
  transition: right 0.25s var(--ease);
}
.site-nav a:hover::after { right: 0; }

.ticker-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--ink);
  white-space: nowrap;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.ticker-chip:hover {
  border-color: var(--gold-500);
  background: var(--card-bg);
}

.ticker-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-500);
  color: var(--gold-500);
}

/* Only pulses once a real live quote has loaded (.is-live) — never implies
   live data that hasn't actually arrived. */
.ticker-dot.is-live {
  background: #4ade80;
  color: #4ade80;
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6);
  animation: pulse-dot 2.2s infinite;
}

@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.5); }
  70% { box-shadow: 0 0 0 7px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

/* ---------- Instrument plate (shared panel treatment) ----------
   A solid field-instrument plate, not a translucent glass card: a
   benchmark/claim-tag reference rather than a generic frosted panel.
   Guarantees contrast against light text regardless of what's behind it. */
.plate {
  position: relative;
  background: linear-gradient(160deg, #16171a 0%, #1f2124 100%);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 18px;
  box-shadow:
    0 0 22px 2px rgba(220, 224, 230, 0.18),
    0 16px 36px -16px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* ---------- Live ticker plate (homepage) ---------- */
.ticker-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  background: linear-gradient(160deg, rgba(22, 23, 26, 0.8) 0%, rgba(31, 33, 36, 0.8) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: default;
}

.ticker-card-top {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ticker-card .ticker-dot {
  width: 6px;
  height: 6px;
  box-shadow: 0 0 6px 1px currentColor;
}

.ticker-symbol {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
}

.ticker-card-bottom {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding-left: 14px;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.ticker-price {
  font-family: var(--font-display);
  font-size: 1.38rem;
  font-weight: 700;
  color: #f5f1e8;
  letter-spacing: -0.01em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.ticker-skel {
  display: inline-block;
  width: 54px;
  height: 15px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.06));
  background-size: 200% 100%;
  animation: skel-shimmer 1.4s ease-in-out infinite;
}

@keyframes skel-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.ticker-change {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.ticker-change.is-up { color: #4ade80; }
.ticker-change.is-down { color: #f87171; }
.ticker-change.is-flat { color: rgba(255, 255, 255, 0.45); }

.ticker-arrow {
  width: 8px;
  height: 8px;
  fill: currentColor;
  flex-shrink: 0;
}
.ticker-change.is-down .ticker-arrow { transform: rotate(180deg); }
.ticker-change.is-flat .ticker-arrow { display: none; }

@media (max-width: 560px) {
  .ticker-card { min-width: 0; padding: 11px 16px; }
  .ticker-price { font-size: 1.15rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 92px 0 84px;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 900px;
  max-width: 160vw;
  background: radial-gradient(circle, rgba(242, 194, 48, 0.16) 0%, rgba(242, 194, 48, 0.04) 40%, transparent 70%);
  z-index: 0;
  animation: float-glow 12s ease-in-out infinite;
}

@keyframes float-glow {
  0%, 100% { transform: translateX(-50%) translateY(0) scale(1); }
  50% { transform: translateX(-50%) translateY(-20px) scale(1.04); }
}

.hero-inner {
  position: relative;
  z-index: 2;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: start;
  text-align: left;
}

.hero-main {
  padding-top: 8px;
}

.hero h1 {
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  margin: 0 0 18px;
  opacity: 0;
  animation: fade-up 0.7s var(--ease) 0.08s forwards;
}

.hero .eyebrow {
  margin-bottom: 10px;
  opacity: 0;
  animation: fade-up 0.7s var(--ease) 0s forwards;
}

.hero-sub {
  max-width: 480px;
  color: var(--ink-dim);
  font-size: 1.05rem;
  margin: 0 0 32px;
  opacity: 0;
  animation: fade-up 0.7s var(--ease) 0.16s forwards;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: flex-start;
  opacity: 0;
  animation: fade-up 0.7s var(--ease) 0.24s forwards;
}

.hero-side {
  opacity: 0;
  animation: fade-up 0.7s var(--ease) 0.2s forwards;
}

.hero-agm-full {
  margin-top: 56px;
  padding-top: 44px;
  border-top: 1px solid var(--border);
  opacity: 0;
  animation: fade-up 0.7s var(--ease) 0.28s forwards;
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-logo), var(--gold-logo-deep));
  color: #1c1400;
  box-shadow: 0 8px 24px -8px rgba(240, 212, 60, 0.5);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -8px rgba(240, 212, 60, 0.6);
}

.btn-ghost {
  border: 1px solid var(--border);
  color: var(--ink);
}
.btn-ghost:hover {
  border-color: var(--gold-500);
  color: var(--gold-400);
  transform: translateY(-2px);
}

/* ---------- Sections ---------- */
.section {
  position: relative;
  z-index: 2;
  padding: 88px 0;
  border-top: 1px solid var(--border);
  scroll-margin-top: 76px;
}

.section-alt {
  background: var(--bg-soft);
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.3rem);
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.no-js .reveal {
  opacity: 1;
  transform: none;
}

@media print {
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Overview ---------- */
.overview-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: start;
}

.overview-copy p {
  color: var(--ink-dim);
  font-size: 1.02rem;
  margin-bottom: 18px;
}

.fact-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 32px;
  display: grid;
  gap: 22px;
}

.fact-card dt {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 4px;
}

.fact-card dd {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--accent-ink);
}

/* ---------- AGM grid ---------- */
.agm-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.agm-item {
  background: var(--surface);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: background 0.3s var(--ease);
}
.agm-item:hover {
  background: var(--card-bg-strong);
}

.agm-label {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.agm-value {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.15rem;
  color: var(--ink);
}
.agm-value[data-field] {
  color: var(--ink-dim);
  font-weight: 400;
  font-style: italic;
}

.agm-note {
  text-align: left;
  margin: 20px 0 0;
  color: var(--ink-faint);
  font-size: 0.92rem;
}

.hero-agm-grid {
  text-align: left;
}

/* ---------- Meeting Materials (hero) ---------- */
.materials {
  margin: 36px 0 0;
}

.materials-label {
  display: block;
  text-align: left;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 16px;
}

.materials-list {
  list-style: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--card-bg);
  box-shadow: var(--shadow-sm);
}

.materials-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 22px;
}
.materials-list li:not(:last-child) {
  border-bottom: 1px solid var(--border);
}

.material-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink);
  text-align: left;
  flex: 1;
  min-width: 0;
}

.doc-status {
  display: inline-block;
  flex-shrink: 0;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--ink-faint);
}

.doc-status--ready {
  border-color: var(--gold-500);
  color: var(--accent-ink);
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.doc-status--ready:hover {
  background: var(--gold-500);
  color: #1c1400;
}

.doc-note {
  text-align: left;
  margin-top: 20px;
  color: var(--ink-faint);
  font-size: 0.9rem;
}
.doc-note a {
  color: var(--accent-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.doc-note a:hover { color: var(--gold-500); }

/* ---------- Steps ---------- */
.steps {
  list-style: none;
  max-width: 720px;
  margin: 0 auto;
  display: grid;
  gap: 36px;
}

.steps li {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.step-num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--gold-500);
  color: var(--accent-ink);
  font-family: var(--font-display);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.steps h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.steps p {
  color: var(--ink-dim);
  font-size: 0.95rem;
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 72px 0 48px;
  position: relative;
  z-index: 2;
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  scroll-margin-top: 76px;
}

.footer-top {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 40px;
}

.footer-logo {
  height: 20px;
  width: auto;
  margin: 0 auto 20px;
  opacity: 0.85;
}

.footer-tagline {
  color: var(--ink-dim);
  font-size: 1rem;
}

.footer-contact {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.contact-link {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 20px 32px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.02rem;
  min-width: 240px;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease), color 0.2s var(--ease);
}
.contact-link:hover {
  border-color: var(--gold-500);
  transform: translateY(-2px);
  color: var(--gold-400);
}

.contact-link--static {
  line-height: 1.5;
}
.contact-link--static:hover {
  border-color: var(--border);
  transform: none;
  color: inherit;
}

.contact-label {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 8px;
  font-weight: 500;
}

.footer-legal {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  font-size: 0.78rem;
  color: var(--ink-faint);
  line-height: 1.6;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-sub { max-width: 560px; }
}

@media (max-width: 860px) {
  .site-nav { display: none; }
  .overview-grid { grid-template-columns: 1fr; }
  .agm-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .hero { padding: 68px 0 56px; }
  .section { padding: 64px 0; }
  .agm-grid { grid-template-columns: 1fr; }
  .header-inner { height: 68px; }
  .brand-logo { height: 28px; }
  .ticker-chip span:not(.ticker-dot) { display: none; }
  .contact-link { min-width: 100%; }
  .materials-list li { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* ---------- Landing (homepage) ---------- */
html.landing-html {
  height: 100%;
  overflow: hidden;
}

body.landing-body {
  height: 100vh;
  height: 100dvh;
  margin: 0;
  overflow: hidden;
}

.landing {
  position: relative;
  height: 100%;
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.landing-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.landing-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 55%;
  filter: contrast(1.18) saturate(1.15) brightness(1.02);
}

@media (max-aspect-ratio: 3/4) {
  .landing-bg img {
    object-position: 74% 55%;
  }
}

.landing-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(10, 10, 10, 0.32) 0%, rgba(10, 10, 10, 0.02) 22%, rgba(10, 10, 10, 0.08) 55%, rgba(10, 10, 10, 0.5) 100%),
    linear-gradient(90deg, rgba(10, 10, 10, 0.28) 0%, rgba(10, 10, 10, 0.04) 42%, rgba(10, 10, 10, 0) 68%);
}

.landing-top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  box-sizing: border-box;
  padding: clamp(20px, 4vh, 36px) clamp(24px, 4vw, 48px) 16px;
  opacity: 0;
  animation: fade-up 0.8s var(--ease) 0.05s forwards;
}

.landing-content {
  position: relative;
  z-index: 2;
  width: 100%;
  box-sizing: border-box;
  padding: 0 clamp(24px, 4vw, 48px) clamp(28px, 7vh, 72px);
  opacity: 0;
  animation: fade-up 0.8s var(--ease) 0.15s forwards;
}

.landing-content::before {
  content: '';
  position: absolute;
  z-index: -1;
  top: -265px;
  left: -24px;
  bottom: -20px;
  width: 1380px;
  max-width: calc(100% + 24px);
  /* Ellipse must reach full transparency inside the box on the top side —
     if it's still partially opaque at the edge, the clip reads as a hard line. */
  background: radial-gradient(ellipse 85% 55% at 8% 68%, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.5) 40%, rgba(0, 0, 0, 0.18) 66%, transparent 88%);
  pointer-events: none;
}

.landing-content > * {
  max-width: 560px;
}

.landing .eyebrow {
  color: var(--gold-400);
  font-size: 0.98rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
}

.landing-content h1 {
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  color: #fff;
  margin: 0 0 14px;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
}

.landing-sub {
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(0.95rem, 1.6vw, 1.05rem);
  max-width: 480px;
  margin: 0 0 28px;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
}

.landing-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.landing .btn-ghost {
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}
.landing .btn-ghost:hover {
  border-color: var(--gold-500);
  color: var(--gold-400);
}

/* ---------- Subscribe plate (homepage) ---------- */
.subscribe-card {
  position: absolute;
  z-index: 2;
  right: clamp(24px, 4vw, 48px);
  bottom: clamp(32px, 5.5vh, 52px);
  width: 460px;
  max-width: calc(100vw - 48px);
  padding: 26px 34px 29px;
  background: linear-gradient(160deg, rgba(22, 23, 26, 0.62) 0%, rgba(31, 33, 36, 0.62) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  animation: fade-up 0.8s var(--ease) 0.25s forwards;
}

.subscribe-heading {
  font-family: var(--font-display);
  font-size: 1.14rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 8px;
}

.subscribe-copy {
  font-size: 0.92rem;
  line-height: 1.4;
  color: rgba(245, 241, 232, 0.68);
  margin: 0 0 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.subscribe-form {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 14px;
}

.subscribe-form input[type='email'] {
  flex: 1;
  min-width: 0;
  box-sizing: border-box;
  padding: 4px 2px 10px;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 0;
  background: transparent;
  color: #f5f1e8;
  font-family: var(--font-body);
  font-size: 0.94rem;
  transition: border-color 0.2s var(--ease);
}
.subscribe-form input[type='email']::placeholder {
  color: rgba(245, 241, 232, 0.35);
}
.subscribe-form input[type='email']:focus-visible {
  outline: none;
  border-bottom-color: var(--gold-logo);
}

.subscribe-btn {
  flex-shrink: 0;
  width: auto;
  padding: 11px 22px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg, var(--gold-logo), var(--gold-logo-deep));
  color: #1c1400;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease), box-shadow 0.2s var(--ease);
  box-shadow: 0 8px 18px -8px rgba(240, 212, 60, 0.45);
}
.subscribe-btn:hover { transform: translateY(-1px); }
.subscribe-btn:disabled { opacity: 0.6; cursor: default; transform: none; }

.subscribe-message {
  margin: 4px 0 0;
  font-size: 0.8rem;
  min-height: 0;
}
.subscribe-message:empty {
  margin: 0;
}
.subscribe-message.is-success { color: #4ade80; }
.subscribe-message.is-error { color: #f87171; }

@media (max-width: 1150px) {
  .subscribe-card { width: 300px; padding: 18px 20px; }
  .subscribe-copy { white-space: normal; }
  .subscribe-form { flex-direction: column; }
  .subscribe-btn { width: 100%; }
  .landing-content > * { max-width: 440px; }
}

@media (max-width: 760px) {
  .subscribe-card { display: none; }
}

@media (max-height: 560px) {
  .landing-sub { display: none; }
  .landing-content h1 { margin-bottom: 10px; }
}

@media (max-width: 480px) {
  .landing-content { max-width: 100%; }
  .landing-actions { flex-direction: column; align-items: flex-start; }
  .landing-actions .btn { width: 100%; }
  .landing .brand-logo { height: 26px; }
  .landing-top { align-items: flex-start; }
  .ticker-card { min-width: 0; padding: 8px 12px; gap: 5px; border-radius: 12px; }
  .ticker-symbol { font-size: 0.6rem; }
  .ticker-price { font-size: 0.98rem; }
  .ticker-change { font-size: 0.64rem; padding: 2px 6px; }
}

/* ---------- AGM page terrain background ---------- */
/* Photo sits behind the charcoal: a heavy tinted overlay keeps text contrast
   while letting the terrain show through subtly. */
body.agm-body {
  background: transparent;
}

.agm-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(160deg, rgba(22, 23, 26, 0.9) 0%, rgba(26, 27, 30, 0.86) 100%),
    url('/assets/img/agm-terrain-2000.jpg') center 40% / cover no-repeat;
  pointer-events: none;
}

body.agm-body .section-alt {
  background: rgba(19, 20, 21, 0.5);
}

body.agm-body .site-footer {
  background: rgba(19, 20, 21, 0.6);
}

/* ---------- Cross-page fade (View Transitions API) ---------- */
/* Both documents share this stylesheet, so both opt in; unsupported
   browsers simply navigate normally. */
@view-transition {
  navigation: auto;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.35s;
  animation-timing-function: ease;
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation-duration: 0.01ms;
  }
}

/* ---------- Contact modal (homepage) ---------- */
.contact-modal {
  margin: auto;
  width: min(440px, calc(100vw - 48px));
  padding: 26px 30px 30px;
  background: linear-gradient(160deg, #16171a 0%, #1f2124 100%);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 18px;
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.7);
  color: #f5f1e8;
}

.contact-modal::backdrop {
  background: rgba(10, 10, 12, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.contact-modal[open] {
  animation: fade-up 0.3s var(--ease);
}

.contact-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.contact-modal-head h2 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: #fff;
  margin: 0;
}

.contact-modal-close {
  background: none;
  border: none;
  color: rgba(245, 241, 232, 0.6);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  padding: 2px 8px;
  border-radius: 8px;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.contact-modal-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.contact-modal-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-modal-row {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 0.95rem;
  line-height: 1.5;
}

.contact-modal-row a {
  color: var(--gold-logo);
  width: fit-content;
}
.contact-modal-row a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-modal-label {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(245, 241, 232, 0.5);
}
