/* ==========================================================
   diwakartiwari.me — shared styles
   Tokens first, then base, layout, components, pages.
   To hide every "Sample" tag in one go, uncomment:
   .ph { display: none !important; }
   ========================================================== */

:root {
  --ink: #101540;
  --ink-2: #454a78;
  --ink-3: #7479a3;
  --paper: #f5f6fa;
  --white: #ffffff;
  --line: #dcdfee;
  --line-dark: rgba(255, 255, 255, 0.16);
  --blue: #3340ff;
  --blue-d: #2630d6;
  --blue-soft: #e8eaff;
  --gold: #ffc21a;
  --gold-d: #e8a900;
  --mint: #0c9a66;
  --mint-soft: #dff5ec;

  --font-display: "Space Grotesk", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(72px, 10vw, 128px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 0;
  font-weight: 700;
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--gold); color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 6px;
}
.on-dark :focus-visible { outline-color: var(--gold); }

.sr {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px;
  text-decoration: none; transition: top 0.2s;
}
.skip:focus { top: 12px; }

.wrap { width: min(var(--wrap), 100% - var(--gutter) * 2); margin-inline: auto; }
.section { padding-block: var(--section); }
.section-tight { padding-block: clamp(48px, 7vw, 88px); }
.bg-white { background: var(--white); }
.bg-ink { background: var(--ink); color: #fff; }

h2.title { font-size: clamp(2rem, 4.2vw, 3.4rem); }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--ink-2); max-width: 56ch; line-height: 1.55; }
.on-dark .lead, .bg-ink .lead { color: rgba(255, 255, 255, 0.78); }
.measure { max-width: 62ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px; border: 2px solid transparent;
  font-weight: 600; font-size: 1rem; line-height: 1; text-decoration: none; cursor: pointer;
  transition: transform 0.18s var(--ease), background 0.18s, box-shadow 0.18s, color 0.18s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 8px 24px -10px rgba(51, 64, 255, 0.7); }
.btn-primary:hover { background: var(--blue-d); transform: translateY(-2px); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: #ffd04d; transform: translateY(-2px); }
.btn-block { width: 100%; }
.btn svg { width: 18px; height: 18px; transition: transform 0.18s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.text-link {
  font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--gold);
  padding-bottom: 2px; transition: border-color 0.15s, color 0.15s;
}
.text-link:hover { color: var(--blue); border-color: var(--blue); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245, 246, 250, 0.88);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; letter-spacing: -0.02em; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 11px; background: var(--ink); color: #fff;
  display: grid; place-items: center; font-size: 0.95rem; letter-spacing: 0; position: relative;
}
.brand-mark::after {
  content: ""; position: absolute; right: -3px; top: -3px; width: 11px; height: 11px;
  background: var(--gold); border-radius: 50%; border: 2px solid var(--paper);
}
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  text-decoration: none; padding: 9px 14px; border-radius: 999px; font-weight: 500; font-size: 0.97rem;
  color: var(--ink-2); transition: background 0.15s, color 0.15s;
}
.nav-links a:hover { background: var(--blue-soft); color: var(--ink); }
.nav-links a[aria-current="page"] { color: var(--ink); background: var(--white); box-shadow: inset 0 0 0 1px var(--line); }
.nav-links a.nav-cta { background: var(--ink); color: #fff; margin-left: 8px; padding: 10px 20px; font-weight: 600; }
.nav-links a.nav-cta:hover { background: var(--blue); }
.nav-toggle {
  display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--white); cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; transition: transform 0.2s, background 0.2s;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute; left: 0; right: 0; top: 72px; flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 12px var(--gutter) 24px;
    display: none;
  }
  .nav-open .nav-links { display: flex; }
  .nav-links a { padding: 14px 16px; font-size: 1.05rem; }
  .nav-links a.nav-cta { margin: 10px 0 0; text-align: center; }
}

/* ---------- Hero (home) ---------- */
.hero { padding-block: clamp(40px, 6vw, 80px) clamp(56px, 8vw, 104px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.status {
  display: inline-flex; align-items: center; gap: 10px; background: var(--white); border: 1px solid var(--line);
  padding: 8px 16px 8px 12px; border-radius: 999px; font-size: 0.92rem; font-weight: 500; color: var(--ink-2);
}
.status i { width: 9px; height: 9px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px var(--mint-soft); }
.hero h1 { font-size: clamp(2.7rem, 6.2vw, 5.1rem); letter-spacing: -0.04em; line-height: 1; margin: 26px 0 24px; }
.hero h1 span { display: block; }
.hero .lead { margin-bottom: 36px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-note { margin-top: 28px; font-size: 0.95rem; color: var(--ink-3); max-width: 46ch; }

/* The one orchestrated moment: the hero settles in on load. */
@media (prefers-reduced-motion: no-preference) {
  .rise { opacity: 0; transform: translateY(22px); animation: rise 0.8s var(--ease) forwards; animation-delay: calc(var(--i, 0) * 90ms + 60ms); }
  .calc-in { opacity: 0; transform: translateY(30px) scale(0.98); animation: rise 0.95s var(--ease) 0.35s forwards; }
  @keyframes rise { to { opacity: 1; transform: none; } }
}

/* ---------- Revenue calculator ---------- */
.calc {
  background: var(--ink); color: #fff; border-radius: 28px; padding: clamp(24px, 3vw, 36px);
  box-shadow: 0 40px 80px -36px rgba(16, 21, 64, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
  position: relative;
}
.calc::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(500px 220px at 85% -10%, rgba(255, 194, 26, 0.18), transparent 70%);
}
.calc > * { position: relative; }
.calc-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.calc-head h2 { font-size: 1.45rem; line-height: 1.15; letter-spacing: -0.02em; }
.calc-head p { color: rgba(255, 255, 255, 0.62); font-size: 0.92rem; margin-top: 6px; }
.seg { display: inline-flex; background: rgba(255, 255, 255, 0.09); border-radius: 999px; padding: 3px; flex-shrink: 0; }
.seg button {
  border: 0; background: transparent; color: rgba(255, 255, 255, 0.7); padding: 6px 13px; border-radius: 999px;
  font-weight: 600; cursor: pointer; font-size: 0.92rem; transition: background 0.15s, color 0.15s;
}
.seg button[aria-pressed="true"] { background: var(--gold); color: var(--ink); }
.field-row { margin-bottom: 20px; }
.field-row label, .field-label { display: flex; justify-content: space-between; align-items: baseline; font-size: 0.95rem; color: rgba(255, 255, 255, 0.78); margin-bottom: 12px; }
.field-row output { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; color: #fff; font-variant-numeric: tabular-nums; }

input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 99px; cursor: pointer; display: block; margin: 0;
  background: linear-gradient(to right, var(--gold) var(--p, 50%), rgba(255, 255, 255, 0.18) var(--p, 50%));
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 24px; height: 24px; border-radius: 50%; background: #fff;
  border: 6px solid var(--gold); box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4); cursor: grab; transition: transform 0.15s;
}
input[type="range"]::-moz-range-thumb {
  width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 6px solid var(--gold);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4); cursor: grab;
}
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.15); cursor: grabbing; }
input[type="range"]:focus-visible { outline: 3px solid var(--gold); outline-offset: 8px; border-radius: 99px; }

