@layer reset, base, layout, components, motion, responsive;

@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  body, h1, h2, h3, p, figure, blockquote, dl, dd { margin: 0; }
  img { display: block; max-width: 100%; }
  button, input { font: inherit; }
  [hidden] { display: none !important; }
}

@layer base {
  @font-face {
    font-family: Manrope;
    src: url('fonts/manrope-variable.ttf') format('truetype');
    font-style: normal;
    font-weight: 200 800;
    font-display: swap;
  }
  @font-face {
    font-family: 'Source Sans 3';
    src: url('fonts/source-sans-3-variable.woff2') format('woff2');
    font-style: normal;
    font-weight: 200 900;
    font-display: swap;
  }
  :root {
    color-scheme: light;
    --navy: #001868;
    --blue: #0057ff;
    --cyan: #00bfea;
    --ink: #14213d;
    --muted: #50617d;
    --line: #dce3ee;
    --paper: #f5f8ff;
    --font-heading: Manrope, 'Segoe UI', sans-serif;
    --font-body: 'Source Sans 3', 'Segoe UI', sans-serif;
    --reveal-duration: 2s;
    --ease-out: cubic-bezier(.25, .46, .45, .94);
    font-family: var(--font-body);
    font-synthesis: none;
  }
  html { scroll-behavior: smooth; scroll-padding-top: 100px; }
  body { background: #fff; color: var(--ink); font-size: 18px; line-height: 1.65; }
  a { color: inherit; text-decoration: none; }
  button, a { -webkit-tap-highlight-color: transparent; }
  a:focus-visible, button:focus-visible { outline: 3px solid var(--blue); outline-offset: 5px; border-radius: 3px; }
  a:hover { text-decoration-thickness: 2px; }
  ::selection { background: #cee3ff; color: var(--navy); }
  h1, h2, h3 { color: var(--navy); font-family: var(--font-heading); }
  h1 { font-size: clamp(44px, 4.8vw, 66px); line-height: 1.12; letter-spacing: -.035em; font-weight: 750; }
  h2 { font-size: clamp(29px, 2.9vw, 39px); line-height: 1.28; letter-spacing: -.025em; font-weight: 700; text-wrap: balance; }
  h3 { font-size: 20px; line-height: 1.45; letter-spacing: -.015em; font-weight: 700; }
  strong { font-weight: 650; }
  .eyebrow { display: flex; align-items: center; gap: 10px; font-family: var(--font-heading); font-size: 12px; line-height: 1.6; font-weight: 700; letter-spacing: .1em; color: var(--blue); margin-bottom: 22px; }
  .text-link { display: inline-flex; gap: 12px; align-items: center; min-height: 44px; color: var(--navy); font-size: 14px; font-weight: 650; text-decoration: underline; text-underline-offset: 5px; }
  .text-link:hover { color: var(--blue); }
}

@layer layout {
  .container { width: min(1160px, calc(100% - 80px)); margin-inline: auto; }
  .section { padding-block: 88px; }
  .section-intro .section-summary { margin-top: 24px; }
  .section-summary { max-width: 440px; color: var(--muted); font-size: 16px; }
  .section-intro > .text-link { margin-top: 26px; }
  .section-heading { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 44px; }
  .section-heading > p { max-width: 330px; color: var(--muted); font-size: 16px; }
  .profile, .experience-layout, .decision-layout { display: grid; grid-template-columns: .9fr 1.25fr; gap: 88px; }
  .learning-layout, .content-layout { display: grid; grid-template-columns: 1.1fr .9fr; gap: 80px; }
}

@layer components {
  .icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
  .icon { display: inline-block; width: 20px; height: 20px; flex-shrink: 0; vertical-align: middle; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .icon-badge { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; color: var(--blue); background: #eaf1ff; border-radius: 14px; }
  .icon-badge .icon { width: 25px; height: 25px; }
  .skip-link { position: fixed; top: 12px; left: 12px; z-index: 100; padding: 12px 18px; background: var(--navy); color: #fff; transform: translateY(-160%); }
  .skip-link:focus { transform: none; }
  .site-header { position: sticky; top: 0; z-index: 30; background: #ffffffed; backdrop-filter: blur(16px); border-bottom: 1px solid #dce3eeaa; }
  .navigation { min-height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
  .brand { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; }
  .brand img { width: 60px; height: auto; }
  .brand > span { display: block; color: var(--navy); font-family: var(--font-heading); font-size: 15px; line-height: 1.5; font-weight: 750; }
  .brand small { display: block; font-size: 10px; font-weight: 500; letter-spacing: .09em; color: var(--muted); }
  .navigation-links { display: flex; align-items: center; gap: 24px; font-family: var(--font-heading); font-size: 13px; font-weight: 650; }
  .navigation-links a { display: inline-flex; align-items: center; gap: 8px; padding-block: 12px; }
  .navigation-links .icon { width: 17px; height: 17px; }
  .navigation-links a:hover, .navigation-links [aria-current="location"] { color: var(--blue); }
  .navigation-links [aria-current="location"] { text-decoration: underline; text-underline-offset: 8px; }
  .navigation-links .navigation-contact { display: flex; align-items: center; gap: 18px; min-height: 44px; padding: 10px 17px; border: 1px solid #ccdafa; border-radius: 10px; background: #f5f8ff; }
  .menu-toggle { display: none; min-height: 44px; border: 1px solid var(--line); background: #fff; color: var(--navy); border-radius: 8px; padding: 8px 12px; cursor: pointer; }
  .reading-progress { position: absolute; bottom: -1px; left: 0; appearance: none; border: 0; width: 100%; height: 2px; background: transparent; color: var(--blue); }
  .reading-progress::-webkit-progress-bar { background: transparent; }
  .reading-progress::-webkit-progress-value { background: var(--blue); }
  .reading-progress::-moz-progress-bar { background: var(--blue); }
  .hero-shell { position: relative; isolation: isolate; overflow: hidden; background: radial-gradient(ellipse at 92% 20%, #00bfea13, transparent 55%), linear-gradient(115deg, #fff 12%, #f5f8ff 60%, #e9f6ff); border-bottom: 1px solid #e0eafb; }
  .hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .9fr); column-gap: 65px; padding-block: 76px 66px; align-items: center; }
  .hero-heading { grid-area: 1 / 1; }
  .hero h1 span { color: var(--blue); }
  .hero-role { color: var(--navy); font-family: var(--font-heading); font-size: clamp(25px, 2.5vw, 34px); font-weight: 650; line-height: 1.4; letter-spacing: -.02em; margin-top: 22px; }
  .hero-body { grid-area: 2 / 1; margin-top: 25px; }
  .hero-intro { max-width: 520px; color: var(--muted); font-size: 20px; line-height: 1.65; }
  .hero-actions { display: flex; align-items: center; gap: 25px; flex-wrap: wrap; margin-top: 28px; }
  .hero-highlights { display: flex; gap: 20px; padding: 25px 0 0; margin: 28px 0 0; list-style: none; border-top: 1px solid #cad9ef; }
  .hero-highlights li { display: flex; align-items: start; gap: 10px; max-width: 255px; color: var(--muted); font-size: 14px; line-height: 1.45; }
  .hero-highlights li > .icon { color: var(--blue); margin-top: 2px; }
  .hero-highlights strong { color: var(--navy); }
  .hero-portrait { position: relative; grid-area: 1 / 2 / span 2; width: 100%; max-width: 370px; justify-self: end; }
  .hero-portrait::before { content: ''; position: absolute; z-index: -1; width: calc(100% + 46px); aspect-ratio: 1; left: -23px; top: -23px; border: 1px solid #0057ff18; border-radius: 50%; }
  .portrait-frame { border-radius: 50%; aspect-ratio: 1; overflow: hidden; border: 6px solid #fff; outline: 2px solid var(--cyan); outline-offset: 5px; background: var(--paper); box-shadow: 0 24px 70px #00186824; }
  .portrait-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 65%; }
  .button { display: inline-flex; align-items: center; justify-content: center; gap: 18px; padding: 14px 23px; min-height: 50px; border: 1px solid transparent; border-radius: 10px; font-family: var(--font-heading); font-size: 14px; line-height: 1.5; font-weight: 700; transition: background-color 180ms ease, box-shadow 180ms ease, transform 180ms ease; }
  .button-primary { color: #fff; background: linear-gradient(110deg, #003de0, var(--blue)); box-shadow: 0 8px 22px #0057ff24; }
  .button-primary:hover { background: var(--navy); box-shadow: 0 12px 25px #0018682b; transform: translateY(-2px); }
  .button-light { color: var(--navy); background: #fff; }
  .button-light:hover { background: #dff5ff; }
  .profile { border-top: 0; }
  .profile-copy > p + p { margin-top: 22px; }
  .profile-copy p { font-size: 19px; color: var(--muted); line-height: 1.75; }
  .profile-copy strong { color: var(--ink); }
  .decision-section { background: radial-gradient(ellipse at 0 0, #0036ad 0, transparent 65%), var(--navy); color: #fff; }
  .decision-section h2, .decision-section h3 { color: #fff; }
  .decision-section .eyebrow { color: #80e2f8; }
  .decision-section .section-summary { color: #cfddf5; }
  .integration-flow { list-style: none; margin: 34px 0 0; padding: 0; border-left: 2px solid var(--cyan); }
  .integration-flow li { position: relative; display: flex; align-items: center; gap: 12px; margin-left: 18px; padding-block: 9px; color: #e0ecff; font-size: 16px; font-weight: 500; }
  .integration-flow .icon { color: #80e2f8; }
  .integration-flow li::before { content: ''; position: absolute; left: -23px; top: 18px; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); }
  .decision-list { margin: 0; padding: 0; list-style: none; }
  .decision-list > li { display: flex; gap: 23px; padding-block: 28px; border-top: 1px solid #ffffff29; }
  .decision-list > li:first-child { padding-top: 0; border-top: 0; }
  .decision-list > li:last-child { padding-bottom: 0; }
  .decision-marker { display: flex; flex-direction: column; align-items: center; gap: 8px; flex-shrink: 0; color: #80e2f8; padding-top: 3px; font-family: var(--font-heading); font-size: 11px; font-weight: 600; }
  .decision-marker > .icon { width: 27px; height: 27px; }
  .decision-list p { color: #d5e2f8; font-size: 18px; margin-top: 12px; }
  .timeline { list-style: none; margin: 0; padding: 0 0 0 27px; border-left: 1px solid var(--line); }
  .timeline > li { position: relative; padding-bottom: 34px; }
  .timeline > li:last-child { padding-bottom: 0; }
  .timeline > li::before { content: ''; position: absolute; top: 7px; left: -33px; width: 11px; height: 11px; border: 2px solid var(--blue); background: #fff; border-radius: 50%; }
  .timeline > li:first-child::before { background: var(--blue); }
  .timeline-date { color: var(--blue); font-size: 14px; font-weight: 600; margin-bottom: 8px; }
  .timeline h3 { margin-bottom: 10px; }
  .timeline > li > p:last-child { color: var(--muted); font-size: 18px; }
  .practice-section { border-block: 1px solid var(--line); background: #fbfcfe; }
  .practice-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; }
  .practice-list article { border-top: 1px solid #ccdaf1; padding-top: 24px; }
  .practice-heading { display: flex; flex-direction: column; align-items: start; gap: 19px; }
  .practice-list p { color: var(--muted); font-size: 18px; margin-top: 16px; }
  .technical-base { display: grid; grid-template-columns: 180px 1fr; gap: 30px; margin-top: 45px; padding-top: 24px; border-top: 1px solid var(--line); }
  .technical-base .eyebrow { margin: 4px 0 0; }
  .technical-base ul { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 0; padding: 0; list-style: none; font-size: 14px; font-weight: 600; color: var(--navy); }
  .references { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
  .references figure { padding-left: 24px; border-left: 2px solid var(--cyan); }
  .quote-icon { color: var(--blue); width: 25px; height: 25px; margin-bottom: 15px; }
  .references blockquote { font-size: 19px; line-height: 1.7; }
  .references figcaption { margin-top: 20px; }
  .references strong, .references figcaption span { display: block; }
  .references strong { font-size: 14px; color: var(--navy); }
  .references figcaption span { margin-top: 4px; font-size: 12px; color: var(--muted); }
  .learning-section { background: linear-gradient(120deg, var(--paper), #edf7fc); }
  .education-list { margin-top: 30px; margin-bottom: 22px; }
  .education-list > div { padding-block: 18px; border-bottom: 1px solid var(--line); }
  .education-list dt { font-size: 18px; color: var(--navy); font-weight: 600; }
  .education-list dd { color: var(--muted); font-size: 16px; margin-top: 7px; }
  .community-note { padding: 32px; border: 1px solid #ccdaf1; border-radius: 18px; background: #fff; box-shadow: 0 15px 35px #00186808; align-self: start; }
  .community-note .eyebrow { font-size: 11px; margin-bottom: 26px; }
  .community-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
  .community-name { color: var(--blue); font-family: var(--font-heading); font-size: 34px; font-weight: 750; letter-spacing: -.025em; }
  .community-note h3 { margin: 5px 0 18px; }
  .community-note > p:not(.eyebrow, .community-name) { color: var(--muted); font-size: 18px; }
  .community-note .text-link { margin-top: 25px; }
  .brand-slogan { color: var(--navy); font-size: 20px; line-height: 1.5; margin-top: 27px; }
  .brand-slogan strong { color: var(--blue); }
  .content-layout .section-summary { margin-top: 22px; }
  .content-links { border-top: 1px solid var(--line); align-self: start; }
  .content-links > a { display: grid; grid-template-columns: 48px 1fr 24px; gap: 4px 17px; padding: 24px 10px; border-bottom: 1px solid var(--line); border-radius: 10px; transition: background-color 180ms ease; }
  .content-links > a:hover { background: var(--paper); }
  .platform-icon { grid-area: 1 / 1 / span 2; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; border-radius: 14px; color: var(--blue); background: #eaf1ff; }
  .platform-icon .icon { width: 24px; height: 24px; }
  .platform-name { font-family: var(--font-heading); font-size: 21px; font-weight: 700; color: var(--navy); }
  .content-links > a > span:nth-child(3) { grid-column: 2; font-size: 16px; color: var(--muted); }
  .content-links > a > .icon { grid-area: 1 / 3 / span 2; align-self: center; color: var(--blue); }
  .content-links > a:hover .platform-name { color: var(--blue); }
  .contact-section { background: radial-gradient(ellipse at 100% 100%, #0043ab 0, transparent 70%), var(--navy); color: #fff; }
  .contact-section a:focus-visible { outline-color: var(--cyan); }
  .contact-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 50px; align-items: center; }
  .contact-section h2 { color: #fff; font-size: clamp(29px, 3vw, 39px); }
  .contact-section .eyebrow { color: #8de4fa; }
  .contact-section h2 + p { margin-top: 20px; color: #d5dff4; font-size: 16px; }
  .contact-actions { display: flex; align-items: start; flex-direction: column; gap: 22px; }
  .contact-email { display: inline-flex; align-items: center; gap: 10px; font-size: 17px; text-decoration: underline; text-underline-offset: 6px; overflow-wrap: anywhere; }
  .contact-email > span { min-width: 0; }
  .site-footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-block: 28px; font-size: 13px; color: var(--muted); }
  .site-footer a { display: inline-flex; align-items: center; gap: 8px; text-decoration: underline; text-underline-offset: 4px; }
}

@layer motion {
  .reveal-pending { opacity: 0; transform: translateY(18px); transition: opacity var(--reveal-duration) var(--ease-out), transform var(--reveal-duration) var(--ease-out); }
  .reveal-visible, .reveal-pending:focus-within { opacity: 1; transform: none; }
  .reveal-pending:focus-within { transition: none; }
  .practice-list > :nth-child(2), .references > :nth-child(2) { transition-delay: 120ms; }
  .practice-list > :nth-child(3) { transition-delay: 240ms; }
  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal-pending { transform: none; transition-property: opacity; }
    .button-primary:hover { transform: none; }
  }
}

@layer responsive {
  @media (max-width: 1050px) {
    .container { width: calc(100% - 52px); }
    .navigation-links { gap: 19px; font-size: 13px; }
    .hero { column-gap: 42px; }
    .profile, .experience-layout, .decision-layout { gap: 45px; }
    .learning-layout, .content-layout { gap: 42px; }
    .hero-role br { display: none; }
    .practice-list { gap: 24px; }
  }
  @media (max-width: 860px) {
    .navigation { min-height: 72px; flex-wrap: wrap; }
    .navigation-links { width: 100%; padding-bottom: 20px; flex-wrap: wrap; }
    .navigation.is-enhanced { position: relative; flex-wrap: nowrap; }
    .navigation.is-enhanced .menu-toggle { display: inline-flex; gap: 12px; align-items: center; }
    .navigation.is-enhanced .navigation-links { display: none; position: absolute; top: 72px; left: -26px; right: -26px; width: auto; padding: 15px 26px 22px; background: #fff; border-bottom: 1px solid var(--line); }
    .navigation.is-enhanced .navigation-links.is-open { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
    .navigation-contact { margin-top: 8px; justify-content: space-between; }
    .hero { padding-top: 35px; column-gap: 28px; }
    .hero-role { font-size: 27px; }
    .practice-list { grid-template-columns: 1fr; gap: 28px; }
    .practice-list article { display: grid; grid-template-columns: 1fr 1.6fr; gap: 30px; }
    .practice-list p { margin-top: 0; }
    .references { gap: 30px; }
    .contact-layout { grid-template-columns: 1fr; gap: 32px; }
  }
  @media (max-width: 650px) {
    html { scroll-padding-top: 87px; }
    .container { width: calc(100% - 40px); }
    .section { padding-block: 55px; }
    .brand { gap: 9px; }
    .brand img { width: 45px; }
    .brand > span { font-size: 13px; }
    .brand small { font-size: 10px; }
    .menu-toggle { font-size: 13px; }
    .navigation.is-enhanced .navigation-links { left: -20px; right: -20px; padding-inline: 20px; }
    .hero { grid-template-columns: minmax(0, 1fr) 120px; column-gap: 24px; padding-block: 30px 35px; }
    .hero-heading { align-self: center; }
    .hero .eyebrow { font-size: 11px; letter-spacing: .06em; margin-bottom: 14px; }
    .hero h1 { font-size: clamp(31px, 7.3vw, 42px); }
    .hero h1 span { display: block; }
    .hero-role { font-size: 23px; margin-top: 16px; }
    .hero-portrait { grid-area: 1 / 2; width: 116px; align-self: center; }
    .hero-portrait::before { width: calc(100% + 24px); left: -12px; top: -12px; }
    .portrait-frame { outline-offset: 4px; border-width: 2px; }
    .hero-body { grid-area: 2 / 1 / auto / -1; margin-top: 25px; }
    .hero-intro { font-size: 19px; }
    .hero-actions { margin-top: 23px; gap: 20px; }
    .button { font-size: 14px; padding-inline: 16px; }
    .hero-highlights { flex-direction: column; gap: 14px; padding-top: 21px; margin-top: 24px; }
    .hero-highlights li { max-width: none; font-size: 15px; }
    h2 { font-size: 30px; }
    .eyebrow { font-size: 11px; margin-bottom: 17px; }
    .profile, .experience-layout, .decision-layout, .learning-layout, .content-layout { grid-template-columns: 1fr; gap: 30px; }
    .profile-copy p { font-size: 18px; }
    .section-heading { flex-direction: column; align-items: start; gap: 18px; margin-bottom: 30px; }
    .section-heading > p { max-width: none; }
    .decision-list > li { gap: 19px; }
    .decision-list > li:first-child { padding-top: 24px; border-top: 1px solid #ffffff29; }
    .integration-flow { margin-top: 25px; }
    .practice-list article { grid-template-columns: 1fr; gap: 12px; }
    .practice-heading { flex-direction: row; align-items: center; gap: 16px; }
    .technical-base { grid-template-columns: 1fr; gap: 15px; margin-top: 30px; }
    .technical-base ul { gap: 8px 18px; }
    .references { grid-template-columns: 1fr; gap: 30px; }
    .references blockquote { font-size: 18px; }
    .community-note { padding: 26px; }
    .site-footer { flex-wrap: wrap; font-size: 12px; }
  }
  @media (max-width: 380px) {
    .container { width: calc(100% - 32px); }
    .brand small { display: none; }
    .hero { grid-template-columns: minmax(0, 1fr) 92px; gap: 18px; }
    .hero-portrait { width: 90px; }
    .hero-role { font-size: 21px; }
    .hero .eyebrow { font-size: 10px; }
    .hero-actions { gap: 16px; }
  }
  @media print {
    .site-header, .hero-actions, .site-footer { display: none; }
    .container { width: 100%; }
    .section { padding-block: 25px; }
    .reveal-pending { opacity: 1; transform: none; transition: none; }
    .contact-section, .decision-section, .practice-section, .learning-section { background: #fff; color: #000; }
    .contact-section h2, .contact-section .eyebrow, .contact-section h2 + p { color: #000; }
    .decision-section :is(h2, h3, p, li, .icon, .decision-marker) { color: #000; }
    a { color: #000; }
  }
}
