/* =========================================================================
   Mahajan Doshi & Associates — site styles (light theme)
   Apple-style foundations: system type with size-specific tracking,
   translucent chrome, instant press feedback, springs in JS.
   Colour: each service/industry carries its own hue (--c) and tint (--t).
   ========================================================================= */

:root {
  --bg: #ffffff;
  --bg-tint: #f5f5f7;
  --surface: #ffffff;
  --text: #1d1d1f;
  --text-2: #5e5e63;
  --line: rgba(0, 0, 0, 0.08);
  --accent: #0071e3;
  --accent-press: #0062c4;
  --grad-a: #0071e3;
  --grad-b: #7048e8;
  --teal: #0a8f8f;
  --orange: #e8590c;
  --nav-bg: rgba(255, 255, 255, 0.72);
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.04), 0 4px 14px rgba(16, 24, 40, 0.05);
  --shadow-md: 0 6px 24px rgba(16, 24, 40, 0.08), 0 2px 6px rgba(16, 24, 40, 0.04);
  --shadow-lg: 0 20px 50px rgba(16, 24, 40, 0.14), 0 4px 12px rgba(16, 24, 40, 0.06);
  --ok: #1e8e3e;
  --err: #d70015;
  --radius: 24px;
  --radius-sm: 14px;
  --wrap: 1140px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0; font: 400 1.0625rem/1.5 var(--font); color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased; font-optical-sizing: auto; text-rendering: optimizeLegibility; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 0.18em; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 600; }
