/* ==========================================================================
   All Tech 360 — public site stylesheet
   1. Fonts   2. Tokens   3. Base   4. Layout   5. Typography   6. Components
   7. Sections   8. Content (prose)   9. Forms   10. Utilities & a11y
   ========================================================================== */

/* 1. Fonts — self-hosted variable font, one file per subset ---------------- */
@font-face {
  font-family: "Jakarta";
  src: url("../fonts/plus-jakarta-sans-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
  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: "Jakarta";
  src: url("../fonts/plus-jakarta-sans-latin-ext.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* 2. Tokens ----------------------------------------------------------------- */
:root {
  --navy-950: #060b1a;
  --navy-900: #0a1328;
  --navy-800: #101c3b;
  --navy-700: #182850;
  --navy-600: #24386b;
  --ink: #0f172a;
  --charcoal: #1f2937;
  --slate-700: #344054;
  --slate-600: #475467;
  --slate-500: #667085;
  --slate-400: #98a2b3;
  --slate-300: #d0d5dd;
  --slate-200: #e4e7ec;
  --slate-100: #eef1f6;
  --slate-50: #f6f8fb;
  --white: #fff;
  --blue-700: #1a4fd6;
  --blue-600: #2563eb;
  --blue-500: #3b7bff;
  --blue-100: #e6eeff;
  --blue-50: #f2f6ff;
  --cyan-400: #00afef;
  --green-600: #0f8a5f;
  --red-600: #c9362b;

  --font: "Jakarta", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", Menlo, Consolas, monospace;

  --fs-xs: .75rem;
  --fs-sm: .875rem;
  --fs-base: 1.0625rem;
  --fs-lg: 1.1875rem;
  --fs-h3: clamp(1.125rem, 1rem + .4vw, 1.3125rem);
  --fs-h2: clamp(1.75rem, 1.25rem + 1.9vw, 2.75rem);
  --fs-h1: clamp(2.2rem, 1.35rem + 3.4vw, 4.1rem);
  --fs-display: clamp(2.3rem, 1.3rem + 3.4vw, 4rem);

  --space-section: clamp(4rem, 2.5rem + 6vw, 7.5rem);
  --gutter: clamp(1rem, .5rem + 2.5vw, 2rem);
  --container: 1240px;
  --reading: 46rem;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 8px 24px -12px rgba(15, 23, 42, .18);
  --shadow-lg: 0 2px 4px rgba(15, 23, 42, .04), 0 24px 48px -20px rgba(10, 19, 40, .35);
  --ring: 0 0 0 3px rgba(37, 99, 235, .35);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 84px;
}

/* 3. Base ------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.7;
  color: var(--slate-700);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}
img, picture, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--blue-600); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--blue-700); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
hr { border: 0; border-top: 1px solid var(--slate-200); margin: 2.5rem 0; }
::selection { background: var(--blue-100); color: var(--ink); }
:focus-visible { outline: 3px solid var(--blue-500); outline-offset: 3px; border-radius: 4px; }
.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* 4. Layout ----------------------------------------------------------------- */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.container--reading { max-width: calc(var(--reading) + var(--gutter) * 2); }
.section { padding-block: var(--space-section); position: relative; }
.section--tight { padding-block: clamp(3rem, 2rem + 3vw, 4.5rem); }
.section--tint { background: var(--slate-50); }
.section--dark { background: var(--navy-900); color: #c5cde0; }
.section--dark h2, .section--dark h3, .section--dark .h2 { color: var(--white); }
.section + .section--plain:not(.section--tint):not(.section--dark) { padding-top: 0; }
.section--tint + .section--tint { padding-top: 0; }
.grid { display: grid; gap: clamp(1.25rem, .8rem + 1.5vw, 2rem); }
.split { display: grid; gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--reverse > :first-child { order: 2; }
}
.stack > * + * { margin-top: var(--stack, 1rem); }

/* 5. Typography ------------------------------------------------------------- */
h1, h2, h3, h4, .h1, .h2, .h3 { color: var(--ink); font-weight: 700; line-height: 1.15; margin: 0 0 .6em; letter-spacing: -.02em; text-wrap: balance; }
h1, .h1 { font-size: var(--fs-h1); font-weight: 750; letter-spacing: -.035em; line-height: 1.06; }
h2, .h2 { font-size: var(--fs-h2); letter-spacing: -.03em; }
h3, .h3 { font-size: var(--fs-h3); line-height: 1.3; letter-spacing: -.015em; }
h4 { font-size: 1.0625rem; letter-spacing: -.01em; }
p { margin: 0 0 1.1em; }
.lead { font-size: var(--fs-lg); color: var(--slate-600); line-height: 1.65; }
.muted { color: var(--slate-500); }
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--mono); font-size: var(--fs-xs); font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--blue-600); margin: 0 0 1.1rem;
}
.eyebrow::before { content: ""; width: 1.75rem; height: 1px; background: currentColor; opacity: .6; }
.section--dark .eyebrow, .hero .eyebrow, .band .eyebrow { color: var(--cyan-400); }
.section-head { max-width: 44rem; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head p:last-child { margin-bottom: 0; }
.section-head--row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1.5rem; max-width: none; }
.section-head--row > div { max-width: 44rem; }
.text-accent { background: linear-gradient(92deg, var(--blue-500), var(--cyan-400)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* 6. Components ------------------------------------------------------------- */

/* Buttons */
.btn {
  --btn-bg: var(--blue-600); --btn-fg: var(--white); --btn-bd: var(--blue-600);
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding: .7rem 1.35rem; border-radius: 999px;
  border: 1px solid var(--btn-bd); background: var(--btn-bg); color: var(--btn-fg);
  font-size: .95rem; font-weight: 650; line-height: 1.2; letter-spacing: -.005em; text-decoration: none; white-space: nowrap;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn:hover { --btn-bg: var(--blue-700); --btn-bd: var(--blue-700); color: var(--btn-fg); transform: translateY(-1px); box-shadow: 0 10px 24px -12px rgba(37, 99, 235, .7); }
.btn:active { transform: translateY(0); }
.btn .icon { width: 1.05em; height: 1.05em; transition: transform .2s var(--ease); }
.btn:hover .icon { transform: translateX(2px); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--slate-300); }
.btn--ghost:hover { --btn-bg: var(--slate-50); --btn-bd: var(--slate-400); --btn-fg: var(--ink); box-shadow: none; }
.btn--light { --btn-bg: var(--white); --btn-fg: var(--navy-900); --btn-bd: var(--white); }
.btn--light:hover { --btn-bg: #e9eefb; --btn-bd: #e9eefb; --btn-fg: var(--navy-900); }
.btn--outline-light { --btn-bg: transparent; --btn-fg: var(--white); --btn-bd: rgba(255, 255, 255, .35); }
.btn--outline-light:hover { --btn-bg: rgba(255, 255, 255, .08); --btn-bd: rgba(255, 255, 255, .6); --btn-fg: var(--white); box-shadow: none; }
.btn--sm { min-height: 40px; padding: .5rem 1rem; font-size: .875rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.link-arrow { display: inline-flex; align-items: center; gap: .4rem; font-weight: 650; text-decoration: none; }
.link-arrow .icon { width: 1em; height: 1em; transition: transform .2s var(--ease); }
.link-arrow:hover .icon { transform: translateX(3px); }

/* Skip link */
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 1000; background: var(--ink); color: var(--white); padding: .75rem 1rem; border-radius: var(--radius-sm); text-decoration: none; }
.skip-link:focus { top: 1rem; color: var(--white); }

/* Top bar */
.topbar { background: var(--navy-950); color: #9aa6c2; font-size: var(--fs-sm); }
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 40px; }
.topbar a { color: #c9d2e8; text-decoration: none; }
.topbar a:hover { color: var(--white); }
.topbar__list { display: flex; flex-wrap: wrap; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
.topbar__list li { display: inline-flex; align-items: center; gap: .45rem; }
.topbar .icon { width: 1rem; height: 1rem; color: var(--cyan-400); }
.topbar__social { display: flex; gap: .25rem; }
.topbar__social a { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; }
.topbar__social a:hover { background: rgba(255, 255, 255, .08); }
@media (max-width: 760px) { .topbar__hide-sm { display: none !important; } }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .97); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.site-header.is-scrolled { border-bottom-color: var(--slate-200); box-shadow: 0 6px 24px -18px rgba(15, 23, 42, .35); }
.site-header .container { display: flex; align-items: center; gap: 1.5rem; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { height: 56px; width: auto; max-width: 180px; object-fit: contain; }
@media (max-width: 760px) { .brand img { height: 46px; } }
.brand__text { font-weight: 800; font-size: 1.25rem; color: var(--ink); letter-spacing: -.03em; text-decoration: none; }
.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: .15rem; list-style: none; margin: 0; padding: 0; }
.nav__link {
  display: inline-flex; align-items: center; gap: .3rem; padding: .55rem .8rem; border-radius: 999px; border: 0; background: none;
  color: var(--charcoal); font-size: .9375rem; font-weight: 600; text-decoration: none; letter-spacing: -.005em;
}
.nav__link:hover, .nav__item.is-open > .nav__link { color: var(--blue-600); background: var(--blue-50); }
.nav__link[aria-current="page"], .nav__link.is-active { color: var(--blue-600); }
.nav__link .icon { width: .9rem; height: .9rem; transition: transform .2s; }
.nav__item { position: relative; }
.nav__item.is-open > .nav__link .icon { transform: rotate(180deg); }
.nav__panel {
  position: absolute; top: calc(100% + 10px); left: 50%; translate: -50% 0; width: min(640px, 90vw);
  background: var(--white); border: 1px solid var(--slate-200); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: .75rem; display: grid; grid-template-columns: 1fr 1fr; gap: .25rem;
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .18s, visibility .18s;
}
.nav__item.is-open > .nav__panel { opacity: 1; visibility: visible; transform: none; }
.nav__panel a { display: flex; gap: .85rem; padding: .8rem .9rem; border-radius: var(--radius); text-decoration: none; color: var(--ink); }
.nav__panel a:hover { background: var(--slate-50); }
.nav__panel .nav__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--blue-50); color: var(--blue-600); flex: none; }
.nav__panel strong { display: block; font-size: .9375rem; font-weight: 650; line-height: 1.3; }
.nav__panel small { display: block; color: var(--slate-500); font-size: .8125rem; line-height: 1.45; margin-top: .15rem; }
.nav__panel-footer { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; padding: .85rem .9rem .35rem; margin-top: .25rem; border-top: 1px solid var(--slate-100); font-size: var(--fs-sm); }
.header-actions { display: flex; align-items: center; gap: .5rem; }
.icon-btn { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--slate-200); background: var(--white); color: var(--ink); }
.icon-btn:hover { border-color: var(--slate-300); background: var(--slate-50); }
.nav-toggle { display: none; }

@media (max-width: 1080px) {
  .nav, .header-cta { display: none; }
  /* Without the desktop nav, the action buttons must be pushed to the right edge themselves */
  .header-actions { margin-left: auto; }
  .nav-toggle { display: grid; background: var(--ink); border-color: var(--ink); color: var(--white); }
  .nav-toggle:hover { background: var(--blue-600); border-color: var(--blue-600); }
}
@media (max-width: 760px) {
  :root { --header-h: 68px; }
  .site-header .container { gap: .75rem; }
  .brand img { height: 42px; }
  .header-actions { gap: .4rem; }
  .icon-btn { width: 42px; height: 42px; }
  /* Top bar: phone on the left, email as an icon on the right */
  .topbar .container { min-height: 36px; font-size: .8125rem; }
  .topbar__list { gap: 1rem; }
  .topbar__mobile-mail { display: inline-flex !important; }
}
@media (max-width: 360px) {
  .brand img { height: 36px; }
  .icon-btn { width: 40px; height: 40px; }
}

/* Mobile navigation */
.mobile-nav { position: fixed; inset: 0; z-index: 100; background: rgba(6, 11, 26, .5); display: none; }
.mobile-nav.is-open { display: block; }
.mobile-nav__panel { position: absolute; inset: 0 0 0 auto; width: min(420px, 100%); background: var(--white); display: flex; flex-direction: column; overflow-y: auto; animation: slideIn .25s var(--ease); }
@keyframes slideIn { from { transform: translateX(24px); opacity: 0; } }
.mobile-nav__head { display: flex; align-items: center; justify-content: space-between; padding: 1rem var(--gutter); border-bottom: 1px solid var(--slate-200); }
.mobile-nav__list { list-style: none; margin: 0; padding: .5rem var(--gutter); }
.mobile-nav__list > li { border-bottom: 1px solid var(--slate-100); }
.mobile-nav__list a, .mobile-nav__list summary { display: flex; justify-content: space-between; align-items: center; padding: .95rem 0; font-weight: 650; color: var(--ink); text-decoration: none; cursor: pointer; list-style: none; }
.mobile-nav__list summary::-webkit-details-marker { display: none; }
.mobile-nav__list details[open] summary .icon { transform: rotate(180deg); }
.mobile-nav__list ul { list-style: none; padding: 0 0 .75rem .25rem; margin: 0; }
.mobile-nav__list ul a { padding: .55rem 0; font-weight: 500; color: var(--slate-600); }
.mobile-nav__foot { margin-top: auto; padding: 1.25rem var(--gutter) 2rem; display: grid; gap: .75rem; background: var(--slate-50); }
.mobile-nav__foot a:not(.btn) { color: var(--slate-700); text-decoration: none; display: flex; gap: .5rem; align-items: center; }

/* Breadcrumbs */
.breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; list-style: none; margin: 0 0 1.25rem; padding: 0; font-size: var(--fs-sm); color: var(--slate-500); }
.breadcrumbs li { display: inline-flex; align-items: center; gap: .35rem; }
.breadcrumbs li + li::before { content: ""; width: 5px; height: 5px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; rotate: 45deg; opacity: .6; margin-right: .2rem; }
.breadcrumbs a { color: inherit; text-decoration: none; }
.breadcrumbs a:hover { color: var(--blue-600); text-decoration: underline; }
.breadcrumbs [aria-current] { color: var(--ink); font-weight: 600; }
.on-dark .breadcrumbs ol { color: #8e9bbb; }
.on-dark .breadcrumbs [aria-current] { color: var(--white); }

/* Blueprint backdrop (used by hero, dark page header, CTA) */
.blueprint { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.blueprint::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 64px 64px; background-position: -1px -1px;
  mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 30%, transparent 75%);
}
.blueprint--light::before { background-image: linear-gradient(rgba(15, 23, 42, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(15, 23, 42, .045) 1px, transparent 1px); }
.dial { position: absolute; width: min(760px, 120vw); aspect-ratio: 1; color: rgba(120, 160, 255, .28); }
.dial svg { width: 100%; height: 100%; }

/* Hero */
.hero { position: relative; background: var(--navy-950); color: #b9c3db; overflow: hidden; isolation: isolate; }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(0, 175, 239, .35), transparent); }
.hero .container { position: relative; display: grid; gap: clamp(2.5rem, 1rem + 5vw, 4rem); padding-block: clamp(3.5rem, 2rem + 7vw, 7.5rem) clamp(3.5rem, 2rem + 6vw, 6.5rem); align-items: center; }
@media (min-width: 1000px) { .hero .container { grid-template-columns: 1.05fr .95fr; } }
.hero .dial { right: -14%; top: 50%; translate: 0 -50%; }
.hero__title { color: var(--white); font-size: var(--fs-display); margin-bottom: 1.5rem; }
.hero__text { font-size: var(--fs-lg); max-width: 36rem; color: #b9c3db; margin-bottom: 2rem; }
.hero__highlights { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; list-style: none; padding: 0; margin: 2.25rem 0 0; font-size: var(--fs-sm); color: #9aa6c2; }
.hero__highlights li { display: inline-flex; align-items: center; gap: .45rem; }
.hero__highlights .icon { color: var(--cyan-400); width: 1rem; height: 1rem; }
.hero__visual { position: relative; min-height: 320px; }
.hero__visual .frame--back { position: absolute; width: 62%; right: 0; top: -6%; opacity: .9; }
.hero__visual .frame--front { position: relative; width: 84%; margin-top: 12%; }
.hero__chip {
  position: absolute; left: -2%; bottom: 8%; display: flex; align-items: center; gap: .75rem;
  background: var(--white); color: var(--ink); border-radius: var(--radius); padding: .8rem 1rem; box-shadow: var(--shadow-lg); font-size: var(--fs-sm); line-height: 1.35;
}
.hero__chip strong { display: block; font-size: 1.1rem; letter-spacing: -.02em; }
.hero__chip .icon { width: 2.25rem; height: 2.25rem; padding: .5rem; border-radius: 10px; background: var(--blue-50); color: var(--blue-600); }

/* Browser frame for genuine project screenshots */
.frame { border-radius: 12px; background: #0d1631; border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7); overflow: hidden; }
.frame__bar { display: flex; align-items: center; gap: .4rem; padding: .55rem .75rem; background: #131f40; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.frame__bar i { width: 9px; height: 9px; border-radius: 50%; background: #2b3a63; }
.frame__bar span { margin-left: .5rem; font-family: var(--mono); font-size: .6875rem; color: #7d8bb0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.frame img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.frame--light { background: var(--white); border-color: var(--slate-200); box-shadow: var(--shadow); }
.frame--light .frame__bar { background: var(--slate-50); border-color: var(--slate-200); }
.frame--light .frame__bar i { background: var(--slate-300); }
.frame--light .frame__bar span { color: var(--slate-500); }

/* Page header (inner pages) */
.page-header { position: relative; background: var(--slate-50); border-bottom: 1px solid var(--slate-200); overflow: hidden; }
.page-header .container { position: relative; padding-block: clamp(2.5rem, 1.5rem + 4vw, 5rem); }
.page-header h1 { max-width: 52rem; margin-bottom: .5rem; }
.page-header .lead { max-width: 44rem; margin: 1rem 0 0; }
.page-header--dark { background: var(--navy-950); border: 0; color: #b9c3db; }
.page-header--dark h1 { color: var(--white); }
.page-header--dark .lead { color: #b9c3db; }
.page-header--dark .dial { right: -18%; top: -40%; width: min(620px, 110vw); }
.page-header__grid { display: grid; gap: 2rem; align-items: end; }
@media (min-width: 1000px) { .page-header__grid { grid-template-columns: 1fr 360px; } }
.contact-card { background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--radius-lg); padding: 1.5rem; color: #c5cde0; }
.contact-card h2 { color: var(--white); font-size: 1.125rem; margin-bottom: .75rem; }
.contact-card ul { list-style: none; padding: 0; margin: 0 0 1.25rem; display: grid; gap: .6rem; font-size: var(--fs-sm); }
.contact-card li { display: flex; gap: .6rem; align-items: center; }
.contact-card a { color: var(--white); text-decoration: none; }
.contact-card .icon { color: var(--cyan-400); width: 1.1rem; height: 1.1rem; }

/* Service rows (not cards) */
.service-rows { display: grid; border-top: 1px solid var(--slate-200); }
@media (min-width: 860px) { .service-rows { grid-template-columns: 1fr 1fr; column-gap: clamp(2rem, 4vw, 4rem); } }
.service-row { position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 1.1rem; align-items: start; padding: 1.6rem .25rem; border-bottom: 1px solid var(--slate-200); text-decoration: none; color: inherit; }
.service-row__num { font-family: var(--mono); font-size: var(--fs-xs); color: var(--slate-400); padding-top: .35rem; min-width: 1.75rem; }
.service-row__icon { display: none; }
.service-row h3 { margin: 0 0 .35rem; transition: color .2s; }
.service-row p { margin: 0; font-size: .96875rem; color: var(--slate-600); line-height: 1.6; }
.service-row__go { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--slate-200); color: var(--slate-500); transition: all .2s var(--ease); }
.service-row::before { content: ""; position: absolute; left: 0; bottom: -1px; height: 2px; width: 0; background: var(--blue-600); transition: width .35s var(--ease); }
a.service-row:hover::before { width: 100%; }
a.service-row:hover h3 { color: var(--blue-600); }
a.service-row:hover .service-row__go { background: var(--blue-600); border-color: var(--blue-600); color: var(--white); rotate: -45deg; }
.section--dark .service-rows, .section--dark .service-row { border-color: rgba(255, 255, 255, .12); }
.section--dark .service-row p { color: #9aa6c2; }

/* Numbered features */
.features-split { display: grid; gap: 2.5rem; }
@media (min-width: 960px) {
  .features-split { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 5rem; }
  .features-split .section-head { position: sticky; top: calc(var(--header-h) + 2rem); align-self: start; }
}
.feature-list { list-style: none; margin: 0; padding: 0; counter-reset: feat; }
.feature-list li { counter-increment: feat; display: grid; grid-template-columns: 3.25rem 1fr; gap: 1rem; padding: 1.75rem 0; border-top: 1px solid var(--slate-200); }
.feature-list li:last-child { border-bottom: 1px solid var(--slate-200); }
.feature-list li::before { content: counter(feat, decimal-leading-zero); font-family: var(--mono); font-size: .8125rem; font-weight: 600; color: var(--blue-600); padding-top: .3rem; }
.feature-list h3 { margin-bottom: .4rem; }
.feature-list p:last-child { margin-bottom: 0; }
.section--dark .feature-list li { border-color: rgba(255, 255, 255, .12); }
.features-icons { display: grid; gap: 2rem 2.5rem; }
@media (min-width: 700px) { .features-icons { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .features-icons { grid-template-columns: repeat(3, 1fr); } }
.feature { position: relative; padding-top: 1.25rem; border-top: 2px solid var(--slate-200); }
.feature::before { content: ""; position: absolute; top: -2px; left: 0; width: 3rem; height: 2px; background: var(--blue-600); }
.feature__icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 1rem; border-radius: 12px; background: var(--blue-50); color: var(--blue-600); }
.feature__icon .icon { width: 1.4rem; height: 1.4rem; }
.feature p:last-child { margin-bottom: 0; }
.section--dark .feature { border-color: rgba(255, 255, 255, .12); }
.section--dark .feature__icon { background: rgba(59, 123, 255, .15); color: var(--cyan-400); }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid rgba(255, 255, 255, .12); }
@media (min-width: 860px) { .stats { grid-template-columns: repeat(var(--cols, 4), 1fr); } }
.stat { padding: 2rem 1.5rem 0 0; display: flex; flex-direction: column; }
.stat + .stat { padding-left: 1.5rem; border-left: 1px solid rgba(255, 255, 255, .12); }
@media (max-width: 859px) { .stat:nth-child(odd) { border-left: 0; padding-left: 0; } .stat { padding-bottom: 1.5rem; } }
.stat__value { display: block; font-size: clamp(2.5rem, 1.6rem + 3vw, 3.75rem); font-weight: 750; letter-spacing: -.04em; line-height: 1; color: var(--white); font-variant-numeric: tabular-nums; }
.stat__value sup { font-size: .5em; vertical-align: top; color: var(--cyan-400); margin-left: .1em; top: .2em; position: relative; }
.stat__label { display: block; margin-top: .75rem; font-size: var(--fs-sm); color: #9aa6c2; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.section--plain .stats { border-color: var(--slate-200); }
.section--plain .stat + .stat { border-color: var(--slate-200); }
.section--plain .stat__value { color: var(--ink); }
.section--plain .stat__label { color: var(--slate-500); }

/* Portfolio */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.chip { display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .95rem; border-radius: 999px; border: 1px solid var(--slate-200); background: var(--white); color: var(--slate-700); font-size: var(--fs-sm); font-weight: 600; text-decoration: none; }
.chip:hover { border-color: var(--slate-400); color: var(--ink); }
.chip.is-active, .chip[aria-pressed="true"], .chip[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: var(--white); }
.chip small { opacity: .6; font-weight: 500; }
.projects { display: grid; gap: clamp(1.5rem, 1rem + 2vw, 2.5rem) clamp(1.25rem, 1rem + 1.5vw, 2rem); }
@media (min-width: 640px) { .projects { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .projects { grid-template-columns: repeat(3, 1fr); } }
.project { display: block; text-decoration: none; color: inherit; }
.project .frame { transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.project:hover .frame { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.project__meta { display: flex; justify-content: space-between; gap: 1rem; align-items: start; padding-top: 1rem; }
.project h3 { margin: 0 0 .2rem; font-size: 1.0625rem; }
.project p { margin: 0; font-size: var(--fs-sm); color: var(--slate-500); }
.project .icon { color: var(--slate-400); margin-top: .2rem; transition: color .2s, transform .2s; }
.project:hover .icon { color: var(--blue-600); transform: translate(2px, -2px); }
.project[hidden] { display: none; }

/* Testimonials */
.quotes { display: grid; gap: clamp(1.25rem, 1rem + 1.5vw, 2rem); }
@media (min-width: 860px) { .quotes { grid-template-columns: repeat(var(--cols, 2), 1fr); } }
.quote-card { position: relative; margin: 0; padding: clamp(1.5rem, 1.2rem + 1.5vw, 2.5rem); border: 1px solid var(--slate-200); border-radius: var(--radius-lg); background: var(--white); display: flex; flex-direction: column; }
.quote-card > .icon { width: 2rem; height: 2rem; color: var(--blue-600); margin-bottom: 1.25rem; stroke-width: 1.5; }
.quote-card blockquote { margin: 0 0 1.75rem; font-size: 1.125rem; line-height: 1.6; color: var(--ink); font-weight: 500; letter-spacing: -.01em; flex: 1; }
.quote-card figcaption { display: flex; align-items: center; gap: .85rem; padding-top: 1.25rem; border-top: 1px solid var(--slate-100); font-size: var(--fs-sm); }
.quote-card figcaption img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.quote-card figcaption strong { display: block; color: var(--ink); font-size: .9375rem; }
.section--dark .quote-card { background: var(--navy-800); border-color: rgba(255, 255, 255, .08); }
.section--dark .quote-card blockquote, .section--dark .quote-card strong { color: var(--white); }
.section--dark .quote-card figcaption { border-color: rgba(255, 255, 255, .08); }

/* Client logos */
.logos { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--slate-200); border-left: 1px solid var(--slate-200); }
@media (min-width: 640px) { .logos { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 960px) { .logos { grid-template-columns: repeat(5, 1fr); } }
.logos li { list-style: none; display: grid; place-items: center; padding: 1.75rem 1.25rem; border-right: 1px solid var(--slate-200); border-bottom: 1px solid var(--slate-200); min-height: 116px; }
.logos img { max-height: 54px; width: auto; max-width: 150px; object-fit: contain; filter: grayscale(1); opacity: .7; transition: filter .3s, opacity .3s; }
.logos li:hover img { filter: none; opacity: 1; }
.logos-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1.75rem; }
.logos-head h2 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.875rem); margin: 0; max-width: 36rem; }
.logos-head p { margin: 0; color: var(--slate-500); }

/* FAQ (native details/summary = accessible without JS) */
.faq { border-top: 1px solid var(--slate-200); max-width: 56rem; }
.faq details { border-bottom: 1px solid var(--slate-200); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding: 1.35rem 0; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { margin: 0; font-size: 1.0625rem; }
.faq summary .faq__icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--slate-300); flex: none; transition: all .2s; }
.faq details[open] summary .faq__icon { background: var(--ink); color: var(--white); border-color: var(--ink); rotate: 45deg; }
.faq summary:hover h3 { color: var(--blue-600); }
.faq__answer { padding: 0 3.5rem 1.5rem 0; color: var(--slate-600); }
.faq__answer p:last-child { margin: 0; }

/* Process */
.process { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: step; }
@media (min-width: 900px) { .process { grid-template-columns: repeat(var(--cols, 4), 1fr); } }
.process li { counter-increment: step; position: relative; padding: 0 1.5rem 2rem 2.75rem; }
.process li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 0; width: 2rem; height: 2rem; display: grid; place-items: center; border-radius: 50%; background: var(--white); border: 1px solid var(--slate-300); font-family: var(--mono); font-size: .6875rem; font-weight: 700; color: var(--blue-600); z-index: 1; }
.process li::after { content: ""; position: absolute; left: 1rem; top: 2rem; bottom: 0; width: 1px; background: var(--slate-200); }
@media (min-width: 900px) {
  .process li { padding: 3.25rem 1.5rem 0 0; }
  .process li::after { left: 2rem; right: 0; top: 1rem; bottom: auto; width: auto; height: 1px; }
  .process li:last-child::after { display: none; }
}
.process h3 { margin: 0 0 .4rem; font-size: 1.0625rem; }
.process p { margin: 0; font-size: .9375rem; color: var(--slate-600); }
.section--dark .process li::before { background: var(--navy-900); border-color: rgba(255, 255, 255, .2); color: var(--cyan-400); }
.section--dark .process li::after { background: rgba(255, 255, 255, .12); }
.section--dark .process p { color: #9aa6c2; }

/* Technologies */
.tech-groups { display: grid; gap: 1px; background: var(--slate-200); border: 1px solid var(--slate-200); border-radius: var(--radius-lg); overflow: hidden; }
@media (min-width: 760px) { .tech-groups { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .tech-groups { grid-template-columns: repeat(var(--cols, 4), 1fr); } }
.tech-group { background: var(--white); padding: 1.75rem; }
.tech-group h3 { font-size: .8125rem; font-family: var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--slate-500); margin-bottom: 1rem; }
.tech-group ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .45rem; }
.tech-group li { padding: .35rem .7rem; border-radius: 6px; background: var(--slate-50); border: 1px solid var(--slate-200); font-size: var(--fs-sm); font-weight: 600; color: var(--ink); }

/* Team */
.team { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.member { margin: 0; }
.member img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-lg); background: var(--slate-100); }
.member figcaption { padding-top: 1rem; }
.member strong { display: block; color: var(--ink); font-size: 1.0625rem; }
.member span { color: var(--slate-500); font-size: var(--fs-sm); }

/* Blog cards */
.posts { display: grid; gap: clamp(1.5rem, 1rem + 2vw, 2.5rem) clamp(1.25rem, 1rem + 1.5vw, 2rem); grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.post-card { display: flex; flex-direction: column; }
.post-card__media { display: block; border-radius: var(--radius); overflow: hidden; background: var(--slate-100); aspect-ratio: 16 / 10; margin-bottom: 1.1rem; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.post-card:hover .post-card__media img { transform: scale(1.03); }
.post-card__media--empty { display: grid; place-items: center; color: var(--slate-400); background: linear-gradient(135deg, var(--slate-50), var(--slate-100)); }
.post-card__meta { display: flex; flex-wrap: wrap; gap: .35rem .9rem; font-size: var(--fs-xs); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--slate-500); margin-bottom: .6rem; }
.post-card__meta a { color: var(--blue-600); text-decoration: none; }
/* Card titles are H2 on archive pages and H3 inside sections — style both the same */
.post-card :is(h2, h3) { margin-bottom: .5rem; font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem); line-height: 1.35; letter-spacing: -.015em; font-weight: 700; }
.post-card :is(h2, h3) a { color: var(--ink); text-decoration: none; background-image: linear-gradient(currentColor, currentColor); background-size: 0 1px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .3s var(--ease), color .2s; }
.post-card :is(h2, h3) a:hover { color: var(--blue-600); background-size: 100% 1px; }
.project :is(h2, h3) { margin: 0 0 .2rem; font-size: 1.0625rem; line-height: 1.35; }
.post-card p { color: var(--slate-600); font-size: .96875rem; margin-bottom: .9rem; }
.post-card .link-arrow { margin-top: auto; font-size: var(--fs-sm); }

/* CTA band */
.band { position: relative; overflow: hidden; background: var(--navy-900); color: #b9c3db; border-radius: var(--radius-lg); padding: clamp(2.25rem, 1.5rem + 3vw, 4rem); isolation: isolate; }
.band .dial { right: -22%; bottom: -70%; width: 640px; z-index: -1; }
.band h2 { color: var(--white); max-width: 34rem; }
.band p { max-width: 40rem; font-size: var(--fs-lg); }
.band__inner { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 960px) { .band__inner { grid-template-columns: 1fr auto; } }
.band--accent { background: var(--blue-600); color: #e7eeff; }
.band--accent .dial { color: rgba(255, 255, 255, .25); }
.band--plain { background: var(--slate-50); border: 1px solid var(--slate-200); color: var(--slate-600); }
.band--plain h2 { color: var(--ink); }

/* Quote section */
.big-quote { max-width: 52rem; margin: 0 auto; text-align: center; }
.big-quote blockquote { margin: 0; font-size: clamp(1.4rem, 1.1rem + 1.3vw, 2.1rem); line-height: 1.35; font-weight: 600; letter-spacing: -.02em; color: var(--ink); }
.big-quote blockquote::before { content: "“"; display: block; font-size: 4rem; line-height: .6; color: var(--blue-600); margin-bottom: 1rem; }
.big-quote figcaption { margin-top: 1.25rem; color: var(--slate-500); }
.section--dark .big-quote blockquote { color: var(--white); }

/* Media + text */
.media-text__media { position: relative; }
.media-text__media img { border-radius: var(--radius-lg); width: 100%; }
.media-text__media::after { content: ""; position: absolute; inset: auto -14px -14px auto; width: 45%; height: 45%; border-right: 1px solid var(--slate-300); border-bottom: 1px solid var(--slate-300); border-radius: 0 0 var(--radius-lg) 0; z-index: -1; }

/* Contact */
.contact-grid { display: grid; gap: clamp(2rem, 1rem + 4vw, 4.5rem); }
@media (min-width: 960px) { .contact-grid { grid-template-columns: .85fr 1.15fr; } }
.contact-details { list-style: none; margin: 1.75rem 0 0; padding: 0; display: grid; gap: 1.1rem; }
.contact-details li { display: grid; grid-template-columns: 44px 1fr; gap: .9rem; align-items: start; }
.contact-details .ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--blue-50); color: var(--blue-600); }
.contact-details span { display: block; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--slate-500); }
.contact-details a, .contact-details strong { color: var(--ink); font-weight: 600; text-decoration: none; }
.hours { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--slate-200); }
.hours h3 { font-size: 1rem; }
.hours dl { display: grid; grid-template-columns: auto 1fr; gap: .45rem 1.5rem; margin: 0; font-size: .9375rem; }
.hours dt { color: var(--slate-500); }
.hours dd { margin: 0; color: var(--ink); font-weight: 600; }
.form-card { background: var(--white); border: 1px solid var(--slate-200); border-radius: var(--radius-lg); padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); box-shadow: var(--shadow); }
.form-card h2, .form-card h3 { font-size: 1.375rem; }

/* Jobs */
.jobs { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--slate-200); }
.jobs li { border-bottom: 1px solid var(--slate-200); }
.jobs a { display: grid; gap: .35rem 2rem; padding: 1.5rem 0; text-decoration: none; color: inherit; }
@media (min-width: 760px) { .jobs a { grid-template-columns: 1fr auto auto; align-items: center; } }
.jobs h3 { margin: 0; }
.jobs a:hover h3 { color: var(--blue-600); }
.jobs .meta { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; color: var(--slate-500); font-size: var(--fs-sm); }
.jobs .meta span { display: inline-flex; align-items: center; gap: .35rem; }
.empty-state { padding: 2rem; border: 1px dashed var(--slate-300); border-radius: var(--radius-lg); text-align: center; color: var(--slate-500); background: var(--white); }

/* Pagination */
.pagination { display: flex; justify-content: center; gap: .4rem; margin-top: 3.5rem; flex-wrap: wrap; }
.pagination a, .pagination span { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 .75rem; border-radius: 999px; border: 1px solid var(--slate-200); text-decoration: none; color: var(--ink); font-weight: 600; font-size: var(--fs-sm); }
.pagination a:hover { border-color: var(--slate-400); }
.pagination [aria-current="page"] { background: var(--ink); color: var(--white); border-color: var(--ink); }

/* Footer */
.site-footer { background: var(--navy-950); color: #8f9bb8; font-size: .9375rem; }
.site-footer a { color: #c5cde0; text-decoration: none; }
.site-footer a:hover { color: var(--white); }
.footer-newsletter { border-bottom: 1px solid rgba(255, 255, 255, .08); }
.footer-newsletter .container { display: grid; gap: 1.5rem; padding-block: 2.5rem; align-items: center; }
@media (min-width: 900px) { .footer-newsletter .container { grid-template-columns: 1fr 1.1fr; } }
.footer-newsletter h2 { color: var(--white); font-size: 1.375rem; margin-bottom: .35rem; }
.footer-newsletter p { margin: 0; }
.newsletter-form { display: grid; gap: .6rem; }
.newsletter-form__row { display: flex; gap: .5rem; }
.newsletter-form input[type="email"] { flex: 1; min-width: 0; height: 50px; padding: 0 1.1rem; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .04); color: var(--white); }
.newsletter-form input[type="email"]::placeholder { color: #7b88a8; }
.newsletter-form input[type="email"]:focus { outline: none; border-color: var(--blue-500); box-shadow: var(--ring); }
.newsletter-form .consent { display: flex; gap: .5rem; align-items: start; font-size: var(--fs-xs); line-height: 1.5; color: #7b88a8; }
.newsletter-form .consent input { margin-top: .15rem; accent-color: var(--blue-500); }
.footer-main { display: grid; gap: 2.5rem; padding-block: clamp(3rem, 2rem + 3vw, 4.5rem); }
@media (min-width: 760px) { .footer-main { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .footer-main { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.footer-main h2 { color: var(--white); font-size: .8125rem; font-family: var(--mono); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1.25rem; font-weight: 600; }
.footer-main ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .65rem; }
.footer-brand img { height: 56px; width: auto; max-width: 180px; object-fit: contain; margin-bottom: 1.25rem; }
.footer-brand p { max-width: 24rem; }
.footer-contact li { display: flex; gap: .7rem; align-items: start; }
.footer-contact .icon { color: var(--cyan-400); width: 1.1rem; height: 1.1rem; margin-top: .25rem; }
.social { display: flex; gap: .5rem; margin-top: 1.25rem; }
.social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .14); }
.social a:hover { border-color: var(--white); }
.social .icon { width: 1.05rem; height: 1.05rem; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); }
.footer-bottom .container { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; padding-block: 1.5rem; font-size: var(--fs-sm); }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 1.25rem; list-style: none; margin: 0; padding: 0; }

/* 7. Sections — article, service layout, TOC -------------------------------- */
.content-layout { display: grid; gap: 3rem; }
@media (min-width: 1100px) {
  .content-layout--toc { grid-template-columns: 250px minmax(0, 1fr); gap: 4.5rem; }
  .content-layout--toc .prose { max-width: var(--reading); }
}
.toc { font-size: var(--fs-sm); }
.toc__inner { position: sticky; top: calc(var(--header-h) + 1.5rem); }
.toc details { border: 1px solid var(--slate-200); border-radius: var(--radius); padding: .9rem 1.1rem; background: var(--white); }
.toc summary { font-weight: 700; color: var(--ink); cursor: pointer; font-family: var(--mono); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .12em; }
.toc ol { list-style: none; margin: .9rem 0 0; padding: 0; display: grid; gap: .1rem; border-left: 1px solid var(--slate-200); }
.toc a { display: block; padding: .35rem 0 .35rem 1rem; margin-left: -1px; border-left: 2px solid transparent; color: var(--slate-600); text-decoration: none; line-height: 1.4; }
.toc a:hover { color: var(--ink); }
.toc a.is-active { color: var(--blue-600); border-left-color: var(--blue-600); font-weight: 600; }
.toc .lvl-3 a { padding-left: 1.75rem; font-size: .8125rem; }
@media (min-width: 1100px) { .toc details { border: 0; padding: 0; background: none; } .toc summary { pointer-events: none; list-style: none; } .toc summary::-webkit-details-marker { display: none; } }

.article-header { padding-block: clamp(2.5rem, 1.5rem + 4vw, 4.5rem) 0; }
.article-header h1 { font-size: clamp(2rem, 1.3rem + 2.8vw, 3.4rem); max-width: 56rem; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.25rem; color: var(--slate-500); font-size: var(--fs-sm); margin-top: 1.25rem; }
.article-meta span { display: inline-flex; align-items: center; gap: .4rem; }
.article-meta a { color: var(--ink); font-weight: 600; text-decoration: none; }
.article-hero { margin-top: 2.5rem; border-radius: var(--radius-lg); overflow: hidden; background: var(--slate-100); }
.article-hero img { width: 100%; max-height: 560px; object-fit: cover; }
.tags { display: flex; flex-wrap: wrap; gap: .5rem; }
.author-box { display: flex; gap: 1.25rem; align-items: center; padding: 1.5rem; border: 1px solid var(--slate-200); border-radius: var(--radius-lg); margin-top: 3rem; }
.author-box .avatar { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--blue-50); color: var(--blue-600); flex: none; font-weight: 800; }
.post-nav { display: grid; gap: 1rem; margin-top: 3rem; }
@media (min-width: 700px) { .post-nav { grid-template-columns: 1fr 1fr; } }
.post-nav a { display: block; padding: 1.25rem 1.5rem; border: 1px solid var(--slate-200); border-radius: var(--radius); text-decoration: none; color: var(--ink); font-weight: 650; }
.post-nav a:hover { border-color: var(--blue-500); }
.post-nav small { display: block; color: var(--slate-500); font-weight: 500; font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .08em; margin-bottom: .3rem; }
.post-nav .next { text-align: right; }

.sidebar-card { border: 1px solid var(--slate-200); border-radius: var(--radius-lg); padding: 1.5rem; }
.sidebar-card h2 { font-size: 1rem; margin-bottom: 1rem; }
.sidebar-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.sidebar-card a { text-decoration: none; color: var(--slate-700); }
.sidebar-card a:hover { color: var(--blue-600); }
.archive-layout { display: grid; gap: 3rem; }
@media (min-width: 1100px) { .archive-layout { grid-template-columns: minmax(0, 1fr) 280px; } .archive-layout .posts { grid-template-columns: repeat(2, 1fr); } }

/* Project detail */
.project-facts { display: grid; gap: 1px; background: var(--slate-200); border: 1px solid var(--slate-200); border-radius: var(--radius-lg); overflow: hidden; margin: 0; }
@media (min-width: 700px) { .project-facts { grid-template-columns: repeat(4, 1fr); } }
.project-facts div { background: var(--white); padding: 1.25rem 1.5rem; }
.project-facts dt { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .1em; color: var(--slate-500); font-weight: 700; margin-bottom: .35rem; }
.project-facts dd { margin: 0; color: var(--ink); font-weight: 600; word-break: break-word; }
.gallery { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.gallery img { border-radius: var(--radius); border: 1px solid var(--slate-200); }

/* 8. Prose (migrated SEO content) ----------------------------------------------- */
.prose { color: var(--slate-700); font-size: 1.0625rem; line-height: 1.8; }
.prose > * + * { margin-top: 1.15em; }
.prose p { margin: 0; }
.prose p + p { margin-top: 1.15em; }
.prose h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); margin: 2.4em 0 .7em; padding-top: .25em; }
.prose h3 { font-size: clamp(1.2rem, 1.05rem + .5vw, 1.4rem); margin: 2em 0 .55em; }
.prose h4 { margin: 1.75em 0 .5em; }
.prose > h2:first-child, .prose > h3:first-child { margin-top: 0; }
.prose strong, .prose b { color: var(--ink); font-weight: 650; }
.prose a { font-weight: 550; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li + li { margin-top: .45em; }
.prose ul li::marker { color: var(--blue-600); }
.prose ol li::marker { color: var(--blue-600); font-weight: 700; font-family: var(--mono); font-size: .875em; }
.prose img { border-radius: var(--radius); margin-block: 2rem; }
.prose figure { margin: 2rem 0; }
.prose .image-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 1rem; margin-block: 2rem; }
.prose .image-row img, .prose .image-row picture img { margin: 0; width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.prose figcaption { font-size: var(--fs-sm); color: var(--slate-500); margin-top: .6rem; text-align: center; }
.prose blockquote { margin: 2rem 0; padding: 1.25rem 1.5rem; border-left: 3px solid var(--blue-600); background: var(--blue-50); border-radius: 0 var(--radius) var(--radius) 0; color: var(--ink); font-weight: 500; }
.prose blockquote p:last-child { margin: 0; }
.prose .table-wrap { overflow-x: auto; border: 1px solid var(--slate-200); border-radius: var(--radius); margin-block: 2rem; }
.prose table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.prose th, .prose td { text-align: left; padding: .8rem 1rem; border-bottom: 1px solid var(--slate-200); vertical-align: top; }
.prose th { background: var(--slate-50); color: var(--ink); font-weight: 650; }
.prose tr:last-child td { border-bottom: 0; }
.prose code { font-family: var(--mono); font-size: .875em; background: var(--slate-100); padding: .15em .4em; border-radius: 5px; }
.prose pre { background: var(--navy-900); color: #d7def0; padding: 1.25rem; border-radius: var(--radius); overflow-x: auto; }
.prose pre code { background: none; padding: 0; }
.prose iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius); }
.prose .callout, .prose .callout-info, .prose .callout-tip { padding: 1.25rem 1.5rem; border-radius: var(--radius); background: var(--slate-50); border: 1px solid var(--slate-200); }
.prose .callout-warning { padding: 1.25rem 1.5rem; border-radius: var(--radius); background: #fff8eb; border: 1px solid #f5d9a6; }
.prose .checklist { list-style: none; padding: 0; }
.prose .checklist li { position: relative; padding-left: 1.9rem; }
.prose .checklist li::before { content: ""; position: absolute; left: 0; top: .45em; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: var(--blue-600) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 65% no-repeat; }
.prose .lead { font-size: 1.1875rem; }
.section--dark .prose { color: #c5cde0; }
.section--dark .prose strong { color: var(--white); }
.prose--compact { font-size: 1rem; line-height: 1.7; }

/* Related services */
.related { display: grid; gap: 1px; background: var(--slate-200); border: 1px solid var(--slate-200); border-radius: var(--radius-lg); overflow: hidden; }
@media (min-width: 800px) { .related { grid-template-columns: repeat(3, 1fr); } }
.related a { display: flex; flex-direction: column; gap: .5rem; background: var(--white); padding: 1.75rem; text-decoration: none; color: inherit; transition: background .2s; }
.related a:hover { background: var(--blue-50); }
.related .ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--blue-50); color: var(--blue-600); margin-bottom: .5rem; }
.related a:hover .ic { background: var(--white); }
.related h3 { margin: 0; font-size: 1.0625rem; }
.related p { margin: 0; font-size: var(--fs-sm); color: var(--slate-600); }
.related .link-arrow { margin-top: .5rem; font-size: var(--fs-sm); }

/* Search */
.search-form { display: flex; gap: .5rem; max-width: 40rem; }
.search-form input { flex: 1; height: 52px; padding: 0 1.25rem; border-radius: 999px; border: 1px solid var(--slate-300); background: var(--white); }
.search-form input:focus { outline: none; border-color: var(--blue-500); box-shadow: var(--ring); }
.result-group + .result-group { margin-top: 3rem; }
.result-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--slate-200); }
.result-list li { padding: 1.25rem 0; border-bottom: 1px solid var(--slate-200); }
.result-list a { font-weight: 650; font-size: 1.125rem; text-decoration: none; color: var(--ink); }
.result-list a:hover { color: var(--blue-600); }
.result-list p { margin: .35rem 0 0; color: var(--slate-600); font-size: .9375rem; }
.result-list small { display: block; color: var(--green-600); font-size: var(--fs-xs); margin-top: .2rem; }
.search-dialog { border: 0; padding: 0; background: transparent; width: min(680px, calc(100% - 2rem)); margin: 12vh auto auto; }
.search-dialog::backdrop { background: rgba(6, 11, 26, .6); }
.search-dialog form { background: var(--white); border-radius: var(--radius-lg); padding: 1rem; box-shadow: var(--shadow-lg); display: flex; gap: .5rem; }
.search-dialog input { flex: 1; border: 0; font-size: 1.125rem; padding: .5rem .75rem; min-width: 0; }
.search-dialog input:focus { outline: none; }

