/* ============================================
   CSS CUSTOM PROPERTIES / DESIGN TOKENS
   ============================================ */
:root {
  /* Colors */
  --deep-navy: #061225;
  --white: #FFFFFF;
  --off-white: #F7F8FA;
  --near-black: #111827;
  --slate-grey: #667085;
  --light-grey: #E5E7EB;

  /* Accent */
  --teal: #0E685E;
  --warm: #B8743D;
  --green: #16A34A;
  --amber: #D97706;
  --red: #DC2626;

  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Newsreader', 'Playfair Display', Georgia, 'Times New Roman', serif;

  /* Spacing */
  --container-max: 1200px;
  --section-pad: clamp(80px, 10vw, 140px);
  --gap: clamp(24px, 4vw, 48px);

  /* Transitions */
  --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-apple: cubic-bezier(0.16, 1, 0.3, 1);
  --duration: 0.4s;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 24px;
}


/* ============================================
   SCROLL PROGRESS BAR
   ============================================ */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #16A34A 0%, var(--teal) 50%, #38BDF8 100%);
  z-index: 10001;
  pointer-events: none;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
  transition: width 0.08s linear;
}


/* ============================================
   LENIS SMOOTH SCROLL STYLES
   ============================================ */
html.lenis, html.lenis body {
  height: auto;
}

html.lenis {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-smooth iframe {
  pointer-events: none;
}


/* ============================================
   RESET & BASE
   ============================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.6;
  color: var(--near-black);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

ul, ol {
  list-style: none;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
  border: none;
  background: none;
  outline: none;
}

button {
  cursor: pointer;
}

::selection {
  background-color: var(--deep-navy);
  color: var(--white);
}

/* Focus visible */
:focus-visible {
  outline: 2px solid var(--deep-navy);
  outline-offset: 3px;
  border-radius: 2px;
}


/* ============================================
   CONTAINER
   ============================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-inline: clamp(20px, 5vw, 40px);
}


/* ============================================
   TYPOGRAPHY
   ============================================ */
.eyebrow {
  display: block;
  font-size: clamp(11px, 1.2vw, 13px);
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--slate-grey);
  margin-bottom: 16px;
}

.eyebrow--light {
  color: rgba(255, 255, 255, 0.5);
}

.section-heading {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--near-black);
  margin-bottom: 20px;
}

.section-heading--light {
  color: var(--white);
}

.section-subtitle {
  font-size: clamp(16px, 1.8vw, 20px);
  font-weight: 400;
  line-height: 1.6;
  color: var(--slate-grey);
  max-width: 640px;
}

.section-subtitle--light {
  color: rgba(255, 255, 255, 0.6);
}


/* ============================================
   SECTIONS
   ============================================ */
.section {
  padding-block: var(--section-pad);
  scroll-margin-top: 80px;
}

.section--white {
  background-color: var(--white);
}

.section--off-white {
  background-color: var(--off-white);
}

.section--navy {
  background-color: var(--deep-navy);
}

.section-header {
  margin-bottom: clamp(48px, 6vw, 80px);
}


/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  padding: 16px 32px;
  border-radius: var(--radius-sm);
  transition: all 0.3s var(--ease-apple);
  white-space: nowrap;
  position: relative;
  cursor: pointer;
}

.btn:active {
  transform: scale(0.97) translateY(0);
}

.btn span {
  display: inline-block;
  transition: transform 0.3s var(--ease-apple);
}

.btn-primary {
  background-color: var(--white);
  color: var(--deep-navy);
}

.btn-primary:hover {
  background-color: var(--off-white);
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.28);
}

.btn-primary:hover span {
  transform: translateX(4px);
}

.btn-outline {
  background-color: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
}

