/* ==========================================================================
   M.S. Ansari — AI Transformation & Technology Consultant
   style.css
   --------------------------------------------------------------------------
   VISUAL IDENTITY SYSTEM
   Four recurring devices, used everywhere and nowhere else:
     1. .idx     — numbered section index (01–10) in every section label
     2. .mark    — small cobalt square, the only "logo-like" element
     3. .field   — architectural hairline grid behind portraits
     4. hairline rules + tick corners instead of cards and borders
   Nothing else decorates. That consistency is the brand.
   --------------------------------------------------------------------------
   1.  Design tokens          11. Services / value ladder
   2.  Reset & base           12. Healthcare (dark)
   3.  Typography             13. Approach timeline
   4.  Identity primitives    14. Principle
   5.  Layout primitives      15. Experience
   6.  Buttons                16. Selected work
   7.  Header / navigation    17. About
   8.  Hero + credibility     18. CTA + contact (dark)
   9.  Perspective            19. Footer
   10. Who I help / Problems  20. Motion + responsive
   ========================================================================== */

/* ============================ 1. DESIGN TOKENS ============================ */
:root {
  /* Colour */
  --bg:            #F7F7F4;
  --bg-sunk:       #F1F1ED;
  --ink:           #111111;
  --ink-soft:      #2A2A28;
  --muted:         #575753;
  --muted-2:       #6B6B66;
  --line:          rgba(17, 17, 17, 0.14);
  --line-soft:     rgba(17, 17, 17, 0.08);
  --line-hair:     rgba(17, 17, 17, 0.055);
  --accent:        #2857FF;
  --accent-deep:   #1E43D0;

  /* Dark surfaces */
  --dark:          #121311;
  --dark-2:        #1A1B19;
  --on-dark:       #F4F4F0;
  --on-dark-muted: #A5A59D;
  --line-dark:     rgba(244, 244, 240, 0.18);
  --line-dark-soft:rgba(244, 244, 240, 0.10);

  /* Type — base is 17px for senior-decision-maker readability */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;

  --fs-quote:   clamp(2.5rem, 1.2rem + 5.2vw, 5.1rem);
  --fs-display: clamp(2.3rem, 1.35rem + 3.6vw, 4rem);
  --fs-h1:      clamp(2.35rem, 1.6rem + 2.5vw, 3.6rem);
  --fs-h2:      clamp(1.8rem, 1.3rem + 1.8vw, 2.7rem);
  --fs-h3:      clamp(1.2rem, 1.06rem + 0.5vw, 1.45rem);
  --fs-lede:    clamp(1.14rem, 1.03rem + 0.42vw, 1.34rem);
  --fs-body:    1.0625rem;   /* 17px */
  --fs-small:   0.9375rem;   /* 15px */
  --fs-label:   0.78rem;     /* 12.5px */

  /* Space */
  --shell:      1240px;
  --gutter:     clamp(24px, 5vw, 56px);
  --section-y:  clamp(72px, 8vw, 128px);

  --radius:     5px;
  --radius-lg:  8px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ============================ 2. RESET & BASE ============================ */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.62;
  font-feature-settings: "cv05" 1, "ss01" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
/* Author display rules must not defeat the hidden attribute (JS hides
   placeholder links with it). */
[hidden] { display: none !important; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl, dd { margin: 0; }
h1, h2, h3, h4, p { margin: 0; }
button { font: inherit; color: inherit; }

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--ink);
  color: var(--bg);
  padding: 12px 18px;
  font-size: var(--fs-small);
}
.skip-link:focus { left: 12px; top: 12px; }

/* ============================= 3. TYPOGRAPHY ============================= */
.display, .h2, .h3, .hero__title {
  font-weight: 500;
  letter-spacing: -0.024em;
  line-height: 1.08;
  text-wrap: balance;
}

.display { font-size: var(--fs-display); }
.h2      { font-size: var(--fs-h2); line-height: 1.12; }
.h3      { font-size: var(--fs-h3); line-height: 1.25; letter-spacing: -0.014em; font-weight: 500; }

.display--serif,
.hero__title em,
.principle__quote em,
.principle__close em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.008em;
}

.lede {
  font-size: var(--fs-lede);
  color: var(--ink-soft);
  line-height: 1.52;
  max-width: 46ch;
}
.muted { color: var(--muted); }
.small { font-size: var(--fs-small); }

p { max-width: 68ch; }

