/* likhons.com: one design system. Tokens first, then base, components, sections, motion. */

/* One typeface: Inter (variable, self-hosted, OFL). */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/inter-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Inter";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/inter-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Noto Sans Bengali";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/noto-sans-bengali.woff2") format("woff2");
  /* Bengali letters only (not ৳, which the English page uses), so English pages never fetch it. */
  unicode-range: U+0951-0952, U+0964-0965, U+0980-09F2, U+09F4-09FE, U+200C-200D, U+25CC;
}
/* ==========================================================================================
   Tokens. Every colour, size and space on the site comes from here.
   ========================================================================================== */

:root {
  /* Colour. */
  --paper: #F5F5F7;
  --card: #FFFFFF;
  --ink: #1D1D1F;
  --muted: #5B6166;
  /* The brand colour on light surfaces: buttons, icons, the growth curve. */
  --brand: #063940;
  --on-brand: #F8F9F9;
  /* Warm accent from the logo; decoration only (never text on light surfaces). */
  --accent: #FCA347;
  /* Frosted header: the page shows through, blurred. */
  --header-fill: transparent;
  /* Glass tiles (Windows 11 style): a translucent fill over the sky, blurred, with a lit top edge
     and soft depth instead of an outline. --card stays the opaque fallback. */
  --tile: rgb(255 255 255 / .62);
  --tile-strong: rgb(255 255 255 / .82);
  --tint: color-mix(in srgb, var(--brand) 8%, transparent);
  /* The only two lines on the site: the More work cards and the footer hairline. */
  --line: #D3E0E3;
  /* The sea colour, for the main button's tint (the kale alone tints to grey). */
  --sea: #1F8A99;
  --tint-strong: color-mix(in srgb, var(--sea) 20%, var(--tile-strong));
  --tint-hover: color-mix(in srgb, var(--sea) 30%, var(--tile-strong));
  --blur: blur(22px) saturate(160%);
  /* The page: one sky that deepens into the ocean (the contact band and footer). */
  --sky-top: #EDF5FA;
  --sky-mid: #E4F0F4;
  --sea-top: #D9EBEC;
  --page-bg:
    radial-gradient(56rem 32rem at 88% -6%, rgb(252 163 71 / .08), transparent 70%),
    radial-gradient(60rem 40rem at -8% 4%, rgb(126 190 226 / .22), transparent 70%),
    radial-gradient(48rem 36rem at 60% 42%, rgb(110 196 196 / .1), transparent 70%),
    linear-gradient(180deg, var(--sky-top), var(--sky-mid) 45%, var(--sea-top));
  /* Buttons: no outline; a lit fill and a soft drop for depth. */
  --btn-fill: linear-gradient(180deg, color-mix(in srgb, var(--brand) 90%, #FFFFFF), var(--brand));
  --stripe-a: color-mix(in srgb, var(--brand) 55%, transparent);
  --stripe-b: color-mix(in srgb, var(--brand) 22%, transparent);
  --stripes: repeating-linear-gradient(-45deg, var(--stripe-a) 0 4px, var(--stripe-b) 4px 8px);
  --palette-ink: conic-gradient(from 210deg, #FCA347, #EF6461, #8E6BE8, #2B9FD9, #2DB37A, #FCA347);

  --shadow: 0 12px 34px -16px rgb(6 57 64 / .16);
  --shadow-soft: 0 6px 18px -8px rgb(6 57 64 / .22);
  --shadow-btn: 0 8px 22px -10px rgb(6 57 64 / .55);
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 28px;
  --r-pill: 980px;

  /* Space: one scale, used for every margin, padding and gap. */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 72px;
  --s-9: 104px;
  --gutter: 20px;
  --section-y: var(--s-8);
  --card-pad: var(--s-5);
  --stack: var(--s-6);

  /* Type: one family, seven fluid steps (phone → desktop). Nothing on the site uses another size. */
  --font: "Inter", "Noto Sans Bengali", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --t-xs: 0.875rem;                                     /* 14: labels, captions, fine print */
  --t-base: clamp(1rem, 0.96rem + 0.18vw, 1.0625rem);  /* 16 → 17: body, menu, buttons */
  --t-lead: clamp(1.125rem, 1.04rem + 0.4vw, 1.3125rem);/* 18 → 21: intros */
  --t-md: clamp(1.25rem, 1.15rem + 0.45vw, 1.5rem);    /* 20 → 24: card titles */
  --t-lg: clamp(1.75rem, 1.4rem + 1.5vw, 2.5rem);      /* 28 → 40: numbers, featured outcome */
  --t-xl: clamp(2.125rem, 1.5rem + 2.8vw, 3.5rem);     /* 34 → 56: section titles */
  --t-2xl: clamp(2.75rem, 1.6rem + 4.8vw, 5rem);       /* 44 → 80: the hero headline */

  --max: 1120px;
  --header-h: 64px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  /* Interaction: one timing for every hover, press and focus on the site. */
  --dur-1: 160ms;
  --dur-2: 280ms;

  color-scheme: light;
}

/* Dark version (picked in the header, or the default when the device is in dark mode). */
:root[data-theme="dark"] {
  --line: #26393E;
  --sea: #7FD1DA;
  --paper: #0A1519;
  --card: #15252A;
  --ink: #F2F6F7;
  --muted: #A3B3B6;
  --brand: #CBE2E1;
  --on-brand: #063940;
  --tile: rgb(255 255 255 / .055);
  --tile-strong: rgb(255 255 255 / .1);
  --sky-top: #0B161B;
  --sky-mid: #0A1C21;
  --sea-top: #082429;
  --page-bg:
    radial-gradient(56rem 32rem at 88% -6%, rgb(252 163 71 / .08), transparent 70%),
    radial-gradient(60rem 40rem at -8% 4%, rgb(42 107 114 / .45), transparent 70%),
    radial-gradient(48rem 36rem at 60% 42%, rgb(38 92 120 / .22), transparent 70%),
    linear-gradient(180deg, var(--sky-top), var(--sky-mid) 45%, var(--sea-top));
  --btn-fill: linear-gradient(180deg, color-mix(in srgb, var(--brand) 85%, #FFFFFF), var(--brand));
  --shadow: 0 16px 40px -16px rgb(0 0 0 / .55);
  --shadow-soft: 0 6px 18px -8px rgb(0 0 0 / .5);
  --shadow-btn: 0 8px 22px -10px rgb(0 0 0 / .6);
  color-scheme: dark;
}

/* Black-and-white version: the same page in greys only; the photo in greyscale. */
:root[data-theme="mono"] {
  --line: #D6D6DA;
  --sea: #8E8E93;
  --sky-top: #F7F7F8;
  --sky-mid: #EFEFF1;
  --sea-top: #E6E6E9;
  --page-bg: linear-gradient(180deg, var(--sky-top), var(--sky-mid) 45%, var(--sea-top));
  --palette-ink: currentColor;
  --brand: #1D1D1F;
  --accent: #1D1D1F;
}

/* Phones: one tighter rhythm. 16px gutters, 20px tile padding, shorter gaps between sections. */
@media (max-width: 599px) {
  :root {
    --gutter: 16px;
    --section-y: var(--s-7);
    --card-pad: 20px;
    --stack: var(--s-5);
  }
}

/* No glass where blur is missing or the visitor asked for less transparency: solid tiles. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  :root { --tile: var(--card); --tile-strong: var(--card); --header-fill: var(--sky-mid); }
}
@media (prefers-reduced-transparency: reduce) {
  :root { --tile: var(--card); --tile-strong: var(--card); --header-fill: var(--sky-mid); }
}
@media (min-width: 960px) {
  :root {
    --gutter: 40px;
    --section-y: var(--s-9);
    --card-pad: var(--s-6);
    --stack: var(--s-7);
  }
}

/* ==========================================================================================
   Base
   ========================================================================================== */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--s-5));
}

/* Footer sits at the bottom of the screen on short pages (offline, terms). */
body {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  margin: 0;
  background: var(--page-bg);
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--t-base);
  line-height: 1.6;
  letter-spacing: -0.011em;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

h1, h2, h3 {
  margin: 0;
  font-weight: 700;
  line-height: 1.1;
  text-wrap: balance;
}

p, ul, ol, dl, dd, figure { margin: 0; }
p { text-wrap: pretty; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 2px;
}
main { flex: 1 0 auto; }
main:focus { outline: none; }

.nowrap { white-space: nowrap; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  top: var(--s-2);
  left: var(--s-2);
  z-index: 30;
  padding: var(--s-2) var(--s-4);
  border-radius: var(--r-sm);
  background: var(--card);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

/* Icons: Lucide line icons (ISC) and the WhatsApp mark (Simple Icons, CC0), drawn as a mask in the text colour.
   Add the SVG to img/logos/ and a [data-icon] rule here. */
[data-icon="activity"] { --logo: url("/img/logos/activity.svg"); }
[data-icon="arrow-hit"] { --logo: url("/img/logos/arrow-hit.svg"); }
[data-icon="arrow-up"] { --logo: url("/img/logos/arrow-up.svg"); }
[data-icon="banknote"] { --logo: url("/img/logos/banknote.svg"); }
[data-icon="bike"] { --logo: url("/img/logos/bike.svg"); }
[data-icon="briefcase-business"] { --logo: url("/img/logos/briefcase-business.svg"); }
[data-icon="building-2"] { --logo: url("/img/logos/building-2.svg"); }
[data-icon="calendar"] { --logo: url("/img/logos/calendar.svg"); }
[data-icon="chart-column-increasing"] { --logo: url("/img/logos/chart-column-increasing.svg"); }
[data-icon="chart-no-axes-column"] { --logo: url("/img/logos/chart-no-axes-column.svg"); }
[data-icon="check"] { --logo: url("/img/logos/check.svg"); }
[data-icon="chevron-left"] { --logo: url("/img/logos/chevron-left.svg"); }
[data-icon="chevron-right"] { --logo: url("/img/logos/chevron-right.svg"); }
[data-icon="clapperboard"] { --logo: url("/img/logos/clapperboard.svg"); }
[data-icon="code-xml"] { --logo: url("/img/logos/code-xml.svg"); }
[data-icon="contrast"] { --logo: url("/img/logos/contrast.svg"); }
[data-icon="cookie"] { --logo: url("/img/logos/cookie.svg"); }
[data-icon="crosshair"] { --logo: url("/img/logos/crosshair.svg"); }
[data-icon="eye"] { --logo: url("/img/logos/eye.svg"); }
[data-icon="file-text"] { --logo: url("/img/logos/file-text.svg"); }
[data-icon="gem"] { --logo: url("/img/logos/gem.svg"); }
[data-icon="github"] { --logo: url("/img/logos/github.svg"); }
[data-icon="globe"] { --logo: url("/img/logos/globe.svg"); }
[data-icon="graduation-cap"] { --logo: url("/img/logos/graduation-cap.svg"); }
[data-icon="handshake"] { --logo: url("/img/logos/handshake.svg"); }
[data-icon="landmark"] { --logo: url("/img/logos/landmark.svg"); }
[data-icon="laptop"] { --logo: url("/img/logos/laptop.svg"); }
[data-icon="layers"] { --logo: url("/img/logos/layers.svg"); }
[data-icon="layout-dashboard"] { --logo: url("/img/logos/layout-dashboard.svg"); }
[data-icon="linkedin"] { --logo: url("/img/logos/linkedin.svg"); }
[data-icon="mail"] { --logo: url("/img/logos/mail.svg"); }
[data-icon="map-pin"] { --logo: url("/img/logos/map-pin.svg"); }
[data-icon="megaphone"] { --logo: url("/img/logos/megaphone.svg"); }
[data-icon="menu"] { --logo: url("/img/logos/menu.svg"); }
[data-icon="moon"] { --logo: url("/img/logos/moon.svg"); }
[data-icon="network"] { --logo: url("/img/logos/network.svg"); }
[data-icon="newspaper"] { --logo: url("/img/logos/newspaper.svg"); }
[data-icon="palette"] { --logo: url("/img/logos/palette.svg"); }
[data-icon="pen-line"] { --logo: url("/img/logos/pen-line.svg"); }
[data-icon="phone"] { --logo: url("/img/logos/phone.svg"); }
[data-icon="send"] { --logo: url("/img/logos/send.svg"); }
[data-icon="shield"] { --logo: url("/img/logos/shield.svg"); }
[data-icon="sparkles"] { --logo: url("/img/logos/sparkles.svg"); }
[data-icon="store"] { --logo: url("/img/logos/store.svg"); }
[data-icon="tag"] { --logo: url("/img/logos/tag.svg"); }
[data-icon="target"] { --logo: url("/img/logos/target.svg"); }
[data-icon="trending-down"] { --logo: url("/img/logos/trending-down.svg"); }
[data-icon="trophy"] { --logo: url("/img/logos/trophy.svg"); }
[data-icon="users"] { --logo: url("/img/logos/users.svg"); }
[data-icon="whatsapp"] { --logo: url("/img/logos/whatsapp.svg"); }
[data-icon="workflow"] { --logo: url("/img/logos/workflow.svg"); }
[data-icon="wrench"] { --logo: url("/img/logos/wrench.svg"); }
[data-icon="x"] { --logo: url("/img/logos/x.svg"); }

.icon {
  flex: none;
  width: 1.1em;
  height: 1.1em;
  background: currentColor;
  -webkit-mask: var(--logo) center / contain no-repeat;
  mask: var(--logo) center / contain no-repeat;
}
/* The one icon tile, used on the result and service cards. */
/* The icon beside a heading or a fact: the icon alone, in the brand colour, no box around it. */
.icon-tile {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  color: var(--brand);
}
.icon-tile .icon { width: 26px; height: 26px; }

/* Section heading: big, centred, then content one --stack below. */
.section-title {
  font-size: var(--t-lg);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.section-intro {
  margin-top: var(--s-3);
  color: var(--muted);
  font-size: var(--t-lead);
}
/* The small muted label above a list (the clients row and the footer columns use it). */
.eyebrow {
  color: var(--muted);
  font-size: var(--t-xs);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.4;
}

/* ==========================================================================================
   Buttons: pills, one height, no outline. The brand fill for the main action, glass for the rest.
   ========================================================================================== */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: var(--s-2) var(--s-5);
  border: 0;
  border-radius: var(--r-pill);
  font: inherit;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--dur-1) var(--ease), color var(--dur-1) var(--ease), box-shadow var(--dur-2) var(--ease), filter var(--dur-1) var(--ease), transform var(--dur-2) var(--ease);
}
/* Every button is raised glass (like the phone slider); the main action is tinted with the sea colour. */
.button--primary,
.button--secondary {
  box-shadow: var(--shadow-soft);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
}
.button--primary {
  background: var(--tint-strong);
  color: var(--brand);
  font-weight: 600;
}
.button--primary:hover { background: var(--tint-hover); }
.button--secondary {
  background: var(--tile-strong);
  color: var(--ink);
}
.button--secondary:hover { background: var(--card); }
.button--small { min-height: 44px; padding-inline: var(--s-4); font-size: var(--t-xs); font-weight: 600; }
.button--large { min-height: 52px; padding-inline: var(--s-6); font-size: var(--t-base); }
.button .icon { width: 1.15em; height: 1.15em; margin-right: var(--s-2); }
/* Icons inside links and buttons nudge on hover (see Motion). */
.button .icon,
.case__link .icon,
.footer-top .icon { transition: transform var(--dur-2) var(--ease); }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
}
/* Phones: the two calls to action sit side by side at equal width. */
@media (max-width: 599px) {
  .actions .button { flex: 1 1 0; padding-inline: var(--s-3); }
  .button--large { font-size: var(--t-base); }
}

/* ==========================================================================================
   Header: a frosted bar that stays at the top. Name, menu, version switch, Book a call.
   ========================================================================================== */

/* The menu bar has no shape: the page itself, softly blurred under the menu, fading out at its
   lower edge (an alpha mask), so nothing reads as a bar or a line. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 15;
  padding-bottom: var(--s-5);
  background: var(--header-fill);
  color: var(--ink);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-mask-image: linear-gradient(to bottom, black calc(100% - var(--s-5)), transparent);
  mask-image: linear-gradient(to bottom, black calc(100% - var(--s-5)), transparent);
}
.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: var(--s-5);
  min-height: var(--header-h);
}
.site-name {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  flex: 1 1 0;
  min-width: 0;
  padding-block: var(--s-3);
  min-height: 44px;
  color: var(--ink);
  font-size: var(--t-base);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-decoration: none;
}
.site-header nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
}
.site-logo { flex: none; width: 28px; height: 28px; }

.nav {
  display: flex;
  gap: var(--s-5);
  font-weight: 500;
}
.nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
  text-decoration: none;
  transition: color var(--dur-1) var(--ease);
}
.nav a:hover { color: var(--ink); }
/* A hairline that grows from the centre under the hovered menu item. */
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: var(--s-2);
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transition: transform var(--dur-2) var(--ease);
}
.nav a:hover::after { transform: scaleX(1); }

