:root {
  color-scheme: light;
  --bg: #f7f9f8;
  --surface: #fff;
  --ink: #1c2b29;
  --muted: #596b66;
  --line: #dce6e1;
  --accent: #167b70;
  --accent-dark: #0c6057;
  --warm: #c46a4c;
  --blue: #527fa0;
  --container: min(1180px, calc(100% - 48px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; color: var(--ink); background: var(--bg); font: 400 16px/1.65 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif; text-rendering: optimizeLegibility; }
body::before { content: ""; position: absolute; inset: 0 0 auto; height: 720px; pointer-events: none; background: linear-gradient(180deg, #fff 0%, #f7f9f8 94%); z-index: -1; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--warm); outline-offset: 3px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.2; }
.skip-link { position: fixed; top: -80px; left: 16px; z-index: 100; padding: 10px 14px; color: #fff; background: var(--ink); border-radius: 8px; }
.skip-link:focus { top: 12px; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.88); border-bottom: 1px solid rgba(220,230,225,.85); backdrop-filter: blur(18px); }
.nav, .hero, .section, .education-inner, .site-footer { width: var(--container); margin-inline: auto; }
.nav { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; font-size: 1.14rem; font-weight: 850; color: var(--ink); line-height: 1; }
.brand::after { content: "."; color: var(--warm); font-size: 1.45em; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 8px; color: var(--muted); font-size: .9rem; font-weight: 650; transition: color .18s ease, background .18s ease; }
.nav-links a:hover, .nav-links a.is-active { color: var(--accent-dark); background: #e9f2ee; }
.language-switch { display: flex; align-items: center; padding: 3px; border: 1px solid var(--line); border-radius: 8px; background: #f4f7f5; }
.lang-button { min-width: 38px; min-height: 34px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); font-size: .8rem; font-weight: 800; cursor: pointer; }
.lang-button.is-active { color: #fff; background: var(--accent-dark); }
.nav-toggle { display: none; width: 42px; height: 42px; padding: 9px; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; margin: 4px auto; background: var(--ink); width: 18px; }
.eyebrow { margin-bottom: 14px; color: var(--accent-dark); font-size: .75rem; font-weight: 800; letter-spacing: 0; text-transform: uppercase; }
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(380px, .96fr); align-items: center; gap: clamp(36px, 5vw, 74px); min-height: min(640px, calc(100svh - 118px)); padding-block: 54px 56px; border-bottom: 1px solid var(--line); }
.hero::before { content: ""; position: absolute; inset: 10% auto 10% 57%; width: 1px; background: linear-gradient(180deg, transparent, #e5ede8 30% 70%, transparent); pointer-events: none; }
.hero-copy { min-width: 0; }
h1 { margin-bottom: 8px; font-size: 6.25rem; font-weight: 810; line-height: 1.08; letter-spacing: 0; }
.hero-position { margin-bottom: 24px; color: var(--accent-dark); font-size: .94rem; font-weight: 740; }
.hero-lede { max-width: 610px; margin-bottom: 0; font-size: 1.45rem; line-height: 1.6; font-weight: 520; text-wrap: balance; }
.signal-strip { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 25px; }
.signal-strip span { padding: 5px 10px; color: #3f625a; background: #edf4f0; border: 1px solid #dfeae4; border-radius: 6px; font-size: .76rem; font-weight: 680; }
.hero-actions, .contact-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 27px; }
.button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; padding: 10px 19px; border: 1px solid var(--ink); border-radius: 8px; font-weight: 720; transition: transform .18s ease, background .18s ease, box-shadow .18s ease; }
.button:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(24,38,36,.12); }
.button.primary { background: var(--ink); color: #fff; box-shadow: 0 6px 15px rgba(28,43,41,.12); }
.button.primary:hover { background: var(--accent-dark); }
.button.secondary { background: #fff; color: var(--ink); border-color: #ccd9d2; }
.quick-facts { display: flex; gap: 18px; margin: 32px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); list-style: none; }
.quick-facts li { flex: 1; min-width: 0; }
.quick-facts strong, .quick-facts span { display: block; }
.quick-facts strong { font-size: .9rem; color: var(--ink); }
.quick-facts span { margin-top: 2px; color: var(--muted); font-size: .78rem; line-height: 1.4; }
.hero-visual { min-width: 0; }
.system-panel { position: relative; padding: 26px; color: #eff6f3; background: #213630; border: 1px solid #38544b; border-radius: 8px; box-shadow: 0 22px 48px rgba(22,50,43,.14); overflow: hidden; }
.system-panel::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .09; background-image: linear-gradient(#a3bbb2 1px, transparent 1px), linear-gradient(90deg, #a3bbb2 1px, transparent 1px); background-size: 26px 26px; mask-image: linear-gradient(110deg, transparent 20%, #000 100%); }
.panel-top, .stack-diagram, .system-links { position: relative; }
.panel-top { display: flex; justify-content: space-between; align-items: center; padding-bottom: 17px; border-bottom: 1px solid #496158; color: #c3dacf; font-size: .7rem; font-weight: 800; letter-spacing: 0; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #e5ae79; box-shadow: 0 0 0 4px rgba(229,174,121,.12); }
.stack-diagram { display: grid; grid-template-columns: minmax(0,1fr) 14px minmax(0,1fr) 14px minmax(0,1fr); gap: 8px; align-items: stretch; padding: 26px 0 24px; }
.node { display: flex; min-height: 128px; flex-direction: column; justify-content: center; padding: 14px; border: 1px solid #4d6a60; border-top: 2px solid #8eb5ce; border-radius: 6px; background: rgba(37,72,61,.94); font-size: .84rem; font-weight: 760; line-height: 1.3; overflow-wrap: anywhere; }
.node::before { content: "01 /"; margin-bottom: 14px; color: #adc9d8; font-size: .65rem; font-weight: 780; }
.node-plan { border-top-color: #dc9167; }
.node-plan::before { content: "02 /"; color: #e9b391; }
.node-act { border-top-color: #8cc1a6; }
.node-act::before { content: "03 /"; color: #a9dcc0; }
.node small { margin-top: 8px; color: #b7d0c5; font-size: .69rem; font-weight: 500; line-height: 1.4; }
.flow { align-self: center; height: 1px; background: #a3c5b5; position: relative; }
.flow::after { content: ""; position: absolute; right: 0; top: -3px; width: 6px; height: 6px; transform: rotate(45deg); border-top: 1px solid #d3e6da; border-right: 1px solid #d3e6da; }
.system-links { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; background: transparent; }
.system-links a { padding: 12px 14px; background: rgba(255,255,255,.055); border: 1px solid #496158; border-radius: 6px; transition: background .18s ease, border-color .18s ease; }
.system-links a:hover { background: rgba(255,255,255,.11); border-color: #8eb5a6; }
.system-links span, .system-links strong { display: block; }
.system-links span { color: #a5c8bd; font-size: .71rem; }
.system-links strong { margin-top: 2px; color: #fff; font-size: .88rem; }
.section { padding-block: 84px; }
.section-heading { max-width: 790px; margin-bottom: 32px; }
.section-heading.compact { margin-bottom: 22px; }
h2 { max-width: 850px; margin-bottom: 15px; font-size: 2.45rem; font-weight: 780; text-wrap: balance; }
.section-heading > p:not(.eyebrow) { max-width: 680px; margin-bottom: 0; color: var(--muted); font-size: 1.02rem; }
.focus-section { padding-bottom: 78px; }
.focus-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.focus-grid article { min-width: 0; padding: 25px 22px 26px 0; margin-right: 22px; border-right: 1px solid var(--line); }
.focus-grid article::before { display: block; margin-bottom: 21px; color: var(--warm); font-size: .72rem; font-weight: 800; content: "01 /"; }
.focus-grid article:nth-child(2)::before { content: "02 /"; }
.focus-grid article:nth-child(3)::before { content: "03 /"; }
.focus-grid article:nth-child(4)::before { content: "04 /"; }
.focus-grid article:last-child { border: 0; margin: 0; }
.focus-grid h3 { margin-bottom: 10px; font-size: 1.09rem; }
.focus-grid p { min-height: 84px; margin-bottom: 14px; color: var(--muted); font-size: .89rem; }
.capability-link { color: var(--accent-dark); font-size: .84rem; font-weight: 750; }
.capability-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.timeline { border-top: 1px solid var(--line); }
.timeline-item { display: grid; grid-template-columns: 175px minmax(0,1fr); gap: 28px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.timeline-item > div { position: relative; padding-left: 22px; border-left: 1px solid #d2dfd8; }
.timeline-item > div::before { content: ""; position: absolute; top: 8px; left: -4px; width: 7px; height: 7px; background: var(--warm); border: 2px solid var(--bg); border-radius: 50%; box-sizing: content-box; }
.timeline-item time { width: fit-content; display: inline-block; align-self: start; padding: 6px 10px; color: var(--accent-dark); background: #eaf3ef; border-radius: 6px; font-size: .82rem; font-weight: 780; font-variant-numeric: tabular-nums; white-space: nowrap; }
.timeline-item h3 { margin-bottom: 8px; font-size: 1.1rem; }
.timeline-item p { max-width: 780px; margin-bottom: 0; color: var(--muted); font-size: .93rem; }
.projects-section { background: #edf3f0; width: 100%; padding-inline: max(24px, calc((100% - 1180px)/2)); border-block: 1px solid #e0e9e3; }
.projects-section .section-heading { margin-inline: 0; }
.project-toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.filter { min-height: 41px; padding: 7px 15px; background: rgba(255,255,255,.8); border: 1px solid #cedbd3; border-radius: 8px; color: var(--muted); font-size: .85rem; font-weight: 750; cursor: pointer; transition: background .18s ease, color .18s ease; }
.filter:hover, .filter.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.project-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.project-card { position: relative; display: flex; min-width: 0; flex-direction: column; padding: 30px; background: #fff; border: 1px solid #d8e3dc; border-radius: 8px; box-shadow: 0 9px 26px rgba(28,51,42,.045); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.project-card::before { content: ""; position: absolute; inset: 22px auto 22px 0; width: 3px; background: var(--blue); border-radius: 0 3px 3px 0; }
.project-card:nth-child(2)::before { background: var(--warm); }
.project-card:nth-child(3)::before { background: var(--accent); }
.project-card:nth-child(4)::before { background: #9d809b; }
.project-card:hover { transform: translateY(-3px); border-color: #b4cfc1; box-shadow: 0 18px 34px rgba(27,57,45,.09); }
.project-card:first-child { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.05fr); column-gap: 35px; }
.project-card:first-child .card-top, .project-card:first-child h3, .project-card:first-child > p { grid-column: 1; }
.project-card:first-child .project-diagram { grid-column: 2; grid-row: 1 / span 3; align-self: stretch; min-height: 166px; padding: 22px 18px; background: #f1f6f4; border: 1px solid #e3ece7; border-radius: 8px; }
.project-card:first-child .project-details { grid-column: 1 / -1; }
.project-card:first-child .diagram-note { grid-column: 2; text-align: right; }
.project-card.is-hidden { display: none; }
.card-top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; font-size: .72rem; font-weight: 800; letter-spacing: 0; }
.card-top span { color: var(--accent-dark); }
.card-top strong { color: var(--warm); }
.project-card h3 { margin-bottom: 12px; font-size: 1.58rem; }
.project-card:first-child h3 { font-size: 1.86rem; }
.project-card > p { margin-bottom: 22px; color: var(--muted); font-size: .94rem; }
.project-diagram { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); align-content: center; gap: 0; min-height: 148px; padding: 15px 0; counter-reset: stage; border-block: 1px solid var(--line); }
.project-diagram span { position: relative; display: flex; min-width: 0; flex-direction: column; align-items: flex-start; justify-content: center; padding: 22px 18px 10px 0; color: #314d46; font-size: .77rem; font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; }
.project-diagram span::before { counter-increment: stage; content: counter(stage, decimal-leading-zero); position: absolute; top: 1px; left: 0; color: var(--warm); font-size: .65rem; font-weight: 800; }
.project-diagram span:not(:last-child)::after { content: "→"; position: absolute; top: 50%; right: 5px; color: var(--accent); transform: translateY(-25%); font-size: 1rem; }
.project-card:not(:first-child) .project-diagram { grid-template-columns: 1fr; padding: 10px 0; }
.project-card:not(:first-child) .project-diagram span { min-height: 35px; padding: 5px 15px 5px 34px; border-left: 1px solid #cad7d0; }
.project-card:not(:first-child) .project-diagram span::before { top: 8px; left: 8px; }
.project-card:not(:first-child) .project-diagram span:not(:last-child)::after { top: auto; right: auto; bottom: -7px; left: 10px; transform: rotate(90deg); font-size: .8rem; }
.project-details { display: grid; gap: 8px; padding-top: 17px; margin: 18px 0 0; border-top: 1px solid var(--line); }
.project-details div { display: grid; grid-template-columns: 76px minmax(0,1fr); gap: 8px; }
.project-details dt { color: var(--accent-dark); font-size: .78rem; font-weight: 800; }
.project-details dd { margin: 0; color: var(--muted); font-size: .83rem; }
.diagram-note { display: block; margin-top: 12px; color: #75847c; font-size: .7rem; }
.project-minor { grid-column: 1 / -1; }
.project-minor h3 { font-size: 1.12rem; }
.project-minor ul { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 2px 0 0; padding-left: 18px; color: var(--muted); font-size: .84rem; }
.outputs-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 32px; border-top: 1px solid var(--line); }
.outputs-grid article { position: relative; padding: 28px 0 27px; border-bottom: 1px solid var(--line); min-width: 0; }
.outputs-grid article::after { content: ""; position: absolute; top: 33px; right: 1px; width: 18px; height: 2px; background: #9dbab0; }
.output-type { display: block; margin-bottom: 9px; color: var(--warm); font-size: .7rem; font-weight: 800; letter-spacing: 0; }
.outputs-grid h3 { max-width: 500px; margin-bottom: 8px; padding-right: 20px; font-size: 1.02rem; overflow-wrap: anywhere; }
.outputs-grid p { margin: 0; color: var(--muted); font-size: .85rem; }
.education-section { border-top: 1px solid var(--line); background: #fff; }
.education-inner { display: flex; align-items: baseline; flex-wrap: wrap; gap: 14px 28px; padding-block: 25px; }
.education-inner .eyebrow, .education-inner p { margin: 0; }
.education-inner p { color: var(--muted); font-size: .9rem; }
.education-inner p span { margin: 0 10px; color: #adbcb6; }
.contact-section { position: relative; width: 100%; margin: 0; padding: 78px max(24px, calc((100% - 1180px)/2)); background: #203431; color: #fff; border-radius: 0; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 30px; align-items: end; overflow: hidden; }
.contact-section::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, var(--blue) 0 33%, var(--warm) 33% 66%, #8cc1a6 66%); }
.contact-section .eyebrow { color: #a7d6c7; }
.contact-section h2 { margin: 0; max-width: 700px; }
.contact-actions { margin: 0; }
.contact-section .button { border-color: #a7c6bb; }
.contact-section .button.primary { background: #fff; color: #202f2c; }
.contact-section .button.secondary { background: transparent; color: #fff; }
.site-footer { display: flex; justify-content: space-between; gap: 12px; padding-block: 22px; color: var(--muted); font-size: .82rem; }
.site-footer a:hover { color: var(--accent-dark); }
.reveal-card { opacity: 1; }
@media (max-width: 1050px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding-block: 54px; }
  .hero::before { display: none; }
  .hero-visual { max-width: 720px; }
  h1 { font-size: 5.4rem; }
  h2 { font-size: 2.2rem; }
  .focus-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .focus-grid article { border-bottom: 1px solid var(--line); }
  .focus-grid article:nth-child(2) { border-right: 0; }
  .focus-grid article:nth-child(n+3) { border-bottom: 0; }
}
@media (max-width: 740px) {
  :root { --container: min(100% - 30px, 1180px); }
  html { scroll-padding-top: 74px; }
  .nav { min-height: 62px; }
  .nav-toggle { display: block; }
  .language-switch { margin-left: auto; }
  .nav-links { display: none; position: absolute; top: 61px; left: 0; right: 0; padding: 8px 15px 13px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 14px 25px rgba(20,44,37,.09); }
  .nav-links.is-open { display: grid; }
  .nav-links a { min-height: 45px; }
  .hero { gap: 26px; padding-block: 38px 44px; }
  h1 { font-size: 4.5rem; }
  h2 { font-size: 1.95rem; }
  .hero-lede { font-size: 1.18rem; }
  .quick-facts { margin-top: 26px; }
  .section { padding-block: 64px; }
  .projects-section { padding-inline: 15px; }
  .project-grid { grid-template-columns: 1fr; }
  .project-card:first-child { display: flex; }
  .project-card { padding: 24px; }
  .timeline-item { grid-template-columns: 1fr; gap: 7px; }
  .timeline-item > div { padding-left: 16px; }
  .contact-section { grid-template-columns: 1fr; padding: 55px 15px; }
  .contact-actions { margin-top: 0; }
}
@media (max-width: 500px) {
  .focus-section { padding-top: 28px; }
  h1 { font-size: 3.8rem; }
  .project-card h3 { font-size: 1.4rem; }
  .project-card:first-child h3 { font-size: 1.62rem; }
  .hero { gap: 22px; padding-block: 32px 34px; }
  .hero-position { margin-bottom: 18px; }
  .signal-strip { gap: 6px; margin-top: 18px; }
  .signal-strip span { padding: 4px 8px; font-size: .7rem; }
  .hero-actions { margin-top: 20px; }
  .quick-facts { display: none; }
  .system-panel { padding: 16px; }
  .panel-top { padding-bottom: 12px; font-size: .64rem; }
  .stack-diagram { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; padding: 16px 0 0; }
  .node { min-height: 84px; padding: 8px; font-size: .72rem; }
  .node::before { margin-bottom: 7px; }
  .node small { font-size: .59rem; }
  .flow, .system-links { display: none; }
  .project-diagram, .project-card:first-child .project-diagram { grid-template-columns: 1fr; min-height: 0; padding: 12px 0; background: transparent; border: 0; border-block: 1px solid var(--line); border-radius: 0; }
  .project-diagram span { min-height: 40px; padding: 7px 16px 7px 36px; border-left: 1px solid #cad7d0; font-size: .75rem; }
  .project-diagram span::before { top: 10px; left: 8px; }
  .project-diagram span:not(:last-child)::after { top: auto; right: auto; bottom: -6px; left: 10px; transform: rotate(90deg); font-size: .8rem; }
  .focus-grid, .outputs-grid { grid-template-columns: 1fr; }
  .focus-grid article { padding: 19px 0; margin: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .focus-grid article:nth-child(n) { border-right: 0; border-bottom: 1px solid var(--line); }
  .focus-grid article:last-child { border-bottom: 0; }
  .focus-grid article::before { margin-bottom: 9px; }
  .focus-grid p { min-height: auto; }
  .contact-actions .button { width: 100%; }
  .site-footer { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