.calc-result {
  margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line-dark);
}
.calc-result .now { display: flex; justify-content: space-between; gap: 12px; color: rgba(255, 255, 255, 0.7); font-size: 0.95rem; margin-bottom: 14px; }
.calc-result .now b { color: #fff; font-variant-numeric: tabular-nums; font-weight: 600; }
.calc-result .gain-label { color: rgba(255, 255, 255, 0.78); font-size: 0.98rem; }
.gain {
  font-family: var(--font-display); font-weight: 800; letter-spacing: -0.04em; line-height: 1.02;
  font-size: clamp(2.6rem, 5.4vw, 3.8rem); color: var(--gold); font-variant-numeric: tabular-nums; margin: 4px 0 8px;
}
.gain small { font-size: 0.4em; font-weight: 600; letter-spacing: -0.01em; color: rgba(255, 255, 255, 0.75); margin-left: 4px; }
.calc-year { color: rgba(255, 255, 255, 0.78); font-size: 0.98rem; }
.calc-year b { color: #fff; }
.calc .btn { margin-top: 24px; }
.calc-foot { font-size: 0.82rem; color: rgba(255, 255, 255, 0.5); margin-top: 14px; text-align: center; }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero h1 { margin-top: 22px; }
}
@media (max-width: 480px) {
  .calc { border-radius: 22px; }
  .calc-head h2 { font-size: 1.3rem; }
  .gain small { display: block; margin: 4px 0 0; }
  .hero-cta .btn { width: 100%; }
}

/* ---------- Proof row ---------- */
.proof { background: var(--white); border-block: 1px solid var(--line); }
.proof-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.proof-item { padding: 34px 28px; border-left: 1px solid var(--line); }
.proof-item:first-child { border-left: 0; padding-left: 0; }
.proof-item b { display: block; font-family: var(--font-display); font-size: clamp(1.9rem, 3vw, 2.6rem); letter-spacing: -0.035em; line-height: 1.05; }
.proof-item span { display: block; margin-top: 6px; font-size: 0.95rem; color: var(--ink-2); }
@media (max-width: 800px) {
  .proof-grid { grid-template-columns: 1fr 1fr; }
  .proof-item:nth-child(3) { border-left: 0; padding-left: 0; }
  .proof-item { border-top: 1px solid var(--line); padding: 26px 20px; }
  .proof-item:nth-child(-n + 2) { border-top: 0; }
}

/* ---------- Section heading block ---------- */
.sec-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); gap: 40px; align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
.sec-head .lead { max-width: 46ch; }
@media (max-width: 860px) { .sec-head { grid-template-columns: 1fr; gap: 18px; } }

/* ---------- Funnel ---------- */
.funnel { display: grid; gap: 12px; }
.stage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 56px); align-items: center; }
.stage-bar {
  width: var(--w); min-width: 150px; height: 64px; border-radius: 14px; display: flex; align-items: center; padding-inline: 22px;
  font-family: var(--font-display); font-weight: 700; font-size: 1.12rem; letter-spacing: -0.01em; color: #fff;
  background: linear-gradient(100deg, var(--blue), #5d68ff);
}
.stage:last-child .stage-bar { background: var(--gold); color: var(--ink); }
.stage p { color: var(--ink-2); font-size: 1rem; max-width: 50ch; }
.stage p strong { color: var(--ink); font-weight: 600; }
.funnel-note { margin-top: 22px; font-size: 0.88rem; color: var(--ink-3); }
@media (max-width: 760px) {
  .stage { grid-template-columns: 1fr; gap: 8px; margin-bottom: 14px; }
  .stage-bar { height: 52px; }
}

/* ---------- Services (accordion) ---------- */
.services { border-top: 1px solid var(--line); }
.service { border-bottom: 1px solid var(--line); }
.service summary {
  display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr) 48px; gap: 32px; align-items: center;
  padding: 30px 0; cursor: pointer; list-style: none;
}
.service summary::-webkit-details-marker { display: none; }
.service h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); transition: color 0.15s; }
.service summary p { color: var(--ink-2); font-size: 1rem; }
.service summary:hover h3 { color: var(--blue); }
.plus {
  width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--ink); position: relative; justify-self: end;
  transition: background 0.2s, transform 0.3s var(--ease), border-color 0.2s;
}
.plus::before, .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 16px; height: 2px; background: var(--ink); transform: translate(-50%, -50%); transition: transform 0.3s var(--ease), background 0.2s; }
.plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.service[open] .plus { background: var(--ink); }
.service[open] .plus::before, .service[open] .plus::after { background: #fff; }
.service[open] .plus::after { transform: translate(-50%, -50%) rotate(0deg); }
.service-body { padding: 0 0 36px; display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr) 48px; gap: 32px; }
.service-body > div:first-child { grid-column: 2; }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 28px; }
.checks li { position: relative; padding-left: 30px; font-size: 0.99rem; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--mint-soft);
}
.checks li::after {
  content: ""; position: absolute; left: 6px; top: 8px; width: 5px; height: 9px; border: solid var(--mint); border-width: 0 2px 2px 0; transform: rotate(40deg) scale(0.9);
}
.service-body .best { grid-column: 2; margin-top: 18px; color: var(--ink-2); font-size: 0.97rem; }
.service-body .best b { color: var(--ink); }
@media (max-width: 820px) {
  .service summary { grid-template-columns: 1fr 44px; gap: 8px 16px; }
  .service summary p { grid-column: 1; grid-row: 2; }
  .service summary .plus { grid-column: 2; grid-row: 1 / span 2; }
  .service-body { grid-template-columns: 1fr; }
  .service-body > div:first-child, .service-body .best { grid-column: 1; }
  .checks { grid-template-columns: 1fr; }
}

