/* ════════════════════════════════════════════════════════════════
   ReimagineIT · Direction B preview (bold editorial dark)
   with Direction C's warm sand used for "Meet the leaders".
   Loads AFTER styles.css. PREVIEW ONLY: not live.
   Safari-safe: explicit top/right/bottom/left (no `inset`),
   100vh before 100svh, padding-top aspect locks before aspect-ratio.
════════════════════════════════════════════════════════════════ */

:root {
  --max-w: 1440px;
  --pad-x: clamp(20px, 5.6vw, 80px);
  --sand: #F6F1E9;
  --sand-deep: #EDE5D8;
  --sand-line: rgba(13,17,23,.12);
  --ink: #0D1117;
  --teal-ink: #007A5A;           /* teal text on light, AA on sand */
  --grad: linear-gradient(90deg, #07F0A9, #00D4FF);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

.container { padding-left: var(--pad-x); padding-right: var(--pad-x); }
:root { --nav-h: 68px; --chips-h: 56px; }
/* JS owns in-page scrolling. CSS smooth on html fights window.scrollTo on iOS Safari. */
html { scroll-behavior: auto; scroll-padding-top: calc(var(--nav-h) + var(--chips-h) + 12px); }
/* overflow-x: hidden on body breaks position: sticky on iOS. clip does not create a scroll container. */
html, body { overflow-x: clip; }
.navbar { height: var(--nav-h); }
.service-detail, .service-detail h2, .leadership, .section[id], #services { scroll-margin-top: calc(var(--nav-h) + var(--chips-h) + 12px); }


/* ── Type: bigger, tighter, left-aligned ── */
.section { padding: clamp(72px, 10vw, 140px) 0; }
.section__header { text-align: left; max-width: none; margin: 0 0 clamp(40px, 5vw, 72px); }
.section__header--split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 6vw, 96px); align-items: end; }
.section__header--split .section__subtitle { margin: 0; max-width: 560px; }
.section__eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--clr-accent);
  margin-bottom: 20px;
}
.section__title {
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 5.2vw, 4.5rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  max-width: 16ch;
}
.section__header--split .section__title { max-width: 17ch; }
.section__subtitle { font-size: 1.05rem; line-height: 1.7; color: var(--clr-muted); margin-left: 0; margin-right: 0; }
.section__cta { text-align: left; margin-top: clamp(32px, 4vw, 56px); }

/* ── Buttons: pill, confident ── */
.btn { border-radius: 999px; letter-spacing: -0.005em; }
.btn--primary { color: var(--ink); }
.btn--ghost { border: 1px solid rgba(255,255,255,.35); color: #fff; }
.btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }

/* ── Navbar ── */
.navbar__inner { max-width: var(--max-w); padding-left: var(--pad-x); padding-right: var(--pad-x); }

/* ════════════ HERO ════════════ */
.hero--b {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-end;
  padding: 140px 0 0;
  overflow: hidden;
  background: var(--clr-bg);
}
.hero--b .hero__visual { z-index: 0; }
.hero--b .hero__visual img {
  -webkit-transform: scale(1.08);
  transform: scale(1.08);
  object-position: 70% 50%;
}
.hero__scrim {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(13,17,23,.92) 0%, rgba(13,17,23,.72) 38%, rgba(13,17,23,.18) 75%, rgba(13,17,23,.05) 100%),
    linear-gradient(0deg, rgba(13,17,23,1) 0%, rgba(13,17,23,.0) 34%);
}
.hero--b .hero__bg-grid, .hero--b .hero__glow { display: none; }
.hero--b .hero__content {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  margin: 0 auto;
  align-items: flex-start;
  text-align: left;
  gap: 0;
  padding-bottom: clamp(56px, 7vw, 96px);
}
.hero__eyebrow {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--clr-accent);
  margin-bottom: clamp(20px, 2.4vw, 32px);
}
.hero--b .hero__heading {
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: clamp(2.7rem, 8.06vw, 8.25rem);
  line-height: .98;
  letter-spacing: -0.045em;
  color: #fff;
  text-align: left;
  margin: 0 0 clamp(32px, 4vw, 56px);
}
.hero--b .hero__heading .line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.hero--b .hero__heading .line__in { display: block; }
.hero--b .hero__heading .gradient-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  display: inline-block;
  padding-bottom: .06em;
}
.hero__row {
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(24px, 5vw, 80px);
  flex-wrap: wrap;
}
.hero--b .hero__subheading {
  max-width: 560px;
  text-align: left;
  font-size: 1.02rem;
  line-height: 1.7;
  color: rgba(241,245,249,.82);
  margin: 0;
}
.hero--b .hero__cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-start; }
.hero__scroll {
  position: absolute;
  z-index: 2;
  right: var(--pad-x);
  top: 50%;
  display: flex; align-items: center; gap: 14px;
  font-size: .7rem; letter-spacing: .24em; text-transform: uppercase;
  color: rgba(255,255,255,.55);
  -webkit-writing-mode: vertical-rl; writing-mode: vertical-rl;
}
.hero__scroll i { display: block; width: 1px; height: 64px; background: rgba(255,255,255,.25); position: relative; overflow: hidden; }
.hero__scroll i::after { content: ''; position: absolute; top: 0; left: 0; width: 1px; height: 24px; background: var(--clr-accent); }

