:root {
  color-scheme: light;
  /*
   * Layered palette — change --bg to retheme the canvas.
   * --surface should stay noticeably lighter so content lifts off the page.
   */
  --bg: #f7f5f3;
  --bg-rgb: 247, 245, 243;
  --surface: #ffffff;
  --surface-rgb: 255, 255, 255;
  --inset: #e8e4df;
  --fg: #0a0a0a;
  --muted: rgba(10, 10, 10, 0.68);
  --accent: #5a5a5a;
  --accent-strong: #3a3a3a;
  --accent-soft: #8a8a8a;
  --accent-rgb: 10, 10, 10;
  --line: rgba(10, 10, 10, 0.12);
  --shadow: 0 20px 60px rgba(10, 10, 10, 0.1);
  --shadow-strong: 0 28px 80px rgba(10, 10, 10, 0.16);
  --canvas-glow: rgba(10, 10, 10, 0.04);
  --grid-line: rgba(10, 10, 10, 0.06);
  --grid-opacity: 0.08;
  --nav-link: rgba(10, 10, 10, 0.62);
  --eyebrow: rgba(10, 10, 10, 0.52);
  --btn-primary-hover: #2a2a2a;
  --btn-primary-shadow: rgba(10, 10, 10, 0.2);
  --story-end: #ece8e3;
  --story-stroke: rgba(10, 10, 10, 0.55);
  --story-stroke-soft: rgba(90, 90, 90, 0.2);
  --story-stroke-mid: rgba(10, 10, 10, 0.45);
  --story-stroke-end: rgba(90, 90, 90, 0.25);
  --story-glow-secondary: rgba(90, 90, 90, 0.14);
  --story-grid-opacity: 0.35;
  --placeholder: rgba(10, 10, 10, 0.4);
  --label: rgba(34, 34, 34, 0.74);
  --font: "Wix Madefor Text", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Helvetica, Arial, sans-serif;
  --maxw: 1180px;
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #141414;
  --bg-rgb: 20, 20, 20;
  --surface: #1c1c1c;
  --surface-rgb: 28, 28, 28;
  --inset: #2a2a2a;
  --fg: #f4f2ef;
  --muted: rgba(244, 242, 239, 0.68);
  --accent: #a3a3a3;
  --accent-strong: #d1d1d1;
  --accent-soft: #7a7a7a;
  --accent-rgb: 244, 242, 239;
  --line: rgba(244, 242, 239, 0.12);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.38);
  --shadow-strong: 0 28px 80px rgba(0, 0, 0, 0.48);
  --canvas-glow: rgba(255, 255, 255, 0.04);
  --grid-line: rgba(244, 242, 239, 0.06);
  --grid-opacity: 0.06;
  --nav-link: rgba(244, 242, 239, 0.62);
  --eyebrow: rgba(244, 242, 239, 0.52);
  --btn-primary-hover: #e0ddd8;
  --btn-primary-shadow: rgba(0, 0, 0, 0.4);
  --story-end: #242424;
  --story-stroke: rgba(244, 242, 239, 0.72);
  --story-stroke-soft: rgba(244, 242, 239, 0.24);
  --story-stroke-mid: rgba(244, 242, 239, 0.58);
  --story-stroke-end: rgba(244, 242, 239, 0.3);
  --story-glow-secondary: rgba(244, 242, 239, 0.12);
  --story-grid-opacity: 0.55;
  --placeholder: rgba(244, 242, 239, 0.4);
  --label: rgba(244, 242, 239, 0.74);
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  background:
    radial-gradient(80% 60% at 90% -5%, var(--canvas-glow), transparent 55%),
    var(--bg);
  color: var(--fg);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.55;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: var(--grid-opacity);
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at 50% 10%, black, transparent 70%);
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

button,
input,
textarea {
  font: inherit;
}

.site-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  width: min(100%, var(--maxw));
  margin: 0 auto;
  padding: clamp(1rem, 2.5vh, 1.75rem) clamp(1.25rem, 5vw, 3rem);
}

.icon-sm {
  width: 1.25em;
  height: 1.25em;
  flex: none;
}

[data-theme="dark"] .icon-sm,
[data-theme="dark"] .feature-card__icon,
[data-theme="dark"] .philosophy-card__icon {
  filter: brightness(0) invert(0.92);
}

.nav {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-bottom: clamp(1.5rem, 4vw, 3rem);
  animation: fade-in 0.7s ease both;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  text-decoration: none;
}

