:root {
  --bg: #ffffff;
  --bg-soft: rgba(255, 255, 255, 0.92);
  --surface: rgba(255, 255, 255, 0.88);
  --surface-strong: rgba(246, 251, 255, 0.96);
  --line: rgba(18, 164, 84, 0.18);
  --text: #0d3f2b;
  --muted: #46695a;
  --accent: #12a454;
  --accent-strong: #0d8f49;
  --support: #1c56d8;
  --support-soft: #5f86eb;
  --warm: #f4c319;
  --warm-soft: #ffd84d;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
  --radius-lg: 2rem;
  --radius-md: 1.4rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Montserrat", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(24, 184, 90, 0.05), transparent 34%),
    radial-gradient(circle at 85% 22%, rgba(29, 87, 215, 0.04), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, #f6fbff 52%, #eef7fb 100%);
  padding-bottom: 7rem;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.18));
  z-index: -1;
}

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



.page-shell {
  position: relative;
  overflow-x: clip;
  overflow-y: visible;
}

.background-stage {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}

.background-canvas {
  position: absolute;
  inset: -10%;
  width: 120%;
  height: 120%;
  opacity: 0.72;
  transform: scale(1.1) translate3d(0, 0, 0);
  filter: saturate(1) contrast(1.02) brightness(0.96);
  will-change: transform, opacity;
}

.background-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(60px);
  opacity: 0.5;
}

.glow-a {
  top: 10%;
  left: -8%;
  width: 28rem;
  height: 28rem;
  background: rgba(24, 184, 90, 0.18);
}

.glow-b {
  right: -6%;
  bottom: 8%;
  width: 24rem;
  height: 24rem;
  background: rgba(29, 87, 215, 0.18);
}

.background-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(8, 58, 88, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8, 58, 88, 0.05) 1px, transparent 1px);
  background-size: 70px 70px;
  mask-image: linear-gradient(180deg, transparent 5%, rgba(0, 0, 0, 0.9) 30%, rgba(0, 0, 0, 0.9) 75%, transparent 100%);
}

.background-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, transparent 0%, rgba(255, 255, 255, 0.04) 45%, rgba(255, 255, 255, 0.16) 100%);
}

.site-header {
  position: sticky;
  top: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem clamp(1.25rem, 3vw, 3rem);
  z-index: 6;
  backdrop-filter: blur(16px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.7));
  border-bottom: 1px solid rgba(18, 164, 84, 0.08);
}

.brand {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

.site-nav {
  display: flex;
  gap: 1.25rem;
  color: #4a6683;
}

.site-nav a:hover {
  color: var(--text);
}

main {
  padding: 0 clamp(1.25rem, 3vw, 3rem) 5rem;
}

.section {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem 0 4rem;
}

.eyebrow,
.section-tag,
.panel-kicker {
  color: var(--support);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.8rem;
}

.hero h1,
.story-intro h2,
.section-heading h2,
.split-copy h2,
.contact-card h2 {
  margin: 0.8rem 0 1rem;
  max-width: 12ch;
  font-family: "Montserrat", sans-serif;
  font-size: clamp(2rem, 8vw, 4.8rem);
  line-height: 0.95;
  font-weight: 400;
}

.hero-copy,
.story-intro p,
.split-copy p,
.contact-card p,
.section-note {
  max-width: 45rem;
  font-size: clamp(1.02rem, 1.5vw, 1.22rem);
  line-height: 1.75;
  color: var(--muted);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.3rem;
  padding: 0 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

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

.button-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--warm) 100%);
  color: #071511;
  box-shadow: 0 15px 35px rgba(24, 184, 90, 0.2);
}

.button-secondary {
  background: rgba(29, 87, 215, 0.12);
  border-color: rgba(91, 135, 239, 0.3);
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.hero-badges span {
  padding: 0.8rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  color: var(--text);
}

.story {
  padding: 3rem 0 1rem;
}

.story-intro {
  margin-bottom: 2rem;
}

.story-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  align-items: start;
}

.story-panel {
  position: relative;
}

.panel-card,
.content-card,
.timeline article,
.contact-card,
.insight-grid article {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(244, 250, 255, 0.94));
  border: 1px solid var(--line);
  box-shadow: 0 22px 60px rgba(28, 86, 216, 0.08);
  backdrop-filter: blur(14px);
}

.panel-card {
  position: relative;
  top: 0;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  min-height: auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
}

.panel-card h3 {
  margin: 0.75rem 0 1rem;
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  line-height: 1.05;
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
}

.panel-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
  font-size: 1.02rem;
}

.story-meter {
  margin-top: 2rem;
}

.meter-labels {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 0.7rem;
}

.meter-track {
  width: 100%;
  height: 0.9rem;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(28, 86, 216, 0.08);
}

.meter-fill {
  height: 100%;
  width: 22%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent) 0%, var(--support) 62%, var(--warm) 100%);
  transition: width 320ms ease;
}

.story-steps {
  display: grid;
  gap: 2rem;
  padding-bottom: 2.5rem;
  position: relative;
}

