/* ==========================================================================
   AdPlus Services design system
   Type: IBM Plex Sans Condensed (display), IBM Plex Sans (text), IBM Plex Serif (editorial)
   Brand: Orange #F47D1E, Purple #4B4579
   ========================================================================== */

:root {
  /* Brand (fixed in both themes) */
  --orange: #F47D1E;
  --purple: #4B4579;

  /* Light theme */
  --bg: #F6F6F9;
  --bg-alt: #FFFFFF;
  --surface: #FFFFFF;
  --surface-2: #EEEDF4;
  --ink: #221E33;
  --ink-soft: #4A4560;
  --muted: #6B6680;
  --line: #DFDDE8;
  --line-strong: #C9C5D8;
  --heading: #2E2950;
  --accent-text: #B4560B;      /* orange for small text, AA on light */
  --band: #2E2950;              /* deep purple statement band */
  --band-ink: #F1EFF8;
  --band-muted: #BDB8D6;
  --on-orange: #1E1A2C;
  --focus: #F47D1E;
  --shadow: 0 1px 2px rgba(34, 30, 51, .06), 0 8px 24px -12px rgba(34, 30, 51, .18);
  --logo-plate: transparent;

  /* Type */
  --f-display: "IBM Plex Sans Condensed", "Arial Narrow", sans-serif;
  --f-text: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-serif: "IBM Plex Serif", Georgia, serif;

  /* Scale (1.25 minor third-ish, fluid at top end) */
  --t-xs: .8125rem;
  --t-sm: .9375rem;
  --t-base: 1.0625rem;
  --t-md: 1.25rem;
  --t-lg: clamp(1.5rem, 1.2rem + 1vw, 1.875rem);
  --t-xl: clamp(1.875rem, 1.4rem + 1.8vw, 2.75rem);
  --t-2xl: clamp(2.375rem, 1.6rem + 3vw, 4rem);

  /* Space & layout */
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1240px;
  --sec: clamp(64px, 8vw, 120px);
  --r-sm: 4px;
  --r-md: 8px;
  --slant: 14%;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

:root[data-theme="dark"] {
  --bg: #17151F;
  --bg-alt: #1C1A26;
  --surface: #211E2C;
  --surface-2: #2A2638;
  --ink: #ECEAF2;
  --ink-soft: #CFCBDD;
  --muted: #A29DB5;
  --line: #34304A;
  --line-strong: #46415E;
  --heading: #F3F1FA;
  --accent-text: #F89A4E;
  --band: #241F3D;
  --band-ink: #F1EFF8;
  --band-muted: #B3AECF;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px -16px rgba(0, 0, 0, .6);
  --logo-plate: #F6F6F9;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #17151F; --bg-alt: #1C1A26; --surface: #211E2C; --surface-2: #2A2638;
    --ink: #ECEAF2; --ink-soft: #CFCBDD; --muted: #A29DB5; --line: #34304A; --line-strong: #46415E;
    --heading: #F3F1FA; --accent-text: #F89A4E; --band: #241F3D; --band-ink: #F1EFF8; --band-muted: #B3AECF;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 12px 32px -16px rgba(0,0,0,.6); --logo-plate: #F6F6F9;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 var(--t-base)/1.65 var(--f-text);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.theme-anim, body.theme-anim * { transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease) !important; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--orange); color: var(--on-orange); }

h1, h2, h3, h4 { font-family: var(--f-display); color: var(--heading); margin: 0; font-weight: 600; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: var(--t-2xl); line-height: 1.04; }
h2 { font-size: var(--t-xl); line-height: 1.1; }
h3 { font-size: var(--t-lg); line-height: 1.2; }
h4 { font-size: var(--t-md); line-height: 1.3; }
p { margin: 0 0 1em; text-wrap: pretty; }
.lede { font-size: var(--t-md); line-height: 1.55; color: var(--ink-soft); max-width: 60ch; }
.serif { font-family: var(--f-serif); font-style: italic; font-weight: 400; }
.muted { color: var(--muted); }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.sec { padding-block: var(--sec); }
.sec--alt { background: var(--bg-alt); }
.sec--tight { padding-block: calc(var(--sec) * .6); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--orange); color: var(--on-orange); padding: 10px 16px; font-weight: 600; }
.skip:focus { top: 12px; }

/* Section head: the orange rule borrowed from the logo underline */
.head { display: grid; gap: 14px; align-content: start; margin-bottom: clamp(32px, 4vw, 56px); max-width: 62ch; }
.head::before { content: ""; width: 56px; height: 4px; background: var(--orange); }
.head p { margin: 0; color: var(--ink-soft); font-size: var(--t-md); line-height: 1.55; }
.head--split { max-width: none; grid-template-columns: 1fr; align-items: end; }
@media (min-width: 900px) { .head--split { grid-template-columns: 1.1fr .9fr; column-gap: 64px; } .head--split::before { grid-column: 1 / -1; } }

/* ---------- Buttons ---------- */
.btn {
  --bh: 48px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--bh); padding: 0 22px; border-radius: var(--r-sm);
  font: 600 var(--t-sm)/1 var(--f-text); letter-spacing: .01em; text-decoration: none;
  border: 1.5px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .25s var(--ease); }
