:root {
  --bg: #eef2f6;
  --ink: #0d1a26;
  --muted: #4e5f73;
  --panel: rgba(255, 255, 255, 0.8);
  --line: rgba(13, 26, 38, 0.12);
  --accent: #0f7669;
  --accent-2: #c25d2f;
  --accent-3: #2d67cf;
  --radius: 22px;
  --shadow: 0 18px 50px rgba(7, 19, 40, 0.14);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: linear-gradient(145deg, #f8f8f4 0%, #edf2f8 55%, #f3f8fd 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: inherit;
}

.page {
  width: min(1160px, 92vw);
  margin: 0 auto;
}

.intro {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: radial-gradient(circle at 20% 0%, #f7e9d4 0%, #0f1a2b 70%);
  color: #f3f6fb;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 1.5rem;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

.intro.hide {
  opacity: 0;
  visibility: hidden;
}

.intro h1 {
  margin: 0.4rem 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.8rem, 4vw, 3.1rem);
  max-width: 18ch;
}

.intro-kicker,
.intro-sub {
  margin: 0;
  opacity: 0.9;
}

.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

.halo {
  position: absolute;
  border-radius: 50%;
  filter: blur(42px);
  opacity: 0.45;
}

.halo-1 {
  width: 26rem;
  height: 26rem;
  left: -8rem;
  top: -7rem;
  background: #ffca88;
}

.halo-2 {
  width: 24rem;
  height: 24rem;
  right: -5rem;
  top: 25%;
  background: #8ee5d4;
}

.halo-3 {
  width: 22rem;
  height: 22rem;
  left: 35%;
  bottom: -6rem;
  background: #9fbdfd;
}

.mesh {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.24;
  mask-image: radial-gradient(circle at 50% 35%, black 34%, transparent 74%);
}

.cursor-glow {
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(15, 118, 105, 0.2) 0%, rgba(15, 118, 105, 0.02) 65%, transparent 80%);
}

.topbar {
  width: min(1160px, 92vw);
  margin: 1.1rem auto 0;
  padding: 0.7rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  text-decoration: none;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #34c4af);
  box-shadow: 0 0 0 6px rgba(15, 118, 105, 0.12);
}

.nav {
  display: flex;
  gap: 1.2rem;
}

.nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.93rem;
}

.btn {
  border: 1px solid transparent;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.75rem 1.15rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(13, 26, 38, 0.24);
}

.btn.small {
  padding: 0.52rem 0.95rem;
  font-size: 0.88rem;
}

.btn.ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

section {
  margin: 4.8rem 0;
}

section[id] {
  scroll-margin-top: 88px;
}

.kicker {
  margin: 0 0 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-size: 0.79rem;
  color: var(--accent-2);
  font-weight: 700;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 1.4rem;
}

.hero h2,
.section-head h3 {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.85rem, 4.4vw, 3.6rem);
  line-height: 1.02;
}

.hero h2 span {
  color: var(--accent);
}

.lead {
  margin: 1rem 0 0;
  max-width: 64ch;
  color: var(--muted);
  line-height: 1.66;
}

.hero-actions {
  margin-top: 1.4rem;
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.hero-side {
  display: grid;
  gap: 0.8rem;
}

.headshot-wrap {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.75rem;
  box-shadow: var(--shadow);
}

.headshot-wrap img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: 14px;
  display: block;
  border: 1px solid rgba(13, 26, 38, 0.12);
}

.headshot-fallback {
  display: none;
  width: 100%;
  aspect-ratio: 4/5;
  border-radius: 14px;
  border: 1px solid rgba(13, 26, 38, 0.12);
  align-items: center;
  justify-content: center;
  font-size: 2.1rem;
  font-weight: 700;
  background: linear-gradient(135deg, #f7ce93, #9ed9d0);
}

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

.quick-metrics article {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.7rem;
  text-align: center;
}

.metric-val {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent);
}

.metric-key {
  margin: 0.24rem 0 0;
  color: var(--muted);
  font-size: 0.73rem;
}