.btn-outline:hover {
  border-color: var(--white);
  background-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.btn-outline:hover span {
  transform: translate(3px, -3px);
}

.btn-dark {
  background-color: var(--near-black);
  color: var(--white);
  padding: 14px 28px;
}

.btn-dark:hover {
  background-color: var(--deep-navy);
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(6, 18, 37, 0.25);
}

.btn-dark:hover span {
  transform: translateX(4px);
}


/* ============================================
   NAVIGATION
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  transition: all 0.35s var(--ease-out);
}

.site-header.scrolled {
  background-color: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--light-grey);
  padding: 14px 0;
}

.site-header.scrolled .logo {
  color: var(--near-black);
}

.site-header.scrolled .logo-svg {
  height: 44px;
}

.site-header.scrolled .nav-link {
  color: var(--near-black);
}

.site-header.scrolled .nav-link:hover,
.site-header.scrolled .nav-link.active {
  color: var(--deep-navy);
}

.site-header.scrolled .hamburger-line {
  background-color: var(--near-black);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: inline-flex;
  align-items: center;
  z-index: 1001;
  color: var(--white);
  transition: color 0.35s var(--ease-out), transform 0.2s var(--ease-out);
  text-decoration: none;
}

.logo:hover {
  transform: translateY(-1px);
}

.logo-svg {
  height: 52px;
  width: auto;
  max-width: 155px;
  display: block;
  transition: height 0.35s var(--ease-out), max-width 0.35s var(--ease-out);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.25s var(--ease-out);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background-color: currentColor;
  transition: width 0.3s var(--ease-out);
}

.nav-link:hover,
.nav-link.active {
  color: var(--white);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.site-header.scrolled .nav-link::after {
  background-color: var(--deep-navy);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: 1001;
}

.hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--white);
  border-radius: 2px;
  transition: all 0.35s var(--ease-out);
  transform-origin: center;
}

.hamburger.active .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.active .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.active .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}


/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #040914;
  background-image: 
    /* Primary luminous teal bloom centered above the fold */
    radial-gradient(ellipse 95% 55% at 50% -8%, rgba(14, 104, 94, 0.48) 0%, rgba(10, 65, 68, 0.24) 40%, transparent 75%),
    /* Soft horizontal horizon light behind the heading */
    radial-gradient(ellipse 75% 38% at 50% 36%, rgba(20, 184, 166, 0.16) 0%, rgba(56, 189, 248, 0.08) 45%, transparent 75%),
    /* Subtle cyan beam from upper right */
    radial-gradient(circle 520px at 85% 15%, rgba(56, 189, 248, 0.12) 0%, transparent 65%),
    /* Warm ambient depth from lower left */
    radial-gradient(circle 440px at 10% 75%, rgba(184, 116, 61, 0.09) 0%, transparent 65%),
    /* Rich midnight base gradient */
    linear-gradient(180deg, #061225 0%, #030813 100%);
  overflow: hidden;
  padding-top: 80px;
}

/* Atmospheric light pulse */
.hero::before {
  content: '';
  position: absolute;
  top: 25%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(340px, 55vw, 760px);
  height: clamp(200px, 35vw, 420px);
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(45, 212, 191, 0.18) 0%, rgba(14, 104, 94, 0.12) 40%, rgba(56, 189, 248, 0.04) 70%, transparent 80%);
  filter: blur(70px);
  pointer-events: none;
  animation: hero-glow-drift 9s ease-in-out infinite alternate;
  z-index: 1;
}

@keyframes hero-glow-drift {
  0% {
    opacity: 0.65;
    transform: translate(-50%, -48%) scale(0.96);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -52%) scale(1.08);
  }
}

.hero-bg-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.055) 1px, transparent 0);
  background-size: 38px 38px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 80% 65% at 50% 45%, black 25%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 65% at 50% 45%, black 25%, transparent 75%);
  z-index: 1;
}

.hero-content {
  position: relative;
  text-align: center;
  max-width: 860px;
  padding-block: 60px;
  z-index: 2;
}

.hero-headline {
  font-size: clamp(40px, 7vw, 88px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--white);
  margin-bottom: 28px;
}

