/* alylytiq.com — redesign, 2026-09.
   One stylesheet, no framework. Tokens first, then base type, then layout
   primitives, then components in the order they appear down a page. The
   palette is the Sep 2025 brand playbook; DM Sans throughout. */

/* ---------- tokens ---------- */
/* Palette: Alylytiq Brand Playbook, Sep 2025. Primary 1 and 2 carry the
   site; the six primary shades do the rest; the yellow is the one accent
   and is used sparingly; pastels appear only as tints of a shade. */
:root {
  --primary: #2cc8d4;        /* Primary 1 */
  --deep: #005f6a;           /* Primary 2 */
  --pale: #a2e1e6;           /* shade */
  --mint: #74ddd0;           /* shade */
  --mid: #4a9e9d;            /* shade - hover on teal, secondary text on light */
  --warm: #f6f1f1;           /* shade - soft section background */
  --grey: #9f9a9d;           /* shade - rules, disabled */
  --ink: #47434a;            /* shade - text */
  --yellow: #f6d258;         /* accent */
  --white: #fff;

  --primary-dark: var(--mid);
  --deep-dark: var(--deep);
  --pale-soft: color-mix(in srgb, var(--pale) 40%, white);
  --muted: color-mix(in srgb, var(--ink) 78%, white);
  --line: color-mix(in srgb, var(--grey) 40%, white);
  --soft: var(--warm);

  --font-head: "DM Sans", "Segoe UI", system-ui, sans-serif;
  --font-body: "DM Sans", "Segoe UI", system-ui, sans-serif;

  --container: 1200px;
  --gutter: 24px;
  --measure: 68ch;
  --radius: 12px;
  --radius-lg: 24px;
  --shadow: 0 1px 2px rgba(44, 50, 68, .06), 0 12px 32px -12px rgba(44, 50, 68, .18);
  --shadow-lg: 0 24px 60px -20px rgba(0, 95, 106, .35);
  --header-h: 76px;
  --section: clamp(64px, 8vw, 120px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; font-family: var(--font-body); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--white); }
img, video, svg { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.12; margin: 0 0 .5em; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(38px, 5vw, 60px); letter-spacing: -.01em; }
h2 { font-size: clamp(30px, 3.6vw, 44px); letter-spacing: -.01em; }
h3 { font-size: clamp(20px, 2vw, 24px); }
h4 { font-size: 18px; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
a { color: var(--deep); text-underline-offset: .15em; }
a:hover { color: var(--primary-dark); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 4px; }
ul, ol { padding-left: 1.2em; }
strong { font-weight: 600; }
.accent { color: var(--primary); }
.accent-deep { color: var(--deep); }
.accent-yellow { color: var(--yellow); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--ink); color: var(--white); border-radius: 8px; }
.skip:focus { top: 12px; }