.btn:hover svg.arr { transform: translateX(3px); }
.btn--primary { background: var(--orange); color: var(--on-orange); }
.btn--primary:hover { background: #FF8E33; }
.btn--secondary { border-color: var(--line-strong); color: var(--heading); background: transparent; }
.btn--secondary:hover { border-color: var(--heading); }
.btn--purple { background: var(--purple); color: #fff; }
.btn--purple:hover { background: #5A5390; }
.btn--light { background: #fff; color: #221E33; }
.btn--light:hover { background: #F1EFF8; }
.btn--ghost-light { border-color: rgba(255,255,255,.4); color: #fff; }
.btn--ghost-light:hover { border-color: #fff; }
.btn--sm { --bh: 40px; padding: 0 16px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.link { font-weight: 600; color: var(--heading); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; border-bottom: 1.5px solid var(--orange); padding-bottom: 2px; }
.link svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.link:hover svg { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 100; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.site-header.is-scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; gap: 24px; height: 76px; }
.brand { display: inline-flex; align-items: center; flex: none; background: var(--logo-plate); padding: 6px 10px; margin-left: -10px; border-radius: var(--r-sm); }
.brand img { width: 172px; height: auto; }
.nav__menu { display: flex; align-items: center; gap: 4px; margin: 0 auto; list-style: none; padding: 0; }
.nav__menu > li > a, .nav__menu > li > button {
  display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 12px;
  font-size: var(--t-sm); font-weight: 500; text-decoration: none; color: var(--ink-soft);
  background: none; border: 0; cursor: pointer; border-radius: var(--r-sm);
}
.nav__menu > li > a:hover, .nav__menu > li > button:hover, .nav__menu > li > button[aria-expanded="true"] { color: var(--heading); }
.nav__menu a[aria-current="page"] { color: var(--heading); box-shadow: inset 0 -2px 0 var(--orange); }
.nav__menu svg { width: 14px; height: 14px; transition: transform .25s var(--ease); }
.nav__menu button[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav__actions { display: flex; align-items: center; gap: 10px; }

.theme-toggle { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); cursor: pointer; color: var(--heading); }
.theme-toggle:hover { border-color: var(--line-strong); }
.theme-toggle svg { width: 19px; height: 19px; }
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }

/* Mega menu */
.mega { position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-block: 1px solid var(--line); box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .22s var(--ease), transform .22s var(--ease), visibility 0s .22s; }
.mega.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .22s var(--ease), transform .22s var(--ease); }
.mega__inner { display: grid; grid-template-columns: repeat(5, 1fr); gap: 28px; padding-block: 32px 36px; }
.mega__col h3 { font-family: var(--f-text); font-size: var(--t-xs); font-weight: 600; color: var(--accent-text); letter-spacing: .02em; padding-bottom: 10px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.mega__col ul { list-style: none; margin: 0; padding: 0; }
.mega__col a { display: block; padding: 7px 0; font-size: var(--t-sm); text-decoration: none; color: var(--ink); line-height: 1.35; }
.mega__col a:hover { color: var(--heading); text-decoration: underline; text-decoration-color: var(--orange); }
.mega__foot { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 16px; border-top: 1px solid var(--line); padding-top: 18px; font-size: var(--t-sm); color: var(--muted); }

.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); cursor: pointer; place-items: center; }
.burger span, .burger span::before, .burger span::after { display: block; width: 18px; height: 1.5px; background: var(--heading); position: relative; transition: transform .25s var(--ease), background-color .2s; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; }
.burger span::before { top: -6px; } .burger span::after { top: 6px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* Mobile drawer */
.drawer { position: fixed; inset: 76px 0 0; z-index: 99; background: var(--bg); overflow-y: auto; padding: 8px var(--gutter) 40px; transform: translateX(100%); visibility: hidden; transition: transform .3s var(--ease), visibility 0s .3s; }
.drawer.is-open { transform: none; visibility: visible; transition: transform .3s var(--ease); }
.drawer > ul { list-style: none; margin: 0; padding: 0; }
.drawer > ul > li { border-bottom: 1px solid var(--line); }
.drawer a, .drawer summary { display: flex; justify-content: space-between; align-items: center; min-height: 56px; font: 600 var(--t-md)/1.2 var(--f-display); color: var(--heading); text-decoration: none; cursor: pointer; list-style: none; }
.drawer summary::-webkit-details-marker { display: none; }
.drawer summary svg { width: 18px; transition: transform .25s; }
.drawer details[open] summary svg { transform: rotate(180deg); }
.drawer details ul { list-style: none; margin: 0 0 16px; padding: 0; }
.drawer details h4 { font: 600 var(--t-xs)/1 var(--f-text); color: var(--accent-text); margin: 16px 0 6px; }
.drawer details a { min-height: 44px; font: 400 var(--t-base)/1.3 var(--f-text); color: var(--ink); }
.drawer .btn { width: 100%; margin-top: 24px; }
.drawer__contact { margin-top: 28px; display: grid; gap: 6px; font-size: var(--t-sm); color: var(--muted); }
.drawer__contact a { min-height: 32px; font: 500 var(--t-base)/1.3 var(--f-text); color: var(--ink); }
body.no-scroll { overflow: hidden; }

@media (max-width: 1100px) {
  .nav__menu { display: none; }
  .burger { display: grid; }
  .nav__actions { margin-left: auto; }
  .nav__actions .btn { display: none; }
  .mega { display: none; }
}
@media (min-width: 560px) and (max-width: 1100px) { .nav__actions .btn { display: inline-flex; } }

/* ---------- Hero (home) ---------- */
.hero { padding-block: clamp(40px, 6vw, 88px) clamp(48px, 6vw, 96px); position: relative; }
.hero__grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .hero__grid { grid-template-columns: 1.05fr .95fr; gap: 56px; } }
.hero__kicker { display: inline-flex; align-items: center; gap: 10px; font-size: var(--t-sm); color: var(--muted); margin-bottom: 22px; }
.hero__kicker i { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
.hero h1 { max-width: 15ch; }
.hero h1 em { font-style: normal; color: var(--purple); }
:root[data-theme="dark"] .hero h1 em { color: #A49DDB; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hero h1 em { color: #A49DDB; } }
.hero .lede { margin: 24px 0 32px; }
.hero__media { position: relative; }
.slant { clip-path: polygon(var(--slant) 0, 100% 0, 100% 100%, 0 100%); }
.hero__img { aspect-ratio: 5 / 5.4; width: 100%; object-fit: cover; background: var(--surface-2); }
.hero__note { position: absolute; left: 0; bottom: 28px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); padding: 16px 20px; max-width: 260px; font-size: var(--t-sm); line-height: 1.45; }
.hero__note b { display: block; font: 600 var(--t-md)/1.2 var(--f-display); color: var(--heading); margin-bottom: 4px; }
.hero__note::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--orange); }
@media (max-width: 959px) { .hero__note { position: static; max-width: none; margin-top: -1px; } .hero__img { aspect-ratio: 4 / 3; } }

/* Group rail under hero */
.rail { border-block: 1px solid var(--line); background: var(--bg-alt); }
.rail ul { display: grid; grid-template-columns: repeat(5, 1fr); list-style: none; margin: 0; padding: 0; }
.rail li + li { border-left: 1px solid var(--line); }
.rail li:first-child a { padding-left: 0; }
.rail a { display: block; padding: 22px 20px; text-decoration: none; height: 100%; transition: background-color .2s; }
.rail a:hover { background: var(--surface-2); }
.rail b { display: block; font: 600 var(--t-md)/1.2 var(--f-display); color: var(--heading); }
.rail span { font-size: var(--t-sm); color: var(--muted); }
@media (max-width: 900px) { .rail ul { grid-template-columns: 1fr 1fr; } .rail li:nth-child(odd) { border-left: 0; } .rail li { border-top: 1px solid var(--line); } .rail li:nth-child(-n+2) { border-top: 0; } .rail li:last-child { grid-column: 1 / -1; border-left: 0; } .rail li:nth-child(odd) a { padding-left: 0; } .rail li:nth-child(even) a { padding-left: 16px; } }

/* ---------- Facts strip ---------- */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.fact { padding: 28px 24px 4px 0; }
.fact b { display: block; font: 600 var(--t-xl)/1 var(--f-display); color: var(--heading); margin-bottom: 8px; font-variant-numeric: tabular-nums; }
.fact span { font-size: var(--t-sm); color: var(--muted); }

/* ---------- Service index (tabs + rows) ---------- */
.index { display: grid; gap: 32px; }
@media (min-width: 960px) { .index { grid-template-columns: 260px 1fr; gap: 64px; } }
.index__tabs { display: flex; flex-direction: column; gap: 2px; position: sticky; top: 100px; align-self: start; }
.index__tab { text-align: left; background: none; border: 0; border-left: 3px solid var(--line); padding: 12px 16px; cursor: pointer; display: flex; justify-content: space-between; gap: 12px; font-weight: 500; color: var(--ink-soft); transition: border-color .2s, color .2s, background-color .2s; }
.index__tab small { color: var(--muted); font-variant-numeric: tabular-nums; }
.index__tab:hover { color: var(--heading); background: var(--surface-2); }
.index__tab[aria-selected="true"] { border-left-color: var(--orange); color: var(--heading); font-weight: 600; background: var(--surface); }
@media (max-width: 959px) {
  .index__tabs { position: static; flex-direction: row; overflow-x: auto; gap: 8px; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  .index__tab { border: 1px solid var(--line); border-radius: 999px; white-space: nowrap; padding: 10px 16px; }
  .index__tab[aria-selected="true"] { border-color: var(--orange); }
}
.svc-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-strong); }
.svc-row { border-bottom: 1px solid var(--line); }
.svc-row[hidden] { display: none; }
.svc-row a { display: grid; grid-template-columns: 1fr auto; gap: 4px 24px; align-items: center; padding: 22px 4px; text-decoration: none; position: relative; }
@media (min-width: 720px) { .svc-row a { grid-template-columns: minmax(220px, 1fr) 1.2fr auto; } }
.svc-row h3 { font-size: var(--t-md); transition: color .2s; }
.svc-row p { margin: 0; color: var(--muted); font-size: var(--t-sm); grid-column: 1; }
@media (min-width: 720px) { .svc-row p { grid-column: auto; } }
.svc-row .go { grid-row: 1 / span 2; grid-column: 2; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: background-color .2s, border-color .2s, transform .25s var(--ease); }
@media (min-width: 720px) { .svc-row .go { grid-row: auto; grid-column: auto; } }
.svc-row .go svg { width: 16px; height: 16px; color: var(--heading); }
.svc-row a:hover h3 { color: var(--accent-text); }
.svc-row a:hover .go { background: var(--orange); border-color: var(--orange); transform: rotate(-45deg); }
.svc-row a:hover .go svg { color: var(--on-orange); }
.svc-row .grp { display: none; }
.index[data-filter="all"] .svc-row .grp { display: inline; font-size: var(--t-xs); color: var(--accent-text); font-weight: 600; margin-left: 10px; font-family: var(--f-text); }

/* ---------- Featured services (asymmetric) ---------- */
.feature { display: grid; gap: 24px; }
@media (min-width: 960px) { .feature { grid-template-columns: 1.35fr 1fr; grid-template-rows: auto auto; } .feature__main { grid-row: 1 / span 2; } }
.feature__main { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); }
.feature__main img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.feature__body { padding: clamp(24px, 3vw, 40px); display: grid; gap: 14px; }
.feature__body p { margin: 0; color: var(--ink-soft); }
.feature__tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 4px 0 8px; }
.feature__tags li { font-size: var(--t-xs); padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-soft); }
.feature__side { display: grid; grid-template-columns: 160px 1fr; gap: 24px; align-items: center; padding: 24px; border: 1px solid var(--line); background: var(--surface); }
.feature__side img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.feature__side h3 { font-size: var(--t-md); margin-bottom: 8px; }
.feature__side p { font-size: var(--t-sm); color: var(--muted); margin-bottom: 12px; }
@media (max-width: 520px) { .feature__side { grid-template-columns: 1fr; } .feature__side img { aspect-ratio: 16/9; } }

