:root {
  color-scheme: dark;
  --bg: #05070b;
  --ink: #ffffff;
  --soft-ink: #dbe7f3;
  --muted: #9aaabe;
  --faint: #6f8095;
  --panel: rgba(9, 14, 22, 0.9);
  --panel-strong: rgba(13, 19, 29, 0.96);
  --line: rgba(255, 255, 255, 0.14);
  --line-strong: rgba(214, 177, 100, 0.42);
  --brass: #d6b164;
  --brass-soft: rgba(214, 177, 100, 0.14);
  --cyan: #69d7ff;
  --cyan-soft: rgba(105, 215, 255, 0.14);
  --danger-safe: #f4d28a;
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    linear-gradient(115deg, rgba(214, 177, 100, 0.08) 0 1px, transparent 1px 22%),
    linear-gradient(180deg, #05070b 0%, #07101d 48%, #030508 100%);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

body::before,
body::after {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
}

body::before {
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, black, transparent 78%);
}

body::after {
  background:
    linear-gradient(90deg, transparent 0 7%, rgba(214, 177, 100, 0.08) 7% 7.08%, transparent 7.08% 100%),
    linear-gradient(90deg, transparent 0 79%, rgba(105, 215, 255, 0.1) 79% 79.08%, transparent 79.08% 100%);
  opacity: 0.75;
}

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

img {
  max-width: 100%;
}

h1,
h2,
p {
  margin: 0;
  letter-spacing: 0;
}

.site-shell {
  position: relative;
  z-index: 1;
  width: min(1480px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: clamp(18px, 2.6vw, 40px);
}

.blueprint {
  pointer-events: none;
  position: fixed;
  inset: auto 0 0;
  height: 38vh;
  background:
    linear-gradient(165deg, transparent 0 34%, rgba(105, 215, 255, 0.12) 34% 34.2%, transparent 34.2% 100%),
    linear-gradient(20deg, transparent 0 59%, rgba(214, 177, 100, 0.12) 59% 59.2%, transparent 59.2% 100%);
  opacity: 0.55;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
}

.brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  display: grid;
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  overflow: hidden;
  place-items: center;
  border: 1px solid rgba(214, 177, 100, 0.44);
  border-radius: 999px;
  background: #0b121c;
}

.brand-mark img {
  display: block;
  width: 116%;
  height: 116%;
  object-fit: cover;
}

.brand strong,
.brand small,
.top-status span,
.top-status strong {
  display: block;
}

.brand strong {
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1;
}

.brand small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.top-status {
  flex: 0 0 auto;
  border: 1px solid rgba(214, 177, 100, 0.32);
  border-radius: 999px;
  background: rgba(214, 177, 100, 0.08);
  padding: 10px 16px;
  text-align: right;
}

.top-status span {
  color: var(--brass);
  font-size: 12px;
  font-weight: 800;
}

.top-status strong {
  margin-top: 3px;
  color: var(--soft-ink);
  font-size: 13px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.82fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: clamp(30px, 4vw, 48px) 0 clamp(18px, 2.4vw, 28px);
}

.hero-copy {
  min-width: 0;
}

.intro-line {
  max-width: 560px;
  color: var(--brass);
  font-size: clamp(15px, 1.8vw, 18px);
  font-weight: 800;
  line-height: 1.45;
}

h1 {
  max-width: 820px;
  margin-top: 18px;
  overflow-wrap: break-word;
  font-size: clamp(42px, 6vw, 68px);
  font-weight: 950;
  line-height: 0.96;
  text-wrap: balance;
}

.lead {
  max-width: 760px;
  margin-top: 24px;
  color: var(--soft-ink);
  font-size: clamp(17px, 1.9vw, 20px);
  line-height: 1.56;
  text-wrap: pretty;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.actions a {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  padding: 0 20px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 850;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    transform 0.18s ease;
}

.actions a:hover {
  border-color: rgba(214, 177, 100, 0.6);
  background: rgba(214, 177, 100, 0.12);
  transform: translateY(-1px);
}

.actions .primary {
  border-color: rgba(214, 177, 100, 0.76);
  background: var(--brass);
  color: #080b10;
}

.actions .primary:hover {
  background: #efca79;
}

.intent-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.intent-row article,
.persona-panel,
.build-strip,
.contact-footer a {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.intent-row article {
  min-height: 118px;
  padding: 14px;
}

.intent-row span {
  color: var(--brass);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  font-weight: 850;
}

.intent-row strong {
  display: block;
  margin-top: 16px;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.25;
}

.intent-row p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.persona-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(20px, 3vw, 30px);
  background:
    linear-gradient(145deg, rgba(214, 177, 100, 0.12), transparent 38%),
    linear-gradient(180deg, rgba(105, 215, 255, 0.08), transparent 62%),
    var(--panel-strong);
}

.persona-panel::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
}

.portrait-shell {
  position: relative;
  display: grid;
  width: min(240px, 78vw);
  aspect-ratio: 1;
  margin: 0 auto;
  overflow: hidden;
  place-items: center;
  border: 1px solid rgba(214, 177, 100, 0.36);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(214, 177, 100, 0.18), rgba(105, 215, 255, 0.1)),
    #08111d;
}