/* ---------- Case studies ---------- */
.cases { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px; }
.case {
  background: var(--white); border: 1px solid var(--line); border-radius: 24px; padding: clamp(24px, 3vw, 36px);
  display: flex; flex-direction: column; gap: 18px; position: relative; transition: transform 0.25s var(--ease), box-shadow 0.25s;
}
.case:hover { transform: translateY(-4px); box-shadow: 0 24px 48px -28px rgba(16, 21, 64, 0.35); }
.case-feature { grid-row: span 2; background: var(--ink); color: #fff; border-color: var(--ink); }
.case-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--ink-2); font-size: 0.95rem; }
.case-feature .case-meta { color: rgba(255, 255, 255, 0.7); }
.case h3 { font-size: clamp(1.35rem, 2.1vw, 1.75rem); }
.case-feature h3 { font-size: clamp(1.7rem, 3vw, 2.5rem); }
.case p { color: var(--ink-2); font-size: 1rem; }
.case-feature p { color: rgba(255, 255, 255, 0.76); }
.bars { display: grid; gap: 10px; margin-block: 4px; }
.bar { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; font-size: 0.92rem; color: var(--ink-2); }
.case-feature .bar { color: rgba(255, 255, 255, 0.72); }
.bar i { display: block; height: 14px; border-radius: 99px; background: var(--line); position: relative; overflow: hidden; }
.case-feature .bar i { background: rgba(255, 255, 255, 0.14); }
.bar i::after { content: ""; position: absolute; inset: 0; width: var(--w); border-radius: inherit; background: var(--ink-3); }
.bar.after i::after { background: var(--blue); }
.case-feature .bar.after i::after { background: var(--gold); }
.bar b { font-variant-numeric: tabular-nums; color: var(--ink); min-width: 52px; text-align: right; }
.case-feature .bar b { color: #fff; }
.lift { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.04em; font-size: clamp(2.4rem, 4vw, 3.4rem); line-height: 1; color: var(--mint); }
.case-feature .lift { color: var(--gold); font-size: clamp(3.4rem, 6vw, 5rem); }
.lift small { display: block; font-family: var(--font-body); font-weight: 500; letter-spacing: 0; font-size: 0.95rem; color: var(--ink-2); margin-top: 6px; }
.case-feature .lift small { color: rgba(255, 255, 255, 0.75); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font-size: 0.85rem; padding: 5px 12px; border-radius: 999px; background: var(--blue-soft); color: var(--blue-d); font-weight: 500; }
.case-feature .tags li { background: rgba(255, 255, 255, 0.12); color: #fff; }
.case .text-link { align-self: flex-start; margin-top: auto; }
.case-feature .text-link { border-color: var(--gold); }
.case-feature .text-link:hover { color: var(--gold); }
@media (max-width: 900px) { .cases { grid-template-columns: 1fr; } .case-feature { grid-row: auto; } }

.ph {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.02em; background: #fff3c4; color: #7a5a00; border: 1px dashed #d9a800;
  padding: 2px 8px; border-radius: 6px; white-space: nowrap; font-family: var(--font-body); vertical-align: middle;
}

/* ---------- Process ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: step; position: relative; }
.step { padding: 0 28px 0 0; position: relative; }
.step-num {
  width: 52px; height: 52px; border-radius: 50%; background: var(--gold); color: var(--ink); display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; position: relative; z-index: 1; margin-bottom: 24px;
}
.step::before { content: ""; position: absolute; left: 52px; right: 0; top: 25px; height: 2px; background: var(--line-dark); }
.step:last-child::before { display: none; }
.step h3 { font-size: 1.45rem; margin-bottom: 4px; }
.step .when { color: var(--gold); font-weight: 600; font-size: 0.92rem; margin-bottom: 12px; display: block; }
.step p { color: rgba(255, 255, 255, 0.74); font-size: 0.99rem; }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; gap: 36px; }
  .step { padding: 0 0 0 76px; }
  .step-num { position: absolute; left: 0; top: 0; margin: 0; }
  .step::before { left: 25px; right: auto; top: 52px; bottom: -36px; width: 2px; height: auto; }
}

/* ---------- Industries (home line) ---------- */
.industry-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.industry-links a {
  text-decoration: none; padding: 12px 22px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--white);
  font-weight: 500; transition: border-color 0.15s, background 0.15s, transform 0.15s;
}
.industry-links a:hover { border-color: var(--ink); background: var(--ink); color: #fff; transform: translateY(-2px); }

/* ---------- Testimonial ---------- */
/* .quote { max-width: 980px; } */
.quote blockquote { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.6rem, 3.4vw, 2.6rem); line-height: 1.2; letter-spacing: -0.03em; text-wrap: balance; text-align: center;}
.quote figcaption { margin-top: 28px; display: flex; align-items: center; gap: 14px; color: rgba(255, 255, 255, 0.78); justify-content: center;}
.avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--gold); color: var(--ink); display: grid; place-items: center; font-weight: 700; font-family: var(--font-display); }
.quote figcaption b { color: #fff; display: block; }

/* ---------- CTA + form ---------- */
.cta-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.cta-copy h2 { margin-bottom: 20px; }
.next { margin-top: 36px; display: grid; gap: 22px; }
.next li { display: grid; grid-template-columns: 38px 1fr; gap: 16px; align-items: start; }
.next li > span { width: 38px; height: 38px; border-radius: 50%; background: var(--blue-soft); color: var(--blue-d); display: grid; place-items: center; font-weight: 700; font-family: var(--font-display); }
.next b { display: block; font-weight: 600; }
.next p { color: var(--ink-2); font-size: 0.98rem; }
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: 28px; padding: clamp(24px, 3.4vw, 40px); box-shadow: 0 30px 60px -40px rgba(16, 21, 64, 0.4); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
.f label { display: block; font-weight: 600; font-size: 0.95rem; margin-bottom: 8px; }
.f label em { font-style: normal; font-weight: 400; color: var(--ink-3); }
.f input, .f select, .f textarea {
  width: 100%; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--paper); transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.f textarea { min-height: 120px; resize: vertical; }
.f input:hover, .f select:hover, .f textarea:hover { border-color: #b9bee0; }
.f input:focus, .f select:focus, .f textarea:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px var(--blue-soft); }
.form-status { margin-top: 16px; font-size: 0.97rem; min-height: 1.4em; }
.form-status.ok { color: var(--mint); font-weight: 600; }
.form-status.err { color: #c2371d; font-weight: 600; }
.form-fine { margin-top: 14px; font-size: 0.85rem; color: var(--ink-3); }
.hp { position: absolute; left: -9999px; }
@media (max-width: 900px) { .cta-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, 0.72); padding: clamp(56px, 8vw, 96px) 0 32px; }
.foot-top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 0.6fr)); gap: 48px; }
.foot-brand .brand { color: #fff; }
.foot-brand .brand-mark { background: var(--white); color: var(--ink); }
.foot-brand .brand-mark::after { border-color: var(--ink); }
.foot-brand p { margin-top: 20px; max-width: 38ch; }
.foot-col h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; letter-spacing: -0.01em; }
.foot-col li { margin-bottom: 10px; }
.foot-col a { text-decoration: none; transition: color 0.15s; }
.foot-col a:hover { color: var(--gold); }
.foot-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line-dark); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 0.9rem; }
@media (max-width: 760px) { .foot-top { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }

/* ==========================================================
   Inner pages
   ========================================================== */
.page-hero { padding-block: clamp(56px, 8vw, 104px) clamp(40px, 5vw, 64px); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2.4rem, 5.4vw, 4.3rem); letter-spacing: -0.04em; line-height: 1.02; text-align: center; margin-bottom: 22px; }
.page-hero.wide h1 { max-width: 100%; text-align: center;}
.page-hero .lead {
  text-align: center;
  max-width: 100%;
}