.story-steps::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(28, 86, 216, 0.85), rgba(18, 164, 84, 0.2));
}

.story-step {
  min-height: 36vh;
  width: calc(50% - 2.5rem);
  padding: 0;
  border-left: 0;
  opacity: 0.5;
  transform: translateY(30px);
  transition: opacity 220ms ease, transform 220ms ease, border-color 220ms ease;
  position: relative;
}

.story-step.is-active {
  opacity: 1;
  transform: translateY(0);
}

.story-step > * {
  max-width: 42rem;
}

.story-step:nth-child(odd) {
  justify-self: start;
}

.story-step:nth-child(even) {
  justify-self: end;
}

.story-step::before {
  content: "";
  position: absolute;
  top: 1.15rem;
  width: 1rem;
  height: 1rem;
  border-radius: 999px;
  background: #ffffff;
  border: 3px solid var(--support);
  box-shadow: 0 0 0 0.45rem rgba(28, 86, 216, 0.08);
}

.story-step:nth-child(odd)::before {
  right: -3.05rem;
}

.story-step:nth-child(even)::before {
  left: -3.05rem;
}

.story-step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  margin-left: 0;
  border-radius: 999px;
  background: rgba(28, 86, 216, 0.12);
  color: var(--support);
  font-weight: 700;
}

.story-step h3,
.insight-grid h3,
.timeline strong {
  margin: 1rem 0 0.8rem;
  color: var(--accent-strong);
  font-size: 1.25rem;
}

.story-step p,
.insight-grid p,
.timeline p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.story-step p {
  display: inline-block;
  padding: 1.15rem 1.3rem;
  border-radius: 1.4rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(244, 250, 255, 0.92));
  box-shadow: 0 22px 60px rgba(28, 86, 216, 0.08);
  backdrop-filter: blur(10px);
}

.content-card,
.contact-card {
  margin-top: 4rem;
  padding: clamp(1.4rem, 4vw, 3rem);
  border-radius: var(--radius-lg);
}

.projects-showcase {
  margin-top: 4rem;
}

.projects-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.section-heading {
  display: grid;
  gap: 0.6rem;
  margin-bottom: 2rem;
}

.section-heading h2,
.split-copy h2,
.contact-card h2 {
  max-width: 16ch;
  font-size: clamp(2rem, 5vw, 3.3rem);
}

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

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

.projects-featured-grid {
  display: grid;
  gap: 1.2rem;
}

.project-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(244, 250, 255, 0.94));
  border: 1px solid var(--line);
  box-shadow: 0 22px 60px rgba(28, 86, 216, 0.08);
  backdrop-filter: blur(12px);
}

.project-card-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(180deg, #f8fcff 0%, #edf6fb 100%);
}

.project-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-card-body {
  display: grid;
  gap: 0.9rem;
  padding: 1.3rem;
}

.project-card-tag {
  color: var(--support);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.74rem;
  font-weight: 700;
}

.project-card h3 {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.15;
  color: var(--accent-strong);
}

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

.project-card .button {
  width: fit-content;
}

.project-spotlight {
  display: grid;
  grid-template-columns: minmax(280px, 0.92fr) minmax(0, 1.08fr);
  align-items: stretch;
}

.project-spotlight-media {
  min-height: 100%;
  background: linear-gradient(180deg, #f8fcff 0%, #edf6fb 100%);
}

.project-spotlight-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.project-spotlight-body {
  padding: clamp(1.4rem, 3vw, 2rem);
}

.project-spotlight-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.projects-carousel-shell {
  min-width: 0;
  display: grid;
  gap: 1rem;
  padding: 1.35rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(244, 250, 255, 0.9));
  border: 1px solid var(--line);
  box-shadow: 0 22px 60px rgba(28, 86, 216, 0.08);
  backdrop-filter: blur(12px);
}

.projects-carousel-top {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}

.projects-carousel-top .section-note {
  margin: 0.4rem 0 0;
  max-width: 34rem;
}

.projects-carousel-controls {
  display: flex;
  gap: 0.65rem;
}

.carousel-control {
  width: 3rem;
  height: 3rem;
  border: 1px solid rgba(29, 87, 215, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--support);
  font: inherit;
  font-size: 1.08rem;
  font-weight: 700;
  box-shadow: 0 16px 40px rgba(28, 86, 216, 0.12);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.carousel-control:hover {
  transform: translateY(-2px);
  background: rgba(29, 87, 215, 0.08);
  border-color: rgba(29, 87, 215, 0.32);
}

.projects-carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(285px, 285px);
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.45rem;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.projects-carousel::-webkit-scrollbar {
  display: none;
}

.project-carousel-card {
  scroll-snap-align: start;
  min-width: 0;
}

.projects-carousel-footer {
  display: flex;
  justify-content: flex-end;
}

.project-card-media-placeholder {
  display: grid;
  place-items: center;
  color: var(--support);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.insight-grid article {
  padding: 1.4rem;
  border-radius: var(--radius-md);
}

.section-note {
  margin: 1.5rem 0 0;
}

.split-layout {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 1.25rem;
  align-items: start;
  margin-top: 4rem;
}

.timeline {
  display: grid;
  gap: 1rem;
}

.timeline article {
  padding: 1.3rem 1.4rem;
  border-radius: var(--radius-md);
}

.contact-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
  margin-bottom: 2rem;
}

.contact-form {
  display: grid;
  gap: 0.9rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(18, 164, 84, 0.16);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.78);
  color: var(--text);
  padding: 1rem 1.1rem;
  font: inherit;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(70, 105, 90, 0.7);
}

