/* =========================================================
   HSG Investments — styles.css
   ========================================================= */

:root {
  --black: #000000;
  --charcoal: #2a2b30;
  --charcoal-2: #3a3b40;
  --grey-900: #1a1b1e;
  --grey-500: #8a8b90;
  --grey-300: #c9c9cc;
  --grey-100: #f4f4f5;
  --white: #ffffff;
  --accent: #b0505a;

  --text-dark: #26272b;
  --text-light: #e9e9ec;

  --font: "Outfit", "Segoe UI", system-ui, -apple-system, sans-serif;

  --container: 1220px;
  --gutter: clamp(16px, 4vw, 48px);
  --section-pad: clamp(72px, 9vw, 120px);

  --ease-out: cubic-bezier(.22, .8, .26, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --header-h: 92px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--black);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

h1,
h2,
h3 {
  margin: 0;
  font-weight: 600;
  line-height: 1.2;
}

p {
  margin: 0 0 1.1em;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Shared backgrounds ---------- */
.bg-poly-dark,
.bg-poly-mid {
  position: relative;
  isolation: isolate;
  background-color: var(--grey-900);
}

.bg-poly-dark::before,
.bg-poly-mid::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("../images/bg-poly-dark.jpg") center / cover no-repeat;
}

.bg-poly-dark::before {
  opacity: .9;
}

.bg-poly-dark::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(0, 0, 0, .55), rgba(0, 0, 0, .35) 40%, rgba(0, 0, 0, .7));
}

.bg-poly-mid::before {
  opacity: .45;
  filter: brightness(1.05);
}

.bg-poly-mid {
  background-color: #3b3c40;
}

/* ---------- Typography helpers ---------- */
.section-title {
  font-size: clamp(28px, 3.4vw, 40px);
  margin-bottom: 28px;
  letter-spacing: -.01em;
}

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

.section-title.dark {
  color: var(--text-dark);
}

.section-intro {
  max-width: 880px;
  font-weight: 300;
}

.light {
  color: var(--text-light);
}

.sub-title {
  font-size: 20px;
  font-weight: 400;
  margin: 32px 0 6px;
}

.dash {
  display: block;
  width: 24px;
  height: 1px;
  margin: 0 0 22px 22px;
  background: var(--grey-300);
}

.dash.light {
  background: rgba(255, 255, 255, .55);
}

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 24px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  overflow: hidden;
  isolation: isolate;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), color .35s;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .45s var(--ease-out);
}

.btn span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn span::after {
  content: "→";
  display: inline-block;
  width: 0;
  opacity: 0;
  transform: translateX(-6px);
  transition: width .35s var(--ease-out), opacity .35s, transform .35s var(--ease-out);
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, .35);
}

.btn:hover::before,
.btn:focus-visible::before {
  transform: scaleX(1);
  transform-origin: left;
}

.btn:hover span::after,
.btn:focus-visible span::after {
  width: 14px;
  opacity: 1;
  transform: none;
}

.btn:active {
  transform: translateY(-1px) scale(.98);
}

.btn-dark {
  background: var(--charcoal);
  color: var(--white);
}

.btn-dark::before {
  background: var(--white);
}

.btn-dark:hover,
.btn-dark:focus-visible {
  color: var(--charcoal);
}

.btn-light {
  background: var(--grey-100);
  color: var(--charcoal);
}

.btn-light::before {
  background: var(--accent);
}

.btn-light:hover,
.btn-light:focus-visible {
  color: var(--white);
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  transition: height .4s var(--ease-out), background .4s, backdrop-filter .4s, box-shadow .4s;
}