/* Editorial Serif Italic Accent on "Design" */
.hero-word-italic {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.015em;
  padding: 0 4px;
  color: #FFFFFF;
  display: inline-block;
  text-shadow: 0 0 40px rgba(94, 234, 212, 0.35);
  position: relative;
}

/* Iridescent gradient fill on "Investigation" */
.hero-word-gradient {
  display: inline-block;
  background: linear-gradient(135deg, #FFFFFF 0%, #A7F3D0 25%, #2DD4BF 55%, #38BDF8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.03em;
  filter: drop-shadow(0 4px 24px rgba(45, 212, 191, 0.28));
  position: relative;
}

/* Glowing terminal dot */
.hero-dot {
  display: inline-block;
  background: linear-gradient(135deg, #34D399 0%, #14B8A6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  margin-left: -2px;
  filter: drop-shadow(0 0 10px rgba(52, 211, 153, 0.9));
}

.hero .eyebrow {
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 24px;
}

.hero-supporting {
  font-size: clamp(17px, 2vw, 20px);
  font-weight: 400;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.6);
  max-width: 620px;
  margin: 0 auto 44px;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 100px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--green);
  animation: pulse-dot 2s ease-in-out infinite;
}

.status-text {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.5);
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.4); }
  50% { opacity: 0.8; box-shadow: 0 0 0 6px rgba(22, 163, 74, 0); }
}


/* ============================================
   CASE FILES / PROJECT CARDS
   ============================================ */
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}

.case-card {
  background-color: var(--white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--light-grey);
  transition: transform 0.45s var(--ease-apple), box-shadow 0.45s var(--ease-apple), border-color 0.45s var(--ease-apple);
}

.case-card:hover,
.case-card.is-visible:hover {
  transform: translateY(-8px) !important;
  box-shadow: 0 24px 64px -12px rgba(6, 18, 37, 0.12), 0 0 0 1px rgba(6, 18, 37, 0.08);
  border-color: rgba(6, 18, 37, 0.12);
}

.case-card--muted {
  opacity: 0.65;
}

.case-card--muted:hover,
.case-card--muted.is-visible:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 12px 32px rgba(6, 18, 37, 0.06);
  border-color: var(--light-grey);
  opacity: 0.85;
}

.case-card__mockup {
  position: relative;
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.case-card__mockup-svg {
  width: 82%;
  height: 82%;
  transition: transform 0.65s var(--ease-apple);
}

.case-card:hover .case-card__mockup-svg {
  transform: scale(1.045);
}

.case-card__mockup--teal {
  background: linear-gradient(145deg, #0E685E 0%, #0A4F48 50%, #073D38 100%);
}

.case-card__mockup--warm {
  background: linear-gradient(145deg, #B8743D 0%, #9A5E2E 50%, #7A4B24 100%);
}

.case-card__mockup--grey {
  background: linear-gradient(145deg, #4B5563 0%, #374151 50%, #2A3240 100%);
}

.case-card__mockup-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.case-card__mockup-svg {
  width: 85%;
  height: 85%;
}

.case-card__thumb-picture {
  width: 100%;
  height: 100%;
  display: block;
}

.case-card__thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.65s var(--ease-apple);
}

.case-card:hover .case-card__thumb-img {
  transform: scale(1.045);
}

.case-card__thumb-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 18, 37, 0.55) 0%, rgba(6, 18, 37, 0.10) 35%, rgba(6, 18, 37, 0) 65%);
  pointer-events: none;
  z-index: 1;
}

.case-card__id-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: rgba(255, 255, 255, 0.85);
  background-color: rgba(6, 18, 37, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 6px 12px;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  z-index: 2;
}

.case-card__live-pill {
  position: absolute;
  top: 16px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #FFFFFF;
  background-color: rgba(14, 104, 94, 0.85);
  backdrop-filter: blur(8px);
  padding: 6px 12px;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: background-color 0.3s ease, transform 0.3s ease;
  z-index: 2;
}

.case-card:hover .case-card__live-pill {
  background-color: rgba(14, 104, 94, 1);
  transform: scale(1.05);
}

