/* IBM Plex Sans Arabic — self-hosted (SIL OFL 1.1, see fonts/OFL-LICENSE.txt). Weights 400 + 700 only: 500 renders as 400 and 600 as 700 (CSS font matching), halving font bytes. */
@font-face { font-family: "IBM Plex Sans Arabic"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/plex-arabic-arabic-400.woff2") format("woff2"); unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0898-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC,U+102E0-102FB,U+10E60-10E7E,U+10EFD-10EFF,U+1EE00-1EE03,U+1EE05-1EE1F,U+1EE21-1EE22,U+1EE24,U+1EE27,U+1EE29-1EE32,U+1EE34-1EE37,U+1EE39,U+1EE3B,U+1EE42,U+1EE47,U+1EE49,U+1EE4B,U+1EE4D-1EE4F,U+1EE51-1EE52,U+1EE54,U+1EE57,U+1EE59,U+1EE5B,U+1EE5D,U+1EE5F,U+1EE61-1EE62,U+1EE64,U+1EE67-1EE6A,U+1EE6C-1EE72,U+1EE74-1EE77,U+1EE79-1EE7C,U+1EE7E,U+1EE80-1EE89,U+1EE8B-1EE9B,U+1EEA1-1EEA3,U+1EEA5-1EEA9,U+1EEAB-1EEBB,U+1EEF0-1EEF1; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/plex-arabic-latin-400.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+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/plex-arabic-arabic-700.woff2") format("woff2"); unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0898-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC,U+102E0-102FB,U+10E60-10E7E,U+10EFD-10EFF,U+1EE00-1EE03,U+1EE05-1EE1F,U+1EE21-1EE22,U+1EE24,U+1EE27,U+1EE29-1EE32,U+1EE34-1EE37,U+1EE39,U+1EE3B,U+1EE42,U+1EE47,U+1EE49,U+1EE4B,U+1EE4D-1EE4F,U+1EE51-1EE52,U+1EE54,U+1EE57,U+1EE59,U+1EE5B,U+1EE5D,U+1EE5F,U+1EE61-1EE62,U+1EE64,U+1EE67-1EE6A,U+1EE6C-1EE72,U+1EE74-1EE77,U+1EE79-1EE7C,U+1EE7E,U+1EE80-1EE89,U+1EE8B-1EE9B,U+1EEA1-1EEA3,U+1EEA5-1EEA9,U+1EEAB-1EEBB,U+1EEF0-1EEF1; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/plex-arabic-latin-700.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+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

/* ==========================================================================
   BlueMAS 2026 — design system
   Light, warm, editorial. Motif: the faceted "MAS" (diamond) in royal → sky blue.
   ========================================================================== */

/* ---------- tokens ---------- */
:root {
  --paper: #FBFAF7;
  --paper-2: #F4F2EC;
  --surface: #FFFFFF;
  --ink: #0F1730;
  --ink-2: #2A3350;
  --muted: #5B6478;
  --line: #E6E3DA;
  --line-2: #EFEDE6;

  --royal: #2647D9;
  --royal-600: #1F3BC0;
  --royal-800: #16247A;
  --sky: #6FB8F2;
  --sky-50: #EEF6FE;
  --sky-100: #DDEEFD;
  --sand: #D59A2E;
  --sand-50: #FBF3E3;

  --emerald: #0E7A5F;  --emerald-50: #E8F6F0;  --emerald-100: #CFEDE1;
  --aqua: #08729E;     --aqua-50: #E8F6FC;     --aqua-100: #CDEBF7;  --lilac: #6E5CE0;
  --royal-50: #EEF1FE; --royal-100: #DCE3FD;

  --ok: #1E8A55; --err: #C2362B;

  --font: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, system-ui, sans-serif;

  --fs-display: clamp(2.3rem, 1.35rem + 3.9vw, 4.4rem);
  --fs-display-sm: clamp(2rem, 1.35rem + 2.6vw, 3.3rem);
  --fs-h2: clamp(1.7rem, 1.2rem + 1.9vw, 2.75rem);
  --fs-h3: clamp(1.15rem, 1.05rem + .45vw, 1.4rem);
  --fs-lead: clamp(1.05rem, 1rem + .35vw, 1.25rem);
  --fs-body: 1.0625rem;
  --fs-small: .9rem;

  --r-sm: 10px; --r: 16px; --r-lg: 24px; --r-xl: 32px;
  --shadow-1: 0 1px 2px rgba(15, 23, 48, .05), 0 2px 8px rgba(15, 23, 48, .04);
  --shadow-2: 0 2px 4px rgba(15, 23, 48, .04), 0 12px 32px -8px rgba(22, 36, 122, .14);
  --shadow-3: 0 24px 60px -20px rgba(22, 36, 122, .28);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(4rem, 2.5rem + 6vw, 8rem);
  --header-h: 72px;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font); font-size: var(--fs-body); line-height: 1.85;
  font-feature-settings: "kern"; text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--royal); text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { color: var(--royal-800); }
h1, h2, h3, h4 { margin: 0; line-height: 1.3; font-weight: 700; letter-spacing: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--royal); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--sky-100); color: var(--ink); }
.en { font-weight: 500; color: var(--muted); font-size: .62em; letter-spacing: .02em; white-space: nowrap; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--royal); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 12px; color: #fff; }
main { display: block; outline: none; }
.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }
.ic { flex: none; }

