:root {
  color-scheme: light;
  --bg: #f5f8fc;
  --surface: #ffffff;
  --surface-soft: #eef5fb;
  --text: #172033;
  --muted: #5b6b7f;
  --primary: #0f5b99;
  --primary-strong: #0a4678;
  --secondary: #f4a51c;
  --secondary-strong: #d98900;
  --border: rgba(15, 91, 153, 0.15);
  --shadow: 0 24px 70px rgba(16, 41, 74, 0.12);
  --radius-lg: 28px;
  --radius-md: 20px;
  --container: 1180px;
  --header-h: 82px;
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #07111f;
  --surface: #0f1c2f;
  --surface-soft: #10243d;
  --text: #edf5ff;
  --muted: #b6c5d8;
  --primary: #5db2ff;
  --primary-strong: #92caff;
  --secondary: #ffc65a;
  --secondary-strong: #f4a51c;
  --border: rgba(146, 202, 255, 0.18);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(244, 165, 28, 0.20), transparent 34rem),
    radial-gradient(circle at top right, rgba(15, 91, 153, 0.18), transparent 38rem),
    var(--bg);
  color: var(--text);
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.skip-link {
  position: absolute;
  top: -120px;
  left: 1rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--primary);
  color: white;
  border-radius: 999px;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  border-bottom: 1px solid var(--border);
}

.navbar {
  min-height: var(--header-h);
  width: min(100% - 2rem, var(--container));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 800;
  font-size: 1.1rem;
}

.brand img {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 12px 26px rgba(15, 91, 153, 0.18);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-links a,
.theme-toggle {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 0.7rem 0.9rem;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: 180ms ease;
}

.nav-links a:hover,
.theme-toggle:hover {
  color: var(--text);
  background: var(--surface-soft);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--text);
  border-radius: 999px;
}

.section-pad,
.redirect-strip,
.footer {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  align-items: center;
  gap: 2rem;
  padding-top: clamp(3rem, 7vw, 6rem);
  padding-bottom: clamp(2rem, 5vw, 4rem);
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(2.6rem, 8vw, 5.8rem);
  line-height: 0.94;
  letter-spacing: -0.07em;
  max-width: 850px;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.7rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

h3 {
  margin: 0;
  font-size: 1.35rem;
}

.hero-text,
.section-heading p,
.text-block p,
.cta-card p,
.footer p,
.project-card p,
.value-card p {
  color: var(--muted);
  line-height: 1.75;
}

.hero-text {
  max-width: 730px;
  margin: 1.5rem 0 0;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.9rem 1.15rem;
  border-radius: 16px;
  font-weight: 900;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

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

.btn-primary {
  color: white;
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  box-shadow: 0 18px 36px rgba(15, 91, 153, 0.24);
}

.btn-secondary {
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 14px 34px rgba(16, 41, 74, 0.08);
}

.hero-card {
  position: relative;
  overflow: hidden;
  padding: 1.4rem;
  min-height: 420px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(150deg, color-mix(in srgb, var(--surface) 88%, transparent), color-mix(in srgb, var(--surface-soft) 86%, transparent)),
    var(--surface);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: auto -20% -30% 22%;
  height: 250px;
  background: radial-gradient(circle, rgba(244, 165, 28, 0.26), transparent 68%);
  pointer-events: none;
}

.hero-card img {
  width: min(82%, 300px);
  align-self: center;
  border-radius: 28px;
  box-shadow: 0 30px 60px rgba(15, 91, 153, 0.16);
}

.hero-card div {
  position: relative;
  padding: 1.2rem;
  border-radius: 22px;
  background: color-mix(in srgb, var(--surface) 84%, transparent);
  border: 1px solid var(--border);
}

.hero-card strong {
  display: block;
  font-size: 1.25rem;
  margin-bottom: 0.35rem;
}

.hero-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.redirect-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 0.5rem;
  margin-bottom: 3rem;
}

.redirect-pill {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  transition: transform 180ms ease, border-color 180ms ease;
}

.redirect-pill:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--primary) 40%, var(--border));
}