.advisor-widget {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 20;
  display: grid;
  justify-items: end;
  gap: 0.9rem;
}

.advisor-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 3.5rem;
  padding: 0 1.15rem;
  border: 1px solid rgba(18, 164, 84, 0.16);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(244, 250, 255, 0.96));
  color: var(--text);
  box-shadow: 0 22px 60px rgba(28, 86, 216, 0.14);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.advisor-toggle-dot {
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--support) 100%);
  box-shadow: 0 0 0 0.35rem rgba(28, 86, 216, 0.08);
}

.advisor-panel {
  width: min(24rem, calc(100vw - 2rem));
  border-radius: 1.8rem;
  border: 1px solid rgba(18, 164, 84, 0.14);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 250, 255, 0.98));
  box-shadow: 0 30px 90px rgba(28, 86, 216, 0.18);
  backdrop-filter: blur(18px);
  overflow: hidden;
}

.advisor-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 1rem;
  padding: 1.1rem 1.1rem 0.9rem;
  border-bottom: 1px solid rgba(18, 164, 84, 0.08);
}

.advisor-header h2 {
  margin: 0.35rem 0 0;
  font-size: 1.1rem;
  line-height: 1.2;
}

.advisor-eyebrow {
  color: var(--support);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 700;
}

.advisor-close {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.advisor-messages {
  display: grid;
  gap: 0.8rem;
  max-height: 20rem;
  padding: 1rem 1rem 0.6rem;
  overflow: auto;
}

.advisor-message {
  max-width: 88%;
  padding: 0.85rem 0.95rem;
  border-radius: 1.1rem;
  line-height: 1.65;
  font-size: 0.95rem;
}

.advisor-message p {
  margin: 0;
}

.advisor-message-bot {
  background: rgba(28, 86, 216, 0.08);
  color: var(--text);
}

.advisor-message-user {
  justify-self: end;
  background: linear-gradient(135deg, rgba(18, 164, 84, 0.14), rgba(28, 86, 216, 0.12));
  color: var(--text);
}

.advisor-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  padding: 0.2rem 1rem 1rem;
}

.advisor-chip {
  border: 1px solid rgba(28, 86, 216, 0.14);
  background: rgba(255, 255, 255, 0.92);
  color: var(--support);
  border-radius: 999px;
  padding: 0.55rem 0.8rem;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
}

.advisor-form {
  display: grid;
  gap: 0.75rem;
  padding: 0 1rem 1rem;
}

.advisor-form textarea {
  width: 100%;
  resize: none;
  border: 1px solid rgba(18, 164, 84, 0.16);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
  padding: 0.95rem 1rem;
  font: inherit;
}

.advisor-send {
  width: 100%;
}

.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;
}

@media (max-width: 980px) {
  .story-grid,
  .split-layout,
  .contact-card,
  .insight-grid,
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .projects-featured-grid {
    grid-template-columns: 1fr;
  }

  .projects-header,
  .projects-carousel-top {
    flex-direction: column;
    align-items: start;
  }

  .projects-header {
    grid-template-columns: 1fr;
  }

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

  .panel-card {
    position: relative;
    top: 0;
    min-height: auto;
    gap: 1.5rem;
  }

  .story-step {
    min-height: auto;
    padding: 0;
    width: 100%;
    justify-self: stretch;
  }

  .story-step:nth-child(even),
  .story-step:nth-child(odd) {
    justify-self: stretch;
  }

  .story-steps::before {
    left: 1.5rem;
    transform: none;
  }

  .story-step::before {
    left: 1.05rem;
    right: auto;
  }

  .story-step span,
  .story-step h3,
  .story-step p {
    margin-left: 3.2rem;
  }
}

@media (max-width: 760px) {
  .site-header {
    flex-direction: column;
    gap: 0.8rem;
  }

  .site-nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .advisor-widget {
    right: 0.8rem;
    bottom: 0.8rem;
    left: 0.8rem;
    justify-items: stretch;
  }

  .advisor-panel,
  .advisor-toggle {
    width: 100%;
  }

  .projects-carousel {
    grid-auto-columns: minmax(82vw, 82vw);
  }

  .projects-header > .button,
  .projects-carousel-footer .button {
    width: 100%;
  }

  .projects-carousel-footer {
    justify-content: stretch;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: 5rem;
  }

  .hero h1 {
    max-width: 8ch;
  }

  .background-canvas {
    inset: -20%;
    width: 140%;
    height: 140%;
  }

  .hero-badges {
    flex-direction: column;
  }
}