/* ---------- type ---------- */
.display { font-size: var(--fs-display); line-height: 1.22; font-weight: 700; letter-spacing: -.005em; }
.display-sm { font-size: var(--fs-display-sm); line-height: 1.25; }
.h2 { font-size: var(--fs-h2); line-height: 1.3; }
.h3 { font-size: var(--fs-h3); }
.lead { font-size: var(--fs-lead); color: var(--muted); line-height: 1.8; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .55em;
  font-size: .88rem; font-weight: 600; color: var(--royal); margin-bottom: 1rem; letter-spacing: .01em;
}
.eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: currentColor; opacity: .7; }
.eyebrow-light { color: #fff; }
.text-link { display: inline-flex; align-items: center; gap: .45em; font-weight: 600; text-decoration: none; }
.text-link .ic { transition: transform .25s var(--ease); }
.text-link:hover .ic { transform: translateX(-4px); }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--surface); --fg: var(--ink); --bd: var(--line);
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: .7em 1.35em; border-radius: 999px; border: 1px solid var(--bd);
  background: var(--bg); color: var(--fg); font-weight: 600; font-size: 1rem; line-height: 1.2;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s, color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); color: var(--fg); box-shadow: var(--shadow-2); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn .ic { transition: transform .25s var(--ease); }
.btn:hover .ic:last-child { transform: translateX(-3px); }
.btn-primary { --bg: var(--royal); --fg: #fff; --bd: var(--royal); }
.btn-primary:hover { --bg: var(--royal-600); }
.btn-ghost { --bg: transparent; --fg: var(--ink); --bd: color-mix(in srgb, var(--ink) 18%, transparent); }
.btn-ghost:hover { --bg: var(--surface); }
.btn-light { --bg: #fff; --fg: var(--royal-800); --bd: #fff; }
.btn-outline-light { --bg: transparent; --fg: #fff; --bd: rgba(255,255,255,.5); }
.btn-outline-light:hover { --bg: rgba(255,255,255,.12); --fg: #fff; }
.btn-lg { min-height: 54px; padding-inline: 1.6em; font-size: 1.04rem; }
.btn-sm { min-height: 40px; padding: .45em 1.1em; font-size: .92rem; }
.linklike { background: none; border: 0; padding: 0; color: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px -18px rgba(15, 23, 48, .35); }
.header-row { display: flex; align-items: center; gap: 20px; min-height: var(--header-h); }
.brand { display: inline-flex; flex: none; color: var(--ink); text-decoration: none; }
.logo { width: 168px; height: auto; }
.logo text { font-family: var(--font); }
.nav { display: flex; align-items: center; gap: 18px; margin-inline-start: auto; }
.nav-list { display: flex; align-items: center; gap: 2px; list-style: none; }
.has-menu .nav-link { padding-inline-end: .2em; }
.nav-link {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 .7em; border-radius: 10px;
  color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: .97rem; white-space: nowrap; position: relative;
}
.nav-link:hover { color: var(--royal); background: var(--sky-50); }
.nav-link.is-active { color: var(--royal); }
.nav-link.is-active::after { content: ""; position: absolute; inset-inline: .7em; bottom: 6px; height: 2px; border-radius: 2px; background: var(--sand); }
.has-menu { position: relative; display: flex; align-items: center; }
.menu-toggle {
  display: inline-grid; place-items: center; width: 28px; height: 28px; margin-inline-start: 0;
  border: 0; background: none; border-radius: 8px; color: var(--muted); cursor: pointer;
}
.menu-toggle svg { transition: transform .2s; }
.menu-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.menu {
  position: absolute; top: calc(100% + 10px); inset-inline-start: -12px; width: 330px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-3);
  padding: 10px; display: grid; gap: 4px;
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s, transform .2s var(--ease), visibility .2s;
}
.has-menu.is-open .menu, .has-menu:focus-within .menu { opacity: 1; visibility: visible; transform: none; }
@media (hover: hover) and (min-width: 1181px) { .has-menu:hover .menu { opacity: 1; visibility: visible; transform: none; } }
.menu-item { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 14px; text-decoration: none; color: var(--ink); }
.menu-item:hover { background: var(--paper); color: var(--ink); }
.menu-item strong { display: block; font-size: 1rem; }
.menu-item small { display: block; color: var(--muted); font-size: .85rem; line-height: 1.5; }
.menu-dot { width: 12px; height: 12px; margin-top: 7px; border-radius: 4px; transform: rotate(45deg); background: var(--accent, var(--royal)); flex: none; }
.menu-all { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; margin-top: 4px; border-top: 1px solid var(--line-2); font-weight: 600; text-decoration: none; font-size: .95rem; }
.nav-cta { min-height: 44px; }
.burger { display: none; margin-inline-start: auto; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; place-items: center; }
.progress { position: absolute; inset-inline: 0; bottom: -1px; height: 2px; pointer-events: none; }
.progress span { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--sky), var(--royal)); transform-origin: right; transform: scaleX(0); }

@media (max-width: 1180px) {
  .burger { display: inline-grid; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
    flex-direction: column; align-items: stretch; gap: 14px; padding: 16px var(--gutter) 24px;
    background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 30px 40px -30px rgba(15,23,48,.3);
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .2s, transform .2s var(--ease), visibility .2s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list > li { border-bottom: 1px solid var(--line-2); }
  .nav-link { min-height: 52px; font-size: 1.05rem; width: 100%; }
  .nav-link.is-active::after { display: none; }
  .has-menu { flex-wrap: wrap; }
  .has-menu .nav-link { flex: 1; width: auto; }
  .menu-toggle { width: 44px; height: 44px; }
  .menu { position: static; width: 100%; box-shadow: none; border: 0; padding: 0 0 8px; display: none; opacity: 1; visibility: visible; transform: none; background: transparent; }
  .has-menu.is-open .menu { display: grid; }
  .has-menu:focus-within:not(.is-open) .menu { display: none; }
  .nav-cta { width: 100%; }
  body.nav-locked { overflow: hidden; }
}

/* ---------- breadcrumbs ---------- */
.crumbs { padding-top: 18px; font-size: .9rem; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-inline-end: 6px; color: var(--line); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--royal); }

/* ---------- sections ---------- */
.section { padding-block: var(--section); position: relative; }
.section-head { margin-bottom: clamp(2.2rem, 1.5rem + 2vw, 3.5rem); }
.section-head.center { text-align: center; max-width: 760px; margin-inline: auto; }
.section-head.center .eyebrow { justify-content: center; }
.section-head.center .lead { margin-top: 1rem; }
.section-head.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 2rem 4rem; align-items: end; }
@media (max-width: 860px) { .section-head.split { grid-template-columns: 1fr; } }

