:root {
  --navy: #08172f;
  --navy-soft: #12284a;
  --blue: #245ddb;
  --blue-light: #dbe8ff;
  --ink: #132037;
  --muted: #65738a;
  --line: #e3e8f0;
  --paper: #ffffff;
  --mist: #f3f6fb;
}

* { box-sizing: border-box; }

html { color-scheme: light; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 0%, rgba(67, 111, 210, .23), transparent 34%),
    radial-gradient(circle at 100% 85%, rgba(58, 96, 180, .17), transparent 30%),
    var(--navy);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }

.shell {
  margin: 0 auto;
  max-width: 1080px;
  padding: 48px 22px 34px;
}

.card {
  display: grid;
  grid-template-columns: minmax(320px, .78fr) minmax(430px, 1.22fr);
  min-height: 680px;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 35px 100px rgba(0,0,0,.36);
}

.portrait-panel {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  background: #061126;
}

.portrait-wrap,
.portrait-wrap img,
.portrait-shade { position: absolute; inset: 0; }

.portrait-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 38%;
  filter: saturate(.78) contrast(1.04);
}

.portrait-shade {
  background: linear-gradient(180deg, transparent 45%, rgba(3,10,25,.35) 68%, rgba(3,10,25,.96) 100%);
}

.monogram {
  position: absolute;
  top: 26px;
  left: 26px;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  color: white;
  border: 1px solid rgba(255,255,255,.65);
  outline: 1px solid rgba(111,158,255,.75);
  outline-offset: -6px;
  font-weight: 800;
  letter-spacing: -.04em;
}

.portrait-caption {
  position: absolute;
  right: 28px;
  bottom: 28px;
  left: 28px;
  margin: 0;
  color: white;
  font: italic 34px/1.05 Georgia, "Times New Roman", serif;
  letter-spacing: -.035em;
}

.content-panel { padding: 58px clamp(32px, 5vw, 64px) 46px; }

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
}

h1, h2 { font-family: Georgia, "Times New Roman", serif; }

h1 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(46px, 6vw, 68px);
  font-weight: 500;
  letter-spacing: -.05em;
  line-height: .98;
}

.role {
  margin: 17px 0 0;
  color: var(--blue);
  font-size: 14px;
  font-weight: 800;
}

.intro {
  max-width: 560px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.72;
}

.primary-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 30px;
}

.action,
.save-contact,
.verify-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  min-height: 52px;
  padding: 0 18px;
  font-size: 13px;
  font-weight: 800;
  transition: transform .18s ease, background .18s ease, color .18s ease;
}

.action:hover,
.save-contact:hover,
.verify-link:hover { transform: translateY(-2px); }

