/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --color-bg: #ffffff;
  --color-bg-subtle: #f7f8fa;
  --color-bg-inset: #f2f3f6;
  --color-text: #10131a;
  --color-text-muted: #5b6472;
  --color-text-faint: #8991a0;
  --color-border: #e6e8ec;
  --color-border-strong: #d3d7de;
  --color-accent: #4338ca;
  --color-accent-hover: #362d9e;
  --color-accent-soft: #eef0fd;
  --color-accent-soft-border: #d9dcfb;

  --font-display: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;

  --container-width: 1120px;
  --nav-height: 75px;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  --shadow-sm: 0 1px 2px rgba(16, 19, 26, 0.04);
  --shadow-md: 0 4px 16px rgba(16, 19, 26, 0.06);
  --shadow-lg: 0 12px 40px rgba(16, 19, 26, 0.08);
}

/* ============================================================
   RESET
   ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 32px;
}

/* ============================================================
   TYPE SCALE
   ============================================================ */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  font-weight: 600;
  display: inline-block;
  margin-bottom: 16px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

h1 { font-size: clamp(2.4rem, 5vw, 3.4rem); line-height: 1.1; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); line-height: 1.2; }
h3 { font-size: 1.25rem; line-height: 1.35; }

p { color: var(--color-text-muted); }

.section-head {
  max-width: 620px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-head p { margin-top: 14px; font-size: 1.05rem; }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--color-border);
  z-index: 1000;
  display: flex;
  align-items: center;
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.nav-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color 0.15s ease;
  position: relative;
}
.nav-links a:hover { color: var(--color-text); }
.nav-links a.active { color: var(--color-text); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -22px;
  height: 2px;
  background: var(--color-accent);
}
.nav-cta {
  background: var(--color-text);
  color: #fff !important;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600 !important;
}
.nav-cta:hover { background: var(--color-accent); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
}
.hamburger span {
  width: 22px; height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 760px) {
  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 32px 20px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links a { width: 100%; padding: 14px 0; border-bottom: 1px solid var(--color-border); }
  .nav-links a.active::after { display: none; }
  .hamburger { display: flex; }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: all 0.15s ease;
}
.btn-primary {
  background: var(--color-accent);
  color: #fff;
}
.btn-primary:hover { background: var(--color-accent-hover); transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border-strong);
}
.btn-outline:hover { border-color: var(--color-text); background: var(--color-bg-subtle); }
.btn-sm { padding: 9px 16px; font-size: 0.88rem; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-height) + 40px) 32px 80px;
  position: relative;
}
.hero-avatar {
  width: 180px; height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--color-accent-soft-border);
  margin-bottom: 32px;
}
.hero h1 { max-width: 700px; }
.hero .tagline {
  color: var(--color-text);
  font-weight: 700;
}
.hero p.lede {
  max-width: 620px;
  margin: 20px auto 36px;
  font-size: 1.08rem;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--color-text-faint);
  animation: bob 2s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 6px); }
}

/* ============================================================
   ABOUT
   ============================================================ */
.about { padding: 120px 0; background: var(--color-bg-subtle); }
.about-intro { max-width: 640px; margin: 0 auto 64px; text-align: center; }
.about-intro h2 { margin-bottom: 4px; }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}
.about-col .eyebrow { display: block; }
.about-col p { font-size: 1.02rem; }
@media (max-width: 760px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ============================================================
   CORE STRENGTHS
   ============================================================ */
.strengths { padding: 120px 0; }
.strengths-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.strength-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.strength-card:hover { border-color: var(--color-border-strong); transform: translateY(-3px); }
.strength-icon { font-size: 1.7rem; margin-bottom: 18px; }
.strength-card h3 { margin-bottom: 10px; font-size: 1.05rem; }
.strength-card p { font-size: 0.93rem; }
@media (max-width: 900px) {
  .strengths-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .strengths-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   FEATURED CASE STUDY
   ============================================================ */
.featured { padding: 0 0 120px; }
.featured-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  background: var(--color-bg);
  box-shadow: var(--shadow-md);
}
.featured-visual {
  background: var(--color-bg-inset);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
  min-height: 360px;
}
.phone-mock {
  width: 220px;
  height: 440px;
  border-radius: 32px;
  border: 8px solid var(--color-text);
  background: #fff;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.phone-screen-img {
  width: 100%;
  flex: 1;
  object-fit: cover;
}

.featured-content .eyebrow { margin-bottom: 10px; }
.featured-content h3 { font-size: 1.6rem; margin-bottom: 6px; }
.featured-content .role { color: var(--color-text-muted); font-weight: 600; margin-bottom: 18px; display: block; font-size: 0.98rem;}
.featured-content p.desc { font-size: 1rem; margin-bottom: 24px; }
.badge-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.badge {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  padding: 5px 10px;
  border-radius: 100px;
  background: var(--color-bg-subtle);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
}
@media (max-width: 860px) {
  .featured-card { grid-template-columns: 1fr; }
  .featured-content { padding: 40px 32px; }
}

/* ============================================================
   OTHER CASE STUDIES
   ============================================================ */
.other-studies { padding: 0 0 120px; }
.studies-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.study-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.study-card:hover { border-color: var(--color-border-strong); transform: translateY(-3px); }
.study-card .tag { font-family: var(--font-mono); font-size: 0.72rem; color: var(--color-accent); letter-spacing: 0.06em; text-transform: uppercase;}
.study-card h3 { font-size: 1.08rem; }
.study-card p { font-size: 0.92rem; }
@media (max-width: 900px) { .studies-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .studies-grid { grid-template-columns: 1fr; } }

/* ============================================================
   PROFESSIONAL FOCUS TIMELINE
   ============================================================ */
.focus { padding: 120px 0; background: var(--color-bg-subtle); }
.timeline {
  max-width: 480px;
  margin: 0 auto;
  position: relative;
  padding-left: 36px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 9px; top: 8px; bottom: 8px;
  width: 2px;
  background: var(--color-border-strong);
}
.timeline-item {
  position: relative;
  padding-bottom: 44px;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -36px; top: 2px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--color-accent);
}
.timeline-item h3 { font-size: 1.05rem; margin-bottom: 4px; }
.timeline-item p { font-size: 0.9rem; margin: 0; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  padding: 130px 0;
  text-align: center;
}
.contact h2 { max-width: 520px; margin: 0 auto 40px; }
.contact-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.contact-link {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 12px 22px;
  font-weight: 600;
  font-size: 0.94rem;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.contact-link:hover { border-color: var(--color-border-strong); background: var(--color-bg-subtle); }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  border-top: 1px solid var(--color-border);
  padding: 32px 0;
  text-align: center;
}
footer p { font-size: 0.85rem; color: var(--color-text-faint); }

