:root {
  --ink: #17212b;
  --muted: #52606d;
  --line: #dce3e8;
  --surface: #f6f8fa;
  --accent: #176b87;
  --accent-dark: #104f66;
  --max-width: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-dark); }

.container { width: min(calc(100% - 40px), var(--max-width)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.header-inner { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { color: var(--ink); font-weight: 700; letter-spacing: -.02em; text-decoration: none; white-space: nowrap; }
.brand:hover { color: var(--accent); }

.site-nav ul { display: flex; align-items: center; gap: 3px; margin: 0; padding: 0; list-style: none; }
.site-nav a { display: block; padding: 8px 10px; color: #3c4a55; font-size: .92rem; font-weight: 600; text-decoration: none; border-radius: 5px; }
.site-nav a:hover, .site-nav a.active { color: var(--accent-dark); background: #eaf3f6; }

.nav-toggle { display: none; border: 1px solid var(--line); padding: 8px 11px; color: var(--ink); background: #fff; font: inherit; font-weight: 600; border-radius: 5px; cursor: pointer; }

main { min-height: calc(100vh - 140px); }
.hero { padding: 92px 0 68px; background: linear-gradient(135deg, #f4f8fa 0%, #fff 62%); border-bottom: 1px solid var(--line); }
.eyebrow { margin: 0 0 14px; color: var(--accent); font-size: .83rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
h1, h2, h3 { color: #13202a; line-height: 1.2; letter-spacing: -.025em; }
h1 { max-width: 840px; margin: 0; font-size: clamp(2.25rem, 5vw, 4.25rem); }
h2 { margin: 0 0 22px; font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { margin: 0 0 10px; font-size: 1.2rem; }
p { margin: 0 0 18px; }
.hero-copy { max-width: 775px; margin: 22px 0 0; color: #40505c; font-size: clamp(1.05rem, 2vw, 1.25rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button { display: inline-block; padding: 10px 15px; color: #fff; background: var(--accent); border: 1px solid var(--accent); border-radius: 5px; font-weight: 700; text-decoration: none; }
.button:hover { color: #fff; background: var(--accent-dark); border-color: var(--accent-dark); }
.button-secondary { color: var(--accent-dark); background: #fff; border-color: #b8cbd3; }
.button-secondary:hover { color: var(--accent-dark); background: #eef5f7; }

.section { padding: 66px 0; }
.section-muted { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-intro { max-width: 720px; color: var(--muted); }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 28px; }
.card { height: 100%; padding: 24px; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.card p:last-child { margin-bottom: 0; }
.card h3 { font-size: 1.05rem; }
.link-card { color: inherit; text-decoration: none; transition: border-color .15s ease, box-shadow .15s ease; }
.link-card:hover { color: inherit; border-color: #a9c5d0; box-shadow: 0 4px 14px rgba(23, 107, 135, .08); }
.link-card span { display: inline-block; margin-top: 10px; color: var(--accent); font-weight: 700; }

.page-hero { padding: 58px 0 42px; background: #f6f8fa; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2rem, 4vw, 3.1rem); }
.page-hero p { max-width: 720px; margin: 16px 0 0; color: var(--muted); font-size: 1.08rem; }
.content { max-width: 820px; padding: 58px 0 76px; }
.content > h2 { margin-top: 46px; }
.content > h2:first-child { margin-top: 0; }
.content ul { padding-left: 1.25em; }
.content li { margin: 8px 0; }

.timeline { margin: 0; padding: 0; list-style: none; }
.timeline-item { padding: 0 0 36px 25px; border-left: 2px solid #bfd4dc; position: relative; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before { content: ""; position: absolute; left: -6px; top: 7px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.timeline-item h2 { margin-bottom: 8px; font-size: 1.35rem; }
.role { margin-bottom: 15px; color: var(--accent-dark); font-weight: 700; }
.technologies { margin: 16px 0 0; color: #40505c; }
.technologies strong { color: var(--ink); }

.project-list { display: grid; gap: 20px; }
.project { padding: 28px; border: 1px solid var(--line); border-radius: 7px; }
.project h2 { margin-bottom: 20px; font-size: 1.42rem; }
.project p { margin-bottom: 12px; }
.project .note { margin: 20px 0 0; padding-top: 16px; color: var(--muted); border-top: 1px solid var(--line); font-size: .94rem; }

.technology-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.technology-list article { padding: 24px; border: 1px solid var(--line); border-radius: 7px; }
.technology-list article:last-child { grid-column: 1 / -1; }
.technology-list p { margin: 0; color: #40505c; }

.certificate-group + .certificate-group { margin-top: 40px; }
.certificate-group ul { padding-left: 0; list-style: none; }
.certificate-group li { padding: 16px 0; border-top: 1px solid var(--line); }
.certificate-group li:last-child { border-bottom: 1px solid var(--line); }
.notice { padding: 20px 22px; color: #33434d; background: #f3f7f8; border-left: 3px solid #79a8b8; }
.contact-list { max-width: 650px; margin: 28px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.contact-list li { display: grid; grid-template-columns: 130px 1fr; gap: 18px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.contact-list strong { color: #34444f; }

.site-footer { padding: 28px 0; color: var(--muted); background: #f6f8fa; border-top: 1px solid var(--line); font-size: .9rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; }
.footer-inner p { margin: 0; }

@media (max-width: 800px) {
  .header-inner { min-height: 62px; }
  .js .nav-toggle { display: block; }
  .js .site-nav { display: none; }
  .js .site-header.is-open .site-nav { display: block; position: absolute; top: 62px; right: 0; left: 0; padding: 10px 20px 16px; background: #fff; border-bottom: 1px solid var(--line); }
  .js .site-header.is-open .site-nav ul { width: min(calc(100% - 0px), var(--max-width)); margin: 0 auto; display: grid; grid-template-columns: repeat(2, 1fr); gap: 3px; }
  .site-nav a { padding: 9px 8px; }
  .hero { padding: 68px 0 54px; }
  .section { padding: 48px 0; }
  .card-grid, .technology-list { grid-template-columns: 1fr; }
  .technology-list article:last-child { grid-column: auto; }
}

@media (max-width: 520px) {
  .container { width: min(calc(100% - 32px), var(--max-width)); }
  .site-nav ul { display: grid; grid-template-columns: repeat(2, 1fr); }
  .footer-inner, .contact-list li { display: block; }
  .footer-inner p + p { margin-top: 6px; }
  .contact-list li span { display: block; margin-top: 3px; }
  .project { padding: 22px; }
}