/* ======================= 4. IDENTITY PRIMITIVES ========================= */

/* 4a. Section label with numeric index — the spine of the page */
.label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: var(--fs-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--muted-2);
  margin: 0 0 22px;
}
.label--inv { color: var(--on-dark-muted); }

.idx {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.idx::after {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--line);
}
.idx--inv::after { background: var(--line-dark); }

/* 4b. The cobalt square — used where a label has no index */
.mark {
  width: 6px;
  height: 6px;
  background: var(--accent);
  flex: none;
}
.mark--inv { background: var(--accent); }

/* 4c. Architectural hairline field with tick corners */
.field {
  position: absolute;
  z-index: 0;
  border: 1px solid var(--line-hair);
  background-image:
    linear-gradient(to right,  var(--line-hair) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line-hair) 1px, transparent 1px);
  background-size: 46px 46px;
  pointer-events: none;
}
.field::before,
.field::after {
  content: "";
  position: absolute;
  width: 13px;
  height: 13px;
  border: 1px solid var(--accent);
}
.field::before { top: -1px;    left: -1px;  border-width: 1px 0 0 1px; }
.field::after  { bottom: -1px; right: -1px; border-width: 0 1px 1px 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: var(--fs-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 28px;
}
.eyebrow::before { content: ""; width: 6px; height: 6px; background: var(--accent); }

/* ========================= 5. LAYOUT PRIMITIVES ========================== */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }

.section__head { margin-bottom: clamp(40px, 4.4vw, 60px); max-width: 48rem; }
.section__intro {
  margin-top: 22px;
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 54ch;
}

/* ============================== 6. BUTTONS ============================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 26px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  line-height: 1.1;
  cursor: pointer;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease),
              border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.btn--sm { padding: 14px 24px; font-size: 0.97rem; }
.btn--lg { padding: 19px 34px; font-size: 1.06rem; }
.btn--xl { padding: 22px 42px; font-size: 1.12rem; }

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 26px -14px rgba(40, 87, 255, 0.85);
}
.btn--primary:hover { background: var(--accent-deep); box-shadow: 0 14px 30px -14px rgba(40, 87, 255, 0.95); }

.btn--ghost {
  border-color: var(--ink);
  color: var(--ink);
  background: transparent;
}
.btn--ghost:hover { background: var(--ink); color: var(--bg); }

.btn--inv { border-color: var(--line-dark); color: var(--on-dark); background: transparent; }
.btn--inv:hover { border-color: var(--on-dark); background: rgba(244, 244, 240, 0.07); }

/* Text link with moving underline — used for secondary actions */
.textlink {
  position: relative;
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
  padding-bottom: 4px;
}
.textlink::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--ink);
  transform-origin: right;
  transition: transform 0.4s var(--ease), background-color 0.3s var(--ease);
}
.textlink:hover { color: var(--accent); }
.textlink:hover::after { background: var(--accent); transform: scaleX(0.35); transform-origin: left; }

/* ========================== 7. HEADER / NAV ============================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 247, 244, 0.74);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.35s var(--ease), background-color 0.35s var(--ease);
}
.site-header.is-stuck {
  border-bottom-color: var(--line-soft);
  background: rgba(247, 247, 244, 0.92);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 82px;
}

.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand__mark { width: 24px; height: 24px; color: var(--accent); display: inline-flex; }
.brand__mark img { width: 100%; height: 100%; display: block; }
.brand__name { font-weight: 600; letter-spacing: -0.02em; font-size: 1.14rem; }

.nav__links ul { display: flex; align-items: center; gap: clamp(18px, 2.2vw, 34px); }
.nav__links a {
  position: relative;
  font-size: 1.01rem;
  color: var(--muted);
  padding-block: 6px;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { transform: scaleX(1); }
.nav__links a.is-active { color: var(--ink); }
.nav__links a.is-active::after { transform: scaleX(1); background: var(--accent); }

.nav__right { display: flex; align-items: center; gap: 10px; }
.nav__cta-mobile { display: none; }

.nav__toggle {
  display: none;
  width: 42px; height: 42px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}
.nav__toggle-bars { display: block; width: 16px; }
.nav__toggle-bars i {
  display: block;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.35s var(--ease);
}
.nav__toggle-bars i + i { margin-top: 5px; }
.nav__toggle[aria-expanded="true"] i:first-child { transform: translateY(3.25px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] i:last-child  { transform: translateY(-3.25px) rotate(-45deg); }

/* ======================= 8. HERO + CREDIBILITY ========================== */
.hero { padding-top: clamp(46px, 5.6vw, 88px); padding-bottom: clamp(26px, 3.4vw, 52px); }

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(0, 0.84fr);
  gap: clamp(36px, 3.8vw, 56px);
  align-items: center;
}

