:root {
  --ink: #f1eadf;
  --muted: rgba(241, 234, 223, 0.72);
  --faint: rgba(241, 234, 223, 0.52);
  --canvas: #000;
  --well: #141a1e;
  --well-2: #0c1114;
  --teal: #6bc9df;
  --teal-dark: #3fa9c4;
  --amber: #c4a35a;
  --line: rgba(241, 234, 223, 0.16);
  --max-width: 1140px;
  --radius: 12px;
  --font: "Segoe UI", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: var(--font);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

a:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 0.5rem;
  left: -9999px;
  z-index: 1000;
  padding: 0.65rem 1rem;
  color: var(--canvas);
  background: var(--teal);
  border-radius: 8px;
  font-weight: 700;
}

.skip-link:focus {
  left: 0.5rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.94);
  backdrop-filter: blur(14px);
}

.nav-shell {
  min-height: 72px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.7rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 750;
  line-height: 1.05;
}

.brand img {
  width: 32px;
  height: 32px;
}

.brand small {
  display: block;
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.8rem, 2vw, 1.8rem);
}

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

.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
  color: var(--teal);
}

main {
  overflow: hidden;
}

.page-hero {
  position: relative;
  min-height: 44rem;
  display: grid;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 84% 22%, rgba(107, 201, 223, 0.2), transparent 31rem),
    radial-gradient(circle at 18% 92%, rgba(196, 163, 90, 0.1), transparent 26rem);
  pointer-events: none;
}

.hero-shell,
.section-shell {
  position: relative;
  width: min(100%, var(--max-width));
  margin: 0 auto;
  padding: clamp(4rem, 9vw, 7rem) 1.5rem;
}

.hero-shell {
  max-width: var(--max-width);
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--teal);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  line-height: 1.12;
}

h1 {
  max-width: 16ch;
  margin: 0;
  font-size: clamp(2.7rem, 7vw, 5.8rem);
  letter-spacing: -0.045em;
}

.hero-lead {
  width: 100%;
  max-width: none;
  margin: 1.5rem 0 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 2.2vw, 1.35rem);
}

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

.button {
  min-height: 2.9rem;
  padding: 0.75rem 1.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--teal);
  border-radius: 999px;
  color: var(--canvas);
  background: var(--teal);
  font-weight: 750;
  text-decoration: none;
}

.button:hover {
  background: var(--teal-dark);
}

.button.secondary {
  color: var(--teal);
  background: transparent;
}

.section-shell {
  padding-block: clamp(4.5rem, 8vw, 7rem);
}

.section-shell > header {
  width: 100%;
  max-width: none;
  margin-bottom: 2.5rem;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.6rem);
  letter-spacing: -0.03em;
}

.section-intro {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.band {
  border-block: 1px solid var(--line);
  background: var(--well-2);
}

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

.card {
  min-width: 0;
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--well);
}

.card h3 {
  margin: 0 0 0.6rem;
  font-size: 1.12rem;
}

.card p,
.card li {
  color: var(--muted);
}

.card p {
  margin: 0;
}

.card ul {
  margin: 0.8rem 0 0;
  padding-left: 1.2rem;
}

.truth-note {
  width: 100%;
  max-width: none;
  margin: 2rem 0 0;
  padding: 1.1rem 1.25rem;
  border-left: 3px solid var(--amber);
  border-radius: 0 10px 10px 0;
  color: var(--muted);
  background: rgba(196, 163, 90, 0.08);
}

.truth-note strong {
  color: var(--ink);
}

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

.team-card {
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(12rem, 0.78fr) minmax(0, 1.22fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--well);
}

.team-card:first-child {
  grid-column: 1 / -1;
}

.team-card img {
  width: 100%;
  height: 100%;
  min-height: 21rem;
  object-fit: cover;
}

.team-body {
  padding: 1.5rem;
}

.team-body h2 {
  font-size: clamp(1.45rem, 3vw, 2rem);
  letter-spacing: -0.015em;
}

.team-title {
  margin: 0.55rem 0 1rem;
  color: var(--teal);
  font-size: 0.92rem;
  font-weight: 750;
}

.team-bio {
  margin: 0;
  color: var(--muted);
}

.disclosure {
  max-width: 62rem;
  margin-top: 1.5rem;
  padding: 1rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  background: var(--well-2);
}

.service-hero {
  min-height: 0;
}

.service-hero .hero-shell {
  padding-block: clamp(4rem, 7vw, 6rem);
}

.service-hero h1 {
  max-width: none;
  font-size: clamp(2.6rem, 6vw, 5.2rem);
}

.decision-flow {
  counter-reset: flow;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.75rem;
}

.flow-step {
  position: relative;
  padding: 1.15rem;
  border-top: 2px solid var(--teal);
  background: var(--well);
}

.flow-step::before {
  counter-increment: flow;
  content: "0" counter(flow);
  display: block;
  margin-bottom: 0.7rem;
  color: var(--teal);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.flow-step h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.flow-step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.method-list {
  columns: 2;
  gap: 2.5rem;
  margin: 0;
  padding-left: 1.2rem;
}

.method-list li {
  break-inside: avoid;
  margin-bottom: 0.7rem;
  color: var(--muted);
}

.method-list strong {
  color: var(--ink);
}

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

.method-notes p {
  margin: 0;
  padding: 1.1rem 1.25rem;
  border-left: 3px solid var(--teal);
  color: var(--muted);
  background: var(--well);
}

.industry-visuals {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.industry-visual {
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--well);
}

.industry-visual img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.industry-visual figcaption {
  padding: 0.85rem 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer {
  border-top: 1px solid var(--line);
}

.footer-shell {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  color: var(--faint);
  font-size: 0.85rem;
}

.footer-shell p {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links a {
  color: var(--muted);
}

@media (min-width: 901px) {
  .team-portrait--raf {
    object-position: calc(50% - 20px) 50%;
  }

}

@media (max-width: 900px) {
  .nav-shell {
    align-items: flex-start;
    flex-direction: column;
  }

  .primary-nav {
    width: 100%;
    padding-bottom: 0.15rem;
    overflow-x: auto;
  }

  .page-hero {
    min-height: 38rem;
  }

  .card-grid,
  .team-grid {
    grid-template-columns: 1fr 1fr;
  }

  .team-card,
  .team-card:first-child {
    grid-column: auto;
    grid-template-columns: 1fr;
  }

  .team-card img {
    height: auto;
    min-height: 0;
    aspect-ratio: 1;
  }

  .decision-flow {
    grid-template-columns: 1fr 1fr;
  }

  .industry-visuals {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .primary-nav {
    gap: 1rem;
  }

  h1 {
    font-size: clamp(2.4rem, 13vw, 4rem);
  }

  .card-grid,
  .team-grid,
  .decision-flow {
    grid-template-columns: 1fr;
  }

  .method-list {
    columns: 1;
  }

  .method-notes {
    grid-template-columns: 1fr;
  }
}

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