:root {
  --bg: #f7fbfb;
  --surface: #ffffff;
  --text: #172021;
  --muted: #5d6b6e;
  --line: #dce8e8;
  --accent: #00a8c8;
  --accent-deep: #007f98;
  --accent-soft: #e2f7fa;
  --shadow: 0 24px 70px rgba(20, 54, 58, 0.1);
  --font-sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

.site-header {
  align-items: center;
  background: rgba(247, 251, 251, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(220, 232, 232, 0.78);
  display: flex;
  gap: 28px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 100%;
  padding: 22px clamp(20px, 5vw, 56px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  color: var(--text);
  font-size: 0.98rem;
  font-weight: 720;
  letter-spacing: 0;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.site-nav a {
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 620;
  padding: 8px 12px;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a.active {
  background: var(--accent-soft);
  color: var(--accent-deep);
}

.hero,
.page-hero,
.contact-hero,
.section,
.site-footer {
  margin: 0 auto;
  max-width: var(--max);
  padding-left: clamp(20px, 5vw, 56px);
  padding-right: clamp(20px, 5vw, 56px);
}

.hero {
  align-items: center;
  display: grid;
  gap: clamp(36px, 7vw, 88px);
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.72fr);
  min-height: calc(100vh - 84px);
  padding-bottom: clamp(56px, 8vw, 92px);
  padding-top: clamp(56px, 8vw, 92px);
}

.hero-copy h1,
.page-hero h1,
.contact-hero h1 {
  font-family: var(--font-sans);
  font-size: clamp(2.55rem, 4.8vw, 4.55rem);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.06;
  margin: 0;
  overflow-wrap: break-word;
}

.hero-copy h1 {
  max-width: 820px;
}

.page-hero h1,
.contact-hero h1 {
  font-size: clamp(2.35rem, 4vw, 3.95rem);
  max-width: 940px;
}

.eyebrow,
.section-kicker {
  color: var(--accent-deep);
  font-size: 0.78rem;
  font-weight: 760;
  letter-spacing: 0.06em;
  margin: 0 0 18px;
  text-transform: uppercase;
}

.hero-text,
.page-hero p,
.contact-hero p {
  color: var(--muted);
  font-size: clamp(1.05rem, 1.55vw, 1.2rem);
  line-height: 1.7;
  margin: 28px 0 0;
  max-width: 700px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 999px;
  display: inline-flex;
  font-weight: 700;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  background: var(--text);
  color: white;
}

.button.secondary {
  border-color: var(--line);
  color: var(--text);
}

.portrait-frame {
  background: linear-gradient(135deg, var(--accent-soft), #ffffff 62%);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  margin: 0;
  overflow: hidden;
  padding: 12px;
}

.portrait-frame img {
  aspect-ratio: 3 / 4;
  border-radius: 4px;
  height: auto;
  object-fit: cover;
  object-position: center top;
  width: 100%;
}

.section {
  padding-bottom: clamp(42px, 5.5vw, 74px);
  padding-top: clamp(42px, 5.5vw, 74px);
}

.section.compact {
  padding-bottom: clamp(34px, 4.5vw, 54px);
  padding-top: clamp(34px, 4.5vw, 54px);
}

.home-page .section {
  padding-bottom: clamp(60px, 8vw, 104px);
  padding-top: clamp(60px, 8vw, 104px);
}

.home-page .section.compact {
  padding-bottom: clamp(44px, 6vw, 72px);
  padding-top: clamp(44px, 6vw, 72px);
}

.section-heading {
  margin-bottom: 30px;
  max-width: 720px;
}

h2,
h3,
p {
  overflow-wrap: anywhere;
}

h2 {
  font-size: clamp(1.85rem, 3vw, 2.9rem);
  font-weight: 690;
  letter-spacing: 0;
  line-height: 1.18;
  margin: 0;
}

h3 {
  font-size: 1.08rem;
  font-weight: 690;
  line-height: 1.32;
  margin: 0 0 12px;
}

p {
  margin: 0;
}

.intro-grid {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr 1fr;
  padding-top: 34px;
}

.intro-grid p,
.long-copy p,
.feature p,
.principle-grid p,
.work-item p,
.timeline-item p,
.credential-grid p,
.contact-note p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.feature-grid,
.principle-grid,
.credential-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.feature,
.principle-grid article,
.credential-grid article,
.contact-note {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
}

.feature span {
  color: var(--accent);
  display: block;
  font-size: 0.84rem;
  font-weight: 760;
  margin-bottom: 26px;
}

.split-band {
  align-items: start;
  background: var(--text);
  color: white;
  display: grid;
  gap: 36px;
  grid-template-columns: 0.86fr 1fr;
  max-width: 100%;
  padding-left: max(clamp(20px, 5vw, 56px), calc((100vw - var(--max)) / 2 + 56px));
  padding-right: max(clamp(20px, 5vw, 56px), calc((100vw - var(--max)) / 2 + 56px));
}

.split-band .section-kicker {
  color: #79e5f4;
}

.link-list {
  display: grid;
  gap: 12px;
}

.link-list a {
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  color: white;
  font-size: clamp(1.05rem, 1.55vw, 1.22rem);
  font-weight: 660;
  padding: 0 0 14px;
  text-decoration: none;
}

.link-list a:hover {
  color: #91edf7;
}

.closing-cta {
  text-align: center;
}

.closing-cta h2 {
  margin: 0 auto 30px;
  max-width: 820px;
}

.page-hero,
.contact-hero {
  padding-bottom: clamp(36px, 5vw, 64px);
  padding-top: clamp(46px, 7vw, 88px);
}

.page-hero h1,
.contact-hero h1 {
  max-width: 980px;
}

.profile-layout {
  align-items: start;
  border-top: 1px solid var(--line);
  display: grid;
  gap: clamp(28px, 5vw, 64px);
  grid-template-columns: minmax(300px, 0.48fr) minmax(0, 1fr);
  padding-top: 34px;
}

.profile-image {
  background: var(--surface);
  border-radius: 8px;
  box-shadow: var(--shadow);
  height: auto;
  width: 100%;
}

.long-copy {
  display: grid;
  gap: 18px;
}

.long-copy h2 {
  margin-bottom: 6px;
}

.check-list {
  color: var(--muted);
  display: grid;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.check-list li {
  padding-left: 24px;
  position: relative;
}

.check-list li::before {
  background: var(--accent);
  border-radius: 999px;
  content: "";
  height: 7px;
  left: 0;
  position: absolute;
  top: 0.72em;
  width: 7px;
}

.split-band .check-list {
  color: rgba(255, 255, 255, 0.78);
}

.work-stack {
  display: grid;
  gap: 22px;
}

.work-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 18px;
  padding: clamp(24px, 5vw, 44px);
}

.timeline {
  display: grid;
  gap: 18px;
}

.timeline-item {
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 28px;
  grid-template-columns: 0.34fr 1fr;
  padding: clamp(24px, 5vw, 42px);
}

.timeline-meta {
  display: grid;
  gap: 6px;
}

.timeline-meta span,
.timeline-meta em {
  color: var(--muted);
  font-style: normal;
}

.timeline-meta strong {
  color: var(--accent-deep);
}

.timeline-item h2 {
  font-family: var(--font-sans);
  font-size: clamp(1.45rem, 2vw, 2rem);
  font-weight: 690;
  line-height: 1.18;
  margin-bottom: 18px;
}

.timeline-item .check-list {
  margin-top: 16px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-list span {
  background: var(--accent-soft);
  border: 1px solid #c6eef3;
  border-radius: 999px;
  color: var(--accent-deep);
  font-size: 0.92rem;
  font-weight: 650;
  padding: 9px 13px;
}

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

.learning-item {
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 16px;
  grid-template-columns: auto 1fr;
  padding: 22px;
}

.learning-logo {
  align-items: center;
  background: var(--accent-soft);
  border: 1px solid #c6eef3;
  border-radius: 8px;
  height: 42px;
  object-fit: contain;
  padding: 7px;
  width: 42px;
}

.learning-item h3 {
  margin-bottom: 8px;
}

.learning-item a {
  color: var(--text);
  text-decoration-color: rgba(0, 127, 152, 0.32);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.learning-item a:hover {
  color: var(--accent-deep);
}

.learning-item p {
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.65;
}

.contact-hero {
  min-height: 0;
}

.contact-hero .button {
  margin-top: 34px;
}

.contact-note {
  margin-left: auto;
  margin-right: auto;
  max-width: 760px;
  text-align: center;
}

.contact-note h2 {
  font-size: clamp(1.6rem, 2.4vw, 2.25rem);
  margin-bottom: 16px;
}

.site-footer {
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  padding-bottom: 32px;
  padding-top: 32px;
}

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

.footer-nav {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.legal-hero {
  padding-bottom: 18px;
}

.legal-copy {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 16px;
  max-width: 820px;
  padding: clamp(24px, 5vw, 42px);
}

.legal-copy h2 {
  font-size: clamp(1.2rem, 1.8vw, 1.55rem);
  margin-top: 16px;
}

.legal-copy h2:first-child {
  margin-top: 0;
}

.legal-copy p {
  color: var(--muted);
}

.legal-copy a {
  color: var(--accent-deep);
  font-weight: 700;
  text-decoration-color: rgba(0, 127, 152, 0.32);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

@media (max-width: 900px) {
  .hero,
  .intro-grid,
  .split-band,
  .profile-layout,
  .timeline-item {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
  }

  .portrait-frame {
    max-width: 460px;
  }

  .feature-grid,
  .principle-grid,
  .credential-grid,
  .learning-grid {
    grid-template-columns: 1fr;
  }

  .split-band {
    padding-left: clamp(20px, 5vw, 56px);
    padding-right: clamp(20px, 5vw, 56px);
  }
}

@media (max-width: 640px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    padding-bottom: 16px;
    padding-top: 16px;
    position: static;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .site-nav a {
    font-size: 0.88rem;
    padding: 7px 9px;
  }

  .hero-copy h1,
  .page-hero h1,
  .contact-hero h1 {
    font-size: clamp(2rem, 8.4vw, 2.48rem);
    line-height: 1.08;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .portrait-frame {
    max-width: none;
  }

  .feature,
  .principle-grid article,
  .credential-grid article,
  .learning-item,
  .work-item,
  .timeline-item {
    padding: 20px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .footer-nav {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
}
