:root {
  --ink: #14212b;
  --ink-soft: #40515e;
  --muted: #6b7c88;
  --line: #dce5ea;
  --surface: #ffffff;
  --surface-soft: #f5f8fa;
  --brand: #127da9;
  --brand-dark: #0b5878;
  --brand-light: #dff4fb;
  --accent: #df3f3a;
  --accent-dark: #b92f2b;
  --shadow: 0 16px 44px rgba(20, 33, 43, .10);
  --radius: 18px;
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; }
a { color: var(--brand-dark); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: var(--accent-dark); }
button, input, textarea, select { font: inherit; }

.skip-link {
  position: absolute; top: -80px; left: 1rem; z-index: 99;
  padding: .7rem 1rem; background: var(--ink); color: #fff; border-radius: 0 0 10px 10px;
}
.skip-link:focus { top: 0; }

.container { width: min(calc(100% - 2rem), var(--max)); margin-inline: auto; }

.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255,255,255,.95);
  border-bottom: 1px solid rgba(220,229,234,.85);
  backdrop-filter: blur(12px);
}
.header-row { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .75rem; color: var(--ink); text-decoration: none; font-weight: 800; }
.brand img { width: 48px; height: 48px; }
.brand-copy { display: grid; line-height: 1.08; }
.brand-copy strong { font-size: 1.05rem; letter-spacing: .01em; }
.brand-copy span { margin-top: .18rem; color: var(--muted); font-size: .77rem; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; }

