/* SHACCHAN GEXIMS. Tokens and components follow DESIGN.md (IBM Carbon spec).
 * Hallmark · macrostructure: split hero with centrepiece, alternating vertical panels, typeset catalogue
 * design-system: DESIGN.md (Carbon Trade House, from the IBM Carbon spec) · studied: yes · DNA-source: Maersk, DP World, McKinsey, Deloitte, Tata, JLL */
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 100 700;
  font-stretch: 85% 100%;
  font-display: swap;
  src: url("../fonts/plex-sans-latin.woff2") format("woff2");
}

:root {
  --deep-900: #161616;
  --deep-800: #161616;
  --deep-700: #393939;
  --ink: #161616;
  --muted: #525252;
  --line: #e0e0e0;
  --line-strong: #8d8d8d;
  --line-dark: #393939;
  --paper: #ffffff;
  --mist: #f4f4f4;
  --accent: #0f62fe;
  --accent-hi: #0050e6;
  --accent-ink: #0f62fe;
  --on-deep: #ffffff;
  --on-deep-muted: #c6c6c6;
  --scrim: rgb(22 22 22 / 0.72);
  --error: #da1e28;
  /* Globe lanes: one colour per region, each named in the legend */
  --lane-gulf: oklch(0.8 0.135 80);
  --lane-europe: oklch(0.78 0.11 235);
  --lane-sea: oklch(0.8 0.12 175);
  --lane-america: oklch(0.74 0.15 35);
  --lane-africa: oklch(0.82 0.15 135);
  --lane-eastasia: oklch(0.75 0.13 330);

  --font: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --fs-display: clamp(2.75rem, 1.4rem + 5.2vw, 6.25rem);
  --fs-h1: clamp(2.5rem, 1.5rem + 3.6vw, 4.5rem);
  --fs-h2: clamp(2rem, 1.3rem + 2.4vw, 3.25rem);
  --fs-h3: 1.375rem;
  --fs-lead: clamp(1.1875rem, 1rem + 0.6vw, 1.4375rem);
  --fs-body: 1.125rem;
  --fs-small: 0.9375rem;

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px; --s10: 128px;
  --section: clamp(4rem, 2.5rem + 6vw, 8rem);
  --gutter: clamp(16px, 5vw, 64px);
  --container: 1280px;
  --header: 76px;
  --r-control: 0px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --fast: 160ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header) + 16px); overflow-x: clip; background: var(--paper); }
body { margin: 0; overflow-x: clip; background: var(--paper); color: var(--ink); font: 400 var(--fs-body)/1.6 var(--font); letter-spacing: 0.16px; font-kerning: normal; text-rendering: optimizeLegibility; }
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; font-style: normal; text-wrap: balance; overflow-wrap: anywhere; min-width: 0; }
h1 { font-size: var(--fs-h1); font-weight: 300; line-height: 1.12; letter-spacing: -0.01em; }
h2 { font-size: var(--fs-h2); font-weight: 300; line-height: 1.17; letter-spacing: -0.005em; }
h3 { font-size: var(--fs-h3); font-weight: 500; line-height: 1.3; letter-spacing: 0; }
p { margin: 0 0 1em; max-width: 62ch; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.icon { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 3px; }
.on-deep :focus-visible { outline-color: var(--on-deep); }
.skip { position: absolute; left: var(--s4); top: -100px; z-index: 50; background: var(--deep-900); color: var(--on-deep); padding: var(--s3) var(--s4); border-radius: var(--r-control); font-weight: 600; text-decoration: none; }
.skip:focus { top: var(--s4); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.mist { background: var(--mist); }
.on-deep { --accent: #78a9ff; --accent-hi: #a6c8ff; --accent-ink: #78a9ff; background: var(--deep-800); color: var(--on-deep); }
.on-deep .muted, .on-deep .lead { color: var(--on-deep-muted); }
.muted { color: var(--muted); }
.lead { font-size: var(--fs-lead); line-height: 1.5; color: var(--muted); max-width: 52ch; }

/* Eyebrow with the brass rule (identity motif) */
.eyebrow { display: flex; align-items: center; gap: var(--s3); margin: 0 0 var(--s5); font-size: var(--fs-small); font-weight: 600; letter-spacing: 0.01em; line-height: 1.3; color: var(--accent-ink); }
.eyebrow::before { content: ""; width: 32px; height: 2px; background: var(--accent); flex: none; }
.on-deep .eyebrow { color: var(--accent); }

/* Buttons and links */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); min-height: 48px; padding: 0 var(--s5); border-radius: var(--r-control); border: 1.5px solid transparent; background: #0f62fe; color: #ffffff; font: 500 1rem/1 var(--font); text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color var(--fast) var(--ease), color var(--fast) var(--ease), border-color var(--fast) var(--ease), transform var(--fast) var(--ease); }
.btn:hover { background: #0050e6; }
.btn:active { background: #002d9c; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }
.btn--line { background: transparent; color: inherit; border-color: currentColor; }
.btn--line:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.on-deep .btn--line:hover { background: var(--on-deep); border-color: var(--on-deep); color: var(--deep-900); }
.btn .icon { width: 20px; height: 20px; }
.actions { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; }
.link { display: inline-flex; align-items: center; gap: var(--s2); min-height: 44px; font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; transition: color var(--fast) var(--ease), text-decoration-thickness var(--fast) var(--ease); }
.link:hover { color: var(--accent-ink); text-decoration-thickness: 2px; }
.on-deep .link:hover { color: var(--accent); }
.link .icon { width: 20px; height: 20px; transition: transform var(--fast) var(--ease); }
.link:hover .icon { transform: translateX(3px); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 30; background: var(--paper); border-bottom: 1px solid var(--line); transition: transform 280ms var(--ease); }
.site-header.is-hidden { transform: translateY(-100%); }
.bar { display: flex; align-items: center; gap: var(--s5); min-height: var(--header); }
.brand { display: flex; align-items: center; gap: var(--s3); min-height: 44px; text-decoration: none; min-width: 0; }
.brand img { width: 104px; height: 40px; }
.wordmark { font-weight: 700; font-size: 1.0625rem; letter-spacing: 0.06em; line-height: 1; white-space: nowrap; }
.nav { display: flex; align-items: center; gap: var(--s1); margin-left: auto; }
.nav a:not(.btn) { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s3); font-weight: 600; font-size: 1rem; white-space: nowrap; text-decoration: none; color: var(--muted); transition: color var(--fast) var(--ease); }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: var(--s3); right: var(--s3); bottom: 6px; height: 2px; background: var(--accent); }
.nav .btn { margin-left: var(--s3); }
.menu-btn:hover { background: var(--mist); }
.menu-btn:active { transform: translateY(1px); }
.menu-btn { display: none; margin-left: auto; align-items: center; gap: var(--s2); min-height: 44px; padding: 0 var(--s4); border: 1.5px solid var(--ink); border-radius: var(--r-control); background: none; color: var(--ink); font: 600 1rem/1 var(--font); cursor: pointer; }
@media (max-width: 1279px) {
  .menu-btn { display: inline-flex; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; margin: 0; padding: var(--s3) var(--gutter) var(--s5); background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 24px 48px rgb(22 22 22 / 0.18); }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { min-height: 52px; padding: 0; border-bottom: 1px solid var(--line); color: var(--ink); }
  .nav a[aria-current="page"]::after { left: 0; right: auto; width: 32px; bottom: -1px; }
  .nav .btn { margin: var(--s5) 0 0; }
}
@media (max-width: 420px) { .wordmark { font-size: 0.9375rem; letter-spacing: 0.03em; } .brand img { width: 78px; height: 30px; } .menu-btn { padding: 0 var(--s3); } }

/* Home hero */
.hero { padding-block: clamp(2.5rem, 1.5rem + 3vw, 4.5rem) clamp(3.5rem, 2rem + 4.5vw, 6rem); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s7); align-items: center; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s8); } }
.display { font-size: var(--fs-display); line-height: 1; letter-spacing: -0.02em; margin-bottom: var(--s6); }
.display .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.display .line > span { display: block; }
.display .line:last-child > span { color: var(--accent); }
.hero .lead { margin-bottom: var(--s6); }
.place { display: flex; align-items: center; gap: var(--s2); margin-top: var(--s6); color: var(--on-deep-muted); font-size: var(--fs-small); }
.place .icon { width: 20px; height: 20px; color: var(--accent); }

