:root {
  --ink: #080b10;
  --panel: #10151d;
  --panel-soft: #141a23;
  --line: rgba(208, 215, 224, 0.18);
  --silver: #cbd1d9;
  --muted: #929ba8;
  --white: #f6f7f8;
  --accent: #dfe4ea;
  --serif: "Iowan Old Style", "Baskerville", "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--white);
  background:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px),
    var(--ink);
  background-size: 56px 56px;
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.skip-link {
  position: fixed;
  z-index: 100;
  top: 1rem;
  left: 1rem;
  padding: .75rem 1rem;
  color: var(--ink);
  background: var(--white);
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

.ambient {
  position: fixed;
  z-index: -1;
  width: 42rem;
  height: 42rem;
  border-radius: 50%;
  filter: blur(110px);
  opacity: .12;
  pointer-events: none;
}
.ambient--one { top: -24rem; right: -16rem; background: #70839c; }
.ambient--two { bottom: -30rem; left: -20rem; background: #3e5b65; }

.topbar {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
}
.wordmark__monogram {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(223,228,234,.6);
  font-family: var(--serif);
  font-size: .8rem;
  letter-spacing: .08em;
}
.wordmark__text { display: none; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; }

.language { display: flex; align-items: center; gap: .45rem; color: #66707e; font-size: .72rem; letter-spacing: .16em; }
.language__button {
  padding: .55rem .3rem;
  border: 0;
  color: #707987;
  background: transparent;
  cursor: pointer;
}
.language__button.is-active { color: var(--white); }

.shell { width: min(1180px, calc(100% - 2rem)); margin: 1rem auto 0; }

.profile-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(21,27,36,.97), rgba(10,14,20,.98));
  box-shadow: 0 30px 90px rgba(0,0,0,.4);
}
.profile-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255,255,255,.025);
  pointer-events: none;
}