/* ---------- hero ---------- */
.hero { position: relative; padding-block: clamp(2.5rem, 1.5rem + 4vw, 5.5rem) clamp(3.5rem, 2rem + 5vw, 7rem); overflow: clip; }
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 70% at 15% 30%, rgba(111, 184, 242, .28), transparent 70%),
    radial-gradient(40% 50% at 85% 0%, rgba(213, 154, 46, .10), transparent 70%),
    linear-gradient(180deg, var(--paper), var(--paper));
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 1rem + 3vw, 4rem); align-items: center; }
.hero-eyebrow { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: .4em 1em; box-shadow: var(--shadow-1); }
.hero-eyebrow::before { display: none; }
.hero-eyebrow .dot { width: 8px; height: 8px; border-radius: 3px; transform: rotate(45deg); background: var(--sand); }
.hero h1 { margin-bottom: 1.4rem; }
.hero h1 { background: linear-gradient(100deg, var(--ink) 30%, var(--royal-800) 60%, var(--royal) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
@supports not (background-clip: text) { .hero h1 { color: var(--ink); } }
.hero-lead { font-size: var(--fs-lead); color: var(--muted); max-width: 40em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2rem; }
.hero-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; list-style: none; margin-top: 2.6rem; border-top: 1px solid var(--line); }
.hero-facts li { padding: 1.1rem 0 0; padding-inline-end: 1rem; }
.hero-facts li + li { padding-inline-start: 1rem; border-inline-start: 1px solid var(--line); }
.hero-facts strong { display: block; font-size: 1.02rem; color: var(--ink); }
.hero-facts span { display: block; font-size: .88rem; color: var(--muted); line-height: 1.6; }
.hero-visual { position: relative; }
.hero-art { width: 100%; max-width: 600px; margin-inline: auto; direction: ltr; }
.hero-art text { font-family: var(--font); }
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 460px; margin-inline: auto; width: 100%; }
}
@media (max-width: 520px) {
  .hero-facts { grid-template-columns: 1fr; }
  .hero-facts li, .hero-facts li + li { padding: .9rem 0; border-inline-start: 0; border-bottom: 1px solid var(--line-2); }
  .hero-actions .btn { flex: 1 1 100%; }
}

/* motion for hero art: decorative float only — nothing starts hidden, so the art is complete even if animations never run */
@media (prefers-reduced-motion: no-preference) {
  .ha-diamond { transform-box: fill-box; transform-origin: center; animation: ha-float 7s ease-in-out infinite; }
}
@keyframes ha-float { 50% { transform: translateY(-8px); } }

/* ---------- about ---------- */
.about { background: var(--surface); border-block: 1px solid var(--line-2); }
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 1rem + 4vw, 5rem); }
.about-intro { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; }
.about-intro .lead { margin-block: 1.2rem 1.6rem; }
.about-points { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 0 2.5rem; }
.about-points li { padding-block: 1.6rem; border-top: 1px solid var(--line); }
.about-points .num { font-size: .85rem; font-weight: 600; color: var(--sand); letter-spacing: .08em; }
.about-points h3 { font-size: var(--fs-h3); margin-block: .35rem .4rem; }
.about-points p { color: var(--muted); }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } .about-intro { position: static; } }
@media (max-width: 560px) { .about-points { grid-template-columns: 1fr; } }