.case-card__title a {
  color: inherit;
  text-decoration: none;
}

.case-card__title a:hover {
  color: var(--teal);
}

.case-card__body {
  padding: 28px;
}

.case-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.case-card__category {
  font-size: 12px;
  font-weight: 500;
  color: var(--slate-grey);
  letter-spacing: 0.5px;
}

.case-card__status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.status-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.status-indicator--green { background-color: var(--green); }
.status-indicator--amber { background-color: var(--amber); }
.status-indicator--grey { background-color: var(--slate-grey); }

.case-card__status--delivered { color: var(--green); }
.case-card__status--progress { color: var(--amber); }
.case-card__status--concept { color: var(--slate-grey); }

.case-card__title {
  font-size: clamp(22px, 2.5vw, 28px);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
  transition: color 0.3s var(--ease-apple);
}

.case-card:hover .case-card__title {
  color: var(--teal);
}

.case-card--muted:hover .case-card__title {
  color: var(--near-black);
}

.case-card__desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--slate-grey);
  margin-bottom: 20px;
}

.case-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--near-black);
  transition: gap 0.3s var(--ease-apple), color 0.3s var(--ease-apple);
}

.case-card__cta span {
  display: inline-block;
  transition: transform 0.3s var(--ease-apple);
}

.case-card:hover .case-card__cta span {
  transform: translate(4px, -4px);
}

.case-card__cta:hover {
  gap: 10px;
  color: var(--teal);
}

.case-card__cta--muted {
  color: var(--slate-grey);
  cursor: default;
}

.case-card__cta--muted:hover {
  gap: 6px;
  color: var(--slate-grey);
}

.case-card__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.case-card__cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 500;
  color: var(--slate-grey);
  padding: 5px 12px;
  border-radius: 999px;
  background-color: rgba(22, 33, 62, 0.05);
  border: 1px solid rgba(22, 33, 62, 0.12);
  transition: all 0.25s var(--ease-apple);
  text-decoration: none;
}

.case-card__cta-secondary span {
  display: inline-block;
  transition: transform 0.25s var(--ease-apple);
}

.case-card__cta-secondary:hover {
  color: var(--teal);
  border-color: rgba(0, 168, 150, 0.4);
  background-color: rgba(0, 168, 150, 0.08);
}

.case-card__cta-secondary:hover span {
  transform: translate(2px, -2px);
}


/* ============================================
   THE BUREAU / ABOUT
   ============================================ */
.bureau-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}

.bureau-photo {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 8px;
}

.bureau-portrait-card {
  position: relative;
  width: 100%;
  max-width: 340px;
  border-radius: var(--radius-xl);
  padding: 8px;
  background: var(--white);
  border: 1px solid var(--light-grey);
  box-shadow: 0 20px 48px -12px rgba(6, 18, 37, 0.10), 0 0 0 1px rgba(6, 18, 37, 0.04);
  transition: transform 0.5s var(--ease-apple), box-shadow 0.5s var(--ease-apple), border-color 0.4s var(--ease-apple);
}

.bureau-portrait-card:hover {
  transform: translateY(-6px) scale(1.015);
  box-shadow: 0 30px 60px -16px rgba(6, 18, 37, 0.16), 0 0 0 1px rgba(14, 104, 94, 0.25);
  border-color: rgba(14, 104, 94, 0.2);
}

.bureau-portrait-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: calc(var(--radius-xl) - 4px);
  overflow: hidden;
  background: linear-gradient(145deg, var(--deep-navy) 0%, #122040 100%);
}

.bureau-portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
  transition: transform 0.65s var(--ease-apple);
}

.bureau-portrait-card:hover .bureau-portrait-img {
  transform: scale(1.04);
}

.bureau-portrait-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 18, 37, 0) 65%, rgba(6, 18, 37, 0.35) 100%);
  pointer-events: none;
}