/* Version switch: three round buttons in one pill. */
.theme-switch {
  display: inline-flex;
  gap: var(--s-1);
}
.theme-switch[hidden] { display: none; }
.theme-switch button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background-color var(--dur-1) var(--ease), color var(--dur-1) var(--ease), transform var(--dur-2) var(--ease);
}
.theme-switch button:hover { color: var(--ink); }
.theme-switch button[aria-pressed="true"] { background: var(--tile-strong); box-shadow: var(--shadow-soft); color: var(--ink); }
.theme-switch button::before {
  content: "";
  width: 18px;
  height: 18px;
  background: currentColor;
  -webkit-mask: var(--logo) center / contain no-repeat;
  mask: var(--logo) center / contain no-repeat;
}
/* The colour version's palette is drawn in colour. */
.theme-switch [data-theme-choice="color"]::before { background: var(--palette-ink); }

/* Language: a small flag and the other language's name, linking to that version of the page. */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  min-height: 44px;
  padding-inline: var(--s-2);
  border-radius: var(--r-pill);
  color: var(--muted);
  font-size: var(--t-xs);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--dur-1) var(--ease), transform var(--dur-2) var(--ease);
}
.lang-switch:hover { color: var(--ink); }
.lang-switch img { width: 20px; height: auto; border-radius: 2px; }
:lang(bn) { line-height: 1.7; }
:lang(bn) h1, :lang(bn) h2, :lang(bn) h3 { line-height: 1.3; letter-spacing: 0; }