/* ============================================================
   REVEAL ON SCROLL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ============================================================
   CASE STUDY PAGE
   ============================================================ */
.cs-hero {
  padding: calc(var(--nav-height) + 64px) 0 72px;
  border-bottom: 1px solid var(--color-border);
}
.cs-hero .container { max-width: 820px; }
.cs-hero h1 { margin: 6px 0 18px; }
.cs-hero .subtitle { font-size: 1.15rem; color: var(--color-text-muted); margin-bottom: 22px; font-weight: 500; }
.cs-hero blockquote {
  border-left: 3px solid var(--color-accent);
  padding-left: 20px;
  margin: 26px 0 34px;
  font-size: 1.05rem;
  color: var(--color-text);
}
.cs-hero .hero-actions { justify-content: flex-start; }

.stepper {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  padding: 28px 0;
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: var(--nav-height);
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(6px);
  z-index: 90;
}
.stepper a {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-faint);
  padding: 8px 16px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.stepper a:hover, .stepper a.active { color: var(--color-accent); border-color: var(--color-accent); }
.stepper .arrow { color: var(--color-border-strong); padding: 8px 0; font-size: 0.8rem; }

.cs-section {
  padding: 88px 0;
  border-bottom: 1px solid var(--color-border);
}
.cs-section .container { max-width: 780px; }
.cs-section h2 { margin-bottom: 24px; }
.cs-section p { font-size: 1.02rem; margin-bottom: 16px; }
.cs-section ul.bullet-list { margin: 20px 0; }
.cs-section ul.bullet-list li {
  color: var(--color-text-muted);
  font-size: 1rem;
  padding-left: 22px;
  position: relative;
  margin-bottom: 10px;
}
.cs-section ul.bullet-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
}

.snapshot-table, .decision-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
  font-size: 0.94rem;
}
.snapshot-table td, .decision-table td, .decision-table th {
  padding: 14px 16px;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
}
.snapshot-table td:first-child { color: var(--color-text-faint); font-family: var(--font-mono); font-size: 0.82rem; width: 40%; }
.decision-table th { font-family: var(--font-mono); font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--color-text-faint); }
.decision-table td:first-child { font-weight: 600; }

.diagram-img {
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  margin: 12px 0 8px;
}
.stakeholder-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 28px;
}
.stakeholder-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 22px;
}
.stakeholder-card .role { font-weight: 700; font-size: 0.98rem; margin-bottom: 6px; }
.stakeholder-card p { font-size: 0.9rem; margin: 0; }
@media (max-width: 600px) { .stakeholder-grid { grid-template-columns: 1fr; } }

.challenge-block { margin-bottom: 36px; }
.challenge-block:last-child { margin-bottom: 0; }
.challenge-block .label { font-family: var(--font-mono); font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--color-text-faint); margin-bottom: 6px; display: block; }
.challenge-block h3 { margin-bottom: 8px; }
.challenge-block .solution { border-left: 3px solid var(--color-accent); padding-left: 16px; margin-top: 12px; }
.challenge-block .solution .label { color: var(--color-accent); }

.roadmap-table td { vertical-align: top; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 8px;
}
.gallery-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  aspect-ratio: 9/16;
  object-fit: cover;
  width: 100%;
}
@media (max-width: 700px) { .gallery-grid { grid-template-columns: 1fr 1fr; } }

.links-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.link-chip {
  border: 1px solid var(--color-border);
  border-radius: 100px;
  padding: 9px 18px;
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: border-color 0.15s ease;
}
.link-chip:hover { border-color: var(--color-border-strong); background: var(--color-bg-subtle); }

.reflection {
  padding: 100px 0;
  text-align: center;
  background: var(--color-text);
  color: #fff;
}
.reflection .container { max-width: 720px; }
.reflection blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.01em;
}