/* Error pages */
.error-page { min-height: 60vh; display: grid; align-items: center; }
.error-code { font-family: var(--mono); font-size: var(--fs-sm); color: var(--blue-600); font-weight: 700; letter-spacing: .14em; }
.error-links { display: grid; gap: .75rem; margin-top: 2.5rem; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.error-links a { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.25rem; border: 1px solid var(--slate-200); border-radius: var(--radius); text-decoration: none; color: var(--ink); font-weight: 600; }
.error-links a:hover { border-color: var(--blue-500); color: var(--blue-600); }

/* 9. Forms ---------------------------------------------------------------------- */
.form-grid { display: grid; gap: 1.1rem 1rem; }
@media (min-width: 640px) { .form-grid--2 { grid-template-columns: 1fr 1fr; } .form-grid .span-2 { grid-column: 1 / -1; } }
.field label, .field legend { display: block; font-size: var(--fs-sm); font-weight: 650; color: var(--ink); margin-bottom: .4rem; }
.field .req { color: var(--red-600); }
.field .hint { font-size: var(--fs-xs); color: var(--slate-500); margin-top: .35rem; }
.input, .field input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), .field select, .field textarea {
  width: 100%; min-height: 50px; padding: .75rem 1rem; border: 1px solid var(--slate-300); border-radius: 12px; background: var(--white); color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 150px; resize: vertical; line-height: 1.6; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue-500); box-shadow: var(--ring); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: var(--red-600); }