.bureau-portrait-badge {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(6, 18, 37, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 100px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
  white-space: nowrap;
  transition: transform 0.3s ease, background 0.3s ease;
}

.bureau-portrait-card:hover .bureau-portrait-badge {
  background: rgba(6, 18, 37, 0.95);
  transform: translateX(-50%) translateY(-2px);
}

.bureau-portrait-name {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #FFFFFF;
}

.bureau-avatar {
  width: clamp(200px, 22vw, 300px);
  height: clamp(200px, 22vw, 300px);
  border-radius: 50%;
  background: linear-gradient(145deg, var(--deep-navy) 0%, #122040 50%, #1a3060 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform 0.5s var(--ease-apple), box-shadow 0.5s var(--ease-apple);
}

.bureau-avatar:hover {
  transform: scale(1.04) rotate(1deg);
  box-shadow: 0 20px 50px rgba(6, 18, 37, 0.2);
}

.bureau-avatar::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--light-grey);
}

.bureau-initials {
  font-size: clamp(48px, 6vw, 72px);
  font-weight: 700;
  letter-spacing: -2px;
  color: rgba(255, 255, 255, 0.15);
}

.bureau-bio p {
  font-size: clamp(16px, 1.6vw, 18px);
  line-height: 1.75;
  color: var(--slate-grey);
  margin-bottom: 20px;
}

.bureau-bio p:first-child {
  color: var(--near-black);
  font-weight: 500;
}

.bureau-role {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--slate-grey);
  padding: 10px 18px;
  border: 1px solid var(--light-grey);
  border-radius: 100px;
  margin-bottom: 36px;
  margin-top: 8px;
}

.skills-section {
  margin-bottom: 36px;
}

.skills-group {
  margin-bottom: 20px;
}

.skills-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--near-black);
  margin-bottom: 12px;
}

.skills-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-pill {
  font-size: 13px;
  font-weight: 500;
  color: var(--slate-grey);
  padding: 8px 18px;
  background-color: var(--white);
  border: 1px solid var(--light-grey);
  border-radius: 100px;
  transition: all 0.25s var(--ease-apple);
  cursor: default;
  user-select: none;
}

.skill-pill:hover {
  border-color: var(--deep-navy);
  background-color: var(--deep-navy);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(6, 18, 37, 0.12);
}


/* ============================================
   INVESTIGATION PROTOCOL / TIMELINE
   ============================================ */
.timeline {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
}

.timeline-track {
  position: absolute;
  top: 30px;
  left: 29px;
  width: 2px;
  height: calc(100% - 60px);
  background: rgba(255, 255, 255, 0.12);
  z-index: 1;
  border-radius: 2px;
  overflow: hidden;
}

.timeline-track-fill {
  width: 100%;
  height: 0%;
  background: linear-gradient(to bottom, #FFFFFF 0%, #16A34A 50%, #38BDF8 100%);
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.7);
  transition: height 0.12s ease-out;
}

.timeline-connector {
  display: none;
}

.timeline-item {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 28px;
  position: relative;
  z-index: 2;
  padding-bottom: 52px;
  cursor: pointer;
  transition: opacity 0.4s var(--ease-apple), transform 0.4s var(--ease-apple);
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-marker {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  background-color: var(--deep-navy);
  box-shadow: 0 0 0 6px var(--deep-navy);
  transition: all 0.45s var(--ease-apple);
  position: relative;
  z-index: 5;
  flex-shrink: 0;
}

.timeline-number {
  font-size: 18px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.4);
  position: relative;
  z-index: 6;
  transition: all 0.45s var(--ease-apple);
}

.timeline-connector {
  position: absolute;
  top: 60px;
  left: 30px;
  width: 1px;
  height: calc(100% - 60px);
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
  transition: background 0.5s var(--ease-apple);
}

.timeline-content {
  padding-top: 10px;
  position: relative;
  z-index: 2;
}

.timeline-title {
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
  opacity: 0.5;
  transition: all 0.45s var(--ease-apple);
}

