:root {
  color-scheme: dark;
  --ink: #06111f;
  --navy: #07182b;
  --navy-soft: #0d2945;
  --gold: #f0b62f;
  --gold-soft: #ffd46f;
  --paper: #f5f1e9;
  --muted: #91a1b1;
  --line: rgba(255, 255, 255, 0.14);
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
}

* { box-sizing: border-box; }

html {
  min-width: 320px;
  background: var(--ink);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--paper);
  background-color: var(--ink);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.026) 1px, transparent 1px);
  background-size: 56px 56px;
}

a { color: inherit; }

.site-shell {
  width: min(100% - 40px, 1320px);
  margin: 0 auto;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand img {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(240, 182, 47, 0.5);
  border-radius: 8px;
  object-fit: cover;
}

.brand span { display: grid; gap: 2px; }
.brand strong { font-size: 16px; letter-spacing: 0.02em; }
.brand small, .collection-label { color: var(--muted); font-size: 13px; letter-spacing: 0.14em; }

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 48px;
  align-items: end;
  min-height: 390px;
  padding: 78px 0 64px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 24px;
  color: var(--gold);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.eyebrow::before {
  width: 44px;
  height: 2px;
  background: currentColor;
  content: "";
}

h1 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(3.25rem, 8vw, 7.25rem);
  font-weight: 720;
  letter-spacing: -0.065em;
  line-height: 0.86;
}

.intro-summary {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 14px;
  align-items: end;
  padding: 0 0 8px 24px;
  border-left: 3px solid var(--gold);
}

.intro-summary strong {
  grid-row: 1 / 3;
  color: var(--gold-soft);
  font-size: 52px;
  line-height: 0.9;
}

.intro-summary span { color: white; font-size: 16px; font-weight: 700; }
.intro-summary p { grid-column: 1 / -1; margin: 22px 0 0; color: var(--muted); font-size: 16px; line-height: 1.55; }

.profiles { padding: 58px 0 82px; }

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 24px;
}

.section-heading h2 { margin: 0; font-size: 18px; letter-spacing: 0.02em; }
.section-heading span { color: var(--muted); font-size: 14px; letter-spacing: 0.14em; }
.profiles-grid { display: grid; gap: 24px; }

.profile-card {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.55fr);
  min-height: 440px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--navy);
  text-decoration: none;
  transition: border-color 180ms ease, transform 180ms ease;
}

.profile-card:hover {
  border-color: rgba(240, 182, 47, 0.72);
  transform: translateY(-3px);
}

.profile-card:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

.profile-preview {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  background: #102e4b;
}

.profile-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.88) contrast(1.05);
  transition: transform 420ms ease;
}

.profile-card:hover .profile-preview img { transform: scale(1.025); }

.profile-number {
  position: absolute;
  top: 22px;
  left: 22px;
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(6, 17, 31, 0.78);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.12em;
  backdrop-filter: blur(10px);
}

.profile-copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 34px;
}

.profile-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #b9e7d0;
  letter-spacing: 0.04em;
  text-transform: none;
}

.status::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #55d897;
  content: "";
}

.profile-copy h3 {
  margin: 48px 0 16px;
  font-size: clamp(2.25rem, 4vw, 4.25rem);
  letter-spacing: -0.055em;
  line-height: 0.94;
}

.profile-copy p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.6; }

.open-profile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 42px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--gold-soft);
  font-size: 16px;
  font-weight: 800;
}

.open-profile b { font-size: 24px; font-weight: 500; }
.empty-state { padding: 36px; border: 1px solid var(--line); color: var(--muted); font-size: 16px; }

footer {
  display: flex;
  min-height: 84px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.13em;
}

@media (max-width: 820px) {
  .intro { grid-template-columns: 1fr; min-height: 0; padding: 64px 0 48px; }
  .intro-summary { max-width: 360px; }
  .profile-card { grid-template-columns: 1fr; }
  .profile-copy { min-height: 350px; }
}

@media (max-width: 540px) {
  .site-shell { width: min(100% - 24px, 1320px); }
  .topbar { min-height: 82px; }
  .collection-label { display: none; }
  .intro { gap: 36px; padding-top: 52px; }
  h1 { font-size: clamp(3rem, 16vw, 4.8rem); }
  .profile-preview { min-height: 300px; }
  .profile-copy { min-height: 320px; padding: 26px; }
  .profile-topline { align-items: flex-start; flex-direction: column; }
  footer { align-items: flex-start; flex-direction: column; justify-content: center; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