/* ---------- layout primitives ---------- */
.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.narrow { max-width: 820px; margin-inline: auto; }
.section { padding-block: var(--section); }
.section--soft { background: var(--soft); }
.section--warm { background: var(--warm); }
.section--deep { background: var(--deep); color: var(--white); }
.section--deep h2, .section--deep h3, .section--deep p { color: var(--white); }
.section--teal { background: var(--primary); }
.section--teal .eyebrow, .section--teal .accent { color: var(--deep); }
.section--teal .lede { color: var(--ink); }
.section--teal .card { border-color: transparent; }
.section--teal .card__icon { background: var(--pale-soft); }
.section-head { max-width: 760px; margin: 0 auto 48px; text-align: center; }
.section-head--left { margin-inline: 0; text-align: left; }
.section-head h2 { margin-bottom: 16px; }
.eyebrow { display: inline-block; font-family: var(--font-head); font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--primary-dark); margin: 0 0 14px; }
.section--deep .eyebrow { color: var(--pale); }
.lede { font-size: 19px; line-height: 1.55; color: var(--muted); max-width: 640px; margin-inline: auto; }
.section--deep .lede { color: var(--pale-soft); }
.section-head--left .lede { margin-inline: 0; }
.grid { display: grid; gap: 28px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-head); font-size: 16px; font-weight: 600; line-height: 1; padding: 16px 28px; border-radius: 999px; background: var(--primary); color: var(--ink); border: 2px solid var(--primary); text-decoration: none; cursor: pointer; transition: transform .2s var(--ease), background .2s, color .2s, border-color .2s; }
.btn:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: var(--white); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }
.btn--light { background: var(--white); border-color: var(--white); color: var(--deep); }
.btn--light:hover { background: var(--pale); border-color: var(--pale); color: var(--deep); }
.btn--ghost-light { background: transparent; border-color: rgba(255, 255, 255, .7); color: var(--white); }
.btn--ghost-light:hover { background: var(--white); border-color: var(--white); color: var(--deep); }
.btn--sm { padding: 11px 20px; font-size: 15px; }
.link-arrow { font-family: var(--font-head); font-weight: 600; text-decoration: none; color: var(--deep); }
.link-arrow::after { content: " \2192"; transition: transform .2s var(--ease); display: inline-block; }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- header ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 8px 30px -18px rgba(44, 50, 68, .3); }
.site-header__bar { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }
.site-logo img { height: 40px; width: auto; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a { font-family: var(--font-head); font-size: 15px; font-weight: 500; color: var(--ink); text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; }
.nav a:hover { color: var(--primary-dark); }
.nav a[aria-current="page"]:not(.btn) { color: var(--primary-dark); border-color: var(--primary); }
/* ".nav a" above outranks ".btn"; restate the pill's box so it is not squashed. */
.nav a.btn { padding: 11px 20px; border: 2px solid var(--primary); line-height: 1; }
.nav a.btn:hover { border-color: var(--primary-dark); color: var(--white); }
.nav-toggle { display: none; width: 44px; height: 44px; padding: 10px; background: none; border: 0; cursor: pointer; flex-direction: column; justify-content: center; gap: 5px; }
.nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s var(--ease), opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
main { padding-top: var(--header-h); }

/* ---------- hero (home) ---------- */
.hero { position: relative; overflow: hidden; background: var(--deep); color: var(--white); min-height: min(calc(100vh - var(--header-h)), 860px); display: grid; align-items: center; isolation: isolate; }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img, .hero__media video { width: 100%; height: 100%; object-fit: cover; }
.hero__media video { position: absolute; inset: 0; }
/* The photo keeps its own colour; only the left, behind the copy, is shaded
   enough for white text to read. */
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(0, 95, 106, .62) 0%, rgba(0, 95, 106, .38) 40%, rgba(0, 95, 106, 0) 72%); }
.hero__inner { padding-block: clamp(72px, 10vw, 140px); }
.hero__text { max-width: 720px; }
.hero .eyebrow { color: var(--pale); }
.hero h1 { color: var(--white); font-size: clamp(40px, 5.6vw, 68px); margin-bottom: 22px; text-shadow: 0 2px 24px rgba(0, 95, 106, .35); }
.hero h1 .accent-yellow { color: var(--pale); }
.hero__sub { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.6; color: var(--pale-soft); max-width: 560px; margin-bottom: 34px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__proof { display: flex; flex-wrap: wrap; gap: 40px; list-style: none; margin: clamp(48px, 6vw, 80px) 0 0; padding: 28px 0 0; border-top: 1px solid rgba(255, 255, 255, .22); }
.hero__proof div { min-width: 150px; }
.hero__proof strong { display: block; font-family: var(--font-head); font-size: 34px; font-weight: 700; color: var(--white); line-height: 1.1; }
.hero__proof span { font-size: 14px; color: var(--pale-soft); }

/* ---------- Automytiq band ---------- */
.atq { background: var(--deep); color: var(--white); position: relative; overflow: hidden; }
.atq::after { content: ""; position: absolute; right: -160px; top: -160px; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(44, 200, 212, .35), transparent 65%); pointer-events: none; }
.atq__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.atq__brand { font-family: var(--font-head); font-size: clamp(40px, 5vw, 64px); font-weight: 700; color: var(--primary); letter-spacing: -.02em; line-height: 1; margin: 0 0 20px; }
.atq h2 { color: var(--white); font-size: clamp(26px, 3vw, 36px); }
.atq h2 span { color: var(--pale); }
.atq .lede { color: var(--pale-soft); margin: 0 0 28px; }
.atq__points { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.atq__point { display: grid; grid-template-columns: 48px 1fr; gap: 18px; padding: 22px 24px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--radius); }
.atq__num { width: 48px; height: 48px; border-radius: 50%; background: var(--primary); color: var(--deep-dark); font-family: var(--font-head); font-weight: 700; font-size: 18px; display: grid; place-items: center; }
.atq__point h3 { color: var(--white); font-size: 19px; margin-bottom: 6px; }
.atq__point p { color: var(--pale-soft); font-size: 15.5px; margin: 0; }