.hero__title {
  font-size: var(--fs-h1);
  line-height: 1.05;
  margin-bottom: 30px;
  text-wrap: pretty;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 30px;
  margin-top: 40px;
}
.hero__note {
  margin-top: 22px;
  font-size: var(--fs-small);
  color: var(--muted-2);
}

/* Portrait anchored on the architectural field */
.hero__visual { position: relative; }
.hero__visual .field { inset: 40px -38px -38px 46px; }

.portrait {
  position: relative;
  z-index: 1;
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-sunk);
  aspect-ratio: 4 / 5;
  box-shadow: 0 2px 3px -1px rgba(17,17,17,0.07), 0 40px 80px -34px rgba(17,17,17,0.40);
}
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--line-soft);
  border-radius: inherit;
  pointer-events: none;
}

/* Business → Data → AI → Automation → Decision */
.flowchip {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 26px;
  font-size: 0.75rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.flowchip i { width: 16px; height: 1px; background: var(--line); display: inline-block; }
.flowchip .is-end { color: var(--accent); font-weight: 500; }

/* Credibility strip — structured, not vanity counters */
.credstrip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(48px, 6vw, 84px);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line);
}
.credstrip li {
  padding: 30px clamp(18px, 2.2vw, 32px) 32px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.credstrip li + li { padding-left: clamp(18px, 2.2vw, 32px); border-left: 1px solid var(--line-soft); }
.credstrip strong {
  font-weight: 500;
  font-size: clamp(1.8rem, 1.3rem + 1.7vw, 2.65rem);
  letter-spacing: -0.038em;
  line-height: 1;
}
.credstrip__plus { color: var(--accent); font-size: 0.66em; vertical-align: 0.34em; margin-left: 1px; }
.credstrip__disc { font-size: clamp(1.35rem, 1.1rem + 0.9vw, 1.85rem) !important; }
.credstrip span {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--ink-soft);
  letter-spacing: -0.014em;
  line-height: 1.35;
}

/* ============================ 9. PERSPECTIVE ============================= */
.statement-block { background: var(--bg-sunk); border-block: 1px solid var(--line-soft); }
.statement__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(40px, 6vw, 104px);
  align-items: start;
}
.statement__lead .display { line-height: 1.02; }
.display--serif { color: var(--ink); margin-top: 4px; max-width: none; }
.statement__p {
  margin-top: 32px;
  max-width: 40ch;
  color: var(--muted);
  font-size: 1.08rem;
}

.statement__questions { padding-top: 10px; }
.qlist { border-top: 1px solid var(--ink); }
.qlist li {
  padding: 20px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 1.16rem;
  letter-spacing: -0.016em;
  line-height: 1.4;
  color: var(--ink);
  display: flex;
  gap: 16px;
  align-items: baseline;
}
.qlist li::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--accent);
  flex: none;
  transform: translateY(-3px);
}
.statement__questions .small { margin-top: 24px; }

/* ====================== 10. WHO I HELP / PROBLEMS ======================= */
.who__list { border-top: 1px solid var(--ink); }

.who__item {
  display: grid;
  grid-template-columns: clamp(84px, 9vw, 132px) minmax(0, 1fr);
  gap: clamp(16px, 3vw, 44px);
  padding-block: clamp(32px, 3.6vw, 48px);
  border-bottom: 1px solid var(--line-soft);
  transition: background-color 0.4s var(--ease);
}
.who__num {
  font-size: clamp(1.9rem, 1.3rem + 2vw, 3rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.9;
  color: var(--line);
  transition: color 0.4s var(--ease);
  font-variant-numeric: tabular-nums;
}
@media (hover: hover) {
  .who__item:hover .who__num { color: var(--accent); }
}
.who__body { display: grid; gap: 14px; max-width: 60ch; }
.who__body h3 {
  font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2.1rem);
  font-weight: 500;
  letter-spacing: -0.028em;
  line-height: 1.1;
}
.who__body > p { color: var(--muted); }
.who__note {
  font-size: var(--fs-small);
  color: var(--ink-soft);
  padding-left: 18px;
  border-left: 2px solid var(--accent);
}