/* Replay button for the "target hit" arrows (shown by app.js after the first volley). */
.volley-button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: color var(--dur-1) var(--ease), background-color var(--dur-1) var(--ease), transform var(--dur-2) var(--ease);
}
.volley-button[hidden] { display: none; }
.volley-button:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 6%, transparent); }
.volley-button .icon { width: 20px; height: 20px; }
.volley {
  position: fixed;
  inset: 0;
  z-index: 40;
  overflow: hidden;
  pointer-events: none;
}
.volley__arrow {
  position: absolute;
  top: 0;
  left: 0;
  width: 48px;
  height: 12px;
  background: var(--brand);
  -webkit-mask: url("/img/logos/arrow-hit.svg") center / contain no-repeat;
  mask: url("/img/logos/arrow-hit.svg") center / contain no-repeat;
  transform-origin: 100% 50%;
}

.menu-button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--tile-strong);
  box-shadow: var(--shadow-soft);
  color: var(--ink);
  cursor: pointer;
}
.menu-button[hidden] { display: none; }
.menu-button .icon { width: 20px; height: 20px; }
.menu-button[aria-expanded="true"] .icon { --logo: url("/img/logos/x.svg"); }

/* Phones: one row (name, Book a call, menu button); the menu opens as a panel inside the header.
   Without JS the menu button stays hidden and the links sit on a second row instead. */