.split { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.split.flip { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); }
.sticky { position: sticky; top: 104px; }
@media (max-width: 860px) { .split, .split.flip { grid-template-columns: 1fr; } .sticky { position: static; } }

.prose { display: grid; gap: 1.15em; max-width: 62ch; }
.prose p { color: var(--ink-2); }
.prose p:first-child { color: var(--ink); font-size: 1.2rem; }
.prose h3 { font-size: 1.5rem; margin-top: 0.8em; }

/* Portrait slot (swap for a real photo: <img src="assets/diwakar.jpg" alt="Diwakar Tiwari">) */
.portrait {
  aspect-ratio: 4 / 5; border-radius: 28px; background: linear-gradient(160deg, var(--blue), var(--ink) 70%); position: relative; overflow: hidden;
  display: grid; place-items: center; color: #fff;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait .mono { font-family: var(--font-display); font-weight: 800; font-size: clamp(5rem, 12vw, 9rem); letter-spacing: -0.06em; }
.portrait::after { content: ""; position: absolute; width: 140px; height: 140px; border-radius: 50%; background: var(--gold); right: -40px; bottom: -40px; opacity: 0.95; }
.portrait .ph { position: absolute; left: 16px; top: 16px; z-index: 2; }

.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 32px; border-top: 1px solid var(--line); }
.facts div { padding: 22px 20px 0 0; }
.facts b { font-family: var(--font-display); font-size: 1.9rem; letter-spacing: -0.03em; display: block; line-height: 1.1; }
.facts span { color: var(--ink-2); font-size: 0.93rem; }

.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.principle { border-top: 3px solid var(--ink); padding-top: 22px; }
.principle h3 { font-size: 1.35rem; margin-bottom: 10px; }
.principle p { color: var(--ink-2); font-size: 0.99rem; }
.bg-ink .principle { border-color: var(--gold); }
.bg-ink .principle p { color: rgba(255, 255, 255, 0.74); }
@media (max-width: 860px) { .principles { grid-template-columns: 1fr; } .facts { grid-template-columns: 1fr 1fr 1fr; } }

.timeline { border-left: 2px solid var(--line); margin-left: 8px; display: grid; gap: 34px; }
.timeline li { position: relative; padding-left: 32px; }
.timeline li::before { content: ""; position: absolute; left: -9px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--paper); border: 3px solid var(--blue); }
.bg-white .timeline li::before { background: var(--white); }
.timeline b { font-family: var(--font-display); font-size: 1.2rem; letter-spacing: -0.02em; display: block; }
.timeline span { color: var(--blue-d); font-weight: 600; font-size: 0.92rem; }
.timeline p { color: var(--ink-2); margin-top: 6px; max-width: 54ch; }

.stack { display: flex; flex-wrap: wrap; gap: 10px; }
.stack li { padding: 10px 18px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); font-weight: 500; font-size: 0.97rem; }

/* Services page blocks */
.svc-block { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 6vw, 88px); padding-block: clamp(44px, 6vw, 72px); border-top: 1px solid var(--line); }
.svc-block:first-of-type { border-top: 0; }
.svc-block h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); margin-bottom: 14px; }
.svc-block .sticky p { color: var(--ink-2); }
.svc-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.svc-cols h4 { font-size: 1.05rem; margin-bottom: 14px; letter-spacing: -0.01em; }
.svc-cols .checks { grid-template-columns: 1fr; }
.svc-outcome { margin-top: 28px; padding: 18px 22px; border-radius: 16px; background: var(--blue-soft); color: var(--ink); font-size: 0.98rem; }
.svc-outcome b { color: var(--blue-d); }
@media (max-width: 860px) { .svc-block { grid-template-columns: 1fr; } .svc-cols { grid-template-columns: 1fr; } }