.timeline-desc {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.5);
  opacity: 0.6;
  transition: all 0.45s var(--ease-apple);
}

/* Hover state */
.timeline-item:hover .timeline-marker {
  border-color: rgba(255, 255, 255, 0.6);
  background-color: #0c203e;
  box-shadow: 0 0 0 6px var(--deep-navy), 0 8px 24px rgba(0, 0, 0, 0.4);
  transform: scale(1.06);
}

.timeline-item:hover .timeline-number {
  color: var(--white);
}

.timeline-item:hover .timeline-title {
  opacity: 0.95;
  transform: translateX(4px);
}

.timeline-item:hover .timeline-desc {
  opacity: 0.9;
  color: rgba(255, 255, 255, 0.85);
}

/* Active Step on scroll */
.timeline-item.active-step .timeline-marker {
  border-color: var(--white);
  background-color: var(--white);
  box-shadow: 0 0 0 6px var(--deep-navy), 0 0 28px rgba(255, 255, 255, 0.5);
  transform: scale(1.1);
}

.timeline-item.active-step .timeline-number {
  color: var(--deep-navy);
}

.timeline-item.active-step .timeline-title {
  opacity: 1;
  transform: translateX(6px);
}

.timeline-item.active-step .timeline-desc {
  opacity: 1;
  color: rgba(255, 255, 255, 0.95);
}

.timeline-item.passed-step .timeline-marker {
  border-color: rgba(255, 255, 255, 0.5);
  background-color: #0c2242;
  box-shadow: 0 0 0 6px var(--deep-navy);
}

.timeline-item.passed-step .timeline-number {
  color: rgba(255, 255, 255, 0.85);
}

.timeline-item.passed-step .timeline-connector {
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0.15));
}


/* ============================================
   SERVICES / AREAS OF INVESTIGATION
   ============================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap);
}

.service-card {
  padding: clamp(32px, 4vw, 48px);
  background-color: var(--white);
  border: 1px solid var(--light-grey);
  border-radius: var(--radius-xl);
  transition: transform 0.45s var(--ease-apple), box-shadow 0.45s var(--ease-apple), border-color 0.45s var(--ease-apple);
}

.service-card:hover,
.service-card.is-visible:hover {
  transform: translateY(-8px) !important;
  box-shadow: 0 24px 56px -12px rgba(6, 18, 37, 0.1), 0 0 0 1px rgba(6, 18, 37, 0.08);
  border-color: rgba(6, 18, 37, 0.12);
}

.service-icon {
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background-color: var(--off-white);
  color: var(--near-black);
  margin-bottom: 24px;
  border: 1px solid var(--light-grey);
  transition: all 0.35s var(--ease-apple);
}

.service-icon svg {
  width: 28px;
  height: 28px;
  transition: transform 0.35s var(--ease-apple);
}

.service-card:hover .service-icon {
  background-color: var(--deep-navy);
  color: var(--white);
  border-color: var(--deep-navy);
  transform: scale(1.08) rotate(-2deg);
}

.service-card:hover .service-icon svg {
  transform: scale(1.05);
}

.service-title {
  font-size: clamp(20px, 2.5vw, 24px);
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.service-desc {
  font-size: 15px;
  line-height: 1.7;
  color: var(--slate-grey);
}


/* ============================================
   CONTACT
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--near-black);
}

.form-input {
  width: 100%;
  padding: 14px 18px;
  font-size: 15px;
  color: var(--near-black);
  background-color: var(--white);
  border: 1.5px solid var(--light-grey);
  border-radius: var(--radius-sm);
  transition: all 0.25s var(--ease-apple);
}

.form-input::placeholder {
  color: #A0A8B8;
}

.form-input:focus {
  border-color: var(--deep-navy);
  box-shadow: 0 0 0 4px rgba(6, 18, 37, 0.08), 0 4px 16px rgba(6, 18, 37, 0.04);
  transform: translateY(-1px);
}

.form-input.error {
  border-color: var(--red);
}

.form-input.error:focus {
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.12);
  transform: translateY(-1px);
}

.form-error {
  font-size: 13px;
  color: var(--red);
  min-height: 0;
  transition: all 0.2s var(--ease-apple);
}

.form-textarea {
  resize: vertical;
  min-height: 130px;
}

.select-wrapper {
  position: relative;
}

.form-select {
  appearance: none;
  padding-right: 44px;
  cursor: pointer;
}

.select-chevron {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--slate-grey);
  pointer-events: none;
}

.btn-submit {
  align-self: flex-start;
  background-color: var(--near-black);
  color: var(--white);
  margin-top: 8px;
}

.btn-submit:hover {
  background-color: var(--deep-navy);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(6, 18, 37, 0.3);
}

/* Contact Info */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-info-card {
  padding: 28px;
  background-color: var(--white);
  border: 1px solid var(--light-grey);
  border-radius: var(--radius-md);
  transition: transform 0.35s var(--ease-apple), box-shadow 0.35s var(--ease-apple), border-color 0.35s var(--ease-apple);
}