@media (max-width: 1079px) {
  .site-header__inner { column-gap: var(--s-2); }
  .site-header nav { order: 3; flex-wrap: wrap; width: 100%; }
  .header-cta { padding-inline: var(--s-4); }
  .nav { gap: var(--s-4); }
  .has-menu nav { display: none; }
  .has-menu.is-open nav {
    display: grid;
    gap: var(--s-3);
    padding-block: var(--s-2) var(--s-4);
  }
  .has-menu .nav { display: grid; gap: 0; font-size: var(--t-md); }
  .has-menu .nav a { color: var(--ink); }
  /* Under the links: language, version and replay side by side. */
  .has-menu.is-open nav { grid-template-columns: repeat(3, auto); justify-content: start; align-items: center; }
  .has-menu .nav { grid-column: 1 / -1; }
}
/* Narrow phones: the name drops "Shariar" so the row still fits. */
@media (max-width: 399px) {
  .site-name__mid { display: none; }
}
/* Narrow phones in Bangla (longer words): the logo alone, so Book a call still fits on the row. */
@media (max-width: 399px) {
  :lang(bn) .site-name > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
@media (min-width: 1080px) {
  .menu-button { display: none; }
  .site-header nav { gap: var(--s-5); }
  .nav { gap: var(--s-6); }
}

/* ==========================================================================================
   Hero: a bento of tiles. Phones read headline → numbers → profile → skills → timeline
   (the HTML order); from 960px the profile card runs down the left beside the rest.
   ========================================================================================== */

.hero { color: var(--ink); }
/* One card style for the whole site (owner: "use the More work card everywhere"): a thin quiet
   outline, rounded, no fill, no shadow. The hero blocks, the numbers, clients, services, the
   cases, contact and the footer all use it. The only raised things are controls you press. */
.card,
.bento-tile,
.case--featured,
.clients__list,
.contact-band__inner,
.site-footer__inner {
  position: relative;
  min-width: 0;
  padding: var(--card-pad);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
/* Cards that are also a .wrap stay inside the page margins. */
.contact-band__inner,
.site-footer__inner {
  width: calc(100% - 2 * var(--gutter));
  max-width: var(--max);
}
/* Phones and tablets: photo first (owner), then the headline and the rest.
   From 960px: headline beside the profile, the four numbers in one row, the timeline beside skills. */
.bento {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "profile" "main" "kpis" "skills" "learning" "timeline";
  gap: var(--s-3);
  padding-top: var(--s-4);
}
.hero__main { grid-area: main; display: flex; flex-direction: column; justify-content: center; }
.hero__kpis { grid-area: kpis; }
.profile { grid-area: profile; }
.hero__skills-tile { grid-area: skills; }
.hero__learning { grid-area: learning; }
.hero__timeline { grid-area: timeline; }

/* The headline uses the same type as every other heading (weight, spacing, line height); only
   its size is larger. */
.hero h1 {
  max-width: 20ch;
  font-size: var(--t-xl);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.hero__intro {
  max-width: 54ch;
  margin-top: var(--s-4);
  color: var(--muted);
  font-size: var(--t-lead);
  line-height: 1.5;
}
.hero .actions { margin-top: var(--s-5); }
@media (max-width: 599px) {
  .hero__intro { font-size: var(--t-base); }
}

/* Numbers: four small cards, two by two on phones, one row from 768px. */
.hero__kpis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-3);
}
.proof__item {
  display: grid;
  align-content: start;
  row-gap: var(--s-1);
}
.proof__item .icon-tile { justify-items: start; width: auto; height: auto; margin-bottom: var(--s-1); }
.proof__item .icon-tile .icon { width: 20px; height: 20px; }
.proof__num {
  font-size: var(--t-md);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.035em;
  line-height: 1.05;
  white-space: nowrap;
}
.proof__label {
  color: var(--muted);
  font-size: var(--t-xs);
  line-height: 1.45;
}

/* Profile card: avatar, name, role pill, contact tiles, social icons. */
/* Profile: photo, name and title centred at the top (owner), then the details on the left and the
   icon links centred at the foot. */
.profile {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.profile .portrait { align-self: center; margin-bottom: var(--s-3); }
.profile__name,
.hero__role { align-self: center; text-align: center; }
.profile .social { justify-content: center; }
.portrait {
  overflow: hidden;
  width: 96px;
  height: 96px;
  border-radius: 50%;
}
:root:not([data-theme="dark"]) .portrait img { mix-blend-mode: multiply; }
.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
}
.profile__name {
  font-size: var(--t-md);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.hero__role {
  color: var(--brand);
  font-size: var(--t-xs);
  font-weight: 600;
}
.profile__facts {
  display: grid;
  gap: 0;
  width: 100%;
  margin-top: var(--s-4);
}
.profile__facts li {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: var(--s-3);
  min-height: 48px;
  font-size: var(--t-xs);
  font-weight: 500;
  transition: background-color var(--dur-1) var(--ease);
}
.profile__facts li > span:last-child { display: grid; min-width: 0; line-height: 1.4; overflow-wrap: anywhere; }
.profile__facts a { color: var(--ink); text-decoration: none; }
/* The whole tile is the tap target. */
.profile__facts a::after { content: ""; position: absolute; inset: 0; border-radius: var(--r-md); }
.profile__facts li:has(a:hover) a { color: var(--brand); }

/* Phone number behind a hold button (app.js): text-sized, in the number's place. Press and hold;
   a line fills under the label, then the number wipes in. A tap from the keyboard or a screen
   reader reveals it straight away. */
.hold {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: var(--s-1);
  padding: 0;
  border: 0;
  background: none;
  color: var(--brand);
  font: inherit;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}
/* A 44px tap area around the text-sized button. */
.hold::before { content: ""; position: absolute; inset: calc(var(--s-3) * -1) calc(var(--s-2) * -1); }
.hold::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(var(--s-1) * -0.5);
  height: 2px;
  border-radius: var(--r-pill);
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
}
.hold.is-holding::after { transform: scaleX(1); transition: transform var(--hold-ms, 700ms) linear; }
.hold .icon { width: 1.1em; height: 1.1em; }
/* The header's Book a call steps aside while the hero's buttons are visible (app.js). */
.cta-off .header-cta { visibility: hidden; }

/* Icon-only links (profile card and footer): round, 44px. */
.social {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
}
.profile .social { margin-top: var(--s-4); }
.social a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--tile-strong);
  box-shadow: var(--shadow-soft);
  color: var(--ink);
  transition: background-color var(--dur-1) var(--ease), color var(--dur-1) var(--ease), transform var(--dur-2) var(--ease);
}
.social a:hover { background: var(--brand); color: var(--on-brand); }
.social .icon { width: 20px; height: 20px; }
.social [data-icon="whatsapp"] { width: 18px; height: 18px; }

