@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Manrope:wght@500;600;700;800&display=swap');

:root {
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Manrope", var(--font-sans);
  --brand: #182B52;
  --brand-2: #0B152D;
  --brand-3: #243F78;
  --accent: #FFC515;
  --accent-2: #FFE38A;
  --bg: #ffffff;
  --bg-2: #F6F8FF;
  --surface: rgba(255,255,255,.86);
  --card: #ffffff;
  --text: #14213E;
  --heading: #0B152D;
  --muted: #647084;
  --line: rgba(24,43,82,.12);
  --line-strong: rgba(24,43,82,.24);
  --shadow: 0 28px 84px rgba(11,21,45,.15);
  --shadow-soft: 0 16px 46px rgba(11,21,45,.09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background:
    radial-gradient(circle at 84% 0%, rgba(255, 197, 21,.18), transparent 31%),
    radial-gradient(circle at 0% 18%, rgba(24, 43, 82,.14), transparent 30%),
    linear-gradient(180deg, var(--bg), var(--bg-2));
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap {
  width: min(100% - 40px, 1160px);
  margin: 0 auto;
  padding: 34px 0 78px;
}
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 38px;
}
.logo { width: 154px; }
.back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--brand);
  font-family: var(--font-display);
  font-weight: 850;
  letter-spacing: -.01em;
}
.profile-shell {
  display: grid;
  gap: 24px;
}
.hero-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 38px;
  align-items: stretch;
  padding: 36px;
  border-radius: 38px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 22% 10%, rgba(255, 197, 21,.18), transparent 31%),
    linear-gradient(135deg, var(--card), rgba(248,250,255,.86));
  box-shadow: var(--shadow);
}
.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 54px 54px;
  opacity: .2;
}
.hero-card > * { position: relative; z-index: 1; }
.portrait {
  min-height: 360px;
  border-radius: 30px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--brand), var(--brand-3));
  border: 1px solid var(--line-strong);
  box-shadow: 0 22px 42px rgba(24, 43, 82,.16);
}
.portrait img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}
.kicker {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 197, 21,.18);
  color: #182b52;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .12em;
}
h1 {
  margin: 0;
  font-family: var(--font-display);
  color: var(--heading);
  font-size: clamp(40px, 7vw, 72px);
  line-height: 1;
  font-weight: 850;
  letter-spacing: -.065em;
}
.role {
  display: block;
  margin-top: 14px;
  color: var(--brand);
  font-family: var(--font-display);
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 850;
  letter-spacing: -.035em;
}
.bio {
  max-width: 760px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 18px;
  font-weight: 520;
  letter-spacing: -.015em;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}
.actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 850;
}
.actions a:first-child { background: var(--brand); color: #fff; }
.actions a:last-child { border: 1px solid var(--line-strong); color: var(--heading); background: var(--surface); }
.meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 30px;
}
.meta div {
  padding: 17px;
  border-radius: 20px;
  background: rgba(255,255,255,.7);
  border: 1px solid var(--line);
}
.meta strong {
  display: block;
  color: var(--heading);
  font-family: var(--font-display);
  font-weight: 850;
  line-height: 1.15;
  letter-spacing: -.025em;
}
.meta span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}
.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.panel {
  padding: 28px;
  border-radius: 30px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}
.panel h2 {
  margin: 0 0 14px;
  color: var(--heading);
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1.08;
  letter-spacing: -.045em;
}
.panel p { margin: 0; color: var(--muted); font-weight: 520; }
ul.clean-list {
  display: grid;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}
ul.clean-list li {
  position: relative;
  padding-left: 30px;
  color: var(--muted);
  font-weight: 560;
}
ul.clean-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 900;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 18px;
}
.tags span {
  padding: 8px 11px;
  border-radius: 999px;
  background: rgba(255, 197, 21,.16);
  color: color-mix(in srgb, var(--heading) 76%, var(--accent));
  font-size: 12px;
  font-weight: 850;
}
.timeline {
  display: grid;
  gap: 12px;
}
.timeline-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 12px;
  align-items: start;
}
.timeline-item span {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--brand);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 900;
}
.timeline-item strong {
  display: block;
  color: var(--heading);
  font-family: var(--font-display);
  line-height: 1.2;
  letter-spacing: -.02em;
}
.timeline-item small {
  color: var(--muted);
  font-weight: 540;
}
@media (max-width: 860px) {
  .hero-card, .content-grid { grid-template-columns: 1fr; }
  .portrait { max-width: 360px; min-height: auto; }
  .portrait img { aspect-ratio: 1 / 1; min-height: auto; }
  .meta { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .wrap { width: min(100% - 28px, 1160px); padding-top: 24px; }
  .top { align-items: flex-start; flex-direction: column; }
  .hero-card, .panel { padding: 22px; border-radius: 26px; }
}


/* === Profile pages: logo palette edition === */
.actions a:first-child,
.timeline-item span { background: linear-gradient(135deg, var(--brand), var(--brand-3)); }
.kicker,
.tags span { background: rgba(255,197,21,.18); color: color-mix(in srgb, var(--brand) 82%, var(--accent)); }
.hero-card { background: radial-gradient(circle at 22% 10%, rgba(255,197,21,.18), transparent 31%), linear-gradient(135deg, var(--card), rgba(248,250,255,.9)); }
.portrait { background: linear-gradient(135deg, var(--brand), var(--brand-3)); box-shadow: 0 22px 42px rgba(24,43,82,.16); }
ul.clean-list li::before { color: var(--accent); }


/* === Extracted profile content refinements === */
.panel p + p { margin-top: 12px; }
.panel blockquote {
  margin: 18px 0 0;
  padding: 18px 20px;
  border-left: 4px solid var(--accent);
  border-radius: 18px;
  background: rgba(255,197,21,.12);
  color: var(--heading);
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.45;
}
.profile-shell .content-grid:nth-of-type(3) .panel,
.profile-shell .content-grid:nth-of-type(4) .panel {
  min-height: 100%;
}


/* === Full old-profile content support === */
.panel-wide {
  grid-column: 1 / -1;
}
.panel-kicker {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.panel p + p { margin-top: 14px; }
.experience-grid {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.experience-grid li {
  padding: 15px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.66);
  color: var(--heading);
  font-weight: 700;
  line-height: 1.45;
}
.specialty-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}
.specialty-grid article {
  padding: 22px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.68);
  box-shadow: var(--shadow-soft);
}
.specialty-grid article span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: rgba(255,197,21,.18);
  font-size: 22px;
  margin-bottom: 16px;
}
.specialty-grid h3 {
  margin: 0 0 8px;
  color: var(--heading);
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 1.15;
}
.motto-card {
  padding: clamp(28px, 5vw, 54px);
  border-radius: 34px;
  background: linear-gradient(135deg, var(--brand-2), var(--brand));
  color: #fff;
  box-shadow: var(--shadow);
  text-align: center;
}
.motto-card blockquote {
  max-width: 900px;
  margin: 0 auto 24px;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(25px, 4vw, 42px);
  line-height: 1.18;
  letter-spacing: -.045em;
}
.motto-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--brand-2);
  font-family: var(--font-display);
  font-weight: 900;
}
.portrait { position: relative; }
.portrait-fallback {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-family: var(--font-display);
  font-size: 54px;
  font-weight: 900;
}
.portrait img { position: relative; z-index: 1; }
@media (max-width: 900px) {
  .experience-grid, .specialty-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .experience-grid, .specialty-grid { grid-template-columns: 1fr; }
}