.portrait-shell::before,
.portrait-shell::after {
  content: "";
  position: absolute;
  inset: 8%;
  border: 1px solid rgba(105, 215, 255, 0.34);
  border-radius: inherit;
}

.portrait-shell::after {
  inset: 18%;
  border-color: rgba(214, 177, 100, 0.36);
}

.portrait-shell img {
  position: relative;
  z-index: 1;
  width: 105%;
  height: 105%;
  object-fit: cover;
}

.scanline {
  position: absolute;
  z-index: 2;
  inset: 14% 8% auto;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(105, 215, 255, 0.86), transparent);
  animation: scan 4.8s ease-in-out infinite;
}

.persona-copy {
  position: relative;
  z-index: 1;
  margin-top: 22px;
}

.persona-copy p {
  color: var(--cyan);
  font-size: 13px;
  font-weight: 850;
}

.persona-copy h2 {
  margin-top: 10px;
  color: var(--ink);
  font-size: clamp(23px, 2.5vw, 30px);
  line-height: 1.08;
  text-wrap: balance;
}

.persona-copy span {
  display: block;
  margin-top: 13px;
  color: var(--soft-ink);
  font-size: 15px;
  line-height: 1.65;
}

.command-list {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.command-list div {
  display: grid;
  gap: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 10px;
}

.command-list span,
.build-strip span,
.contact-footer span {
  color: var(--brass);
  font-size: 12px;
  font-weight: 850;
}

.command-list strong,
.build-strip strong,
.contact-footer strong {
  color: var(--soft-ink);
  font-size: 14px;
  line-height: 1.45;
}

.build-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.035);
}

.build-strip article {
  min-height: 116px;
  padding: 20px;
}

.build-strip article + article {
  border-left: 1px solid var(--line);
}

.build-strip strong {
  display: block;
  margin-top: 14px;
  color: var(--ink);
  font-size: 16px;
}

.contact-footer {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
  padding-bottom: 4px;
}

.contact-footer a {
  min-height: 82px;
  padding: 16px;
  transition:
    border-color 0.18s ease,
    background 0.18s ease;
}

.contact-footer a:hover {
  border-color: rgba(214, 177, 100, 0.42);
  background: rgba(214, 177, 100, 0.08);
}

.contact-footer strong {
  display: block;
  margin-top: 11px;
  overflow-wrap: anywhere;
}

a:focus-visible {
  outline: 3px solid rgba(105, 215, 255, 0.75);
  outline-offset: 4px;
}

@keyframes scan {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.35;
  }

  48% {
    transform: translateY(220px);
    opacity: 0.95;
  }
}

@media (max-width: 1100px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 44px;
  }

  .persona-panel {
    display: grid;
    grid-template-columns: minmax(220px, 0.45fr) 1fr;
    gap: 24px;
    align-items: center;
  }

  .portrait-shell {
    width: min(280px, 100%);
  }

  .command-list {
    grid-column: 1 / -1;
  }
}

@media (max-width: 820px) {
  .site-shell {
    padding: 16px;
  }

  .topbar {
    align-items: flex-start;
  }

  .top-status {
    display: none;
  }

  .intent-row,
  .build-strip,
  .contact-footer {
    grid-template-columns: 1fr;
  }

  .build-strip article + article {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .intent-row article {
    min-height: auto;
  }
}

@media (max-width: 620px) {
  .brand {
    align-items: flex-start;
  }

  .brand-mark {
    width: 50px;
    height: 50px;
  }

  .brand strong {
    font-size: 28px;
  }

  .brand small {
    max-width: 250px;
    font-size: 12px;
  }

  .hero {
    gap: 28px;
    padding-top: 26px;
  }

  h1 {
    font-size: clamp(36px, 10.8vw, 46px);
  }

  .lead {
    font-size: 16px;
    line-height: 1.48;
  }

  .actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .actions a {
    width: 100%;
  }

  .intent-row {
    display: none;
  }

  .persona-panel {
    grid-template-columns: 94px 1fr;
    gap: 14px;
    align-items: center;
    padding: 14px;
  }

  .portrait-shell {
    width: 94px;
  }

  .persona-copy {
    margin-top: 0;
  }

  .persona-copy h2 {
    font-size: 18px;
    line-height: 1.18;
  }

  .persona-copy span,
  .command-list {
    display: none;
  }

  .build-strip {
    margin-top: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