.site-header.scrolled {
  --header-h: 68px;
  background: rgba(14, 14, 16, .82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .25);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand img {
  width: 180px;
  height: auto;
  transition: width .4s var(--ease-out);
}

.site-header.scrolled .brand img {
  width: 140px;
}

.main-nav {
  display: flex;
  gap: 28px;
}

.nav-link {
  position: relative;
  color: var(--white);
  font-weight: 600;
  font-size: 17px;
  padding: 4px 0;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .35s var(--ease-out);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--white);
  margin: 6px 0;
  transition: transform .3s var(--ease-out);
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

/* ---------- Orbit (rotating circular frames) ---------- */
.orbit {
  position: relative;
  aspect-ratio: 1;
}

.orbit-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.orbit-photo {
  position: absolute;
  border-radius: 50%;
  overflow: hidden;
}

.orbit-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.spin-slow {
  animation: spin 40s linear infinite;
}

.spin-slow.reverse {
  animation-duration: 32s;
  animation-direction: reverse;
}

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

/* ---------- PAGE 1: Hero ---------- */
.hero {
  min-height: min(100vh, 820px);
  padding-top: 100px;
  padding-bottom: 40px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.hero-rule {
  height: 1px;
  background: rgba(255, 255, 255, .18);
  margin-top: 32px;
}

.hero::after {
  background: linear-gradient(180deg, rgba(0, 0, 0, .5), rgba(0, 0, 0, .2) 50%, rgba(0, 0, 0, .55));
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: 48px;
  border-top: 1px solid rgba(255, 255, 255, .22);
  padding-top: 36px;
  flex: 1;
}

.eyebrow {
  color: var(--grey-300);
  font-size: 13px;
  letter-spacing: .06em;
  margin-bottom: 10px;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(32px, 4.2vw, 50px);
  line-height: 1.22;
  max-width: 520px;
  margin-bottom: 26px;
}

.hero-lead {
  color: var(--text-light);
  font-weight: 300;
  max-width: 500px;
  font-size: 15px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 30px;
}

.hero-visual {
  justify-self: center;
  width: min(100%, 380px);
}

.orbit-hero .orbit-photo {
  inset: 13%;
}

/* ---------- PAGE 2: About ---------- */
.about {
  background: var(--white);
  padding: var(--section-pad) 0 calc(var(--section-pad) * .8);
}

.about-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 56px;
  align-items: start;
}

.about-visual {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
}

.orbit-about {
  width: 300px;
}

/* Photo sits dead-centre inside the rotating ring (ring inner edge = 84% of the box) */
.orbit-about .orbit-photo {
  inset: 10%;
}

.est-badge {
  position: relative;
  width: 300px;
  padding: 20px 32px 20px 30px;
  background: var(--charcoal);
  color: var(--white);
  border-radius: 14px 60px 60px 14px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .18);
}

.est-label {
  display: block;
  font-size: 10px;
  line-height: 1.4;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--grey-300);
}

.est-year {
  display: block;
  font-size: 52px;
  font-weight: 600;
  line-height: 1;
  margin-top: 6px;
}

.est-accent {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--accent);
  margin-top: 12px;
}

.about-copy {
  text-align: justify;
  font-size: 16px;
  color: #1f2023;
  padding-top: 4px;
}

/* ---------- PAGE 2b: Consulting pills (3 + 2) ---------- */
.consulting {
  padding: var(--section-pad) 0;
}

.consulting .dash {
  margin-top: 32px;
  margin-bottom: 52px;
}

.pill-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 34px 44px;
}

.pill-card {
  grid-column: span 2;
}

.pill-card:nth-child(4) {
  grid-column: 2 / span 2;
}

.pill-card:nth-child(5) {
  grid-column: 4 / span 2;
}

.pill-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 98px;
  padding: 18px 30px;
  background: var(--white);
  color: var(--black);
  border-radius: 18px;
  text-align: center;
  font-weight: 600;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out), color .45s;
}

.pill-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--charcoal);
  clip-path: circle(0% at 50% 100%);
  transition: clip-path .55s var(--ease-out);
}

.pill-card::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 14px;
  width: 0;
  height: 2px;
  background: var(--accent);
  transform: translateX(-50%);
  transition: width .45s var(--ease-out) .1s;
}

.pill-card:hover,
.pill-card:focus-visible {
  transform: translateY(-8px);
  box-shadow: 0 22px 40px rgba(0, 0, 0, .4);
  color: var(--white);
}

.pill-card:hover::before,
.pill-card:focus-visible::before {
  clip-path: circle(150% at 50% 100%);
}

.pill-card:hover::after,
.pill-card:focus-visible::after {
  width: 32px;
}

/* ---------- PAGE 3: Services ---------- */
.services {
  position: relative;
  background: var(--black);
  padding: var(--section-pad) 0 calc(var(--section-pad) + 40px);
  overflow: hidden;
}