/* Skills: chips whose icons come alive on hover, focus or touch (see Motion). */
.hero__skills {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
  gap: var(--s-3) var(--s-5);
  margin-top: var(--s-4);
}
.hero__skills li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: var(--s-3);
  color: var(--ink);
  font-size: var(--t-xs);
  font-weight: 500;
  line-height: 1.3;
  cursor: default;
  -webkit-tap-highlight-color: transparent;
  transition: background-color var(--dur-1) var(--ease), transform var(--dur-2) var(--ease);
}
.hero__skills li:is(:hover, .is-live) { color: var(--brand); }
.hero__skills .icon { width: 20px; height: 20px; margin-top: calc(var(--s-1) / 2); color: var(--brand); }
.skill { display: grid; }
.skill__name { font-size: var(--t-base); font-weight: 600; }
.skill__more { color: var(--muted); }

.hero__skills [data-icon="target"] { --live: live-pulse; }
.hero__skills [data-icon="megaphone"] { --live: live-tilt; }
.hero__skills [data-icon="gem"] { --live: live-twinkle; }
.hero__skills [data-icon="handshake"] { --live: live-shake; }
.hero__skills [data-icon="workflow"] { --live: live-turn; }
.hero__skills [data-icon="chart-column-increasing"] { --live: live-grow; transform-origin: 50% 100%; }
.hero__skills [data-icon="pen-line"] { --live: live-write; }

/* The label at the top of a card: a small brand icon and the name, the same on every card. */
.card-label {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  color: var(--muted);
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.4;
}
.card-label .icon { color: var(--brand); }

/* Learning: year, course and who taught it, from the resume. */
.learning { display: grid; gap: var(--s-3); margin-top: var(--s-4); }
.learning li {
  display: grid;
  grid-template-columns: 3.5em minmax(0, 1fr);
  column-gap: var(--s-2);
  font-size: var(--t-xs);
  line-height: 1.4;
}
.learning__year { color: var(--brand); font-weight: 600; font-variant-numeric: tabular-nums; }
.learning__what { color: var(--ink); font-weight: 500; }
.learning__who { grid-column: 2; color: var(--muted); }

/* Experience timeline: a labelled Gantt, newest first. Company names in a label column, bars on a
   true time axis, the headline result beside its bar; dates, role and products are screen-reader
   text that app.js shows in a card following the pointer.
   Generated by scripts/make-timeline.mjs (--start, --end, --x, data-start, data-end). */
.hero__timeline-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-2) var(--s-4);
}
.journey__hint {
  margin-top: var(--s-1);
  color: var(--muted);
  font-size: var(--t-xs);
}
.journey__hint--fine { display: none; }
@media (hover: hover) and (pointer: fine) {
  .journey__hint--fine { display: inline; }
  .journey__hint--touch { display: none; }
}
.journey {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  margin-top: var(--s-4);
  touch-action: pan-y;
  -webkit-tap-highlight-color: transparent;
}
.journey__lanes {
  display: grid;
  grid-template-columns: subgrid;
  grid-column: 1 / -1;
  border-radius: var(--r-md);
  cursor: crosshair;
}
.journey__lanes:focus-visible { outline-offset: var(--s-1); }
/* Phones: the name, then its bar under it. From 600px: name column beside the track. */
.lane {
  position: relative;
  display: grid;
  grid-template-columns: subgrid;
  grid-column: 1 / -1;
  align-items: center;
  row-gap: var(--s-1);
  padding-block: var(--s-1);
}
/* Every company name in the same ink and weight: no role reads as secondary (owner). */
.lane__name {
  overflow: hidden;
  color: var(--ink);
  font-size: var(--t-xs);
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lane__more {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.lane__track {
  position: relative;
  height: 10px;
}
.journey__axis { grid-column: -2 / -1; }
@media (min-width: 600px) {
  .journey { grid-template-columns: minmax(7rem, 1fr) minmax(0, 4fr); column-gap: var(--s-4); }
  .lane { row-gap: 0; }
}
.lane__bar {
  position: absolute;
  inset: 0;
  left: var(--start);
  right: calc(100% - var(--end));
  min-width: 6px;
  border-radius: var(--r-pill);
  background: var(--btn-fill);
  transform-origin: left;
  transition: opacity var(--dur-2) var(--ease), transform var(--dur-2) var(--ease);
}
/* Freelance work: a lighter, striped bar instead of a solid one (no outline). */
.lane--freelance .lane__bar { background: var(--stripes); }
.journey__axis {
  position: relative;
  height: var(--s-6);
  color: var(--muted);
  font-size: var(--t-xs);
  font-variant-numeric: tabular-nums;
}
.journey__axis span {
  position: absolute;
  left: var(--x);
  top: var(--s-2);
  line-height: 1;
}
.journey__legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-1) var(--s-4);
  color: var(--muted);
  font-size: var(--t-xs);
}
.journey__key { display: inline-flex; align-items: center; gap: var(--s-2); }
.journey__key::before {
  content: "";
  width: 20px;
  height: 8px;
  border-radius: var(--r-pill);
  background: var(--btn-fill);
}
.journey__key--free::before { background: var(--stripes); }
/* While scrubbing, the roles running that month stay bright and the rest step back. */
.journey.is-scrubbing .lane:not(.is-now) .lane__bar { opacity: .3; }
.lane.is-hot .lane__bar { transform: scaleY(1.4); }
.journey__cursor {
  position: absolute;
  top: 0;
  height: var(--ch, 100%);
  left: 0;
  width: 2px;
  border-radius: var(--r-pill);
  background: var(--accent);
  pointer-events: none;
  transform: translateX(var(--cx, 0));
}
.journey__cursor[hidden] { display: none; }
/* The card that follows the pointer: month, then each role running that month. */
.journey__card {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  width: min(280px, 100%);
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-md);
  background: color-mix(in srgb, var(--card) 94%, transparent);
  box-shadow: var(--shadow);
  font-size: var(--t-xs);
  line-height: 1.4;
  pointer-events: none;
  transform: translate(var(--card-x, 0), var(--card-y, 0));
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
}
.journey__card[hidden] { display: none; }
/* Narrow charts and touch: the card sits under the axis instead of following the finger. */
.journey.is-docked .journey__card {
  position: static;
  grid-column: 1 / -1;
  width: auto;
  margin-top: var(--s-2);
  transform: none;
}
.journey__card-month { color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; }
.journey__card ul { display: grid; gap: var(--s-2); margin-top: var(--s-2); }
.journey__card li { display: grid; }
.journey__card b { color: var(--ink); font-weight: 600; }
.journey__card .is-hot b { color: var(--brand); }
.journey__card span { color: var(--muted); }
.journey__card em {
  justify-self: start;
  margin-top: var(--s-1);
  padding: 0 var(--s-2);
  border-radius: var(--r-pill);
  background: var(--tint);
  color: var(--brand);
  font-style: normal;
  font-weight: 600;
}


