* { box-sizing: border-box; }
:root {
  --ink: #202b38;
  --muted: #5e6b78;
  --line: #dce3e9;
  --paper: #ffffff;
  --soft: #f4f7f9;
  --navy: #213c56;
  --accent: #315f83;
}
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; line-height: 1.65; }
.container { width: min(1100px, calc(100% - 44px)); margin: 0 auto; }
.narrow { max-width: 780px; }
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { color: var(--navy); font-size: 1.08rem; font-weight: 700; text-decoration: none; letter-spacing: -.02em; }
nav { display: flex; align-items: center; gap: 25px; }
nav a, .footer-inner a { color: var(--muted); text-decoration: none; font-size: .92rem; }
nav a:hover, .footer-inner a:hover, .text-link:hover { color: var(--accent); }
nav .nav-contact { color: var(--navy); font-weight: 650; }
.hero { padding: 100px 0 94px; background: linear-gradient(115deg, #f6f8fa 0%, #fff 68%); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(250px, .8fr); align-items: center; gap: 72px; }
.eyebrow { margin: 0 0 14px; color: var(--accent); font-size: .76rem; font-weight: 750; letter-spacing: .14em; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 720px; margin-bottom: 22px; color: var(--navy); font-size: clamp(2.5rem, 5vw, 4.3rem); line-height: 1.08; letter-spacing: -.045em; font-weight: 700; }
h2 { margin-bottom: 16px; color: var(--navy); font-size: clamp(1.9rem, 3vw, 2.6rem); line-height: 1.2; letter-spacing: -.035em; }
h3 { color: var(--navy); font-size: 1.16rem; line-height: 1.3; }
.hero-copy { max-width: 680px; color: var(--muted); font-size: 1.12rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button { display: inline-block; padding: 11px 18px; border: 1px solid var(--navy); border-radius: 5px; text-decoration: none; font-weight: 650; font-size: .94rem; }
.button-primary { color: #fff; background: var(--navy); }
.button-primary:hover { background: #172d42; }
.button-secondary { color: var(--navy); background: transparent; }
.button-secondary:hover { background: #edf2f5; }
.intro-card { padding: 27px 28px; background: #fff; border: 1px solid var(--line); border-radius: 7px; box-shadow: 0 12px 32px rgba(29,53,75,.06); }
.card-label { margin-bottom: 13px; color: var(--muted); font-size: .72rem; font-weight: 750; letter-spacing: .12em; }
.intro-card ul { margin: 0; padding-left: 19px; color: var(--muted); }
.intro-card li { padding: 4px 0; }
.section { padding: 82px 0; }
.section-muted { background: var(--soft); border-top: 1px solid #e8edf1; border-bottom: 1px solid #e8edf1; }
.lead { color: #425362; font-size: 1.18rem; }
.section-intro { max-width: 700px; margin-bottom: 32px; color: var(--muted); }
.project-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.project-card { position: relative; min-height: 235px; padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: 7px; }
.project-number { margin-bottom: 19px; color: #8a9aa8; font-size: .78rem; font-weight: 750; letter-spacing: .1em; }
.project-card p { color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }
.tags span { padding: 4px 9px; color: #42596d; background: #edf2f5; border-radius: 3px; font-size: .76rem; }
.note { margin: 22px 0 0; color: #77838e; font-size: .86rem; }
.skills-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 30px; }
.skill-group { padding: 22px 24px; border: 1px solid var(--line); border-radius: 6px; }
.skill-group h3 { margin-bottom: 8px; font-size: 1rem; }
.skill-group p { margin: 0; color: var(--muted); }
.text-link { color: var(--navy); font-weight: 650; text-decoration: none; }
.contact-panel { padding-bottom: 12px; }
.contact-placeholder { display: inline-block; padding: 10px 13px; color: #6b5a32; background: #fbf7eb; border: 1px solid #eee3c6; border-radius: 4px; font-size: .9rem; }
footer { padding: 23px 0; border-top: 1px solid var(--line); }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; color: var(--muted); font-size: .88rem; }
@media (max-width: 760px) {
  .header-inner { align-items: flex-start; flex-direction: column; padding: 17px 0; gap: 12px; }
  nav { flex-wrap: wrap; gap: 12px 19px; }
  .hero { padding: 68px 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .section { padding: 62px 0; }
}
@media (max-width: 560px) {
  .container { width: min(100% - 32px, 1100px); }
  .project-grid, .skills-grid { grid-template-columns: 1fr; }
  .project-card { min-height: auto; }
}