/* Globe centrepiece */
.globe { position: relative; margin: 0; --globe-dot: #a8a8a8; --globe-india: oklch(0.82 0.14 80); --globe-rim: #525252; --globe-body: #262626; --globe-glow: rgb(15 98 254 / 0.22); --globe-home: #ffffff; }
.globe-stage { position: relative; aspect-ratio: 1 / 1; width: 100%; max-width: 600px; margin-inline: auto; }
.globe-stage svg, .globe-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.globe-stage canvas { opacity: 0; transition: opacity 600ms var(--ease); cursor: grab; touch-action: pan-y; }
.globe-stage canvas:active { cursor: grabbing; }
.globe.is-live canvas { opacity: 1; }
.globe.is-live .globe-poster { opacity: 0; transition: opacity 600ms var(--ease); }
.globe figcaption { max-width: 600px; margin: var(--s4) auto 0; color: var(--on-deep-muted); font-size: var(--fs-small); line-height: 1.45; }
.globe-note { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s3) var(--s5); margin: 0 0 var(--s4); max-width: none; }
.lanes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s2) var(--s5); padding-top: var(--s4); border-top: 1px solid var(--line-dark); }
@media (min-width: 480px) { .lanes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.lanes li { display: flex; align-items: center; gap: var(--s2); color: var(--on-deep); }
.lanes i { width: 18px; height: 3px; border-radius: 2px; flex: none; }
.lanes .l-gulf i { background: var(--lane-gulf); } .lanes .l-europe i { background: var(--lane-europe); } .lanes .l-sea i { background: var(--lane-sea); }
.lanes .l-america i { background: var(--lane-america); } .lanes .l-africa i { background: var(--lane-africa); } .lanes .l-eastasia i { background: var(--lane-eastasia); }
.pause { display: inline-flex; align-items: center; gap: var(--s2); min-height: 44px; padding: 0 var(--s4); border: 1.5px solid var(--line-dark); border-radius: var(--r-control); background: transparent; color: var(--on-deep); font: 600 var(--fs-small)/1 var(--font); cursor: pointer; transition: border-color var(--fast) var(--ease), background-color var(--fast) var(--ease); }
.pause:hover { border-color: var(--on-deep-muted); background: var(--deep-700); }
.pause .icon { width: 18px; height: 18px; }
@media (prefers-reduced-motion: reduce) { .globe .pause { display: none; } }

/* Section heads */
.head { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s5); margin-bottom: var(--s8); }
@media (min-width: 1024px) { .head { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; gap: var(--s8); } .head .lead { margin: 0; } }

/* Verticals: same frame, photo and label change (Tata) */
.verticals { display: grid; gap: var(--s6); }
.vertical { display: grid; grid-template-columns: minmax(0, 1fr); background: var(--paper); border: 1px solid var(--line); }
.vertical figure { margin: 0; overflow: hidden; aspect-ratio: 16 / 10; background: var(--mist); }
.vertical figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease); }
.vertical:hover figure img { transform: scale(1.03); }
.vertical-body { display: flex; flex-direction: column; padding: clamp(24px, 4vw, 56px); }
.vertical-body h3 { font-size: clamp(1.625rem, 1.2rem + 1.2vw, 2.25rem); margin-bottom: var(--s4); }
.vertical-body p { color: var(--muted); }
.vertical-body .link { margin-top: auto; padding-top: var(--s4); }
@media (min-width: 900px) {
  .vertical { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .vertical figure { aspect-ratio: auto; min-height: 420px; }
  .vertical:nth-child(even) figure { order: 2; }
}

/* Trade cycle rail */
.cycle { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s6); counter-reset: stage; }
.cycle > li.cycle-track { position: absolute; padding: 0; background: var(--line-dark); }
.cycle-fill { position: absolute; inset: 0; background: var(--accent); transform-origin: 0 0; }
.cycle li { position: relative; padding-left: var(--s8); }
.cycle .node { position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-control); background: var(--deep-800); border: 1.5px solid var(--line-dark); color: var(--accent); }
.cycle h3 { font-size: 1.1875rem; margin: 8px 0 var(--s2); }
.cycle p { font-size: 1rem; color: var(--on-deep-muted); margin: 0; }
.cycle > li.cycle-track { left: 21px; top: 44px; bottom: 0; width: 2px; }
.cycle-fill { transform: scaleY(var(--p, 1)); }
@media (min-width: 1024px) {
  .cycle { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--s5); }
  .cycle li { padding: var(--s8) 0 0; }
  .cycle .node { top: 0; }
  .cycle > li.cycle-track { left: 22px; right: 0; top: 21px; bottom: auto; width: auto; height: 2px; padding: 0; }
  .cycle-fill { transform: scaleX(var(--p, 1)); }
}

/* Who we help: photo strip with captions */
.goods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4); }
.goods figure { margin: 0; }
.goods .ph { overflow: hidden; aspect-ratio: 4 / 5; background: var(--mist); }
.goods img { width: 100%; height: 100%; object-fit: cover; }
.goods figcaption { padding-top: var(--s3); }
.goods figcaption strong { display: block; font-size: 1.0625rem; }
.goods figcaption span { display: block; font-size: var(--fs-small); color: var(--muted); line-height: 1.45; }
@media (min-width: 1024px) { .goods { grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 4fr) minmax(0, 5fr); gap: var(--s5); } .goods figure:nth-child(even) { margin-top: var(--s8); } }

/* Promise + steps (how we work) */
.split { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s7); }
@media (min-width: 1024px) { .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s9); } .split .sticky { position: sticky; top: calc(var(--header) + var(--s6)); align-self: start; } }
.rows > li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: var(--s5); padding: var(--s6) 0; border-top: 1px solid var(--line); }
.rows > li:last-child { border-bottom: 1px solid var(--line); }
.rows .icon-box { display: grid; place-items: center; width: 44px; height: 44px; border: 1.5px solid var(--line); border-radius: var(--r-control); color: var(--accent-ink); }
.rows h3 { margin-bottom: var(--s2); }
.rows p { margin: 0; color: var(--muted); }
.on-deep .rows > li { border-color: var(--line-dark); }
.on-deep .rows .icon-box { border-color: var(--line-dark); color: var(--accent); }

/* Madurai band */
.place-band { display: grid; grid-template-columns: minmax(0, 1fr); background: var(--mist); }
.place-band figure { margin: 0; min-height: 360px; overflow: hidden; }
.place-band img { width: 100%; height: 100%; object-fit: cover; }
.place-band .copy { padding: var(--section) var(--gutter); }
@media (min-width: 1024px) { .place-band { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .place-band .copy { padding-inline: var(--s9) var(--gutter); max-width: 720px; } }

/* Closing band */
.cta-band { padding-block: clamp(3.5rem, 2rem + 5vw, 6.5rem); }
.cta-band .wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s6); align-items: end; }
.cta-band h2 { max-width: 18ch; }
@media (min-width: 1024px) { .cta-band .wrap { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } .cta-band .actions { justify-content: flex-end; } }