.contact-info-card:hover {
  transform: translateY(-4px);
  border-color: rgba(6, 18, 37, 0.15);
  box-shadow: 0 16px 36px -8px rgba(6, 18, 37, 0.08);
}

.contact-info-icon {
  width: 36px;
  height: 36px;
  color: var(--near-black);
  margin-bottom: 16px;
  transition: transform 0.3s var(--ease-apple);
}

.contact-info-card:hover .contact-info-icon {
  transform: scale(1.1);
}

.contact-info-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--slate-grey);
  margin-bottom: 8px;
}

.contact-info-value {
  font-size: 16px;
  font-weight: 500;
  color: var(--near-black);
  display: block;
  transition: color 0.25s var(--ease-apple);
}

a.contact-info-value:hover {
  color: var(--teal);
}

.contact-social-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 500;
  color: var(--near-black);
  transition: all 0.25s var(--ease-apple);
}

.social-link svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transition: transform 0.25s var(--ease-apple);
}

.social-link:hover {
  color: var(--teal);
  transform: translateX(4px);
}

.social-link:hover svg {
  transform: scale(1.1);
}


/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background-color: var(--deep-navy);
  padding-block: 60px 40px;
  position: relative;
}

.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.logo--footer {
  color: var(--white);
}

.logo--footer .logo-svg {
  height: 56px;
  max-width: 165px;
}

.footer-descriptor {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.4);
}

.footer-nav-list {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.footer-nav-list a {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
  transition: all 0.25s var(--ease-apple);
  position: relative;
  display: inline-block;
}

.footer-nav-list a:hover {
  color: var(--white);
  transform: translateY(-1px);
}

.footer-social {
  display: flex;
  gap: 14px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background-color: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.6);
  transition: all 0.3s var(--ease-apple);
}

.footer-social a:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background-color: var(--white);
  color: var(--deep-navy);
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.footer-social svg {
  width: 18px;
  height: 18px;
  transition: transform 0.25s var(--ease-apple);
}

.footer-social a:hover svg {
  transform: scale(1.08);
}

.footer-bottom {
  text-align: center;
}

.footer-copyright {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.35);
}

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--near-black);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.85);
  transition: all 0.4s var(--ease-apple);
  z-index: 900;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.back-to-top:hover {
  background-color: var(--deep-navy);
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 12px 32px rgba(6, 18, 37, 0.35);
  border-color: rgba(255, 255, 255, 0.25);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
  transition: transform 0.3s var(--ease-apple);
}

.back-to-top:hover svg {
  transform: translateY(-3px);
}


/* ============================================
   SCROLL REVEAL ANIMATIONS
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.55s var(--ease-apple), transform 0.55s var(--ease-apple);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hero entrance stagger */
.hero .reveal:nth-child(1) { transition-delay: 0.04s; }
.hero .reveal:nth-child(2) { transition-delay: 0.12s; }
.hero .reveal:nth-child(3) { transition-delay: 0.20s; }
.hero .reveal:nth-child(4) { transition-delay: 0.28s; }
.hero .reveal:nth-child(5) { transition-delay: 0.36s; }