/* ---------- product themes ---------- */
.theme-emerald { --accent: var(--emerald); --accent-50: var(--emerald-50); --accent-100: var(--emerald-100); --accent-ink: #0B3B2E; }
.theme-royal   { --accent: var(--royal);   --accent-50: var(--royal-50);   --accent-100: var(--royal-100);   --accent-ink: #101B5C; }
.theme-aqua    { --accent: var(--aqua);    --accent-50: var(--aqua-50);    --accent-100: var(--aqua-100);    --accent-ink: #08405A; }
.btn-product { --bg: var(--accent, var(--royal)); --fg: #fff; --bd: var(--accent, var(--royal)); }
.btn-product:hover { --bg: var(--accent-ink, var(--royal-800)); --bd: var(--accent-ink, var(--royal-800)); }

/* ---------- products ---------- */
.products { background: linear-gradient(180deg, var(--paper) 0%, var(--sky-50) 100%); }
.product-stack { display: grid; gap: clamp(1.5rem, 1rem + 2vw, 2.5rem); }
.pcard {
  display: grid; grid-template-columns: 1.05fr .95fr; align-items: stretch; gap: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden;
  box-shadow: var(--shadow-1); transition: box-shadow .35s var(--ease), transform .35s var(--ease);
}
.pcard:hover { box-shadow: var(--shadow-3); transform: translateY(-3px); }
.pcard.is-flip .pcard-body { order: 2; }
.pcard-body { padding: clamp(1.6rem, 1rem + 2.5vw, 3.2rem); display: flex; flex-direction: column; }
.pcard-kicker { display: flex; align-items: center; gap: .8em; color: var(--accent); font-weight: 600; font-size: .92rem; }
.pcard-index { font-size: .8rem; letter-spacing: .1em; color: var(--accent); background: var(--accent-50); border-radius: 999px; padding: .2em .7em; }
.pcard-title { font-size: clamp(1.7rem, 1.3rem + 1.5vw, 2.5rem); margin-block: .8rem .4rem; color: var(--accent-ink); }
.pcard-tagline { font-size: var(--fs-lead); font-weight: 500; color: var(--ink-2); margin-bottom: 1rem; }
.pcard-summary { color: var(--muted); }
.pcard-feats { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: .55rem 1.2rem; margin-block: 1.5rem 2rem; }
.pcard-feats li { display: flex; gap: .5em; align-items: flex-start; font-size: .96rem; line-height: 1.6; }
.pcard-feats .ic { color: var(--accent); margin-top: .25em; }
.pcard-actions { margin-top: auto; }
.pcard-visual {
  position: relative; display: grid; place-items: center; padding: clamp(1.5rem, 1rem + 2vw, 3rem);
  background:
    radial-gradient(70% 60% at 50% 40%, var(--surface) 0%, transparent 70%),
    linear-gradient(160deg, var(--accent-50), var(--accent-100));
}
.pcard-visual::before {
  content: ""; position: absolute; inset: 18px; border-radius: calc(var(--r-xl) - 10px);
  border: 1px dashed color-mix(in srgb, var(--accent) 25%, transparent);
}
.pcard-visual .art, .pcard-visual img { position: relative; width: 100%; max-width: 440px; border-radius: var(--r); }
.art { direction: ltr; }
@media (prefers-reduced-motion: no-preference) {
  .pcard .art { transition: transform .6s var(--ease); }
  .pcard:hover .art { transform: scale(1.03) rotate(-.5deg); }
}
@media (max-width: 900px) {
  .pcard { grid-template-columns: 1fr; }
  .pcard.is-flip .pcard-body { order: 0; }
  .pcard-visual { order: -1; min-height: 220px; }
}
@media (max-width: 480px) { .pcard-feats { grid-template-columns: 1fr; } .pcard-actions .btn { width: 100%; white-space: normal; } }

/* ---------- story / timeline ---------- */
.story { background: var(--paper); }
.timeline { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.5rem; position: relative; counter-reset: tl; }
.timeline::before {
  content: ""; position: absolute; top: 22px; inset-inline: 22px; height: 2px;
  background: linear-gradient(270deg, var(--royal), var(--sky) 70%, var(--sand));
  opacity: .5;
}
.tl-step { position: relative; }
.tl-marker { width: 46px; height: 46px; display: grid; place-items: center; position: relative; z-index: 1; }
.tl-marker::before {
  content: ""; position: absolute; inset: 6px; transform: rotate(45deg); border-radius: 8px;
  background: var(--surface); border: 2px solid var(--royal); box-shadow: 0 0 0 6px var(--paper);
}
.tl-step:last-child .tl-marker::before { background: var(--royal); }
.tl-marker span { position: relative; font-weight: 700; font-size: .9rem; color: var(--royal); }
.tl-step:last-child .tl-marker span { color: #fff; }
.tl-body { margin-top: 1.2rem; }
.tl-date { font-size: .85rem; color: var(--sand); font-weight: 600; }
.tl-body h3 { font-size: 1.12rem; margin-bottom: .45rem; }
.tl-body p { color: var(--muted); font-size: .97rem; line-height: 1.75; }
@media (max-width: 960px) {
  .timeline { grid-template-columns: 1fr; gap: 0; }
  .timeline::before { top: 22px; bottom: 22px; inset-inline-start: 22px; inset-inline-end: auto; width: 2px; height: auto; background: linear-gradient(180deg, var(--sand), var(--sky) 40%, var(--royal)); }
  .tl-step { display: grid; grid-template-columns: 46px 1fr; gap: 1.2rem; padding-bottom: 1.8rem; }
  .tl-body { margin-top: .4rem; }
}

/* ---------- services ---------- */
.services { background: var(--surface); border-block: 1px solid var(--line-2); }
.services-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 1rem + 4vw, 5rem); }
.services-intro { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; }
.services-intro .lead { margin-block: 1.2rem 1.8rem; }
.service-list { list-style: none; border-top: 1px solid var(--line); }
.service {
  display: grid; grid-template-columns: auto 1fr auto; gap: 1.2rem; align-items: start;
  padding: 1.6rem .5rem; border-bottom: 1px solid var(--line); border-radius: 4px;
  transition: background-color .25s, padding .3s var(--ease);
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.service:hover, .service:target { background: linear-gradient(270deg, var(--sky-50), transparent); padding-inline-start: 1.1rem; }
.service-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 16px; background: var(--sky-50); color: var(--royal); transition: background-color .25s, color .25s; }
.service:hover .service-icon { background: var(--royal); color: #fff; }
.service h3 { font-size: var(--fs-h3); margin-bottom: .3rem; }
.service p { color: var(--muted); }
.service-n { font-size: .85rem; color: var(--line); font-weight: 700; letter-spacing: .08em; padding-top: .3rem; }
.service:hover .service-n { color: var(--sand); }
@media (max-width: 900px) { .services-grid { grid-template-columns: 1fr; } .services-intro { position: static; } }
@media (max-width: 480px) { .service { grid-template-columns: auto 1fr; } .service-n { display: none; } }

/* ---------- clients ---------- */
.clients { background: var(--paper); }
.client-grid { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden; background: var(--surface); }
.client {
  position: relative; min-height: 150px; padding: 1.6rem; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  border-inline-start: 1px solid var(--line); border-top: 1px solid var(--line);
  transition: background-color .3s;
}
.client:nth-child(3n + 1) { border-inline-start: 0; }
.client:nth-child(-n + 3) { border-top: 0; }
.client::after {
  content: ""; position: absolute; width: 10px; height: 10px; top: 14px; inset-inline-end: 14px; transform: rotate(45deg) scale(.6);
  border-radius: 2px; background: var(--sand); opacity: 0; transition: opacity .3s, transform .3s var(--ease);
}
.client:hover { background: var(--sky-50); }
.client:hover::after { opacity: 1; transform: rotate(45deg) scale(1); }
.client-type { font-size: .78rem; font-weight: 600; color: var(--muted); letter-spacing: .12em; margin-bottom: .3rem; }
.client-name { font-size: clamp(1.15rem, 1rem + .7vw, 1.55rem); font-weight: 700; color: var(--ink); line-height: 1.4; }
.client img { max-height: 72px; width: auto; filter: grayscale(1); opacity: .85; transition: filter .3s, opacity .3s; }
.client:hover img { filter: none; opacity: 1; }
@media (max-width: 760px) {
  .client-grid { grid-template-columns: 1fr 1fr; }
  .client, .client:nth-child(3n + 1), .client:nth-child(-n + 3) { border-inline-start: 1px solid var(--line); border-top: 1px solid var(--line); }
  .client:nth-child(2n + 1) { border-inline-start: 0; }
  .client:nth-child(-n + 2) { border-top: 0; }
  .client { min-height: 120px; padding: 1.2rem .8rem; }
}

/* ---------- why ---------- */
.why { background: linear-gradient(180deg, var(--paper), var(--surface)); }
.why-grid { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.why-item {
  padding: 1.6rem; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line);
  transition: border-color .3s, transform .3s var(--ease), box-shadow .3s;
}
.why-item:hover { border-color: var(--royal-100); transform: translateY(-3px); box-shadow: var(--shadow-2); }
.why-item h3 { font-size: 1.12rem; margin-block: 1rem .4rem; }
.why-item p { color: var(--muted); font-size: .97rem; line-height: 1.75; }
.why-facet { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--sand-50); color: var(--sand); }
.why-item.is-feature {
  grid-column: span 2; grid-row: span 2; display: flex; flex-direction: column; justify-content: flex-end;
  background: linear-gradient(150deg, var(--royal) 0%, #3D63EC 55%, var(--sky) 130%); color: #fff; border: 0; min-height: 260px;
  position: relative; overflow: hidden;
}
.why-item.is-feature::before {
  content: ""; position: absolute; width: 260px; height: 260px; top: -70px; inset-inline-end: -60px; transform: rotate(45deg);
  border: 1px solid rgba(255,255,255,.35); border-radius: 36px;
}
.why-item.is-feature h3 { font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem); }
.why-item.is-feature p { color: rgba(255,255,255,.88); font-size: 1.05rem; }
.why-item.is-feature .why-facet { background: rgba(255,255,255,.16); color: #fff; }
@media (max-width: 1000px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .why-grid { grid-template-columns: 1fr; } .why-item.is-feature { grid-column: auto; grid-row: auto; min-height: 0; } }

/* ---------- credentials ---------- */
.credentials { background: var(--surface); border-top: 1px solid var(--line-2); }
.cred-wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 1rem + 3vw, 4rem); align-items: center; }
.cred-intro p:not(.eyebrow) { color: var(--muted); margin-top: 1rem; }
.cred-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cred-card {
  position: relative; padding: 1.8rem 1.6rem 1.6rem; border-radius: var(--r-lg);
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    linear-gradient(140deg, var(--sky-100), var(--line) 40%, var(--sand-50)) border-box;
  border: 1px solid transparent; box-shadow: var(--shadow-1);
}
.cred-card::after {
  content: ""; position: absolute; inset-inline: 1.6rem; top: 0; height: 3px; border-radius: 0 0 3px 3px;
  background: linear-gradient(90deg, var(--sand), var(--royal));
}
.cred-icon { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--sky-50); color: var(--royal); margin-bottom: 1rem; }
.cred-card h3 { font-size: 1.12rem; }
.cred-label { color: var(--muted); font-size: .88rem; margin-top: .9rem; }
.cred-num { font-size: 1.45rem; font-weight: 700; letter-spacing: .04em; color: var(--royal-800); font-variant-numeric: tabular-nums; text-align: right; }
.cred-link { display: inline-flex; align-items: center; gap: .4em; margin-top: 1rem; font-weight: 600; font-size: .94rem; text-decoration: none; }
@media (max-width: 900px) { .cred-wrap { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .cred-cards { grid-template-columns: 1fr; } }

/* ---------- lead / form ---------- */
.lead-section { padding-block: var(--section); }
.lead-wrap {
  display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(1.5rem, 1rem + 3vw, 3.5rem); align-items: start;
  background: linear-gradient(150deg, var(--royal) 0%, #3459E4 55%, #5E9FEF 120%);
  border-radius: var(--r-xl); padding: clamp(1.5rem, 1rem + 3vw, 3.5rem); color: #fff; position: relative; overflow: hidden;
  max-width: calc(1240px - 2 * var(--gutter)); width: calc(100% - 2 * var(--gutter));
}
.lead-wrap::before {
  content: ""; position: absolute; width: 420px; height: 420px; bottom: -220px; inset-inline-start: -160px; transform: rotate(45deg);
  border: 1px solid rgba(255,255,255,.22); border-radius: 60px; pointer-events: none;
}
.lead-intro { position: relative; padding-top: .5rem; }
.lead-intro h2 { color: #fff; }
.lead-intro > p:not(.eyebrow) { color: rgba(255,255,255,.88); margin-top: 1rem; font-size: var(--fs-lead); }
.lead-steps { list-style: none; display: grid; gap: .8rem; margin-block: 2rem; }
.lead-steps li { display: flex; align-items: center; gap: .9rem; color: #fff; font-weight: 500; }
.lead-steps span { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 10px; background: rgba(255,255,255,.16); font-weight: 700; }
.lead-direct { display: flex; flex-wrap: wrap; gap: 10px; }
.lead-direct a { display: inline-flex; align-items: center; gap: .5em; padding: .55em 1em; border-radius: 999px; background: rgba(255,255,255,.14); color: #fff; text-decoration: none; font-weight: 600; min-height: 44px; }
.lead-direct a:hover { background: rgba(255,255,255,.24); color: #fff; }
.lead-card { position: relative; background: var(--surface); color: var(--ink); border-radius: var(--r-lg); padding: clamp(1.25rem, 1rem + 1.5vw, 2.2rem); box-shadow: 0 30px 60px -30px rgba(10, 20, 80, .55); }
@media (max-width: 960px) { .lead-wrap { grid-template-columns: 1fr; } }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1rem; }
.field { display: flex; flex-direction: column; gap: .4rem; min-width: 0; border: 0; padding: 0; margin: 0; }
.field-wide { grid-column: 1 / -1; }
.field label, .field legend { font-weight: 600; font-size: .95rem; color: var(--ink-2); padding: 0; }
.req { color: var(--err); }
.opt { color: var(--muted); font-weight: 400; font-size: .85rem; }
.field input[type="text"], .field input[type="tel"], .field input[type="email"], .field select, .field textarea {
  width: 100%; min-height: 50px; padding: .65em .9em; border-radius: 12px; border: 1px solid var(--line); background: var(--paper);
  transition: border-color .2s, box-shadow .2s, background-color .2s; font-size: 1rem;
}
.field textarea { min-height: 120px; resize: vertical; line-height: 1.7; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5' fill='none' stroke='%235B6478' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: left .9em center; padding-inline-end: .9em; padding-inline-start: 2.4em; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #CFCBBE; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--royal); background: #fff; box-shadow: 0 0 0 4px rgba(38, 71, 217, .14); }
.field input[aria-invalid="true"], .field select[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--err); background: #FFF8F7; }
.field-error { color: var(--err); font-size: .88rem; line-height: 1.5; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; min-height: 44px; padding: .4em 1.1em; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); font-weight: 500; transition: all .2s; }
.chip input:checked + span { background: var(--royal); border-color: var(--royal); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--royal); outline-offset: 2px; }
.check { display: flex; gap: .7em; align-items: flex-start; font-weight: 400 !important; line-height: 1.7; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: .3em; accent-color: var(--royal); flex: none; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 1.6rem; }
.form-note { margin-top: 1rem; color: var(--muted); font-size: .86rem; line-height: 1.7; }
.form-alert { background: #FFF4F2; color: var(--err); border: 1px solid #F3C9C3; border-radius: 12px; padding: .7em 1em; margin-bottom: 1rem; font-size: .95rem; }
.hp { position: absolute !important; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
[data-submit] { position: relative; }
.btn-busy { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; animation: spin .8s linear infinite; }
[data-submit].is-busy .btn-busy { display: inline-block; }
[data-submit].is-busy { pointer-events: none; opacity: .85; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-success { text-align: center; padding: 2.5rem 1rem; outline: none; }
.form-success h3 { font-size: 1.5rem; margin-block: 1rem .5rem; }
.form-success p { color: var(--muted); }
.form-success .ref { margin-top: 1rem; color: var(--ink); }
.success-mark { display: inline-grid; place-items: center; width: 68px; height: 68px; border-radius: 22px; background: #E7F6EE; color: var(--ok); }
@media (prefers-reduced-motion: no-preference) { .form-success .success-mark { animation: pop .5s var(--ease); } }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } .form-foot .btn { width: 100%; } }

/* ---------- faq ---------- */
.faq { background: var(--paper); }
.faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 1rem + 4vw, 5rem); }
.faq-intro p:not(.eyebrow) { color: var(--muted); margin-top: 1rem; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.25rem .2rem;
  cursor: pointer; list-style: none; font-weight: 600; font-size: 1.06rem; line-height: 1.6;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--royal); }
.faq-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); flex: none; transition: transform .3s var(--ease), background-color .2s; }
.faq-item[open] .faq-icon { transform: rotate(45deg); background: var(--royal); color: #fff; border-color: var(--royal); }
.faq-a { padding: 0 .2rem 1.4rem; color: var(--muted); max-width: 62ch; }
@media (max-width: 860px) { .faq-wrap { grid-template-columns: 1fr; } }

/* ---------- inner pages ---------- */
.page-hero { padding-block: clamp(2.2rem, 1.5rem + 3vw, 4.5rem) clamp(1rem, .5rem + 2vw, 2.5rem); position: relative; }
.page-hero::after { content: ""; display: block; height: 1px; margin-top: clamp(2rem, 1rem + 3vw, 3.5rem); background: linear-gradient(270deg, var(--royal), var(--sky) 30%, transparent); max-width: 1240px; margin-inline: auto; }
.page-hero h1 { max-width: 20em; }
.page-lead { font-size: var(--fs-lead); color: var(--muted); max-width: 46em; margin-top: 1.2rem; }

/* product page */
.phero { padding-block: clamp(2rem, 1rem + 3vw, 4rem) clamp(3rem, 2rem + 4vw, 6rem); background: linear-gradient(180deg, var(--paper), var(--accent-50) 130%); }
.phero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 1rem + 3vw, 4rem); align-items: center; }
.phero .eyebrow { color: var(--accent); }
.phero h1 { color: var(--accent-ink); }
.phero-tagline { font-size: clamp(1.15rem, 1rem + .7vw, 1.5rem); font-weight: 600; color: var(--ink-2); margin-block: 1rem .8rem; }
.phero-lead { color: var(--muted); font-size: var(--fs-lead); }
.phero-audience { margin-top: 1.6rem; padding: 1rem 1.2rem; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); font-size: .97rem; }
.phero-visual { margin: 0; padding: clamp(1rem, .5rem + 2vw, 2rem); border-radius: var(--r-xl); background: linear-gradient(160deg, var(--surface), var(--accent-100)); border: 1px solid var(--line); }
.phero-visual .art, .phero-visual img { width: 100%; border-radius: var(--r); }
.phero-visual figcaption { margin-top: .8rem; text-align: center; font-size: .82rem; color: var(--muted); }
@media (max-width: 900px) { .phero-grid { grid-template-columns: 1fr; } .phero-visual { max-width: 520px; width: 100%; margin-inline: auto; } }
@media (max-width: 520px) { .phero .hero-actions .btn { width: 100%; white-space: normal; } }