.brand__mark {
  display: inline-grid;
  width: 2.45rem;
  height: 2.45rem;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--fg);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  box-shadow: 0 8px 24px var(--btn-primary-shadow);
}

.brand__name {
  font-size: clamp(0.95rem, 1.6vw, 1.15rem);
  font-weight: 600;
  letter-spacing: -0.015em;
}

.nav__links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: clamp(0.75rem, 2vw, 1.35rem);
}

.nav__tools {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.theme-toggle {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  background: var(--surface);
  color: var(--fg);
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  border-color: var(--fg);
}

.theme-toggle__icon {
  width: 1.1rem;
  height: 1.1rem;
}

.theme-toggle__icon--light,
.theme-toggle__icon--dark {
  display: none;
}

.theme-toggle[data-theme-pref="light"] .theme-toggle__icon--dark,
.theme-toggle[data-theme-pref="dark"] .theme-toggle__icon--light {
  display: block;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0.45rem;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  background: var(--surface);
  cursor: pointer;
}

.nav__toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--fg);
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--nav-link);
  transition: color 0.2s ease, transform 0.2s ease, background-color 0.2s ease,
    border-color 0.2s ease;
}

.nav__link:hover,
.nav__link:focus-visible,
.nav__link.is-active {
  color: var(--fg);
}

.nav__link--cta {
  padding: 0.55em 1em;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--fg);
}

.nav__link--cta:hover,
.nav__link--cta:focus-visible {
  background-color: var(--fg);
  border-color: var(--fg);
  color: var(--surface);
}

.nav__arrow {
  display: inline-block;
  transition: transform 0.2s ease;
}

.nav__link:hover .nav__arrow,
.btn:hover .nav__arrow {
  transform: translate(2px, -2px);
}

main {
  flex: 1;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.72fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
  min-height: clamp(480px, 70vh, 660px);
  padding: clamp(1.5rem, 3vw, 2.5rem) 0 clamp(3rem, 8vw, 6rem);
}

.hero__content,
.page-hero,
.section,
.cta-panel,
.contact-form {
  animation: rise-in 0.8s ease both;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.55em;
  margin-bottom: clamp(0.8rem, 1.8vw, 1.2rem);
  color: var(--eyebrow);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.hero__title,
.page-hero h1 {
  max-width: 11.5ch;
  font-size: clamp(2.45rem, 6vw, 4.85rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.page-hero h1 {
  max-width: 12.5ch;
  font-size: clamp(2.3rem, 5.5vw, 4.4rem);
}

.accent {
  position: relative;
  color: var(--fg);
  white-space: nowrap;
}

.accent--alt {
  color: var(--accent);
}

.accent::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.06em;
  height: 0.07em;
  background: currentColor;
  opacity: 0.28;
  transform: scaleX(0);
  transform-origin: left;
  animation: underline 0.75s ease 0.7s both;
}

.hero__lede,
.page-hero p,
.section__lede {
  max-width: 54ch;
  margin-top: clamp(1rem, 2.5vw, 1.6rem);
  color: var(--muted);
  font-size: clamp(0.98rem, 1.7vw, 1.12rem);
  line-height: 1.62;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45em;
  width: fit-content;
  min-height: 2.75rem;
  padding: 0.72em 1.3em;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease,
    border-color 0.2s ease, box-shadow 0.2s ease;
}

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

.btn--primary {
  background-color: var(--fg);
  color: var(--surface);
  box-shadow: 0 14px 32px var(--btn-primary-shadow);
}

.btn--primary:hover {
  background-color: var(--btn-primary-hover);
}

.btn--ghost {
  border-color: var(--line);
  color: var(--fg);
  background: var(--surface);
}

.btn--ghost:hover {
  border-color: var(--fg);
  color: var(--fg);
}

.intelligence-card {
  position: relative;
  min-height: clamp(360px, 44vw, 520px);
  border: 1px solid var(--line);
  border-radius: clamp(1.5rem, 4vw, 2.5rem);
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 45%, var(--canvas-glow), transparent 40%),
    var(--surface);
  box-shadow: var(--shadow-strong);
  animation: float-in 0.95s ease 0.18s both, breathe 6s ease-in-out 1s infinite;
}

.intelligence-card::before,
.intelligence-card::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.intelligence-card::before {
  inset: 12%;
  border: 1px dashed rgba(var(--accent-rgb), 0.22);
  animation: spin 28s linear infinite;
}

.intelligence-card::after {
  width: 10rem;
  height: 10rem;
  right: -2rem;
  bottom: -2rem;
  background: rgba(var(--accent-rgb), 0.08);
  filter: blur(8px);
}

.orbit {
  position: absolute;
  inset: 18%;
  border: 1px solid rgba(var(--accent-rgb), 0.12);
  border-radius: 50%;
}

.orbit--one {
  transform: rotate(28deg) scaleX(0.72);
}

.orbit--two {
  transform: rotate(-32deg) scaleX(0.74);
}

.node-map {
  position: absolute;
  inset: 0;
}

.node {
  position: absolute;
  display: inline-grid;
  place-items: center;
  min-width: 4.1rem;
  min-height: 4.1rem;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--accent-strong);
  font-weight: 600;
  box-shadow: var(--shadow);
  animation: node-pulse 4.8s ease-in-out infinite;
}