.models { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.model { background: var(--white); border: 1px solid var(--line); border-radius: 22px; padding: 30px; display: flex; flex-direction: column; gap: 14px; }
.model h3 { font-size: 1.4rem; }
.model p { color: var(--ink-2); font-size: 0.99rem; }
.model .fit { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); font-size: 0.93rem; color: var(--ink-2); }
.model .fit b { color: var(--ink); }
.model.hot { background: var(--ink); color: #fff; border-color: var(--ink); }
.model.hot p, .model.hot .fit { color: rgba(255, 255, 255, 0.74); border-color: var(--line-dark); }
.model.hot .fit b { color: #fff; }
@media (max-width: 900px) { .models { grid-template-columns: 1fr; } }

/* Case study detail */
.cs { padding-block: clamp(44px, 6vw, 80px); border-top: 1px solid var(--line); }
.cs:first-of-type { border-top: 0; }
.cs-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(28px, 5vw, 72px); align-items: end; margin-bottom: 40px; }
.cs-head h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); margin-top: 14px; }
.cs-numbers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; background: var(--ink); color: #fff; border-radius: 22px; overflow: hidden; }
.cs-numbers div { padding: 26px 24px; border-left: 1px solid var(--line-dark); }
.cs-numbers div:first-child { border-left: 0; }
.cs-numbers b { display: block; font-family: var(--font-display); font-size: clamp(1.7rem, 3vw, 2.5rem); letter-spacing: -0.035em; color: var(--gold); line-height: 1.05; }
.cs-numbers span { font-size: 0.9rem; color: rgba(255, 255, 255, 0.74); }
.cs-body { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; margin-top: 40px; }
.cs-body h3 { font-size: 1.25rem; margin-bottom: 10px; }
.cs-body p { color: var(--ink-2); font-size: 1rem; }
.cs-body ul li { color: var(--ink-2); padding-left: 18px; position: relative; margin-bottom: 8px; font-size: 1rem; }
.cs-body ul li::before { content: ""; position: absolute; left: 0; top: 0.7em; width: 7px; height: 7px; border-radius: 50%; background: var(--gold-d); }
@media (max-width: 860px) { .cs-head, .cs-body { grid-template-columns: 1fr; } .cs-numbers { grid-template-columns: 1fr; } .cs-numbers div { border-left: 0; border-top: 1px solid var(--line-dark); } .cs-numbers div:first-child { border-top: 0; } }

/* Industries page */
.ind-list { border-top: 1px solid var(--line); }
.ind { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: clamp(24px, 5vw, 72px); padding-block: 40px; border-bottom: 1px solid var(--line); }
.ind h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); }
.ind p { color: var(--ink-2); max-width: 58ch; }
.ind .watch { margin-top: 16px; font-size: 0.97rem; }
.ind .watch b { color: var(--ink); }
@media (max-width: 760px) { .ind { grid-template-columns: 1fr; gap: 12px; } }