/* Contour-wedge halftone pinned to the top-right corner.
   The SVG animates its own lines (gentle wave); CSS adds the sweep-in and a slow fade pulse.
   Swap images/halftone.svg for images/halftone-short.svg (and use the .short class) for the compact version. */
.halftone {
  position: absolute;
  top: 0;
  right: 0;
  width: 420px;
  max-width: 55vw;
  opacity: .9;
  pointer-events: none;
  animation: breathe 8s ease-in-out infinite alternate;
}

.halftone.short {
  width: 240px;
}

/* Sweep in from the corner as the section scrolls into view (Chrome, Edge, Safari 26+; others just show it) */
@supports (animation-timeline: view()) {
  .halftone {
    animation: sweepIn linear both, breathe 8s ease-in-out infinite alternate;
    animation-timeline: view(), auto;
    animation-range: entry 0% cover 35%, normal;
  }
}

@keyframes sweepIn {
  from {
    clip-path: inset(0 0 0 100%);
    opacity: 0;
  }

  to {
    clip-path: inset(0 0 0 0);
    opacity: .9;
  }
}

@keyframes breathe {
  from {
    filter: brightness(1);
  }

  to {
    filter: brightness(.7);
  }
}




/* .halftone {
  position: absolute;
  top: -20px; right: 0;
  width: 120px;
  opacity: .75;
  pointer-events: none;
  animation: drift 16s ease-in-out infinite alternate;
}
@keyframes drift { to { transform: translateY(16px) rotate(3deg); } } */

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px 18px;
  margin-top: 36px;
}

.service-tile {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 98px;
  padding: 16px 24px;
  text-align: center;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.35;
  color: #111;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(255, 255, 255, .35);
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out), color .4s;
}

.service-tile::before {
  content: "";
  position: absolute;
  inset: -10%;
  z-index: -2;
  background: url("../images/bg-poly-light.jpg") center / cover;
  transition: transform .8s var(--ease-out), filter .5s;
}

.service-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(135deg, rgba(42, 43, 48, .92), rgba(0, 0, 0, .88));
  opacity: 0;
  transition: opacity .45s var(--ease-out);
}

.service-tile span {
  transition: transform .45s var(--ease-out);
}

.service-tile:hover,
.service-tile:focus-visible {
  transform: translateY(-6px);
  box-shadow: 0 18px 36px rgba(255, 255, 255, .08), 0 0 0 1px rgba(255, 255, 255, .6);
  color: var(--white);
}

.service-tile:hover::before,
.service-tile:focus-visible::before {
  transform: scale(1.12) rotate(1.5deg);
}

.service-tile:hover::after,
.service-tile:focus-visible::after {
  opacity: 1;
}

.service-tile:hover span,
.service-tile:focus-visible span {
  transform: scale(1.04);
}

/* ---------- PAGE 4: Experience ---------- */
.experience {
  position: relative;
  overflow-x: clip;
  background: var(--white);
  padding: var(--section-pad) 0;
}

.experience-photo {
  position: absolute;
  top: -80px;
  right: max(var(--gutter), calc((100vw - var(--container)) / 2 - 10px));
  width: 230px;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  z-index: 2;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .25);
}

.experience-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.experience-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 56px;
  align-items: start;
}

.project-pill {
  background: var(--black);
  color: var(--text-light);
  padding: 34px 120px 46px 28px;
  border-radius: 0 160px 160px 0 / 0 220px 220px 0;
  font-weight: 300;
  font-size: 15px;
}

.project-pill h3 {
  color: var(--white);
  font-size: 21px;
  margin: 22px 0 22px;
  font-weight: 600;
}

.accent-line {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--accent);
}

.relationships {
  padding-top: 56px;
}

.relationships h3 {
  font-size: 21px;
  margin-bottom: 26px;
}

.relationships p {
  font-weight: 300;
  font-size: 15px;
}

/* Slide-in from left */
.slide-from-left {
  opacity: 0;
  transform: translateX(-110%);
  transition: transform 1.1s var(--ease-out), opacity .9s ease;
}

.slide-from-left.in-view {
  opacity: 1;
  transform: none;
}