.desktop-nav { display: flex; align-items: center; gap: 1.1rem; }
.desktop-nav a { color: var(--ink-soft); font-size: .94rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.desktop-nav a:hover, .desktop-nav a[aria-current="page"] { color: var(--brand-dark); }
.desktop-nav .nav-cta { padding: .62rem .95rem; color: #fff; background: var(--brand-dark); border-radius: 999px; }
.desktop-nav .nav-cta:hover { color: #fff; background: var(--accent-dark); }

.mobile-menu { display: none; }
.mobile-menu summary { cursor: pointer; list-style: none; padding: .55rem .8rem; border: 1px solid var(--line); border-radius: 10px; font-weight: 750; }
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-menu nav { position: absolute; left: 1rem; right: 1rem; top: 68px; padding: .8rem; display: grid; gap: .2rem; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.mobile-menu nav a { padding: .7rem .75rem; color: var(--ink); font-weight: 700; text-decoration: none; border-radius: 8px; }
.mobile-menu nav a:hover { background: var(--surface-soft); }

.hero {
  position: relative; overflow: hidden;
  padding: clamp(4rem, 7vw, 7.4rem) 0 clamp(4.2rem, 7vw, 7rem);
  background:
    radial-gradient(circle at 86% 18%, rgba(75,196,237,.20), transparent 28%),
    radial-gradient(circle at 75% 78%, rgba(223,63,58,.08), transparent 26%),
    linear-gradient(180deg, #fbfdfe 0%, #f4f9fb 100%);
  border-bottom: 1px solid var(--line);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: .45rem; color: var(--brand-dark); font-weight: 800; letter-spacing: .04em; text-transform: uppercase; font-size: .82rem; }
.eyebrow::before { content: ""; width: 28px; height: 3px; background: var(--accent); border-radius: 99px; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.025em; }
h1 { max-width: 820px; margin: .8rem 0 1.25rem; font-size: clamp(2.65rem, 6vw, 5.4rem); }
.hero h1 span { color: var(--brand-dark); }
.lead { max-width: 750px; margin: 0; color: var(--ink-soft); font-size: clamp(1.08rem, 2vw, 1.32rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .72rem 1.05rem; border-radius: 10px; font-weight: 800; text-decoration: none; transition: transform .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand-dark); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-secondary { border: 1px solid var(--line); background: #fff; color: var(--ink); }
.btn-secondary:hover { border-color: #bacbd4; color: var(--brand-dark); }
.hero-note { margin-top: 1.25rem; color: var(--muted); font-size: .9rem; }

.experience-facts { display: flex; flex-wrap: wrap; gap: .65rem 1.4rem; margin-top: 1rem; }
.experience-facts span { padding-left: .8rem; border-left: 3px solid var(--brand); color: var(--ink-soft); font-size: .94rem; }
.experience-facts strong { color: var(--ink); }

.hero-mark { position: relative; display: grid; place-items: center; min-height: 390px; }
.hero-mark::before { content: ""; position: absolute; inset: 8% 4%; border: 1px solid rgba(18,125,169,.22); border-radius: 40px; transform: rotate(-5deg); }
.hero-mark::after { content: ""; position: absolute; width: 58%; aspect-ratio: 1; border-radius: 50%; background: rgba(18,125,169,.08); filter: blur(1px); }
.hero-mark img { position: relative; z-index: 2; width: min(76%, 330px); filter: drop-shadow(0 28px 30px rgba(20,33,43,.16)); }

.section { padding: clamp(4rem, 7vw, 6.5rem) 0; }
.section-soft { background: var(--surface-soft); }
.section-head { max-width: 780px; margin-bottom: 2.3rem; }
.section-head h2 { margin: .55rem 0 .85rem; font-size: clamp(2rem, 4vw, 3.1rem); }
.section-head p { margin: 0; color: var(--ink-soft); font-size: 1.08rem; }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1rem; }
.card { min-height: 100%; padding: 1.5rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 24px rgba(20,33,43,.035); }
.card h3 { margin: .8rem 0 .55rem; font-size: 1.25rem; }
.card p { margin: 0; color: var(--ink-soft); }
.card-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 13px; background: var(--brand-light); color: var(--brand-dark); font-weight: 900; }
.card-link { display: inline-flex; margin-top: 1rem; font-weight: 800; text-decoration: none; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,5rem); align-items: start; }
.panel { padding: clamp(1.5rem, 3vw, 2.4rem); border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.panel h2, .panel h3 { margin-top: 0; }
.check-list { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: .75rem; }
.check-list li { position: relative; padding-left: 1.55rem; color: var(--ink-soft); }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--brand-dark); font-weight: 900; }

.tech-cloud { display: flex; flex-wrap: wrap; gap: .65rem; }
.tech-cloud span { padding: .55rem .75rem; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink-soft); font-weight: 700; font-size: .93rem; }

.quote-band { padding: 2rem 0; background: var(--ink); color: #fff; }
.quote-band .container { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.quote-band strong { display: block; font-size: 1.2rem; }
.quote-band span { color: #c8d2d8; }
.quote-band .btn { background: #fff; color: var(--ink); }

.page-hero { padding: 4.2rem 0 3.2rem; background: linear-gradient(180deg, #fbfdfe, #f5f9fb); border-bottom: 1px solid var(--line); }
.page-hero h1 { max-width: 950px; margin: .7rem 0 .9rem; font-size: clamp(2.4rem, 5vw, 4.2rem); }
.page-hero p { max-width: 800px; margin: 0; color: var(--ink-soft); font-size: 1.12rem; }

.content { max-width: 860px; }
.content h2 { margin-top: 2.4rem; font-size: 1.8rem; }
.content h3 { margin-top: 1.8rem; }
.content p, .content li { color: var(--ink-soft); }
.content ul { padding-left: 1.2rem; }
.note { padding: 1rem 1.15rem; border-left: 4px solid var(--accent); background: #fff5f4; border-radius: 0 10px 10px 0; color: var(--ink-soft); }

.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1rem; }
.project-card { padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.project-card h3 { margin-top: 0; }
.project-card ul { margin-bottom: 0; padding-left: 1.15rem; color: var(--ink-soft); }

.resource-list { display: grid; gap: .85rem; }
.resource { display: grid; grid-template-columns: 86px 1fr auto; gap: 1rem; align-items: center; padding: 1.1rem 1.2rem; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.resource .year { color: var(--accent-dark); font-weight: 900; font-size: 1.05rem; }
.resource h3 { margin: 0 0 .25rem; font-size: 1.06rem; }
.resource p { margin: 0; color: var(--muted); font-size: .92rem; }
.resource a { font-weight: 800; white-space: nowrap; }
.resource.is-missing { background: #fafafa; }
.resource.is-missing a { color: var(--muted); pointer-events: none; text-decoration: none; }

.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 1rem; }
.contact-card { padding: 1.7rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.contact-card h2 { margin-top: 0; }
.contact-list { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: .9rem; }
.contact-list a { font-weight: 800; }

.site-footer { padding: 2.4rem 0; background: #101a21; color: #d1d9de; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 2rem; }
.footer-brand { display: flex; gap: .7rem; align-items: center; color: #fff; font-weight: 850; }
.footer-brand img { width: 42px; height: 42px; }
.site-footer p { max-width: 620px; margin: .8rem 0 0; color: #aebbc3; font-size: .92rem; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .7rem 1rem; align-content: start; }
.footer-links a { color: #d1d9de; text-decoration: none; font-size: .92rem; }
.footer-links a:hover { color: #fff; }
.footer-bottom { margin-top: 1.6rem; padding-top: 1.2rem; border-top: 1px solid #293741; color: #90a0aa; font-size: .85rem; }

@media (max-width: 980px) {
  .desktop-nav { display: none; }
  .mobile-menu { display: block; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-mark { min-height: 250px; }
  .hero-mark img { width: 220px; }
  .cards { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  body { font-size: 16px; }
  .header-row { min-height: 68px; }
  .brand img { width: 40px; height: 40px; }
  .brand-copy strong { font-size: .95rem; }
  .brand-copy span { font-size: .66rem; }
  .hero { padding-top: 3.6rem; }
  .hero-mark { min-height: 170px; margin-top: .5rem; }
  .hero-mark img { width: 140px; }
  .hero-mark::before { inset: 10% 24%; border-radius: 26px; }
  .hero-mark::after { width: 34%; }
  h1 { font-size: clamp(2.35rem, 13vw, 3.5rem); }
  .cards, .two-col, .project-grid, .footer-grid { grid-template-columns: 1fr; }
  .resource { grid-template-columns: 1fr; gap: .3rem; }
  .quote-band .container { align-items: flex-start; flex-direction: column; }
  .footer-links { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