/* ---------- Statement band (why) ---------- */
.band { background: var(--band); color: var(--band-ink); position: relative; overflow: hidden; }
.band h2, .band h3 { color: #fff; }
.band::after { content: ""; position: absolute; right: -6%; top: 0; bottom: 0; width: 28%; background: var(--purple); opacity: .35; clip-path: polygon(40% 0, 100% 0, 100% 100%, 0 100%); pointer-events: none; }
.band .wrap { position: relative; z-index: 1; }
.why { display: grid; gap: 48px; }
@media (min-width: 960px) { .why { grid-template-columns: .9fr 1.1fr; gap: 80px; } }
.why__quote { font-family: var(--f-serif); font-style: italic; font-size: var(--t-xl); line-height: 1.25; color: #fff; margin: 0 0 28px; }
.why__quote::before { content: ""; display: block; width: 56px; height: 4px; background: var(--orange); margin-bottom: 28px; }
.why p { color: var(--band-muted); }
.why__list { list-style: none; margin: 0; padding: 0; display: grid; }
.why__list li { display: grid; grid-template-columns: 40px 1fr; gap: 4px 16px; padding: 24px 0; border-top: 1px solid rgba(255,255,255,.14); }
.why__list li:last-child { border-bottom: 1px solid rgba(255,255,255,.14); }
.why__list svg { width: 26px; height: 26px; color: var(--orange); grid-row: 1 / span 2; margin-top: 2px; }
.why__list h3 { font-size: var(--t-md); }
.why__list p { margin: 0; font-size: var(--t-sm); }

/* ---------- Capability matrix ---------- */
.matrix { border-top: 1px solid var(--line-strong); }
.matrix__row { display: grid; gap: 10px 32px; padding: 26px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 860px) { .matrix__row { grid-template-columns: 220px 1fr 1.3fr; align-items: baseline; } }
.matrix__row h3 { font-size: var(--t-md); }
.matrix__row p { margin: 0; color: var(--muted); font-size: var(--t-sm); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.chips li { font: 500 var(--t-xs)/1 var(--f-text); padding: 8px 12px; background: var(--surface-2); color: var(--ink-soft); border-radius: var(--r-sm); }

/* ---------- Industries (hover reveal) ---------- */
.ind { display: grid; gap: 40px; align-items: start; }
@media (min-width: 960px) { .ind { grid-template-columns: 1.1fr .9fr; gap: 64px; } }
.ind__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-strong); counter-reset: none; }
.ind__item { border-bottom: 1px solid var(--line); }
.ind__item button { width: 100%; display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; text-align: left; padding: 20px 4px; background: none; border: 0; cursor: pointer; }
.ind__item h3 { font-size: var(--t-lg); color: var(--muted); transition: color .2s; }
.ind__item p { margin: 0; font-size: var(--t-sm); color: var(--muted); max-height: 0; overflow: hidden; opacity: 0; transition: max-height .35s var(--ease), opacity .3s; grid-column: 1; }
.ind__item svg { width: 22px; height: 22px; color: var(--orange); opacity: 0; transition: opacity .2s, transform .25s var(--ease); align-self: center; }
.ind__item.is-active h3 { color: var(--heading); }
.ind__item.is-active p { max-height: 80px; opacity: 1; }
.ind__item.is-active svg { opacity: 1; transform: translateX(4px); }
.ind__item .ind__mimg { display: none; }
.ind__stage { position: sticky; top: 100px; aspect-ratio: 4 / 5; background: var(--surface-2); overflow: hidden; }
.ind__stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.04); transition: opacity .45s var(--ease), transform .8s var(--ease); }
.ind__stage img.is-on { opacity: 1; transform: none; }
.ind__stage figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 20px; background: linear-gradient(transparent, rgba(23,21,31,.82)); color: #fff; font-size: var(--t-sm); }
@media (max-width: 959px) {
  .ind__stage { display: none; }
  .ind__item .ind__mimg { display: block; aspect-ratio: 16 / 9; object-fit: cover; width: 100%; margin: 4px 0 20px; }
  .ind__item:not(.is-active) .ind__mimg { display: none; }
}

/* ---------- Work (browser frames) ---------- */
.work { display: grid; gap: 28px; align-items: start; }
@media (min-width: 900px) { .work { grid-template-columns: repeat(12, 1fr); } .work__item:nth-child(1) { grid-column: span 7; } .work__item:nth-child(2) { grid-column: span 5; } .work__item:nth-child(3) { grid-column: 3 / span 8; } }
.work__item { display: grid; gap: 16px; }
.frame { border: 1px solid var(--line-strong); border-radius: var(--r-md); overflow: hidden; background: var(--surface); box-shadow: var(--shadow); transition: transform .4s var(--ease); }
.work__item:hover .frame { transform: translateY(-4px); }
.frame__bar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.frame__bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.frame__bar span { margin-left: 10px; font-size: 11px; color: var(--muted); }
.frame__screen { aspect-ratio: 16 / 10; display: grid; place-items: center; text-align: center; padding: 24px; background: repeating-linear-gradient(-45deg, var(--surface) 0 14px, var(--surface-2) 14px 15px); color: var(--muted); font-size: var(--t-sm); }
.frame__screen b { display: block; font: 600 var(--t-md)/1.2 var(--f-display); color: var(--heading); margin-bottom: 4px; }
.placeholder-tag { display: inline-block; font: 600 11px/1 var(--f-text); letter-spacing: .02em; color: var(--accent-text); border: 1px dashed currentColor; padding: 5px 8px; border-radius: var(--r-sm); }
.work__meta h3 { font-size: var(--t-md); margin: 6px 0 4px; }
.work__meta p { margin: 0; color: var(--muted); font-size: var(--t-sm); }

/* ---------- Process (real sequence) ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: step; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { counter-increment: step; padding: 28px 28px 8px 0; position: relative; border-top: 2px solid var(--line-strong); }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; width: 48px; margin-top: -30px; padding-top: 14px; box-shadow: inset 0 2px 0 var(--orange); font: 600 var(--t-sm)/1 var(--f-display); color: var(--accent-text); }
.steps h3 { font-size: var(--t-md); margin: 14px 0 8px; }
.steps p { margin: 0; color: var(--muted); font-size: var(--t-sm); }
@media (max-width: 899px) { .steps li { padding-bottom: 28px; } }

/* ---------- Insights ---------- */
.posts { display: grid; gap: 32px; }
@media (min-width: 900px) { .posts { grid-template-columns: 1.4fr 1fr 1fr; } }
.post { display: grid; gap: 14px; align-content: start; text-decoration: none; }
.post img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; transition: filter .3s; }
.post:hover img { filter: brightness(.92); }
.post__meta { font-size: var(--t-xs); color: var(--muted); display: flex; gap: 12px; }
.post__meta b { color: var(--accent-text); font-weight: 600; }
.post h3 { font-size: var(--t-md); transition: color .2s; }
.post:first-child h3 { font-size: var(--t-lg); }
.post:hover h3 { text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; }
.post p { margin: 0; color: var(--muted); font-size: var(--t-sm); }