/* Zoom in: starts small, grows to full size */
.zoom-in {
  opacity: 0;
  transform: scale(.2);
  transition: transform 1.2s var(--ease-spring), opacity .8s ease;
}

.zoom-in.in-view {
  opacity: 1;
  transform: scale(1);
}

/* ---------- PAGE 5: People ---------- */
.people {
  padding: var(--section-pad) 0;
}

.people p {
  font-weight: 300;
  max-width: 900px;
}

.people-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
}

.employee-badge {
  text-align: center;
  color: var(--white);
  flex-shrink: 0;
  margin-right: 40px;
}

.badge-circle {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--white);
  color: var(--black);
  display: grid;
  place-items: center;
  font-size: 44px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 0 0 0 rgba(255, 255, 255, .4);
}

.employee-badge.in-view .badge-circle {
  animation: pulse 2.4s ease-out 1.6s 2;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, .45);
  }

  100% {
    box-shadow: 0 0 0 22px rgba(255, 255, 255, 0);
  }
}

.badge-label {
  display: block;
  margin-top: 6px;
  font-size: 16px;
}

.count {
  font-variant-numeric: tabular-nums;
}

.profile-table {
  margin: 40px 0 34px;
  border: 1px solid rgba(255, 255, 255, .35);
  color: var(--white);
  font-size: 14px;
}

.pt-row {
  display: grid;
  grid-template-columns: 1fr 140px 300px;
  align-items: center;
  min-height: 33px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  background: rgba(0, 0, 0, .35);
}

.pt-row>span {
  padding: 6px 16px;
}

.pt-row>span+span {
  border-left: 1px solid rgba(255, 255, 255, .18);
  height: 100%;
  display: flex;
  align-items: center;
}

.pt-row.alt {
  background: rgba(255, 255, 255, .28);
}

.pt-head {
  background: transparent;
  border-top: 0;
  min-height: 40px;
}

.pt-num {
  justify-content: center;
}

.pt-pct {
  gap: 12px;
}

.pt-head .pt-pct,
.pt-head .pt-num {
  justify-content: center;
}

.pt-pct .count {
  min-width: 40px;
  text-align: right;
}

.bar {
  flex: 1;
  height: 8px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .14);
  overflow: hidden;
}

.bar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #8d8e93, #ffffff);
  transition: width 1.6s var(--ease-out);
}

.pt-row.alt .bar {
  background: rgba(0, 0, 0, .25);
}

.pt-row.alt .bar i {
  background: linear-gradient(90deg, #4a4b50, #1a1b1e);
}

.pt-row:not(.pt-head) {
  transition: background .3s;
}

.pt-row:not(.pt-head):hover {
  background: rgba(255, 255, 255, .4);
}

/* ---------- PAGE 6: How we work ---------- */
.how {
  background: var(--white);
  padding: var(--section-pad) 0;
}

.how-grid {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 60px;
  align-items: center;
}

.how-copy p {
  color: #3a3b40;
  font-weight: 300;
  max-width: 660px;
}

.how-flow {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 36px 0;
  background: white;
  /* background: linear-gradient(180deg, #fafafa, #f2f2f3); */
  border-radius: 6px;
}

.flow-node {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--white);
  font-weight: 600;
  font-size: 14px;
  background:
    radial-gradient(circle at 35% 25%, rgba(255, 255, 255, .35), transparent 42%),
    radial-gradient(circle at 50% 55%, #3a3b40 0%, #141518 75%);
  border: 3px solid #d9d9db;
  box-shadow: 0 10px 22px rgba(0, 0, 0, .35), inset 0 -8px 16px rgba(0, 0, 0, .45);
  opacity: 0;
  transform: scale(.4) translateY(20px);
  transition: opacity .6s ease, transform .7s var(--ease-spring), box-shadow .4s;
}

.flow-node.on {
  opacity: 1;
  transform: none;
}

.flow-node:hover {
  box-shadow: 0 14px 30px rgba(0, 0, 0, .45), 0 0 0 6px rgba(176, 80, 90, .18), inset 0 -8px 16px rgba(0, 0, 0, .45);
}

.flow-line {
  width: 2px;
  height: 34px;
  background: #e2e2e4;
  overflow: hidden;
}

.flow-line i {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, var(--charcoal), var(--accent));
  transform: scaleY(0);
  transform-origin: top;
}