/* ── Outcome strip ── */
.outcomes { border-bottom: 1px solid var(--clr-border); background: var(--clr-bg); }
.outcomes__inner { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); }
.outcome { display: flex; align-items: center; gap: 18px; padding: 36px 0; }
.outcome + .outcome { padding-left: clamp(20px, 3vw, 48px); border-left: 1px solid var(--clr-border); }
.outcome .ui-icon img { width: 36px; height: 36px; }
.outcome strong { display: block; font-family: var(--ff-display); font-weight: 700; font-size: 1.15rem; letter-spacing: -0.02em; color: #fff; }
.outcome span:not(.ui-icon) { display: block; font-size: .9rem; color: var(--clr-muted); margin-top: 2px; }

/* ════════════ NUMBERED PILLAR ROWS ════════════ */
.services--rows { padding-bottom: clamp(72px, 9vw, 128px); }
.pillar-rows { counter-reset: none; border-top: 1px solid var(--clr-border); }
.pillar-row-wrap { border-bottom: 1px solid var(--clr-border); position: relative; transition: background .4s ease; }
.pillar-row-wrap:hover { background: rgba(7,240,169,.045); }
.pillar-row {
  display: grid;
  grid-template-columns: clamp(64px, 8vw, 128px) minmax(0, 1.05fr) minmax(0, 1fr) clamp(200px, 19vw, 280px) 56px;
  gap: clamp(20px, 3vw, 48px);
  align-items: center;
  padding-top: clamp(32px, 4vw, 52px);
  padding-bottom: clamp(32px, 4vw, 52px);
  color: inherit;
}
.pillar-row__num {
  font-family: var(--ff-display); font-weight: 800;
  font-size: clamp(2.4rem, 4.4vw, 4.25rem); line-height: 1; letter-spacing: -0.04em;
  color: var(--clr-accent);
}
.pillar-row__eyebrow { display: block; font-size: .74rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--clr-muted); margin-bottom: 12px; }
.pillar-row__title { display: block; font-family: var(--ff-display); font-weight: 700; font-size: clamp(1.5rem, 2.5vw, 2.4rem); line-height: 1.08; letter-spacing: -0.03em; color: #fff; }
.pillar-row__desc { font-size: .98rem; line-height: 1.7; color: var(--clr-muted); }
.pillar-row__thumb { position: relative; display: block; width: 100%; height: 0; padding-top: 62.5%; overflow: hidden; border-radius: 16px; background: var(--clr-card); }
.pillar-row__thumb picture, .pillar-row__thumb img {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0;
  display: block; width: 100%; height: 100%; max-width: none; object-fit: cover;
}
.pillar-row__thumb img { -webkit-transition: -webkit-transform .8s var(--ease-out); transition: transform .8s var(--ease-out); }
.pillar-row:hover .pillar-row__thumb img { -webkit-transform: scale(1.06); transform: scale(1.06); }
.pillar-row__go {
  justify-self: end; display: flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.25); color: #fff; font-size: 1.2rem;
  transition: background .3s ease, color .3s ease, border-color .3s ease, transform .4s var(--ease-out);
}
.pillar-row:hover .pillar-row__go { background: var(--clr-accent); border-color: var(--clr-accent); color: var(--ink); transform: translateX(6px); }
@supports (aspect-ratio: 1 / 1) {
  .pillar-row__thumb { height: auto; padding-top: 0; aspect-ratio: 8 / 5; }
}
/* Fourth pillar: the gradient row, "A New Way of Operating" */
.pillar-row-wrap--gradient { background: var(--grad); border-bottom-color: transparent; }
.pillar-row-wrap--gradient:hover { background: var(--grad); }
.pillar-row-wrap--gradient .pillar-row__num,
.pillar-row-wrap--gradient .pillar-row__title { color: var(--ink); }
.pillar-row-wrap--gradient .pillar-row__eyebrow,
.pillar-row-wrap--gradient .pillar-row__desc { color: rgba(13,17,23,.82); }
.pillar-row-wrap--gradient .pillar-row__go { border-color: rgba(13,17,23,.4); color: var(--ink); }
.pillar-row-wrap--gradient .pillar-row:hover .pillar-row__go { background: var(--ink); border-color: var(--ink); color: #fff; }
.pillar-row-wrap--gradient .pillar-row__thumb { background: rgba(13,17,23,.2); }

/* ════════════ WHY US ════════════ */
.why-us--b { background: var(--clr-bg); }
.why-us--b .why-us__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
.why-us--b .why-us__text { position: relative; top: 0; display: flex; flex-direction: column; align-items: flex-start; }
.why-us--b .section__title { max-width: 20ch; }
.why-us--b .why-us__text p { color: var(--clr-muted); font-size: 1.05rem; line-height: 1.75; margin: 28px 0 36px; max-width: 520px; }
.principles { border-top: 1px solid var(--clr-border); }
.principles li { display: flex; align-items: center; gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--clr-border); font-size: 1.05rem; line-height: 1.55; color: var(--clr-muted); }
.principles li strong { display: block; font-family: var(--ff-display); font-weight: 700; font-size: 1.3rem; letter-spacing: -0.02em; color: #fff; margin-bottom: 4px; }
.principles .ui-icon { flex: 0 0 auto; }
.principles .ui-icon img { width: 36px; height: 36px; }

/* ── Photo band: full width of the grid, sharper corners ── */
.photo-band { padding: 0 0 clamp(72px, 9vw, 128px); }
.photo-band__frame { border-radius: 24px; }

/* ── Who we work with: ruled columns ── */
.sme-b { background: var(--clr-bg2); }
.sme-b .values-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: clamp(24px, 3vw, 48px); }
.value-card { background: none; border: none; border-top: 1px solid rgba(255,255,255,.18); border-radius: 0; padding: 32px 0 0; text-align: left; box-shadow: none; }
.value-card:hover { background: none; transform: none; box-shadow: none; border-top-color: var(--clr-accent); }
.value-card .ui-icon { margin: 0 0 24px; justify-content: flex-start; }
.value-card h3 { font-family: var(--ff-display); font-weight: 700; font-size: 1.35rem; letter-spacing: -0.025em; line-height: 1.2; margin-bottom: 12px; color: #fff; }
.value-card p { color: var(--clr-muted); font-size: .96rem; line-height: 1.7; }

/* ── Process: numbers on a rule ── */
.process { background: var(--clr-bg); }
.process .section__header { margin-bottom: clamp(40px, 5vw, 72px); }
.process__steps { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: clamp(24px, 3vw, 48px); }
.process__steps::before { display: none; }
.process__step { display: block; background: none; border: none; border-top: 1px solid rgba(255,255,255,.18); border-radius: 0; padding: 28px 0 0; text-align: left; }
.process__step .process__num {
  display: block; padding: 0; margin-left: 0; align-self: auto; width: auto; height: auto; background: none; border: none; border-radius: 0;
  font-family: var(--ff-display); font-weight: 800; font-size: clamp(3rem, 5vw, 5rem); line-height: 1;
  letter-spacing: -0.045em; margin-bottom: 28px;
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.process__step h3 { font-family: var(--ff-display); font-size: 1.35rem; font-weight: 700; letter-spacing: -0.025em; margin-bottom: 12px; color: #fff; }
.process__step p { color: var(--clr-muted); font-size: .95rem; line-height: 1.7; }

/* ════════════ CTA BAND: the gradient closer ════════════ */
.cta-band { background: var(--grad); border-top: none; padding: clamp(72px, 10vw, 150px) 0; color: var(--ink); }
.cta-band__glow { display: none; }
.cta-band__inner { max-width: var(--max-w); text-align: left; align-items: flex-start; gap: 0; margin: 0 auto; }
.cta-band__inner h2 {
  font-family: var(--ff-display); font-weight: 800; color: var(--ink);
  font-size: clamp(2.4rem, 6.4vw, 6.5rem); line-height: 1; letter-spacing: -0.045em; max-width: 18ch;
  margin-bottom: clamp(24px, 3vw, 40px);
}
.cta-band__inner p { color: rgba(13,17,23,.85); font-size: 1.12rem; max-width: 560px; margin-bottom: 36px; }
.cta-band__actions { justify-content: flex-start; }
.cta-band .btn--primary { background: var(--ink); color: #fff; border-color: var(--ink); box-shadow: none; }
.cta-band .btn--primary:hover { background: #000; color: #fff; }
.cta-band .btn--ghost { color: var(--ink); border-color: rgba(13,17,23,.5); }
.cta-band .btn--ghost:hover { background: rgba(13,17,23,.08); border-color: var(--ink); color: var(--ink); }

/* Home closer is the loudest */
.hero--b ~ .cta-band .cta-band__inner h2 { font-size: clamp(2.6rem, 8.06vw, 8rem); line-height: .98; }

/* ── Footer ── */
.footer__inner, .footer__bottom-inner { max-width: var(--max-w); }
.footer__inner { padding-left: var(--pad-x); padding-right: var(--pad-x); }
.footer__bottom { padding-left: 0; padding-right: 0; }
.footer__bottom .container { padding-left: var(--pad-x); padding-right: var(--pad-x); }

/* ════════════ INNER PAGE HEROES ════════════ */
.page-hero { text-align: left; }
.page-hero--photo {
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 560px; min-height: 78vh; min-height: clamp(560px, 78vh, 820px);
  padding: 140px 0 clamp(56px, 7vw, 96px);
}
.page-hero--photo .page-hero__bg::after {
  content: ''; position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%;
  background:
    linear-gradient(90deg, rgba(13,17,23,.92) 0%, rgba(13,17,23,.66) 45%, rgba(13,17,23,.15) 100%),
    linear-gradient(0deg, rgba(13,17,23,1) 0%, rgba(13,17,23,0) 40%);
}
.page-hero--photo .container { max-width: var(--max-w); text-align: left; }
.page-hero--photo .section__eyebrow { color: var(--clr-accent); }
.page-hero--photo h1 {
  font-family: var(--ff-display); font-weight: 800; text-align: left;
  font-size: clamp(2.6rem, 7vw, 6.5rem); line-height: 1; letter-spacing: -0.045em;
  max-width: 14ch; margin: 0 0 28px; color: #fff;
}
.page-hero--photo p { text-align: left; margin: 0; max-width: 560px; font-size: 1.08rem; line-height: 1.7; color: rgba(241,245,249,.85); }
.page-hero--photo .gradient-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }

/* ════════════ SERVICES PAGE: numbered chapters ════════════ */
.services-list { counter-reset: svc; padding: clamp(40px, 6vw, 88px) 0 clamp(72px, 9vw, 128px); }
.services-list .container { display: flex; flex-direction: column; gap: clamp(56px, 7vw, 104px); }
.service-detail { counter-increment: svc; border-top: 1px solid rgba(255,255,255,.16); padding-top: clamp(32px, 4vw, 56px); align-items: start; gap: clamp(32px, 6vw, 96px); }
.service-detail:nth-child(even) { direction: ltr; }
.service-detail__text::before {
  content: counter(svc, decimal-leading-zero);
  display: block; font-family: var(--ff-display); font-weight: 800;
  font-size: clamp(3.5rem, 7vw, 6.5rem); line-height: .95; letter-spacing: -0.05em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent; margin-bottom: 8px;
}
.service-detail__text h2 { font-size: clamp(1.8rem, 3.2vw, 3rem); letter-spacing: -0.035em; line-height: 1.06; }
.service-detail__visual { border-radius: 24px; }
.service-detail__text { position: relative; align-items: flex-start; }
.service-detail__icon { position: absolute; top: 6px; right: 0; margin: 0; }
.service-detail__text .btn { align-self: flex-start; }
.service-detail__text .service-offers { align-self: stretch; width: 100%; }
.service-detail__text ul { align-self: stretch; }

/* Fourth chapter: "A New Way of Operating", the gradient panel */
.service-detail:last-child {
  background: var(--grad); color: var(--ink); border-top: none;
  border-radius: 32px; padding: clamp(28px, 4.5vw, 72px);
}
.service-detail:last-child .service-detail__text::before { background: none; -webkit-text-fill-color: var(--ink); color: var(--ink); }
.service-detail:last-child h2,
.service-detail:last-child h3,
.service-detail:last-child strong,
.service-detail:last-child .section__eyebrow,
.service-detail:last-child .service-detail__eyebrow { color: var(--ink); }
.service-detail:last-child p,
.service-detail:last-child li { color: rgba(13,17,23,.88); }
.service-detail:last-child .service-detail__icon img,
.service-detail:last-child .service-offer img { -webkit-filter: brightness(0); filter: brightness(0); opacity: .9; }
.service-detail:last-child .service-offer { background: rgba(13,17,23,.06); border-color: rgba(13,17,23,.22); }
/* Outcomes lists: hide the old 6px teal dots (invisible on the gradient, and the source of the green smudge). */
.service-detail__outcomes li::before,
.service-detail:last-child .service-detail__outcomes li::before {
  content: none; display: none; width: 0; height: 0; background: none;
  -webkit-filter: none; filter: none; box-shadow: none;
}
.service-detail__outcomes ul { list-style: none; gap: 14px; }
.service-detail__outcomes li {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: .95rem; line-height: 1.55;
}
.service-detail__outcomes .check-icon {
  flex: 0 0 auto; width: 22px; height: 22px; margin-top: 1px;
  background: rgba(7, 240, 169, .14);
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
}
.service-detail__outcomes .check-icon img { width: 12px; height: 12px; display: block; }
.service-detail:last-child .service-detail__outcomes h4 { color: var(--ink); letter-spacing: .12em; }
.service-detail:last-child .service-detail__outcomes li { color: rgba(13,17,23,.9); }
.service-detail:last-child .service-detail__outcomes .check-icon {
  background: rgba(13,17,23,.16);
  border: 1px solid rgba(13,17,23,.28);
}
.service-detail:last-child .service-detail__outcomes .check-icon img {
  -webkit-filter: none; filter: none; opacity: 1;
}
/* Kill the leftover teal overlay on the chapter 04 photo (it read as a green smudge beside the list). */
.service-detail:last-child .service-detail__visual::after { display: none; background: none; border: none; }
.service-detail:last-child .service-detail__visual img { filter: none; -webkit-filter: none; }
.service-detail:last-child .btn--primary { background: var(--ink); color: #fff; border-color: var(--ink); }
.service-detail:last-child .btn--outline,
.service-detail:last-child .btn--ghost { color: var(--ink); border-color: rgba(13,17,23,.5); }
.service-detail:last-child .service-detail__visual { border: none; }

/* FAQ blocks: ruled, quieter */
.faq-grid { gap: 0 clamp(32px, 5vw, 80px); }
.faq-item { background: none; border: none; border-top: 1px solid rgba(255,255,255,.16); border-radius: 0; padding: 28px 0; }
.faq-item h3 { font-size: 1.1rem; font-family: var(--ff-display); font-weight: 700; letter-spacing: -0.025em; color: #fff; }

/* ════════════ ABOUT ════════════ */
.about-story { padding: clamp(72px, 9vw, 128px) 0; }
.about-story .section__title, .about-values .section__title { max-width: 18ch; }
.about-values .values-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: clamp(28px, 4vw, 56px) clamp(24px, 3vw, 48px); }
.about-values .section__header { text-align: left; max-width: none; }

/* ═════ Direction C borrowed: warm sand "Meet the leaders" ═════ */
.leadership--sand { background: var(--sand); color: var(--ink); position: relative; }
.leadership--sand .section__eyebrow { color: var(--teal-ink); }
.leadership--sand .section__title { color: var(--ink); }
.leadership--sand .section__subtitle { color: #4A4F57; }
.leadership--sand .leadership-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); align-items: stretch; }
.leadership--sand .leadership-grid .leader-card--founder { grid-column: 1 / 3; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
.leadership--sand .leadership-grid .leader-card--founder .leader-card__body { justify-content: center; }
.leadership--sand .leadership-grid .leader-card--founder h3 { font-size: clamp(1.9rem, 3vw, 2.8rem); }
.leadership--sand .leadership-grid .leader-card--founder p:not(.leader-card__role) { font-size: 1.08rem; max-width: 560px; }
.leadership--sand .leadership-grid .leader-card--founder .leader-card__action { margin-top: 0; padding-top: 32px; }
.leadership--sand .leader-card {
  display: flex; flex-direction: column;
  background: #FFFFFF; border: 1px solid var(--sand-line); border-radius: 28px;
  padding: clamp(28px, 3vw, 40px); text-align: left; color: var(--ink);
  box-shadow: 0 1px 0 rgba(13,17,23,.04), 0 24px 48px -32px rgba(110,84,40,.25);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.leadership--sand .leader-card:hover { transform: translateY(-4px); box-shadow: 0 1px 0 rgba(13,17,23,.04), 0 32px 56px -30px rgba(110,84,40,.4); background: #FFFFFF; border-color: var(--sand-line); }
.leadership--sand .leader-card__avatar { margin: 0 0 24px; justify-content: flex-start; width: auto; height: auto; }
.leadership--sand .leader-card__avatar img { width: 40px; height: 40px; }
.leadership--sand .leader-card h3 { font-family: var(--ff-display); font-weight: 700; font-size: 1.6rem; letter-spacing: -0.03em; color: var(--ink); margin-bottom: 6px; }
.leadership--sand .leader-card__role { font-size: .74rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--teal-ink); margin-bottom: 18px; }
.leadership--sand .leader-card p { color: #4A4F57; font-size: .98rem; line-height: 1.7; }
.leadership--sand .leadership-grid .leader-card--founder { padding: 0; overflow: hidden; background: #fff; }
.leadership--sand .leadership-grid .leader-card--founder .leader-card__body { padding: clamp(28px, 3vw, 40px); display: flex; flex-direction: column; flex: 1 1 auto; }
.leader-portrait { position: relative; width: 100%; height: auto; min-height: 460px; padding-top: 0; overflow: hidden; background: var(--sand-deep); }
.leader-portrait img { position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center 18%; }
.leader-card__action { margin-top: auto; padding-top: 28px; }
.leadership--sand .btn--outline { color: var(--ink); border: 1px solid rgba(13,17,23,.55); background: transparent; display: inline-flex; align-items: center; gap: 10px; font-size: .92rem; }
.leadership--sand .btn--outline:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ════════════ CONTACT ════════════ */
.contact-section { padding: clamp(56px, 7vw, 104px) 0; }
.contact-section__inner { max-width: none; gap: clamp(40px, 7vw, 112px); }
.contact-info h2 { font-size: clamp(2rem, 3.6vw, 3.4rem); line-height: 1.06; letter-spacing: -0.035em; }
.contact-form { border-radius: 28px; }

/* ════════════ FOUNDER PAGE: sand, where you meet the leader ════════════ */
body.theme-sand { background: var(--sand); color: var(--ink); }
body.theme-sand .founder-hero { background: var(--sand); }
body.theme-sand .founder-hero__bg { background: none; }
body.theme-sand .founder-hero .btn--ghost { color: var(--ink); border-color: rgba(13,17,23,.4); }
body.theme-sand .founder-bio h1 { color: var(--ink); font-family: var(--ff-display); font-weight: 800; letter-spacing: -0.04em; font-size: clamp(2.4rem, 5vw, 4.4rem); }
body.theme-sand .founder-bio h1 span { color: rgba(13,17,23,.5) !important; }
body.theme-sand .founder-bio .section__eyebrow, body.theme-sand .founder-bio__role { color: var(--teal-ink); }
body.theme-sand .founder-bio p { color: #3C424B; }
body.theme-sand .founder-photo { border: none; border-radius: 28px; box-shadow: 0 32px 56px -32px rgba(110,84,40,.45); }
body.theme-sand .founder-linkedin { background: #fff; border: 1px solid var(--sand-line); color: var(--ink); }
body.theme-sand .founder-linkedin:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
body.theme-sand .founder-hero .container > div[style*="margin-top: 80px"] { background: #fff !important; border: 1px solid var(--sand-line) !important; border-radius: 28px !important; }
body.theme-sand .founder-hero .container > div[style*="margin-top: 80px"] h2 { color: var(--ink); }
body.theme-sand .founder-hero .container > div[style*="margin-top: 80px"] p { color: #3C424B !important; }
body.theme-sand .founder-hero .container > div[style*="margin-top: 80px"] .section__eyebrow { color: var(--teal-ink); }
/* wordmark is the white-on-ink version, so the nav stays ink over sand */
body.theme-sand .navbar { background: rgba(13,17,23,.94); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(255,255,255,.08); }
body.theme-sand .founder-hero { padding-top: 144px; }

/* ════════════ MOTION (respects reduced motion) ════════════ */
@-webkit-keyframes lineIn { from { -webkit-transform: translateY(105%); transform: translateY(105%); } to { -webkit-transform: translateY(0); transform: translateY(0); } }
@keyframes lineIn { from { -webkit-transform: translateY(105%); transform: translateY(105%); } to { -webkit-transform: translateY(0); transform: translateY(0); } }
@-webkit-keyframes fadeUpIn { from { opacity: 0; -webkit-transform: translateY(18px); transform: translateY(18px); } to { opacity: 1; -webkit-transform: none; transform: none; } }
@keyframes fadeUpIn { from { opacity: 0; -webkit-transform: translateY(18px); transform: translateY(18px); } to { opacity: 1; -webkit-transform: none; transform: none; } }
@keyframes heroDrift { from { -webkit-transform: scale(1.08) translate3d(0,0,0); transform: scale(1.08) translate3d(0,0,0); } to { -webkit-transform: scale(1.16) translate3d(-1.5%,-1%,0); transform: scale(1.16) translate3d(-1.5%,-1%,0); } }
@keyframes scrollCue { 0% { -webkit-transform: translateY(-30px); transform: translateY(-30px); } 100% { -webkit-transform: translateY(70px); transform: translateY(70px); } }

@media (prefers-reduced-motion: no-preference) {
  .hero--b .hero__heading .line__in { -webkit-animation: lineIn 1.1s var(--ease-out) both; animation: lineIn 1.1s var(--ease-out) both; }
  .hero--b .hero__heading .line:nth-child(2) .line__in { -webkit-animation-delay: .12s; animation-delay: .12s; }
  .hero--b .hero__heading .line:nth-child(3) .line__in { -webkit-animation-delay: .24s; animation-delay: .24s; }
  .hero__eyebrow, .hero__row { -webkit-animation: fadeUpIn 1s var(--ease-out) both; animation: fadeUpIn 1s var(--ease-out) both; }
  .hero__eyebrow { -webkit-animation-delay: .05s; animation-delay: .05s; }
  .hero__row { -webkit-animation-delay: .55s; animation-delay: .55s; }
  .hero--b .hero__visual img { -webkit-animation: heroDrift 24s ease-in-out infinite alternate; animation: heroDrift 24s ease-in-out infinite alternate; will-change: transform; }
  .hero__scroll i::after { -webkit-animation: scrollCue 2.4s ease-in-out infinite; animation: scrollCue 2.4s ease-in-out infinite; }
  /* sharper, longer reveal on scroll */
  .fade-up { -webkit-transition: opacity .9s var(--ease-out), -webkit-transform .9s var(--ease-out); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
  .pillar-row-wrap.fade-up:nth-child(n) { transition-delay: 0s; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero--b .hero__heading .line__in, .hero__eyebrow, .hero__row, .hero--b .hero__visual img, .hero__scroll i::after { -webkit-animation: none !important; animation: none !important; }
  .hero--b .hero__visual img { -webkit-transform: none; transform: none; }
  .fade-up, .fade-left, .fade-right { opacity: 1 !important; -webkit-transform: none !important; transform: none !important; transition: none !important; }
  .pillar-row:hover .pillar-row__thumb img, .pillar-row:hover .pillar-row__go, .leadership--sand .leader-card:hover { -webkit-transform: none; transform: none; }
}

/* ════════════ RESPONSIVE ════════════ */
@media (max-width: 1100px) {
  .pillar-row { grid-template-columns: clamp(56px, 9vw, 96px) minmax(0, 1fr) minmax(0, 1fr); row-gap: 28px; }
  .pillar-row__thumb { grid-column: 2 / 4; }
  .pillar-row__go { display: none; }
  .sme-b .values-grid, .process__steps { grid-template-columns: repeat(2, minmax(0,1fr)); row-gap: 48px; }
  .about-values .values-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .leadership--sand .leadership-grid .leader-card--founder { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
  .leader-portrait { min-height: 340px; }
}
@media (max-width: 900px) {
  .section__header--split { grid-template-columns: 1fr; gap: 24px; align-items: start; }
  .why-us--b .why-us__inner { grid-template-columns: 1fr; }
  .hero__scroll { display: none; }
  .outcomes__inner { grid-template-columns: 1fr; }
  .outcome { padding: 22px 0; }
  .outcome + .outcome { padding-left: 0; border-left: none; border-top: 1px solid var(--clr-border); }
}
@media (max-width: 768px) {
  .hero--b { padding-top: 112px; }
  .hero--b .hero__heading { font-size: clamp(2.5rem, 12.2vw, 3.6rem); }
  .hero--b .hero__subheading { font-size: .98rem; }
  .hero--b .hero__cta { width: 100%; flex-direction: column; align-items: stretch; }
  .hero--b .hero__cta .btn { justify-content: center; text-align: center; }
  .hero__scrim { background: linear-gradient(0deg, rgba(13,17,23,.96) 0%, rgba(13,17,23,.55) 42%, rgba(13,17,23,.28) 100%); }
  .hero--b .hero__visual img { object-position: 62% 40%; -webkit-filter: brightness(1.28) contrast(1.06) saturate(1.08); filter: brightness(1.28) contrast(1.06) saturate(1.08); }
  .page-hero--photo { min-height: 0; padding: 120px 0 300px; }
  .page-hero--photo h1 { font-size: clamp(2.4rem, 11vw, 3.4rem); }
  .page-hero--photo .page-hero__bg::after { background: linear-gradient(0deg, rgba(13,17,23,.1) 0%, rgba(13,17,23,.1) 60%, rgba(13,17,23,.9) 100%); }
  .pillar-row { grid-template-columns: 48px minmax(0, 1fr); column-gap: 16px; }
  .pillar-row__num { font-size: 2rem; padding-top: 4px; }
  .pillar-row__head { grid-column: 2; }
  .pillar-row__desc, .pillar-row__thumb { grid-column: 1 / 3; }
  .sme-b .values-grid, .process__steps, .about-values .values-grid { grid-template-columns: 1fr; row-gap: 40px; }
  .leadership--sand .leadership-grid { grid-template-columns: 1fr; }
  .leadership--sand .leadership-grid .leader-card--founder { grid-column: auto; display: flex; }
  .leader-portrait { padding-top: 90%; height: 0; min-height: 0; flex: 0 0 auto; }
  .leadership--sand .leadership-grid .leader-card--founder h3 { font-size: 1.6rem; }
  .service-detail:last-child { border-radius: 24px; }
  .cta-band__inner h2, .hero--b ~ .cta-band .cta-band__inner h2 { font-size: clamp(2.4rem, 11.4vw, 3.6rem); }
  .cta-band__actions { width: 100%; align-items: stretch; }
  .cta-band__actions .btn { justify-content: center; }
  .principles li { gap: 18px; padding: 22px 0; }
}


/* Direction B: keep the new skyline bright. The old near-black silhouette needed a heavy scrim; this photo does not. */
.photo-band__frame::after {
  background:
    linear-gradient(to bottom, rgba(13,17,23,.08), transparent 22%, transparent 78%, rgba(13,17,23,.22)),
    radial-gradient(ellipse 90% 80% at 50% 50%, transparent 70%, rgba(13,17,23,.14) 100%);
}

/* ════════════ SERVICES IN-PAGE NAV (mobile and tablet first) ════════════ */
.pillar-nav {
  position: -webkit-sticky;
  position: sticky;
  top: var(--nav-h);
  z-index: 90;
  background: rgba(13,17,23,.92);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(255,255,255,.08);
  pointer-events: auto;
}
.pillar-nav__track {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-top: 8px;
  padding-bottom: 8px;
}
.pillar-nav__track::-webkit-scrollbar { display: none; }
.services-list .pillar-nav .container,
.services-list .pillar-nav__track {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
}

.pillar-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  color: rgba(241,245,249,.86);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  text-decoration: none;
  background: rgba(255,255,255,.03);
  scroll-snap-align: start;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(7,240,169,.25);
  pointer-events: auto;
  transition: background .25s ease, border-color .25s ease, color .25s ease;
}
.pillar-chip__num {
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: .78rem;
  letter-spacing: -0.03em;
  color: var(--clr-accent);
}
.pillar-chip.is-active,
.pillar-chip[aria-current="location"] {
  background: var(--clr-accent);
  border-color: var(--clr-accent);
  color: var(--ink);
}
.pillar-chip.is-active .pillar-chip__num,
.pillar-chip[aria-current="location"] .pillar-chip__num { color: var(--ink); }
.pillar-chip:hover { border-color: rgba(255,255,255,.4); }
.pillar-chip.is-active:hover { border-color: var(--clr-accent); }

/* See more disclosure: desktop always shows the full chapter */
.see-more { display: none; }

/* Back to top */
.back-to-top {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 80;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(13,17,23,.88);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .25s ease, transform .25s ease, background .25s ease;
}
.back-to-top.is-visible { opacity: 1; pointer-events: auto; transform: none; }
.back-to-top:hover { background: var(--clr-accent); color: var(--ink); border-color: var(--clr-accent); }
.back-to-top svg { width: 18px; height: 18px; display: block; }

@media (max-width: 1024px) {
  /* Collapsed chapter: headline, two-line lede, key outcomes, See more. */
  .see-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 4px 0 8px;
    padding: 0;
    background: none;
    border: none;
    color: var(--clr-accent);
    font-size: .95rem;
    font-weight: 600;
    cursor: pointer;
    align-self: flex-start;
  }
  .service-detail:last-child .see-more { color: var(--ink); }
  .see-more__icon {
    display: inline-block;
    width: 6px; height: 6px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform .25s ease;
  }
  .service-detail.is-open .see-more__icon { transform: rotate(225deg); }
  .service-detail:not(.is-open) .service-detail__more { display: none; }
  .service-detail:not(.is-open) .service-detail__lede {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
  }
  .services-list { padding-top: 12px; gap: 0; }
  .services-list .container { gap: clamp(20px, 4vw, 36px); }
  .service-detail {
    padding-top: 20px;
    padding-bottom: 8px;
    gap: 16px;
  }
  .service-detail:last-child { padding: 20px 20px 24px; border-radius: 20px; }
  .service-detail__text { gap: 10px; }
  .service-detail__text::before { font-size: clamp(2.2rem, 10vw, 3rem); margin-bottom: 0; }
  .service-detail__icon { top: 0; width: 28px; height: 28px; }
  .service-detail__icon img { width: 28px; height: 28px; }
  .service-detail__outcomes { margin-top: 4px; }
  .service-detail__outcomes h4 { margin-bottom: 8px; }
  .service-detail__outcomes ul { gap: 8px; }
  .service-detail__outcomes li { font-size: .9rem; gap: 10px; }
  /* Short image when the chapter is collapsed, so one pillar is about a screen. */
  .service-detail:not(.is-open) .service-detail__visual {
    position: relative;
    top: 0;
    min-height: 0;
    height: 0;
    padding-top: 36%;
    aspect-ratio: auto;
    border-radius: 16px;
  }
  @supports (aspect-ratio: 1 / 1) {
    .service-detail:not(.is-open) .service-detail__visual {
      height: auto;
      padding-top: 0;
      aspect-ratio: 2.6 / 1;
    }
  }
  .service-detail:not(.is-open) .service-detail__visual img,
  .service-detail:not(.is-open) .service-detail__visual picture {
    position: absolute; top: 0; right: 0; bottom: 0; left: 0;
    width: 100%; height: 100%; object-fit: cover;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pillar-chip, .back-to-top, .see-more__icon { transition: none; }
}

.navbar.scrolled { background: rgba(13,17,23,.97); }

.pillar-nav ul, .pillar-nav li { list-style: none; margin: 0; }
.pillar-nav li { padding: 0; }
.pillar-nav li { flex: 0 0 auto; display: flex; }
