/* Personal Site — modern responsive refresh */
:root {
  --primary: #5c8e9c;
  --primary-dark: #3d6c79;
  --accent: #88b4c0;
  --ink: #2a2f33;
  --muted: #6c7680;
  --line: #e3e6ea;
  --bg: #f6f8f9;
  --card: #ffffff;
  --radius: 12px;
  --shadow:
    0 2px 4px rgba(60, 80, 90, 0.05), 0 12px 32px rgba(60, 80, 90, 0.08);
  --maxw: 1140px;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: var(--primary);
  text-decoration: none;
}
a:hover,
a:focus-visible {
  text-decoration: underline;
}
:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}
h1,
h2,
h3 {
  line-height: 1.2;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--ink);
  color: #fff;
  padding: 8px 14px;
  border-radius: 6px;
  z-index: 100;
}
.skip-link:focus {
  left: 8px;
}

.wrapper {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 16px;
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
}
.logo img {
  max-height: 56px;
  width: auto;
}
.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.nav-list a {
  display: block;
  padding: 10px 14px;
  color: var(--ink);
  font-weight: 600;
  border-radius: 8px;
}
.nav-list a:hover,
.nav-list a:focus-visible {
  background: #e7eef1;
  text-decoration: none;
}
.nav-list a[aria-current="page"] {
  background: var(--primary);
  color: #fff;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  width: 44px;
  height: 44px;
  border-radius: 8px;
  cursor: pointer;
}
.nav-icon,
.nav-icon::before,
.nav-icon::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  margin: 0 auto;
  position: relative;
}
.nav-icon::before,
.nav-icon::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-icon::before {
  top: -6px;
}
.nav-icon::after {
  top: 6px;
}

/* Hero */
.hero {
  display: grid;
  gap: 24px;
  align-items: center;
  grid-template-columns: 1fr;
  background: linear-gradient(135deg, #ffffff 0%, #e9f1f4 100%);
  border: 1px solid var(--line);
  padding: clamp(28px, 5vw, 56px);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin: 8px 0 40px;
}
.hero h1 {
  font-size: clamp(1.875rem, 3vw + 1rem, 3rem);
  margin: 0 0 12px;
  color: var(--ink);
}
.hero .eyebrow {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}
.hero p {
  color: var(--muted);
  margin: 0 0 16px;
  max-width: 60ch;
}
.hero-image img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.btn {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  margin: 4px 8px 4px 0;
}
.btn:hover,
.btn:focus-visible {
  background: var(--primary-dark);
  text-decoration: none;
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--primary-dark);
  border: 2px solid var(--primary);
}
.btn-ghost:hover,
.btn-ghost:focus-visible {
  background: var(--primary);
  color: #fff;
}
.btn-on-dark {
  background: #fff;
  color: var(--primary-dark);
}
.btn-on-dark:hover,
.btn-on-dark:focus-visible {
  background: #f0f6f8;
}

.section {
  margin: 56px 0;
}
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 32px;
}
.section-head h2 {
  font-size: clamp(1.5rem, 2vw + 1rem, 2rem);
  margin: 0 0 8px;
  color: var(--ink);
}
.section-head p {
  color: var(--muted);
  margin: 0;
}

.stats {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  margin: 24px 0 48px;
}
.stat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  box-shadow: var(--shadow);
}
.stat strong {
  display: block;
  font-size: 1.875rem;
  color: var(--primary-dark);
}
.stat span {
  color: var(--muted);
  font-size: 0.9rem;
}

.services,
.features {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.service,
.feature {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.service:hover,
.feature:hover {
  transform: translateY(-3px);
}
.service img,
.feature img {
  margin-bottom: 12px;
}
.service h3,
.feature h3 {
  margin: 0 0 8px;
  font-size: 1.2rem;
  color: var(--primary-dark);
}
.service p,
.feature p {
  margin: 0;
  color: var(--muted);
}

.gallery {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.project {
  margin: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.project img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}
.project figcaption {
  padding: 14px 18px;
}
.project figcaption strong {
  display: block;
  color: var(--ink);
}
.project figcaption span {
  color: var(--muted);
  font-size: 0.9rem;
}

.split {
  display: grid;
  gap: 32px;
  align-items: center;
  grid-template-columns: 1fr;
}
.split ul {
  padding-left: 20px;
  color: var(--muted);
}
.split ul li {
  margin-bottom: 8px;
}
.split img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.testimonials {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.testimonial {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  margin: 0;
}
.testimonial blockquote {
  margin: 0 0 12px;
  font-style: italic;
  color: var(--ink);
}
.testimonial cite {
  font-style: normal;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.faq details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 12px;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq details[open] {
  box-shadow: var(--shadow);
}
.faq p {
  color: var(--muted);
  margin: 12px 0 0;
}

.cta-banner {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff;
  padding: clamp(28px, 4vw, 48px);
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow);
}
.cta-banner h2 {
  margin: 0 0 8px;
  color: #fff;
}
.cta-banner p {
  color: #e6f1f4;
  margin: 0 0 16px;
}

.site-footer {
  padding: 24px 0 40px;
  color: var(--muted);
  font-size: 14px;
  border-top: 1px solid var(--line);
  margin-top: 24px;
  text-align: center;
}
.site-footer a {
  color: var(--primary);
}

@media (min-width: 820px) {
  .hero {
    grid-template-columns: 1.1fr 1fr;
  }
  .split {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 720px) {
  .nav-toggle {
    display: inline-block;
    margin-left: auto;
    order: 2;
  }
  .site-nav {
    flex-direction: column;
    align-items: stretch;
  }
  .nav-list {
    display: none;
    flex-direction: column;
    width: 100%;
  }
  .site-nav[data-open="true"] .nav-list {
    display: flex;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #ecf2f5;
    --muted: #9aa6ae;
    --line: #243038;
    --bg: #0f1518;
    --card: #18222a;
  }
  .hero {
    background: linear-gradient(135deg, #18222a 0%, #0f1518 100%);
  }
  .nav-list a:hover,
  .nav-list a:focus-visible {
    background: #243038;
  }
}