/* ---------- PAGE 7: Directors ---------- */
.directors {
  padding: var(--section-pad) 0 calc(var(--section-pad) + 30px);
}

.directors-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  padding: 28px;
  background: #f6f6f7;
  border-radius: 10px;
  margin-top: 48px;
}

.director-card {
  position: relative;
  background: var(--charcoal);
  color: var(--text-light);
  text-align: center;
  padding: 26px 30px 54px;
  outline: none;
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), filter .5s, opacity .5s;
}

.director-card h3 {
  color: var(--white);
  font-size: 24px;
  margin: 22px 0 18px;
}

.director-card p {
  font-size: 13.5px;
  font-weight: 300;
  max-width: 340px;
  margin: 0 auto;
}

.director-photo {
  position: relative;
  width: 260px;
  max-width: 80%;
  aspect-ratio: 1;
  margin: 0 auto;
}

.director-photo img {
  position: absolute;
  inset: 4%;
  width: 92%;
  height: 92%;
  object-fit: cover;
  border-radius: 50%;
  transition: transform .6s var(--ease-out);
}

.director-rings {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.director-rings .ring-a {
  transform-origin: 150px 150px;
  animation: spin 18s linear infinite;
}

.director-rings .ring-b {
  transform-origin: 150px 150px;
  animation: spin 26s linear infinite reverse;
}

.director-card:nth-child(2) .ring-a {
  animation-delay: -7s;
}

.director-card:nth-child(2) .ring-b {
  animation-delay: -11s;
}

/* Bring card forward on hover — individually */
.directors-panel:hover .director-card:not(:hover) {
  filter: brightness(.7);
}

.director-card:hover,
.director-card:focus-visible {
  z-index: 2;
  transform: translateY(-14px) scale(1.04);
  box-shadow: 0 30px 60px rgba(0, 0, 0, .45);
}

.director-card:hover .director-photo img,
.director-card:focus-visible .director-photo img {
  transform: scale(1.04);
}

.director-card:hover .ring-a,
.director-card:hover .ring-b {
  animation-duration: 6s;
}

/* ---------- Contact ---------- */
.contact {
  background: var(--white);
  padding: 64px 0 0;
}

.contact-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.contact .section-title {
  margin-bottom: 18px;
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-list li {
  margin-bottom: 10px;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 21px;
  color: var(--text-dark);
  padding: 4px 8px 4px 0;
  border-radius: 8px;
  transition: color .3s, transform .35s var(--ease-out);
}

.c-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--text-dark);
  display: grid;
  place-items: center;
  transition: background .35s, border-color .35s, transform .45s var(--ease-spring);
}

.c-icon svg {
  width: 17px;
  height: 17px;
  fill: var(--text-dark);
  transition: fill .35s;
}

.contact-link>span:last-child {
  background: linear-gradient(var(--accent), var(--accent)) left bottom / 0 2px no-repeat;
  transition: background-size .4s var(--ease-out);
}

.contact-link:hover,
.contact-link:focus-visible {
  transform: translateX(6px);
}

.contact-link:hover .c-icon,
.contact-link:focus-visible .c-icon {
  background: var(--charcoal);
  border-color: var(--charcoal);
  transform: rotate(-12deg) scale(1.1);
}

.contact-link:hover .c-icon svg,
.contact-link:focus-visible .c-icon svg {
  fill: var(--white);
}

.contact-link:hover>span:last-child,
.contact-link:focus-visible>span:last-child {
  background-size: 100% 2px;
}

.contact-logo {
  width: 240px;
}

.footer-bar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 56px;
  padding-top: 20px;
  padding-bottom: 24px;
  position: relative;
  font-size: 13px;
  color: #6b6c70;
}

.footer-bar::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--gutter);
  right: var(--gutter);
  height: 1px;
  background: #e5e5e7;
}

.to-top {
  transition: color .3s;
}

.to-top:hover {
  color: var(--accent);
}