/* Inner page hero (photo under deep scrim) */
.page-hero { position: relative; isolation: isolate; overflow: hidden; color: var(--on-deep); background: var(--deep-800); }
.page-hero picture, .page-hero picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--deep-900) 0%, var(--scrim) 55%, rgb(22 22 22 / 0.35) 100%); }
@media (max-width: 1023px) { .page-hero::before { background: rgb(22 22 22 / 0.82); } }
.page-hero .wrap { padding-block: clamp(4rem, 2rem + 8vw, 9rem) clamp(3.5rem, 2rem + 5vw, 6rem); }
.page-hero h1 { max-width: 16ch; margin-bottom: var(--s5); }
.page-hero .lead { color: var(--on-deep-muted); margin-bottom: var(--s6); }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); margin-bottom: var(--s4); font-size: var(--fs-small); color: var(--on-deep-muted); }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; text-underline-offset: 4px; }
.crumbs li { display: inline-flex; align-items: center; }
.crumbs li + li::before { content: "/"; margin-right: var(--s2); color: var(--line-dark); }

/* Intro split on inner pages */
.intro { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s6); }
@media (min-width: 1024px) { .intro { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s9); } }
.note { font-size: var(--fs-lead); line-height: 1.5; max-width: 52ch; padding-top: var(--s5); }
.note::before { content: ""; display: block; width: 32px; height: 2px; margin-bottom: var(--s4); background: var(--accent); }

/* Service catalogue with a stage rail (McKinsey lists, Deloitte wayfinding) */
.catalogue { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s7); }
.rail { display: none; }
@media (min-width: 1024px) {
  .catalogue { grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: var(--s8); }
  .rail { display: block; position: sticky; top: calc(var(--header) + var(--s6)); align-self: start; }
  .rail p { font-size: var(--fs-small); font-weight: 600; color: var(--muted); margin-bottom: var(--s3); }
  .rail a { display: flex; align-items: center; gap: var(--s3); min-height: 44px; text-decoration: none; font-size: 1rem; color: var(--muted); transition: color var(--fast) var(--ease); }
  .rail a::before { content: ""; width: 28px; height: 2px; background: var(--line-strong); flex: none; transform: scaleX(0.43); transform-origin: left; transition: transform 240ms var(--ease), background-color 240ms var(--ease); }
  .rail a:hover { color: var(--ink); }
  .rail a[aria-current="true"] { color: var(--ink); font-weight: 600; }
  .rail a[aria-current="true"]::before { transform: none; background: var(--accent); }
}
.stage { padding-bottom: var(--s8); margin-bottom: var(--s8); border-bottom: 1px solid var(--line); }
.stage:last-child { margin-bottom: 0; border-bottom: 0; padding-bottom: 0; }
.stage-head { display: flex; align-items: center; gap: var(--s4); margin-bottom: var(--s6); }
.stage-head .icon-box { display: grid; place-items: center; width: 48px; height: 48px; border-radius: var(--r-control); background: var(--deep-800); color: var(--accent); flex: none; }
.stage-head h2 { font-size: clamp(1.625rem, 1.2rem + 1.4vw, 2.375rem); }
.groups { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s6) var(--s7); }
@media (min-width: 768px) { .groups { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .groups--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.group h3 { font-size: 1.1875rem; padding-bottom: var(--s3); margin-bottom: var(--s3); border-bottom: 2px solid var(--ink); }
.ticks li { position: relative; padding: 8px 0 8px 24px; font-size: 1rem; line-height: 1.5; border-bottom: 1px solid var(--line); }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 19px; width: 12px; height: 2px; background: var(--accent); }

/* Service cards: one photo per service, then the title, one line and the full list */
.svcs { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s8) var(--s6); }
@media (min-width: 768px) { .svcs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .svcs--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.svc-ph { position: relative; margin: 0 0 var(--s5); overflow: hidden; aspect-ratio: 4 / 3; background: var(--line); }
.svc-ph img { width: 100%; height: 100%; object-fit: cover; }
.svc-ph::after { content: ""; position: absolute; left: 0; bottom: 0; width: 48px; height: 4px; background: var(--accent); }
.svc h3 { font-size: 1.375rem; line-height: 1.25; margin-bottom: var(--s2); }
.svc > p { margin: 0 0 var(--s3); font-size: 1rem; color: var(--muted); }
.svc.group > p { margin-top: var(--s1); }
.svcs--tiles .svc-ph { aspect-ratio: 3 / 2; }
@media (min-width: 1024px) {
  .svc--wide { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: var(--s8); align-items: start; }
  .svc--wide .svc-ph { grid-row: 1 / span 3; margin: 0; aspect-ratio: 16 / 10; }
  .svc--wide .ticks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s6); }
}
/* A wide photo opens each catalogue stage */
.stage-ph { position: relative; margin: 0 0 var(--s6); overflow: hidden; aspect-ratio: 16 / 9; background: var(--line); }
@media (min-width: 768px) { .stage-ph { aspect-ratio: 21 / 8; } }
.stage-ph img { width: 100%; height: 100%; object-fit: cover; }
/* Linked tiles (About: the three businesses) */
.svc .link { margin-top: var(--s3); }

/* Plain grids of short items (values, audiences, reasons) */
.grid-3 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 var(--s7); }
@media (min-width: 768px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.item { padding: var(--s6) 0; border-top: 1px solid var(--line); }
.item .icon { color: var(--accent-ink); margin-bottom: var(--s4); }
.item h3 { font-size: 1.1875rem; margin-bottom: var(--s2); }
.item p { margin: 0; font-size: 1rem; color: var(--muted); }
.on-deep .item { border-color: var(--line-dark); }
.on-deep .item .icon { color: var(--accent); }
.on-deep .item p { color: var(--on-deep-muted); }

/* Numbered process */
.process { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 var(--s6); counter-reset: n; }
@media (min-width: 768px) { .process { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .process { grid-template-columns: repeat(3, minmax(0, 1fr)); } .process--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.process li { counter-increment: n; padding: var(--s6) 0; border-top: 2px solid var(--line-dark); }
.process li::before { content: counter(n); display: block; margin-bottom: var(--s4); font-size: 2.5rem; font-weight: 300; line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums; }
.process h3 { font-size: 1.1875rem; margin-bottom: var(--s2); }
.process p { margin: 0; font-size: 1rem; color: var(--on-deep-muted); }
.mist .process li, .section:not(.on-deep) .process li { border-top-color: var(--ink); }
.section:not(.on-deep) .process li::before { color: var(--accent-ink); }
.section:not(.on-deep) .process p { color: var(--muted); }

/* Two statements (vision, mission) */
.pair { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s7); }
@media (min-width: 1024px) { .pair { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s9); } }
.pair h2 { font-size: clamp(1.625rem, 1.2rem + 1.4vw, 2.375rem); margin-bottom: var(--s4); }
.pair p { font-size: var(--fs-lead); line-height: 1.5; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s8); align-items: start; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s9); } }
.form { display: grid; gap: var(--s5); align-content: start; }
.form-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s5); }
@media (min-width: 768px) { .form-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.field { display: grid; gap: var(--s2); align-content: start; }
.field input, .field select { align-self: start; }
.field label { font-weight: 600; font-size: 1rem; }
.field .hint { font-size: var(--fs-small); color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 11px 16px; border: 0; border-bottom: 1px solid var(--line-strong); border-radius: 0; background: var(--mist); color: var(--ink); font: 400 1.0625rem/1.4 var(--font); letter-spacing: 0.16px; transition: border-color var(--fast) var(--ease), background-color var(--fast) var(--ease); }
.field textarea { min-height: 140px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { background: #e8e8e8; border-bottom-color: var(--ink); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid #0f62fe; outline-offset: -2px; border-bottom-color: transparent; }
.field [aria-invalid="true"], .field [aria-invalid="true"]:focus-visible { outline: 2px solid var(--error); outline-offset: -2px; }
.field .error { display: block; min-height: 1.45em; margin: 0; font-size: var(--fs-small); line-height: 1.45; color: var(--error); font-weight: 600; }
.field .error:not(.is-shown) { height: 1.45em; overflow: hidden; visibility: hidden; }
.field .error.is-shown { visibility: visible; }
.form-status { min-height: 1.5em; margin: 0; font-size: 1rem; }
.form-status.is-ok { color: var(--ink); font-weight: 600; }
.form-status.is-ok::before { content: ""; display: inline-block; width: 24px; height: 2px; margin-right: var(--s3); vertical-align: middle; background: var(--accent); }
.next { padding: var(--s6); background: var(--mist); }
.next h2 { font-size: 1.5rem; margin-bottom: var(--s5); }
.next ol { display: grid; gap: var(--s5); counter-reset: n; }
.next li { counter-increment: n; display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: var(--s3); font-size: 1rem; color: var(--muted); }
.next li::before { content: counter(n); font-weight: 600; color: var(--accent-ink); font-size: 1.25rem; line-height: 1.3; }
.next li strong { display: block; color: var(--ink); }
.details { display: grid; gap: 0; margin: 0; }
.details > div { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: var(--s4); padding: var(--s5) 0; border-top: 1px solid var(--line); }
.details dt { font-weight: 600; }
.details dd { margin: 0; color: var(--muted); }
.details dd a { color: var(--ink); text-underline-offset: 4px; display: inline-flex; align-items: center; min-height: 44px; }
.details .icon { color: var(--accent-ink); margin-top: 2px; }

/* Footer */
.site-footer { background: var(--deep-900); color: var(--on-deep-muted); padding-block: var(--s9) var(--s6); font-size: 1rem; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s7); padding-bottom: var(--s8); border-bottom: 1px solid var(--line-dark); }
@media (min-width: 1024px) { .foot-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 4fr); } }
.foot-brand img { width: 156px; height: 60px; margin-bottom: var(--s4); }
.foot-brand .wordmark { color: var(--on-deep); display: block; margin-bottom: var(--s3); }
.site-footer h2 { font-size: 1rem; letter-spacing: 0; color: var(--on-deep); margin-bottom: var(--s4); }
.site-footer ul li { margin-bottom: var(--s1); }
.site-footer a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; color: var(--on-deep); }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 4px; color: var(--accent); }
.legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s3) var(--s6); padding-top: var(--s5); font-size: var(--fs-small); }
.legal p { margin: 0; max-width: none; }