/* Problems — two scannable columns, headline-forward */
.plist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(32px, 4.5vw, 76px);
  border-top: 1px solid var(--ink);
}
.plist__row {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: baseline;
  padding: 22px 0;
  border-bottom: 1px solid var(--line-soft);
  transition: border-color 0.35s var(--ease);
}
.plist__n {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--muted-2);
  font-variant-numeric: tabular-nums;
  transition: color 0.35s var(--ease);
}
.plist__h {
  font-size: 1.12rem;
  font-weight: 500;
  letter-spacing: -0.018em;
  line-height: 1.34;
}
.plist__p {
  font-size: var(--fs-small);
  color: var(--muted);
  line-height: 1.5;
  margin-top: 6px;
}
@media (hover: hover) {
  .plist__row:hover { border-bottom-color: var(--accent); }
  .plist__row:hover .plist__n { color: var(--accent); }
}

/* ==================== 11. SERVICES / VALUE LADDER ======================= */

/* The ladder, stated up front */
.ladderbar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(44px, 5vw, 74px);
  position: relative;
}
.ladderbar li {
  padding: 26px clamp(16px, 2vw, 30px) 28px 0;
  display: grid;
  gap: 7px;
  position: relative;
}
.ladderbar li + li { padding-left: clamp(16px, 2vw, 30px); border-left: 1px solid var(--line-soft); }
/* Arrowhead marking progression between steps */
.ladderbar li + li::before {
  content: "";
  position: absolute;
  left: -4px; top: 34px;
  width: 7px; height: 7px;
  border-top: 1px solid var(--accent);
  border-right: 1px solid var(--accent);
  transform: rotate(45deg);
  background: var(--bg);
}
.ladderbar__n {
  font-size: var(--fs-label);
  letter-spacing: 0.14em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.ladderbar__verb {
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: -0.024em;
  line-height: 1;
}
.ladderbar__name { font-size: var(--fs-small); color: var(--muted); }
.ladderbar__price {
  margin-top: 8px;
  font-size: 1.28rem;
  font-weight: 500;
  letter-spacing: -0.026em;
}
.ladderbar__price i { font-style: normal; color: var(--muted-2); font-weight: 400; font-size: 0.72em; }

/* Detailed service blocks */
.ladder { display: grid; }

.svc {
  display: grid;
  grid-template-columns: minmax(0, 268px) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 64px);
  padding-bottom: clamp(40px, 4.6vw, 64px);
  margin-bottom: clamp(40px, 4.6vw, 64px);
  border-bottom: 1px solid var(--line-soft);
}
.svc:last-of-type { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.svc__aside { display: grid; gap: 20px; align-content: start; }
.svc__step {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: var(--fs-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink);
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.svc__stepn { color: var(--accent); font-variant-numeric: tabular-nums; }

.svc__price { display: grid; gap: 4px; }
.svc__from { font-size: var(--fs-small); color: var(--muted-2); margin-bottom: 2px; }
.svc__price strong {
  font-size: clamp(2.2rem, 1.55rem + 2.1vw, 3.05rem);
  font-weight: 500;
  letter-spacing: -0.042em;
  line-height: 1;
}
.svc__price strong i {
  font-style: normal;
  font-size: 0.36em;
  color: var(--muted-2);
  letter-spacing: -0.01em;
  font-weight: 400;
}
.svc__tax { font-size: 0.85rem; color: var(--muted-2); }
.svc__aside .btn { justify-self: start; }

.svc__main { display: grid; gap: 20px; align-content: start; max-width: 62ch; }
.svc__title {
  font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.svc__prop {
  font-size: var(--fs-lede);
  color: var(--ink-soft);
  line-height: 1.44;
  max-width: 46ch;
}
.svc__desc { color: var(--muted); font-size: 1.0625rem; }

/* Progressive disclosure — native <details>, works without JavaScript */
.disclosure { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.disclosure summary {
  list-style: none;
  cursor: pointer;
  padding: 17px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--ink);
}
.disclosure summary::-webkit-details-marker { display: none; }
.disclosure summary::after {
  content: "";
  width: 10px; height: 10px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.35s var(--ease);
  flex: none;
}
.disclosure[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.disclosure summary:hover { color: var(--accent); }
.disclosure__body { padding: 6px 0 24px; }

.disclosure--quiet { border-bottom: none; }
.disclosure--inv { border-color: var(--line-dark); }
.disclosure--inv summary { color: var(--on-dark); }
.disclosure--inv summary::after { border-color: var(--on-dark-muted); }
.disclosure--inv summary:hover { color: #fff; }

.ticks { display: grid; gap: 10px; margin-bottom: 18px; }
.ticks li {
  position: relative;
  padding-left: 24px;
  font-size: 1rem;
  color: var(--ink-soft);
  line-height: 1.5;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 2px; top: 0.6em;
  width: 9px; height: 4px;
  border-left: 1.5px solid var(--accent);
  border-bottom: 1.5px solid var(--accent);
  transform: rotate(-45deg);
}

.services__after {
  margin-top: clamp(48px, 5vw, 70px);
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-size: var(--fs-small);
  color: var(--muted);
  max-width: none;
}
.services__after span { display: block; max-width: 76ch; }

/* ============================ 12. HEALTHCARE ============================ */
.healthcare { background: var(--dark); color: var(--on-dark); }
.healthcare__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  gap: clamp(44px, 6vw, 104px);
  align-items: start;
}
.h2--inv { color: var(--on-dark); }
.healthcare__p {
  color: var(--on-dark-muted);
  margin-top: 26px;
  max-width: 44ch;
  font-size: 1.08rem;
}
.healthcare__p--em {
  color: var(--on-dark);
  padding-left: 18px;
  border-left: 2px solid var(--accent);
}
.healthcare__lead .btn { margin-top: 38px; }

/* Editorial capability list — deliberately not chips or SaaS pills */
.caps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(20px, 3vw, 48px);
  border-top: 1px solid var(--line-dark);
}
.caps li {
  padding: 15px 0;
  border-bottom: 1px solid var(--line-dark-soft);
  font-size: 1.02rem;
  color: var(--on-dark);
  letter-spacing: -0.012em;
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.caps li::before {
  content: "";
  width: 5px; height: 5px;
  background: var(--accent);
  flex: none;
  transform: translateY(-3px);
}
.healthcare__note {
  margin-top: 28px;
  font-size: var(--fs-small);
  color: var(--on-dark-muted);
  max-width: none;
}

/* ========================= 13. APPROACH TIMELINE ======================== */
.steps { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.steps__item { padding-right: clamp(14px, 1.8vw, 26px); }
.steps__n {
  display: block;
  font-size: clamp(1.6rem, 1.15rem + 1.5vw, 2.4rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.9;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  margin-bottom: 20px;
}
/* The continuous rule with a node per step */
.steps__node {
  display: block;
  position: relative;
  height: 1px;
  background: var(--line);
  margin-bottom: 26px;
}
.steps__node::before {
  content: "";
  position: absolute;
  left: 0; top: -4px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--bg);
  border: 1.5px solid var(--accent);
  transition: background-color 0.4s var(--ease);
}
.steps__item.is-visible .steps__node::before { background: var(--accent); }
.steps__item h3 {
  font-size: 1.18rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.steps__item p { font-size: var(--fs-small); color: var(--muted); line-height: 1.5; }

/* ============================ 14. PRINCIPLE ============================= */
.principle {
  background: var(--bg-sunk);
  border-block: 1px solid var(--line-soft);
  padding-block: clamp(84px, 10.5vw, 168px);
}

.principle__quote {
  margin: 0 0 clamp(48px, 6vw, 88px);
  font-size: var(--fs-quote);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.02;
  max-width: 19ch;
  text-wrap: balance;
}
.principle__quote em { color: var(--accent); letter-spacing: -0.02em; }

.principle__grid {
  display: grid;
  grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 56px);
  align-items: start;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  max-width: 940px;
}
.principle__label {
  font-size: var(--fs-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.inline-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(196px, 1fr));
  gap: 13px 34px;
}
.inline-list li {
  font-size: 1.06rem;
  color: var(--ink-soft);
  letter-spacing: -0.014em;
  display: flex;
  gap: 12px;
  align-items: baseline;
}
.inline-list li::before {
  content: "";
  width: 5px; height: 5px;
  background: var(--accent);
  flex: none;
  transform: translateY(-3px);
}

.principle__close {
  margin-top: clamp(54px, 6.5vw, 96px);
  padding-left: clamp(20px, 3vw, 34px);
  border-left: 2px solid var(--accent);
  font-size: clamp(1.35rem, 1.05rem + 1.3vw, 2.05rem);
  font-weight: 500;
  letter-spacing: -0.026em;
  line-height: 1.28;
  max-width: 24ch;
}
.principle__close em { display: block; color: var(--accent); margin-top: 4px; }

/* ============================ 15. EXPERIENCE ============================ */
.caparea {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--ink);
}
.caparea__item { padding: 30px clamp(14px, 1.8vw, 28px) 34px 0; }
.caparea__item + .caparea__item {
  padding-left: clamp(14px, 1.8vw, 28px);
  border-left: 1px solid var(--line-soft);
}
.caparea__item h3 {
  font-size: 1.08rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.caparea__item p { font-size: var(--fs-small); color: var(--muted); line-height: 1.5; }

/* ========================== 16. SELECTED WORK =========================== */
.cases-section { background: var(--bg-sunk); border-block: 1px solid var(--line-soft); }
.cases {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(30px, 3.4vw, 50px) clamp(34px, 5vw, 80px);
}
.case { padding-top: 26px; border-top: 1px solid var(--ink); }
.case__ctx {
  display: flex;
  align-items: baseline;
  gap: 13px;
  font-size: clamp(1.24rem, 1.08rem + 0.55vw, 1.5rem);
  font-weight: 500;
  letter-spacing: -0.024em;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 24px;
}
.case__ctx .mark { transform: translateY(-3px); }

.case__rows { display: grid; gap: 16px; }
.case__rows > div {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 16px;
  align-items: baseline;
}
.case__rows dt {
  font-size: var(--fs-label);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.case__rows dd { font-size: 1.02rem; color: var(--ink-soft); line-height: 1.5; }

.case__focus {
  padding-left: 124px;
  font-size: var(--fs-label);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-top: 18px;
}
.tags { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 9px; padding-left: 124px; }
.tags li { font-size: 0.83rem; letter-spacing: 0.02em; color: var(--muted-2); }
.tags li + li { position: relative; }
.tags li + li::before {
  content: "";
  position: absolute;
  left: -10px; top: 50%;
  width: 3px; height: 3px;
  background: var(--line);
}

/* ============================== 17. ABOUT =============================== */
.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(40px, 5vw, 80px);
  align-items: start;
}
.about__media { position: relative; }
.about__media .field { inset: 34px -30px -30px 34px; }
.portrait--sm { max-width: 470px; }

.about__body .h2 { margin-bottom: 32px; }
.about__p { color: var(--ink-soft); font-size: 1.08rem; max-width: 62ch; }
.about__p + .about__p { margin-top: 20px; }
.about__body .disclosure { margin-top: 30px; }
.about__body .disclosure__body .about__p { font-size: 1.04rem; color: var(--muted); }

.about__facts {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px 36px;
}
.about__facts li {
  font-size: var(--fs-small);
  color: var(--ink-soft);
  padding-top: 15px;
  border-top: 1px solid var(--line);
  line-height: 1.45;
}
.about__facts span {
  display: block;
  font-size: var(--fs-label);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 7px;
}

/* ========================== 18. CTA + CONTACT =========================== */
.cta { background: var(--dark); color: var(--on-dark); }
.display--inv { color: var(--on-dark); }

.cta__head { max-width: 820px; margin-bottom: clamp(48px, 6vw, 78px); }
.cta__p {
  margin-top: 28px;
  color: var(--on-dark-muted);
  font-size: var(--fs-lede);
  line-height: 1.5;
  max-width: 50ch;
}
.cta__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 34px;
  margin-top: 44px;
}
.cta__micro { font-size: var(--fs-small); color: var(--on-dark-muted); line-height: 1.45; }

.cta__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(36px, 5vw, 80px);
  padding-top: clamp(40px, 5vw, 58px);
  border-top: 1px solid var(--line-dark);
  align-items: start;
}

.contactlist { display: grid; gap: 26px; }
.contactlist li { display: grid; gap: 6px; }
.contactlist .label { margin: 0; }
.contactlist a {
  font-size: 1.12rem;
  color: var(--on-dark);
  letter-spacing: -0.016em;
  border-bottom: 1px solid var(--line-dark);
  padding-bottom: 4px;
  justify-self: start;
}
.contactlist a:hover { color: #fff; border-bottom-color: var(--accent); }

/* Secondary: the form is available, not dominant */
.form__intro {
  font-size: 1.02rem;
  color: var(--on-dark-muted);
  margin-bottom: 26px;
  max-width: 44ch;
}
.form { display: grid; gap: 22px; padding-top: 2px; max-width: 500px; }
.field-row { display: grid; gap: 6px; }
.field-row label { font-size: 0.9rem; color: var(--on-dark-muted); }
.field-row input,
.field-row select,
.field-row textarea {
  width: 100%;
  font: inherit;
  font-size: 1.05rem;
  color: var(--on-dark);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line-dark);
  border-radius: 0;
  line-height: 1.35;
  padding: 6px 0 10px;
  transition: border-color 0.3s var(--ease);
}
.field-row textarea { resize: vertical; min-height: 84px; line-height: 1.55; }
.field-row select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--on-dark-muted) 50%),
                    linear-gradient(135deg, var(--on-dark-muted) 50%, transparent 50%);
  background-position: calc(100% - 8px) 55%, calc(100% - 2px) 55%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 28px;
}
.field-row select option { color: #111; }
.field-row input:focus,
.field-row select:focus,
.field-row textarea:focus {
  border-bottom-color: var(--accent);
  outline: none;
}
.field-row input:focus-visible,
.field-row select:focus-visible,
.field-row textarea:focus-visible { outline: none; }
.field-row input[aria-invalid="true"],
.field-row textarea[aria-invalid="true"] { border-bottom-color: #E0623F; }

.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 6px; }
.form__status {
  font-size: var(--fs-small);
  color: var(--on-dark-muted);
  max-width: 46ch;
  line-height: 1.5;
}
.form__status.is-error { color: #F0A08A; }

/* ============================== 19. FOOTER ============================== */
.footer { background: var(--dark-2); color: var(--on-dark); padding-block: clamp(48px, 5vw, 68px); }
.footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 30px 40px;
  align-items: end;
}
.footer__name { font-weight: 600; letter-spacing: -0.02em; font-size: 1.1rem; }
.footer__title { color: var(--on-dark-muted); font-size: 0.98rem; margin-top: 5px; }
.footer__tag { color: var(--on-dark-muted); font-size: var(--fs-small); margin-top: 14px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 24px; }
.footer__links a { font-size: 0.95rem; color: var(--on-dark-muted); }
.footer__links a:hover { color: var(--on-dark); }
.footer__copy {
  grid-column: 1 / -1;
  padding-top: 28px;
  border-top: 1px solid var(--line-dark);
  font-size: var(--fs-small);
  color: var(--on-dark-muted);
  max-width: none;
}

/* ====================== 20. MOTION + RESPONSIVE ========================= */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .steps__node::before { background: var(--accent); }
}

