/* ==========================================================
   Design tokens — change colors, fonts and sizes here
   ========================================================== */
:root {
  --ink: #33302d;          /* main text */
  --ink-strong: #1d1b19;   /* active nav pill */
  --muted: #6f6a64;        /* secondary text */
  --line: #ebe9e6;         /* hairline borders */
  --bg: #ffffff;
  --surface: #f7f7f9;      /* soft panels */
  --accent: #6c4cf5;       /* purple highlight */

  /* card gradients */
  --grad-1: linear-gradient(135deg, #c9b0f7 0%, #f3a8c9 100%);
  --grad-2: linear-gradient(135deg, #ece5fc 0%, #d8d0f6 100%);
  --grad-3: linear-gradient(135deg, #dbe8fc 0%, #ece9fb 100%);
  --grad-4: linear-gradient(135deg, #fde3d6 0%, #f6cadb 100%);
  --grad-5: linear-gradient(135deg, #d8f0ea 0%, #dde5fb 100%);
  --grad-quote:
    radial-gradient(120% 90% at 100% 100%, rgba(255,160,110,.95) 0%, rgba(255,160,110,0) 45%),
    linear-gradient(115deg, #5a48f7 0%, #8f5cf6 38%, #d66fe8 72%, #f08ad0 100%);

  --font-sans: "Inter Tight", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Newsreader", Georgia, serif;

  --radius: 16px;
  --radius-sm: 12px;
  --max: 1200px;
  --gutter: clamp(16px, 2.2vw, 24px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 500; letter-spacing: -0.02em; line-height: 1.15; }
p { margin: 0; }
.hl { color: var(--accent); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

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

/* ==========================================================
   Navigation
   ========================================================== */
.site-nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px var(--gutter);
  max-width: var(--max); margin: 0 auto;
  pointer-events: none;
}
.site-nav > * { pointer-events: auto; }
.logo {
  font-weight: 800; font-size: 26px; letter-spacing: -0.04em;
  text-decoration: none; color: var(--ink-strong);
  /* frosted backing so the logo stays readable over content while scrolling */
  padding: 4px 10px; margin-left: -10px; border-radius: 12px;
  background: rgba(255, 255, 255, .78);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.nav-pill {
  display: flex; align-items: center; gap: 2px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 4px 18px rgba(30, 20, 10, 0.06);
}
.nav-pill a {
  font-size: 15px; text-decoration: none; color: var(--ink);
  padding: 7px 14px; border-radius: 999px;
  transition: background .2s, color .2s;
}
.nav-pill a:hover { background: #f1f0ee; }
.nav-pill a[aria-current="page"] { background: var(--ink-strong); color: #fff; }

/* ==========================================================
   Work cards
   ========================================================== */
.work-list { display: grid; gap: 14px; padding-bottom: 80px; }
.work-card {
  display: block; position: relative; overflow: hidden;
  text-decoration: none; color: var(--ink);
  border-radius: var(--radius);
  padding: clamp(24px, 3.5vw, 40px) clamp(24px, 3.5vw, 40px) 0;
  border: 1px solid rgba(0,0,0,.04);
}
.work-card.g1 { background: var(--grad-1); }
.work-card.g2 { background: var(--grad-2); }
.work-card.g3 { background: var(--grad-3); }
.work-card.g4 { background: var(--grad-4); }
.work-card.g5 { background: var(--grad-5); }
.work-card .brand { font-weight: 700; font-size: 17px; letter-spacing: -0.01em; margin-bottom: 14px; }
/* Logos are sized for equal visual weight, not equal height:
   the compact cloud gets more height than the two wide wordmarks. */
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; margin-bottom: 20px; }
.brand-logo { display: block; width: auto; flex-shrink: 0; }
.brand-logo.salesforce { height: 38px; }
.brand-logo.youtube { height: 24px; }
.brand-logo.bcg { height: 25px; }
.brand-logo.gtranslate { height: 40px; }
.brand-logo.mahindra { height: 22px; }
@media (max-width: 520px) {
  .brand-logo.salesforce { height: 32px; }
  .brand-logo.youtube { height: 20px; }
  .brand-logo.bcg { height: 21px; }
  .brand-logo.gtranslate { height: 34px; }
  .brand-logo.mahindra { height: 18px; }
}
.tag {
  display: inline-block; flex-shrink: 1; text-align: center;
  font-size: 14px; font-weight: 500; line-height: 1.3; letter-spacing: 0;
  padding: 6px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .6); color: var(--ink);
  border: 1px solid rgba(255, 255, 255, .8);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.work-card h2 { font-size: clamp(24px, 3.2vw, 32px); max-width: 620px; margin-bottom: clamp(24px, 3vw, 36px); }
.work-card .shot {
  height: clamp(180px, 26vw, 300px); overflow: hidden;
  margin: 0 auto; max-width: 860px;
  border-radius: 12px 12px 0 0;
  box-shadow: 0 -2px 24px rgba(40, 20, 60, .10);
  transition: transform .5s cubic-bezier(.2,.7,.2,1);
}
.work-card .shot img { width: 100%; }
.work-card:hover .shot { transform: translateY(-8px); }

/* Work grid: 3 rows of 2. Cards have a fixed height so the page never jumps.
   On hover the card widens while its neighbour slims down, and the product
   image pops up. (Case-study "Next" cards keep the simple style above.) */
.work-row { display: flex; gap: 14px; }
.work-row > .work-card {
  flex: 1 1 0; min-width: 0;
  display: flex; flex-direction: column;
  height: clamp(380px, 34vw, 460px);
  padding: clamp(22px, 2.6vw, 32px) clamp(22px, 2.6vw, 32px) 0;
  transition: flex-grow .6s cubic-bezier(.2,.7,.2,1), box-shadow .4s ease;
}
.work-row > .work-card h2 { font-size: clamp(22px, 2.2vw, 28px); max-width: 520px; margin-bottom: 20px; }
.work-row > .work-card .shot {
  width: 100%; height: clamp(200px, 20vw, 260px); margin-top: auto; flex-shrink: 0;
  transform: translateY(14px);
  transition: transform .6s cubic-bezier(.2,.7,.2,1), box-shadow .6s ease;
}
.work-row > .work-card .shot img { height: 100%; object-fit: cover; object-position: top center; }
@media (hover: hover) and (min-width: 721px) {
  .work-row:hover > .work-card,
  .work-row:focus-within > .work-card { flex-grow: .72; }
  .work-row > .work-card:hover,
  .work-row > .work-card:focus-visible { flex-grow: 1.28; box-shadow: 0 18px 40px -18px rgba(40, 20, 60, .25); }
  .work-row > .work-card:hover .shot,
  .work-row > .work-card:focus-visible .shot { transform: translateY(-6px) scale(1.03); box-shadow: 0 -8px 34px rgba(40, 20, 60, .18); }
}
@media (max-width: 720px) {
  .work-row { flex-direction: column; }
  .work-row > .work-card { flex: none; height: auto; }
  .work-row > .work-card .shot { margin-top: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .work-row > .work-card, .work-row > .work-card .shot { transition: none; }
}

/* ==========================================================
   Page header (Creative etc.)
   ========================================================== */
.page-head { padding-top: clamp(80px, 12vw, 140px); padding-bottom: clamp(48px, 6vw, 72px); }
.page-head h1 { font-size: clamp(36px, 5vw, 56px); max-width: 720px; }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0 0 clamp(40px, 6vw, 64px); }

/* Mosaic grid (Creative) */
.mosaic {
  display: grid; gap: 12px;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: clamp(120px, 15vw, 200px);
  grid-auto-flow: dense;
  padding-bottom: 96px;
}
.tile {
  border-radius: var(--radius-sm); overflow: hidden;
  border: 1px solid var(--line); background: var(--surface);
  display: flex; align-items: flex-end; padding: 14px;
  font-size: 14px; color: var(--muted);
  transition: transform .35s ease;
}
.tile:hover { transform: scale(1.015); }
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile.has-img { padding: 0; }
.tile.big { grid-column: span 2; grid-row: span 2; }
.tile.wide { grid-column: span 2; }
.tile.tall { grid-row: span 2; }
@media (max-width: 720px) {
  .mosaic { grid-template-columns: repeat(2, 1fr); }
}

/* ==========================================================
   About — tile grid (quote + photo, experience + contact,
   education + certifications). Kept compact, like the reference.
   ========================================================== */
.about { display: grid; gap: 12px; grid-template-columns: repeat(6, 1fr); padding: 4px 0 28px; }
.about .quote-card { grid-column: span 4; }
.about .photo      { grid-column: span 2; }
.about .t-exp      { grid-column: span 4; }
.about .t-edu      { grid-column: span 2; }
.about .t-contact  { grid-column: span 2; }
.about .t-cert     { grid-column: span 4; }

.tile-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(22px, 2.8vw, 36px);
}
.tile-label { font-size: 15px; font-weight: 400; letter-spacing: 0; color: var(--muted); margin-bottom: 16px; }

.quote-card {
  border-radius: var(--radius); background: var(--grad-quote); color: #fff;
  min-height: clamp(260px, 27vw, 360px);
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(24px, 3.4vw, 44px);
}
.quote-card blockquote { margin: 0; font-size: clamp(26px, 3vw, 40px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.12; max-width: 14em; }
.quote-card cite { display: block; margin-top: 20px; font-style: normal; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; opacity: .85; }

.photo { margin: 0; border-radius: var(--radius); overflow: hidden; background: #e9e9ec; border: 1px solid var(--line); }
.photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 38%; }

/* Entries (experience, education): no dividers, consistent rhythm */
.entries { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.entry-row { display: grid; grid-template-columns: 1fr auto; column-gap: 20px; row-gap: 1px; }
.entry-org { font-size: 19px; font-weight: 500; letter-spacing: -0.015em; line-height: 1.3; }
.entry-role { grid-column: 1; font-size: 16px; line-height: 1.4; color: var(--accent); }
.entry-date { grid-column: 2; grid-row: 1; align-self: baseline; font-size: 14px; color: var(--muted); white-space: nowrap; }
.t-edu .entry-row { grid-template-columns: 1fr; }
.t-edu .entry-org { font-size: 17px; }
.t-edu .entry-date { grid-column: 1; grid-row: auto; }

/* Certifications: two columns, no bullets */
/* Each certification spans two shared rows (name, issuer) via subgrid, so
   issuers line up across a row even when one name wraps to two lines */
.certs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; row-gap: 1px; }
.certs li { display: grid; grid-row: span 2; grid-template-rows: subgrid; align-content: start; }
.certs li:nth-child(n+3) { margin-top: 17px; }
.cert-name { font-size: 17px; line-height: 1.35; letter-spacing: -0.01em; }
.cert-org { font-size: 15px; line-height: 1.4; color: var(--accent); }

/* Contact: top-aligned so its heading lines up with Certifications */
.contact-list { margin: 0; display: grid; gap: 2px; }
.contact-list dt { font-size: 13px; color: var(--muted); }
.contact-list dt:not(:first-child) { margin-top: 12px; }
.contact-list dd { margin: 0; font-size: 17px; overflow-wrap: break-word; }
.contact-list a { color: var(--accent); text-decoration: none; background-image: linear-gradient(currentColor, currentColor); background-size: 100% 1px; background-position: 0 100%; background-repeat: no-repeat; padding-bottom: 1px; }
.contact-list a:hover { background-size: 100% 2px; }
.contact-list a[href^="tel:"] { color: var(--ink); background-image: none; }

@media (max-width: 900px) {
  .about { grid-template-columns: 1fr 1fr; }
  .about .quote-card, .about .t-exp, .about .t-cert { grid-column: 1 / -1; }
  .about .photo, .about .t-contact, .about .t-edu { grid-column: span 1; }
}
@media (max-width: 620px) {
  .about { grid-template-columns: 1fr; gap: 10px; }
  .about > * { grid-column: 1 / -1 !important; }
  .about .photo { aspect-ratio: 1 / 1; }
  .about .t-contact { order: 10; }
  .entry-row { grid-template-columns: 1fr; }
  .entry-date { grid-column: 1; grid-row: auto; }
  .certs { grid-template-columns: 1fr; }
  .certs li:nth-child(n+2) { margin-top: 17px; }
}

/* ==========================================================
   Case study
   ========================================================== */
.cs-hero { padding-top: clamp(44px, 4vw, 56px); padding-bottom: 0; }
.cs-hero .brand { font-weight: 700; color: var(--accent); margin-bottom: 10px; }
.cs-hero .tag { background: var(--surface); border-color: var(--line); }
.cs-hero .card-top { margin-bottom: 14px; }
.cs-hero h1 { font-size: clamp(34px, 4.4vw, 48px); margin-bottom: 18px; }
.cs-hero .lede { font-size: 19px; color: var(--muted); max-width: 760px; }
.cs-image { border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); margin: 40px 0; }
.cs-image img { width: 100%; }
.cs-image figcaption { font-size: 14px; color: var(--muted); padding: 12px 16px; border-top: 1px solid var(--line); background: #fff; }
.facts {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  margin: 24px 0 clamp(24px, 3vw, 36px);
}
.facts > div { padding: 22px 24px; }
.facts > div + div { border-left: 1px solid var(--line); }
.facts dt { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.facts dd { margin: 0; font-size: 17px; }
.facts .impact dd { color: var(--accent); font-weight: 500; }
@media (max-width: 720px) {
  .facts { grid-template-columns: 1fr; }
  .facts > div + div { border-left: 0; border-top: 1px solid var(--line); }
}
.cs-section { padding: clamp(20px, 2.6vw, 32px) 0; }
.cs-section .eyebrow { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.cs-section h2 { font-size: clamp(26px, 3vw, 32px); margin-bottom: 12px; max-width: 760px; }
.cs-section > .container > p { max-width: 760px; }
.cs-section > .container > p + p { margin-top: 1em; }
.cards { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: 20px; }
.card { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 22px; background: #fff; }
.card.tint { background: var(--surface); }
.card h3 { font-size: 19px; margin-bottom: 8px; }
.card p { font-size: 16px; color: var(--muted); }
.next-project { display: block; text-decoration: none; margin: 32px 0 56px; }
.cards.steps { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.step-no { display: block; font-size: 14px; font-weight: 600; color: var(--accent); margin-bottom: 14px; font-variant-numeric: tabular-nums; }

/* Long-form case studies (side heading + body rows) */
.cs-method { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin-top: -4px; }
.cs-cover { margin: 22px 0 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.cs-cover img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; }
.cs-statement {
  margin-top: 20px; padding: clamp(22px, 3vw, 34px) clamp(22px, 3.4vw, 40px);
  border-radius: var(--radius); background: var(--grad-quote); color: #fff;
  font-size: clamp(20px, 2.1vw, 26px); line-height: 1.32; letter-spacing: -0.012em; font-weight: 500;
}
.cs-rows { margin-top: clamp(16px, 2vw, 24px); }
.cs-row {
  display: grid; grid-template-columns: minmax(170px, 250px) minmax(0, 1fr);
  gap: 14px clamp(20px, 4vw, 56px); padding: clamp(20px, 2.4vw, 28px) 0; border-top: 1px solid var(--line);
}
.cs-row > h2 { font-size: 21px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; }
.cs-body { max-width: 780px; min-width: 0; }
.cs-body > * + * { margin-top: .75em; }
.cs-body ul { margin-bottom: 0; padding-left: 1.2em; }
.cs-body li + li { margin-top: .3em; }
.cs-body li::marker { color: var(--accent); }
.cs-body strong, .cs-quote strong { font-weight: 600; color: var(--ink-strong); }
.cs-wide { grid-column: 1 / -1; min-width: 0; }
.cs-body .cards, .cs-wide.cards { margin-top: 18px; }
.cs-body .card ul { padding-left: 1.1em; font-size: 16px; color: var(--muted); }
.cs-body .card h3 { font-size: 17px; font-weight: 600; }
.cs-body .card p { font-size: 16px; }
.cs-body .card p + ul { margin-top: 4px; }
.cs-body .card ul + p { margin-top: 10px; }
.cs-fig { margin: 4px 0 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.cs-fig img { width: 100%; }
.cs-fig.contain { padding: clamp(12px, 2vw, 24px); background: #fff; }
.cs-gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 4px; }
.cs-gallery img { width: 100%; aspect-ratio: 365 / 512; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); }
.cs-steps { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 10px; }
.cs-body .cs-steps li { margin: 0; }
.cs-steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px; font-size: 16px; font-weight: 600; line-height: 1.3; }
.cs-steps .step-no { margin-bottom: 8px; }
.cs-pull { border-top: 1px solid var(--line); padding: clamp(22px, 2.8vw, 34px) 0; }
.cs-pull p {
  max-width: 920px; border-left: 3px solid var(--accent); padding-left: clamp(16px, 2vw, 24px);
  font-size: clamp(21px, 2.2vw, 27px); line-height: 1.3; letter-spacing: -0.015em; font-weight: 500; color: var(--ink-strong);
}
.cs-quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-top: 18px; }
.cs-quote { margin: 0; padding: 20px 22px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); }
.cs-quote blockquote { margin: 0; font-family: var(--font-serif); font-style: italic; font-size: 21px; line-height: 1.35; color: var(--accent); }
.cs-quote figcaption { margin-top: 10px; font-size: 14px; font-weight: 600; color: var(--muted); }
.cs-levels { list-style: none; padding: 0 !important; display: flex; flex-wrap: wrap; gap: 8px; }
.cs-levels li { margin: 0 !important; padding: 6px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 15px; }
.cs-video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; margin-top: 4px; }
.cs-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 720px) {
  .cs-row { grid-template-columns: 1fr; gap: 10px; }
  .cs-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cs-cover img { aspect-ratio: 16 / 10; }
}

/* LinkedIn feed window: a scrollable frame of embedded posts */
.li-window { margin-top: 20px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #f4f2ee; }
.li-bar { display: flex; align-items: center; gap: 14px; padding: 10px 16px; background: #fff; border-bottom: 1px solid var(--line); }
.li-dots { display: flex; gap: 6px; }
.li-dots i { width: 10px; height: 10px; border-radius: 50%; background: #e3e0dc; }
.li-url { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.li-in { width: 20px; height: 20px; flex: none; }
.li-open { flex: none; font-size: 13px; font-weight: 500; color: var(--accent); text-decoration: none; padding: 6px 12px; border-radius: 999px; background: var(--surface); }
.li-open:hover { background: #efeafe; }
.li-feed { height: clamp(520px, 78vh, 820px); overflow-y: auto; padding: 20px 16px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.li-feed:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.li-post { display: block; width: 100%; max-width: 552px; border: 0; border-radius: 8px; background: #fff; flex: none; height: var(--h, 700px); }
@media (max-width: 620px) { .li-post { height: var(--h-sm, var(--h, 900px)); } }
.li-empty { width: 100%; max-width: 552px; background: #fff; border-radius: 8px; padding: 22px; display: grid; gap: 10px; }
.li-empty span { height: 12px; border-radius: 6px; background: #eeebe7; }
.li-empty span:first-child { width: 40%; }
.li-empty span:nth-child(3) { width: 70%; }
.li-empty p { font-size: 14px; color: var(--muted); margin-top: 6px; }
@media (max-width: 620px) { .li-feed { padding: 12px 8px; } .li-dots { display: none; } }

/* ==========================================================
   Footer
   ========================================================== */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 14px; color: var(--muted); }
.site-footer .container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--ink); }

/* ==========================================================
   Home hero — 3D room, rotating greeting, zoom into monitor
   ========================================================== */
.hero { position: relative; height: calc(100vh + 160vh); background: #24180f; }
/* overflow: clip (not hidden) so the oversized scene can never be scrolled inside */
.hero-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; overflow: clip; }
@supports (height: 100svh) {
  .hero { height: calc(100svh + 160svh); }
  .hero-sticky { height: 100svh; }
}
.stage { position: absolute; inset: 0; transform-origin: 0 0; will-change: transform; }
/* once fully zoomed in, let the browser redraw the Work copy at full sharpness */
.hero.is-idle .stage { will-change: auto; }
/* The scene is laid out in the photo's own pixels (2000×1116) and scaled by JS */
.scene { position: absolute; top: 0; left: 0; width: 2000px; height: 1116px; transform-origin: 0 0; }
.room { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; user-select: none; -webkit-user-drag: none; }
.screen { position: absolute; overflow: hidden; background: #fff; border-radius: 2px; }
.screen::after { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(255,255,255,.10), transparent 40%); pointer-events: none; }

/* Rain canvas covers the two windows on the left */
.fx-rain { position: absolute; left: 0; top: 0; width: 340px; height: 900px; pointer-events: none; }

/* Canvases for the page turn and the fireplace sparks (photo pixels) */
.fx-book { position: absolute; left: 980px; top: 630px; width: 240px; height: 130px; pointer-events: none; }
.fx-sparks { position: absolute; left: 1700px; top: 600px; width: 160px; height: 140px; pointer-events: none; }

/* Fire: warm flickering light + soft moving flame tongues over the photo's flames */
.fx-glow { position: absolute; pointer-events: none; mix-blend-mode: screen; border-radius: 50%; }
.fx-glow.near { left: 1560px; top: 520px; width: 500px; height: 440px; background: radial-gradient(closest-side, rgba(255,150,60,.42), rgba(255,120,40,.14) 55%, transparent); animation: flicker 3.7s infinite; }
.fx-glow.room-light { left: 1300px; top: 380px; width: 1000px; height: 800px; background: radial-gradient(closest-side, rgba(255,140,60,.14), transparent); animation: flicker 5.3s infinite reverse; }
.fx-fire { position: absolute; left: 1722px; top: 655px; width: 120px; height: 125px; overflow: hidden; pointer-events: none; }
.flame {
  position: absolute; bottom: 25px; width: 22px; height: 46px;
  border-radius: 50% 50% 45% 45% / 70% 70% 30% 30%;
  background: radial-gradient(ellipse at 50% 85%, rgba(255,235,160,.95), rgba(255,150,40,.65) 45%, rgba(255,80,0,0) 72%);
  filter: blur(2.5px); mix-blend-mode: screen; opacity: .7;
  transform-origin: 50% 100%;
  animation: lick 1.6s ease-in-out infinite alternate;
}
.flame:nth-child(1) { left: 68px; height: 42px; animation-duration: 1.3s; }
.flame:nth-child(2) { left: 80px; height: 52px; width: 26px; animation-duration: 1.7s; animation-delay: -.4s; }
.flame:nth-child(3) { left: 90px; height: 40px; width: 20px; animation-duration: 1.1s; animation-delay: -.9s; }
.flame:nth-child(4) { left: 72px; height: 30px; width: 34px; animation-duration: 2.1s; animation-delay: -.2s; opacity: .4; }
.flame:nth-child(5) { left: 98px; height: 28px; width: 14px; animation-duration: 1.4s; animation-delay: -1.1s; }
@keyframes lick {
  0%   { transform: translateX(0) scale(1, .8) skewX(0deg); opacity: .55; }
  35%  { transform: translateX(-3px) scale(.95, 1.15) skewX(-6deg); opacity: .85; }
  70%  { transform: translateX(2.5px) scale(1.05, .9) skewX(5deg); opacity: .6; }
  100% { transform: translateX(-1.5px) scale(.9, 1.22) skewX(-3deg); opacity: .9; }
}
@keyframes flicker {
  0%, 100% { opacity: .85; } 9% { opacity: 1; } 21% { opacity: .7; } 33% { opacity: .95; }
  46% { opacity: .78; } 58% { opacity: 1; } 71% { opacity: .82; } 84% { opacity: .96; }
}

/* Book page: a copy of the right-hand page that lifts gently from the spine */
.fx-page {
  position: absolute; left: 1080px; top: 709px; width: 104px; height: 22px;
  background: url("/assets/images/hero-library.jpg") -1080px -709px / 2000px 1116px no-repeat;
  clip-path: polygon(4px 2px, 80px 8px, 102px 17px, 34px 20px);
  transform-origin: 19px 11px;
  animation: page-breathe 9s ease-in-out infinite;
  pointer-events: none;
}
.fx-page.back {
  left: 1106px; top: 675px; width: 34px; height: 18px;
  background-position: -1106px -675px;
  clip-path: polygon(8px 4px, 24px 3px, 31px 15px, 4px 15px);
  transform-origin: 6px 10px;
  animation-duration: 11s; animation-delay: -4s;
}
@keyframes page-breathe {
  0%, 38%, 100% { transform: none; filter: none; }
  48% { transform: rotate(-3deg) translateY(-1.8px); filter: brightness(1.1); }
  56% { transform: rotate(-1.2deg) translateY(-.6px); filter: brightness(1.04); }
  64% { transform: rotate(-2.2deg) translateY(-1.2px); filter: brightness(1.08); }
  78% { transform: none; filter: none; }
}
/* Steam: soft wisps curling up from the mug rim (rim centre at photo px 1172, 678) */
.fx-steam { position: absolute; left: 1142px; top: 592px; width: 60px; height: 88px; pointer-events: none; }
.fx-steam i {
  position: absolute; bottom: 0; left: 50%; width: 16px; height: 36px; margin-left: -8px;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 60%, rgba(255,250,240,.8), rgba(255,250,240,0) 70%);
  filter: blur(3px); mix-blend-mode: screen; opacity: 0;
  animation: steam 4.2s ease-out infinite;
}
.fx-steam i:nth-child(1) { animation-delay: 0s;    --dx: -6px; }
.fx-steam i:nth-child(2) { animation-delay: -.85s; --dx: 7px;  left: 40%; }
.fx-steam i:nth-child(3) { animation-delay: -1.7s; --dx: -3px; left: 60%; }
.fx-steam i:nth-child(4) { animation-delay: -2.55s; --dx: 9px; }
.fx-steam i:nth-child(5) { animation-delay: -3.4s; --dx: -8px; left: 45%; }
@keyframes steam {
  0%   { transform: translate(0, 0) scale(.6, .7);                         opacity: 0; }
  15%  { opacity: .9; }
  45%  { transform: translate(calc(var(--dx) * .6), -31px) scale(1.2, 1.3) skewX(8deg);  opacity: .6; }
  75%  { transform: translate(calc(var(--dx) * -.45), -53px) scale(1.8, 1.6) skewX(-10deg); opacity: .28; }
  100% { transform: translate(var(--dx), -69px) scale(2.3, 1.8);   opacity: 0; }
}

.hero.is-idle .flame, .hero.is-idle .fx-glow, .hero.is-idle .fx-page, .hero.is-idle .fx-steam i { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .flame, .fx-glow, .fx-page, .fx-steam i { animation: none; }
}
.screen-inner { position: absolute; top: 0; left: 0; transform-origin: 0 0; overflow: hidden; background: #fff; }
.hero-shade { position: absolute; inset: auto 0 0 0; height: 45%; background: linear-gradient(to top, rgba(20,12,4,.55), transparent); pointer-events: none; }
.hero-copy {
  position: absolute; left: clamp(20px, 4vw, 48px); right: 96px; bottom: clamp(28px, 6vh, 64px);
  color: #fff9ef; text-shadow: 0 2px 20px rgba(40,20,0,.35);
  pointer-events: none;  /* never block clicks on the Work page behind it */
}
.screen.live { cursor: auto; }
.greeting {
  font-family: var(--font-serif); font-style: italic; font-weight: 500;
  font-size: clamp(48px, 7vw, 84px); line-height: 1; letter-spacing: -0.02em;
  margin-bottom: 18px; min-height: 1em;
  transition: opacity .45s ease, transform .45s ease, filter .45s ease;
}
.greeting.out { opacity: 0; transform: translateY(8px); filter: blur(4px); }
.intro { font-size: clamp(20px, 2.3vw, 28px); line-height: 1.3; max-width: 30ch; letter-spacing: -0.01em; }
.hero-controls { position: absolute; right: clamp(20px, 4vw, 48px); bottom: clamp(28px, 6vh, 64px); display: flex; flex-direction: column; gap: 14px; }
.hero-btn {
  width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.12); color: #fff9ef;
  display: grid; place-items: center;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: background .2s;
}
.hero-btn:hover { background: rgba(255,255,255,.25); }
.hero-btn svg { width: 18px; height: 18px; }
.hero-btn[hidden] { display: none; }
.sound-btn[aria-pressed="false"] .wave { display: none; }
.sound-btn[aria-pressed="true"] .mute { display: none; }
.sound-btn[aria-pressed="true"] { background: rgba(255,255,255,.22); }

/* Work section on the home page sits on top of the hero's final frame */
.home-work { position: relative; z-index: 2; background: #fff; margin-top: -100vh; visibility: hidden; }
@supports (height: 100svh) { .home-work { margin-top: -100svh; } }
.home-work.revealed { visibility: visible; }

/* Reduced motion: no zoom, plain stacked layout */
.no-zoom .hero { height: 100vh; }
.no-zoom .screen { display: none; }
.no-zoom .home-work { margin-top: 0; visibility: visible; }
@media (prefers-reduced-motion: reduce) {
  .greeting, .work-card .shot, .tile { transition: none; }
}

/* Slide deck window (Sales Enablement) */
.deck-window { background: #eef1f5; }
.deck-icon { width: 20px; height: 20px; flex: none; color: var(--accent); }
.deck-slides { padding: clamp(12px, 2vw, 24px); display: grid; gap: clamp(12px, 2vw, 24px); }
.deck-slide { margin: 0; }
.deck-slide a { display: block; border-radius: 8px; overflow: hidden; background: #fff; box-shadow: 0 6px 24px -10px rgba(20, 30, 60, .25); }
.deck-slide img { display: block; width: 100%; height: auto; }
.deck-slide figcaption { margin-top: 8px; font-size: 13px; color: var(--muted); }
.cs-section p strong { font-weight: 600; color: var(--ink-strong); }

/* SEO Refresh: document + live-article windows */
.cards.five { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.cards.five .card { padding: 18px; }
.cards.five .card p { color: var(--ink); }
.cards.principles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .cards.principles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .cards.principles { grid-template-columns: 1fr; } }
.cards.principles h3 { font-size: 17px; margin-bottom: 6px; }
.cards.principles .step-no { margin-bottom: 10px; }
.cs-sub { font-size: 19px; font-weight: 600; color: var(--ink-strong); margin: 0 0 10px; letter-spacing: -0.01em; }
.doc-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.doc-pair .li-window { margin-top: 0; }
.doc-icon { width: 16px; height: 20px; flex: none; }
.doc-feed { height: clamp(420px, 62vh, 580px); overflow-y: auto; background: #f1f3f4; padding: 14px; display: grid; gap: 12px; align-content: start; }
.doc-feed img { display: block; width: 100%; height: auto; background: #fff; box-shadow: 0 1px 3px rgba(60, 64, 67, .2); }
.live-window { margin-top: 0; background: #eceef1; }
.live-feed { height: clamp(560px, 86vh, 980px); overflow-y: auto; }
.live-feed img { display: block; width: 100%; max-width: 800px; height: auto; margin: 0 auto; box-shadow: 0 0 30px -10px rgba(20, 30, 60, .25); }
.doc-feed:focus-visible, .live-feed:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.window-block + .window-block { margin-top: clamp(28px, 4vw, 44px); }
@media (max-width: 720px) { .doc-pair { grid-template-columns: 1fr; } .doc-feed { height: 460px; } .live-feed { height: 78vh; } }

/* Slide deck viewer (Executive Presentation) */
.deck { margin-top: 20px; border-radius: var(--radius); overflow: hidden; background: #0e0e0e; border: 1px solid #262626; color: #e9e7e4; }
.deck:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.deck-bar { display: flex; align-items: center; gap: 14px; padding: 10px 16px; background: #1a1a1a; border-bottom: 1px solid #2a2a2a; }
.deck-bar .li-dots i { background: #3a3a3a; }
.deck-title { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.deck-title svg { width: 18px; height: 18px; flex: none; }
.deck-count { font-size: 13px; color: #a9a6a2; font-variant-numeric: tabular-nums; flex: none; }
.deck-full { flex: none; display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 13px; font-weight: 500; color: #fff; background: #2b2b2b; border: 0; border-radius: 999px; padding: 6px 12px; cursor: pointer; }
.deck-full:hover { background: #383838; }
.deck-full svg { width: 14px; height: 14px; }
.deck-stage { position: relative; }
.deck-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; }
.deck-track::-webkit-scrollbar { display: none; }
.deck-page { flex: 0 0 100%; margin: 0; scroll-snap-align: start; scroll-snap-stop: always; aspect-ratio: 16 / 9; background: #000; }
.deck-page img { display: block; width: 100%; height: 100%; object-fit: contain; }
.deck-prev, .deck-next { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgba(255,255,255,.92); color: #111; cursor: pointer; box-shadow: 0 4px 16px rgba(0,0,0,.35); transition: opacity .2s; }
.deck-prev { left: 14px; } .deck-next { right: 14px; }
.deck-prev svg, .deck-next svg { width: 20px; height: 20px; }
.deck-prev:disabled, .deck-next:disabled { opacity: 0; pointer-events: none; }
.deck-thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 12px; background: #141414; border-top: 1px solid #222; scrollbar-width: thin; scrollbar-color: #444 transparent; }
.deck-thumbs button { flex: 0 0 116px; padding: 0; border: 2px solid transparent; border-radius: 6px; overflow: hidden; background: none; cursor: pointer; opacity: .55; transition: opacity .2s, border-color .2s; }
.deck-thumbs button:hover { opacity: .85; }
.deck-thumbs button.is-active { border-color: #fff; opacity: 1; }
.deck-thumbs img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.deck.is-full { display: flex; flex-direction: column; width: 100vw; height: 100vh; border-radius: 0; border: 0; }
.deck.is-full .deck-stage { flex: 1; min-height: 0; }
.deck.is-full .deck-track { height: 100%; }
.deck.is-full .deck-page { aspect-ratio: auto; height: 100%; }
@media (max-width: 620px) {
  .deck-bar .li-dots { display: none; }
  .deck-prev, .deck-next { width: 34px; height: 34px; }
  .deck-prev { left: 8px; } .deck-next { right: 8px; }
  .deck-thumbs button { flex-basis: 84px; }
  .deck-full span { display: none; }
}
.cards.six { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards.six .card p { color: var(--ink); }
@media (max-width: 900px) { .cards.six { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .cards.six { grid-template-columns: 1fr; } }
.window-note { font-size: 15px; color: var(--muted); margin: -4px 0 14px; padding-left: 12px; border-left: 2px solid var(--accent); }
.prop-window { margin-top: 0; background: #111113; border-color: #2a2a30; }
.prop-window .li-bar { background: #1a1a1e; border-bottom-color: #2a2a30; color: #e9e7e4; }
.prop-window .li-dots i { background: #3a3a3a; }
.prop-window .li-open { background: #2b2b30; color: #fff; }
.prop-window .li-open:hover { background: #3a3a40; }
.prop-frame { display: block; width: 100%; height: clamp(600px, 86vh, 960px); border: 0; background: #111113; }
@media (max-width: 720px) { .prop-frame { height: 80vh; } }
.cal-frame { display: block; width: 100%; height: clamp(620px, 88vh, 980px); border: 0; background: #fff; }
@media (max-width: 720px) { .cal-frame { height: 82vh; } }

/* ==========================================================
   Case study v2: hero shot, summary cards, step strips, stages
   (layout ideas from the reference site's case studies)
   ========================================================== */
.cs-hero { position: relative; overflow: clip; padding: clamp(40px, 4.4vw, 64px) 0 clamp(48px, 6vw, 88px); }
.cs-ribbon { position: absolute; left: -10%; right: -10%; bottom: 6%; height: 46%; pointer-events: none; z-index: 0;
  background: linear-gradient(100deg, transparent 8%, rgba(201,176,247,.55) 34%, rgba(243,168,201,.55) 56%, rgba(255,190,160,.5) 70%, transparent 92%);
  filter: blur(46px); transform: skewY(-7deg); opacity: .8; }
.cs-hero > .container { position: relative; z-index: 1; }
.cs-hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 4.5vw, 64px); align-items: center; }
.cs-hero-copy h1 { margin-bottom: 18px; }
.cs-hero-shot { margin: 0; border-radius: 18px; overflow: hidden; background: #fff; border: 6px solid #fff;
  outline: 1px solid var(--line); box-shadow: 0 30px 45px -30px rgba(50,50,93,.3), 0 18px 36px -18px rgba(0,0,0,.12); }
.cs-hero-shot img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top center; border-radius: 12px; }
.cs-hero .facts { margin: clamp(32px, 4vw, 56px) 0 0; background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
  box-shadow: 0 18px 44px -30px rgba(29,27,25,.45); }
@media (max-width: 860px) { .cs-hero-grid { grid-template-columns: 1fr; } .cs-ribbon { bottom: 20%; height: 30%; } }

/* sections: hairline dividers with corner ticks, roomier rhythm */
main > .cs-section { position: relative; padding: clamp(40px, 5.4vw, 80px) 0; border-top: 1px solid var(--line); }
main > .cs-section::before { content: ""; position: absolute; top: -6px; left: 50%; transform: translateX(-50%); pointer-events: none;
  width: min(100% - 2 * var(--gutter) + 40px, var(--max) + 40px); height: 11px;
  background: linear-gradient(#c9c3bd, #c9c3bd) 5px 0 / 1px 11px no-repeat, linear-gradient(#c9c3bd, #c9c3bd) 0 5px / 11px 1px no-repeat,
    linear-gradient(#c9c3bd, #c9c3bd) calc(100% - 5px) 0 / 1px 11px no-repeat, linear-gradient(#c9c3bd, #c9c3bd) 100% 5px / 11px 1px no-repeat; }
main > .cs-section .eyebrow { color: var(--accent); font-weight: 600; }
main > .cs-section:nth-of-type(odd):not(.cs-stage) { background: linear-gradient(180deg, rgba(239,236,253,.5), rgba(250,236,246,.35)); }
main > .cs-section h2 { font-size: clamp(28px, 3.2vw, 38px); letter-spacing: -0.025em; margin-bottom: 14px; }
main > .cs-section > .container > p { font-size: 19px; }

/* summary cards */
.sm-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.sm-grid.n1 > .sm-card { grid-column: 1 / -1; }
.sm-grid.n2 > .sm-card:first-child { grid-column: span 7; }
.sm-grid.n2 > .sm-card:last-child { grid-column: span 5; }
.sm-card { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 16px; padding: clamp(22px, 2.6vw, 32px);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: 0 1px 1px rgba(29,27,25,.03), 0 14px 32px -24px rgba(29,27,25,.35); }
.sm-card.short { grid-column: 1 / span 5 !important; flex-direction: row; align-items: center; justify-content: space-between; }
.sm-hd { display: flex; align-items: center; gap: 10px; }
.sm-hd .eyebrow { margin: 0 !important; }
.sm-ic { flex: none; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--accent); }
.sm-ic svg { width: 17px; height: 17px; }
.sm-body p { font-size: clamp(18px, 1.7vw, 21px); line-height: 1.45; letter-spacing: -0.01em; color: var(--ink-strong); }
.sm-body p + p { margin-top: .8em; }
.sm-card.short .sm-body p { font-size: 20px; font-weight: 500; }
.sm-did { border-color: transparent;
  background: radial-gradient(120% 90% at 100% 100%, rgba(255,190,160,.55) 0%, rgba(255,190,160,0) 50%), linear-gradient(125deg, #ece5fc 0%, #f6dcef 70%, #fde3d6 100%); }
.sm-did .sm-ic { border-color: rgba(108,76,245,.18); }
@media (max-width: 860px) { .sm-grid.n2 > .sm-card, .sm-card.short { grid-column: 1 / -1 !important; } }

/* numbered steps and principles as one hairline-divided strip */
main > .cs-section .cards.five, main > .cs-section .cards.steps, main > .cs-section .cards.six, main > .cs-section .cards.principles {
  gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 28px;
  box-shadow: 0 14px 32px -26px rgba(29,27,25,.35); }
main > .cs-section .cards .card { border: 0; border-radius: 0; background: #fff; padding: 24px 24px 26px; transition: background .2s; }
main > .cs-section .cards .card:hover { background: #faf8ff; }
main > .cs-section .cards .step-no { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
main > .cs-section .cards .step-no::before { content: ""; width: 16px; height: 16px; border-radius: 50%; box-sizing: border-box;
  border: 1px solid var(--accent); background: radial-gradient(circle, var(--accent) 0 3px, #fff 3.5px); }
main > .cs-section .cards .card p { font-size: 16px; line-height: 1.5; }

/* window/deck sections sit on a soft gradient stage */
main > .cs-section.cs-stage { background:
  radial-gradient(55% 45% at 12% 18%, rgba(201,176,247,.38), transparent 70%),
  radial-gradient(50% 45% at 88% 85%, rgba(243,168,201,.34), transparent 70%),
  radial-gradient(40% 35% at 70% 10%, rgba(169,199,255,.28), transparent 70%),
  linear-gradient(180deg, #fbfaff, #f8f5fd); }
.cs-stage .li-window, .cs-stage .deck { box-shadow: 0 30px 45px -30px rgba(50,50,93,.35), 0 18px 36px -18px rgba(0,0,0,.12); }
.cs-stage .li-window { border-color: rgba(29,27,25,.08); }
.cs-hero-copy .card-top { justify-content: flex-start; gap: 12px; }
.cs-hero-shot img { aspect-ratio: 16 / 9; }
.sm-grid.n1 .sm-card:not(.short) .sm-body { max-width: 72ch; }
.window-block > h2, .cs-stage .container > h2 { max-width: none; }
