:root {
  --page-bg: #f4f6f8;
  --surface: #ffffff;
  --surface-muted: #eef2f5;
  --text: #17202a;
  --text-muted: #5d6975;
  --line: #d9e0e6;
  --accent: #4a3f76;
  --accent-dark: #342a5c;
  --accent-soft: #ece9f5;
  --sidebar-bg: #18212a;
  --sidebar-text: #e9eef2;
  --sidebar-muted: #aab5bf;
  --shadow: 0 18px 48px rgba(20, 30, 40, 0.08);
  --radius: 18px;
  --content-width: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page-bg);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

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

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 1000;
  padding: 0.65rem 0.9rem;
  border-radius: 8px;
  background: #ffffff;
  color: #111111;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 265px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  align-self: start;
  display: flex;
  flex-direction: column;
  padding: 2rem 1.4rem;
  background: var(--sidebar-bg);
  color: var(--sidebar-text);
}

.site-identity {
  padding: 0 0.55rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
}

.site-name {
  display: inline-block;
  color: #ffffff;
  font-size: 1.16rem;
  font-weight: 750;
  line-height: 1.25;
  text-decoration: none;
}

.credentials {
  margin-top: 0.4rem;
  color: var(--sidebar-muted);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.05em;
}

.primary-nav {
  display: grid;
  gap: 0.32rem;
  margin-top: 1.4rem;
}

.primary-nav a {
  padding: 0.72rem 0.8rem;
  border-radius: 9px;
  color: var(--sidebar-muted);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition:
    background-color 140ms ease,
    color 140ms ease,
    transform 140ms ease;
}

.primary-nav a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  transform: translateX(2px);
}

.primary-nav a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.13);
  color: #ffffff;
}

.breadcrumbs {
  margin-top: 1.65rem;
  padding: 1rem 0.8rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--sidebar-muted);
  font-size: 0.8rem;
}

.breadcrumbs li + li::before {
  content: "›";
  margin-right: 0.35rem;
  color: #75818c;
}

.breadcrumbs a {
  color: #d9e0e6;
  text-decoration: none;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.sidebar-note {
  margin: auto 0.8rem 0;
  color: var(--sidebar-muted);
  font-size: 0.8rem;
  line-height: 1.5;
}

.content {
  width: min(100%, var(--content-width));
  margin: 0 auto;
  padding: 3.5rem clamp(1.4rem, 4vw, 4.5rem) 2rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  min-height: 510px;
  padding: clamp(2rem, 4vw, 4rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

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

.hero h1 {
  margin: 0;
  font-size: clamp(2.5rem, 6vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.hero-credentials {
  margin: 0.7rem 0 1.6rem;
  color: var(--text-muted);
  font-size: clamp(1rem, 2vw, 1.28rem);
  font-weight: 750;
  letter-spacing: 0.08em;
}

.lead {
  margin: 0 0 1rem;
  max-width: 760px;
  color: #293440;
  font-size: clamp(1.06rem, 1.5vw, 1.22rem);
}

.hero-copy > p:not(.eyebrow):not(.hero-credentials):not(.lead) {
  max-width: 760px;
  color: var(--text-muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.65rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.7rem 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  color: var(--text);
  font-weight: 750;
  text-decoration: none;
}

.button:hover {
  border-color: #b6c0c9;
  background: var(--surface-muted);
}

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

.button-primary:hover {
  border-color: var(--accent-dark);
  background: var(--accent-dark);
}

.portrait-card {
  margin: 0;
}

.portrait-card img {
  width: 100%;
  aspect-ratio: 0.94 / 1;
  border-radius: 16px;
  object-fit: cover;
  object-position: center;
}

.section {
  padding: clamp(3rem, 6vw, 5.5rem) 0 0;
}

.section-heading {
  margin-bottom: 1.4rem;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.expertise-card {
  padding: 1.45rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.expertise-card h3 {
  margin: 0 0 0.55rem;
  font-size: 1.02rem;
}

.expertise-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.94rem;
}

.feature-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: end;
  padding: clamp(1.5rem, 3vw, 2.2rem);
  border-radius: var(--radius);
  background: var(--accent-soft);
}

.feature-panel p {
  max-width: 780px;
  margin-top: 0;
}

.feature-panel p:last-child {
  margin-bottom: 0;
}

.text-link {
  color: var(--accent-dark);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.text-link:hover {
  text-decoration: underline;
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.link-card {
  display: grid;
  gap: 0.25rem;
  padding: 1.25rem 1.35rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  text-decoration: none;
  transition:
    border-color 140ms ease,
    transform 140ms ease,
    box-shadow 140ms ease;
}

.link-card:hover {
  border-color: #b8c1c9;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(20, 30, 40, 0.06);
}

.link-card span {
  font-weight: 800;
}

.link-card small {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
  margin-top: 4.5rem;
  padding: 1.5rem 0 0.5rem;
  border-top: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 0.84rem;
}

.site-footer a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

@media (max-width: 980px) {
  .site-shell {
    grid-template-columns: 220px minmax(0, 1fr);
  }

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

  .portrait-card {
    max-width: 420px;
  }

  .expertise-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .site-shell {
    display: block;
  }

  .sidebar {
    position: relative;
    height: auto;
    padding: 1.15rem;
  }

  .site-identity {
    padding: 0 0 0.9rem;
  }

  .primary-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 0.9rem;
  }

  .breadcrumbs {
    margin-top: 1rem;
    padding: 0.85rem 0 0;
  }

  .sidebar-note {
    display: none;
  }

  .content {
    padding: 1.2rem 1rem 1.5rem;
  }

  .hero {
    padding: 1.5rem;
  }

  .expertise-grid,
  .link-grid {
    grid-template-columns: 1fr;
  }

  .feature-panel {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .text-link {
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