/* ---------- Scroll reveal (seamless flow) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s ease, transform .9s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 110ms);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity .9s ease, transform 1s var(--ease-out) .25s;
}

.reveal-scale {
  opacity: 0;
  transform: scale(.85);
  transition: opacity 1s ease, transform 1.2s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 110ms);
}

.reveal.in-view,
.reveal-left.in-view,
.reveal-scale.in-view {
  opacity: 1;
  transform: none;
}

/* Cards that both reveal on scroll and lift on hover */
.pill-card.reveal,
.service-tile.reveal {
  transition: opacity .9s ease, transform .55s var(--ease-out), box-shadow .45s var(--ease-out), color .45s;
  transition-delay: calc(var(--d, 0) * 110ms);
}

.pill-card.in-view:hover,
.pill-card.in-view:focus-visible {
  transform: translateY(-8px);
}

.service-tile.in-view:hover,
.service-tile.in-view:focus-visible {
  transform: translateY(-6px);
}

/* Page load fade */
body {
  animation: pageIn .8s ease both;
}

@keyframes pageIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .hero-visual {
    order: -1;
    width: min(70%, 320px);
  }

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

  .about-visual {
    max-width: 340px;
    margin-bottom: 40px;
  }

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

  .experience-photo {
    position: relative;
    top: 0;
    right: auto;
    margin: 0 auto 36px;
    width: 200px;
  }

  .project-pill {
    padding-right: 64px;
  }

  .relationships {
    padding-top: 0;
  }

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

  .how-flow {
    max-width: 320px;
    margin: 0 auto;
    width: 100%;
  }

  .pt-row {
    grid-template-columns: 1fr 80px 180px;
  }
}

