@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;650;700&display=swap');

:root {
  color-scheme: light;
  --ink: #263b55;
  --muted: #71839a;
  --blue: #397bc5;
  --blue-dark: #2866ad;
  --line: rgba(255,255,255,.78);
  --glass: rgba(255,255,255,.52);
  --shadow: 0 18px 55px rgba(54,94,143,.09);
}
* { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; }
body {
  min-height: 100vh; margin: 0; color: var(--ink);
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(ellipse at 8% 8%, rgba(173,210,255,.68), transparent 38rem),
    radial-gradient(ellipse at 92% 88%, rgba(187,224,255,.7), transparent 40rem),
    linear-gradient(135deg, #edf5ff 0%, #e5f0ff 52%, #f1f7ff 100%);
  background-attachment: fixed;
}
a { color: inherit; }
.page-shell { width: min(100% - 48px, 1000px); min-height: 100vh; margin: 0 auto; display: flex; flex-direction: column; }
.site-header { min-height: 94px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.wordmark { text-decoration: none; font-size: 1.35rem; font-weight: 700; letter-spacing: -1px; color: #294767; }
.wordmark span { color: var(--blue); }
.nav { display: flex; align-items: center; gap: 7px; padding: 6px; border: 1px solid rgba(255,255,255,.65); border-radius: 14px; background: rgba(255,255,255,.32); backdrop-filter: blur(14px); }
.nav a { padding: 9px 13px; color: #6c8099; text-decoration: none; font-size: .88rem; border-radius: 9px; transition: color .16s ease, background .16s ease; }
.nav a:hover, .nav a.active { color: var(--blue-dark); background: rgba(255,255,255,.72); }
main { flex: 1; padding: 42px 0 70px; }
.glass { background: var(--glass); border: 1px solid var(--line); box-shadow: var(--shadow); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.hero { position: relative; overflow: hidden; padding: clamp(42px, 8vw, 78px); border-radius: 28px; }
.hero::after { content: ""; position: absolute; width: 230px; height: 230px; right: -100px; top: -120px; border: 1px solid rgba(255,255,255,.65); border-radius: 50%; box-shadow: 0 0 0 24px rgba(255,255,255,.09), 0 0 0 49px rgba(255,255,255,.07); pointer-events: none; }
.eyebrow { display: flex; align-items: center; gap: 9px; margin: 0 0 18px; color: #7187a2; font-size: .78rem; font-weight: 600; letter-spacing: .11em; text-transform: uppercase; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #65a9df; box-shadow: 0 0 0 4px rgba(101,169,223,.13); }
h1 { max-width: 760px; margin: 0; font-size: clamp(2.5rem, 7vw, 4.7rem); line-height: 1.06; letter-spacing: -.065em; font-weight: 650; }
.blue-text { color: var(--blue); }
.lead { max-width: 590px; margin: 22px 0 0; color: var(--muted); font-size: 1.08rem; line-height: 1.8; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 45px; padding: 0 17px; border-radius: 11px; text-decoration: none; font-size: .9rem; font-weight: 600; transition: transform .16s ease, box-shadow .16s ease, background .16s ease; }
.button:hover { transform: translateY(-2px); }
.button.primary { color: white; background: linear-gradient(135deg, #5798dc, #397bc5); box-shadow: 0 7px 18px rgba(57,123,197,.2); }
.button.primary:hover { box-shadow: 0 10px 22px rgba(57,123,197,.27); }
.button.secondary { color: #4778ad; border: 1px solid rgba(92,143,196,.2); background: rgba(255,255,255,.48); }
.hero-note { display: flex; align-items: center; gap: 10px; margin-top: 53px; color: #8a9bb0; font-size: .82rem; }
.note-mark { color: #6c9fd2; font-size: 1.1rem; }
.welcome-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 20px; }
.mini-card, .project-card { border-radius: 19px; padding: 25px; }
.card-icon, .project-icon { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; color: var(--blue); background: rgba(255,255,255,.62); border: 1px solid rgba(255,255,255,.8); font-size: 1.1rem; }
h2 { margin: 17px 0 8px; font-size: 1.12rem; letter-spacing: -.025em; }
.mini-card p, .project-card p { margin: 0; color: var(--muted); font-size: .91rem; line-height: 1.7; }
.text-link { display: inline-flex; gap: 8px; margin-top: 17px; color: var(--blue-dark); font-size: .86rem; font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.page-heading { margin: 24px 0 34px; }
.page-heading h1 { font-size: clamp(2.5rem, 6vw, 4rem); }
.page-heading .lead { margin-top: 17px; }
.project-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.project-card { min-height: 205px; }
.project-top { display: flex; align-items: center; justify-content: space-between; }
.tag { padding: 6px 9px; border: 1px solid rgba(255,255,255,.75); border-radius: 20px; color: #7890aa; background: rgba(255,255,255,.35); font-size: .7rem; font-weight: 600; }
.project-card h2 { margin-top: 20px; font-size: 1.18rem; }
.quiet-note { margin: 22px 2px 0; color: #899bb0; font-size: .82rem; line-height: 1.6; }
.content-panel { max-width: 760px; padding: clamp(27px, 5vw, 44px); border-radius: 21px; }
.content-panel h2 { margin: 0 0 18px; font-size: 1.4rem; }
.body-copy { color: var(--muted); font-size: .98rem; line-height: 1.85; }
.body-copy:last-child { margin-bottom: 0; }
.contact-card { display: flex; align-items: center; gap: 18px; max-width: 720px; padding: 25px; border-radius: 19px; }
.contact-icon { display: grid; place-items: center; flex: 0 0 46px; height: 46px; border-radius: 14px; color: var(--blue); background: rgba(255,255,255,.65); font-size: 1.25rem; }
.contact-card > div { flex: 1; min-width: 0; }
.contact-label { margin: 0 0 4px; color: #8a9bb0; font-size: .76rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.email-link { color: #326eaf; font-size: 1.02rem; font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.email-link:hover { text-decoration: underline; }
.site-footer { display: flex; justify-content: space-between; gap: 18px; padding: 23px 2px 27px; color: #8a9bb0; font-size: .78rem; }
.site-footer a { color: #6e91b8; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-sparkle { color: #6c9fd2; }
@media (max-width: 650px) {
  .page-shell { width: min(100% - 30px, 1000px); }
  .site-header { min-height: auto; padding: 23px 0; align-items: flex-start; flex-direction: column; gap: 15px; }
  .nav { width: 100%; justify-content: space-between; gap: 0; }
  .nav a { padding: 9px 10px; font-size: .82rem; }
  main { padding-top: 24px; }
  .hero { border-radius: 22px; }
  .welcome-grid, .project-grid { grid-template-columns: 1fr; }
  .hero-note { margin-top: 38px; align-items: flex-start; }
  .contact-card { align-items: flex-start; flex-wrap: wrap; }
  .contact-card .button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