/* ---------- cards ---------- */
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 24px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px 30px; transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--pale); }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 16px; margin: 0; }
.card__num { display: inline-block; font-family: var(--font-head); font-size: 13px; font-weight: 700; letter-spacing: .1em; color: var(--primary-dark); margin-bottom: 14px; }
.card__icon { width: 56px; height: 56px; border-radius: 16px; background: var(--pale-soft); display: grid; place-items: center; margin-bottom: 20px; }
.card__icon .icon { width: 28px; height: 28px; fill: var(--deep); }
.card--link { display: block; color: inherit; text-decoration: none; }
.card--link .link-arrow { display: inline-block; margin-top: 16px; }
.section--soft .card { border-color: transparent; }

/* ---------- splits ---------- */
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 6vw, 88px); align-items: center; }
.split + .split { margin-top: clamp(64px, 8vw, 120px); }
.split--flip > .split__media { order: 2; }
.split__media { position: relative; }
.split__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); position: relative; }
.split__media::before { content: ""; position: absolute; inset: 24px -24px -24px 24px; border-radius: var(--radius-lg); background: var(--primary); opacity: .9; }
.split--flip .split__media::before { inset: 24px 24px -24px -24px; }
.split__media--teal::before { background: var(--mint); }
.split__body h2 { margin-bottom: 18px; }
.split__body p { color: var(--muted); }
.split__body .btn { margin-top: 8px; }
.split__body ul { color: var(--muted); }

/* ---------- stats ---------- */
.stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.stat { text-align: center; padding: 36px 24px; border-radius: var(--radius-lg); background: rgba(255, 255, 255, .55); }
.stat__figure { font-family: var(--font-head); font-size: clamp(44px, 5vw, 64px); font-weight: 700; color: var(--deep); line-height: 1; margin: 0 0 10px; }
.stat h2, .stat h3 { font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: var(--deep); margin-bottom: 10px; }
.stat p { font-size: 15px; color: var(--ink); margin: 0; }

/* ---------- testimonials ---------- */
.carousel { position: relative; max-width: 820px; margin: 0 auto; }
.quotes { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; list-style: none; margin: 0; padding: 0; border-radius: var(--radius-lg); }
.quotes::-webkit-scrollbar { display: none; }
.quote { flex: 0 0 100%; scroll-snap-align: start; padding: clamp(32px, 5vw, 56px); background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow); position: relative; }
.quote::before { content: "\201C"; position: absolute; top: 8px; left: 28px; font-family: var(--font-head); font-size: 110px; line-height: 1; color: var(--pale); }
.quote blockquote { margin: 0 0 24px; }
.quote blockquote p { font-size: clamp(17px, 1.4vw, 19px); line-height: 1.65; margin: 0; }
.quote__who { display: flex; align-items: center; gap: 14px; }
.quote__avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--deep); color: var(--white); font-family: var(--font-head); font-weight: 600; display: grid; place-items: center; }
.quote__who strong { display: block; font-family: var(--font-head); }
.quote__who span { font-size: 14px; color: var(--muted); }
.carousel__arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--white); color: var(--deep); box-shadow: var(--shadow); cursor: pointer; display: grid; place-items: center; }
.carousel__arrow svg { width: 12px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.carousel__arrow--prev { left: -22px; }
.carousel__arrow--next { right: -22px; }
.carousel__dots { display: flex; justify-content: center; gap: 10px; list-style: none; margin: 24px 0 0; padding: 0; }
.carousel__dots button { width: 28px; height: 6px; border: 0; border-radius: 3px; background: var(--pale); cursor: pointer; padding: 0; }
.carousel__dots button[aria-current="true"] { background: var(--primary-dark); }

/* ---------- client logos ---------- */
.logos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.logos li { display: grid; place-items: center; height: 96px; padding: 16px; background: var(--white); border-radius: var(--radius); }
.logos img { max-height: 52px; width: auto; max-width: 100%; filter: grayscale(1); opacity: .75; transition: filter .25s, opacity .25s; }
.logos li:hover img { filter: none; opacity: 1; }

/* ---------- CTA band ---------- */
.cta { background: linear-gradient(120deg, var(--deep) 0%, var(--mid) 55%, var(--primary) 100%); color: var(--white); }
.cta .split__body h2, .cta .split__body p { color: var(--white); }
.cta .split__body p { color: var(--pale-soft); }
.cta .split__media::before { background: var(--pale); }
.cta-inline { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; padding: clamp(28px, 4vw, 44px); border-radius: var(--radius-lg); background: var(--pale-soft); margin-top: 56px; }
.cta-inline h2 { font-size: 26px; margin-bottom: 8px; }
.cta-inline p { color: var(--muted); margin: 0; }

/* ---------- member strip ---------- */
.member { display: grid; grid-template-columns: auto 1fr; gap: 32px; align-items: center; padding: 32px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.member img { width: 160px; height: auto; }
.member h2 { font-size: 22px; margin-bottom: 8px; }
.member p { color: var(--muted); font-size: 16px; }

/* ---------- page head (interior) ---------- */
.page-head { padding: clamp(48px, 7vw, 96px) 0 clamp(36px, 5vw, 64px); text-align: center; }
.page-head h1 { margin-bottom: 16px; }
.page-head .lede { margin-inline: auto; }
.page-head--left { text-align: left; }
.page-head--left .lede { margin-inline: 0; }
.crumbs { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 28px; font-size: 14px; color: var(--muted); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--pale); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--primary-dark); }
.crumbs__meta { margin: 0; font-family: var(--font-head); font-weight: 500; }

