:root {
  --ink: #0b1825;
  --navy: #091a2b;
  --blue: #0a77bc;
  --copper: #b66b3d;
  --forest: #173d34;
  --brass: #a98547;
  --limestone: #e8e3d8;
  --paper: #f8f6f1;
  --muted: #64717b;
  --line: rgba(11, 24, 37, 0.12);
  --radius: 30px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--navy);
}

* { box-sizing: border-box; }

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

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 12% 18%, rgba(10, 119, 188, 0.22), transparent 34rem),
    radial-gradient(circle at 86% 82%, rgba(169, 133, 71, 0.17), transparent 31rem),
    linear-gradient(145deg, #071521 0%, #0d2635 55%, #132d2a 100%);
}

button, a { -webkit-tap-highlight-color: transparent; }

button { font: inherit; }

.page-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(18px, 3.5vw, 56px);
}

.profile-card {
  width: min(1080px, 100%);
  min-height: min(760px, calc(100vh - 64px));
  display: grid;
  grid-template-columns: minmax(330px, 0.88fr) minmax(500px, 1.12fr);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 35px 100px rgba(0,0,0,0.36), 0 2px 10px rgba(0,0,0,0.18);
}

.portrait-panel {
  position: relative;
  min-height: 100%;
  overflow: hidden;
  background: #b9cad2;
}

.portrait-panel > img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 50% 30%;
  transform: scale(1.015);
}

.portrait-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 56%, rgba(5,18,31,0.78) 100%);
}

.location-badge {
  position: absolute;
  left: 26px;
  bottom: 26px;
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  color: white;
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.location-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #75c4ef;
  box-shadow: 0 0 0 5px rgba(117,196,239,0.2);
}

.content-panel {
  display: flex;
  flex-direction: column;
  padding: clamp(32px, 5vw, 66px);
}

.identity { margin-bottom: 28px; }

.eyebrow {
  margin: 0 0 13px;
  color: var(--blue);
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.45rem, 7vw, 5.9rem);
  font-weight: 400;
  letter-spacing: -0.062em;
  line-height: 0.78;
}

h1 span { color: var(--forest); }

.role {
  max-width: 480px;
  margin: 25px 0 0;
  color: #53606a;
  font-size: 1rem;
  line-height: 1.55;
}

.role strong { color: var(--ink); font-weight: 660; }

.quick-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 9px;
  margin-bottom: 25px;
}