:focus-visible { outline: 3px solid rgba(0, 113, 227, 0.55); outline-offset: 3px; border-radius: 8px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: #fff; padding: 8px 14px; border-radius: 10px; }
.skip:focus { left: 8px; }

.wrap { max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: calc(780px + 2 * var(--gutter)); }
.muted { color: var(--text-2); }
.small { font-size: 0.8125rem; line-height: 1.45; letter-spacing: 0.005em; }

/* ---------- Type: tracking and leading tighten as size grows ---------- */
.display { font-size: clamp(2.5rem, 6vw, 4.6rem); line-height: 1.05; letter-spacing: -0.028em; font-weight: 700; text-wrap: balance; }
.h2 { font-size: clamp(1.85rem, 3.8vw, 2.9rem); line-height: 1.08; letter-spacing: -0.022em; font-weight: 700; text-wrap: balance; }
.lead { font-size: clamp(1.125rem, 1.5vw, 1.3125rem); line-height: 1.45; letter-spacing: -0.006em; color: var(--text-2); text-wrap: pretty; }
.h2 + .lead, .h2 + p { margin-top: 1rem; }
.eyebrow { font-size: 0.875rem; font-weight: 600; letter-spacing: 0.01em; color: var(--accent); margin-bottom: 0.85rem; }
.label { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-2); margin-bottom: 0.6rem; }
h3 { font-size: 1.1875rem; line-height: 1.25; letter-spacing: -0.012em; }
.grad { background: linear-gradient(100deg, var(--grad-a), var(--grad-b)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Buttons: feedback on pointer-down ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.35em;
  min-height: 46px; padding: 0.72rem 1.4rem; border: 0; border-radius: 999px;
  background: var(--accent); color: #fff; font: 500 1.0625rem/1 var(--font); letter-spacing: -0.005em;
  cursor: pointer; text-decoration: none !important;
  transition: transform 120ms ease-out, background-color 150ms ease-out, box-shadow 150ms;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.btn:hover { background: var(--accent-press); }
.btn:active { transform: scale(0.96); transition-duration: 60ms; }
.btn-sm { min-height: 34px; padding: 0.45rem 1rem; font-size: 0.875rem; }
.btn-quiet { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 1.5px rgba(0, 113, 227, 0.4); }
.btn-quiet:hover { background: rgba(0, 113, 227, 0.07); }
.btn-teal { background: var(--teal); } .btn-teal:hover { background: #087777; }
.btn-orange { background: var(--orange); } .btn-orange:hover { background: #cf4f0a; }
.btn-quiet-orange { background: transparent; color: #b8460a; box-shadow: inset 0 0 0 1.5px rgba(232, 89, 12, 0.45); }
.btn-quiet-orange:hover { background: rgba(232, 89, 12, 0.08); }
.btn-white { background: #fff; color: #0058b0; } .btn-white:hover { background: #f0f6ff; }
.btn-outline-white { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.7); }
.btn-outline-white:hover { background: rgba(255,255,255,.12); }
.btn-svc { background: var(--c); } .btn-svc:hover { background: var(--ink); }
.btn-wide { width: 100%; }
.btn[disabled] { opacity: 0.55; pointer-events: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.chev { width: 0.8em; height: 0.8em; display: inline-block; vertical-align: -0.05em; }
.text-link { font-weight: 500; display: inline-flex; align-items: center; gap: 0.25em; }
.text-link:active { opacity: 0.6; }

/* ---------- Icons ---------- */
.ico { width: 26px; height: 26px; }
.icon-tile {
  width: 52px; height: 52px; border-radius: 15px; flex: none;
  display: grid; place-items: center; color: var(--c); background: var(--t);
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
.icon-tile.lg { width: 60px; height: 60px; border-radius: 17px; }
.icon-tile.lg .ico { width: 30px; height: 30px; }
.icon-tile.xl { width: 76px; height: 76px; border-radius: 22px; margin-bottom: 1.4rem; box-shadow: var(--shadow-md); }
.icon-tile.xl .ico { width: 38px; height: 38px; }

/* ---------- Translucent nav: content scrolls under it ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: var(--nav-bg); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); }
.nav::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--line); opacity: 0; transition: opacity 200ms; }
.nav.is-scrolled::after { opacity: 1; }
.nav-inner { max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); height: 62px; display: flex; align-items: center; gap: 1.6rem; }
.wordmark { display: flex; flex-direction: column; color: var(--text); text-decoration: none !important; line-height: 1.15; margin-right: auto; }
.wordmark span { font-size: 1rem; font-weight: 600; letter-spacing: -0.01em; }
.wordmark small { font-size: 0.6875rem; color: var(--text-2); letter-spacing: 0.02em; }
.nav-links { display: flex; gap: 1.7rem; }
.nav-link { color: var(--text); font-size: 0.875rem; opacity: 0.8; }
.nav-link:hover { opacity: 1; text-decoration: none; }
.nav-link.is-current { opacity: 1; font-weight: 600; }
.menu-btn { display: none; width: 44px; height: 44px; margin-right: -10px; border: 0; background: none; cursor: pointer; position: relative; -webkit-tap-highlight-color: transparent; }
.menu-btn span { position: absolute; left: 13px; right: 13px; height: 1.6px; background: var(--text); border-radius: 2px; transition: transform 260ms cubic-bezier(.3,.7,.2,1); }
.menu-btn span:first-child { top: 18px; } .menu-btn span:last-child { top: 25px; }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.scrim { position: fixed; inset: 0; z-index: 40; background: rgba(0,0,0,.25); opacity: 0; }
.sheet {
  position: fixed; z-index: 45; left: 0; right: 0; top: 0; padding: 76px var(--gutter) 26px;
  background: rgba(255,255,255,.88); -webkit-backdrop-filter: saturate(180%) blur(30px); backdrop-filter: saturate(180%) blur(30px);
  border-radius: 0 0 28px 28px; box-shadow: var(--shadow-lg); transform: translateY(-100%); touch-action: none; will-change: transform;
}
.sheet-links { display: flex; flex-direction: column; }
.sheet-links a { font-size: 1.75rem; line-height: 1.2; font-weight: 600; letter-spacing: -0.02em; color: var(--text); padding: 0.4rem 0; }
.sheet-links a:active { opacity: 0.55; }
.sheet-grabber { position: absolute; bottom: 8px; left: 50%; width: 38px; height: 5px; margin-left: -19px; border-radius: 3px; background: #c7c7cc; }

/* ---------- Sections ---------- */
.section { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.section-top0 { padding-top: 0; }
.section-tint { background: var(--bg-tint); }
.sec-head { max-width: 760px; margin-bottom: clamp(2rem, 4vw, 3rem); }
.sec-head.center { text-align: center; margin-left: auto; margin-right: auto; }

/* ---------- Heroes ---------- */
.hero { position: relative; padding: clamp(4rem, 10vw, 7.5rem) 0 clamp(3rem, 7vw, 5rem); overflow: hidden; }
.hero-sm { padding-bottom: clamp(3rem, 6vw, 4.5rem); }
.hero-lead { max-width: 640px; margin-top: 1.3rem; }
.hero-tinted { background: linear-gradient(135deg, var(--t1) 0%, #fff 55%, var(--t2) 100%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; position: relative; }

.hero-home { padding-top: clamp(3.5rem, 8vw, 6rem); overflow: visible; }
.hero-home .display { font-size: clamp(2.4rem, 4.8vw, 4rem); }
.hero-bg { position: absolute; inset: 0; pointer-events: none; z-index: -1; }
.hero-bg i { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; }
.hero-bg .b1 { width: 460px; height: 460px; right: -80px; top: -60px; background: #cfe3ff; }
.hero-bg .b2 { width: 360px; height: 360px; right: 22%; bottom: -120px; background: #ffe0cc; }
.hero-bg .b3 { width: 320px; height: 320px; left: -120px; top: 30%; background: #d9f2ef; }

/* Hero illustration: floating document cards (HTML, so text stays crisp) */
.hero-art { position: relative; height: 470px; }
.hc {
  position: absolute; background: rgba(255,255,255,.92); border-radius: 20px; padding: 1rem 1.1rem;
  box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: .8rem; font-size: .875rem;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); will-change: transform;
}
.hc b { display: block; font-weight: 600; letter-spacing: -.01em; font-size: .95rem; }
.hc small { color: var(--text-2); font-size: .8rem; }
.hc-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: var(--c); background: var(--t); flex: none; }
.hc-ico .ico { width: 22px; height: 22px; }
.hc-main { left: 4%; top: 92px; width: 74%; flex-direction: column; align-items: stretch; padding: 1.25rem; gap: 1.1rem; }
.hc-row { display: flex; align-items: center; gap: .8rem; }
.hc-row > div { margin-right: auto; }
.chip { font-size: .75rem; font-weight: 600; padding: .3rem .65rem; border-radius: 999px; }
.chip.ok { color: #1e7b34; background: #e3f5e8; }
.bars { display: flex; align-items: flex-end; gap: 10px; height: 130px; padding: 0 .2rem; }
.bars i { flex: 1; height: var(--h); background: var(--c); border-radius: 8px 8px 4px 4px; }
.hc-lines { display: grid; gap: 8px; }
.hc-lines i { height: 8px; border-radius: 4px; background: #eef0f3; }
.hc-lines i.short { width: 55%; }
.hc-gst { right: 0; top: 0; z-index: 2; }
.hc-15cb { left: 0; bottom: 30px; }
.hc-tp { right: 2%; bottom: 0; width: 58%; flex-direction: column; align-items: stretch; }
.progress { height: 8px; border-radius: 4px; background: #efeafd; overflow: hidden; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, #9775fa, #7048e8); border-radius: 4px; }

/* ---------- Stats ---------- */
.stats { padding: 0 0 clamp(1rem, 3vw, 2rem); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.stat { background: var(--t); border-radius: 22px; padding: 1.5rem 1.4rem; }
.stat strong { display: block; color: var(--c); font-size: clamp(2rem, 3.6vw, 2.75rem); line-height: 1; letter-spacing: -0.03em; font-weight: 700; font-variant-numeric: tabular-nums; margin-bottom: .5rem; }
.stat span { color: #3a3a3c; font-size: .9375rem; line-height: 1.35; display: block; }

/* ---------- Service bento ---------- */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.bento-card {
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 1.1rem;
  background: var(--t); border-radius: var(--radius); padding: 1.6rem; min-height: 250px;
  color: var(--text); text-decoration: none !important; transition: transform 140ms ease-out, box-shadow 200ms;
}
.bento-card:hover { box-shadow: var(--shadow-md); }
.bento-card:active { transform: scale(0.98); }
.bento-card h3 { margin-bottom: .45rem; }
.bento-card p { color: #3a3a3c; font-size: .9375rem; line-height: 1.45; margin: 0; }
.bento-card .more { margin-top: auto; color: var(--ink); font-weight: 600; font-size: .9375rem; }
.bento-card.big { grid-column: span 2; min-height: 300px; padding: 2rem; }
.bento-card.big h3 { font-size: 1.6rem; letter-spacing: -0.02em; }
.bento-card.big p { font-size: 1.0625rem; max-width: 30ch; }
.bento-card > div, .bento-card .more, .bento-card .icon-tile { position: relative; z-index: 1; }
.bento-deco { position: absolute; right: -30px; bottom: -40px; color: var(--c); opacity: .12; }
.bento-deco .deco { width: 230px; height: 230px; stroke-width: 1.2; }

/* ---------- International panel ---------- */
.intl {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 2rem; align-items: center;
  border-radius: 32px; padding: clamp(2rem, 5vw, 4rem);
  background: linear-gradient(140deg, #e4f5f4 0%, #f3fbfa 50%, #e6f0ff 100%);
}
.intl .lead { color: #3d5a5a; }
.chips { list-style: none; padding: 0; margin: 1.6rem 0 2rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.chips li { background: #fff; color: #06706f; font-weight: 500; font-size: .875rem; padding: .45rem .85rem; border-radius: 999px; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.intl-art { display: grid; place-items: center; }
.globe { width: 100%; max-width: 440px; overflow: visible; }
.globe text { font: 600 12.5px var(--font); fill: #1d3b3b; paint-order: stroke; stroke: rgba(255,255,255,.9); stroke-width: 3px; stroke-linejoin: round; }
.globe .globe-india text { fill: #fff; stroke: none; font-size: 13px; }
.globe .arc { stroke-dasharray: 1; stroke-dashoffset: 1; }
.in .globe .arc { animation: draw 1.4s cubic-bezier(.3,.7,.2,1) forwards; }
.globe .arc:nth-child(2) { animation-delay: .12s; } .globe .arc:nth-child(3) { animation-delay: .24s; }
.globe .arc:nth-child(4) { animation-delay: .36s; } .globe .arc:nth-child(5) { animation-delay: .48s; } .globe .arc:nth-child(6) { animation-delay: .6s; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- Process steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; counter-reset: s; }
.step { background: #fff; border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow-sm); position: relative; }
.step-n {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 1.1rem;
  font-weight: 700; color: #fff; background: linear-gradient(135deg, #0071e3, #7048e8);
}
.step:nth-child(2) .step-n { background: linear-gradient(135deg, #0a8f8f, #2f9e44); }
.step:nth-child(3) .step-n { background: linear-gradient(135deg, #e8590c, #f59f00); }
.step:nth-child(4) .step-n { background: linear-gradient(135deg, #d6336c, #7048e8); }
.step h3 { margin-bottom: .45rem; }
.step p { color: var(--text-2); font-size: .9375rem; margin: 0; }

/* ---------- Industries rail: drag, momentum, snap, rubber-band ---------- */
.rail { overflow: hidden; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; padding: 6px 0 28px; }
.rail.is-dragging { cursor: grabbing; }
.rail-track { display: flex; gap: 1rem; will-change: transform; padding: 0 max(var(--gutter), calc((100vw - var(--wrap)) / 2)); }
.rail-card {
  flex: 0 0 clamp(260px, 28vw, 320px); min-height: 290px; display: flex; flex-direction: column;
  background: var(--t); border-radius: var(--radius); padding: 1.75rem;
  color: var(--text); text-decoration: none !important; transition: transform 140ms ease-out; -webkit-user-drag: none;
}
.rail-card .icon-tile { background: #fff; }
.rail-card:active { transform: scale(0.98); }
.rail.is-dragging .rail-card { transform: none; }
.rail-card h3 { margin: auto 0 .5rem; padding-top: 2.5rem; font-size: 1.375rem; letter-spacing: -0.018em; }
.rail-card p { color: #3a3a3c; font-size: .9375rem; margin: 0; }
.rail-controls { display: flex; justify-content: flex-end; gap: .6rem; }
.round-btn { width: 42px; height: 42px; border-radius: 50%; border: 0; cursor: pointer; background: var(--bg-tint); color: var(--text); display: grid; place-items: center; transition: transform 100ms ease-out, opacity 200ms; }
.round-btn .chev { width: 16px; height: 16px; }
.round-btn:active { transform: scale(0.9); }
.round-btn[disabled] { opacity: 0.35; cursor: default; }

/* ---------- Articleship panel + journey ---------- */
.art-panel {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4rem); align-items: center;
  border-radius: 32px; padding: clamp(2rem, 5vw, 4rem); background: linear-gradient(135deg, #fff1e6 0%, #fff8f2 50%, #fdebf2 100%);
}
.art-panel .lead { color: #5d4a40; }
.journey { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; position: relative; }
.journey::before { content: ""; position: absolute; left: 27px; top: 20px; bottom: 20px; width: 2px; background: rgba(0,0,0,.08); }
.journey li { position: relative; background: #fff; border-radius: 18px; padding: 1rem 1.2rem 1rem 3.6rem; box-shadow: var(--shadow-sm); }
.journey li::before { content: ""; position: absolute; left: 20px; top: 50%; width: 16px; height: 16px; margin-top: -8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 4px #fff, 0 0 0 5px rgba(0,0,0,.06); }
.journey span { display: block; color: var(--c); font-size: .8125rem; font-weight: 600; }
.journey b { font-weight: 600; letter-spacing: -.01em; }
.journey-hero li:nth-child(even) { margin-left: 1.5rem; }

/* ---------- Story ---------- */
.story { display: grid; grid-template-columns: auto 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; margin-bottom: 3rem; }
.story-year {
  font-size: clamp(5rem, 14vw, 11rem); line-height: .9; font-weight: 800; letter-spacing: -0.05em;
  background: linear-gradient(135deg, #0071e3 10%, #7048e8 55%, #d6336c 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.htl { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; position: relative; }
.htl::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 2px; background: linear-gradient(90deg, #0071e3, #7048e8, #d6336c, #e8590c, #2f9e44); border-radius: 2px; }
.htl li { padding-top: 1.8rem; position: relative; }
.htl li::before { content: ""; position: absolute; top: 0; left: 0; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid #0071e3; }
.htl li:nth-child(2)::before { border-color: #7048e8; } .htl li:nth-child(3)::before { border-color: #d6336c; }
.htl li:nth-child(4)::before { border-color: #e8590c; } .htl li:nth-child(5)::before { border-color: #2f9e44; }
.htl b { display: block; font-size: 1.25rem; letter-spacing: -.015em; margin-bottom: .3rem; }
.htl span { color: var(--text-2); font-size: .9375rem; line-height: 1.45; display: block; }

/* ---------- CTA ---------- */
.cta-panel {
  text-align: center; color: #fff; border-radius: 32px; padding: clamp(2.5rem, 6vw, 4.5rem);
  background: radial-gradient(120% 140% at 0% 0%, #2f8cff 0%, #0071e3 40%, #5b3fd6 100%);
}
.cta-panel .lead { color: rgba(255,255,255,.85); margin: 1rem auto 0; max-width: 560px; }
.cta-panel .btn-row { justify-content: center; }

/* ---------- About ---------- */
.hero-grid-about { grid-template-columns: 1.3fr .7fr; }
.big-year { text-align: right; font-size: clamp(5rem, 13vw, 10rem); font-weight: 800; letter-spacing: -0.05em; line-height: .9;
  background: linear-gradient(135deg, #0071e3, #7048e8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.big-year span { display: block; font-size: 1.125rem; letter-spacing: .02em; font-weight: 600; -webkit-text-fill-color: #7048e8; margin-bottom: .4rem; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.split-top { align-items: start; }
.split p { color: #3a3a3c; font-size: 1.0625rem; }
.vtl { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.vtl li { display: grid; grid-template-columns: 4.2rem 1fr; gap: 1rem; align-items: center; background: var(--bg-tint); border-radius: 16px; padding: 1rem 1.2rem; }
.vtl b { font-size: 1.125rem; color: var(--accent); letter-spacing: -.01em; }
.vtl li:nth-child(2) b { color: #7048e8; } .vtl li:nth-child(3) b { color: #d6336c; } .vtl li:nth-child(4) b { color: #e8590c; } .vtl li:nth-child(5) b { color: #2f9e44; }
.vtl span { color: #3a3a3c; font-size: .9375rem; }
.mission { border-radius: 32px; padding: clamp(2.5rem, 6vw, 4.5rem); background: radial-gradient(120% 140% at 100% 0%, #7048e8 0%, #0071e3 60%, #0058b0 100%); color: #fff; }
.statement { font-size: clamp(1.6rem, 3.4vw, 2.6rem); line-height: 1.18; letter-spacing: -0.022em; font-weight: 600; margin: 0; max-width: 24ch; text-wrap: balance; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.color-tile { background: var(--t); border-radius: var(--radius); padding: 1.6rem; display: flex; flex-direction: column; gap: .5rem; }
.color-tile .icon-tile { background: #fff; margin-bottom: .8rem; }
.color-tile p { color: #3a3a3c; font-size: .9375rem; margin: 0; }
.color-tile.tall { min-height: 260px; padding: 2rem; }
.color-tile.tall h2 { font-size: 1.5rem; letter-spacing: -.018em; margin-top: auto; padding-top: 1.5rem; }

.partner { background: #fff; border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow-sm); }
.partner-top { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.2rem; }
.partner-top h3 { font-size: 1.375rem; } .partner-top p { margin: .1rem 0 0; }
.avatar { width: 68px; height: 68px; border-radius: 50%; flex: none; display: grid; place-items: center; color: #fff; font-weight: 600; font-size: 1.25rem; letter-spacing: .02em; }
.avatar.a0 { background: linear-gradient(140deg, #0071e3, #7048e8); }
.avatar.a1 { background: linear-gradient(140deg, #0a8f8f, #2f9e44); }
.partner-bio { color: #3a3a3c; }
.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .45rem; }
.tags li { font-size: .8125rem; padding: .35rem .75rem; border-radius: 999px; background: var(--bg-tint); color: #3a3a3c; }

/* ---------- Service detail ---------- */
.svc-hero { position: relative; overflow: hidden; padding: clamp(3rem, 7vw, 5rem) 0 clamp(3rem, 6vw, 4.5rem); background: linear-gradient(160deg, var(--t) 0%, #fff 90%); }
.svc-hero .eyebrow, .svc-hero .crumb { color: var(--ink); }
.svc-hero-deco { position: absolute; right: -60px; top: -40px; color: var(--c); opacity: .09; pointer-events: none; }
.svc-hero-deco .deco { width: 460px; height: 460px; stroke-width: 1; }
.crumb { display: inline-flex; align-items: center; gap: .25rem; font-size: .9375rem; margin-bottom: 1.8rem; font-weight: 500; }
.crumb .chev { width: 14px; height: 14px; }
.prose p { font-size: 1.125rem; line-height: 1.6; color: #3a3a3c; }
.scope { background: var(--t); border-radius: var(--radius); padding: 2rem; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; }
.ticks li { position: relative; padding: .7rem 0 .7rem 2.1rem; border-bottom: 1px solid rgba(0,0,0,.06); }
.ticks li:last-child { border-bottom: 0; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .85rem; width: 1.3rem; height: 1.3rem; border-radius: 50%;
  background: var(--c, var(--accent)) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.3l2.3 2.2 4.7-4.8' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/80% no-repeat;
}
.ticks-lg li { font-size: 1.0625rem; padding-top: .9rem; padding-bottom: .9rem; }
.ticks-lg li::before { top: 1.05rem; }

/* ---------- Careers ---------- */
.life { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; background: var(--bg-tint); border-radius: 32px; padding: clamp(2rem, 5vw, 3.5rem); }
.openings { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.openings li { display: grid; grid-template-columns: 1fr auto auto; gap: 1.5rem; align-items: center; padding: 1.3rem 1.5rem; background: #fff; border-radius: 18px; box-shadow: var(--shadow-sm); }
.openings h3 { font-size: 1.125rem; }
.openings p { margin: .15rem 0 0; font-size: .9375rem; }
.pill { font-size: .8125rem; font-weight: 500; padding: .32rem .8rem; border-radius: 999px; background: #fff1e6; color: #b8460a; white-space: nowrap; }

/* ---------- Forms: validate inline ---------- */
.form { display: grid; gap: 1.1rem; }
.form-card { background: #fff; border-radius: 28px; padding: clamp(1.5rem, 4vw, 2.5rem); box-shadow: var(--shadow-md); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display: grid; gap: .4rem; }
.field > span { font-size: .875rem; font-weight: 500; }
.field i { font-style: normal; color: var(--text-2); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1.0625rem; color: var(--text); background: #fafafc;
  border: 1px solid rgba(0,0,0,.1); border-radius: 12px; padding: .8rem .95rem; min-height: 48px;
  transition: border-color 120ms, box-shadow 120ms, background-color 120ms; -webkit-appearance: none; appearance: none;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%2386868b' stroke-width='1.7' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .85rem center; background-size: 14px; padding-right: 2.4rem; }
.field input[type="file"] { padding: .65rem; }
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; background: #fff; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(0,113,227,.15); }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--err); }
.field-msg { font-style: normal; font-size: .8125rem; color: var(--err); }
.field-msg:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-status { margin: 0; font-size: .9375rem; min-height: 1.4em; }
.form-status.ok { color: var(--ok); } .form-status.err { color: var(--err); }

.contact-side { display: grid; gap: 1.25rem; }
.map-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.map-art { width: 100%; height: auto; }
.map { width: 100%; height: 260px; border: 0; display: block; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.contact-list li { display: flex; gap: 1rem; align-items: flex-start; }
.contact-list .icon-tile { width: 44px; height: 44px; border-radius: 13px; }
.contact-list .icon-tile .ico { width: 22px; height: 22px; }
.contact-list .label { margin-bottom: .2rem; }
.contact-list p, .contact-list address { margin: 0; font-style: normal; }

/* ---------- Footer ---------- */
.footer { background: var(--bg-tint); padding: 3.5rem 0 2rem; font-size: .875rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; }
.footer-grid a { display: block; color: var(--text-2); padding: .22rem 0; }
.footer-grid a:hover { color: var(--text); text-decoration: none; }
.footer-firm { font-weight: 600; font-size: 1rem; margin-bottom: .3rem; }
.footer-h { font-weight: 600; margin-bottom: .5rem; }
.footer-base { display: flex; justify-content: space-between; gap: 2rem; margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.footer-base p { margin: 0; max-width: 760px; }

/* ---------- ICAI disclaimer gate ---------- */
.gate { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: var(--gutter); background: rgba(0,0,0,.3); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.gate[hidden] { display: none; }
.gate-card { width: min(540px, 100%); max-height: calc(100vh - 2rem); overflow: auto; background: #fff; border-radius: 28px; padding: clamp(1.5rem, 4vw, 2.25rem); box-shadow: var(--shadow-lg); }
.gate-card h2 { font-size: 1.625rem; letter-spacing: -.02em; margin-bottom: .8rem; }
.gate-card p, .gate-card li { color: var(--text-2); font-size: .9875rem; }
.gate-card ul { padding-left: 1.1rem; margin: 0 0 1.5rem; display: grid; gap: .45rem; }
.gate-actions { display: flex; gap: .7rem; flex-wrap: wrap; }
.gate-actions .btn { flex: 1; }

/* ---------- Scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 700ms cubic-bezier(.2,.7,.2,1), transform 700ms cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .grid-4, .steps { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .nav-links, .nav-cta { display: none; }
  .menu-btn { display: block; }
  .hero-grid, .hero-grid-about, .split, .intl, .art-panel, .life, .story { grid-template-columns: 1fr; }
  .hero-art { height: 420px; max-width: 520px; width: 100%; margin: 0 auto; }
  .big-year { text-align: left; }
  .grid-2 { grid-template-columns: 1fr; }
  .htl { grid-template-columns: 1fr; gap: 0; }
  .htl::before { left: 7px; right: auto; top: 6px; bottom: 6px; width: 2px; height: auto; background: linear-gradient(180deg, #0071e3, #7048e8, #d6336c, #e8590c, #2f9e44); }
  .htl li { padding: 0 0 1.2rem 2.2rem; }
  .journey-hero li:nth-child(even) { margin-left: 0; }
}
@media (max-width: 560px) {
  .bento, .grid-3, .grid-4, .steps, .form-grid { grid-template-columns: 1fr; }
  .bento-card.big { grid-column: auto; }
  .bento-card { min-height: 0; }
  .hero-art { height: 400px; }
  .hc-main { left: 0; width: 84%; top: 86px; }
  .bars { height: 90px; }
  .hc-gst { top: 0; right: 0; }
  .hc-15cb { display: none; }
  .hc-tp { width: 74%; right: 0; bottom: 0; }
  .openings li { grid-template-columns: 1fr auto; }
  .openings .pill { grid-column: 1; grid-row: 2; justify-self: start; }
  .openings .text-link { grid-row: 1 / 3; grid-column: 2; }
  .footer-base { flex-direction: column; gap: .8rem; }
  .color-tile.tall { min-height: 0; }
}

/* ---------- Accessibility preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { transform: none; transition: opacity 300ms ease; }
  .btn:active, .rail-card:active, .bento-card:active { transform: none; opacity: .75; }
  .globe .arc { stroke-dashoffset: 0; animation: none !important; }
}
@media (prefers-reduced-transparency: reduce) {
  .nav { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .sheet, .hc { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .gate { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(0,0,0,.55); }
}
@media (prefers-contrast: more) {
  :root { --text-2: #3a3a3c; --line: rgba(0,0,0,.35); }
  .bento-card, .color-tile, .rail-card, .stat, .step, .partner { box-shadow: 0 0 0 1.5px var(--text); }
}

/* ---------- Office photographs ---------- */
.photo { position: relative; margin: 0; overflow: hidden; border-radius: var(--radius); background: #eceae6; aspect-ratio: 3 / 2; }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.js .photo img { opacity: 0; transform: scale(1.04); transition: opacity 600ms ease, transform 1200ms cubic-bezier(.2,.7,.2,1); }
.js .photo img.is-loaded { opacity: 1; transform: none; }
.photo figcaption {
  position: absolute; left: 14px; bottom: 14px; padding: .4rem .8rem; border-radius: 999px;
  font-size: .8125rem; font-weight: 600; letter-spacing: .005em; color: #1d1d1f;
  background: rgba(255,255,255,.8); -webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px);
}
.office-grid { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 1rem; }
.office-grid .office-main { grid-row: span 2; aspect-ratio: auto; min-height: 100%; }
.photo.wide { aspect-ratio: 21 / 9; border-radius: 32px; }
.mission-photo { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.mission-photo .photo { border-radius: 20px; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.hero-photo { box-shadow: var(--shadow-lg); }
.photo-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1rem; }
@media (max-width: 860px) {
  .office-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .office-grid .office-main { grid-column: span 2; grid-row: auto; aspect-ratio: 3 / 2; }
  .mission-photo { grid-template-columns: 1fr; }
  .photo.wide { aspect-ratio: 3 / 2; border-radius: var(--radius); }
}
@media (max-width: 560px) {
  .office-grid, .photo-row { grid-template-columns: 1fr; }
  .office-grid .office-main { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .js .photo img { transform: none; transition: opacity 300ms ease; }
}
@media (prefers-reduced-transparency: reduce) {
  .photo figcaption { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