.node--center {
  top: 50%;
  left: 50%;
  min-width: 6.8rem;
  min-height: 6.8rem;
  transform: translate(-50%, -50%);
  background: var(--fg);
  color: var(--surface);
  font-size: 1rem;
  animation: center-node-pulse 4.8s ease-in-out infinite;
}

.node--one {
  top: 16%;
  left: 18%;
}

.node--two {
  top: 18%;
  right: 14%;
  animation-delay: 0.6s;
}

.node--three {
  bottom: 18%;
  left: 14%;
  animation-delay: 1.2s;
}

.node--four {
  right: 16%;
  bottom: 16%;
  animation-delay: 1.8s;
}

.metric-band,
.card-grid,
.philosophy-grid,
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 3vw, 1.5rem);
}

.metric-band {
  padding: clamp(1rem, 2.5vw, 1.5rem) 0 clamp(3rem, 6vw, 5rem);
}

.metric-band--large {
  padding-top: 0;
}

.metric-card,
.feature-card,
.philosophy-card,
.case-card,
.contact-form {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 1.35rem;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.metric-card {
  padding: clamp(1.25rem, 3vw, 1.75rem);
}

.metric-card__value {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--fg);
  font-size: clamp(1.65rem, 3.8vw, 2.65rem);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 1;
}

.metric-card p,
.feature-card p,
.philosophy-card p,
.case-card p,
.service-row p {
  color: var(--muted);
  line-height: 1.6;
}

.section {
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(1.5rem, 4vw, 3rem);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: start;
}