@media (max-width: 760px) {
  :root {
    --header-h: 72px;
  }

  .brand img {
    width: 140px;
  }

  .nav-toggle {
    display: block;
    position: relative;
    z-index: 2;
  }

  .main-nav {
    position: fixed;
    inset: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    background: rgba(10, 10, 12, .96);
    opacity: 0;
    pointer-events: none;
    transition: opacity .35s ease;
  }

  .main-nav.open {
    opacity: 1;
    pointer-events: auto;
  }

  .main-nav .nav-link {
    font-size: 26px;
  }

  .pill-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .pill-card,
  .pill-card:nth-child(4),
  .pill-card:nth-child(5) {
    grid-column: auto;
    min-height: 80px;
  }

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

  .people-head {
    flex-direction: column-reverse;
  }

  .employee-badge {
    margin: 0;
  }

  .pt-row {
    grid-template-columns: 1fr 52px 120px;
    font-size: 13px;
  }

  .pt-row>span {
    padding: 6px 10px;
  }

  .directors-panel {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .orbit-about,
  .est-badge {
    width: 260px;
  }

  .contact-link {
    font-size: 18px;
  }
}

@media (max-width: 760px) {

  /* .halftone { width: 80px; top: -10px; right: 0; opacity: .4; } */
  .halftone,
  .halftone.short {
    width: 200px;
    opacity: .45;
    animation: none;
  }

  .about-copy {
    text-align: left;
  }
}

@media (max-width: 480px) {
  .service-grid {
    grid-template-columns: 1fr;
  }

  .pt-row {
    grid-template-columns: 1fr 56px 72px;
    font-size: 12px;
  }

  .pt-row>span {
    padding: 6px 8px;
  }

  .pt-head span {
    font-size: 10.5px;
  }

  .pt-row:not(.pt-head) .pt-pct {
    flex-direction: column-reverse;
    justify-content: center;
    align-items: stretch;
    gap: 4px;
  }

  .pt-pct .bar {
    flex: none;
    height: 5px;
  }

  .pt-pct .count {
    min-width: 0;
    text-align: center;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    transition-delay: 0s !important;
  }
}

/* =========================================================
   About — decorative geometric facets (option C5)
   ========================================================= */
.about { position: relative; overflow: hidden; isolation: isolate; }
.about > .container { position: relative; z-index: 1; }

.about-geo {
  position: absolute;
  /* top: -100px; right: 0; bottom: 100px; */
  top: -80px; bottom: 80px;
  right: max(var(--gutter), calc((100% - var(--container)) / 2 - 100px));   /* = right edge of the centred body */
  width: 420px;
  z-index: 0;
  pointer-events: none;
}
/* The wrapper only fades; the facets do their own movement */
.about-geo.reveal { transform: none; }

.geo {
  position: absolute;
  display: block;
  opacity: 0;
  transform: translate(var(--fx, 60px), var(--fy, 40px)) rotate(calc(var(--r) + var(--fr, 25deg))) scale(.85);
  transition:
    opacity 1s ease,
    transform 1.6s var(--ease-out);
  transition-delay: calc(var(--i) * 140ms + 200ms);
}
.geo svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  animation: geoFloat var(--float, 11s) ease-in-out infinite alternate;
  animation-delay: calc(var(--i) * -1.7s);
}
.geo path { stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.geo.outline path { fill: none; stroke: #d9d9dd; stroke-width: 1.4; }
.geo.fill path    { fill: #f1f1f3; stroke: none; }

/* Drift into place, one by one */
.about-geo.in-view .geo { opacity: 1; transform: rotate(var(--r)); }

@keyframes geoFloat {
  from { transform: translate(0, 0) rotate(0deg); }
  to   { transform: translate(-6px, 14px) rotate(3deg); }
}

/* Position, size, resting angle, entry offset per facet */
/* .geo-1 { --i: 0; --r: -10deg; right: 40px;  top: 1%;  width: 260px; --fx: 80px;  --fy: -40px; --float: 12s; }
.geo-2 { --i: 1; --r:   8deg; right: -70px; top: 16%; width: 330px; --fx: 120px; --fy: 20px;  --float: 14s; }
.geo-3 { --i: 2; --r:  -4deg; right: 60px;  top: 39%; width: 220px; --fx: 70px;  --fy: 50px;  --float: 10s; }
.geo-4 { --i: 3; --r:  14deg; right: -40px; top: 42%; width: 300px; --fx: 110px; --fy: -30px; --float: 13s; }
.geo-5 { --i: 4; --r: -12deg; right: 30px;  top: 73%; width: 200px; --fx: 60px;  --fy: 60px;  --float: 11s; }
.geo-6 { --i: 5; --r:   5deg; right: -60px; top: 81%; width: 260px; --fx: 100px; --fy: 40px;  --float: 15s; } */

.geo-1 { --i: 0; --r: -10deg; right: 150px; top: 1%;  width: 240px; --fx: 80px;  --fy: -40px; --float: 12s; }
.geo-2 { --i: 1; --r:   8deg; right: 0;     top: 16%; width: 300px; --fx: 120px; --fy: 20px;  --float: 14s; }
.geo-3 { --i: 2; --r:  -4deg; right: 190px; top: 39%; width: 200px; --fx: 70px;  --fy: 50px;  --float: 10s; }
.geo-4 { --i: 3; --r:  14deg; right: 10px;  top: 42%; width: 280px; --fx: 110px; --fy: -30px; --float: 13s; }
.geo-5 { --i: 4; --r: -12deg; right: 200px; top: 73%; width: 190px; --fx: 60px;  --fy: 60px;  --float: 11s; }
.geo-6 { --i: 5; --r:   5deg; right: 20px;  top: 81%; width: 240px; --fx: 100px; --fy: 40px;  --float: 15s; }

/* Narrower screens: pull the facets further out of the text's way, then hide on phones */
@media (max-width: 1200px) {
  /* .about-geo { width: 340px; right: -80px; opacity: .8; } */
  .about-geo { opacity: .75; }
}
@media (max-width: 980px) {
  .about-geo { display: none; }
}

/* =========================================================
   How we work — the same facets, mirrored onto the left side
   ========================================================= */
.how { position: relative; overflow: hidden; isolation: isolate; }
.how > .container { position: relative; z-index: 1; }

.how-geo {
  position: absolute;
  /*top: -80px; left: 0; bottom: 80px;*/
  top: -80px; bottom: 80px;
  left: max(var(--gutter), calc((100% - var(--container)) / 2 - 100px));    /* = left edge of the centred body */
  width: 420px;
  z-index: 0;
  pointer-events: none;
}
/* Mirror the whole group: the .geo-1 to .geo-6 positions now measure from the left edge */
.how-geo.reveal,
.how-geo.reveal.in-view { transform: scaleX(-1); }
.how-geo.in-view .geo { opacity: 1; transform: rotate(var(--r)); }

@media (max-width: 1200px) {
  /* .how-geo { width: 340px; left: -80px; opacity: .8; } */
    .how-geo { opacity: .75; }
}
@media (max-width: 980px) {
  .how-geo { display: none; }
}

/* =========================================================
   MOBILE-ONLY OVERRIDES (≤ 760px) — desktop is untouched
   ========================================================= */
@media (max-width: 760px) {

  /* ---- Nav: full-screen menu ----
     backdrop-filter on the scrolled header traps the fixed menu inside the 68px bar,
     which is what cut off the top link. Drop it on mobile and size the menu to the screen. */
  .site-header.scrolled { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(14,14,16,.96); }
  .main-nav {
    top: 0; left: 0; right: 0; bottom: auto;
    height: 100vh; height: 100dvh;
    padding: 80px 24px 40px;
    gap: 34px;
    background: #0b0b0d;
  }

  /* ---- Hero: no circular image, buttons side by side ---- */
  .hero { min-height: auto; padding-top: 88px; padding-bottom: 32px; }
  .hero-visual { display: none; }
  .hero-grid { padding-top: 28px; }
  .hero h1 { font-size: 30px; margin-bottom: 18px; }
  .hero-actions { flex-wrap: nowrap; gap: 10px; margin-top: 24px; }
  .hero-actions .btn { flex: 1 1 0; padding: 10px 12px; font-size: 12.5px; text-align: center; white-space: nowrap; }

  /* ---- About: small image with the 2017 badge beside it ---- */
  .about-grid { gap: 28px; }
  .about-visual { flex-direction: row; align-items: center; gap: 16px; max-width: none; margin-bottom: 0; }
  .orbit-about { width: 140px; flex-shrink: 0; }
  .est-badge { width: auto; flex: 1; max-width: 190px; padding: 14px 22px 14px 18px; border-radius: 10px 40px 40px 10px; }
  .est-year { font-size: 36px; }
  .est-label { font-size: 9px; }

  /* ---- Consulting: 2 × 2, fifth card centred on row 3 ---- */
  .pill-grid { grid-template-columns: repeat(4, 1fr); gap: 12px; }
  .pill-card,
  .pill-card:nth-child(4) { grid-column: span 2; }
  .pill-card:nth-child(5) { grid-column: 2 / span 2; }
  .pill-card { min-height: 72px; padding: 12px 14px; font-size: 13px; border-radius: 14px; }
  .consulting .dash { margin-top: 20px; margin-bottom: 28px; }

  /* ---- Services: 2 columns, a leftover tile centred on the last row ---- */
  .service-grid { grid-template-columns: repeat(4, 1fr); gap: 10px; }
  .service-tile { grid-column: span 2; min-height: 78px; padding: 10px 12px; font-size: 13px; }
  .service-tile:last-child:nth-child(odd) { grid-column: 2 / span 2; }

  /* ---- Project experience: no crane circle ---- */
  .experience-photo { display: none; }
  .project-pill { padding: 28px 48px 34px 22px; }

  /* ---- People: 25 badge beside the heading ---- */
  .people-head { flex-direction: row; align-items: center; justify-content: space-between; gap: 16px; }
  .people-head .section-title { margin-bottom: 14px; }
  .employee-badge { margin: 0; }
  .badge-circle { width: 64px; height: 64px; font-size: 32px; }
  .badge-label { font-size: 13px; }

  /* ---- How we work: text only ---- */
  .how-flow { display: none; }

  /* ---- Directors: cards fit the screen ---- */
  .directors-panel { grid-template-columns: minmax(0, 1fr); padding: 12px; gap: 16px; margin-top: 28px; }
  .director-card { padding: 22px 18px 32px; min-width: 0; }
  .director-photo { width: min(220px, 75%); max-width: none; }
  .director-card h3 { font-size: 21px; margin: 18px 0 12px; }
  .director-card p { font-size: 13px; }
  .director-card:hover, .director-card:focus-visible { transform: translateY(-6px) scale(1.02); }
}

/* Very narrow phones (≤ 360px) */
@media (max-width: 360px) {
  .hero-actions .btn { font-size: 11.5px; padding: 10px 8px; }
  .orbit-about { width: 120px; }
  .est-year { font-size: 30px; }
  .pill-card, .service-tile { font-size: 12px; }
}