/* Insights */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post { background: var(--white); border: 1px solid var(--line); border-radius: 22px; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.post .kind { font-size: 0.88rem; color: var(--blue-d); font-weight: 600; }
.post h3 { font-size: 1.35rem; line-height: 1.15; }
.post p { color: var(--ink-2); font-size: 0.98rem; }
.post .soon { margin-top: auto; font-size: 0.88rem; color: var(--ink-3); display: flex; align-items: center; gap: 8px; }
.post .soon::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
@media (max-width: 960px) { .posts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .posts { grid-template-columns: 1fr; } }

/* Contact */
.contact-list { display: grid; gap: 18px; margin-top: 32px; }
.contact-list a, .contact-list div { display: block; text-decoration: none; padding: 18px 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--white); transition: border-color 0.15s, transform 0.15s; }
.contact-list a:hover { border-color: var(--ink); transform: translateY(-2px); }
.contact-list small { display: block; color: var(--ink-3); font-size: 0.85rem; }
.contact-list b { font-weight: 600; word-break: break-word; }
.faq { border-top: 1px solid var(--line); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { padding: 24px 0; cursor: pointer; list-style: none; font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; letter-spacing: -0.02em; display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus { width: 36px; height: 36px; flex-shrink: 0; }
.faq summary .plus::before, .faq summary .plus::after { width: 13px; }
.faq details[open] .plus { background: var(--ink); }
.faq details[open] .plus::before, .faq details[open] .plus::after { background: #fff; }
.faq details[open] .plus::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq details p { padding: 0 0 26px; color: var(--ink-2); max-width: 64ch; }

/* 404 */
.nf { min-height: 62vh; display: grid; place-items: center; text-align: left; }
.nf h1 { font-size: clamp(5rem, 16vw, 11rem); letter-spacing: -0.06em; line-height: 0.9; color: var(--blue); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ==========================================================
   DARK THEME (site-wide black)
   Re-points the colour tokens, then patches the few spots
   that used a dark "ink" as a surface colour.
   ========================================================== */
:root {
  color-scheme: dark;
  --ink: #f3f3f6;
  --ink-2: #a9a9b8;
  --ink-3: #74747f;
  --paper: #09090c;
  --white: #111116;
  --line: rgba(255, 255, 255, 0.1);
  --line-dark: rgba(255, 255, 255, 0.12);
  --blue: #6c7bff;
  --blue-d: #98a3ff;
  --blue-soft: rgba(108, 123, 255, 0.15);
  --gold: #ffc21a;
  --gold-d: #ffc21a;
  --mint: #3ddc97;
  --mint-soft: rgba(61, 220, 151, 0.15);
  --surface: #0d0d12;
  --surface-2: #15151c;
  --on-gold: #0a0a0c;
}
body { background: var(--paper); }
h1, h2, h3, h4 { letter-spacing: -0.03em; }
::selection { background: var(--gold); color: #000; }

.skip { background: var(--gold); color: #000; }
.site-header { background: rgba(9, 9, 12, 0.78); border-bottom-color: var(--line); }
.brand-mark { background: var(--ink); color: #0a0a0c; }
.nav-links a:hover { color: #fff; }
.nav-links a.nav-cta { background: var(--gold); color: var(--on-gold); }
.nav-links a.nav-cta:hover { background: #ffd24d; color: var(--on-gold); }
.nav-toggle { background: var(--white); }

/* Buttons */
.btn-primary { background: var(--gold); color: var(--on-gold); box-shadow: 0 10px 34px -12px rgba(255, 194, 26, 0.55); }
.btn-primary:hover { background: #ffd24d; }
.btn-ghost { border-color: rgba(255, 255, 255, 0.3); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #0a0a0c; border-color: var(--ink); }
.btn-gold { color: var(--on-gold); }
.text-link { border-bottom-color: var(--gold); }
.text-link:hover { color: var(--gold); border-color: var(--gold); }

/* Hero glow */
.hero { position: relative; }
.hero::before {
  content: ""; position: absolute; inset: -10% -10% auto -10%; height: 100%; pointer-events: none;
  background:
    radial-gradient(620px 420px at 12% 18%, rgba(91, 107, 255, 0.22), transparent 70%),
    radial-gradient(520px 380px at 88% 8%, rgba(255, 194, 26, 0.11), transparent 70%);
}
.hero > .wrap { position: relative; }
.status { background: var(--white); }

/* Calculator */
.calc {
  background: linear-gradient(180deg, #14141c, #0d0d12); border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 40px 90px -40px rgba(91, 107, 255, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
}
.seg button[aria-pressed="true"] { color: var(--on-gold); }

/* Sections */
.bg-white { background: var(--surface); }
.bg-ink { background: var(--surface-2); color: #fff; border-block: 1px solid var(--line); }
.proof { background: var(--surface); }
.stage:last-child .stage-bar { color: var(--on-gold); }
.stage-bar { background: linear-gradient(100deg, #4252ff, #7a86ff); }

/* Accordions: plus icon flips on open */
.service[open] .plus, .faq details[open] .plus { background: var(--ink); }
.service[open] .plus::before, .service[open] .plus::after,
.faq details[open] .plus::before, .faq details[open] .plus::after { background: #0a0a0c; }
.plus { border-color: rgba(255, 255, 255, 0.4); }

/* Cards */
.case { background: var(--white); }
.case:hover { box-shadow: 0 24px 60px -30px rgba(91, 107, 255, 0.45); border-color: rgba(255, 255, 255, 0.2); }
.case-feature { background: linear-gradient(160deg, #1b1d4d, #0f0f16 70%); border-color: rgba(255, 255, 255, 0.14); color: #fff; }
.case-feature .lift { color: var(--gold); }
.tags li { color: var(--blue-d); }
.step-num { color: var(--on-gold); }
.avatar { color: var(--on-gold); }
.industry-links a:hover { background: var(--ink); color: #0a0a0c; border-color: var(--ink); }
.model.hot { background: linear-gradient(160deg, #1b1d4d, #0f0f16 75%); border-color: rgba(255, 255, 255, 0.16); color: #fff; }
.cs-numbers { background: var(--surface-2); border: 1px solid var(--line); }
.svc-outcome { border: 1px solid rgba(108, 123, 255, 0.25); }

/* Form */
.form-card { background: var(--white); box-shadow: 0 30px 80px -50px rgba(91, 107, 255, 0.5); }
.f input, .f select, .f textarea { background: #0b0b0f; border-color: rgba(255, 255, 255, 0.14); }
.f input:hover, .f select:hover, .f textarea:hover { border-color: rgba(255, 255, 255, 0.3); }
.f input:focus, .f select:focus, .f textarea:focus { background: #101016; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(255, 194, 26, 0.16); }
.f input::placeholder, .f textarea::placeholder { color: var(--ink-3); }
.form-status.err { color: #ff8a73; }

/* Footer */
.site-footer { background: #050507; border-top: 1px solid var(--line); }
.foot-brand .brand-mark { background: var(--ink); color: #0a0a0c; }
.foot-brand .brand-mark::after { border-color: #050507; }

/* Inner pages */
.portrait { background: linear-gradient(160deg, #3a46ff, #0b0b14 72%); }
.portrait .mono { color: #fff; }
.ph { background: rgba(255, 194, 26, 0.14); color: #ffd666; border-color: rgba(255, 194, 26, 0.55); }
.nf h1 { color: var(--blue); }
.contact-list a:hover { border-color: var(--gold); }

/* ==========================================================
   Hero with portrait, pills, platform strip, calculator section
   ========================================================== */
.hero h1 { font-size: clamp(2.5rem, 5.4vw, 4.5rem); line-height: 1.02; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 34px; }
.pills li { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.04); font-size: 0.92rem; color: var(--ink-2); }

.hero-photo { position: relative; width: min(100%, 500px); justify-self: end; }
.photo-frame {
  position: relative; aspect-ratio: 4 / 5; border-radius: 32px; overflow: hidden; display: grid; place-items: center;
  background: linear-gradient(160deg, #2c38dd, #0b0b14 72%); border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 60px 110px -50px rgba(91, 107, 255, 0.7);
}
.photo-frame::after { content: ""; position: absolute; width: 220px; height: 220px; right: -70px; bottom: -70px; border-radius: 50%; background: var(--gold); opacity: 0.92; z-index: 0; }
.photo-mono { font-family: var(--font-display); font-weight: 700; font-size: clamp(6rem, 14vw, 10rem); letter-spacing: -0.06em; color: #fff; position: relative; z-index: 1; }
.photo-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; z-index: 2; }
.photo-ph { position: absolute; left: 16px; top: 16px; z-index: 3; }
.photo-frame img ~ .photo-ph { display: none; } /* tag disappears once a real photo loads */
.photo-card {
  position: absolute; left: -28px; bottom: 32px; z-index: 4; padding: 16px 22px; border-radius: 18px;
  background: rgba(14, 14, 19, 0.88); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.14); box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.8);
}
.photo-card b { display: block; font-family: var(--font-display); font-size: 1.15rem; letter-spacing: -0.02em; }
.photo-card span { font-size: 0.9rem; color: var(--ink-2); }
@media (max-width: 960px) {
  .hero-photo { justify-self: start; width: min(100%, 420px); }
  .photo-card { left: 16px; right: 16px; bottom: 16px; }
}

.calc-section { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.calc-head h3 { font-size: 1.45rem; line-height: 1.15; letter-spacing: -0.02em; }
@media (max-width: 900px) { .calc-section { grid-template-columns: 1fr; } }

.stack li { color: var(--ink); }

/* Hero headline flows as one balanced block */
.hero h1 { font-size: clamp(2.4rem, 4.7vw, 4.1rem); line-height: 1.04; }
.hero h1 span { display: inline; }

/* ==========================================================
   Photo sits directly on the black page: no frame, border,
   box or colour block. Bottom edge fades into the background.
   ========================================================== */
.photo-frame {
  background: none; border: 0; border-radius: 0; box-shadow: none; overflow: visible;
  display: block; aspect-ratio: 4 / 5;
}
.photo-frame::after { display: none; }
.photo-frame img {
  object-fit: contain; object-position: center bottom;
  -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 78%, transparent 100%);
}
.photo-mono {
  position: absolute; inset: 0; display: grid; place-items: center; color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.16);
}
.photo-ph { left: 0; top: 0; }
.photo-card { position: static; background: none; border: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; padding: 18px 0 0; }
@media (max-width: 960px) { .photo-card { left: auto; right: auto; bottom: auto; } }

/* About page portrait: same treatment */
.portrait { background: none; border-radius: 0; }
.portrait::after { display: none; }
.portrait .mono { color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.16); }
.portrait img {
  position: absolute; inset: 0; object-fit: contain; object-position: center bottom;
  -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 78%, transparent 100%);
}
.portrait img ~ .ph, .portrait img ~ .mono { display: none; }
.photo-frame img ~ .photo-mono { display: none; }
.photo-frame:has(img) .photo-mono, .portrait:has(img) .mono { display: none; }

/* Photo takes its own natural proportions (no fixed box), so it never sits low or leaves empty space above the head */
.photo-frame { aspect-ratio: auto; }
.photo-frame:not(:has(img)) { aspect-ratio: 4 / 5; }
.photo-frame img {
  position: static; inset: auto; display: block; width: 100%; height: auto; max-height: 640px;
  object-fit: contain; object-position: center top;
}
.portrait { aspect-ratio: auto; display: block; }
.portrait:not(:has(img)) { aspect-ratio: 4 / 5; display: grid; }
.portrait img { position: static; inset: auto; display: block; width: 100%; height: auto; max-height: 640px; object-position: center top; }
.hero-photo { align-self: start; }

/* ==========================================================
   Icons, illustrations, and the stacked section heading
   ========================================================== */
.sec-head.stack { grid-template-columns: 1fr; gap: 18px; align-items: center;justify-content: center;}
/* .sec-head.stack .title { max-width: 22ch; } */
.sec-head.stack .lead { max-width: 60ch; text-align: center;}

.svc-ico {
  width: 52px; height: 52px; flex-shrink: 0; border-radius: 15px; display: grid; place-items: center;
  color: var(--gold); background: rgba(255, 194, 26, 0.1); border: 1px solid rgba(255, 194, 26, 0.28);
}
.svc-ico svg { width: 26px; height: 26px; }
.svc-ico-lg { width: 64px; height: 64px; border-radius: 18px; margin-bottom: 22px; }
.svc-ico-lg svg { width: 32px; height: 32px; }

/* SVG colour classes */
.g-f { fill: var(--gold); } .g-s { stroke: var(--gold); }
.b-f { fill: rgba(108, 123, 255, 0.85); } .b-f2 { fill: rgba(108, 123, 255, 0.4); }
.w-f { fill: rgba(255, 255, 255, 0.05); } .w-f2 { fill: rgba(255, 255, 255, 0.2); }
.w-s { stroke: rgba(255, 255, 255, 0.3); } .w-s2 { stroke: rgba(255, 255, 255, 0.8); } .w-f3 { fill: #fff; }
.svc-art svg .b-f.w-s, .svc-art svg .b-f2.w-s { stroke: rgba(255, 255, 255, 0.35); }

.svc-art {
  border-radius: 22px; padding: 14px; background: linear-gradient(160deg, #17183a, #0e0e14 75%);
  border: 1px solid var(--line); max-width: 380px;
}
.svc-art svg { width: 100%; height: auto; display: block; }

/* Home accordion: icon next to the title, illustration in the empty left column */
.svc-head { display: flex; align-items: center; gap: 18px; min-width: 0; }
.service-body > div.svc-art:first-child { grid-column: 1; grid-row: 1 / span 2; align-self: start; }
.service-body > div:not(.svc-art) { grid-column: 2; }
@media (max-width: 820px) {
  .service-body > div.svc-art:first-child { grid-column: 1; grid-row: auto; }
  .service-body > div:not(.svc-art) { grid-column: 1; }
  .svc-ico { width: 46px; height: 46px; }
  .wrap .sec-head.stack h2.title {
 text-align: center;
 font-size: 27px;
}
}

/* Services page: illustration under the sticky intro */
.svc-block .svc-art { margin-top: 28px; }
@media (max-width: 860px) { .svc-block .svc-art { max-width: 340px; } 
.wrap .sec-head.stack h2.title {
 text-align: center;
 font-size: 27px;
}}

/* Industries */
.ind-head { display: flex; align-items: center; gap: 18px; align-self: start; }

/* Insight cards */
.post .svc-ico { margin-bottom: 4px; }

/* Contact list with icons */
.contact-list a, .contact-list > div { display: flex; align-items: center; gap: 16px; }
.contact-list small, .contact-list b { display: block; }
.contact-list .svc-ico { width: 44px; height: 44px; border-radius: 12px; }
.contact-list .svc-ico svg { width: 22px; height: 22px; }

/* ==========================================================
   Insights: article cards, article pages, social icons
   ========================================================== */
.post { position: relative; transition: border-color 0.2s, transform 0.25s var(--ease); }
.post:hover { border-color: rgba(255, 255, 255, 0.24); transform: translateY(-3px); }
.post h3 a { text-decoration: none; }
.post h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.post h3 a:hover { color: var(--gold); }
.post .mins { margin-top: auto; font-size: 0.88rem; color: var(--ink-3); }
.posts.two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 700px) { .posts.two { grid-template-columns: 1fr; } }

.art-hero h1 { max-width: 24ch; font-size: clamp(2.1rem, 4.6vw, 3.5rem); }
.crumb { display: inline-block; margin-bottom: 22px; text-decoration: none; color: var(--gold); font-weight: 600; font-size: 0.95rem; }
.crumb:hover { text-decoration: underline; text-underline-offset: 4px; }
.art-meta { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 26px; color: var(--ink-3); font-size: 0.95rem; }

/* .article { max-width: 720px; } */
.article h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 2.1em 0 0.6em; }
.article h2:first-child { margin-top: 0; }
.article h3 { font-size: 1.25rem; margin: 1.7em 0 0.4em; }
.article p, .article li { color: var(--ink-2); font-size: 1.1rem; line-height: 1.75; }
.article p { margin: 0 0 1.1em; }
.article strong { color: var(--ink); font-weight: 600; }
.article ul, .article ol { margin: 0 0 1.3em; padding-left: 1.3em; }
.article ul { list-style: disc; }
.article li { margin-bottom: 0.7em; padding-left: 0.2em; }
.article li::marker { color: var(--gold); }
.article a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.article a:hover { color: var(--gold); }
.callout { margin: 2em 0; padding: 22px 26px; border-radius: 16px; background: var(--blue-soft); border-left: 4px solid var(--gold); color: var(--ink); font-size: 1.08rem; line-height: 1.65; }
.callout strong { color: var(--ink); }
.author { display: flex; gap: 16px; align-items: center; margin-top: 3em; padding-top: 28px; border-top: 1px solid var(--line); }
.author b { display: block; font-family: var(--font-display); font-size: 1.1rem; }
.author p { margin: 2px 0 0; font-size: 0.97rem; }

.social { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.social:empty { display: none; }
.social a {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2); transition: background 0.18s, color 0.18s, border-color 0.18s, transform 0.18s;
}
.social a:hover { background: var(--gold); color: #0a0a0c; border-color: var(--gold); transform: translateY(-2px); }
.social svg { width: 20px; height: 20px; }

/* Article page heading: centred to match the other page headings */
.art-hero .crumb, .art-hero h1, .art-hero .lead { margin-inline: auto; }
.art-hero { text-align: center; }
.art-hero h1 { max-width: 24ch; }
.art-hero .lead { max-width: 60ch; }
.art-hero .art-meta { justify-content: center; }

/* ===== Reviews anchor, narrow nav, ticker, slim footer ===== */
#reviews{scroll-margin-top:80px}
@media (max-width:1100px) and (min-width:861px){
  .nav-links a{padding:9px 10px;font-size:.92rem}
  .nav-links .nav-cta{padding:9px 14px}
}
.ticker{border-block:1px solid rgba(255,255,255,.09);background:var(--surface);overflow:hidden;height:42px;display:flex;align-items:center}
.ticker-track{display:flex;width:max-content;animation:ticker 70s linear infinite}
.ticker:hover .ticker-track,.ticker:focus-within .ticker-track{animation-play-state:paused}
.ticker-group{display:flex;align-items:center;flex-shrink:0}
.ticker-group a{display:inline-flex;align-items:center;gap:10px;padding:0 28px;font-size:.86rem;color:var(--ink);white-space:nowrap;text-decoration:none;position:relative}
.ticker-group a::after{content:"";position:absolute;right:-2px;top:50%;width:4px;height:4px;border-radius:50%;background:rgba(255,255,255,.28);transform:translateY(-50%)}
.ticker-group a:hover{color:var(--gold)}
.ticker-group b{font-size:.68rem;letter-spacing:.08em;text-transform:uppercase;color:var(--on-gold);background:var(--gold);padding:2px 7px;border-radius:999px;font-weight:700}
@keyframes ticker{to{transform:translateX(-50%)}}
.site-footer{padding:0}
.foot-bar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:14px 28px;padding-block:20px}
.foot-bar .brand{font-size:1rem}
.foot-bar .brand-mark{width:30px;height:30px;font-size:.75rem;border-radius:9px}
.foot-links{display:flex;flex-wrap:wrap;gap:6px 20px;font-size:.9rem}
.foot-links a{color:rgba(255,255,255,.72);text-decoration:none}
.foot-links a:hover{color:var(--gold)}
.site-footer .social{margin:0;padding:0;list-style:none;display:flex;gap:8px}
.site-footer .social a{width:38px;height:38px}
.site-footer .social svg{width:18px;height:18px}
.foot-copy{border-top:1px solid rgba(255,255,255,.09)}
.foot-copy-in{display:flex;flex-wrap:wrap;justify-content:space-between;gap:6px 20px;padding-block:12px;font-size:.8rem;color:rgba(255,255,255,.5)}
@media (max-width:700px){.foot-bar{justify-content:flex-start}.foot-links{gap:6px 16px}}

/* Ticker must always move, even when the visitor's system has "reduce motion" on (it overrides the global rule above) */
@media (prefers-reduced-motion: reduce) {
  .ticker .ticker-track { animation-duration: 70s !important; animation-iteration-count: infinite !important; animation-timing-function: linear !important; }
  .ticker:hover .ticker-track, .ticker:focus-within .ticker-track { animation-play-state: paused !important; }
}

/* ===== Reviews grid ===== */
.reviews-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin-top:40px}
.review{margin:0;display:flex;flex-direction:column;gap:14px;padding:26px 26px 22px;background:var(--surface);border:1px solid rgba(255,255,255,.09);border-radius:18px;transition:border-color .25s,transform .25s}
.review:hover{border-color:rgba(255,194,26,.45);transform:translateY(-2px)}
.review .rq{color:var(--gold);width:30px;height:30px;display:block}
.review .rq svg{width:30px;height:30px;display:block}
.review blockquote{margin:0;flex:1;font-size:.98rem;line-height:1.65;color:var(--ink);text-align:left}
.review figcaption{display:flex;flex-direction:column;gap:2px;padding-top:16px;border-top:1px solid rgba(255,255,255,.09);font-size:.82rem;color:rgba(255,255,255,.55);justify-content:flex-start}
.review figcaption b{color:var(--ink);font-size:.92rem}
.review.is-extra{display:none}
.reviews-grid.open .review.is-extra{display:flex}
.reviews-more{display:flex;justify-content:center;margin-top:32px}
@media (max-width:980px){.reviews-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:640px){.reviews-grid{grid-template-columns:1fr}.review{padding:22px}}
#reviews .sec-head.stack{flex-direction:column;align-items:center;text-align:center;gap:12px}
#reviews .sec-head.stack .lead{text-align:center}

/* Industries: sample-site link. Stays hidden until a link is pasted into href="" */
.sample-link{display:block;width:fit-content;margin-top:12px}
.sample-link[href=""]{display:none}

/* ===== Tighter vertical rhythm + gap between ticker and stats ===== */
:root { --section: clamp(44px, 5.5vw, 76px); }
.section-tight { padding-block: clamp(36px, 4.5vw, 56px); }
.hero { padding-block: clamp(32px, 5vw, 64px) clamp(36px, 5vw, 64px); }
.sec-head { margin-bottom: clamp(24px, 3.5vw, 44px); }
.ticker { margin-bottom: clamp(28px, 3.5vw, 44px); }
