/* ==========================================================================
   Vortex Catalyst — page styles.

   Layered on top of nocturne.css (the design system). Every colour, font,
   radius and shadow comes from a Nocturne token; nothing is hard-coded that
   the system already carries. Type sizes and section rhythm are the page's
   own scale, carried over from the approved design.
   ========================================================================== */

:root {
  --gutter: clamp(20px, 5vw, 72px);
  --page-max: 1180px;
  /* Distance from the content column's edge to the viewport edge. Only the
     hero artwork uses it (to bleed off the right of the page), so the 100vw
     reading — which counts the scrollbar — is fine: the overhang lands in
     the artwork's faded edge and is clipped by body's overflow-x.
     Full-bleed *sections* use the 100%-based form inline instead, which is
     scrollbar-exact and therefore stays aligned with .wrap. */
  --bleed: max(var(--gutter), calc((100vw - var(--page-max)) / 2 + var(--gutter)));
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: hidden;
  text-wrap: pretty;
  font-family: var(--font-body);
  color: var(--color-text);
  font-size: 16.5px;
  line-height: 28px;
  background:
    radial-gradient(1200px 720px at 84% -180px,
      color-mix(in srgb, var(--color-accent-900) 78%, transparent), transparent 60%),
    radial-gradient(1100px 800px at -10% 100%,
      color-mix(in srgb, black 32%, transparent), transparent 55%),
    var(--color-bg);
}

a { color: var(--color-accent); text-decoration: none; }
a:hover { color: var(--color-accent-300); }

/* — layout primitives — */
.wrap {
  max-width: var(--page-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

picture { display: block; }
address { font-style: normal; }

.rule {
  height: 1px;
  border: 0;
  margin: 0;
  background: linear-gradient(to right,
    transparent, var(--color-divider) 48px,
    var(--color-divider) calc(100% - 48px), transparent);
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: 0;
  z-index: 30;
  transform: translateY(-140%);
  padding: 10px 16px;
  border-radius: var(--radius-md);
  background: var(--color-surface);
  color: var(--color-accent);
  font-size: 14px;
  box-shadow: var(--shadow-md);
}
.skip-link:focus-visible { transform: translateY(12px); }

/* — header / nav — */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: color-mix(in srgb, var(--color-bg) 82%, transparent);
}
.site-header .nav { padding-inline: max(var(--gutter), calc((100% - var(--page-max)) / 2 + var(--gutter))); }
.nav-brand { display: flex; align-items: center; gap: 10px; }
.nav-brand svg { flex: none; }
.nav-links { display: contents; }

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

/* — section kickers — */
.kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.kicker svg { flex: none; }
.kicker .kicker-rule {
  width: 44px;
  height: 1px;
  background: var(--color-accent);
  flex: none;
}
.kicker .kicker-label {
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent);
}

/* — headings — */
.h-display {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(40px, 5.6vw, 76px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin: 0 0 0 -0.05em;
}
.h-section {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.14;
  letter-spacing: -0.015em;
  margin: 0;
}
.h-band {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.16;
  letter-spacing: -0.015em;
  margin: 0 0 clamp(28px, 4vw, 48px);
}
.lede {
  font-size: 17px;
  line-height: 28px;
  max-width: 56ch;
  margin: 28px 0 0;
  color: color-mix(in srgb, var(--color-text) 82%, transparent);
}
.muted { color: color-mix(in srgb, var(--color-text) 78%, transparent); }
.body-sm { font-size: 15.5px; }
.numeral {
  font-family: var(--font-heading);
  font-size: 15px;
  color: var(--color-accent);
  font-feature-settings: 'tnum' 1;
}

/* — hero — */
.hero {
  display: grid;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding: clamp(64px, 8vw, 140px) 0 clamp(48px, 6vw, 96px);
}
/* The artwork column runs wider than the copy, and the frame is close to
   square. Both scale the vortex up (it is cover-cropped from a 1800×771
   source, so a taller frame zooms it): the artwork renders ~1.2× the size it
   did on equal columns, while the headline gives up only one line. */
@media (min-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); }
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.hero-art {
  margin: 0;
  align-self: stretch;
  margin-right: calc(-1 * var(--bleed));
  margin-block: clamp(-72px, -6vw, -24px);
}
/* Nocturne blends artwork into the page rather than framing it: anything
   darker than the ground falls away, and the edges are masked to nothing. */