.action-primary { color: white; background: var(--blue); }
.action-primary:hover { background: #1748bb; }
.action-secondary { color: var(--navy); background: var(--blue-light); }
.action-secondary:hover { background: #ccdcfb; }

.contact-list {
  margin-top: 31px;
  border-top: 1px solid var(--line);
}

.contact-list > a {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  gap: 13px;
  align-items: center;
  min-height: 68px;
  border-bottom: 1px solid var(--line);
}

.contact-list > a:hover strong { color: var(--blue); }
.contact-list small,
.contact-list strong { display: block; }
.contact-list small { margin-bottom: 4px; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.contact-list strong { overflow-wrap: anywhere; font-size: 13px; }
.contact-list b { color: var(--blue); font-size: 17px; font-weight: 400; }

.contact-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  color: white;
  background: var(--navy);
  font-size: 10px;
  font-weight: 900;
}

.save-contact {
  margin-top: 20px;
  color: white;
  background: var(--navy);
}

.save-contact:hover { background: var(--navy-soft); }

.credentials {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: end;
  margin-top: 31px;
  padding: 24px;
  background: var(--mist);
  border-left: 3px solid var(--blue);
}

.credentials .eyebrow { margin-bottom: 7px; }
.credentials h2 { margin: 0; color: var(--navy); font-size: 24px; font-weight: 500; }
.credentials p:not(.eyebrow) { margin: 5px 0 0; color: var(--muted); font-size: 11px; }

.npn {
  padding: 0;
  cursor: pointer;
  color: var(--navy);
  background: transparent;
  border: 0;
  text-align: right;
}

.npn span,
.npn small { display: block; }
.npn span { color: var(--blue); font-size: 22px; font-weight: 900; letter-spacing: .03em; }
.npn small { margin-top: 3px; color: var(--muted); font-size: 9px; }

.verify-link {
  justify-content: space-between;
  min-height: 48px;
  margin-top: 13px;
  color: white;
  background: var(--blue);
}

.verify-note {
  margin: 11px 0 0;
  color: #758096;
  font-size: 9px;
  line-height: 1.55;
}

.license-box {
  margin-top: 18px;
  padding: 25px;
  background: #f7f9fd;
  border: 1px solid var(--line);
  border-top: 3px solid var(--blue);
}

.license-heading,
.license-state-row,
.license-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.license-heading { align-items: flex-start; }
.license-heading .eyebrow { margin-bottom: 8px; }
.license-heading h2 { margin: 0; color: var(--navy); font-size: 27px; font-weight: 500; }

.license-count {
  flex: 0 0 auto;
  padding: 8px 10px;
  color: var(--blue);
  background: var(--blue-light);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.license-intro {
  margin: 14px 0 19px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.state-label {
  display: block;
  margin-bottom: 7px;
  color: var(--navy);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.state-picker {
  width: 100%;
  min-height: 48px;
  padding: 0 42px 0 14px;
  color: var(--ink);
  background: white;
  border: 1px solid #cfd7e5;
  border-radius: 0;
  font: 700 13px/1.3 Arial, Helvetica, sans-serif;
}

.license-detail {
  margin-top: 13px;
  padding: 17px;
  background: white;
  border: 1px solid var(--line);
}

.license-state-row { align-items: flex-start; }
.license-state-row strong,
.license-state-row span { display: block; }
.license-state-row strong { color: var(--navy); font: 500 19px/1.25 Georgia, "Times New Roman", serif; }
.license-state-row span { margin-top: 5px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.license-state-row > a { flex: 0 0 auto; color: var(--blue); font-size: 11px; font-weight: 800; }

.license-credentials {
  display: grid;
  gap: 10px;
  grid-template-columns: .8fr 1.2fr;
  margin: 16px 0 0;
}
.license-credentials > div { padding: 12px; background: var(--mist); }
.license-credentials dt { color: var(--muted); font-size: 8px; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }
.license-credentials dd { margin: 5px 0 0; color: var(--navy); font-size: 11px; font-weight: 800; line-height: 1.4; }

.license-actions { margin-top: 15px; }
.license-action {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 43px;
  padding: 0 13px;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}
.license-action-secondary { color: white; background: var(--navy); }
.license-detail > p { margin: 12px 0 0; color: #788398; font-size: 8px; line-height: 1.55; }

.state-picker:focus-visible { outline: 3px solid #8dafff; outline-offset: 2px; }

footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: start;
  padding: 24px 2px 0;
  color: #a9b8d0;
  font-size: 9px;
  line-height: 1.55;
}

footer p { margin: 0; }
footer a { color: white; font-weight: 800; white-space: nowrap; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 10;
  padding: 12px 17px;
  transform: translate(-50%, 22px);
  opacity: 0;
  pointer-events: none;
  color: white;
  background: var(--navy);
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 12px 35px rgba(0,0,0,.3);
  font-size: 12px;
  font-weight: 800;
  transition: opacity .2s ease, transform .2s ease;
}

.toast.show { opacity: 1; transform: translate(-50%, 0); }

a:focus-visible,
button:focus-visible { outline: 3px solid #8dafff; outline-offset: 3px; }

@media (max-width: 820px) {
  .shell { max-width: 590px; padding: 18px 14px 28px; }
  .card { grid-template-columns: 1fr; }
  .portrait-panel { min-height: 420px; }
  .portrait-wrap img { object-position: 50% 31%; }
  .content-panel { padding: 40px 27px 36px; }
  footer { grid-template-columns: 1fr; gap: 10px; padding: 22px 6px 0; }
  footer a { white-space: normal; }
}

@media (max-width: 460px) {
  .shell { padding: 0 0 28px; }
  .card { border: 0; box-shadow: none; }
  .portrait-panel { min-height: 360px; }
  .portrait-caption { right: 22px; bottom: 22px; left: 22px; font-size: 29px; }
  .content-panel { padding: 35px 21px 33px; }
  .primary-actions { grid-template-columns: 1fr; }
  .credentials { grid-template-columns: 1fr; align-items: start; }
  .npn { text-align: left; }
  .license-heading,
  .license-state-row,
  .license-actions { align-items: stretch; flex-direction: column; }
  .license-credentials { grid-template-columns: 1fr; }
  .license-state-row > a { align-self: flex-start; }
  footer { padding-right: 21px; padding-left: 21px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
