:root {
  --bg: #f7fafc;
  --surface: #ffffff;
  --text: #102033;
  --muted: #506072;
  --brand: #0b2d4a;
  --brand-alt: #59b8ea;
  --line: #d7e4ee;
  --radius: 18px;
  --shadow: 0 16px 42px rgba(16, 41, 65, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 88% -8%, rgba(89, 184, 234, 0.2), transparent 46%),
    radial-gradient(circle at 8% 58%, rgba(11, 45, 74, 0.08), transparent 34%),
    var(--bg);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--brand-alt);
}

.container {
  width: min(1100px, 90vw);
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  background: #fff;
  border: 2px solid var(--brand);
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  z-index: 99;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(247, 250, 252, 0.88);
  border-bottom: 1px solid rgba(16, 41, 65, 0.1);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
}

.brand img {
  width: 150px;
  height: auto;
}

.nav-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 1.15rem;
}

.nav-list a {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
}

.nav-list a:hover,
.nav-list a:focus-visible {
  color: var(--brand-alt);
}

.hero {
  position: relative;
  padding: clamp(4.5rem, 8vw, 8rem) 0 clamp(3.5rem, 6vw, 5rem);
  overflow: clip;
}

.hero-grid {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 0.75rem;
  text-transform: uppercase;
  font-size: 0.77rem;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: var(--brand-alt);
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

h1 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 6vw, 4.25rem);
}

.lead {
  margin: 0;
  max-width: 64ch;
  color: var(--muted);
  font-size: clamp(1.03rem, 2.2vw, 1.2rem);
}

.hero-actions {
  margin-top: 1.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.7rem 1.1rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #0b2d4a, #174f7a);
  box-shadow: 0 10px 24px rgba(11, 45, 74, 0.2);
}

.btn-ghost {
  color: var(--brand);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.9);
}

.section {
  padding: clamp(3rem, 7vw, 5rem) 0;
}

.section h2 {
  font-size: clamp(1.5rem, 4vw, 2.45rem);
  margin-bottom: 0.85rem;
}

.section p {
  margin: 0;
  color: var(--muted);
  max-width: 70ch;
}

.section-highlight {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(235, 246, 252, 0.95));
  border-top: 1px solid rgba(16, 41, 65, 0.08);
  border-bottom: 1px solid rgba(16, 41, 65, 0.08);
}

.project-card {
  margin-top: 1rem;
  padding: clamp(1.2rem, 2.8vw, 2rem);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.project-card h3 {
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  margin-bottom: 0.6rem;
}

.project-card p {
  margin-bottom: 1rem;
}

.project-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  align-items: stretch;
}

.project-copy {
  display: flex;
  flex-direction: column;
}

.project-points {
  margin: 0 0 1.2rem;
  padding-left: 1.1rem;
  color: var(--muted);
}

.project-media {
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #e7edf2;
  overflow: hidden;
}

.project-media img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: contain;
  object-position: center;
  background: #e7edf2;
}

.site-footer {
  border-top: 1px solid rgba(15, 35, 55, 0.1);
  background: rgba(255, 255, 255, 0.75);
}

.footer-wrap {
  min-height: 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.footer-wrap p {
  margin: 0;
  color: #5a6873;
}

.hero-glow {
  position: absolute;
  right: clamp(1rem, 6vw, 4rem);
  top: clamp(2rem, 7vw, 4.5rem);
  width: clamp(220px, 30vw, 360px);
  aspect-ratio: 1 / 1.05;
  background: linear-gradient(160deg, rgba(121, 196, 238, 0.2), rgba(89, 184, 234, 0.1));
  clip-path: polygon(50% 0%, 98% 36%, 90% 36%, 90% 98%, 10% 98%, 10% 36%, 2% 36%);
  border-radius: 20px;
  filter: blur(8px);
  opacity: 0.58;
  pointer-events: none;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 550ms ease, transform 550ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 760px) {
  .nav-wrap {
    flex-direction: column;
    justify-content: center;
    padding: 0.75rem 0;
    gap: 0.6rem;
  }

  .nav-list {
    gap: 0.85rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .footer-wrap {
    align-items: flex-start;
  }

  .project-layout {
    grid-template-columns: 1fr;
  }

  .project-media img {
    height: auto;
    min-height: 0;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}