/* ---------- CTA block ---------- */
.cta { background: var(--orange); color: var(--on-orange); position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; left: -4%; top: 0; bottom: 0; width: 22%; background: rgba(255,255,255,.12); clip-path: polygon(0 0, 60% 0, 100% 100%, 0 100%); }
.cta .wrap { position: relative; display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .cta .wrap { grid-template-columns: 1.2fr 1fr; gap: 72px; } }
.cta h2 { color: #1E1A2C; font-size: var(--t-2xl); max-width: 14ch; }
.cta p { font-size: var(--t-md); margin: 18px 0 0; max-width: 46ch; color: #2E2638; }
.cta__ways { display: grid; gap: 0; background: #fff; color: #221E33; border-radius: var(--r-md); overflow: hidden; box-shadow: 0 20px 40px -20px rgba(60,30,0,.45); }
.cta__ways a { display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: center; padding: 18px 22px; text-decoration: none; border-bottom: 1px solid #ECEAF2; transition: background-color .2s; }
.cta__ways a:last-child { border-bottom: 0; }
.cta__ways a:hover { background: #F6F6F9; }
.cta__ways .ic { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #EEEDF4; color: #4B4579; }
.cta__ways .ic svg { width: 20px; height: 20px; }
.cta__ways b { display: block; font-weight: 600; font-size: var(--t-base); color: #2E2950; }
.cta__ways span { font-size: var(--t-sm); color: #6B6680; }
.cta__ways .arr { width: 18px; color: #4B4579; }
.cta__ways a.primary { background: #2E2950; }
.cta__ways a.primary b { color: #fff; } .cta__ways a.primary span { color: #C7C2E0; }
.cta__ways a.primary .ic { background: var(--orange); color: #1E1A2C; }
.cta__ways a.primary .arr { color: #fff; }
.cta__ways a.primary:hover { background: #3A3463; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--line); padding-top: clamp(56px, 6vw, 88px); font-size: var(--t-sm); }
.foot { display: grid; gap: 40px; }
@media (min-width: 1000px) { .foot { grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; } }
@media (min-width: 640px) and (max-width: 999px) { .foot { grid-template-columns: repeat(2, 1fr); } .foot__brand { grid-column: 1 / -1; } }
.foot__brand .brand { margin-bottom: 18px; }
.foot__brand p { color: var(--muted); max-width: 34ch; }
.foot__contact { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.foot__contact a, .foot__contact span { display: inline-flex; gap: 10px; align-items: flex-start; text-decoration: none; color: var(--ink); }
.foot__contact a:hover { color: var(--accent-text); }
.foot__contact svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--muted); }
.foot h3 { font: 600 var(--t-sm)/1 var(--f-text); color: var(--heading); margin-bottom: 16px; }
.foot ul.links { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.foot ul.links a { display: inline-block; padding: 4px 0; text-decoration: none; color: var(--muted); }
.foot ul.links a:hover { color: var(--heading); text-decoration: underline; text-decoration-color: var(--orange); }
.foot__bottom { margin-top: 56px; padding-block: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; color: var(--muted); }
.social { display: flex; gap: 8px; }
.social a { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--ink-soft); }
.social a:hover { border-color: var(--orange); color: var(--accent-text); }
.social svg { width: 17px; height: 17px; }

/* ---------- Floating actions ---------- */
.fab-wa { position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 56px; height: 56px; border-radius: 50%; background: #25D366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px -8px rgba(0,0,0,.4); transition: transform .25s var(--ease); }
.fab-wa:hover { transform: scale(1.06); }
.fab-wa svg { width: 28px; height: 28px; }
.to-top { position: fixed; right: 26px; bottom: 88px; z-index: 90; width: 44px; height: 44px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line-strong); color: var(--heading); display: grid; place-items: center; cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .25s, transform .25s var(--ease), visibility 0s .25s; }
.to-top.is-on { opacity: 1; visibility: visible; transform: none; transition: opacity .25s, transform .25s var(--ease); }
.to-top svg { width: 18px; height: 18px; }

/* ---------- Breadcrumb ---------- */
.crumbs { font-size: var(--t-sm); color: var(--muted); margin-bottom: 24px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--line-strong); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--heading); text-decoration: underline; }

/* ---------- Service page ---------- */
.s-hero { padding-block: clamp(32px, 5vw, 64px) 0; }
.s-hero__grid { display: grid; gap: 40px; align-items: end; }
@media (min-width: 960px) { .s-hero__grid { grid-template-columns: 1.1fr .9fr; gap: 64px; } }
.s-hero__grp { display: inline-flex; gap: 8px; align-items: center; font-size: var(--t-sm); font-weight: 600; color: var(--accent-text); text-decoration: none; margin-bottom: 18px; }
.s-hero h1 { max-width: 16ch; }
.s-hero .lede { margin: 22px 0 30px; }
.s-hero__aside { border-left: 3px solid var(--orange); padding: 6px 0 6px 24px; display: grid; gap: 18px; }
.s-hero__aside dl { margin: 0; display: grid; gap: 14px; }
.s-hero__aside dt { font-size: var(--t-xs); color: var(--muted); }
.s-hero__aside dd { margin: 2px 0 0; font: 600 var(--t-md)/1.3 var(--f-display); color: var(--heading); }
.s-hero__img { margin-top: clamp(40px, 5vw, 64px); width: 100%; aspect-ratio: 21 / 8; object-fit: cover; background: var(--surface-2); }
@media (max-width: 700px) { .s-hero__img { aspect-ratio: 4 / 3; } }

.split { display: grid; gap: 40px; }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1fr; gap: 80px; } }
.prose p { color: var(--ink-soft); max-width: 62ch; }
.prose p:first-of-type { font-size: var(--t-md); line-height: 1.55; color: var(--ink); }

.problems { display: grid; gap: 0; border: 1px solid var(--line); background: var(--surface); }
@media (min-width: 860px) { .problems { grid-template-columns: 1fr 1fr; } }
.problems > div { padding: clamp(24px, 3vw, 40px); }
.problems > div + div { border-top: 1px solid var(--line); }
@media (min-width: 860px) { .problems > div + div { border-top: 0; border-left: 1px solid var(--line); } }
.problems h3 { font-size: var(--t-md); margin-bottom: 18px; display: flex; gap: 10px; align-items: center; }
.problems h3 svg { width: 22px; height: 22px; }
.problems .pain svg { color: var(--muted); }
.problems .gain { background: var(--bg-alt); }
.problems .gain svg { color: var(--orange); }
.problems ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.problems li { padding-left: 22px; position: relative; color: var(--ink-soft); }
.problems .pain li::before { content: ""; position: absolute; left: 0; top: .72em; width: 10px; height: 1.5px; background: var(--muted); }
.problems .gain li::before { content: ""; position: absolute; left: 0; top: .5em; width: 10px; height: 6px; border-left: 2px solid var(--orange); border-bottom: 2px solid var(--orange); transform: rotate(-45deg); }

.caps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); border-top: 1px solid var(--line-strong); border-left: 1px solid var(--line); }
.cap { padding: 28px 28px 32px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; gap: 10px; align-content: start; transition: background-color .25s; }
.cap:hover { background: var(--surface); }
.cap svg { width: 30px; height: 30px; color: var(--purple); }
:root[data-theme="dark"] .cap svg { color: #A49DDB; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cap svg { color: #A49DDB; } }
.cap h3 { font-size: var(--t-md); }
.cap p { margin: 0; color: var(--muted); font-size: var(--t-sm); }

.benefits { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .benefits { grid-template-columns: .95fr 1.05fr; gap: 72px; } }
.benefits__img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.benefits dl { margin: 0; display: grid; gap: 0; }
.benefits dl > div { padding: 20px 0; border-bottom: 1px solid var(--line); display: grid; gap: 4px; }
.benefits dl > div:first-child { border-top: 1px solid var(--line); }
.benefits dt { font: 600 var(--t-md)/1.3 var(--f-display); color: var(--heading); }
.benefits dd { margin: 0; color: var(--muted); font-size: var(--t-sm); }

.apps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 24px; }
.app { position: relative; overflow: hidden; min-height: 280px; display: flex; align-items: flex-end; color: #fff; text-decoration: none; background: #2E2950; }
.app img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.app::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(23,21,31,.05) 30%, rgba(23,21,31,.88)); }
.app:hover img { transform: scale(1.04); }
.app div { position: relative; z-index: 1; padding: 22px; }
.app h3 { color: #fff; font-size: var(--t-md); margin-bottom: 6px; }
.app p { margin: 0; font-size: var(--t-sm); color: #E4E1EF; }

.faq { display: grid; gap: 40px; }
@media (min-width: 960px) { .faq { grid-template-columns: .8fr 1.2fr; gap: 80px; } }
.acc { border-top: 1px solid var(--line-strong); }
.acc__item { border-bottom: 1px solid var(--line); }
.acc__item h3 { font-size: inherit; }
.acc__btn { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; background: none; border: 0; cursor: pointer; text-align: left; font: 600 var(--t-md)/1.35 var(--f-display); color: var(--heading); }
.acc__btn .pm { flex: none; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line-strong); position: relative; transition: background-color .2s, border-color .2s; }
.acc__btn .pm::before, .acc__btn .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: var(--heading); transform: translate(-50%, -50%); transition: transform .25s var(--ease); }
.acc__btn .pm::after { transform: translate(-50%, -50%) rotate(90deg); }
.acc__btn[aria-expanded="true"] .pm { background: var(--orange); border-color: var(--orange); }
.acc__btn[aria-expanded="true"] .pm::before, .acc__btn[aria-expanded="true"] .pm::after { background: var(--on-orange); }
.acc__btn[aria-expanded="true"] .pm::after { transform: translate(-50%, -50%) rotate(0); }
.acc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s var(--ease); }
.acc__panel > div { overflow: hidden; }
.acc__panel p { margin: 0 0 24px; color: var(--ink-soft); max-width: 64ch; }
.acc__item.is-open .acc__panel { grid-template-rows: 1fr; }

.enquire { display: grid; gap: 40px; background: var(--surface); border: 1px solid var(--line); padding: clamp(28px, 4vw, 56px); position: relative; }
.enquire::before { content: ""; position: absolute; left: 0; top: 0; width: 120px; height: 4px; background: var(--orange); }
@media (min-width: 960px) { .enquire { grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; } }
.enquire h2 { margin-bottom: 14px; }
.enquire p { color: var(--ink-soft); }
.enquire__direct { display: grid; gap: 10px; margin-top: 24px; }
.enquire__direct a { display: inline-flex; gap: 10px; align-items: center; text-decoration: none; font-weight: 500; }
.enquire__direct a:hover { color: var(--accent-text); }
.enquire__direct svg { width: 18px; height: 18px; color: var(--muted); }

/* Forms */
.form { display: grid; gap: 18px; }
.form .row { display: grid; gap: 18px; }
@media (min-width: 600px) { .form .row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; }
.field label { font-size: var(--t-sm); font-weight: 600; color: var(--heading); }
.field label .req { color: var(--accent-text); }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 12px 14px; background: var(--bg); border: 1px solid var(--line-strong); border-radius: var(--r-sm); transition: border-color .2s, box-shadow .2s; }
.field textarea { min-height: 128px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--orange); box-shadow: 0 0 0 3px color-mix(in srgb, var(--orange) 25%, transparent); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #D93B3B; }
.field .err { font-size: var(--t-xs); color: #D93B3B; min-height: 0; }
:root[data-theme="dark"] .field .err { color: #FF7A7A; }
.form__note { font-size: var(--t-xs); color: var(--muted); margin: 0; }
.form__status { padding: 14px 16px; border-radius: var(--r-sm); font-size: var(--t-sm); display: none; }
.form__status.ok { display: block; background: color-mix(in srgb, #2EA66B 14%, transparent); border: 1px solid #2EA66B; }
.form__status.bad { display: block; background: color-mix(in srgb, #D93B3B 12%, transparent); border: 1px solid #D93B3B; }
.hp { position: absolute; left: -9999px; }

.related { display: grid; gap: 0; border-top: 1px solid var(--line-strong); }
@media (min-width: 860px) { .related { grid-template-columns: repeat(3, 1fr); } }
.related a { padding: 24px 24px 28px 0; text-decoration: none; display: grid; gap: 8px; border-bottom: 1px solid var(--line); }
@media (min-width: 860px) { .related a { border-bottom: 0; } .related a + a { padding-left: 24px; border-left: 1px solid var(--line); } }
.related small { color: var(--accent-text); font-weight: 600; font-size: var(--t-xs); }
.related h3 { font-size: var(--t-md); }
.related p { margin: 0; color: var(--muted); font-size: var(--t-sm); }
.related a:hover h3 { text-decoration: underline; text-decoration-color: var(--orange); }

/* ---------- Reveal (one subtle, consistent entrance) ---------- */
.js .reveal { opacity: .35; transform: translateY(12px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .img-reveal { opacity: .4; transform: scale(1.015); transition: opacity .9s var(--ease), transform 1.1s var(--ease); }
.js .img-reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js .img-reveal { opacity: 1; transform: none; }
}

@media print { .site-header, .fab-wa, .to-top, .drawer { display: none !important; } }
.nav__menu button.is-current { color: var(--heading); box-shadow: inset 0 -2px 0 var(--orange); }

/* Desktop header: logo left, menu centred, theme switch + quote button in the right corner */
@media (min-width: 1101px) {
  .nav { display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; }
  .nav .brand { justify-self: start; }
  .nav > nav { justify-self: center; }
  .nav__menu { margin: 0; }
  .nav__actions { justify-self: end; }
}

/* ==========================================================================
   Phase 4: shared utilities
   ========================================================================== */
html { scroll-padding-top: 150px; }
.head--flush { margin-bottom: 0; }
.head--gap { margin-top: clamp(48px, 6vw, 80px); }
.head--light h2 { color: #fff; }
.head--light p { color: var(--band-muted); }
.sec--flush-top { padding-top: 0; }
.sec--tight-top { padding-top: clamp(32px, 4vw, 56px); }
.after-link { margin: 40px 0 0; }
.index + .facts { margin-top: 56px; }
.matrix--gap { margin-top: 64px; }
.wa-green { color: #25D366 !important; }
.mega__col h3 a { text-decoration: none; color: inherit; }
.mega__col h3 a:hover { text-decoration: underline; }
.foot__h-gap { margin-top: 28px; }
.foot__legal { display: flex; flex-wrap: wrap; gap: 20px; }
.foot__legal a { text-decoration: none; }
.foot__legal a:hover { color: var(--heading); text-decoration: underline; }
.band .crumbs, .band .crumbs a { color: var(--band-muted); }
.band h1 { color: #fff; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--heading); font-weight: 600; text-decoration: underline; text-decoration-color: var(--orange); cursor: pointer; }
.empty { padding: 48px 0; text-align: center; color: var(--muted); }
mark.ph { background: color-mix(in srgb, var(--orange) 22%, transparent); color: inherit; padding: 1px 4px; border-radius: 2px; }

/* Phone mockup */
.device { width: 100%; max-width: 240px; margin-inline: auto; aspect-ratio: 9 / 18.5; border: 9px solid var(--heading); border-radius: 30px; background: var(--surface); box-shadow: var(--shadow); overflow: hidden; position: relative; }
.device::before { content: ""; position: absolute; top: 8px; left: 50%; width: 34%; height: 14px; transform: translateX(-50%); border-radius: 10px; background: var(--heading); z-index: 1; }
.device__screen { height: 100%; display: grid; place-items: center; text-align: center; padding: 20px; background: repeating-linear-gradient(-45deg, var(--surface) 0 14px, var(--surface-2) 14px 15px); color: var(--muted); font-size: var(--t-xs); }
.device__screen b { display: block; font: 600 var(--t-base)/1.2 var(--f-display); color: var(--heading); margin-bottom: 4px; }
.work__item--phone { align-content: start; }

/* ==========================================================================
   Service page variants
   ========================================================================== */
/* Capability list (alternative to grid) */
.caplist { list-style: none; margin: 0; padding: 0; display: grid; gap: 0 48px; border-top: 1px solid var(--line-strong); }
@media (min-width: 860px) { .caplist { grid-template-columns: 1fr 1fr; } }
.caplist li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.caplist svg { width: 28px; height: 28px; color: var(--orange); margin-top: 2px; }
.caplist h3 { font-size: var(--t-md); margin-bottom: 6px; }
.caplist p { margin: 0; color: var(--muted); font-size: var(--t-sm); }

/* Benefits reversed */
@media (min-width: 960px) { .benefits--rev { grid-template-columns: 1.05fr .95fr; } .benefits--rev .benefits__img { order: 2; } }
.slant-r { clip-path: polygon(0 0, 100% 0, calc(100% - var(--slant)) 100%, 0 100%); }

/* Flow diagram */
.flow { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; }
@media (min-width: 900px) { .flow { grid-template-columns: repeat(4, 1fr); gap: 36px; } }
.flow li { position: relative; display: grid; gap: 8px; align-content: start; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--purple); }
.flow li:last-child { border-top-color: var(--orange); }
.flow li b { font: 600 var(--t-md)/1.25 var(--f-display); color: var(--heading); }
.flow li > span:last-child { color: var(--muted); font-size: var(--t-sm); line-height: 1.5; }
.flow__n { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font: 600 var(--t-sm)/1 var(--f-display); background: var(--surface-2); color: var(--heading); }
.flow li:not(:last-child)::after { content: ""; position: absolute; left: 50%; bottom: -21px; width: 12px; height: 12px; border-right: 2px solid var(--orange); border-bottom: 2px solid var(--orange); transform: translateX(-50%) rotate(45deg); }
@media (min-width: 900px) { .flow li:not(:last-child)::after { left: auto; right: -25px; bottom: auto; top: 50%; transform: translateY(-50%) rotate(-45deg); } }
.flow--dark li { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.14); border-top-color: #8C85C9; }
.flow--dark li:last-child { border-top-color: var(--orange); }
.flow--dark li b { color: #fff; }
.flow--dark li > span:last-child { color: var(--band-muted); }
.flow--dark .flow__n { background: rgba(255,255,255,.1); color: #fff; }

/* Challenge rows */
.crow__head { display: none; }
@media (min-width: 860px) { .crow__head { display: grid; grid-template-columns: 1fr 48px 1fr; gap: 24px; font-size: var(--t-xs); font-weight: 600; color: var(--accent-text); padding-bottom: 10px; } }
.crow { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-strong); }
.crow li { display: grid; gap: 6px 24px; padding: 22px 0; border-bottom: 1px solid var(--line); align-items: center; }
@media (min-width: 860px) { .crow li { grid-template-columns: 1fr 48px 1fr; } }
.crow__pain { margin: 0; color: var(--muted); }
.crow__gain { margin: 0; color: var(--heading); font-weight: 500; }
.crow__arrow { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--orange) 16%, transparent); color: var(--accent-text); }
.crow__arrow svg { width: 16px; height: 16px; }
@media (max-width: 859px) { .crow__arrow { transform: rotate(90deg); width: 28px; height: 28px; } }

/* Vertical timeline */
.tl-wrap { display: grid; gap: 48px; }
@media (min-width: 960px) { .tl-wrap { grid-template-columns: 1.1fr .9fr; gap: 72px; } .tl__aside { position: sticky; top: 110px; align-self: start; } }
.tl { list-style: none; margin: 0; padding: 0; position: relative; }
.tl::before { content: ""; position: absolute; left: 19px; top: 8px; bottom: 8px; width: 2px; background: var(--line-strong); }
.tl li { display: grid; grid-template-columns: 40px 1fr; gap: 20px; padding-bottom: 32px; position: relative; }
.tl li:last-child { padding-bottom: 0; }
.tl__n { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); border: 2px solid var(--orange); font: 600 var(--t-sm)/1 var(--f-display); color: var(--accent-text); position: relative; }
.sec--alt .tl__n { background: var(--bg-alt); }
.tl h3 { font-size: var(--t-md); margin: 6px 0 6px; }
.tl p { margin: 0; color: var(--muted); }
.tl__aside img { aspect-ratio: 9 / 7; object-fit: cover; width: 100%; margin-bottom: 24px; }
.tl__aside h3 { font-size: var(--t-base); margin-bottom: 12px; }

/* Industry list */
.indlist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-strong); }
.indlist a { display: grid; grid-template-columns: 1fr auto; gap: 4px 20px; padding: 20px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.indlist h3 { font-size: var(--t-md); }
.indlist p { margin: 0; color: var(--muted); font-size: var(--t-sm); grid-column: 1; }
.indlist .go { grid-row: 1 / span 2; grid-column: 2; align-self: center; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; transition: background-color .2s, border-color .2s; }
.indlist .go svg { width: 15px; height: 15px; color: var(--heading); }
.indlist a:hover h3 { color: var(--accent-text); }
.indlist a:hover .go { background: var(--orange); border-color: var(--orange); }

/* Tabs */
.tabs__list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.tabs__list button, .chip { display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: 999px; background: transparent; color: var(--ink-soft); font: 500 var(--t-sm)/1 var(--f-text); cursor: pointer; text-decoration: none; white-space: nowrap; transition: border-color .2s, background-color .2s, color .2s; }
.tabs__list button:hover, .chip:hover { border-color: var(--heading); color: var(--heading); }
.tabs__list button[aria-selected="true"], .chip[aria-pressed="true"] { background: var(--heading); border-color: var(--heading); color: var(--bg); }
.tabs__panel { display: grid; gap: 32px; align-items: center; }
@media (min-width: 860px) { .tabs__panel { grid-template-columns: 1.1fr .9fr; gap: 56px; } }
.tabs__panel img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.tabs__panel h3 { font-size: var(--t-lg); margin-bottom: 12px; }
.tabs__panel p { color: var(--ink-soft); font-size: var(--t-md); line-height: 1.55; }

/* Hero: split (Cloud & Data) */
.s-split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .s-split { grid-template-columns: 1.05fr .95fr; gap: 64px; } }
.s-split h1 { max-width: 15ch; }
.s-split .lede { margin: 22px 0 30px; }
.s-split__img { aspect-ratio: 10 / 10.5; object-fit: cover; width: 100%; max-height: 560px; }
@media (max-width: 959px) { .s-split__img { aspect-ratio: 4 / 3; } }
.factstrip { margin-top: clamp(40px, 5vw, 64px); background: var(--bg-alt); border-block: 1px solid var(--line); }
.factstrip dl { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.factstrip dl > div { padding: 24px 24px 24px 0; }
.factstrip dl > div + div { border-left: 1px solid var(--line); padding-left: 24px; }
@media (max-width: 680px) { .factstrip dl > div + div { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); } }
.factstrip dt { font-size: var(--t-xs); color: var(--muted); }
.factstrip dd { margin: 4px 0 0; font: 600 var(--t-md)/1.3 var(--f-display); color: var(--heading); }
.factstrip--plain { background: transparent; border-top: 0; margin-top: 0; }

/* Hero: band (AI & Automation) */
.s-hero--band { padding-block: clamp(32px, 5vw, 56px) clamp(56px, 7vw, 96px); }
.s-band { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .s-band { grid-template-columns: 1.1fr .9fr; gap: 64px; } }
.s-band h1 { max-width: 16ch; }
.s-band .lede { color: var(--band-muted); margin: 22px 0 30px; }
.s-band .s-hero__grp { color: #F89A4E; }
.s-band__facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 20px; margin: 40px 0 0; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.16); }
.s-band__facts dt { font-size: var(--t-xs); color: var(--band-muted); }
.s-band__facts dd { margin: 4px 0 0; font: 600 var(--t-base)/1.3 var(--f-display); color: #fff; }
.s-band__fig { margin: 0; position: relative; }
.s-band__fig::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 2px solid var(--orange); }
.s-band__fig img { position: relative; aspect-ratio: 4 / 5; object-fit: cover; width: 100%; max-height: 560px; }
@media (max-width: 959px) { .s-band__fig img { aspect-ratio: 4 / 3; } .s-band__fig::before { inset: 12px -10px -12px 10px; } }

/* Hero: funnel (Marketing & Growth) */
.s-funnel { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .s-funnel { grid-template-columns: 1.05fr .95fr; gap: 64px; } }
.s-funnel h1 { max-width: 15ch; }
.s-funnel .lede { margin: 22px 0 30px; }
.funnel-fig { margin: 0; }
.funnel { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.funnel li { width: var(--w); margin-inline: auto; padding: 18px 28px; text-align: center; clip-path: polygon(0 0, 100% 0, calc(100% - 18px) 100%, 18px 100%); display: grid; gap: 2px; }
.funnel li b { font: 600 var(--t-md)/1.2 var(--f-display); }
.funnel li span { font-size: var(--t-xs); line-height: 1.4; }
.funnel li:nth-child(1) { background: color-mix(in srgb, var(--purple) 14%, var(--surface)); color: var(--heading); }
.funnel li:nth-child(2) { background: color-mix(in srgb, var(--purple) 32%, var(--surface)); color: var(--heading); }
.funnel li:nth-child(3) { background: var(--purple); color: #fff; }
.funnel li:nth-child(4) { background: var(--orange); color: var(--on-orange); }
.funnel li:nth-child(1) span, .funnel li:nth-child(2) span { color: var(--ink-soft); }
@media (max-width: 520px) { .funnel li { width: 100% !important; clip-path: none; padding: 14px 16px; } }
.wideimg { margin-top: clamp(40px, 5vw, 64px); width: 100%; aspect-ratio: 21 / 7; object-fit: cover; }
@media (max-width: 700px) { .wideimg { aspect-ratio: 16 / 9; } }

/* Hero: editorial (Advisory) */
.s-hero--editorial h1 { font-size: clamp(2.5rem, 1.6rem + 3.6vw, 4.5rem); max-width: 18ch; margin-bottom: 32px; }
.s-ed { display: grid; gap: 32px; }
@media (min-width: 960px) { .s-ed { grid-template-columns: 1.15fr .85fr; gap: 72px; } }
.s-ed__lede { font-family: var(--f-serif); font-style: italic; font-size: var(--t-lg); line-height: 1.4; color: var(--ink-soft); margin: 0; max-width: 40ch; }
.s-ed__facts { margin: 0 0 28px; display: grid; gap: 14px; border-left: 3px solid var(--orange); padding-left: 20px; }
.s-ed__facts dt { font-size: var(--t-xs); color: var(--muted); }
.s-ed__facts dd { margin: 2px 0 0; font: 600 var(--t-md)/1.3 var(--f-display); color: var(--heading); }

/* ==========================================================================
   Listing pages
   ========================================================================== */
.page-hero { padding-block: clamp(32px, 5vw, 64px) clamp(32px, 4vw, 48px); }
.page-hero__grid { display: grid; gap: 20px 64px; align-items: end; }
@media (min-width: 960px) { .page-hero__grid { grid-template-columns: 1fr 1fr; } }
.page-hero__grid .lede { margin: 0; }
.page-hero h1 { max-width: 18ch; }

.filterbar { position: sticky; top: calc(76px + env(safe-area-inset-top, 0px)); z-index: 40; background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-block: 1px solid var(--line); }
.filterbar .wrap { padding-block: 12px; }
.filterbar__row { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; }
.chips-row { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; min-width: 0; max-width: 100%; }
.chips-row::-webkit-scrollbar { display: none; }
@media (max-width: 700px) { .chips-row { margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); } .filterbar__row > * { width: 100%; } }
.selectlabel select, .searchbox input { min-height: 42px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); padding: 0 16px; font-size: var(--t-sm); }
.selectlabel select { padding-right: 36px; }
.searchbox { position: relative; display: inline-flex; }
.searchbox svg { position: absolute; left: 14px; top: 50%; width: 17px; height: 17px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.searchbox input { padding-left: 40px; width: 100%; min-width: 240px; }
.searchbox input:focus, .selectlabel select:focus { outline: 0; border-color: var(--orange); box-shadow: 0 0 0 3px color-mix(in srgb, var(--orange) 25%, transparent); }

/* Services landing groups */
.grps { display: grid; gap: clamp(56px, 7vw, 96px); }
.grp { display: grid; gap: 32px; align-items: start; scroll-margin-top: 150px; }
.grp[hidden] { display: none; }
@media (min-width: 960px) { .grp { grid-template-columns: 380px 1fr; gap: 64px; } .grp__side { position: sticky; top: 150px; } }
.grp__side img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; margin-bottom: 24px; }
.grp__side h2 { margin-bottom: 12px; }
.grp__side p { color: var(--ink-soft); }
.grp__count { font-size: var(--t-sm); font-weight: 600; color: var(--accent-text); }
.svc-list--grp .svc-row a { grid-template-columns: 1fr auto; }
@media (min-width: 720px) { .svc-list--grp .svc-row a { grid-template-columns: minmax(200px, .9fr) 1.2fr auto; } }

/* About */
.page-hero--about h1 { max-width: 20ch; margin-bottom: 28px; }
.about-hero { display: grid; gap: 24px 64px; align-items: end; }
@media (min-width: 960px) { .about-hero { grid-template-columns: 1.3fr .7fr; } .about-hero .btn-row { justify-content: flex-end; } }
.about-hero .lede { margin: 0; }
.mv { display: grid; gap: 0; border-top: 1px solid var(--line-strong); }
@media (min-width: 860px) { .mv { grid-template-columns: 1fr 1fr; } .mv__item + .mv__item { border-left: 1px solid var(--line); padding-left: 48px; } }
.mv__item { padding: 32px 48px 24px 0; }
.mv__label { display: block; font-size: var(--t-sm); font-weight: 600; color: var(--accent-text); margin-bottom: 14px; }
.mv__text { font-family: var(--f-serif); font-style: italic; font-size: var(--t-xl); line-height: 1.25; color: var(--heading); margin: 0; max-width: 22ch; }
.values { list-style: none; margin: 0; padding: 0; display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.values li { border-top: 3px solid var(--orange); padding-top: 18px; }
.values h3 { font-size: var(--t-md); margin-bottom: 8px; }
.values p { margin: 0; color: var(--muted); font-size: var(--t-sm); }
.pillars { display: grid; gap: 0; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); border-top: 1px solid var(--line-strong); border-left: 1px solid var(--line); }
.pillar { padding: 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pillar h3 { font-size: var(--t-lg); margin-bottom: 8px; }
.pillar p { color: var(--muted); font-size: var(--t-sm); }
.pillar ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pillar a { font-size: var(--t-sm); font-weight: 500; text-decoration: none; color: var(--heading); border-bottom: 1px solid var(--line-strong); }
.pillar a:hover { border-bottom-color: var(--orange); }
.team { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.member { margin: 0; display: grid; gap: 14px; }
.member__photo { aspect-ratio: 4 / 5; border: 1.5px dashed var(--line-strong); background: var(--surface); display: grid; place-items: center; align-content: center; gap: 8px; color: var(--muted); font-size: var(--t-xs); }
.member__photo svg { width: 40px; height: 40px; }
.member figcaption { display: grid; gap: 2px; }
.member b { font: 600 var(--t-md)/1.2 var(--f-display); color: var(--heading); }
.member span { font-size: var(--t-sm); color: var(--ink-soft); }
.member small { font-size: var(--t-xs); color: var(--muted); }
.locbox { display: grid; gap: 14px; }
.locbox p { display: flex; gap: 12px; margin: 0; align-items: flex-start; }
.locbox svg { width: 20px; height: 20px; flex: none; color: var(--orange); margin-top: 3px; }
.locbox a:not(.link) { text-decoration: none; }

/* Industries */
.filterbar--anchors .chip { min-height: 38px; }
.sectors { display: grid; gap: clamp(56px, 7vw, 104px); }
.sector { display: grid; gap: 32px; align-items: center; scroll-margin-top: 150px; }
@media (min-width: 960px) { .sector { grid-template-columns: .9fr 1.1fr; gap: 64px; } .sector--rev .sector__img { order: 2; } .sector--rev { grid-template-columns: 1.1fr .9fr; } }
.sector__img { aspect-ratio: 9 / 7; object-fit: cover; width: 100%; }
.sector__body h2 { margin-bottom: 10px; }
.sector__lede { font-size: var(--t-md); color: var(--ink-soft); }
.sector__cols { display: grid; gap: 24px; margin: 24px 0; padding-block: 24px; border-block: 1px solid var(--line); }
@media (min-width: 600px) { .sector__cols { grid-template-columns: 1fr 1fr; } }
.sector__cols h3 { font: 600 var(--t-sm)/1.3 var(--f-text); color: var(--accent-text); margin-bottom: 10px; }
.sector__cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: var(--t-sm); color: var(--ink-soft); }
.sector__cols li { padding-left: 18px; position: relative; }
.sector__cols li::before { content: ""; position: absolute; left: 0; top: .7em; width: 8px; height: 1.5px; background: var(--muted); }
.sector__cols .ticks li::before { top: .45em; width: 8px; height: 5px; background: none; border-left: 2px solid var(--orange); border-bottom: 2px solid var(--orange); transform: rotate(-45deg); }
.sector__svc { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; font-size: var(--t-sm); }
.sector__svc span { color: var(--muted); }
.sector__svc a { font-weight: 600; color: var(--heading); text-decoration: none; border-bottom: 1.5px solid var(--orange); }
.table-wrap { position: relative; overflow-x: auto; border: 1px solid var(--line); background: var(--surface); }
.maptable { width: 100%; border-collapse: collapse; min-width: 640px; font-size: var(--t-sm); }
.maptable th, .maptable td { padding: 14px 18px; border-bottom: 1px solid var(--line); text-align: center; }
.maptable thead th { font: 600 var(--t-sm)/1.3 var(--f-text); color: var(--heading); background: var(--surface-2); }
.maptable th[scope="row"], .maptable thead th:first-child { text-align: left; }
.maptable th[scope="row"] a { color: var(--heading); text-decoration: none; font-weight: 600; }
.maptable tr:last-child > * { border-bottom: 0; }
.maptable .yes { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: color-mix(in srgb, var(--orange) 18%, transparent); color: var(--accent-text); }
.maptable .yes svg { width: 15px; height: 15px; }
.maptable .no { color: var(--line-strong); }
.values--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }

/* Portfolio */
.pfgrid { display: grid; gap: 40px 28px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); }
.pf[hidden] { display: none; }
.pf { display: grid; gap: 16px; align-content: start; }
.pf__open { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; text-align: inherit; border-radius: var(--r-md); }
.pf__open .frame { transition: transform .35s var(--ease), box-shadow .35s; }
.pf__open:hover .frame, .pf__open:focus-visible .frame { transform: translateY(-4px); }
.pf--phone .pf__open { aspect-ratio: 16 / 11.4; background: var(--surface-2); display: grid; place-items: center; padding: 18px; border: 1px solid var(--line); }
.pf--phone .device { height: 100%; width: auto; max-width: none; transition: transform .35s var(--ease); }
.pf--phone .pf__open:hover .device { transform: translateY(-4px); }
.pf__tags { display: flex; gap: 12px; font-size: var(--t-xs); color: var(--muted); }
.pf__tags b { color: var(--accent-text); font-weight: 600; }
.pf__meta h3 { font-size: var(--t-md); margin: 6px 0 4px; }
.pf__meta p { margin: 0 0 10px; color: var(--muted); font-size: var(--t-sm); }
.dialog { border: 0; padding: 0; max-width: min(760px, calc(100vw - 32px)); width: 100%; max-height: calc(100vh - 48px); background: var(--surface); color: var(--ink); box-shadow: 0 30px 80px -20px rgba(0,0,0,.5); border-radius: var(--r-md); }
.dialog::backdrop { background: rgba(23, 21, 31, .6); backdrop-filter: blur(3px); }
.dialog__inner { padding: clamp(20px, 4vw, 36px); display: grid; gap: 16px; position: relative; }
.dialog__close { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--heading); display: grid; place-items: center; cursor: pointer; z-index: 2; }
.dialog__close svg { width: 18px; height: 18px; }
.dialog .frame__screen { aspect-ratio: 16 / 8; }
.dialog .placeholder-tag { justify-self: start; }
.pf-d { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.pf-d > div { display: grid; gap: 4px 20px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: var(--t-sm); }
@media (min-width: 600px) { .pf-d > div { grid-template-columns: 160px 1fr; } }
.pf-d dt { font-weight: 600; color: var(--heading); }
.pf-d dd { margin: 0; color: var(--ink-soft); }
.dialog .btn { justify-self: start; }

/* Blog */
.featpost { display: grid; gap: 28px; text-decoration: none; align-items: center; }
@media (min-width: 900px) { .featpost { grid-template-columns: 1.2fr .8fr; gap: 56px; } }
.featpost img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; transition: filter .3s; }
.featpost:hover img { filter: brightness(.94); }
.featpost h3 { font-size: var(--t-xl); margin: 14px 0 12px; }
.featpost p { color: var(--ink-soft); font-size: var(--t-md); }
.featpost:hover h3 { text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; }
.postgrid { display: grid; gap: 44px 32px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.postgrid .post h3 { font-size: var(--t-md); }
.post[hidden] { display: none; }
@media (min-width: 900px) { .posts--even { grid-template-columns: repeat(3, 1fr); } .posts--even .post:first-child h3 { font-size: var(--t-md); } }
.searchbox input::-webkit-search-cancel-button { cursor: pointer; }

/* Article */
.wrap--narrow { max-width: 860px; }
.art__head { padding-block: clamp(32px, 5vw, 64px) clamp(28px, 4vw, 40px); }
.art__head h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.25rem); margin: 14px 0 18px; }
.art__head .lede { margin: 0 0 16px; }
.art__by { font-size: var(--t-sm); color: var(--muted); margin: 0; }
.art__img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; }
@media (max-width: 700px) { .art__img { aspect-ratio: 4 / 3; } }
.art__grid { display: grid; gap: 48px; padding-block: clamp(40px, 5vw, 72px); }
@media (min-width: 1000px) { .art__grid { grid-template-columns: minmax(0, 1fr) 300px; gap: 80px; } .art__aside { position: sticky; top: 110px; align-self: start; } }
.art__body { max-width: 68ch; font-size: 1.125rem; line-height: 1.75; color: var(--ink); min-width: 0; }
.art__body h2 { font-size: var(--t-lg); margin: 2em 0 .6em; }
.art__body p { margin: 0 0 1.2em; }
.art__body ul { margin: 0 0 1.4em; padding-left: 1.2em; }
.art__body li { margin-bottom: .5em; }
.art__body li::marker { color: var(--orange); }
.art__card { border: 1px solid var(--line); background: var(--surface); padding: 24px; display: grid; gap: 12px; border-top: 3px solid var(--orange); }
.art__card h2 { font-size: var(--t-md); }
.art__card p { margin: 0; color: var(--muted); font-size: var(--t-sm); }
.art__card .btn { justify-self: start; }

/* Contact */
.contact { display: grid; gap: 48px; align-items: start; }
@media (min-width: 1000px) { .contact { grid-template-columns: 1.35fr .65fr; gap: 72px; } }
.contact__form { background: var(--surface); border: 1px solid var(--line); padding: clamp(24px, 4vw, 48px); position: relative; }
.contact__form::before { content: ""; position: absolute; left: 0; top: 0; width: 120px; height: 4px; background: var(--orange); }
.contact__form h2 { font-size: var(--t-lg); margin-bottom: 6px; }
.contact__form .muted { font-size: var(--t-sm); margin-bottom: 24px; }
.contact__side { display: grid; gap: 36px; }
.contact__ways { display: grid; border-top: 1px solid var(--line-strong); }
.contact__ways a { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.contact__ways svg { width: 22px; height: 22px; justify-self: center; color: var(--purple); }
:root[data-theme="dark"] .contact__ways svg { color: #A49DDB; }
.contact__ways .wa svg { color: #25D366; }
.contact__ways b { display: block; font-size: var(--t-xs); color: var(--muted); font-weight: 600; }
.contact__ways span { font-weight: 500; color: var(--heading); }
.contact__ways a:hover span { color: var(--accent-text); }
.contact__addr h3, .contact__next h3 { font-size: var(--t-base); margin-bottom: 10px; }
.contact__addr p { color: var(--ink-soft); margin: 0; }
.contact__next ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: nx; }
.contact__next li { counter-increment: nx; display: grid; grid-template-columns: 30px 1fr; gap: 2px 12px; }
.contact__next li::before { content: counter(nx); grid-row: span 2; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--orange); display: grid; place-items: center; font: 600 var(--t-xs)/1 var(--f-display); color: var(--accent-text); }
.contact__next b { font-size: var(--t-sm); color: var(--heading); }
.contact__next span { font-size: var(--t-sm); color: var(--muted); }
.map { position: relative; height: clamp(360px, 38vw, 480px); border: 1px solid var(--line); background: var(--surface); overflow: hidden; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map__placeholder { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 14px; text-align: center; padding: 24px; background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--purple) 10%, transparent), transparent 60%), repeating-linear-gradient(0deg, transparent 0 39px, var(--line) 39px 40px), repeating-linear-gradient(90deg, transparent 0 39px, var(--line) 39px 40px); }
.map__placeholder > svg { width: 36px; height: 36px; color: var(--orange); }
.map__placeholder p { margin: 0; color: var(--ink-soft); }
.map__placeholder small { color: var(--muted); font-size: var(--t-xs); }
.map__placeholder .btn-row { justify-content: center; }
.selfroute { display: grid; gap: 0; border-top: 1px solid var(--line-strong); }
@media (min-width: 600px) { .selfroute { grid-template-columns: 1fr 1fr; column-gap: 32px; } }
.selfroute a { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 600; color: var(--heading); }
.selfroute small { grid-column: 1; font-size: var(--t-xs); font-weight: 600; color: var(--accent-text); }
.selfroute svg { grid-row: 1 / span 2; grid-column: 2; width: 16px; height: 16px; transition: transform .25s var(--ease); }
.selfroute a:hover svg { transform: translateX(3px); color: var(--accent-text); }

/* Legal */
.page-hero--legal h1 { margin-bottom: 10px; }
.legal { display: grid; gap: 40px; }
@media (min-width: 1000px) { .legal { grid-template-columns: 280px minmax(0, 1fr); gap: 72px; } .legal__toc { position: sticky; top: 110px; align-self: start; } }
.legal__toc h2 { font: 600 var(--t-sm)/1 var(--f-text); color: var(--heading); margin-bottom: 14px; }
.legal__toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; border-left: 2px solid var(--line); }
.legal__toc a { display: block; padding: 6px 14px; font-size: var(--t-sm); color: var(--muted); text-decoration: none; margin-left: -2px; border-left: 2px solid transparent; }
.legal__toc a:hover, .legal__toc a.is-active { color: var(--heading); border-left-color: var(--orange); }
@media (max-width: 999px) { .legal__toc { border: 1px solid var(--line); padding: 18px; background: var(--surface); } }
.legal__body { max-width: 72ch; min-width: 0; }
.legal__body section { padding-top: 8px; }
.legal__body h2 { font-size: var(--t-md); margin: 32px 0 10px; }
.legal__body p, .legal__body li { color: var(--ink-soft); }
.legal__body ul { padding-left: 1.2em; }
.legal__intro { font-size: var(--t-md); color: var(--ink) !important; }
.notice { display: grid; grid-template-columns: 24px 1fr; gap: 12px; padding: 16px 18px; margin-bottom: 28px; border: 1px solid color-mix(in srgb, var(--orange) 55%, transparent); background: color-mix(in srgb, var(--orange) 9%, transparent); font-size: var(--t-sm); }
.notice svg { width: 22px; height: 22px; color: var(--accent-text); }
.notice p { margin: 0; color: var(--ink) !important; }

/* 404 */
.nf { padding-block: clamp(56px, 8vw, 120px) clamp(40px, 5vw, 72px); }
.nf__code { font: 700 clamp(5rem, 3rem + 10vw, 11rem)/.9 var(--f-display); color: transparent; -webkit-text-stroke: 2px var(--orange); margin: 0 0 16px; letter-spacing: -.02em; }
.nf h1 { margin-bottom: 16px; }
.nf .lede { margin-bottom: 32px; }

/* ==========================================================================
   Case studies
   ========================================================================== */
.frame__img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; background: var(--surface-2); }
.frame__brand { aspect-ratio: 16 / 10; display: grid; place-items: center; align-content: center; gap: 6px; text-align: center; padding: 24px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--tint) 92%, #000) 0%, var(--tint) 100%); color: #fff; }
.frame__brand b { font: 600 var(--t-lg)/1.15 var(--f-display); color: #fff; }
.frame__brand span:last-child { font-size: var(--t-sm); color: rgba(255,255,255,.8); }
.frame__mono { width: 64px; height: 64px; border: 2px solid rgba(255,255,255,.7); display: grid; place-items: center; font: 700 var(--t-md)/1 var(--f-display); letter-spacing: .04em; margin-bottom: 8px; }
.device__img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.device::before { z-index: 2; }
.pf__links { display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; }
.pf__meta p { margin-bottom: 12px; }
.pfgrid--3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.work__item .pf__open { margin-bottom: 4px; }
.work__item--phone .pf__open { display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line); padding: 24px; }
.work__item--phone .device { max-width: 230px; }
.work__item .pf__meta h3 { font-size: var(--t-md); margin: 6px 0 4px; }
.work__item .pf__meta p { color: var(--muted); font-size: var(--t-sm); }
.dialog__lede { margin: 0; color: var(--ink-soft); }
.dialog h2 { font-size: var(--t-lg); }
.pf-d ul { margin: 0; padding-left: 1.1em; display: grid; gap: 4px; }
.contact__h-gap { margin-top: 20px; }
.foot__bottom small { color: var(--muted); font-size: var(--t-xs); }
.foot__brand .brand { display: none; }