.problem { background: var(--surface); border-block: 1px solid var(--line-2); }
.problem-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(1.5rem, 1rem + 4vw, 5rem); }
.problem-body p { color: var(--ink-2); font-size: var(--fs-lead); line-height: 1.95; }
.problem-body p + p { margin-top: 1.2rem; }
@media (max-width: 860px) { .problem-grid { grid-template-columns: 1fr; } }

.features { background: var(--paper); }
.feature-grid { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.feature { padding: 1.4rem; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); transition: border-color .25s, transform .25s var(--ease); }
.feature:hover { border-color: var(--accent-100); transform: translateY(-2px); }
.feature-mark { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: var(--accent-50); color: var(--accent); }
.feature h3 { font-size: 1.06rem; margin-block: .8rem .3rem; }
.feature p { color: var(--muted); font-size: .96rem; line-height: 1.7; }
@media (max-width: 960px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .feature-grid { grid-template-columns: 1fr; } }

.usecases { background: var(--surface); }
.uc-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(1.5rem, 1rem + 4vw, 5rem); }
.uc-list { list-style: none; counter-reset: uc; display: grid; gap: 12px; }
.uc-list li { counter-increment: uc; position: relative; padding: 1.2rem 1.4rem; padding-inline-start: 4rem; border-radius: var(--r); background: var(--paper); border: 1px solid var(--line-2); color: var(--ink-2); }
.uc-list li::before { content: counter(uc); position: absolute; inset-inline-start: 1.2rem; top: 1.15rem; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; background: var(--sand-50); color: var(--sand); font-weight: 700; font-size: .9rem; }
@media (max-width: 860px) { .uc-grid { grid-template-columns: 1fr; } }