/* Case grid stagger */
.case-grid .reveal:nth-child(1) { transition-delay: 0s; }
.case-grid .reveal:nth-child(2) { transition-delay: 0.08s; }
.case-grid .reveal:nth-child(3) { transition-delay: 0.16s; }

/* Services grid stagger */
.services-grid .reveal:nth-child(1) { transition-delay: 0s; }
.services-grid .reveal:nth-child(2) { transition-delay: 0.06s; }
.services-grid .reveal:nth-child(3) { transition-delay: 0.12s; }
.services-grid .reveal:nth-child(4) { transition-delay: 0.18s; }

/* Timeline items stagger */
.timeline-item.reveal:nth-child(1) { transition-delay: 0s; }
.timeline-item.reveal:nth-child(2) { transition-delay: 0.05s; }
.timeline-item.reveal:nth-child(3) { transition-delay: 0.10s; }
.timeline-item.reveal:nth-child(4) { transition-delay: 0.15s; }
.timeline-item.reveal:nth-child(5) { transition-delay: 0.20s; }

/* Bureau grid stagger */
.bureau-grid .reveal:nth-child(1) { transition-delay: 0.04s; }
.bureau-grid .reveal:nth-child(2) { transition-delay: 0.12s; }


/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .status-dot {
    animation: none;
  }
}


/* ============================================
   RESPONSIVE — TABLET
   ============================================ */
@media (max-width: 1024px) {
  .case-grid {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin-inline: auto;
  }

  .bureau-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .bureau-photo {
    margin-bottom: 16px;
  }

  .bureau-content {
    text-align: left;
  }

  .services-grid {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin-inline: auto;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}


/* ============================================
   RESPONSIVE — MOBILE
   ============================================ */
@media (max-width: 768px) {
  .logo-svg {
    height: 44px;
    max-width: 130px;
  }

  .site-header.scrolled .logo-svg {
    height: 38px;
  }

  .hamburger {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background-color: var(--deep-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s var(--ease-out);
    z-index: 1000;
  }

  .main-nav.open {
    opacity: 1;
    visibility: visible;
  }

  .nav-list {
    flex-direction: column;
    gap: 32px;
  }

  .nav-link {
    font-size: 24px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
  }

  .nav-link:hover,
  .nav-link.active {
    color: var(--white);
  }

  /* Force mobile nav styles when open (override scrolled) */
  .site-header.scrolled .main-nav.open .nav-link {
    color: rgba(255, 255, 255, 0.7);
  }

  .site-header.scrolled .main-nav.open .nav-link:hover,
  .site-header.scrolled .main-nav.open .nav-link.active {
    color: var(--white);
  }

  .hamburger.active .hamburger-line {
    background-color: var(--white);
  }

  .site-header:has(.main-nav.open) .logo {
    color: var(--white) !important;
  }

  .hero-headline br {
    display: none;
  }

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

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .section-heading br {
    display: none;
  }

  .footer-top {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-nav-list {
    justify-content: center;
  }

  .timeline-track {
    left: 23px;
    top: 24px;
    height: calc(100% - 48px);
  }

  .timeline-item {
    grid-template-columns: 48px 1fr;
    gap: 20px;
  }

  .timeline-marker {
    width: 48px;
    height: 48px;
    box-shadow: 0 0 0 5px var(--deep-navy);
  }

  .timeline-connector {
    left: 24px;
    top: 48px;
    height: calc(100% - 48px);
  }

  .timeline-number {
    font-size: 15px;
  }

  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 42px;
    height: 42px;
  }
}

@media (max-width: 480px) {
  .logo-svg {
    height: 38px;
    max-width: 115px;
  }

  .site-header.scrolled .logo-svg {
    height: 34px;
  }

  .case-card__body {
    padding: 22px;
  }
}