.hero-art img {
  display: block;
  width: 100%;
  /* height:auto is required — the intrinsic width/height attributes (there to
     reserve space before load) otherwise win over aspect-ratio. */
  height: auto;
  aspect-ratio: 16 / 15;
  object-fit: cover;
  object-position: 68% 46%;
  mask-image:
    linear-gradient(to right, transparent, #000 26%),
    linear-gradient(to bottom, transparent, #000 14%, #000 86%, transparent);
  mask-composite: intersect;
  -webkit-mask-image:
    linear-gradient(to right, transparent, #000 26%),
    linear-gradient(to bottom, transparent, #000 14%, #000 86%, transparent);
  -webkit-mask-composite: source-in;
}

/* — market context — */
.context { padding: clamp(56px, 7vw, 112px) 0; }
.context .h-section { max-width: 26ch; }
.context-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(24px, 4vw, 64px);
  margin-top: 32px;
}
.context-cols p { margin: 0; }

/* — pillars — */
.pillars { padding: clamp(24px, 3vw, 48px) 0 clamp(56px, 7vw, 112px); }
.pillars .kicker { margin-bottom: 28px; }
.pillar-list { display: grid; gap: 0; }
.pillar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px clamp(24px, 4vw, 72px);
  align-items: start;
  padding: 28px 0;
  border-top: 1px solid var(--color-neutral-800);
}
.pillar:last-child { border-bottom: 1px solid var(--color-neutral-800); }
.pillar-head { display: flex; gap: 20px; align-items: baseline; }
.pillar-head h3 {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 24px;
  line-height: 28px;
  letter-spacing: -0.01em;
  margin: 0;
}
.pillar p {
  margin: 0;
  font-size: 15.5px;
  max-width: 60ch;
  grid-column: span 2;
  color: color-mix(in srgb, var(--color-text) 78%, transparent);
}

/* — framework — */
.framework {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
  padding: clamp(24px, 3vw, 48px) 0 clamp(56px, 7vw, 112px);
}
.framework-copy { order: 1; }
.framework-copy .h-section { margin-bottom: 32px; }
.framework-dial {
  justify-self: center;
  width: 100%;
  max-width: 400px;
  order: 2;
}
.framework-dial svg { display: block; }
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 20px;
}
.steps li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 16px;
  padding-top: 18px;
  border-top: 1px solid var(--color-neutral-800);
}
.steps strong {
  font-weight: 500;
  font-family: var(--font-heading);
  font-size: 18px;
}
.steps .step-body {
  display: block;
  font-size: 15.5px;
  color: color-mix(in srgb, var(--color-text) 78%, transparent);
}

/* — "why" band — the page-scale presence move: a saturated indigo ground — */
.why {
  background:
    radial-gradient(900px 420px at 85% -40%,
      color-mix(in srgb, var(--color-section-glow) 70%, transparent), transparent 64%),
    var(--color-section);
  padding: clamp(56px, 7vw, 104px) 0;
}
.why-points {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: clamp(24px, 3vw, 44px);
}
.why-points p {
  margin: 0;
  padding-top: 18px;
  border-top: 1px solid color-mix(in srgb, var(--color-text) 24%, transparent);
  font-size: 15.5px;
}
.why-graph {
  display: block;
  width: 100%;
  margin-top: clamp(32px, 4vw, 56px);
  opacity: 0.75;
}

/* — about — */
/* The bottom padding is the design's own value. It was tuned when Leadership
   followed this section; with Leadership dropped it is the shortest gap on the
   page (~56px into the Services band). Raise it to match the other sections if
   that reads tight to you. */
.about { padding: clamp(56px, 7vw, 112px) 0 clamp(32px, 4vw, 56px); }
.about .h-section { max-width: 24ch; }
/* The positioning statement runs at lede size across the full measure; Mission
   and Approach sit under it as two ruled columns. */
.about-lede {
  margin: 28px 0 0;
  font-size: clamp(17px, 1.7vw, 21px);
  line-height: 1.55;
  max-width: 62ch;
  color: color-mix(in srgb, var(--color-text) 88%, transparent);
}
.about-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(28px, 4vw, 72px);
  margin-top: clamp(36px, 4vw, 56px);
}
.about-col {
  padding-top: 20px;
  border-top: 1px solid var(--color-neutral-800);
}
.about-col h3 {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 20px;
  margin: 0 0 10px;
}
.about-col p {
  margin: 0;
  font-size: 15.5px;
  line-height: 26px;
  color: color-mix(in srgb, var(--color-text) 78%, transparent);
}

/* — leadership — dormant —————————————————————————————————————————————————
   The Leadership section is commented out in index.html (design prop
   `showLeadership`, default false). These rules are kept so uncommenting that
   block is all it takes to bring the section back. They match nothing today;
   delete this block only if the section is dropped for good.
   ———————————————————————————————————————————————————————————————————————— */