.reqs { padding-block: 0 var(--section); background: var(--surface); }
.reqs-card { display: flex; gap: 1.4rem; align-items: flex-start; padding: clamp(1.4rem, 1rem + 2vw, 2.2rem); border-radius: var(--r-xl); background: var(--paper); border: 1px dashed #D8D3C4; max-width: calc(1240px - 2 * var(--gutter)); width: calc(100% - 2 * var(--gutter)); }
.reqs-icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: var(--surface); color: var(--royal); border: 1px solid var(--line); flex: none; }
.reqs-card ul { margin-top: .6rem; padding-inline-start: 1.2rem; color: var(--ink-2); }
.reqs-card li + li { margin-top: .4rem; }
@media (max-width: 520px) { .reqs-card { flex-direction: column; } }

.related { padding-top: 0; }
.related h2 { margin-bottom: 1.4rem; }
.related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.related-card { display: flex; flex-direction: column; gap: .4rem; padding: 1.4rem; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); border-top: 3px solid var(--accent, var(--sand)); transition: transform .25s var(--ease), box-shadow .25s; }
.related-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); color: var(--ink); }
.related-card strong { font-size: 1.12rem; color: var(--accent-ink, var(--ink)); }
.related-card span:last-child { color: var(--muted); font-size: .93rem; line-height: 1.7; }
.related-kicker { font-size: .8rem; font-weight: 600; color: var(--accent, var(--sand)); }
@media (max-width: 960px) { .related-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .related-grid { grid-template-columns: 1fr; } }