.action {
  min-height: 68px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 5px;
  border: 1px solid var(--line);
  border-radius: 15px;
  color: var(--ink);
  background: rgba(255,255,255,0.58);
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.action:hover { transform: translateY(-2px); border-color: rgba(10,119,188,0.5); background: white; }

.action-primary { color: white; border-color: var(--navy); background: var(--navy); }
.action-primary:hover { border-color: var(--blue); background: #102e45; }

.action svg, .secondary-actions svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.action span { font-size: 0.75rem; font-weight: 700; }

.ventures { display: grid; gap: 10px; }

.venture {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: center;
  gap: 15px;
  min-height: 112px;
  padding: 17px 18px;
  overflow: hidden;
  border-radius: 18px;
  text-decoration: none;
  transition: transform 190ms ease, box-shadow 190ms ease;
}

.venture:hover { transform: translateY(-2px); box-shadow: 0 13px 30px rgba(10,22,33,0.12); }

.venture-lwn { color: white; background: linear-gradient(120deg, #071c31, #0b3a57); }
.venture-lwn::after { content: ""; position: absolute; inset: auto -28px -55px auto; width: 150px; height: 150px; border-radius: 50%; background: rgba(10,119,188,0.22); }

.venture-mm { color: white; background: linear-gradient(120deg, #173d34, #255347); }
.venture-mm::after { content: ""; position: absolute; inset: -70px -20px auto auto; width: 155px; height: 155px; border: 1px solid rgba(229,205,150,0.2); border-radius: 50%; }

.venture-mark {
  position: relative;
  z-index: 1;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 14px;
  background: rgba(255,255,255,0.08);
}

.lwn-mark-wrap img { width: 45px; height: 42px; object-fit: contain; filter: brightness(0) invert(1); }

.mm-mark { color: #ead9af; font-family: Georgia, "Times New Roman", serif; font-size: 1.12rem; letter-spacing: -0.08em; }
.mm-mark span { color: var(--brass); font-size: 0.78em; margin: 0 1px; }

.venture-copy { position: relative; z-index: 1; min-width: 0; }
.venture-type { color: rgba(255,255,255,0.62); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.venture h2 { margin: 4px 0 3px; font-family: Georgia, "Times New Roman", serif; font-size: 1.12rem; font-weight: 400; }
.venture p { margin: 0; color: rgba(255,255,255,0.71); font-size: 0.78rem; line-height: 1.4; }
.venture-arrow { position: relative; z-index: 1; font-size: 1.2rem; color: rgba(255,255,255,0.7); }

.secondary-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 23px;
}

.secondary-actions a, .secondary-actions button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border: 0;
  color: #40505c;
  background: transparent;
  font-size: 0.8rem;
  font-weight: 720;
  text-decoration: none;
  cursor: pointer;
}

.secondary-actions a:hover, .secondary-actions button:hover { color: var(--blue); }

:focus-visible { outline: 3px solid #65b7e9; outline-offset: 3px; }

.qr-dialog {
  width: min(410px, calc(100vw - 28px));
  padding: 34px;
  border: 0;
  border-radius: 25px;
  color: var(--ink);
  background: var(--paper);
  box-shadow: 0 30px 100px rgba(0,0,0,0.42);
  text-align: center;
}

.qr-dialog::backdrop { background: rgba(3,14,24,0.78); backdrop-filter: blur(7px); }
.dialog-close { position: absolute; top: 12px; right: 14px; width: 44px; height: 44px; border: 0; color: #68747c; background: transparent; font-size: 1.65rem; cursor: pointer; }
.dialog-eyebrow { margin: 0 0 8px; color: var(--blue); font-size: 0.72rem; font-weight: 760; letter-spacing: 0.13em; text-transform: uppercase; }
.qr-dialog h2 { margin: 0 0 22px; font-family: Georgia, "Times New Roman", serif; font-size: 2rem; font-weight: 400; }
.qr-frame { width: 248px; max-width: 100%; margin: 0 auto; padding: 15px; border: 1px solid var(--line); border-radius: 18px; background: white; }
.qr-frame svg { width: 100%; height: auto; display: block; }
.qr-url { margin: 15px auto 0; max-width: 290px; overflow-wrap: anywhere; color: var(--muted); font-size: 0.74rem; line-height: 1.4; }
.dialog-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 21px; }
.dialog-actions button { min-height: 48px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: white; font-size: 0.8rem; font-weight: 720; cursor: pointer; }
.dialog-actions button:first-child { color: white; border-color: var(--navy); background: var(--navy); }

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 10;
  max-width: calc(100vw - 32px);
  padding: 11px 17px;
  border-radius: 999px;
  color: white;
  background: rgba(7,21,33,0.94);
  box-shadow: 0 12px 35px rgba(0,0,0,0.25);
  font-size: 0.82rem;
  font-weight: 650;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity 160ms ease, transform 160ms ease;
}

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

@media (max-width: 820px) {
  .page-shell { display: block; padding: 0; }
  .profile-card { width: 100%; min-height: 100vh; grid-template-columns: 1fr; border: 0; border-radius: 0; box-shadow: none; }
  .portrait-panel { min-height: 345px; max-height: 42vh; }
  .portrait-panel > img { object-position: 50% 25%; }
  .content-panel { padding: 31px 22px 27px; }
  .identity { margin-bottom: 24px; }
  h1 { font-size: clamp(3.75rem, 20vw, 5.15rem); line-height: 0.8; }
  .role { margin-top: 22px; }
  .secondary-actions { margin-top: 3px; }
}

@media (max-width: 390px) {
  .portrait-panel { min-height: 312px; }
  .content-panel { padding-inline: 17px; }
  .quick-actions { gap: 6px; }
  .action { min-height: 64px; border-radius: 13px; }
  .venture { grid-template-columns: 48px 1fr auto; gap: 12px; padding: 15px; }
  .venture-mark { width: 48px; height: 48px; }
  .venture p { font-size: 0.75rem; }
}

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