:root {
  color-scheme: dark;
  --bg: #111827;
  --panel: #182436;
  --panel-soft: #203047;
  --line: rgba(226, 232, 240, 0.14);
  --text: #f8fafc;
  --muted: #b7c4d5;
  --quiet: #8ea0b5;
  --accent: #2dd4bf;
  --accent-strong: #0f766e;
  --gold: #f0b95a;
  --shadow: 0 24px 70px rgba(2, 6, 23, 0.34);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  min-height: 100vh;
  padding: 28px;
  background:
    linear-gradient(90deg, rgba(240, 185, 90, 0.08) 0 1px, transparent 1px 100%),
    linear-gradient(180deg, #111827 0%, #0f172a 100%);
  background-size: 64px 64px, auto;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
}

.page {
  width: min(1080px, 100%);
  min-height: calc(100vh - 56px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  gap: 20px;
  align-items: stretch;
}

.profile,
.scan {
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--panel) 94%, black);
  box-shadow: var(--shadow);
}

.profile {
  display: grid;
  align-content: start;
  gap: 28px;
  padding: clamp(24px, 4vw, 44px);
  border-radius: 8px;
}

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

.brand-logo {
  display: block;
  width: min(188px, 52vw);
  height: auto;
}

.text-link {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.text-link:hover,
.details a:hover {
  color: var(--accent);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 290px);
  gap: clamp(24px, 4vw, 42px);
  align-items: start;
}

.copy {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(3rem, 8vw, 5.8rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.title {
  margin: 22px 0 0;
  max-width: 16ch;
  color: var(--text);
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  font-weight: 800;
  line-height: 1.08;
}

.company {
  margin: 12px 0 0;
  color: var(--gold);
  font-size: 1rem;
  font-weight: 700;
}

.summary {
  max-width: 58ch;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.7;
}

.portrait {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(248, 250, 252, 0.16);
  border-radius: 8px;
  background: var(--panel-soft);
}

.portrait img {
  display: block;
  width: 100%;
  aspect-ratio: 37 / 41;
  object-fit: cover;
  object-position: center top;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 2px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid rgba(248, 250, 252, 0.16);
  border-radius: 6px;
  background: rgba(248, 250, 252, 0.04);
  color: var(--text);
  font-size: 0.94rem;
  font-weight: 800;
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
  border-color: rgba(45, 212, 191, 0.52);
  background: rgba(45, 212, 191, 0.1);
}

.button.primary {
  border-color: transparent;
  background: var(--accent);
  color: #062724;
}

.details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.details div {
  min-width: 0;
  padding: 18px;
  background: rgba(15, 23, 42, 0.5);
}

.details dt {
  margin: 0 0 8px;
  color: var(--quiet);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.details dd {
  margin: 0;
  color: var(--text);
  font-size: 0.98rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.details a {
  text-decoration: none;
}

.scan {
  display: grid;
  align-content: start;
  gap: 20px;
  padding: 26px;
  border-radius: 8px;
  background: #f8fafc;
  color: #111827;
}

.scan .eyebrow {
  color: var(--accent-strong);
}

.scan-copy {
  margin: 0;
  color: #475569;
  line-height: 1.65;
}

.scan img {
  width: min(100%, 300px);
  height: auto;
  justify-self: center;
  padding: 14px;
  border: 1px solid #dbe3ee;
  border-radius: 8px;
  background: white;
}

.scan .button {
  width: 100%;
  border-color: #cad5e2;
  background: white;
  color: #111827;
}

@media (max-width: 900px) {
  body {
    padding: 16px;
  }

  .page {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .portrait {
    width: min(320px, 100%);
  }
}

@media (max-width: 580px) {
  .profile,
  .scan {
    padding: 22px;
  }

  .masthead {
    align-items: flex-start;
    flex-direction: column;
  }

  h1 {
    font-size: clamp(2.55rem, 16vw, 4rem);
  }

  .title {
    max-width: 100%;
  }

  .actions,
  .button {
    width: 100%;
  }

  .details {
    grid-template-columns: 1fr;
  }
}