@media (min-width: 600px) and (max-width: 959px) {
  .profile__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 768px) {
  .hero__kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 960px) {
  .bento {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    grid-template-areas: "main profile" "kpis kpis" "skills learning" "timeline timeline";
    gap: var(--s-4);
    padding-top: var(--s-5);
  }
  .hero__main,
  .profile,
  .hero__skills-tile,
  .hero__learning { align-self: stretch; }
  /* Wide screens: the icon links sit at the foot of the card. */
  .profile .social { margin-top: auto; padding-top: var(--s-4); }
}

/* ==========================================================================================
   Cards: one tile style for results, services and cases.
   ========================================================================================== */

.card { min-width: 0; }
.card-lift { transition: transform var(--dur-2) var(--ease); }

/* ==========================================================================================
   Clients: one card holding an even grid of names, each with its icon above, linking to its case.
   ========================================================================================== */

.clients { padding-block: var(--section-y) 0; }
.clients__list {
  display: grid;
  /* Ten names: two columns on phones, five from 600px (two even rows). */
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-1);
  margin-top: var(--stack);
  padding: var(--s-2);
}
@media (min-width: 600px) {
  .clients__list { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
.clients__list a {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: var(--s-2);
  min-height: 96px;
  padding: var(--s-3) var(--s-1);
  border-radius: var(--r-md);
  color: var(--ink);
  font-size: var(--t-xs);
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: color var(--dur-1) var(--ease), background-color var(--dur-1) var(--ease);
}
.clients__list .icon { width: 28px; height: 28px; color: var(--brand); }
.clients__list a:hover { background: var(--tint); color: var(--brand); }

/* ==========================================================================================
   Sections
   ========================================================================================== */

.section { padding-block: var(--section-y); }
/* Two light sections in a row share one gap, not two. */
.section + .section { padding-top: 0; }

/* Services */
.services {
  display: grid;
  gap: var(--stack) var(--s-6);
  margin-top: var(--stack);
}
.service {
  display: flex;
  flex-direction: column;
}
.service h3,
.case h3 {
  font-size: var(--t-md);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.service .icon-tile { width: 48px; height: 48px; }
.service .icon-tile .icon { width: 24px; height: 24px; }
.service h3 { margin-top: var(--s-5); }
.service p { max-width: 36ch; margin-top: var(--s-3); color: var(--muted); }
.service .tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-1) var(--s-3);
  max-width: none;
  margin-top: auto;
  padding-top: var(--s-5);
  color: var(--muted);
}
.service .tools > .icon { margin-right: var(--s-1); }
@media (min-width: 960px) {
  .services {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Results: the featured case, then the rest in a sideways row that snaps card by card. */
.case {
  /* Positioned, so screen-reader-only text inside a card stays inside the sideways scroller. */
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  scroll-margin-top: calc(var(--header-h) + var(--s-5));
}
/* One anatomy for every experience: icon tile, organisation and role, dates on the right. */
/* Head: icon tile on the left; name, role and dates stacked beside it, all on one left edge. */
.case__head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  column-gap: var(--s-3);
}
.case__head .icon-tile { grid-row: span 2; }
.case__who { min-width: 0; }
.case h3 {
  font-size: var(--t-base);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.3;
}
.case__role {
  color: var(--muted);
  font-size: var(--t-xs);
  line-height: 1.4;
}
/* How and where the work was done (dates are on the timeline): an icon and a few words. */
.case__where {
  display: inline-flex;
  grid-column: 2;
  align-items: center;
  gap: var(--s-1);
  color: var(--muted);
  font-size: var(--t-xs);
  line-height: 1.4;
}
.case__where .icon { color: var(--brand); }
.case__metric {
  font-size: var(--t-md);
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.25;
  text-wrap: balance;
}
.case__kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 6rem), 1fr));
  gap: var(--s-3) var(--s-4);
}
.case__kpis div { display: flex; flex-direction: column-reverse; justify-content: flex-end; min-width: 0; }
.case__kpis dd {
  margin: 0;
  color: var(--brand);
  font-size: var(--t-md);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  line-height: 1.15;
  white-space: nowrap;
}
.case__kpis dt { color: var(--muted); font-size: var(--t-xs); line-height: 1.35; }
.case__points { display: grid; gap: var(--s-2); }
.case__points li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--s-2);
  color: var(--muted);
  font-size: var(--t-xs);
  line-height: 1.5;
}
.case__points .icon { margin-top: 0.15em; color: var(--brand); }
.case__tracks {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-1) var(--s-3);
  color: var(--muted);
}
.case__tracks > .icon { margin-right: var(--s-1); }
/* Tags (tools, metrics): plain words, spaced apart, no boxes. */
.chip {
  transition: color var(--dur-1) var(--ease);
  color: var(--muted);
  font-size: var(--t-xs);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  line-height: 1.7;
  white-space: nowrap;
}
.case__link {
  padding-top: var(--s-1);
  font-weight: 500;
}
.case__link a {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  min-height: 44px;
  color: var(--brand);
  text-decoration: none;
}
.case__link a:hover { text-decoration: underline; }
.case:hover .chip { color: var(--ink); }
/* Reached from the clients row: a ring shows which card the link went to. */
/* Reached from the clients grid: a brand ring drawn just inside the card (a ring outside the
   card would be clipped by the sideways row at its left edge). */