/* ---------- values row ---------- */
.values { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.values li { text-align: center; padding: 28px 16px; border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--line); }
.values .icon { width: 44px; height: 44px; fill: var(--primary); margin: 0 auto 14px; }
.values h2 { font-size: 15px; letter-spacing: .12em; margin: 0; }

/* ---------- team ---------- */
.bio { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.bio + .bio { margin-top: clamp(56px, 8vw, 96px); padding-top: clamp(56px, 8vw, 96px); border-top: 1px solid var(--line); }
.bio__photo { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow); position: sticky; top: calc(var(--header-h) + 24px); }
.bio__role { font-family: var(--font-head); font-weight: 500; color: var(--primary-dark); margin-bottom: 20px; }
.bio__text p { color: var(--muted); }
.bio__text h2 { margin-bottom: 4px; }

/* ---------- posts (articles index + related) ---------- */
.feature { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; padding: clamp(24px, 3vw, 40px); border-radius: var(--radius-lg); background: var(--soft); margin-bottom: clamp(48px, 6vw, 72px); }
.feature img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); }
.feature h2 { font-size: clamp(26px, 3vw, 34px); }
.feature h2 a { color: inherit; text-decoration: none; }
.feature h2 a:hover { color: var(--primary-dark); }
.feature p { color: var(--muted); }
.feature__meta { font-family: var(--font-head); font-size: 14px; font-weight: 500; color: var(--primary-dark); margin-bottom: 12px; }
.posts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.post { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.post:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post__link { display: block; color: inherit; text-decoration: none; height: 100%; }
.post__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.post__body { display: block; padding: 22px 24px 26px; }
.post__title { display: block; font-family: var(--font-head); font-weight: 600; font-size: 19px; line-height: 1.3; margin-bottom: 10px; }
.post__excerpt { display: block; color: var(--muted); font-size: 15px; margin-bottom: 14px; }
.post__meta { display: block; font-family: var(--font-head); font-size: 13px; font-weight: 500; color: var(--primary-dark); }

/* ---------- article pages ----------
   The bodies come from extract_article.py: sections (.art-sec) built from
   Sitejet's presets. Here they read as one long-form page: a readable
   measure, generous line height, real headings, styled tables and lists. */
.art { --art-measure: 760px; }
.art-sec { padding-block: clamp(24px, 3vw, 40px); }
.art-sec:first-of-type { padding-top: clamp(20px, 3vw, 36px); }
.art-inner { width: min(100% - 2 * var(--gutter), var(--art-measure)); margin-inline: auto; }
.art h1 { font-size: clamp(34px, 4.2vw, 52px); margin-bottom: 24px; }
.art h2 { font-size: clamp(26px, 3vw, 34px); margin: 8px 0 16px; }
.art h3 { font-size: 22px; }
.art-spacer { height: 8px; }
.art-text { font-size: 18px; line-height: 1.75; }
.art-text p { margin: 0 0 1.2em; color: var(--ink); }
.art-text h2 { font-family: var(--font-head); font-size: 24px; font-weight: 600; margin: 1.4em 0 .5em; }
.art-text h3 { margin: 1.4em 0 .5em; }
.art-text .sp { height: 0; }
.art-text .sp + .sp { height: 12px; }
.art hr { border: 0; height: 1px; background: var(--line); margin: 28px 0; }
.art-text ul, .art-text ol { margin: 0 0 1.2em; padding-left: 1.3em; }
.art-text li { margin-bottom: .45em; }
.art-text li::marker { color: var(--primary-dark); }
.art-text a { color: var(--deep); }
.art .fs18 { font-size: 20px; line-height: 1.6; color: var(--muted); }
.art .color-primary { color: var(--deep); font-weight: 600; }
.art .color-secondary { color: var(--primary-dark); }
/* Hero rows: h1 first, full width; the photo below it, wide and rounded. */
.art-cols, .art-twi { display: flex; flex-direction: column; gap: 24px; }
.art-cols > .art-col:has(h1) { order: -1; }
.art-cols > .art-col:has(.art-img) { order: 0; }
.art-col > .art-col__text, .art-cols > .art-text--wide { order: 1; }
.art-img { margin: 0; }
.art-img img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-lg); }
.art-twi__box { order: 1; }
.art-twi > .art-img { order: 0; }
.art-table { overflow-x: auto; margin: 8px 0 24px; border: 1px solid var(--line); border-radius: var(--radius); }
.art-table table, .art-text table { width: 100%; border-collapse: collapse; font-size: 16px; }
.art-table th, .art-table td, .art-text th, .art-text td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.art-table thead th { background: var(--deep); color: var(--white); font-family: var(--font-head); font-weight: 600; font-size: 14px; letter-spacing: .04em; }
.art-table tbody tr:nth-child(even) { background: var(--soft); }
.art-table tbody tr:last-child td, .art-table tbody tr:last-child th { border-bottom: 0; }
.art-text table { margin-bottom: 1.2em; }
.art-text td[style*="background"] { font-weight: 600; }
.art-boxes { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.art-box { padding: 28px 24px; border-radius: var(--radius-lg); background: var(--soft); text-align: center; }
.art-box__icon { display: grid; place-items: center; width: 60px; height: 60px; margin: 0 auto 16px; border-radius: 50%; background: var(--white); box-shadow: var(--shadow); }
.art-box__icon .icon { width: 30px; height: 30px; fill: var(--primary); }
.art-box h2 { font-size: 18px; margin-bottom: 8px; }
.art-box .art-text { font-size: 15.5px; line-height: 1.55; }
.art-box .art-text p { color: var(--muted); margin: 0; }
.art-end { background: var(--soft); margin-top: clamp(32px, 5vw, 64px); }
.art-author { display: flex; gap: 20px; align-items: center; padding: 24px 28px; background: var(--white); border-radius: var(--radius-lg); margin-bottom: 56px; }
.art-author img { width: 72px; height: auto; }
.art-author p { margin: 0; color: var(--muted); font-size: 15.5px; }
.art-author__name { font-family: var(--font-head); font-weight: 600; color: var(--ink) !important; font-size: 17px !important; }

/* ---------- contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; padding: 20px 22px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.contact-list .icon { width: 22px; height: 22px; flex: 0 0 22px; fill: var(--primary); margin-top: 3px; }
.contact-list strong { display: block; font-family: var(--font-head); font-size: 14px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.contact-list a { color: var(--ink); text-decoration: none; font-weight: 500; }
.contact-list a:hover { color: var(--primary-dark); }
.form { padding: clamp(24px, 3vw, 40px); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.form h2 { font-size: 26px; margin-bottom: 6px; }
.form > p { color: var(--muted); font-size: 15.5px; margin-bottom: 24px; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: block; margin-bottom: 16px; }
.field span { display: block; font-family: var(--font-head); font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.field input, .field textarea { width: 100%; font: inherit; font-size: 16px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--white); color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--primary); box-shadow: 0 0 0 4px var(--pale-soft); }
.field textarea { min-height: 140px; resize: vertical; }
.form__note { font-size: 13.5px; color: var(--muted); margin: 12px 0 0; }
.req { color: var(--primary-dark); }

/* ---------- automytiq page (kept from the Sitejet block, retuned) ---------- */
.atq-page { font-family: var(--font-body); color: var(--ink); }
.atq-page :where(h2, p) { margin: 0; }
.atq-page .atq-wrap { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.atq-sec { padding: var(--section) 0; }
.atq-sec.light { background: var(--soft); }
.atq-sec.white { background: var(--white); }
.atq-sec.dark { background: var(--deep); color: var(--white); }
.atq-kicker { font-family: var(--font-head); font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--primary-dark); margin-bottom: 12px; }
.atq-h { font-family: var(--font-head); font-size: clamp(28px, 3.2vw, 40px); font-weight: 600; color: var(--ink); line-height: 1.15; margin-bottom: 14px; max-width: 800px; }
.atq-lead { font-size: 18px; color: var(--muted); max-width: 720px; margin-bottom: 44px; }
.atq-3, .atq-2 { display: grid; gap: 22px; list-style: none; padding: 0; margin: 0; }
.atq-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.atq-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.atq-card { background: var(--white); border-radius: var(--radius-lg); padding: 30px 26px; border: 1px solid var(--line); }
.atq-card .atq-ico { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 16px; }
.atq-card h3 { font-size: 19px; margin: 0 0 8px; }
.atq-card p { font-size: 15.5px; color: var(--muted); }
.atq-card.before { border-top: 4px solid #b9b5b8; }
.atq-card.before .atq-ico { background: var(--warm); color: var(--muted); }
.atq-card.after { border-top: 4px solid var(--primary); }
.atq-card.after .atq-ico { background: var(--pale-soft); color: var(--deep); }
.atq-how { display: grid; grid-template-columns: 1.15fr .85fr; gap: 36px; align-items: start; }
.atq-steps { list-style: none; margin: 0; padding: 0; }
.atq-step { display: flex; gap: 18px; padding: 0 0 26px; position: relative; }
.atq-step:not(:last-child)::before { content: ""; position: absolute; left: 17px; top: 38px; bottom: 0; width: 2px; background: var(--pale-soft); }
.atq-num { flex: 0 0 36px; width: 36px; height: 36px; border-radius: 50%; background: var(--primary); color: var(--deep-dark); font-family: var(--font-head); font-weight: 700; font-size: 15px; display: flex; align-items: center; justify-content: center; position: relative; z-index: 1; }
.atq-step h3 { margin: 5px 0 4px; font-size: 17px; }
.atq-step p { font-size: 15px; color: var(--muted); }
.atq-oversight { background: var(--deep); color: var(--white); border-radius: var(--radius-lg); padding: 34px 30px; }
.atq-oversight h3 { margin: 0 0 8px; font-size: 20px; color: var(--white); }
.atq-oversight .atq-osub { font-size: 15px; color: var(--pale); margin-bottom: 22px; }
.atq-oversight ul { list-style: none; margin: 0; padding: 0; }
.atq-oversight li { font-size: 15px; padding: 9px 0 9px 30px; position: relative; border-top: 1px solid rgba(255, 255, 255, .12); }
.atq-oversight li:first-child { border-top: none; }
.atq-oversight li::before { content: "\2713"; position: absolute; left: 0; top: 9px; color: var(--primary); font-weight: 700; }
.atq-get .atq-card { border-left: 4px solid var(--primary); }
.atq-optional { margin-top: 24px; font-size: 15px; color: var(--deep); background: var(--pale-soft); display: inline-block; padding: 10px 18px; border-radius: 8px; }
.atq-sec.dark .atq-kicker { color: var(--pale); }
.atq-sec.dark .atq-h { color: var(--white); }
.atq-sec.dark .atq-tag2 { color: var(--pale); font-style: italic; font-size: 18px; margin-bottom: 40px; }
.atq-diff { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.atq-diff .atq-col-h { font-family: var(--font-head); font-size: 16px; font-weight: 600; padding: 14px 20px; border-radius: 10px; text-align: center; margin-bottom: 12px; }
.atq-diff .trad .atq-col-h { background: rgba(255, 255, 255, .10); color: #cfe9ec; }
.atq-diff .auto .atq-col-h { background: var(--primary); color: var(--deep-dark); }
.atq-diff .atq-row { padding: 15px 20px; border-radius: 8px; font-size: 15px; margin-bottom: 10px; }
.atq-diff .trad .atq-row { background: rgba(255, 255, 255, .06); color: #bcd7db; }
.atq-diff .auto .atq-row { background: rgba(44, 200, 212, .16); color: var(--white); font-weight: 500; }
.atq-cta-sec { background: var(--primary); text-align: center; padding: var(--section) var(--gutter); }
.atq-cta-sec h2 { font-size: clamp(30px, 3.4vw, 40px); color: var(--deep-dark); margin-bottom: 14px; }
.atq-cta-sec p { font-size: 19px; color: var(--deep); max-width: 560px; margin: 0 auto 30px; }
.atq-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; max-width: 760px; margin: 46px auto 0; list-style: none; padding: 0; }
.atq-stat { background: rgba(0, 95, 106, .12); border-radius: var(--radius-lg); padding: 26px 18px; }
.atq-stat .atq-big { font-family: var(--font-head); font-size: 38px; font-weight: 700; color: var(--deep); line-height: 1; margin-bottom: 8px; }
.atq-stat .atq-lbl { font-size: 15px; color: var(--deep); }

/* ---------- footer ---------- */
.site-footer { background: var(--deep-dark); color: var(--pale-soft); padding: clamp(56px, 7vw, 88px) 0 32px; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { color: var(--primary); }
.site-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr 1.2fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.site-footer__brand img { width: 170px; height: auto; margin-bottom: 18px; }
.site-footer__tagline { font-family: var(--font-head); font-style: italic; font-weight: 600; color: var(--primary); margin-bottom: 10px; }
.site-footer__brand p, .site-footer__col p { font-size: 15px; color: var(--pale-soft); }
.site-footer__col h2 { font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: var(--white); margin-bottom: 18px; }
.site-footer__col a { display: block; font-size: 15px; margin-bottom: 10px; }
.site-footer__legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 24px; font-size: 14px; }
.site-footer__legal p { margin: 0; }
.site-footer__legal a { text-decoration: underline; text-underline-offset: .2em; }

/* ---------- 404 / thanks ---------- */
.plain { min-height: 60vh; display: grid; place-items: center; text-align: center; }
.plain .huge { font-family: var(--font-head); font-size: clamp(80px, 14vw, 160px); font-weight: 700; color: var(--pale-soft); line-height: 1; margin: 0; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .logos { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .site-logo img { height: 36px; }
  .nav-toggle { display: flex; }
  .nav { display: none; position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 24px; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: 0 20px 40px -20px rgba(44, 50, 68, .3); }
  .nav[data-open="true"] { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .nav a[aria-current="page"]:not(.btn) { border-color: var(--line); }
  .nav a.btn { margin-top: 16px; justify-content: center; border: 2px solid var(--primary); }
  .hero { min-height: 0; }
  .atq__grid, .split, .grid--2, .grid--3, .grid--4, .cards, .contact, .feature, .bio, .atq-how, .atq-3, .atq-2, .posts, .member, .cta-inline { grid-template-columns: 1fr; }
  .split--flip > .split__media { order: 0; }
  .split__media::before, .split--flip .split__media::before { inset: 16px -12px -16px 16px; }
  .bio__photo { max-width: 260px; position: static; }
  .stats { grid-template-columns: 1fr; }
  .values { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .carousel__arrow--prev { left: 8px; }
  .carousel__arrow--next { right: 8px; }
  .form__row { grid-template-columns: 1fr; gap: 0; }
  .atq-diff, .atq-stats { grid-template-columns: 1fr; }
  .art-boxes { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .member img { width: 130px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .logos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero__proof { gap: 24px; }
  .hero__proof strong { font-size: 28px; }
  .values { grid-template-columns: 1fr; }
  .quote::before { font-size: 80px; left: 18px; top: 4px; }
  .art-text { font-size: 17px; }
}