/* Large desktop */
@media (min-width: 1400px) { :root { --shell: 1300px; } }

/* Small desktop / large tablet */
@media (max-width: 1120px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 40px; }
  .caparea { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .caparea__item:nth-child(3n+1) { padding-left: 0; border-left: none; }
  .caparea__item:nth-child(-n+3) { border-bottom: 1px solid var(--line-soft); }
  .svc { grid-template-columns: minmax(0, 220px) minmax(0, 1fr); }
}

/* Tablet */
@media (max-width: 920px) {
  html { scroll-padding-top: 80px; }

  .nav__cta { display: none; }
  .nav__toggle { display: inline-flex; }

  .nav__links {
    position: fixed;
    inset: 68px 0 auto 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 12px var(--gutter) 30px;
    display: grid;
    gap: 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
    max-height: calc(100dvh - 68px);
    overflow-y: auto;
  }
  .nav__links.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav__links ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__links li { border-bottom: 1px solid var(--line-soft); }
  .nav__links ul a { display: block; padding: 16px 0; font-size: 1.1rem; color: var(--ink); }
  .nav__links ul a::after { display: none; }
  .nav__cta-mobile { display: inline-flex; margin-top: 22px; }

  .hero__grid { grid-template-columns: 1fr; gap: 46px; }
  .hero__visual { max-width: 460px; }
  .hero__visual .field { inset: 30px -26px -26px 34px; }

  .credstrip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .credstrip li { padding: 24px 18px 26px 0; }
  .credstrip li:nth-child(odd) { padding-left: 0; border-left: none; }
  .credstrip li:nth-child(even) { padding-left: 22px; border-left: 1px solid var(--line-soft); }
  .credstrip li:nth-child(-n+2) { border-bottom: 1px solid var(--line-soft); }

  .statement__grid,
  .healthcare__grid,
  .about__grid,
  .cta__grid,
  .plist,
  .cases { grid-template-columns: 1fr; }

  .plist { border-top: 1px solid var(--ink); }
  .ladderbar { grid-template-columns: 1fr; }
  .ladderbar li { padding: 20px 0; border-bottom: 1px solid var(--line-soft); }
  .ladderbar li:last-child { border-bottom: none; }
  .ladderbar li + li { padding-left: 0; border-left: none; }
  .ladderbar li + li::before { display: none; }
  .ladderbar li {
    grid-template-columns: 46px minmax(0, 1fr) auto;
    grid-template-areas: "n verb price" "n name price";
    align-items: center;
    gap: 2px 0;
  }
  .ladderbar__n { grid-area: n; }
  .ladderbar__verb { grid-area: verb; }
  .ladderbar__name { grid-area: name; }
  .ladderbar__price { grid-area: price; margin: 0; justify-self: end; }

  .about__media { display: grid; grid-template-columns: minmax(0, 300px); }
  .cases-section .case:first-child { padding-top: 0; border-top: none; }
}