.case:target,
.case.is-target { outline: 2px solid var(--brand); outline-offset: -2px; }

/* Featured case (Stick-On): the one wide tile, the outcome set large, KPIs in tinted mini-tiles. */
.case--featured { margin-top: var(--stack); }
.case--featured .case__kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-2); }
.case--featured .case__kpis div { padding-block: var(--s-1); }
.case--featured .icon-tile { width: 56px; height: 56px; border-radius: var(--r-md); }
.case--featured .icon-tile .icon { width: 28px; height: 28px; }
.case--featured .case__metric {
  font-size: var(--t-md);
  letter-spacing: -0.025em;
  line-height: 1.15;
}
.case--featured .case__kpis dd { font-size: var(--t-md); letter-spacing: -0.03em; }
@media (max-width: 359px) {
  .case--featured .case__kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.case--featured .case__points li { color: var(--ink); font-size: var(--t-base); }

.carousel { margin-top: var(--section-y); }

.carousel__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
}
.carousel__bar .eyebrow { color: var(--ink); font-size: var(--t-md); font-weight: 600; letter-spacing: -0.02em; }
.carousel__count { margin-left: var(--s-2); color: var(--muted); font-size: var(--t-xs); font-weight: 500; font-variant-numeric: tabular-nums; }
.carousel__nav { display: flex; gap: var(--s-2); }
.carousel__nav[hidden] { display: none; }
.carousel__button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--tile-strong);
  box-shadow: var(--shadow-soft);
  color: var(--ink);
  cursor: pointer;
  transition: background-color var(--dur-1) var(--ease), color var(--dur-1) var(--ease), opacity var(--dur-1) var(--ease), transform var(--dur-2) var(--ease);
}
.carousel__button:hover:not(:disabled) { background: var(--brand); color: var(--on-brand); }
.carousel__button:disabled { opacity: .35; cursor: default; }
.carousel__button .icon { width: 20px; height: 20px; }
/* The row bleeds to the screen edge on phones so the next card peeks in. */
.cases {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(86%, 340px);
  /* Equal-height cards; the site link sits on each card's bottom edge. */
  align-items: stretch;
  gap: var(--s-4);
  margin-top: var(--s-2);
  padding-block: var(--s-2);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 0;
  scrollbar-width: none;
}
.cases::-webkit-scrollbar { display: none; }
/* Fade the edge only where more cards are hidden (app.js sets data-more-before / data-more-after). */
.cases {
  -webkit-mask-image: linear-gradient(to right, var(--fade-start, black), black var(--s-6), black calc(100% - var(--s-7)), var(--fade-end, black));
  mask-image: linear-gradient(to right, var(--fade-start, black), black var(--s-6), black calc(100% - var(--s-7)), var(--fade-end, black));
}
.cases[data-more-before] { --fade-start: transparent; }
.cases[data-more-after] { --fade-end: transparent; }
/* Mouse users can drag the row (app.js); touch scrolls natively. */
@media (hover: hover) and (pointer: fine) {
  .cases { cursor: grab; }
}
.cases.is-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.cases.is-dragging .case { pointer-events: none; }
.cases > .case { scroll-snap-align: start; }
.cases .case__link { margin-top: auto; }
.cases:focus-visible { outline-offset: calc(var(--s-1) * -1); }

@media (min-width: 600px) and (max-width: 959px) {
  .cases { grid-auto-columns: calc((100% - 2 * var(--gutter) - var(--s-3)) / 2.1); }
}
@media (min-width: 960px) {
  .case--featured {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas: "head points" "metric points" "kpis tracks";
    align-items: start;
    column-gap: var(--s-6);
    row-gap: var(--s-5);
  }
  .case--featured .case__head { grid-area: head; }
  .case--featured .case__metric { grid-area: metric; }
  .case--featured .case__kpis { grid-area: kpis; }
  .case--featured .case__points { grid-area: points; align-self: center; gap: var(--s-3); }
  .case--featured .case__tracks { grid-area: tracks; }
  .cases {
    grid-auto-columns: calc((100% - 2 * var(--s-4)) / 2.6);
    gap: var(--s-4);
  }
}

/* ==========================================================================================
   Contact band (green) and footer (green, continues the band).
   ========================================================================================== */

/* Contact: one packed card. The question and its line on the left, the two direct links on the
   right (no repeat of the hero's buttons). */
.contact-band { padding-block: var(--section-y) 0; }
.contact-band__inner {
  display: grid;
  gap: var(--s-4);
  align-items: center;
}
.contact-band h2 {
  font-size: var(--t-lg);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.contact-band__lead {
  margin-top: var(--s-2);
  color: var(--muted);
  font-size: var(--t-lead);
}
.contact-band__links { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-5); }
.contact-band__links a {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  min-height: 44px;
  color: var(--brand);
  font-weight: 600;
  text-decoration: none;
}
.contact-band__links a:hover { text-decoration: underline; }
@media (min-width: 768px) {
  .contact-band__inner { grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--s-6); }
}

/* Footer: one card. Name and role with the icon links, then a hairline and the legal line at the
   very bottom (copyright, Privacy, Terms, analytics switch, back to top). */
.site-footer {
  padding-block: var(--section-y) var(--s-5);
  color: var(--muted);
  font-size: var(--t-xs);
  line-height: 1.5;
}
.site-footer__inner { display: grid; gap: var(--s-4); }
.site-footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: var(--s-1) var(--s-5);
}
.site-footer__brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: var(--s-2);
  min-height: 44px;
  color: var(--ink);
  font-size: var(--t-md);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.site-footer__role { color: var(--brand); font-weight: 600; }