.identity-strip {
  margin-top: 1.2rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.identity-strip > div {
  padding: 0.95rem 1.05rem;
  border-right: 1px solid var(--line);
}

.identity-strip > div:last-child {
  border-right: 0;
}

.label {
  margin: 0;
  font-size: 0.73rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.value {
  margin: 0.35rem 0 0;
  font-weight: 700;
  font-size: 0.9rem;
}

.section-head h3 {
  font-size: clamp(1.45rem, 3.5vw, 2.5rem);
  max-width: 24ch;
}

.subhead {
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-weight: 600;
}

.timeline-card {
  margin-top: 1rem;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem 1rem 1rem 1.4rem;
  box-shadow: var(--shadow);
}

.timeline-card ul {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.65rem;
}

.timeline-card li {
  line-height: 1.56;
  color: #223244;
}

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

.journey-card {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.95rem;
  box-shadow: var(--shadow);
}

.job-meta {
  margin: 0;
  color: var(--accent-2);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.journey-card h4 {
  margin: 0.35rem 0 0;
  font-size: 1.02rem;
}

.job-sub {
  margin: 0.4rem 0 0.55rem;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.88rem;
}

.journey-card ul {
  margin: 0;
  padding-left: 1.05rem;
  display: grid;
  gap: 0.42rem;
}

.journey-card li {
  color: #223244;
  font-size: 0.9rem;
  line-height: 1.45;
}

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

.metric {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(15, 118, 105, 0.2);
  border-radius: 16px;
  padding: 0.95rem;
  box-shadow: var(--shadow);
  transform-style: preserve-3d;
}

.metric-number {
  margin: 0;
  font-size: clamp(1.45rem, 3.5vw, 2rem);
  color: var(--accent);
  font-weight: 700;
}

.metric-label {
  margin: 0.45rem 0 0;
  color: var(--muted);
  line-height: 1.5;
  font-size: 0.92rem;
}

.story-layout {
  margin-top: 1.2rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 1.1rem;
  align-items: start;
}

.story-step {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem;
  margin-bottom: 0.75rem;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.story-step.active {
  transform: translateX(6px);
  border-color: rgba(15, 118, 105, 0.42);
}

.step-tag {
  margin: 0;
  color: var(--accent-3);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.story-step h4 {
  margin: 0.38rem 0 0;
  font-size: 1.08rem;
}

.story-step p {
  margin: 0.44rem 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.story-visual {
  position: sticky;
  top: 94px;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.85), rgba(234, 248, 245, 0.85));
  border: 1px solid rgba(15, 118, 105, 0.24);
  border-radius: 18px;
  padding: 1rem;
  box-shadow: var(--shadow);
}

.panel-kicker {
  margin: 0;
  color: var(--accent-2);
  text-transform: uppercase;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.story-visual h4 {
  margin: 0.4rem 0 0;
  font-size: 1.08rem;
}

.story-visual p {
  margin: 0.48rem 0 0;
  color: var(--muted);
  line-height: 1.56;
}

.progress-shell {
  margin-top: 0.75rem;
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(13, 26, 38, 0.09);
}

.progress-fill {
  display: block;
  height: 100%;
  width: 34%;
  background: linear-gradient(90deg, var(--accent), #4ad6c2);
  transition: width 0.4s ease;
}

.incident-log {
  margin-top: 0.8rem;
  border-top: 1px solid var(--line);
  padding-top: 0.6rem;
  display: grid;
  gap: 0.3rem;
}

.incident-log p {
  margin: 0;
  font-size: 0.85rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: #34516e;
}

.role-switch {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.role-btn {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  padding: 0.55rem 0.85rem;
  font-weight: 700;
  cursor: pointer;
}

.role-btn.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.role-description {
  margin: 0.78rem 0 0;
  color: var(--muted);
  max-width: 78ch;
}

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

.kpi-card {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(15, 118, 105, 0.2);
  border-radius: 16px;
  padding: 0.95rem;
  box-shadow: var(--shadow);
  transform-style: preserve-3d;
}

.kpi-label {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.kpi-value {
  margin: 0.35rem 0 0;
  font-size: clamp(1.45rem, 3.5vw, 2.1rem);
  font-weight: 700;
  color: var(--accent);
}

.sparkline {
  margin-top: 0.35rem;
  width: 100%;
  height: 52px;
}

.sparkline polyline {
  fill: none;
  stroke: var(--accent-3);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

.case-card {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem;
  box-shadow: var(--shadow);
}

.case-meta {
  margin: 0;
  font-size: 0.74rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent-2);
  font-weight: 700;
}

.case-card h4 {
  margin: 0.5rem 0 1rem;
  font-size: 1.02rem;
  line-height: 1.45;
}

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

.console {
  background: linear-gradient(145deg, rgba(13, 26, 38, 0.92), rgba(24, 40, 62, 0.93));
  color: #d5dfeb;
  border-radius: 16px;
  border: 1px solid rgba(92, 132, 178, 0.28);
  padding: 0.95rem;
  box-shadow: 0 16px 40px rgba(6, 15, 28, 0.34);
}

.console-title {
  margin: 0;
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: #8ec4ff;
}

.feed {
  margin: 0.7rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.42rem;
  font-size: 0.87rem;
}

.feed li {
  line-height: 1.4;
}

.sev {
  font-size: 0.68rem;
  padding: 0.16rem 0.36rem;
  border-radius: 999px;
  margin-right: 0.32rem;
  font-weight: 700;
}

.sev.high {
  background: rgba(231, 92, 66, 0.25);
  color: #ffcabf;
}

.sev.med {
  background: rgba(229, 173, 61, 0.24);
  color: #ffe0a8;
}

.sev.low {
  background: rgba(61, 164, 229, 0.22);
  color: #c8ebff;
}

.sev.ok {
  background: rgba(74, 202, 150, 0.25);
  color: #cffde9;
}

.heatmap {
  margin-top: 0.7rem;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.3rem;
}

.heatmap span {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 6px;
}

.heatmap .h1 {
  background: #1f3d5f;
}

.heatmap .h2 {
  background: #2a4f79;
}

.heatmap .h3 {
  background: #356393;
}

.heatmap .h4 {
  background: #4f7faa;
}

.heatmap .h5 {
  background: #73a2ce;
}

.heat-legend {
  margin: 0.65rem 0 0;
  font-size: 0.8rem;
  color: #aac3dd;
}

.strength-list {
  margin-top: 0.7rem;
  display: grid;
  gap: 0.5rem;
  font-size: 0.85rem;
}

.strength-list p {
  margin: 0;
  border: 1px solid rgba(159, 190, 223, 0.28);
  border-radius: 8px;
  padding: 0.45rem;
  background: rgba(138, 172, 209, 0.08);
}

.testimonial-shell {
  margin-top: 1rem;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 1rem;
}

.testimonial {
  display: none;
}

.testimonial.active {
  display: block;
}

.testimonial p {
  margin: 0;
  line-height: 1.6;
  font-size: 1.04rem;
}

.testimonial span {
  margin-top: 0.6rem;
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.testimonial-nav {
  margin-top: 0.8rem;
  display: flex;
  gap: 0.35rem;
}

.t-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 0;
  background: rgba(13, 26, 38, 0.2);
  cursor: pointer;
}

.t-dot.active {
  background: var(--accent);
}

.trust-strip {
  margin-top: 0.9rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.trust-strip span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 0.72rem;
  font-size: 0.82rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.74);
}

.timeline {
  margin-top: 1rem;
  display: grid;
  gap: 0.65rem;
}

.timeline article {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.9rem;
}

.time {
  margin: 0;
  color: var(--accent-2);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.timeline h4 {
  margin: 0.45rem 0 0;
  font-size: 1.03rem;
}

.timeline p {
  margin: 0.45rem 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.chip-grid {
  margin-top: 1rem;
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.chip-grid span {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 0.7rem;
  font-size: 0.82rem;
  font-weight: 700;
}

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

.connect-item {
  min-height: 72px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.connect-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(13, 26, 38, 0.16);
}

.footer {
  padding: 2rem 1rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
}

.modal.open {
  display: block;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 18, 34, 0.7);
}

.modal-card {
  position: relative;
  width: min(700px, 92vw);
  margin: 8vh auto 0;
  background: #f7fbff;
  border-radius: 18px;
  border: 1px solid rgba(13, 26, 38, 0.18);
  padding: 1.1rem;
  box-shadow: 0 30px 70px rgba(7, 19, 40, 0.32);
}

.modal-close {
  position: absolute;
  right: 0.8rem;
  top: 0.7rem;
  border: 0;
  background: transparent;
  font-size: 1.2rem;
  cursor: pointer;
}

.modal-card h4 {
  margin: 0.35rem 0 0;
  font-size: 1.2rem;
}

.modal-card p {
  margin: 0.55rem 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.modal-list {
  margin-top: 0.8rem;
  display: grid;
  gap: 0.45rem;
}

.modal-list p {
  margin: 0;
  border: 1px solid var(--line);
  background: #fff;
  padding: 0.52rem;
  border-radius: 8px;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .nav {
    display: none;
  }

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

  .hero-side {
    max-width: 420px;
  }

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

  .identity-strip > div:nth-child(2n) {
    border-right: 0;
  }

  .kpi-grid,
  .journey-grid,
  .impact-grid,
  .connect-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .story-visual {
    position: relative;
    top: 0;
  }
}

@media (max-width: 640px) {
  section {
    margin: 3.6rem 0;
  }

  .identity-strip,
  .quick-metrics,
  .kpi-grid,
  .journey-grid,
  .impact-grid,
  .connect-grid {
    grid-template-columns: 1fr;
  }

  .identity-strip > div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .identity-strip > div:last-child {
    border-bottom: 0;
  }

  .hero h2,
  .section-head h3 {
    max-width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .btn,
  .story-step,
  .progress-fill {
    transition: none;
  }

  .intro {
    display: none;
  }

  .cursor-glow {
    display: none;
  }
}