.field-error { color: var(--red-600); font-size: var(--fs-sm); margin: .35rem 0 0; font-weight: 500; }
.field fieldset { border: 0; padding: 0; margin: 0; }
.checks { display: flex; flex-wrap: wrap; gap: .5rem; }
.checks label { display: inline-flex; align-items: center; gap: .5rem; padding: .45rem .85rem; border: 1px solid var(--slate-300); border-radius: 999px; font-size: var(--fs-sm); font-weight: 500; color: var(--slate-700); cursor: pointer; margin: 0; }
.checks input { accent-color: var(--blue-600); }
.checks label:has(input:checked) { border-color: var(--blue-600); background: var(--blue-50); color: var(--blue-700); }
.file-input { display: flex; align-items: center; gap: .75rem; padding: .85rem 1rem; border: 1px dashed var(--slate-300); border-radius: 12px; background: var(--slate-50); font-size: var(--fs-sm); }
.file-input input { font-size: var(--fs-sm); max-width: 100%; }
/* Math security question */
.captcha label .captcha__hint { font-weight: 500; color: var(--slate-500); }
.captcha__row { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.captcha__question {
  display: inline-flex; align-items: center; min-height: 50px; padding: 0 1.1rem; border-radius: 12px;
  background: var(--slate-50); border: 1px dashed var(--slate-300); color: var(--ink);
  font-family: var(--mono); font-size: 1.15rem; font-weight: 700; letter-spacing: .08em; user-select: none;
  transition: opacity .2s;
}
.captcha.is-loading .captcha__question { opacity: .4; }
.field .captcha__input { width: 5.5rem !important; min-height: 50px; text-align: center; font-size: 1.1rem; font-weight: 700; letter-spacing: .05em; }
.captcha__refresh { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--slate-200); background: var(--white); color: var(--slate-500); cursor: pointer; transition: color .2s, border-color .2s, transform .4s var(--ease); }
.captcha__refresh:hover { color: var(--blue-600); border-color: var(--blue-500); }
.captcha__refresh svg { width: 18px; height: 18px; }
.captcha.is-loading .captcha__refresh { transform: rotate(360deg); }

