.legal a {
  color: var(--accent);
  text-decoration: underline;
}

.legal__open {
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  padding: 0.6rem 1.5rem;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.7rem;
}

.legal-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.7);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 80;
}

.legal-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.legal-modal__backdrop {
  position: absolute;
  inset: 0;
}

.legal-modal__content {
  position: relative;
  max-width: 640px;
  width: 90%;
  background: var(--panel);
  border-radius: 24px;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: var(--shadow);
  z-index: 81;
}

.legal-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 1.1rem;
  cursor: pointer;
}
:root {
  --bg: #040410;
  --panel: rgba(12, 14, 26, 0.95);
  --text: #fefefe;
  --muted: rgba(255, 255, 255, 0.7);
  --accent: #6efce3;
  --accent-2: #ff5df5;
  --border: rgba(255, 255, 255, 0.12);
  --radius: 28px;
  --shadow: 0 25px 80px rgba(6, 9, 31, 0.65);
  font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  background: radial-gradient(circle at top, #0f1233, #040410 65%);
  color: var(--text);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
}

.grid-wrap {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 3rem 2rem;
  background: rgba(8, 10, 24, 0.9);
  border-right: 1px solid var(--border);
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 1.5rem;
  overflow: hidden;
}

.logo {
  width: auto;
  height: 90px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: 0.2em;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #040410;
  text-decoration: none;
}

.logo--img {
  padding: 0;
  background: transparent;
}

.logo--img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 18px;
  display: block;
}

.sidebar__toggle {
  display: none;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: transparent;
  color: var(--text);
  border-radius: 999px;
  padding: 0.45rem 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.75rem;
  cursor: pointer;
}

.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  overflow-y: auto;
  padding-right: 0.5rem;
}

.sidebar nav a {
  position: relative;
  padding-left: 1.5rem;
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.9rem;
  transition: color 0.2s ease, transform 0.2s ease;
}

.sidebar nav a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-50%);
  transition: background 0.2s ease, height 0.2s ease;
}

.sidebar nav a:hover {
  color: var(--accent);
  transform: translateX(4px);
}

.sidebar nav a.is-active {
  color: var(--text);
  transform: translateX(6px);
}

.sidebar nav a.is-active::before {
  background: var(--accent);
  height: 22px;
  border-radius: 999px;
}

.social {
  display: grid;
  gap: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.social a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  padding: 0.65rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.55rem;
  align-items: center;
  transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.social__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  transition: background 0.2s ease, transform 0.2s ease;
}

.social__arrow {
  opacity: 0.6;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.social a:hover {
  color: var(--accent);
  transform: translateX(4px);
  border-color: rgba(110, 252, 227, 0.45);
  background: rgba(110, 252, 227, 0.05);
}

.social a:hover .social__dot {
  background: var(--accent);
  transform: scale(1.3);
}

.social a:hover .social__arrow {
  transform: translateX(2px);
  opacity: 1;
}

main {
  padding: 3rem clamp(2rem, 6vw, 5rem);
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.panel {
  background: var(--panel);
  border-radius: var(--radius);
  padding: clamp(2rem, 4vw, 4rem);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.pulse {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  align-items: center;
}

.chip {
  display: inline-block;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.chip--outline {
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: transparent;
}

.pulse h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  margin: 1rem 0;
}

.pulse__images figure {
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.pulse__images img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}

.pulse__images figcaption {
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1.5rem 0;
}

.btn {
  border-radius: 999px;
  padding: 0.85rem 1.9rem;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid transparent;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.btn.primary {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #03030a;
}

.btn.ghost {
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--text);
}

.stats {
  display: flex;
  gap: 2rem;
  margin: 0;
}

.stats dt {
  font-size: 2rem;
  font-weight: 600;
}

.stats dd {
  margin: 0;
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}

.grid--three {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.grid--three article {
  min-height: 220px;
}

.systems__grid,
.stories__grid,
.focus__grid,
.projects__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.systems__grid article,
.stories__grid article,
.focus__grid article,
.projects__grid article {
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1.5rem;
  border-radius: 20px;
  min-height: 180px;
  background: rgba(255, 255, 255, 0.02);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.projects__intro {
  margin-top: 0.75rem;
  color: var(--muted);
}

.projects__links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.projects__links article {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  min-height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.projects__links article a {
  margin-top: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: var(--accent);
  text-decoration: none;
}

.projects__cta {
  margin-top: 1.5rem;
  border-color: rgba(110, 252, 227, 0.4);
  color: #02161b;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  box-shadow: 0 15px 40px rgba(32, 198, 183, 0.35);
  border-radius: 999px;
  padding: 0.9rem 2rem;
  text-decoration: none;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.focus__grid article:hover,
.grid--three article:hover,
.stories__grid article:hover,
.projects__grid article:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 80px rgba(32, 198, 183, 0.2);
  border-color: rgba(32, 198, 183, 0.3);
}

.focus__grid ul {
  margin: 1rem 0 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.focus__grid li {
  margin-bottom: 0.35rem;
}

.stories__media iframe,
.projects__media iframe {
  border: none;
  width: 100%;
  border-radius: 20px;
  margin-top: 2rem;
  aspect-ratio: 16 / 9;
}

.recognition__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.recognition__grid figure {
  margin: 0;
}

.recognition__grid img {
  border-radius: 18px;
  width: 100%;
  height: 260px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.field__strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.field__strip figure {
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.field__strip img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}

.field__strip figcaption {
  padding: 0.8rem 1rem;
  font-size: 0.85rem;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.2);
}

.journey header {
  margin-bottom: 2rem;
}

.journey__timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  position: relative;
}

.journey__timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0.8rem;
  width: 2px;
  background: rgba(255, 255, 255, 0.1);
}

.journey__timeline article {
  position: relative;
  padding: 1.5rem 1.5rem 1.5rem 2.4rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
  min-height: 200px;
}

.journey__timeline article::before {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background: #040410;
  left: 0.4rem;
  top: 1.75rem;
}

.journey__timeline .year {
  font-size: 0.85rem;
  letter-spacing: 0.3em;
  color: var(--accent-soft);
  text-transform: uppercase;
}

.consult__content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  align-items: center;
}

.consult__blurb {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  padding: 2rem;
  background: rgba(10, 15, 40, 0.6);
}

.consult__highlights {
  margin: 1.5rem 0 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.consult__booking {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.02);
  min-height: 720px;
}

footer {
  text-align: center;
  padding: 2rem 0;
  color: var(--muted);
}

@media (max-width: 900px) {
  .grid-wrap {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    border-bottom: 1px solid var(--border);
    grid-template-rows: auto auto auto;
    overflow: visible;
  }

  main {
    padding: 2rem;
  }

  .sidebar__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .sidebar nav {
    max-height: 0;
    overflow: hidden;
    padding: 0;
    margin: 0;
    border-radius: var(--radius);
    background: rgba(8, 10, 24, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow);
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
  }

  .sidebar nav.is-open {
    max-height: 420px;
    opacity: 1;
    padding: 1.25rem;
    margin-top: 0.5rem;
  }

  .sidebar nav a {
    padding: 0.6rem 0 0.6rem 1.5rem;
  }
}

@media (max-width: 640px) {
  .pulse__images img {
    height: 220px;
  }

  .stats {
    flex-direction: column;
  }

  .cta {
    flex-direction: column;
  }

  .journey__timeline::before {
    display: none;
  }
}