.leadership { padding: clamp(24px, 3vw, 48px) 0 clamp(56px, 7vw, 112px); }
.leadership > h2 {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 20px;
  margin: 0 0 28px;
  letter-spacing: 0.02em;
}
.leader-list { display: grid; gap: clamp(28px, 4vw, 48px); }
.leader {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px clamp(24px, 4vw, 64px);
  padding-top: 28px;
  border-top: 1px solid var(--color-neutral-800);
  align-items: start;
}
.leader-head { display: flex; gap: 20px; align-items: center; }
.leader-head figure { margin: 0; flex: none; }
.leader-head img {
  display: block;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1px var(--color-neutral-700);
}
/* Per-portrait crop and treatment. These live here rather than in a style
   attribute so the section stays deployable under the strict CSP in
   site/_headers, which allows no inline styles. */
.leader-photo-faraz { object-position: 50% 20%; }
.leader-photo-andrey {
  object-position: 50% 22%;
  /* The source file is colour; Faraz's is already black and white. */
  filter: grayscale(1) contrast(1.04) brightness(0.98);
}
.leader-head h3 {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 21px;
  line-height: 28px;
  margin: 0;
}
.leader-role {
  margin: 2px 0 0;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--color-accent-300);
}
.leader-bio {
  margin: 0;
  font-size: 15.5px;
  grid-column: span 2;
  max-width: 76ch;
  color: color-mix(in srgb, var(--color-text) 78%, transparent);
}

/* — services — the one light band, breaking the dark run — */
.services {
  padding-block: clamp(56px, 7vw, 104px);
  padding-inline: max(var(--gutter), calc((100% - var(--page-max)) / 2 + var(--gutter)));
  background: var(--color-neutral-100);
  color: var(--color-neutral-900);
}
.services .kicker .kicker-rule,
.services .kicker .kicker-label { color: var(--color-accent-600); }
.services .kicker .kicker-rule { background: var(--color-accent-600); }
.services .h-section {
  margin-bottom: clamp(32px, 4vw, 56px);
  max-width: 30ch;
}
.engagements { display: grid; border-bottom: 1px solid var(--color-neutral-300); }
.engagement {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(16px, 3vw, 48px);
  padding: clamp(26px, 3vw, 40px) 0;
  border-top: 1px solid var(--color-neutral-300);
}
.engagement-head {
  flex: 1 1 260px;
  min-width: 0;
  display: flex;
  gap: 16px;
}
.engagement-head .numeral {
  font-size: 14px;
  line-height: 30px;
  color: var(--color-accent-600);
  flex: none;
}
.engagement-head h3 {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(21px, 2.1vw, 27px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0;
}
.engagement-head p {
  margin: 10px 0 0;
  font-size: 15.5px;
  line-height: 26px;
  max-width: 32ch;
  color: var(--color-neutral-600);
}
.deliverables {
  flex: 1.5 1 300px;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px clamp(20px, 3vw, 44px);
  font-size: 15.5px;
  line-height: 26px;
  color: var(--color-neutral-700);
}
.deliverables li {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}
.deliverables li::before {
  content: "";
  height: 1px;
  background: var(--color-accent-600);
  margin-top: 13px;
}

/* — contact — */
.contact { padding: clamp(56px, 7vw, 112px) 0 clamp(40px, 5vw, 72px); }
.contact-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.contact .h-section { max-width: 24ch; }
.contact-lede {
  margin: 24px 0 0;
  max-width: 52ch;
  color: color-mix(in srgb, var(--color-text) 82%, transparent);
}
.contact-details {
  display: grid;
  gap: 28px;
}
.contact-card {
  font-size: 15.5px;
  display: grid;
  gap: 6px;
  color: color-mix(in srgb, var(--color-text) 78%, transparent);
}
.contact-card strong {
  font-weight: 500;
  font-family: var(--font-heading);
  font-size: 18px;
  color: var(--color-text);
}
.contact-details .btn { justify-self: start; }

/* — footer — */
.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  justify-content: space-between;
  align-items: center;
  padding: 28px 0 44px;
  border-top: 1px solid var(--color-neutral-900);
  font-size: 13px;
  color: color-mix(in srgb, var(--color-text) 55%, transparent);
}
.site-footer span { display: flex; align-items: center; gap: 10px; }
.site-footer svg { flex: none; }

/* — motion — */
@keyframes vc-spin { to { transform: rotate(360deg); } }
.vc-spin {
  transform-origin: 50% 50%;
  animation: vc-spin 240s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .vc-spin { animation: none; }
}