/* Grid/flex children default to min-width:auto and refuse to shrink below their content
   (file inputs, long words) — this caused horizontal scrolling on phones. */
.form-grid > *, .contact-grid > *, .footer-newsletter .container > *, .split > *, .content-layout > *, .archive-layout > * { min-width: 0; }
.file-input { min-width: 0; flex-wrap: wrap; }
.file-input input[type="file"] { min-width: 0; width: 100%; flex: 1 1 180px; }
.field input, .field select, .field textarea { max-width: 100%; }
@media (max-width: 380px) {
  .newsletter-form__row { flex-wrap: wrap; }
  .newsletter-form__row .btn { width: 100%; }
  .form-card { padding: 1.25rem 1rem; }
  .checks label { font-size: .8125rem; padding: .4rem .7rem; }
}

.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { display: none; margin-top: 1rem; padding: .9rem 1.1rem; border-radius: 12px; font-size: .9375rem; font-weight: 500; }
.form-status.is-success { display: flex; gap: .6rem; background: #e8f7f0; color: #0b6b49; border: 1px solid #b7e4cf; }
.form-status.is-error { display: flex; gap: .6rem; background: #fdeeee; color: #9f2a21; border: 1px solid #f3c7c3; }
.alert { padding: 1rem 1.25rem; border-radius: 12px; margin-bottom: 1.5rem; font-weight: 500; }
.alert--success { background: #e8f7f0; color: #0b6b49; border: 1px solid #b7e4cf; }
.alert--error { background: #fdeeee; color: #9f2a21; border: 1px solid #f3c7c3; }
button[aria-busy="true"] { opacity: .7; pointer-events: none; }

/* Floating WhatsApp button ------------------------------------------------ */
.wa {
  --wa: #25d366; --wa-dark: #128c7e; --wa-size: 60px;
  position: fixed; z-index: 90; bottom: max(24px, calc(env(safe-area-inset-bottom) + 16px));
  display: flex; flex-direction: column; align-items: flex-end; gap: 14px; pointer-events: none;
}
.wa--right { right: max(24px, calc(env(safe-area-inset-right) + 16px)); }
.wa--left { left: max(24px, calc(env(safe-area-inset-left) + 16px)); align-items: flex-start; }
.wa > * { pointer-events: auto; }

/* The button: a true circle, icon optically centred */
.wa__btn {
  position: relative; display: grid; place-items: center; width: var(--wa-size); height: var(--wa-size); border-radius: 50%;
  background: linear-gradient(145deg, #2fe07a, var(--wa) 55%, #1fb457); color: #fff; text-decoration: none;
  box-shadow: 0 12px 28px -10px rgba(18, 140, 126, .75), 0 3px 8px rgba(6, 11, 26, .18), inset 0 1px 0 rgba(255, 255, 255, .35);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
/* Entrance runs on the wrapper so it never fights the button's hover transform */
.wa { animation: waIn .6s cubic-bezier(.34, 1.56, .64, 1) .6s both; transform-origin: bottom right; }
.wa--left { transform-origin: bottom left; }
.wa__icon { position: relative; z-index: 2; width: 31px; height: 31px; margin: 1px 0 0 1px; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .12)); animation: waNudge 6s ease-in-out 3.5s infinite; transform-origin: 50% 60%; }
.wa__btn:hover, .wa__btn:focus-visible { color: #fff; transform: translateY(-3px) scale(1.06); box-shadow: 0 18px 36px -10px rgba(18, 140, 126, .85), 0 4px 10px rgba(6, 11, 26, .2), inset 0 1px 0 rgba(255, 255, 255, .35); }
.wa__btn:active { transform: scale(.96); }
.wa__btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }

/* Radiating rings */
.wa__ring { position: absolute; inset: 0; z-index: 0; border-radius: 50%; border: 2px solid var(--wa); opacity: 0; animation: waRing 3s cubic-bezier(.2, .6, .35, 1) 1.4s infinite; }
.wa__ring--delay { animation-delay: 2.4s; }

/* "Online" indicator */
.wa__dot { position: absolute; z-index: 3; top: 3px; right: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
.wa__dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #16a34a; animation: waBlink 2s ease-in-out infinite; }
.wa--left .wa__dot { right: auto; left: 3px; }

/* Speech bubble */
.wa__bubble {
  position: relative; width: min(270px, calc(100vw - 48px)); padding: 14px 38px 14px 16px; border-radius: 16px 16px 4px 16px;
  background: var(--white); color: var(--ink); box-shadow: 0 18px 40px -14px rgba(6, 11, 26, .35), 0 2px 8px rgba(6, 11, 26, .08);
  border: 1px solid var(--slate-200); opacity: 0; visibility: hidden; transform: translateY(10px) scale(.96); transform-origin: bottom right;
  transition: opacity .35s var(--ease), transform .35s var(--ease), visibility .35s;
}
.wa--left .wa__bubble { border-radius: 16px 16px 16px 4px; transform-origin: bottom left; }
.wa__bubble::after { content: ""; position: absolute; bottom: -7px; right: 22px; width: 14px; height: 14px; background: var(--white); border-right: 1px solid var(--slate-200); border-bottom: 1px solid var(--slate-200); transform: rotate(45deg); }
.wa--left .wa__bubble::after { right: auto; left: 22px; }
.wa.is-bubble .wa__bubble { opacity: 1; visibility: visible; transform: none; }
.wa__bubble-link { display: block; color: inherit; text-decoration: none; }
.wa__bubble-link strong { display: flex; align-items: center; gap: .45rem; font-size: .9375rem; line-height: 1.3; }
.wa__bubble-link strong::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #16a34a; box-shadow: 0 0 0 3px rgba(22, 163, 74, .18); flex: none; }
.wa__bubble-link span { display: block; margin-top: .25rem; font-size: .8125rem; line-height: 1.45; color: var(--slate-500); }
.wa__bubble-link:hover strong { color: var(--wa-dark); }
.wa__close { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border: 0; border-radius: 50%; background: var(--slate-100); color: var(--slate-600); font-size: 1.05rem; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.wa__close:hover { background: var(--slate-200); color: var(--ink); }

@keyframes waIn { from { opacity: 0; transform: translateY(24px) scale(.4); } to { opacity: 1; transform: none; } }
@keyframes waRing { 0% { transform: scale(1); opacity: .6; } 70% { opacity: 0; } 100% { transform: scale(1.75); opacity: 0; } }
@keyframes waNudge { 0%, 86%, 100% { transform: rotate(0); } 88% { transform: rotate(-14deg); } 91% { transform: rotate(12deg); } 94% { transform: rotate(-8deg); } 97% { transform: rotate(4deg); } }
@keyframes waBlink { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.wa__btn:hover .wa__icon, .wa__btn:focus-visible .wa__icon { animation: waNudgeFast .6s ease-in-out; }
@keyframes waNudgeFast { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-14deg); } 50% { transform: rotate(12deg); } 75% { transform: rotate(-6deg); } }

@media (max-width: 480px) { .wa { --wa-size: 56px; bottom: max(18px, calc(env(safe-area-inset-bottom) + 12px)); } .wa--right { right: 16px; } .wa--left { left: 16px; } }
@media (prefers-reduced-motion: reduce) {
  .wa, .wa__btn, .wa__icon, .wa__ring, .wa__dot::after { animation: none !important; }
  .wa__ring { display: none; }
}
.mobile-nav.is-open ~ .wa { display: none; }

/* Preview ribbon (admin preview of drafts) */
.preview-bar { position: sticky; top: 0; z-index: 60; background: #fff4d6; color: #6b4a00; text-align: center; padding: .55rem 1rem; font-size: var(--fs-sm); font-weight: 600; border-bottom: 1px solid #f1d98f; }

/* 10. Utilities & accessibility ---------------------------------------------------- */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.center { text-align: center; }
.mt-0 { margin-top: 0 !important; } .mb-0 { margin-bottom: 0 !important; }
.mt-lg { margin-top: clamp(2rem, 1.5rem + 2vw, 3.5rem); }
.no-js-hide { display: none; }
.js .no-js-hide { display: revert; }

/* Subtle reveal — only when JS is running and motion is welcome */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
  .js [data-reveal].is-visible { 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; }
}
@media print {
  .topbar, .site-header, .site-footer, .toc, .band, .mobile-nav, .skip-link, .wa { display: none !important; }
  body { color: #000; }
  .prose a::after { content: " (" attr(href) ")"; font-size: .8em; }
}