.portrait-panel { position: relative; aspect-ratio: 4 / 4.6; min-height: 390px; overflow: hidden; }
.portrait-panel picture { display: block; height: 100%; }
.portrait {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 34%;
  filter: saturate(.88) contrast(1.03);
}
.portrait-panel__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 52%, rgba(8,11,16,.92) 100%);
}
.portrait-panel__caption {
  position: absolute;
  right: 1.25rem;
  bottom: 1.25rem;
  left: 1.25rem;
  margin: 0;
  color: rgba(246,247,248,.8);
  font-size: .66rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.identity-panel { padding: 2rem 1.25rem 1.35rem; }
.eyebrow { display: flex; align-items: center; gap: .65rem; color: var(--silver); font-size: .64rem; letter-spacing: .24em; text-transform: uppercase; }
.eyebrow > span:first-child { width: 28px; height: 1px; background: var(--silver); }
h1 {
  margin: 1.05rem 0 .85rem;
  font-family: var(--serif);
  font-size: clamp(2.75rem, 13vw, 4.7rem);
  font-weight: 400;
  line-height: .9;
  letter-spacing: -.045em;
}
h1 em { color: var(--silver); font-weight: 400; }
.positioning { margin: 0; color: var(--accent); font-size: .74rem; line-height: 1.6; letter-spacing: .08em; text-transform: uppercase; }
.positioning i { padding: 0 .18rem; color: #66707e; font-style: normal; }
.intro { max-width: 36rem; margin: 1.25rem 0 1.6rem; color: #aab1bb; font-size: .94rem; line-height: 1.7; }

.primary-actions { display: grid; gap: .65rem; }
.action {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  padding: .8rem 1rem;
  border: 1px solid rgba(219,224,231,.24);
  color: var(--white);
  background: rgba(255,255,255,.025);
  text-decoration: none;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.action--primary { color: #0a0d12; background: var(--accent); border-color: var(--accent); font-weight: 600; }
.action svg, .link-row svg, .text-button svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }
.action:hover { transform: translateY(-2px); border-color: rgba(219,224,231,.55); background: rgba(255,255,255,.07); }
.action--primary:hover { background: #fff; }

.link-row { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: .75rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.link-row a, .link-row button {
  min-width: 0;
  min-height: 67px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  padding: .6rem .25rem;
  border: 0;
  border-right: 1px solid var(--line);
  color: #b7bec7;
  background: transparent;
  font-size: .62rem;
  text-decoration: none;
  cursor: pointer;
}
.link-row > :last-child { border-right: 0; }
.link-row a:hover, .link-row button:hover { color: #fff; background: rgba(255,255,255,.035); }
.link-row svg { width: 18px; height: 18px; }

.expertise { padding: 5.5rem 0 2rem; }
.section-kicker { margin: 0 0 .85rem; color: #7e8895; font-size: .63rem; letter-spacing: .25em; text-transform: uppercase; }
.section-heading h2, .qr-copy h2 {
  max-width: 720px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2rem, 8vw, 3.9rem);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -.025em;
}
.expertise-grid { margin-top: 2.25rem; border-top: 1px solid var(--line); }
.expertise-item { position: relative; padding: 1.6rem 0 1.8rem 3.1rem; border-bottom: 1px solid var(--line); }
.expertise-item__number { position: absolute; top: 1.75rem; left: 0; color: #65707e; font-family: var(--serif); font-style: italic; }
.expertise-item h3 { margin: 0 0 .55rem; font-size: 1rem; font-weight: 500; letter-spacing: .03em; }
.expertise-item p { margin: 0; color: #929aa5; font-size: .86rem; line-height: 1.65; }

.credentials { display: grid; margin: 3rem 0 5rem; border: 1px solid var(--line); background: rgba(255,255,255,.018); }
.credentials div { padding: 1.4rem 1.2rem; border-bottom: 1px solid var(--line); }
.credentials div:last-child { border-bottom: 0; }
.credentials span { display: block; margin-bottom: .45rem; color: #78828f; font-size: .6rem; letter-spacing: .18em; text-transform: uppercase; }
.credentials strong { font-family: var(--serif); font-size: 1.1rem; font-weight: 400; }

.qr-section {
  display: grid;
  gap: 2rem;
  align-items: center;
  margin-bottom: 4rem;
  padding: 2rem 1.4rem;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(255,255,255,.035), rgba(255,255,255,.008));
}
.qr-copy > p:not(.section-kicker) { max-width: 32rem; margin: 1rem 0; color: #939ca8; line-height: 1.65; }
.text-button { display: inline-flex; align-items: center; gap: .4rem; padding: .7rem 0; border: 0; color: var(--silver); background: transparent; cursor: pointer; }
.text-button svg { width: 16px; }
.qr-frame { width: min(220px, 100%); justify-self: center; padding: .65rem; background: #fff; box-shadow: 0 16px 45px rgba(0,0,0,.3); }
.qr-frame img { display: block; width: 100%; height: auto; }

footer { width: min(1180px, calc(100% - 2rem)); margin: 0 auto; padding: 0 0 calc(2rem + env(safe-area-inset-bottom)); color: #646e7b; font-size: .68rem; line-height: 1.6; text-align: center; }
footer p { margin: .2rem 0; }

.toast {
  position: fixed;
  z-index: 50;
  right: 1rem;
  bottom: calc(1rem + env(safe-area-inset-bottom));
  max-width: calc(100% - 2rem);
  padding: .8rem 1rem;
  border: 1px solid var(--line);
  color: var(--white);
  background: #171d26;
  font-size: .78rem;
  box-shadow: 0 12px 35px rgba(0,0,0,.38);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.toast.is-visible { opacity: 1; transform: translateY(0); }

:focus-visible { outline: 2px solid #f2f5f8; outline-offset: 4px; }

@media (min-width: 560px) {
  .wordmark__text { display: inline; }
  .primary-actions { grid-template-columns: 1.35fr 1fr; }
  .credentials { grid-template-columns: 1fr 1fr; }
  .credentials div { border-right: 1px solid var(--line); border-bottom: 0; }
  .credentials div:last-child { border-right: 0; }
  .qr-section { grid-template-columns: 1fr auto; padding: 2.5rem; }
}

@media (min-width: 840px) {
  .topbar { min-height: 96px; }
  .shell { margin-top: 1.5rem; }
  .profile-card { display: grid; grid-template-columns: minmax(340px, .9fr) minmax(430px, 1.1fr); min-height: 650px; }
  .portrait-panel { min-height: 650px; aspect-ratio: auto; }
  .portrait-panel__caption { right: 2rem; bottom: 2rem; left: 2rem; }
  .identity-panel { display: flex; flex-direction: column; justify-content: center; padding: 3.5rem clamp(2.5rem, 6vw, 5.5rem); }
  h1 { font-size: clamp(4.2rem, 7vw, 6.15rem); }
  .positioning { font-size: .78rem; }
  .intro { margin-top: 1.65rem; }
  .expertise { padding-top: 8rem; }
  .expertise-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
  .expertise-item { min-height: 190px; padding: 1.8rem 1.5rem 1.8rem 3.5rem; border-right: 1px solid var(--line); }
  .expertise-item:last-child { border-right: 0; }
  .expertise-item__number { left: .3rem; }
  .credentials { margin-top: 4.5rem; }
  .qr-section { padding: 3.5rem 5rem; }
}

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

@media print {
  body { background: #fff; color: #111; }
  .ambient, .topbar, .primary-actions, .link-row, footer, .toast { display: none; }
  .shell { width: 100%; margin: 0; }
  .profile-card, .credentials, .qr-section { border-color: #bbb; box-shadow: none; }
}