.redirect-pill span {
  font-weight: 900;
}

.redirect-pill small {
  color: var(--muted);
  text-align: right;
}

.section {
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

.section-heading {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 2rem;
}

.section-heading.compact {
  max-width: 680px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.project-card,
.value-card,
.cta-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  box-shadow: 0 16px 45px rgba(16, 41, 74, 0.08);
}

.project-card {
  padding: clamp(1.2rem, 3vw, 2rem);
}

.featured-card {
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--surface) 94%, transparent), color-mix(in srgb, var(--surface-soft) 90%, transparent)),
    var(--surface);
}

.project-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: var(--surface-soft);
  font-size: 1.7rem;
  margin-bottom: 1rem;
}

.project-card ul {
  margin: 1.2rem 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.7rem;
  color: var(--muted);
}

.project-card li {
  position: relative;
  padding-left: 1.5rem;
  line-height: 1.55;
}

.project-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.58em;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: var(--secondary);
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.5rem;
  font-weight: 900;
  color: var(--primary);
}

.alt-section {
  margin-top: 3rem;
  padding: clamp(3rem, 6vw, 5rem) max(1rem, calc((100% - var(--container)) / 2));
  background: color-mix(in srgb, var(--surface-soft) 70%, transparent);
  border-block: 1px solid var(--border);
}

.split-layout {
  width: min(100% - 2rem, var(--container));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 2rem;
  align-items: start;
}

.text-block {
  display: grid;
  gap: 1rem;
}

.text-block p {
  margin: 0;
  font-size: 1.05rem;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.value-card {
  padding: 1.3rem;
}

.value-card span {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background: var(--surface-soft);
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

.value-card p {
  margin-bottom: 0;
}

.cta-section {
  width: min(100% - 2rem, 940px);
  margin: 3rem auto;
}

.cta-card {
  text-align: center;
  padding: clamp(1.5rem, 5vw, 3.5rem);
  background:
    radial-gradient(circle at left, rgba(244, 165, 28, 0.16), transparent 22rem),
    radial-gradient(circle at right, rgba(15, 91, 153, 0.16), transparent 22rem),
    var(--surface);
}

.cta-card p {
  max-width: 660px;
  margin-inline: auto;
}

.contact-actions {
  justify-content: center;
}

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
}

.footer p {
  margin: 0.3rem 0 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.8rem;
  color: var(--muted);
  font-weight: 800;
}

.footer-links a:hover {
  color: var(--primary);
}

.redirect-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.redirect-box {
  width: min(100%, 560px);
  text-align: center;
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.redirect-box img {
  width: 92px;
  height: 92px;
  object-fit: cover;
  margin: 0 auto 1rem;
  border-radius: 22px;
}

.redirect-box p {
  color: var(--muted);
  line-height: 1.7;
}

@media (max-width: 920px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    inset: var(--header-h) 1rem auto 1rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: var(--surface);
    box-shadow: var(--shadow);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a,
  .theme-toggle {
    width: 100%;
    justify-content: flex-start;
  }

  .hero,
  .split-layout {
    grid-template-columns: 1fr;
  }

  .hero-card {
    min-height: unset;
  }

  .hero-card img {
    width: min(70%, 240px);
    margin-bottom: 1.5rem;
  }

  .values-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  :root {
    --header-h: 74px;
  }

  .brand img {
    width: 44px;
    height: 44px;
  }

  .project-grid,
  .redirect-strip,
  .values-grid {
    grid-template-columns: 1fr;
  }

  .redirect-pill {
    align-items: flex-start;
    flex-direction: column;
  }

  .redirect-pill small {
    text-align: left;
  }

  .btn {
    width: 100%;
  }

  .hero-actions,
  .contact-actions {
    width: 100%;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-links {
    justify-content: flex-start;
  }
}
