:root {
  --bg: #080808;
  --panel: rgba(20, 20, 20, 0.82);
  --panel-hover: rgba(30, 30, 30, 0.92);
  --line: rgba(255, 255, 255, 0.10);
  --text: #f4f0e8;
  --muted: #a8a399;
  --gold: #c8a56a;
  --gold-soft: rgba(200, 165, 106, 0.22);
  --shadow: 0 30px 90px rgba(0,0,0,0.55);
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; }
button { font: inherit; }

.backdrop {
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(90deg, rgba(0,0,0,0.84) 0%, rgba(0,0,0,0.56) 22%, rgba(0,0,0,0.38) 50%, rgba(0,0,0,0.56) 78%, rgba(0,0,0,0.84) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.18), rgba(0,0,0,0.66)),
    url("assets/trump-unseen-wide.png") center/cover no-repeat;
  filter: saturate(0.80) brightness(0.66);
  transform: scale(1.03);
}

.backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center 45%, rgba(205,170,110,0.18), transparent 30%),
    linear-gradient(180deg, rgba(8,8,8,0.18), #080808 97%);
}

.grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .16;
  background-image: radial-gradient(rgba(255,255,255,0.08) .7px, transparent .7px);
  background-size: 8px 8px;
  mix-blend-mode: soft-light;
}

.site-shell {
  width: min(1480px, calc(100% - 32px));
  min-height: 100dvh;
  margin: 0 auto;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 22px 0 26px;
}

.topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.brand,
.ticker {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .28em;
  color: #e9e2d6;
}

.ticker { color: var(--gold); }

.stage {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(360px, 540px) minmax(260px, 1fr);
  align-items: center;
  gap: clamp(26px, 4vw, 72px);
  padding: 26px 0 18px;
}

.side-stack {
  display: grid;
  gap: 18px;
}

.left-stack { justify-items: end; }
.right-stack { justify-items: start; }

.side-button {
  width: min(100%, 345px);
  min-height: 88px;
  display: grid;
  grid-template-columns: 58px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 23px;
  background: linear-gradient(180deg, rgba(22,22,22,0.86), rgba(9,9,9,0.90));
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 50px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.04);
  transition: transform .22s ease, border-color .22s ease, background .22s ease, box-shadow .22s ease;
}

.side-button:hover {
  transform: translateY(-3px);
  border-color: rgba(200,165,106,.38);
  background: linear-gradient(180deg, rgba(31,29,25,.95), rgba(11,11,10,.96));
  box-shadow: 0 22px 60px rgba(0,0,0,.38), 0 0 0 1px rgba(200,165,106,.06) inset;
}

.icon-wrap {
  width: 58px;
  height: 58px;
  border-radius: 17px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: #050505;
  border: 1px solid rgba(255,255,255,.08);
}

.icon-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.button-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.button-copy small {
  color: #9f998f;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .20em;
}

.button-copy strong {
  font-size: 15px;
  line-height: 1.08;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.arrow {
  color: #d4c2a2;
  font-size: 17px;
  opacity: .78;
}

.portrait-wrap {
  position: relative;
  justify-self: center;
  width: min(100%, 540px);
  animation: unseenFloat 6s ease-in-out infinite;
}

@keyframes unseenFloat {
  0%,100% { transform: translateY(0) rotate(-.15deg); }
  50% { transform: translateY(-9px) rotate(.15deg); }
}

.halo {
  position: absolute;
  inset: 10% 8% -6%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(211,175,112,.20), rgba(120,90,48,.05) 48%, transparent 72%);
  filter: blur(24px);
}

.portrait-card {
  position: relative;
  overflow: hidden;
  border-radius: 38px;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.08);
  background: #111;
}

.portrait {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
}

.portrait-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, transparent 58%, rgba(0,0,0,.48) 100%),
    radial-gradient(circle at center, transparent 58%, rgba(0,0,0,.24) 100%);
}

.nameplate {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  width: calc(100% - 36px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 15px 18px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(6,6,6,.68);
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 34px rgba(0,0,0,.32);
}

.nameplate span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  letter-spacing: .10em;
}

.nameplate strong {
  color: var(--gold);
  font-size: 12px;
  letter-spacing: .18em;
}

.contract-row {
  width: min(720px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 48px minmax(0,1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 20px;
  background: rgba(8,8,8,.74);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 42px rgba(0,0,0,.30);
}

.contract-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
}
.contract-icon img { width:100%; height:100%; object-fit:cover; }

.contract-copy { min-width: 0; }
.contract-copy small {
  display: block;
  margin-bottom: 5px;
  color: #8f8a82;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .18em;
}

#caText {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #eee8df;
  font: 700 12px/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

#copyButton {
  border: 1px solid rgba(200,165,106,.22);
  border-radius: 13px;
  padding: 11px 15px;
  background: rgba(200,165,106,.10);
  color: #f0dfc0;
  font-weight: 800;
  cursor: pointer;
  transition: .2s ease;
}

#copyButton:hover {
  background: rgba(200,165,106,.18);
  transform: translateY(-1px);
}

@media (max-width: 1040px) {
  .site-shell { min-height: auto; }
  .stage {
    grid-template-columns: 1fr;
    gap: 18px;
    padding-top: 18px;
  }
  .portrait-wrap { grid-row: 1; width: min(82vw, 520px); }
  .left-stack, .right-stack {
    justify-items: stretch;
    grid-template-columns: 1fr 1fr;
    width: min(760px, 100%);
    margin: 0 auto;
  }
  .left-stack { grid-row: 2; }
  .right-stack { grid-row: 3; }
  .side-button { width: 100%; }
}

@media (max-width: 680px) {
  .site-shell { width: min(100% - 18px, 1480px); padding-top: 14px; }
  .brand, .ticker { font-size: 9px; letter-spacing: .20em; }
  .portrait-wrap { width: 100%; }
  .portrait-card { border-radius: 28px; }
  .nameplate { bottom: 12px; width: calc(100% - 24px); }
  .nameplate span { font-size: 15px; }
  .left-stack, .right-stack { grid-template-columns: 1fr; }
  .side-button { min-height: 78px; }
  .contract-row { grid-template-columns: 44px minmax(0,1fr); }
  #copyButton { grid-column: 1 / -1; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .portrait-wrap { animation: none; }
  .side-button, #copyButton { transition: none; }
}