/* 404 */
.notfound { min-height: 60vh; display: grid; align-content: center; }

/* Motion. Hidden states exist only under html.motion (set in the head when motion is allowed).
   Thesis: each section arrives like cargo uncovered at a port. A brass line draws, then the content
   is revealed behind it. One curve (--ease), entrances play once, controls answer in 160ms. */
.motion [data-in] { --d: calc(var(--i, 0) * 80ms); }
/* Headline words rise from a mask */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.w > span { display: inline-block; }
.motion [data-words] .w > span { transform: translateY(110%); transition: transform 900ms var(--ease); transition-delay: calc(var(--wi, 0) * 45ms + var(--wd, 0ms)); }
.motion [data-words].is-in .w > span { transform: none; }
/* Eyebrow: the brass rule draws, then the label slides in */
.motion .eyebrow::before { transform: scaleX(0); transform-origin: left; transition: transform 700ms var(--ease); }
.motion .eyebrow > * , .motion .eyebrow { transition: opacity 600ms var(--ease) 250ms, transform 600ms var(--ease) 250ms; }
.motion .eyebrow:not(.is-in) { opacity: 0.001; transform: translateX(-10px); }
.motion .eyebrow.is-in::before { transform: none; }
/* Generic rise, used for leads, actions and captions */
.motion [data-rise] { opacity: 0; transform: translateY(20px); transition: opacity 700ms var(--ease) var(--d, 0ms), transform 700ms var(--ease) var(--d, 0ms); }
.motion [data-rise].is-in { opacity: 1; transform: none; }
/* Globe arrives by scaling up out of the deep */
.motion .globe[data-in] .globe-stage { opacity: 0; transform: scale(0.88) rotate(-6deg); transition: opacity 1000ms var(--ease) 300ms, transform 1400ms var(--ease) 300ms; }
.motion .globe.is-in .globe-stage { opacity: 1; transform: none; }
/* Photos wipe open from the brass edge; the image settles inside */
.motion .vertical figure, .motion .place-band figure { clip-path: inset(0 100% 0 0); transition: clip-path 1100ms var(--ease); }
.motion .vertical:nth-child(even) figure { clip-path: inset(0 0 0 100%); }
.motion .vertical figure img, .motion .place-band figure img { transform: scale(1.14); transition: transform 1600ms var(--ease); }
.motion .vertical.is-in figure, .motion .place-band.is-in figure { clip-path: inset(0 0 0 0); }
.motion .vertical.is-in figure img, .motion .place-band.is-in figure img { transform: none; }
.motion .vertical.is-in:hover figure img { transform: scale(1.03); transition-duration: 600ms; }
.motion .vertical .vertical-body > * { opacity: 0; transform: translateY(18px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.motion .vertical.is-in .vertical-body > * { opacity: 1; transform: none; }
.motion .vertical.is-in .vertical-body > :nth-child(2) { transition-delay: 380ms; } .motion .vertical.is-in .vertical-body > :nth-child(3) { transition-delay: 460ms; }
.motion .vertical.is-in .vertical-body > :nth-child(4) { transition-delay: 540ms; } .motion .vertical.is-in .vertical-body > :nth-child(1) { transition-delay: 300ms; }
/* Goods photos rise from the bottom edge, one after another */
.motion .goods figure .ph { clip-path: inset(100% 0 0 0); transition: clip-path 1000ms var(--ease) var(--d, 0ms); }
.motion .goods figure img { transform: scale(1.18); transition: transform 1500ms var(--ease) var(--d, 0ms); }
.motion .goods figure figcaption { opacity: 0; transform: translateY(12px); transition: opacity 600ms var(--ease) calc(var(--d, 0ms) + 450ms), transform 600ms var(--ease) calc(var(--d, 0ms) + 450ms); }
.motion .goods figure.is-in .ph { clip-path: inset(0 0 0 0); }
.motion .goods figure.is-in img { transform: none; }
.motion .goods figure.is-in figcaption { opacity: 1; transform: none; }
/* Service photos rise from the bottom edge; the brass tab slides in after; text follows */
.motion .svc .svc-ph { clip-path: inset(100% 0 0 0); transition: clip-path 1000ms var(--ease) var(--d, 0ms); }
.motion .svc .svc-ph img { transform: scale(1.18); transition: transform 1500ms var(--ease) var(--d, 0ms); }
.motion .svc .svc-ph::after { transform: scaleX(0); transform-origin: left; transition: transform 600ms var(--ease) calc(var(--d, 0ms) + 700ms); }
.motion .svc:not(.group) > h3, .motion .svc > p, .motion .svc > .link { opacity: 0; transform: translateY(12px); transition: opacity 600ms var(--ease) calc(var(--d, 0ms) + 400ms), transform 600ms var(--ease) calc(var(--d, 0ms) + 400ms); }
.motion .svc.is-in .svc-ph { clip-path: inset(0 0 0 0); }
.motion .svc.is-in .svc-ph img, .motion .svc.is-in .svc-ph::after, .motion .svc.is-in:not(.group) > h3, .motion .svc.is-in > p, .motion .svc.is-in > .link { transform: none; opacity: 1; }
/* Stage photos wipe open from the left, like the home panels */
.motion .stage-ph { clip-path: inset(0 100% 0 0); transition: clip-path 1100ms var(--ease); }
.motion .stage-ph img { transform: scale(1.14); transition: transform 1600ms var(--ease); }
.motion .stage-ph.is-in { clip-path: inset(0 0 0 0); }
.motion .stage-ph.is-in img { transform: none; }
/* Rows and items: a hairline draws across, then the content follows; icons draw their strokes */
.rows > li, .item, .process li { position: relative; }
.motion .rows > li, .motion .item, .motion .process li { border-top-color: transparent; }
.motion .rows > li::before, .motion .item::before, .motion .process li::after { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--line); transform: scaleX(0); transform-origin: left; transition: transform 900ms var(--ease) var(--d, 0ms); }
.motion .process li::after { top: -2px; height: 2px; background: var(--accent); }
.motion .on-deep .rows > li::before, .motion .on-deep .item::before { background: var(--line-dark); }
.motion .rows > li.is-in::before, .motion .item.is-in::before, .motion .process li.is-in::after { transform: none; }
.motion .rows > li > *, .motion .item > *, .motion .process li > * { opacity: 0; transform: translateX(-14px); transition: opacity 650ms var(--ease) calc(var(--d, 0ms) + 200ms), transform 650ms var(--ease) calc(var(--d, 0ms) + 200ms); }
.motion .process li::before { opacity: 0; transform: translateY(60%); display: block; transition: opacity 700ms var(--ease) var(--d, 0ms), transform 700ms var(--ease) var(--d, 0ms); }
.motion .rows > li.is-in > *, .motion .item.is-in > *, .motion .process li.is-in > *, .motion .process li.is-in::before { opacity: 1; transform: none; }
.motion .item .icon, .motion .rows .icon-box .icon, .motion .stage-head .icon { stroke-dasharray: 90; stroke-dashoffset: 90; transition: stroke-dashoffset 1300ms var(--ease) calc(var(--d, 0ms) + 250ms); }
.motion .item.is-in .icon, .motion .rows > li.is-in .icon, .motion .stage-head.is-in .icon { stroke-dashoffset: 0; }
/* Service groups: the heading rule draws, ticks follow one by one */
.motion .group h3 { border-bottom-color: transparent; background: linear-gradient(var(--ink), var(--ink)) left bottom / 0% 2px no-repeat; transition: background-size 900ms var(--ease) var(--d, 0ms); }
.motion .group.is-in h3 { background-size: 100% 2px; }
.motion .group .ticks li { opacity: 0; transform: translateY(8px); transition: opacity 500ms var(--ease), transform 500ms var(--ease); }
.motion .group .ticks li::before { transform: scaleX(0); transform-origin: left; transition: transform 500ms var(--ease); }
.motion .group.is-in .ticks li, .motion .group.is-in .ticks li::before { opacity: 1; transform: none; }
.motion .group.is-in .ticks li:nth-child(1), .motion .group.is-in .ticks li:nth-child(1)::before { transition-delay: calc(var(--d, 0ms) + 250ms); }
.motion .group.is-in .ticks li:nth-child(2), .motion .group.is-in .ticks li:nth-child(2)::before { transition-delay: calc(var(--d, 0ms) + 310ms); }
.motion .group.is-in .ticks li:nth-child(3), .motion .group.is-in .ticks li:nth-child(3)::before { transition-delay: calc(var(--d, 0ms) + 370ms); }
.motion .group.is-in .ticks li:nth-child(4), .motion .group.is-in .ticks li:nth-child(4)::before { transition-delay: calc(var(--d, 0ms) + 430ms); }
.motion .group.is-in .ticks li:nth-child(5), .motion .group.is-in .ticks li:nth-child(5)::before { transition-delay: calc(var(--d, 0ms) + 490ms); }
.motion .group.is-in .ticks li:nth-child(6), .motion .group.is-in .ticks li:nth-child(6)::before { transition-delay: calc(var(--d, 0ms) + 550ms); }
.motion .group.is-in .ticks li:nth-child(n+7), .motion .group.is-in .ticks li:nth-child(n+7)::before { transition-delay: calc(var(--d, 0ms) + 610ms); }
/* Stage heads: the icon tile turns in */
.motion .stage-head .icon-box { transform: scale(0.6) rotate(-12deg); opacity: 0; transition: transform 800ms var(--ease), opacity 500ms var(--ease); }
.motion .stage-head.is-in .icon-box { transform: none; opacity: 1; }
/* Trade cycle: nodes light up as the brass rail reaches them */
.cycle .node { transition: background-color 400ms var(--ease), color 400ms var(--ease), border-color 400ms var(--ease), transform 400ms var(--ease); }
.motion .cycle .node:not(.is-lit) { background: var(--deep-800); color: var(--on-deep-muted); border-color: var(--line-dark); }
.cycle .node.is-lit, .cycle:not([data-scrub]) .node { background: var(--accent); color: var(--deep-900); border-color: var(--accent); }
.motion .cycle .node.is-lit { transform: scale(1.06); }
/* Inner page hero: the photo settles once */
.motion .page-hero picture img { transform: scale(1.08); transition: transform 2200ms var(--ease); }
.motion .page-hero.is-in picture img { transform: none; }
/* Controls: a brass sweep under primary buttons on hover */
.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn:not(.btn--line)::after { content: ""; position: absolute; inset: 0; z-index: -1; background: #0050e6; transform: scaleX(0); transform-origin: right; transition: transform var(--fast) var(--ease); }
.btn:not(.btn--line):hover { background: #0f62fe; }
.btn:not(.btn--line):hover::after { transform: scaleX(1); transform-origin: left; }
@media (prefers-reduced-motion: reduce) {
  .vertical figure img, .link .icon, .site-header, .btn::after, .cycle .node { transition: none; }
}

/* Small utilities and page-specific variants */
.mt-4 { margin-top: var(--s4); } .mt-5 { margin-top: var(--s5); } .mt-6 { margin-top: var(--s6); } .mt-7 { margin-top: var(--s7); }
.crumbs--light { color: var(--muted); }
.crumbs--light li + li::before { color: var(--line-strong); }
@media (min-width: 1024px) { .grid-3--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.grid-3--2 .item { display: flex; align-items: center; gap: var(--s4); }
.grid-3--2 .item .icon { margin: 0; }
.grid-3--2 .item h3 { margin: 0; }
.ticks--lg { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: var(--s7); }
@media (min-width: 768px) { .ticks--lg { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ticks--lg li { font-size: 1.125rem; padding-block: 12px; }
.ticks--lg li::before { top: 25px; }
main:focus:not(:focus-visible) { outline: 0; }
.goods figcaption strong { display: flex; align-items: center; gap: var(--s2); } .goods figcaption .icon { width: 20px; height: 20px; color: var(--accent-ink); }

/* Real estate practice: a survey sketch of one parcel, five plots, and a legend beside it.
   The sketch follows the field survey drawings behind patta records; it replaces an icon list. */
.practice-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s7); align-items: start; }
@media (min-width: 1024px) { .practice-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--s9); } }
.plan { margin: 0; max-width: 480px; justify-self: center; width: 100%; }
@media (min-width: 1024px) { .plan { justify-self: start; } }
.plan svg { display: block; width: 100%; height: auto; overflow: visible; }
.plot { stroke: transparent; stroke-width: 3; stroke-linejoin: round; transition: fill var(--fast) var(--ease), stroke var(--fast) var(--ease); }
.p-1a { fill: rgb(255 255 255 / 0.07); } .p-1b { fill: rgb(255 255 255 / 0.03); } .p-1c { fill: rgb(255 255 255 / 0.05); }
.p-1d { fill: rgb(255 255 255 / 0.02); } .p-1e { fill: rgb(255 255 255 / 0.09); }
.edge { fill: none; stroke: var(--on-deep-muted); stroke-width: 1.5; stroke-linejoin: round; }
.edge-out { stroke: var(--on-deep); stroke-width: 2; }
.plan-stones rect { fill: var(--accent); }
.plan-labels text { fill: var(--on-deep); transition: fill var(--fast) var(--ease); font: 600 20px/1 var(--font); text-anchor: middle; }
.plan-north path { fill: var(--on-deep-muted); }
.plan-north text { fill: var(--on-deep-muted); font: 600 15px/1 var(--font); text-anchor: middle; }
.plan figcaption { margin-top: var(--s4); font-size: var(--fs-small); color: var(--on-deep-muted); }
/* Phones: the sketch stays at the top while the legend scrolls under it, so the lit plot is always in view */
@media (max-width: 1023px) {
  .plan { position: sticky; top: 0; z-index: 1; max-width: none; padding-block: var(--s3); background: var(--deep-800); border-bottom: 1px solid var(--line-dark); }
  .plan svg { max-width: 280px; margin-inline: auto; }
  .plan-labels text { font-size: 27px; }
  .plan figcaption { display: none; }
}
.legend > li { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: var(--s4); padding: var(--s5) 0; border-top: 1px solid var(--line-dark); }
.legend > li:last-child { border-bottom: 1px solid var(--line-dark); }
.legend .code { font-weight: 600; font-size: 1.25rem; line-height: 1.3; color: var(--accent); font-variant-numeric: tabular-nums; }
.legend h3 { font-size: 1.1875rem; margin-bottom: var(--s1); }
.legend p { margin: 0; font-size: 1rem; color: var(--on-deep-muted); }
/* The legend row in the middle of the screen lights its plot; pointing at a row does the same */
.practice-grid[data-active="1a"] .p-1a, .practice-grid[data-active="1b"] .p-1b, .practice-grid[data-active="1c"] .p-1c, .practice-grid[data-active="1d"] .p-1d, .practice-grid[data-active="1e"] .p-1e, .practice-grid:has([data-plot="1a"]:hover) .p-1a, .practice-grid:has([data-plot="1b"]:hover) .p-1b, .practice-grid:has([data-plot="1c"]:hover) .p-1c, .practice-grid:has([data-plot="1d"]:hover) .p-1d, .practice-grid:has([data-plot="1e"]:hover) .p-1e { fill: rgb(255 255 255 / 0.12); stroke: var(--accent); }
.practice-grid[data-active="1a"] .plan-labels .t-1a, .practice-grid[data-active="1b"] .plan-labels .t-1b, .practice-grid[data-active="1c"] .plan-labels .t-1c, .practice-grid[data-active="1d"] .plan-labels .t-1d, .practice-grid[data-active="1e"] .plan-labels .t-1e, .practice-grid:has([data-plot="1a"]:hover) .plan-labels .t-1a, .practice-grid:has([data-plot="1b"]:hover) .plan-labels .t-1b, .practice-grid:has([data-plot="1c"]:hover) .plan-labels .t-1c, .practice-grid:has([data-plot="1d"]:hover) .plan-labels .t-1d, .practice-grid:has([data-plot="1e"]:hover) .plan-labels .t-1e { fill: var(--accent); }
.legend > li { position: relative; }
.legend > li::after { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 400ms var(--ease); }
.legend > li.is-active::after, .legend > li:hover::after { transform: none; }
/* Motion: the boundary draws like a surveyor's pen, stones set, then the plot codes appear */
.motion .plan .edge { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1400ms var(--ease); }
.motion .plan .edge:nth-child(2) { transition-delay: 500ms; } .motion .plan .edge:nth-child(3) { transition-delay: 700ms; } .motion .plan .edge:nth-child(4) { transition-delay: 900ms; }
.motion .plan .plan-stones rect, .motion .plan .plan-labels text { opacity: 0; transition: opacity 500ms var(--ease) 1200ms; }
.motion .plan .plan-labels text { transition-delay: 1500ms; }
.motion .plan.is-in .edge { stroke-dashoffset: 0; }
.motion .plan.is-in .plan-stones rect, .motion .plan.is-in .plan-labels text { opacity: 1; }

/* Consultancy: who we serve. A list of six audiences joined to a deep panel that names where we would start. */
.match { display: grid; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1024px) { .match { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.match-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s2); margin-bottom: var(--s4); }
@media (min-width: 1024px) { .match-list { grid-template-columns: minmax(0, 1fr); gap: 0; margin: 0; } }
.match-tab { display: flex; align-items: center; gap: var(--s3); min-height: 56px; padding: var(--s3) var(--s4); border: 1px solid var(--line); border-radius: var(--r-control); background: var(--paper); color: var(--ink); font: 600 1rem/1.25 var(--font); text-align: left; cursor: pointer; transition: background-color var(--fast) var(--ease), color var(--fast) var(--ease), border-color var(--fast) var(--ease); }
.match-tab .icon { flex: none; color: var(--accent-ink); }
.match-tab:hover { border-color: var(--ink); }
.match-tab[aria-selected="true"] { background: var(--deep-800); border-color: var(--deep-800); color: var(--on-deep); }
.match-tab[aria-selected="true"] .icon { color: var(--accent); }
@media (min-width: 1024px) {
  .match-tab { min-height: 76px; padding: 0 var(--s6); border-radius: 0; border-width: 0 0 1px; background: transparent; font-size: 1.25rem; }
  .match-tab:first-child { border-top-width: 1px; }
  .match-tab:hover { border-color: var(--line); background: var(--paper); }
  .match-tab[aria-selected="true"] { position: relative; }
  .match-tab[aria-selected="true"]::after { content: ""; position: absolute; right: -1px; top: 0; bottom: 0; width: 2px; background: var(--accent); }
}
.match-panel { padding: clamp(24px, 4vw, 48px); background: var(--deep-800); color: var(--on-deep); }
.match-panel[hidden] { display: none; }
.match-panels .match-panel:not([hidden]) ~ .match-panel:not([hidden]) { margin-top: var(--s4); }
.match-kicker { margin: 0 0 var(--s2); font-size: var(--fs-small); font-weight: 600; color: var(--accent); }
.match-panel h3 { font-size: clamp(1.625rem, 1.2rem + 1.2vw, 2.25rem); line-height: 1.15; margin-bottom: var(--s3); }
.match-line { margin: 0 0 var(--s6); font-size: var(--fs-lead); line-height: 1.5; color: var(--on-deep-muted); max-width: 44ch; }
.match-svcs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4); margin-bottom: var(--s6); }
@media (min-width: 768px) { .match-svcs { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.match-svcs a { display: block; text-decoration: none; color: var(--on-deep); }
.match-ph { display: block; overflow: hidden; aspect-ratio: 3 / 2; margin-bottom: var(--s3); background: var(--deep-700); }
.match-ph img { width: 100%; height: 100%; object-fit: cover; }
.match-name { display: block; font-weight: 600; font-size: 1rem; line-height: 1.35; text-decoration: underline; text-decoration-color: var(--line-dark); text-underline-offset: 4px; transition: text-decoration-color var(--fast) var(--ease); }
.match-svcs a:hover .match-name { text-decoration-color: var(--accent); }
.match-panel .link { color: var(--on-deep); }
@media (prefers-reduced-motion: no-preference) {
  .match-panel.is-shown .match-ph { animation: match-in 700ms var(--ease) both; }
  .match-panel.is-shown li:nth-child(2) .match-ph { animation-delay: 80ms; }
  .match-panel.is-shown li:nth-child(3) .match-ph { animation-delay: 160ms; }
  @keyframes match-in { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
}

/* Exports: how a trade moves. A sea route from your unit to your buyer, six waypoints above six steps;
   the ship and the brass wake follow the reader. Without the script every step is lit and the route is complete. */
.route-map { margin: 0 0 var(--s6); }
.route-map svg { display: block; width: 100%; height: auto; overflow: visible; }
.route-sea { fill: none; stroke: var(--line-dark); stroke-width: 2; stroke-dasharray: 6 8; }
.route-done { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.route-points circle { fill: var(--deep-800); stroke: var(--on-deep-muted); stroke-width: 2; transition: fill 300ms var(--ease), stroke 300ms var(--ease); }
.route-points circle.is-lit { fill: var(--accent); stroke: var(--accent); }
.route-end { fill: var(--on-deep-muted); font: 600 18px/1 var(--font); }
.route-ship path { fill: var(--accent); }
.route-ship path + path { fill: var(--on-deep); }
.route-steps { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 var(--s5); }
@media (min-width: 768px) { .route-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .route-steps { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.route-steps li { position: relative; padding: var(--s5) 0 var(--s6); border-top: 2px solid var(--line-dark); }
.route-steps li::before { content: ""; position: absolute; left: 0; right: 0; top: -2px; height: 2px; background: var(--accent); transform: scaleX(1); transform-origin: left; transition: transform 500ms var(--ease); }
.route[data-live] .route-steps li:not(.is-lit)::before { transform: scaleX(0); }
.route-n { display: block; margin-bottom: var(--s3); font-size: 2rem; font-weight: 300; line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums; }
.route-steps h3 { font-size: 1.1875rem; margin-bottom: var(--s2); }
.route-steps p { margin: 0; font-size: 1rem; color: var(--on-deep-muted); }
@media (max-width: 1023px) {
  .route-map { position: sticky; top: 0; z-index: 1; margin: 0 calc(var(--gutter) * -1) var(--s4); padding: var(--s4) var(--gutter); background: var(--deep-800); border-bottom: 1px solid var(--line-dark); }
  .route-end { display: none; }
  .route-sea { stroke-width: 5; stroke-dasharray: 14 18; }
  .route-done { stroke-width: 8; }
  .route-points circle { stroke-width: 5; }
}

/* Exports: what you can expect, set as a signed undertaking on the firm's letterhead.
   The terms-in-writing promise is the firm's own; the seal stamps on once the clauses are in. */
.letter { position: relative; padding: clamp(24px, 5vw, 56px); background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--accent); }
.letter-head { display: flex; align-items: center; gap: var(--s4); padding-bottom: var(--s5); margin-bottom: var(--s6); border-bottom: 1px solid var(--line); }
.letter-head img { width: 104px; height: 40px; flex: none; }
.letter-head .wordmark { margin: 0 0 var(--s1); color: var(--ink); }
.letter-head p:not(.wordmark) { margin: 0; font-size: var(--fs-small); color: var(--muted); line-height: 1.4; }
.letter-to { margin: 0 0 var(--s2); font-size: 1rem; color: var(--muted); }
.letter-title { font-size: clamp(1.625rem, 1.2rem + 1.2vw, 2.25rem); margin-bottom: var(--s6); }
.clauses { counter-reset: c; }
.clauses li { counter-increment: c; display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: var(--s3); padding: var(--s4) 0; border-top: 1px solid var(--line); }
.clauses li::before { content: counter(c) "."; grid-row: 1 / span 2; font-weight: 600; font-size: 1.1875rem; line-height: 1.3; color: var(--accent-ink); font-variant-numeric: tabular-nums; }
.clauses h3 { font-size: 1.1875rem; margin-bottom: var(--s1); }
.clauses p { margin: 0; font-size: 1rem; color: var(--muted); }
.letter-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--s5); margin-top: var(--s6); padding-top: var(--s5); border-top: 1px solid var(--ink); }
.letter-foot p { margin: 0; font-weight: 600; }
.seal { width: 150px; height: 150px; flex: none; transform: rotate(-8deg); }
.seal-out { fill: none; stroke: var(--accent-ink); stroke-width: 2.5; }
.seal-in { fill: none; stroke: var(--accent-ink); stroke-width: 1.5; }
.seal-text { fill: var(--accent-ink); font: 700 12px/1 var(--font); letter-spacing: 0.04em; }
@media (max-width: 479px) { .letter-foot { flex-direction: column; align-items: flex-start; } }
/* Motion: clauses are entered one by one, then the seal is pressed on */
.motion .letter .clauses li { opacity: 0; transform: translateY(10px); transition: opacity 500ms var(--ease), transform 500ms var(--ease); }
.motion .letter.is-in .clauses li { opacity: 1; transform: none; }
.motion .letter.is-in .clauses li:nth-child(2) { transition-delay: 90ms; } .motion .letter.is-in .clauses li:nth-child(3) { transition-delay: 180ms; }
.motion .letter.is-in .clauses li:nth-child(4) { transition-delay: 270ms; } .motion .letter.is-in .clauses li:nth-child(5) { transition-delay: 360ms; }
.motion .letter.is-in .clauses li:nth-child(6) { transition-delay: 450ms; }
.motion .letter-foot .seal { opacity: 0; transform: scale(1.6) rotate(-24deg); transition: opacity 260ms var(--ease) 350ms, transform 520ms var(--ease) 350ms; }
.motion .letter-foot.is-in .seal { opacity: 1; transform: rotate(-8deg); }

/* About: the firm at a glance, set as a record */
.mt-8 { margin-top: var(--s8); }
.glance { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s7); }
@media (min-width: 1024px) { .glance { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s9); } }
.record { margin: 0; border-top: 2px solid var(--ink); }
.record > div { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s1); padding: var(--s4) 0; border-bottom: 1px solid var(--line); }
@media (min-width: 640px) { .record > div { grid-template-columns: 160px minmax(0, 1fr); gap: var(--s5); } }
.record dt { font-size: var(--fs-small); font-weight: 600; color: var(--accent-ink); padding-top: 3px; }
.record dd { margin: 0; font-size: 1.125rem; line-height: 1.5; }
.record dd a { display: flex; align-items: center; min-height: 44px; width: fit-content; color: var(--ink); text-underline-offset: 4px; }
.record dd a:hover { color: var(--accent-ink); text-decoration-thickness: 2px; }
/* Linked tiles: the whole tile is the link target; the title underline answers hover and focus */
.svcs--links .svc { position: relative; }
.svcs--links .svc .link::after { content: ""; position: absolute; inset: 0; }
.svcs--links .svc h3 { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 6px; text-decoration-thickness: 2px; transition: text-decoration-color var(--fast) var(--ease); }
.svcs--links .svc:hover h3, .svcs--links .svc:focus-within h3 { text-decoration-color: var(--accent); }
.svcs--links .svc:hover .svc-ph::after, .svcs--links .svc:focus-within .svc-ph::after { width: 96px; }
.svc-ph::after { transition: width var(--fast) var(--ease); }
/* About: vision and mission as two large statements */
.statements { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s8); }
@media (min-width: 1024px) { .statements { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s9); } }
.statements h2 { font-size: clamp(1.625rem, 1.2rem + 1.4vw, 2.375rem); margin-bottom: var(--s5); }
.statement { margin: 0; font-size: clamp(1.25rem, 1rem + 0.9vw, 1.75rem); line-height: 1.45; color: var(--on-deep); max-width: 30ch; }
.statements > div { padding-top: var(--s5); border-top: 2px solid var(--accent); }
/* About: values against the practice that shows them */
.practice-ledger { margin: 0; }
.practice-ledger > div { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s2); padding: var(--s5) 0; border-top: 1px solid var(--line); }
.practice-ledger > div:last-child { border-bottom: 1px solid var(--line); }
@media (min-width: 768px) { .practice-ledger > div { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s7); align-items: baseline; } }
.practice-ledger dt { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.5rem); font-weight: 600; line-height: 1.1; letter-spacing: -0.015em; }
.practice-ledger dd { margin: 0; font-size: var(--fs-lead); line-height: 1.5; color: var(--muted); max-width: 46ch; }
/* About: the four verbs. As the reader moves down, each word takes its turn in ink with a brass underline. */
.verbs-line { font-size: clamp(2.5rem, 1rem + 5vw, 5.5rem); line-height: 1.04; letter-spacing: -0.02em; max-width: none; text-wrap: balance; margin: var(--s4) 0 var(--s8); }
.verbs-line .w > span { transition: color 400ms var(--ease), transform 900ms var(--ease); }
[data-verbs][data-live] .verbs-line .w > span { color: var(--muted); }
[data-verbs][data-live] .verbs-line .w.is-lit > span { color: var(--ink); }
.verbs-line .w { position: relative; }
.verbs-line .w::after { content: ""; position: absolute; left: 0; right: 0.3em; bottom: 0; height: 4px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 500ms var(--ease); }
[data-verbs][data-live] .verbs-line .w.is-lit::after { transform: none; }
.verbs { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 var(--s6); margin-bottom: var(--s6); }
@media (min-width: 768px) { .verbs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .verbs { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.verbs li { padding: var(--s5) 0; border-top: 2px solid var(--ink); }
.verbs h3 { font-size: 1.1875rem; margin-bottom: var(--s2); }
.verbs p { margin: 0; font-size: 1rem; color: var(--muted); }

/* Audit fixes: card rows line up, the wide card fills its row at tablet width, phone cards stay compact,
   stage photos keep their subject in the 21:8 band */
@media (min-width: 768px) {
  .svc h3 { min-height: 2.5em; display: flex; align-items: flex-end; }
  .svc--wide { grid-column: 1 / -1; }
}
@media (min-width: 768px) and (max-width: 1023px) { .svcs--links { grid-template-columns: repeat(3, minmax(0, 1fr)); } .svcs--links .svc h3 { font-size: 1.1875rem; } }
@media (max-width: 599px) { .svc-ph, .svcs--tiles .svc-ph { aspect-ratio: 16 / 9; } .svcs { gap: var(--s7); } }
.stage-ph img { object-position: var(--focus, 50% 50%); }

/* Home: the six stages of a trade, each shown as the paper it produces, laid out on a desk.
   The papers deal out from one stack as the section arrives. */
.desk { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4); }
@media (min-width: 768px) { .desk { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s5); } }
@media (min-width: 1280px) { .desk { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--s4); } }
.paper { position: relative; display: flex; flex-direction: column; min-height: 260px; padding: var(--s5) var(--s4) var(--s4); background: var(--paper); color: var(--ink); border-top: 4px solid #0f62fe; }
.paper-no { font-size: var(--fs-small); font-weight: 600; color: #0f62fe; margin-bottom: var(--s2); }
.paper h3 { font-size: 1.1875rem; margin-bottom: var(--s2); }
.paper p { margin: 0 0 var(--s5); font-size: 1rem; color: var(--muted); }
.paper-stamp { align-self: flex-start; margin-top: auto; padding: 6px 10px; border: 2px solid #0f62fe; border-radius: var(--r-control); color: #0f62fe; font-weight: 700; font-size: 0.9375rem; line-height: 1.2; transform: rotate(-4deg); }
/* Motion: dealt from one stack at the left edge, one after another */
.motion .desk .paper { opacity: 0; transform: translateX(calc(var(--deal, 0) * -100%)); transition: opacity 500ms var(--ease) calc(var(--k) * 110ms), transform 900ms var(--ease) calc(var(--k) * 110ms); }
.motion .desk.is-in .paper { opacity: 1; transform: none; }
.motion .desk .paper-stamp { opacity: 0; transform: scale(1.5) rotate(-12deg); transition: opacity 200ms var(--ease) calc(var(--k) * 110ms + 800ms), transform 400ms var(--ease) calc(var(--k) * 110ms + 800ms); }
.motion .desk.is-in .paper-stamp { opacity: 1; transform: rotate(-4deg); }
.desk .paper:nth-child(1) { --k: 0; --deal: 0; } .desk .paper:nth-child(2) { --k: 1; --deal: 1; } .desk .paper:nth-child(3) { --k: 2; --deal: 2; }
.desk .paper:nth-child(4) { --k: 3; --deal: 3; } .desk .paper:nth-child(5) { --k: 4; --deal: 4; } .desk .paper:nth-child(6) { --k: 5; --deal: 5; }
@media (max-width: 1279px) { .desk .paper:nth-child(n) { --deal: 0.4; } }

/* Home: how an engagement runs. Four panels in a row; the step being read opens wide in deep green,
   the others fold to a number and a word. Without the script all four sit open. */
.folds { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s3); }
.fold { position: relative; display: flex; flex-direction: column; padding: var(--s6) var(--s5); background: var(--mist); border-top: 2px solid var(--ink); transition: background-color 500ms var(--ease), color 500ms var(--ease), flex-grow 700ms var(--ease); }
.fold-n { font-size: 2.5rem; font-weight: 300; line-height: 1; color: var(--accent-ink); margin-bottom: var(--s5); font-variant-numeric: tabular-nums; }
.fold h3 { font-size: clamp(1.5rem, 1.1rem + 1vw, 2.25rem); margin-bottom: var(--s3); }
.fold p { margin: 0; font-size: 1.0625rem; color: var(--muted); max-width: 34ch; transition: opacity 400ms var(--ease); }
.folds[data-live] .fold.is-open { background: var(--deep-800); color: var(--on-deep); border-top-color: var(--accent); }
.folds[data-live] .fold.is-open .fold-n { color: var(--accent); }
.folds[data-live] .fold.is-open p { color: var(--on-deep-muted); }
@media (min-width: 1024px) {
  .folds { display: flex; gap: var(--s3); min-height: 380px; }
  .fold { flex: 1 1 0; min-width: 0; padding: var(--s7) var(--s6); }
  .folds[data-live] .fold { flex-grow: 1; }
  .folds[data-live] .fold.is-open { flex-grow: 3; }
  .folds[data-live] .fold:not(.is-open) p { opacity: 0; }
  .folds[data-live] .fold:not(.is-open) h3 { font-size: 1.5rem; }
}

/* Footer signature: the first word of the name, filled with photographs of what the firm trades and where it stands.
   The photos cross-fade and drift while the footer is on screen; a button pauses them; reduced motion shows one still. */
.sign { display: grid; justify-items: end; gap: var(--s4); padding-bottom: var(--s8); }
.sign-svg { justify-self: stretch; }
.sign-svg { width: 100%; height: auto; overflow: visible; }
#sign-clip text { font: 700 200px/1 var(--font); letter-spacing: 0; }
.sign-base { fill: #262626; }
.sign-img { opacity: 0; }
.sign-img:first-of-type { opacity: 1; }

@media (prefers-reduced-motion: no-preference) {
  .sign-img { opacity: 0; transform-box: view-box; animation: sign-cycle 24s linear infinite; }
  .sign-img:nth-of-type(2) { animation-delay: 6s; } .sign-img:nth-of-type(3) { animation-delay: 12s; } .sign-img:nth-of-type(4) { animation-delay: 18s; }
  .sign.is-paused .sign-img, .sign.is-off .sign-img { animation-play-state: paused; }
  @keyframes sign-cycle {
    0% { opacity: 0; transform: translateX(0); }
    5% { opacity: 1; }
    25% { opacity: 1; }
    30% { opacity: 0; transform: translateX(-40px); }
    100% { opacity: 0; transform: translateX(-40px); }
  }
}
@media (prefers-reduced-motion: reduce) { .sign-pause { display: none; } }

/* Carbon CTA banner: the closing band is solid IBM Blue on every page */
.cta-band, .cta-band.on-deep { --accent: #ffffff; --accent-ink: #ffffff; background: #0f62fe; color: #ffffff; }
.cta-band .lead { color: #ffffff; }
.cta-band .btn:not(.btn--line) { background: #ffffff; color: #0f62fe; }
.cta-band .btn:not(.btn--line)::after { background: #e5f0ff; }
.cta-band .btn:not(.btn--line):hover { background: #ffffff; }
.cta-band .btn--line { color: #ffffff; border-color: #ffffff; }
.cta-band .btn--line:hover { background: #ffffff; color: #0f62fe; border-color: #ffffff; }
.cta-band :focus-visible { outline-color: #ffffff; }