.site-footer .social { margin-top: var(--s-2); }
@media (min-width: 768px) {
  .site-footer__top { grid-template-columns: minmax(0, 1fr) auto; }
  .site-footer__role { grid-row: 2; }
  .site-footer .social { grid-column: 2; grid-row: 1 / span 2; margin-top: 0; }
}
.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 var(--s-5);
  padding-top: var(--s-3);
  border-top: 1px solid var(--line);
}
.site-footer__legal ul { display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--s-5); }
.site-footer__legal a,
.footer-top,
.footer-item,
.link-button {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  min-height: 44px;
  color: var(--muted);
  text-decoration: none;
  transition: color var(--dur-1) var(--ease);
}
.site-footer__top .footer-item { min-height: 0; }
.site-footer__legal .icon,
.footer-item .icon { color: var(--brand); }
.site-footer__legal a:hover,
.link-button:hover { color: var(--ink); text-decoration: underline; }
.link-button {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.link-button[hidden] { display: none; }


/* ==========================================================================================
   Legal and offline pages: one readable column.
   ========================================================================================== */

.offline,
.legal {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding: var(--section-y) var(--gutter);
}
.offline > *,
.legal > * { max-width: 64ch; }
.offline h1,
.legal h1 {
  font-size: var(--t-xl);
  letter-spacing: -0.035em;
  line-height: 1.05;
}
.offline p { margin-top: var(--s-4); }
.offline p:first-of-type { margin-top: var(--s-5); }
.legal__date { margin-top: var(--s-3); color: var(--muted); font-size: var(--t-xs); }
.legal h2 {
  margin-top: var(--s-7);
  font-size: var(--t-md);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.legal h3 { margin-top: var(--s-5); font-size: var(--t-base); font-weight: 600; letter-spacing: -0.011em; }
.legal p,
.legal ul { margin-top: var(--s-3); }
.legal ul { padding-left: 1.25em; list-style: disc; }
.legal code { font-size: 0.9em; }
.legal li + li { margin-top: var(--s-2); }

[data-theme="mono"] img { filter: grayscale(1); }

/* ==========================================================================================
   Motion: the final state is the default; movement exists only when motion is allowed.
   ========================================================================================== */

@media (prefers-reduced-motion: no-preference) {
  /* The bento tiles rise in, one after another. */
  .bento > * { animation: rise 600ms var(--ease) both; }
  .bento > :nth-child(2) { animation-delay: 70ms; }
  .bento > :nth-child(3) { animation-delay: 140ms; }
  .bento > :nth-child(4) { animation-delay: 210ms; }
  .bento > :nth-child(5) { animation-delay: 280ms; }

  /* The bars grow along the axis in the order the roles started. */
  .lane__bar { animation: grow 900ms var(--ease) both; animation-delay: calc(500ms + var(--i) * 110ms); }

  /* Scroll reveal: app.js adds .js-reveal to <html>, then .is-in as each card enters the screen. */
  .js-reveal .reveal {
    opacity: 0;
    transform: translateY(var(--s-5));
    transition: opacity 600ms ease, transform 600ms var(--ease);
  }
  .js-reveal .reveal.is-in { opacity: 1; transform: none; }

  /* One interaction recipe for the whole site: hover lifts 1px (pointer devices only),
     a press settles back with a slight scale, icons inside links nudge 2px. */
  @media (hover: hover) {
    .button:hover,
    .carousel__button:hover:not(:disabled),
    .social a:hover,
    .theme-switch button:hover,
    .hero__skills li:hover { transform: translateY(-1px); }
    .card-lift:hover,
    .js-reveal .reveal.is-in.card-lift:hover { transform: translateY(calc(var(--s-1) * -1)); }
    .button:hover .icon,
    .case__link a:hover .icon { transform: translateX(2px); }
    .footer-top:hover .icon { transform: translateY(-2px); }
    .hero__skills li:hover .icon { animation: var(--live) 500ms var(--ease); }
    /* Every other icon: a small pop when its link, button or card is hovered. */
    .social a:hover .icon,
    .clients__list a:hover .icon,
    .contact-band__links a:hover .icon,
    .site-footer__legal a:hover .icon,
    .link-button:hover .icon,
    .theme-switch button:hover::before,
    .proof__item:hover .icon,
    .service:hover .icon-tile .icon,
    .case:hover .case__head .icon,
    .bento-tile:hover .card-label .icon,
    .profile__facts li:hover .icon { animation: icon-pop 420ms var(--ease); }

  }
  .button:active,
  .carousel__button:active:not(:disabled),
  .social a:active,
  .theme-switch button:active,
  .hero__skills li:active { transform: scale(.98); transition-duration: var(--dur-1); }
  .hero__skills li:is(:focus-visible, .is-live) .icon { animation: var(--live) 500ms var(--ease); }

  @keyframes icon-pop {
    40% { transform: scale(1.18) rotate(-6deg); }
    70% { transform: scale(.96) rotate(2deg); }
  }
  @keyframes live-pulse {
    50% { transform: scale(1.12); }
  }
  @keyframes live-tilt {
    30% { transform: rotate(-8deg); }
    65% { transform: rotate(5deg); }
  }
  @keyframes live-twinkle {
    50% { transform: scale(1.1) rotate(8deg); opacity: .7; }
  }
  @keyframes live-shake {
    25% { transform: translateX(-2px); }
    50% { transform: translateX(2px); }
    75% { transform: translateX(-1px); }
  }
  @keyframes live-turn {
    to { transform: rotate(90deg); }
  }
  @keyframes live-grow {
    0% { transform: scaleY(.6); }
    60% { transform: scaleY(1.12); }
  }
  @keyframes live-write {
    25% { transform: translateX(-2px) rotate(-6deg); }
    50% { transform: translateX(2px) rotate(4deg); }
    75% { transform: translateX(-1px) rotate(-2deg); }
  }
  /* "Target hit": the logo pops and a ring runs out from it as each arrow lands (app.js). */
  .site-header .site-logo { border-radius: 50%; }
  .site-header .site-logo.is-hit { animation: hit 640ms var(--ease); }
  @keyframes hit {
    0% { transform: scale(1); outline: 0 solid var(--accent); }
    30% { transform: scale(1.15); outline: 3px solid var(--accent); }
    100% { transform: scale(1); outline: 10px solid transparent; }
  }
  /* The phone number wipes in from the left after a hold. */
  .is-revealed { animation: wipe-in 520ms var(--ease) both; }
  @keyframes wipe-in {
    from { clip-path: inset(0 100% 0 0); filter: blur(3px); }
    to { clip-path: inset(0 0 0 0); filter: none; }
  }
  @keyframes rise {
    from { opacity: 0; transform: translateY(var(--s-4)); }
  }
  @keyframes grow {
    from { transform: scaleX(0); }
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after { animation: none; transition: none; }
}