.section h2,
.cta-panel h2,
.vision-panel h2 {
  max-width: 14ch;
  font-size: clamp(1.75rem, 3.8vw, 3.1rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.card-grid {
  padding-bottom: clamp(3rem, 7vw, 5rem);
}

.card-grid--services {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.what-we-do {
  padding-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

.what-we-do__title {
  max-width: 18ch;
  margin-bottom: clamp(1.25rem, 3vw, 2rem);
  font-size: clamp(1.75rem, 3.8vw, 3.1rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.what-we-do__intro {
  display: grid;
  gap: 1rem;
  max-width: 72ch;
}

.what-we-do__intro p {
  color: var(--muted);
  font-size: clamp(0.98rem, 1.7vw, 1.08rem);
  line-height: 1.62;
}

.feature-card,
.philosophy-card,
.case-card {
  padding: clamp(1.3rem, 3vw, 2rem);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.philosophy-card__icon {
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 1rem;
}

.feature-card:hover,
.philosophy-card:hover,
.case-card:hover {
  transform: translateY(-6px);
  border-color: rgba(var(--accent-rgb), 0.28);
  box-shadow: var(--shadow);
}

.feature-card__icon {
  width: 3rem;
  height: 3rem;
  margin-bottom: 1.4rem;
}

.feature-card__index,
.service-row__number,
.philosophy-card span,
.case-card__label {
  display: block;
  margin-bottom: 0.75rem;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.feature-card h3,
.philosophy-card h3,
.case-card h2,
.service-row h2 {
  margin-bottom: 0.65rem;
  font-size: clamp(1.12rem, 1.8vw, 1.38rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.proof-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.proof-strip__title {
  max-width: 28ch;
  margin-bottom: clamp(1.25rem, 3vw, 2rem);
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

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

.logo-row--large {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.logo-row span {
  display: grid;
  min-height: 5.25rem;
  place-items: center;
  border: 1px dashed var(--line);
  border-radius: 1rem;
  background: transparent;
  color: var(--placeholder);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.client-logo {
  display: grid;
  min-height: 7.5rem;
  place-items: center;
  padding: clamp(1rem, 2.5vw, 1.5rem);
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--surface);
}

.client-logo img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 5rem;
  object-fit: contain;
  opacity: 0.92;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.client-logo:hover img,
.client-logo:focus-within img {
  opacity: 1;
  transform: translateY(-1px);
}

.cta-panel,
.vision-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin: clamp(3rem, 8vw, 6rem) 0 0;
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 1px solid var(--line);
  border-radius: clamp(1.5rem, 4vw, 2.5rem);
  background: var(--surface);
  box-shadow: var(--shadow-strong);
}

.page-hero {
  padding: clamp(2rem, 5vw, 4rem) 0 clamp(3rem, 7vw, 5rem);
}

.page-hero--contact {
  padding-bottom: 0;
}

.page-hero--about .page-hero__tagline {
  max-width: 42ch;
  margin-top: clamp(0.75rem, 2vw, 1.25rem);
  color: var(--muted);
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  line-height: 1.55;
}

.our-story {
  padding-top: 0;
}

.our-story__frame {
  display: grid;
  grid-template-columns: minmax(280px, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(1.25rem, 3vw, 2rem);
  align-items: stretch;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border: 1px solid var(--line);
  border-radius: clamp(1.5rem, 4vw, 2.5rem);
  background:
    radial-gradient(120% 90% at 0% 0%, var(--canvas-glow), transparent 55%),
    var(--surface);
  box-shadow: var(--shadow-strong);
  overflow: hidden;
}

.our-story__visual {
  position: relative;
  min-height: clamp(320px, 42vw, 460px);
  border: 1px solid var(--line);
  border-radius: clamp(1.15rem, 3vw, 1.85rem);
  overflow: hidden;
}

.story-field {
  position: relative;
  height: 100%;
  min-height: inherit;
  background:
    radial-gradient(ellipse 80% 60% at 20% 15%, var(--canvas-glow), transparent 60%),
    radial-gradient(ellipse 70% 55% at 85% 80%, rgba(var(--accent-rgb), 0.08), transparent 65%),
    linear-gradient(160deg, rgba(var(--bg-rgb), 0.9) 0%, rgba(var(--surface-rgb), 1) 48%, var(--story-end) 100%);
}

.story-field__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(28px);
  pointer-events: none;
  animation: story-glow 9s ease-in-out infinite;
}

.story-field__glow--one {
  top: 8%;
  left: -8%;
  width: 55%;
  height: 38%;
  background: var(--canvas-glow);
}

.story-field__glow--two {
  right: -10%;
  bottom: 6%;
  width: 48%;
  height: 42%;
  background: var(--story-glow-secondary);
  animation-delay: -4s;
}

.story-field__grid {
  position: absolute;
  inset: 0;
  opacity: var(--story-grid-opacity);
  background-image:
    radial-gradient(var(--grid-line) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(180deg, black 10%, transparent 92%);
}

.story-field__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.story-field__curve {
  stroke-dasharray: 4 10;
  animation: story-dash 14s linear infinite;
}

.story-field__pulse {
  stroke: var(--story-stroke);
  stroke-dasharray: 42 520;
  stroke-dashoffset: 520;
  animation: story-draw 5.5s ease-in-out infinite;
}

.story-field__node {
  fill: var(--surface);
  stroke: var(--story-stroke);
  stroke-width: 1.5;
  animation: story-node 4.8s ease-in-out infinite;
}

.story-field__node:nth-of-type(2) {
  animation-delay: 0.8s;
}

.story-field__node:nth-of-type(3) {
  animation-delay: 1.6s;
}

.story-field__beats {
  position: absolute;
  inset: clamp(1rem, 3vw, 1.75rem);
  list-style: none;
}

.story-beat {
  position: absolute;
  display: grid;
  gap: 0.2rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: rgba(var(--surface-rgb), 0.82);
  backdrop-filter: blur(6px);
  box-shadow: var(--shadow);
  animation: story-beat-float 6s ease-in-out infinite;
}

.story-beat:nth-child(1) {
  top: 6%;
  left: 4%;
  animation-delay: 0s;
}

.story-beat:nth-child(2) {
  top: 38%;
  right: 6%;
  animation-delay: -2s;
}

.story-beat:nth-child(3) {
  right: 10%;
  bottom: 8%;
  animation-delay: -4s;
}

.story-beat__index {
  color: var(--eyebrow);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.story-beat__label {
  color: var(--fg);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.our-story__content {
  display: grid;
  align-content: center;
  padding: clamp(0.5rem, 2vw, 1.25rem) clamp(0.25rem, 1.5vw, 1rem);
}

.our-story__title,
.numbers-section__title {
  margin-bottom: clamp(1.25rem, 3vw, 2rem);
  font-size: clamp(1.75rem, 3.8vw, 3.1rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.our-story__body {
  display: grid;
  gap: 1rem;
  max-width: 58ch;
}

.our-story__body p {
  color: var(--muted);
  font-size: clamp(0.98rem, 1.7vw, 1.08rem);
  line-height: 1.62;
}

.our-story__closing {
  max-width: 52ch;
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
  color: var(--fg);
  font-size: clamp(1.02rem, 1.8vw, 1.18rem);
  font-weight: 500;
  line-height: 1.5;
}

.numbers-section {
  padding-top: clamp(1rem, 3vw, 2rem);
}

.metric-band--about {
  padding: 0;
}

.leadership-section {
  padding-top: clamp(1rem, 3vw, 2rem);
}

.leadership-section__title {
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
  font-size: clamp(1.75rem, 3.8vw, 3.1rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

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

.leader-card {
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border: 1px solid var(--line);
  border-radius: 1.35rem;
  background: var(--surface);
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.leader-card:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--accent-rgb), 0.28);
  box-shadow: var(--shadow-strong);
}

.leader-card__photo {
  display: grid;
  width: clamp(5.5rem, 14vw, 7rem);
  height: clamp(5.5rem, 14vw, 7rem);
  margin: 0 auto 1rem;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--bg);
  color: var(--fg);
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  overflow: hidden;
}

.leader-card__photo--avatar {
  padding: 0;
  background: var(--bg);
}

.leader-card__photo--avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.leader-card h3 {
  margin-bottom: 0.35rem;
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.leader-card p {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.service-stack {
  display: grid;
  gap: 1rem;
}

.service-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(220px, 0.58fr);
  gap: clamp(1rem, 4vw, 3rem);
  padding: clamp(1.35rem, 3vw, 2rem);
  border-top: 1px solid var(--line);
}

.check-list {
  display: grid;
  gap: 0.55rem;
  color: var(--muted);
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 1.35rem;
}

.check-list li::before {
  content: "";
  position: absolute;
  top: 0.65em;
  left: 0;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--fg);
}

.philosophy-grid {
  padding-bottom: clamp(1rem, 4vw, 2rem);
}

.vision-panel {
  display: block;
}

.vision-panel h2 {
  max-width: 20ch;
}

.case-grid {
  padding-top: clamp(1rem, 3vw, 2rem);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.78fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.contact-methods {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.contact-methods a {
  padding: 0.75rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
  color: var(--fg);
  font-weight: 500;
  background: var(--surface);
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  padding: clamp(1.25rem, 3vw, 2rem);
}

.contact-form label {
  display: grid;
  gap: 0.45rem;
  color: var(--label);
  font-size: 0.88rem;
  font-weight: 500;
}

.field-full {
  grid-column: 1 / -1;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: var(--surface);
  color: var(--fg);
  padding: 0.9rem 1rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(var(--accent-rgb), 0.48);
  box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.1);
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-top: clamp(1rem, 2.5vh, 1.75rem);
  margin-top: clamp(3rem, 7vw, 5rem);
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
}

.site-footer {
  margin-top: clamp(3rem, 7vw, 5rem);
  padding-top: clamp(2rem, 5vw, 3.5rem);
  border-top: 1px solid var(--line);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(140px, 1.1fr) minmax(100px, 0.75fr) minmax(
      180px,
      1.2fr
    ) minmax(100px, 0.7fr) auto;
  align-items: start;
  gap: clamp(1.5rem, 4vw, 3rem);
}

.site-footer__brand-link {
  display: inline-flex;
  flex-direction: column;
  gap: 0.35rem;
  text-decoration: none;
  color: var(--fg);
}

.site-footer__mark {
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
}

.site-footer__name {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-footer__heading {
  margin-bottom: 0.85rem;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.site-footer__menu {
  display: grid;
  gap: 0.45rem;
}

.site-footer__menu-link {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.site-footer__menu-link:hover,
.site-footer__menu-link:focus-visible,
.site-footer__menu-link.is-active {
  color: var(--fg);
}

.site-footer__list {
  display: grid;
  gap: 0.45rem;
  list-style: none;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 500;
}

.site-footer__list a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease;
}

.site-footer__list a:hover,
.site-footer__list a:focus-visible {
  color: var(--fg);
}

.site-footer__social {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.site-footer__social-link {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--fg);
  color: var(--surface);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  text-transform: lowercase;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-footer__social-link:hover,
.site-footer__social-link:focus-visible {
  transform: translateY(-1px);
  opacity: 0.88;
}

.site-footer__cta {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
}

.site-footer__inquiry {
  min-width: 9.5rem;
  justify-content: center;
}

.site-footer__legal {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
}

.footer__copy {
  color: var(--muted);
}

.footer__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  text-decoration: none;
  color: var(--label);
  transition: color 0.2s ease;
}

.footer__link:hover {
  color: var(--fg);
}

.reveal {
  animation: rise-in 0.8s ease both;
  animation-timeline: view();
  animation-range: entry 0% cover 28%;
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float-in {
  from {
    opacity: 0;
    transform: translateY(34px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes breathe {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes node-pulse {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-8px) scale(1.03);
  }
}

@keyframes center-node-pulse {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    transform: translate(-50%, calc(-50% - 8px)) scale(1.03);
  }
}

@keyframes underline {
  to {
    transform: scaleX(1);
  }
}

@keyframes story-draw {
  0% {
    stroke-dashoffset: 520;
    opacity: 0.35;
  }
  45%,
  55% {
    stroke-dashoffset: 0;
    opacity: 1;
  }
  100% {
    stroke-dashoffset: -520;
    opacity: 0.35;
  }
}

@keyframes story-dash {
  to {
    stroke-dashoffset: -140;
  }
}

@keyframes story-glow {
  0%,
  100% {
    transform: translateY(0) scale(1);
    opacity: 0.75;
  }
  50% {
    transform: translateY(-10px) scale(1.04);
    opacity: 1;
  }
}

@keyframes story-node {
  0%,
  100% {
    opacity: 0.55;
    stroke-width: 1.5;
  }
  50% {
    opacity: 1;
    stroke-width: 2.5;
  }
}

@keyframes story-beat-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@media (max-width: 980px) {
  .hero,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
  }

  .intelligence-card {
    min-height: 380px;
  }

  .split,
  .service-row,
  .our-story__frame {
    grid-template-columns: 1fr;
  }

  .our-story__visual {
    min-height: 300px;
  }

  .metric-band,
  .card-grid,
  .philosophy-grid,
  .case-grid {
    grid-template-columns: 1fr;
  }

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

  .logo-row,
  .logo-row--large {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cta-panel {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .site-footer__cta {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}

@media (max-width: 860px) {
  .nav {
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
  }

  .nav__tools {
    margin-left: auto;
  }

  .nav__toggle {
    display: inline-flex;
  }

  .nav__links {
    display: none;
    flex: 1 1 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
    padding: 0.75rem;
    border: 1px solid var(--line);
    border-radius: 1rem;
    background: var(--surface);
    box-shadow: var(--shadow);
  }

  .nav.is-open .nav__links {
    display: flex;
  }

  .nav__link {
    width: 100%;
    padding: 0.65rem 0.75rem;
    border-radius: 0.55rem;
  }

  .nav.is-open .nav__toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav.is-open .nav__toggle-bar:nth-child(2) {
    opacity: 0;
  }

  .nav.is-open .nav__toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

@media (max-width: 640px) {
  .site-shell {
    padding-inline: 1rem;
  }

  .nav__link--cta {
    width: 100%;
    justify-content: center;
  }

  .hero__title,
  .page-hero h1 {
    font-size: clamp(2.15rem, 12vw, 3.35rem);
  }

  .intelligence-card {
    min-height: 320px;
  }

  .node {
    min-width: 3.35rem;
    min-height: 3.35rem;
    font-size: 0.82rem;
  }

  .node--center {
    min-width: 5.2rem;
    min-height: 5.2rem;
  }

  .logo-row,
  .logo-row--large,
  .contact-form,
  .leadership-grid {
    grid-template-columns: 1fr;
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .site-footer__cta {
    width: 100%;
  }

  .site-footer__inquiry {
    width: 100%;
  }

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }

  .story-field__pulse {
    stroke-dashoffset: 0;
  }
}