/* Mobile */
@media (max-width: 660px) {
  :root {
    --section-y: clamp(66px, 12vw, 92px);
    --fs-label: 0.81rem;   /* ~13px — small labels stay legible on phones */
  }

  .hero { padding-top: 36px; }
  .hero__actions { flex-direction: column; align-items: stretch; gap: 20px; }
  .hero__actions .btn { width: 100%; }
  .hero__actions .textlink { justify-self: start; align-self: flex-start; }
  .hero__visual { max-width: 100%; }
  .hero__visual .field { display: none; }
  .about__media .field { display: none; }

  .credstrip { grid-template-columns: 1fr; }
  .credstrip li,
  .credstrip li:nth-child(even) {
    padding: 20px 0;
    border-left: none;
    border-bottom: 1px solid var(--line-soft);
  }
  .credstrip li:last-child { border-bottom: none; }
  .credstrip li:nth-child(odd) { padding-left: 0; }

  .who__item { grid-template-columns: 1fr; gap: 14px; }
  .who__num { font-size: 1.6rem; }

  .steps { grid-template-columns: 1fr; row-gap: 0; }
  .steps__item { padding: 0 0 26px; }
  .steps__item + .steps__item { padding-top: 26px; border-top: 1px solid var(--line-soft); }
  .steps__node { display: none; }
  .steps__n { margin-bottom: 8px; }

  .caparea { grid-template-columns: 1fr; }
  .caparea__item,
  .caparea__item + .caparea__item {
    padding: 22px 0;
    border-left: none;
    border-bottom: 1px solid var(--line-soft);
  }

  /* On mobile the service should read title → what it is → price → CTA,
     not price-first. display:contents lets the aside's children reorder
     into the same single column. */
  .svc { grid-template-columns: 1fr; gap: 0; }
  .svc__aside { display: contents; }
  .svc__step { order: 1; margin-bottom: 20px; }
  .svc__main { order: 2; }
  .svc__price { order: 3; margin-top: 26px; }
  .svc__aside .btn { order: 4; margin-top: 18px; justify-self: stretch; }

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

  .principle__grid { grid-template-columns: 1fr; gap: 18px; }
  .principle__quote { max-width: 100%; }
  .principle__close { max-width: 100%; }

  .case__rows > div { grid-template-columns: 1fr; gap: 4px; }
  .case__focus, .tags { padding-left: 0; }
  .case__ctx { font-size: 1.28rem; }
  /* wrapped tags would otherwise start a line with a separator dot */
  .tags { gap: 6px 16px; }
  .tags li + li::before { display: none; }
  .steps__n { font-size: 1.7rem; }

  .about__facts { grid-template-columns: 1fr; gap: 16px; }
  .form__foot .btn { width: 100%; }

  .footer__inner { grid-template-columns: 1fr; align-items: start; }
  .footer__links { gap: 14px 24px; }

  .br-lg { display: none; }
}

/* Small mobile */
@media (max-width: 380px) {
  :root { --gutter: 20px; }
  .brand__name { font-size: 1rem; }
  .flowchip { font-size: 0.72rem; gap: 7px; }
  .flowchip i { width: 11px; }
}