/* works + contact */
.works { background: var(--surface); border-top: 1px solid var(--line-2); }
.works-grid { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.work { padding: 1.6rem; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--paper); display: flex; flex-direction: column; gap: .5rem; }
.work-kind { font-size: .8rem; font-weight: 600; color: var(--royal); background: var(--sky-50); border-radius: 999px; padding: .2em .8em; align-self: flex-start; }
.work h3 { font-size: 1.25rem; }
.work p { color: var(--muted); flex: 1; }
@media (max-width: 860px) { .works-grid { grid-template-columns: 1fr; } }
.contact-cards { padding-top: 0; }
.contact-grid { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.contact-card { display: flex; flex-direction: column; gap: .6rem; padding: 1.6rem; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.contact-card p { color: var(--muted); flex: 1; font-size: .96rem; }
.contact-card .btn { align-self: flex-start; }
.contact-card.is-wa { background: linear-gradient(160deg, #F1FBF5, var(--surface)); border-color: #CDEBDA; }
.contact-icon { display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: var(--sky-50); color: var(--royal); }
.is-wa .contact-icon { background: #E3F6EA; color: #1E8A55; }
@media (max-width: 1000px) { .contact-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .contact-grid { grid-template-columns: 1fr; } }

/* prose */
.prose-section { padding-top: 1rem; }
.prose { max-width: 820px; }
.prose h2 { font-size: 1.4rem; margin-block: 2.2rem .8rem; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul { padding-inline-start: 1.3rem; display: grid; gap: .5rem; }
.prose-meta { color: var(--muted); font-size: .9rem; margin-bottom: 1.5rem; }

/* ---------- footer ---------- */
.site-footer { background: var(--paper-2); border-top: 1px solid var(--line); padding-bottom: 2rem; margin-top: 0; }
.footer-cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem;
  transform: translateY(-50%); margin-bottom: -1.5rem;
  background: linear-gradient(120deg, var(--royal-800), var(--royal) 50%, #4A7BEE);
  color: #fff; border-radius: var(--r-xl); padding: clamp(1.4rem, 1rem + 2vw, 2.4rem) clamp(1.4rem, 1rem + 3vw, 3rem);
  box-shadow: var(--shadow-3);
}
.footer-cta-title { font-size: clamp(1.3rem, 1rem + 1.2vw, 1.9rem); font-weight: 700; line-height: 1.4; }
.footer-cta .eyebrow { margin-bottom: .4rem; }
.footer-cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 2rem; padding-top: 1rem; }
.footer-about p { color: var(--muted); margin-block: 1rem; font-size: .96rem; }
.footer-contact { list-style: none; display: grid; gap: .3rem; }
.footer-contact a { display: inline-flex; align-items: center; gap: .55em; min-height: 40px; color: var(--ink-2); text-decoration: none; font-weight: 500; }
.footer-contact a:hover { color: var(--royal); }
.footer-h { font-weight: 700; margin-bottom: .8rem; font-size: 1rem; }
.site-footer nav ul { list-style: none; display: grid; gap: .1rem; }
.site-footer nav a { display: inline-flex; align-items: center; gap: .4em; min-height: 36px; color: var(--muted); text-decoration: none; font-size: .96rem; }
.site-footer nav a:hover { color: var(--royal); }
.footer-trust { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 2.4rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.trust-chip { display: inline-flex; align-items: center; gap: .6em; padding: .55em 1em; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); font-size: .9rem; text-decoration: none; min-height: 44px; }
a.trust-chip:hover { border-color: var(--royal-100); color: var(--royal); }
.trust-chip .ic { color: var(--royal); }
.trust-chip strong { font-variant-numeric: tabular-nums; letter-spacing: .03em; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 1.6rem; color: var(--muted); font-size: .88rem; }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 1.2rem; list-style: none; }
.footer-bottom a, .footer-bottom .linklike { color: var(--muted); text-decoration: none; font-size: .88rem; }
.footer-bottom a:hover, .footer-bottom .linklike:hover { color: var(--royal); }
.brand-light .logo-ar { fill: var(--muted); }
@media (max-width: 1000px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-about { grid-column: 1 / -1; } }
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-cta { transform: translateY(-30%); }
  .footer-cta-actions, .footer-cta-actions .btn { width: 100%; }
}

/* ---------- consent ---------- */
.consent {
  position: fixed; z-index: 60; inset-inline: 16px; bottom: 16px; max-width: 560px; margin-inline-start: auto;
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 1rem 1.2rem; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-3); font-size: .92rem; line-height: 1.7;
}
.consent p { flex: 1 1 280px; color: var(--ink-2); }
.consent-actions { display: flex; gap: 8px; }
@media (max-width: 560px) {
  .consent { inset-inline: 10px; bottom: 10px; padding: .75rem .9rem; font-size: .84rem; line-height: 1.6; gap: 8px; }
  .consent p { flex-basis: 100%; }
  .consent-actions { width: 100%; }
  .consent-actions .btn { flex: 1; min-height: 40px; }
}

/* ---------- reveal (progressive enhancement; content is visible without JS) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js-reveal [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0s); }
  .js-reveal [data-reveal].is-in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------- print ---------- */
@media print {
  .site-header, .consent, .footer-cta, .lead-section, .burger { display: none !important; }
  body { background: #fff; }
}

/* why: balance the last row of the bento on wide screens */
@media (min-width: 1001px) { .why-item:nth-child(n+6) { grid-column: span 2; } }
