/* ThinkNext Innovations: site styles on Material Design 3 tokens.
 * Colours come only from tokens.css (generated). Everything else is defined here.
 * Font files are referenced without a version query: rename the file if it ever changes.
 */

/* ---------- Fonts ---------- */
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/assets/fonts/plus-jakarta-sans-latin.woff2") format("woff2");
  font-weight: 400 800;
  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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-latin.woff2") format("woff2");
  font-weight: 400 700;
  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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Metric-matched fallbacks keep the layout still when the web fonts swap in (CLS). */
@font-face {
  font-family: "Plus Jakarta Sans Fallback";
  src: local("Arial"), local("Liberation Sans"), local("Helvetica");
  size-adjust: 104.9%; ascent-override: 98.95%; descent-override: 21.16%; line-gap-override: 0%;
}
@font-face {
  font-family: "Inter Fallback";
  src: local("Arial"), local("Liberation Sans"), local("Helvetica");
  size-adjust: 104.12%; ascent-override: 93.04%; descent-override: 23.17%; line-gap-override: 0%;
}

/* ---------- Non-colour tokens ---------- */
:root {
  --font-display: "Plus Jakarta Sans", "Plus Jakarta Sans Fallback", system-ui, sans-serif;
  --font-body: "Inter", "Inter Fallback", system-ui, sans-serif;

  --md-sys-shape-corner-extra-small: 4px;
  --md-sys-shape-corner-small: 8px;
  --md-sys-shape-corner-medium: 12px;
  --md-sys-shape-corner-large: 16px;
  --md-sys-shape-corner-large-increased: 20px;
  --md-sys-shape-corner-extra-large: 28px;
  --md-sys-shape-corner-extra-large-increased: 32px;
  --md-sys-shape-corner-extra-extra-large: 48px;
  --md-sys-shape-corner-full: 9999px;

  --md-sys-motion-easing-standard: cubic-bezier(.2, 0, 0, 1);
  --md-sys-motion-easing-emphasized: cubic-bezier(.2, 0, 0, 1);
  --md-sys-motion-easing-emphasized-decelerate: cubic-bezier(.05, .7, .1, 1);
  --md-sys-motion-easing-emphasized-accelerate: cubic-bezier(.3, 0, .8, .15);
  --md-sys-motion-duration-short2: 100ms;
  --md-sys-motion-duration-short4: 200ms;
  --md-sys-motion-duration-medium2: 300ms;
  --md-sys-motion-duration-medium4: 400ms;
  --md-sys-motion-duration-long2: 500ms;

  --md-sys-elevation-1: 0 1px 2px color-mix(in srgb, var(--md-sys-color-shadow) 30%, transparent), 0 1px 3px 1px color-mix(in srgb, var(--md-sys-color-shadow) 15%, transparent);
  --md-sys-elevation-2: 0 1px 2px color-mix(in srgb, var(--md-sys-color-shadow) 30%, transparent), 0 2px 6px 2px color-mix(in srgb, var(--md-sys-color-shadow) 15%, transparent);
  --md-sys-elevation-3: 0 4px 8px 3px color-mix(in srgb, var(--md-sys-color-shadow) 15%, transparent), 0 1px 3px color-mix(in srgb, var(--md-sys-color-shadow) 30%, transparent);

  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 20px; --space-6: 24px;
  --space-8: 32px; --space-10: 40px; --space-12: 48px; --space-16: 64px; --space-20: 80px;

  --container: 1240px;
  --gutter: 16px;
  --app-bar-height: 64px;
  --section-space: clamp(64px, 7vw + 24px, 120px);
}
@media (min-width: 600px) { :root { --gutter: 24px; } }
@media (min-width: 1200px) { :root { --gutter: 32px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--app-bar-height) + 16px); /* keeps focused/anchored content clear of the sticky bar */
  scroll-behavior: smooth;
}
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--md-sys-color-surface);
  color: var(--md-sys-color-on-surface);
  font: 400 1rem/1.5 var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word;
}
main { flex: 1 0 auto; }
main:focus { outline: none; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; }
img, svg, video, iframe { display: block; max-width: 100%; }
a { color: var(--md-sys-color-primary); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
address { font-style: normal; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--md-sys-color-secondary); outline-offset: 2px; }
::selection { background: var(--md-sys-color-primary-container); color: var(--md-sys-color-on-primary-container); }

.icon { width: 24px; height: 24px; flex: none; fill: currentColor; }
.icon--sm { width: 18px; height: 18px; }
.icon--lg { width: 28px; height: 28px; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.list-reset { list-style: none; padding: 0; margin: 0; }

.skip-link {
  position: absolute; left: 16px; top: 8px; z-index: 200;
  padding: 12px 20px; border-radius: var(--md-sys-shape-corner-full);
  background: var(--md-sys-color-primary); color: var(--md-sys-color-on-primary);
  font-weight: 600; text-decoration: none;
  transform: translateY(-160%);
}
.skip-link:focus { transform: none; }

/* ---------- Type roles ---------- */
.display-l, .display-m, .display-s, .headline-l, .headline-m, .headline-s {
  font-family: var(--font-display); font-weight: 700; letter-spacing: -.02em; text-wrap: balance;
}
.display-l { font-size: clamp(2.5rem, 1.35rem + 4.6vw, 4.25rem); line-height: 1.06; letter-spacing: -.03em; }
.display-m { font-size: clamp(2.125rem, 1.4rem + 3vw, 3.25rem); line-height: 1.1; letter-spacing: -.025em; }
.display-s { font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem); line-height: 1.14; }
.headline-l { font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.5rem); line-height: 1.18; }
.headline-m { font-size: clamp(1.5rem, 1.25rem + 1vw, 1.875rem); line-height: 1.25; }
.headline-s { font-size: 1.5rem; line-height: 1.33; letter-spacing: -.01em; }
.title-l { font-family: var(--font-display); font-size: 1.375rem; line-height: 1.3; font-weight: 700; letter-spacing: -.01em; }
.title-m { font-family: var(--font-display); font-size: 1.125rem; line-height: 1.4; font-weight: 700; }
.title-s { font-size: .875rem; line-height: 1.43; font-weight: 600; letter-spacing: .01em; }
.body-l { font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem); line-height: 1.6; }
.body-m { font-size: 1rem; line-height: 1.55; }
.body-s { font-size: .875rem; line-height: 1.5; }
.label-l { font-size: .875rem; line-height: 1.43; font-weight: 600; letter-spacing: .01em; }
.muted { color: var(--md-sys-color-on-surface-variant); }
.measure { max-width: 62ch; }
.mt-4 { margin-top: 16px; }
.nowrap { white-space: nowrap; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .875rem; line-height: 1.43; font-weight: 600; letter-spacing: .02em;
  color: var(--md-sys-color-primary);
}
.eyebrow .icon { width: 20px; height: 20px; }

/* ---------- State layer (hover / focus / press) ---------- */
.has-state { position: relative; isolation: isolate; }
.has-state::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: currentColor; opacity: 0; pointer-events: none;
  transition: opacity var(--md-sys-motion-duration-short4) var(--md-sys-motion-easing-standard);
}
.has-state:hover::before { opacity: .08; }
.has-state:focus-visible::before { opacity: .10; }
.has-state:active::before { opacity: .12; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: transparent; --btn-fg: var(--md-sys-color-primary);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px;
  border: 0; border-radius: var(--md-sys-shape-corner-full);
  background: var(--btn-bg); color: var(--btn-fg);
  font: 600 1rem/1.25 var(--font-body); letter-spacing: .005em;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition:
    border-radius var(--md-sys-motion-duration-medium2) var(--md-sys-motion-easing-emphasized),
    box-shadow var(--md-sys-motion-duration-short4) var(--md-sys-motion-easing-standard);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: currentColor; opacity: 0;
  transition: opacity var(--md-sys-motion-duration-short4) var(--md-sys-motion-easing-standard);
}
.btn:hover::before { opacity: .08; }
.btn:focus-visible::before { opacity: .10; }
.btn:active::before { opacity: .12; }
/* M3 Expressive: the pressed button morphs from pill to a softer square */
.btn:active { border-radius: var(--md-sys-shape-corner-medium); }
.btn .icon { width: 20px; height: 20px; }
.btn--lg { min-height: 56px; padding: 0 28px; font-size: 1.0625rem; }
.btn--filled { --btn-bg: var(--md-sys-color-primary); --btn-fg: var(--md-sys-color-on-primary); }
.btn--filled:hover { box-shadow: var(--md-sys-elevation-1); }
.btn--tonal { --btn-bg: color-mix(in srgb, var(--md-sys-color-primary) 14%, var(--md-sys-color-surface-container-lowest)); --btn-fg: var(--md-sys-color-primary); }
.btn--outlined { --btn-fg: var(--md-sys-color-primary); box-shadow: inset 0 0 0 1px var(--md-sys-color-outline); }
.btn--text { --btn-fg: var(--md-sys-color-primary); padding: 0 16px; }
.btn--text.btn--flush { margin-inline-start: -16px; }
.btn[disabled], .btn[aria-disabled="true"] { cursor: not-allowed; }
.btn--filled[disabled] {
  --btn-bg: color-mix(in srgb, var(--md-sys-color-on-surface) 12%, transparent);
  --btn-fg: color-mix(in srgb, var(--md-sys-color-on-surface) 38%, transparent);
  box-shadow: none;
}
.btn[disabled]::before { opacity: 0; }
.btn[disabled]:active { border-radius: var(--md-sys-shape-corner-full); }

/* Buttons that sit on the vivid primary-container surface */
.btn--on-accent { --btn-bg: var(--md-sys-color-surface-container-lowest); --btn-fg: var(--md-sys-color-primary); }
.btn--on-accent-outlined { --btn-fg: var(--md-sys-color-on-primary-container); box-shadow: inset 0 0 0 1px var(--md-sys-color-on-primary-container); }
/* Buttons that sit on inverse-surface */
.btn--on-inverse { --btn-bg: var(--md-sys-color-primary-container); --btn-fg: var(--md-sys-color-on-primary-container); }
.btn--on-inverse-outlined { --btn-fg: var(--md-sys-color-inverse-on-surface); box-shadow: inset 0 0 0 1px var(--md-sys-color-inverse-on-surface); }

.icon-btn {
  position: relative; isolation: isolate;
  display: inline-grid; place-items: center; width: 48px; height: 48px; padding: 0;
  border: 0; border-radius: var(--md-sys-shape-corner-full);
  background: transparent; color: var(--md-sys-color-on-surface-variant); cursor: pointer;
}
.icon-btn::before {
  content: ""; position: absolute; inset: 4px; z-index: -1; border-radius: inherit;
  background: currentColor; opacity: 0; transition: opacity var(--md-sys-motion-duration-short4);
}
.icon-btn:hover::before { opacity: .08; }
.icon-btn:focus-visible::before, .icon-btn:active::before { opacity: .12; }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

/* ---------- Top app bar ---------- */
.top-app-bar {
  position: sticky; top: 0; z-index: 50;
  background: var(--md-sys-color-surface);
  transition: background-color var(--md-sys-motion-duration-medium2) var(--md-sys-motion-easing-standard);
}
.top-app-bar[data-scrolled] { background: var(--md-sys-color-surface-container); }
.top-app-bar__inner { display: flex; align-items: center; gap: 8px; min-height: var(--app-bar-height); }
.brand {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; margin-inline-end: auto;
  color: var(--md-sys-color-on-surface); text-decoration: none; border-radius: var(--md-sys-shape-corner-small);
}
/* Logo lockup: the mark keeps its fixed brand colours; the wordmark follows the theme. */
.tn-logo { display: block; height: 38px; width: auto; aspect-ratio: 189.35 / 48; }
.tn-logo__think { fill: var(--md-sys-color-on-surface); }
.tn-logo__next { fill: var(--tn-logo-next, var(--tn-brand-primary)); }
.tn-logo__desc { fill: var(--md-sys-color-on-surface-variant); }
:root[data-theme="dark"] { --tn-logo-next: var(--md-sys-color-primary); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --tn-logo-next: var(--md-sys-color-primary); } }
@media (min-width: 1200px) { .top-app-bar .tn-logo { height: 42px; } }

.top-nav { display: none; }
.top-nav ul { display: flex; gap: 4px; }
.top-nav a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px;
  border-radius: var(--md-sys-shape-corner-full);
  color: var(--md-sys-color-on-surface-variant); font-weight: 600; font-size: .9375rem; text-decoration: none;
}
.top-nav a[aria-current="page"] { background: var(--md-sys-color-secondary-container); color: var(--md-sys-color-on-secondary-container); }
.top-app-bar__actions { display: flex; align-items: center; gap: 4px; }
.top-app-bar__cta { display: none; margin-inline-start: 8px; }

@media (min-width: 840px) {
  .top-nav { display: block; }
  .top-app-bar__menu { display: none; }
  .top-app-bar__inner { gap: 16px; }
}
@media (min-width: 1200px) { .top-app-bar__cta { display: inline-flex; } }

/* Without JavaScript the drawer can't open: show the nav as a scrollable row instead. */
html:not(.js) .top-app-bar__menu, html:not(.js) [data-theme-toggle] { display: none; }
html:not(.js) .top-nav { display: block; overflow-x: auto; }
html:not(.js) .top-app-bar__inner { flex-wrap: wrap; }

[data-theme-toggle] .icon--light { display: none; }
:root[data-theme="dark"] [data-theme-toggle] .icon--dark { display: none; }
:root[data-theme="dark"] [data-theme-toggle] .icon--light { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) [data-theme-toggle] .icon--dark { display: none; }
  :root:not([data-theme="light"]) [data-theme-toggle] .icon--light { display: block; }
}

/* ---------- Modal navigation drawer ---------- */
.nav-drawer {
  position: fixed; inset: 0 auto 0 0; margin: 0; padding: 0;
  width: min(360px, 100vw - 56px); max-width: none; height: 100%; max-height: none;
  border: 0; border-radius: 0 var(--md-sys-shape-corner-large) var(--md-sys-shape-corner-large) 0;
  background: var(--md-sys-color-surface-container-low); color: var(--md-sys-color-on-surface);
  box-shadow: var(--md-sys-elevation-1);
  transform: translateX(-100%);
  transition:
    transform var(--md-sys-motion-duration-medium4) var(--md-sys-motion-easing-emphasized-decelerate),
    overlay var(--md-sys-motion-duration-medium4) allow-discrete,
    display var(--md-sys-motion-duration-medium4) allow-discrete;
}
.nav-drawer[open] { transform: none; }
@starting-style { .nav-drawer[open] { transform: translateX(-100%); } }
.nav-drawer::backdrop {
  background: var(--md-sys-color-scrim); opacity: 0;
  transition: opacity var(--md-sys-motion-duration-medium4), overlay var(--md-sys-motion-duration-medium4) allow-discrete, display var(--md-sys-motion-duration-medium4) allow-discrete;
}
.nav-drawer[open]::backdrop { opacity: .32; }
@starting-style { .nav-drawer[open]::backdrop { opacity: 0; } }
.nav-drawer__inner { display: flex; flex-direction: column; height: 100%; padding: 12px; overflow-y: auto; }
.nav-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 4px 4px 12px 16px; }
.nav-drawer__label {
  padding: 18px 16px 8px; font-size: .875rem; font-weight: 600; color: var(--md-sys-color-on-surface-variant);
}
.nav-drawer a.nav-item {
  display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 0 24px 0 16px;
  border-radius: var(--md-sys-shape-corner-full);
  color: var(--md-sys-color-on-surface-variant); font-weight: 600; text-decoration: none;
}
.nav-drawer a.nav-item[aria-current="page"] { background: var(--md-sys-color-secondary-container); color: var(--md-sys-color-on-secondary-container); }
.nav-drawer hr { border: 0; border-top: 1px solid var(--md-sys-color-outline-variant); margin: 8px 16px; }
.nav-drawer__foot { margin-top: auto; padding: 16px 4px 4px; display: grid; gap: 8px; }

/* ---------- Sections & headings ---------- */
.section { padding-block: calc(var(--section-space) * .5); }
.section--tight { padding-block: calc(var(--section-space) * .3); }
.section-head { display: grid; gap: 16px; margin-bottom: clamp(32px, 4vw, 56px); max-width: 760px; }
.section-head--center { margin-inline: auto; text-align: center; justify-items: center; }
.section-head__lead { color: var(--md-sys-color-on-surface-variant); }
.section-foot { margin-top: 32px; }

/* Tonal band inside the page margins (M3 Expressive, extra-extra-large corners) */
.band {
  border-radius: var(--md-sys-shape-corner-extra-extra-large);
  background: var(--md-sys-color-surface-container-low);
  padding: clamp(28px, 5vw, 72px) clamp(20px, 4vw, 64px);
}

/* ---------- Expressive shapes (CSS masks, coloured by tokens) ---------- */
.shape { display: block; background: var(--shape-color, var(--md-sys-color-primary-container)); -webkit-mask: var(--shape) center / contain no-repeat; mask: var(--shape) center / contain no-repeat; pointer-events: none; }
.shape--cookie { --shape: url("/assets/img/shape-cookie.svg"); }
.shape--clover { --shape: url("/assets/img/shape-clover.svg"); }
.shape--burst { --shape: url("/assets/img/shape-burst.svg"); }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(24px, 5vw, 72px) clamp(48px, 7vw, 104px); overflow: clip; }
.hero__grid { display: grid; gap: clamp(40px, 5vw, 64px); align-items: center; }
.hero__title { max-width: 16ch; }
.hero__title em { font-style: normal; color: var(--tn-logo-next, var(--tn-brand-primary)); }
.hero__lead { margin-top: 24px; max-width: 54ch; color: var(--md-sys-color-on-surface-variant); }
.hero .actions { margin-top: 32px; }
.hero__points { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 32px; color: var(--md-sys-color-on-surface-variant); font-size: .9375rem; }
.hero__points li { display: inline-flex; align-items: center; gap: 8px; }
.hero__points .icon { width: 20px; height: 20px; color: var(--md-sys-color-primary); }
@media (min-width: 840px) { .hero__grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); } }

/* Hero visual: abstract browser + phone built from M3 surfaces. Sized with container units. */
.hero-visual { position: relative; container-type: inline-size; width: 100%; max-width: 620px; margin-inline: auto; aspect-ratio: 1 / .92; }
.hero-visual__shape { position: absolute; left: 12%; top: 0; width: 90%; aspect-ratio: 1; animation: tn-spin 90s linear infinite; }
.hero-visual__sparkle { position: absolute; width: 15%; aspect-ratio: 1; right: -2%; top: 8%; --shape-color: var(--tn-brand-accent); animation: tn-spin 40s linear infinite reverse; }
.mock-browser {
  position: absolute; left: 0; top: 17%; width: 72%;
  border-radius: 4.5cqi; overflow: hidden;
  background: var(--md-sys-color-surface-container-lowest);
  box-shadow: var(--md-sys-elevation-3);
  outline: 1px solid var(--md-sys-color-outline-variant);
}
.mock-browser__bar { display: flex; align-items: center; gap: 1.4cqi; padding: 2.4cqi 3cqi; background: var(--md-sys-color-surface-container-high); }
.mock-browser__bar i { width: 2.2cqi; height: 2.2cqi; border-radius: 50%; background: var(--md-sys-color-outline-variant); }
.mock-browser__bar b { flex: 1; height: 3.6cqi; margin-inline-start: 2cqi; border-radius: 99px; background: var(--md-sys-color-surface-container-lowest); }
.mock-browser__body { display: grid; gap: 2.4cqi; padding: 5cqi 5cqi 6cqi; }
.sk { display: block; height: 2.6cqi; border-radius: 99px; background: var(--md-sys-color-surface-container-highest); }
.sk--eyebrow { width: 24%; height: 2.2cqi; background: var(--md-sys-color-primary-fixed-dim); }
.sk--title { width: 78%; height: 5.2cqi; background: var(--md-sys-color-on-surface); opacity: .88; }
.sk--title2 { width: 56%; height: 5.2cqi; background: var(--md-sys-color-primary); }
.sk--w90 { width: 90%; } .sk--w70 { width: 70%; }
.sk-row { display: flex; gap: 2cqi; margin-top: 1.4cqi; }
.sk-btn { width: 22%; height: 6cqi; border-radius: 99px; background: var(--md-sys-color-primary); }
.sk-btn--tonal { background: var(--md-sys-color-secondary-container); }
.sk-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.4cqi; margin-top: 2cqi; }
.sk-card { display: grid; gap: 1.6cqi; padding: 2.4cqi; border-radius: 3cqi; background: var(--md-sys-color-surface-container-low); }
.sk-card i { display: block; width: 6cqi; height: 6cqi; border-radius: 2cqi; background: var(--md-sys-color-tertiary-container); }
.sk-card:nth-child(2) i { background: var(--md-sys-color-primary-container); }
.sk-card:nth-child(3) i { background: var(--md-sys-color-secondary-container); }
.sk-card .sk { height: 1.8cqi; }
.mock-phone {
  position: absolute; right: 2%; bottom: 0; width: 30%; aspect-ratio: 9 / 18.5;
  display: flex; flex-direction: column; gap: 2.2cqi; padding: 4.5cqi 2.8cqi 3cqi;
  border-radius: 6.5cqi; border: 1.4cqi solid var(--md-sys-color-inverse-surface);
  background: var(--md-sys-color-surface-container-lowest);
  box-shadow: var(--md-sys-elevation-3);
}
.mock-phone__head { display: flex; align-items: center; gap: 1.8cqi; padding-bottom: 1cqi; }
.mock-phone__avatar { width: 6cqi; height: 6cqi; border-radius: 50%; background: var(--md-sys-color-primary-fixed-dim); flex: none; }
.mock-phone__head .sk { flex: 1; height: 2.2cqi; }
.mock-phone__stat { display: grid; gap: 1.4cqi; padding: 2.4cqi; border-radius: 3cqi; background: var(--md-sys-color-primary-container); }
.mock-phone__stat .sk { background: var(--md-sys-color-on-primary-container); opacity: .85; height: 1.8cqi; }
.mock-phone__stat .sk:first-child { width: 50%; height: 3.4cqi; }
.mock-phone__item { display: flex; align-items: center; gap: 1.8cqi; padding: 1.6cqi; border-radius: 2.4cqi; background: var(--md-sys-color-surface-container); }
.mock-phone__item i { width: 4.6cqi; height: 4.6cqi; border-radius: 1.4cqi; background: var(--md-sys-color-secondary-container); flex: none; }
.mock-phone__item .sk { flex: 1; height: 1.8cqi; }
.mock-phone__fab { align-self: flex-end; margin-top: auto; width: 9cqi; height: 9cqi; border-radius: 3cqi; background: var(--md-sys-color-tertiary-container); }
.hero-chip {
  position: absolute; display: inline-flex; align-items: center; gap: 1.6cqi;
  padding: 1.8cqi 3cqi 1.8cqi 2.2cqi; border-radius: 99px;
  background: var(--md-sys-color-surface-bright); color: var(--md-sys-color-on-surface);
  box-shadow: var(--md-sys-elevation-2);
  font: 700 clamp(.75rem, 3.1cqi, 1rem)/1 var(--font-display);
  animation: tn-float 7s var(--md-sys-motion-easing-standard) infinite alternate;
}
.hero-chip .icon { width: clamp(16px, 4.2cqi, 24px); height: clamp(16px, 4.2cqi, 24px); color: var(--md-sys-color-primary); }
.hero-chip--design { left: 2%; top: 5%; }
.hero-chip--build { left: 44%; top: 1%; animation-delay: -2.5s; }
.hero-chip--run { left: 8%; bottom: 3%; animation-delay: -5s; }
.hero-chip--run .icon { color: var(--md-sys-color-tertiary); }
@keyframes tn-spin { to { transform: rotate(360deg); } }
@keyframes tn-float { from { transform: translateY(0); } to { transform: translateY(-10px); } }

/* ---------- Cards ---------- */
.card { position: relative; isolation: isolate; border-radius: var(--md-sys-shape-corner-extra-large); padding: clamp(20px, 2.4vw, 28px); }
.card--filled { background: var(--md-sys-color-surface-container-high); }
.card--elevated { background: var(--md-sys-color-surface-container-low); box-shadow: var(--md-sys-elevation-1); }
.card--outlined { background: var(--md-sys-color-surface); box-shadow: inset 0 0 0 1px var(--md-sys-color-outline-variant); }
.card--lowest { background: var(--md-sys-color-surface-container-lowest); }
.card--interactive::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: var(--md-sys-color-on-surface); opacity: 0;
  transition: opacity var(--md-sys-motion-duration-short4) var(--md-sys-motion-easing-standard);
}
.card--interactive:hover::before { opacity: .06; }
.card--interactive:has(.card__link:active)::before { opacity: .10; }
.card--interactive { transition: border-radius var(--md-sys-motion-duration-medium2) var(--md-sys-motion-easing-emphasized); }
.card--interactive:hover { border-radius: var(--md-sys-shape-corner-extra-extra-large); }
.card__link { color: inherit; text-decoration: none; }
.card__link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card__link:focus-visible { outline: none; }
.card__link:focus-visible::after { outline: 3px solid var(--md-sys-color-secondary); outline-offset: 2px; }
.card__more { display: inline-flex; align-items: center; gap: 6px; margin-top: 20px; color: var(--md-sys-color-primary); font-weight: 600; font-size: .9375rem; }
.card__more .icon { width: 20px; height: 20px; transition: transform var(--md-sys-motion-duration-medium2) var(--md-sys-motion-easing-emphasized); }
.card--interactive:hover .card__more .icon { transform: translateX(4px); }

.icon-box {
  display: grid; place-items: center; width: 56px; height: 56px; flex: none;
  border-radius: var(--md-sys-shape-corner-large-increased);
  background: var(--md-sys-color-secondary-container); color: var(--md-sys-color-on-secondary-container);
}
.icon-box--primary { background: var(--md-sys-color-primary-fixed); color: var(--md-sys-color-on-primary-fixed); }
.icon-box--tertiary { background: var(--md-sys-color-tertiary-fixed); color: var(--md-sys-color-on-tertiary-fixed); }
.icon-box--sm { width: 44px; height: 44px; border-radius: var(--md-sys-shape-corner-large); }
.icon-box--sm .icon { width: 22px; height: 22px; }

.grid { display: grid; gap: 16px; }
@media (min-width: 600px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 840px) { .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .grid { gap: 20px; } }

.service-card { display: flex; flex-direction: column; gap: 16px; height: 100%; }
.service-card p { color: var(--md-sys-color-on-surface-variant); }
.service-card .card__more { margin-top: auto; padding-top: 4px; }

.feature { display: flex; gap: 16px; align-items: flex-start; }
.feature h3 { margin-bottom: 6px; }
.feature p { color: var(--md-sys-color-on-surface-variant); }

/* ---------- CoreHRx spotlight ---------- */
.spotlight {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; gap: clamp(32px, 4vw, 48px);
  border-radius: var(--md-sys-shape-corner-extra-extra-large);
  background: var(--md-sys-color-primary-container); color: var(--md-sys-color-on-primary-container);
  padding: clamp(24px, 5vw, 64px);
}
.spotlight__shape { position: absolute; z-index: -1; width: min(520px, 80%); aspect-ratio: 1; right: -12%; top: -22%; --shape-color: var(--md-sys-color-on-primary-container); opacity: .09; animation: tn-spin 120s linear infinite; }
.spotlight__head { display: grid; gap: 20px; align-content: start; }
.spotlight .eyebrow { color: inherit; }
.spotlight__title span { display: block; opacity: .92; }
.spotlight__badge {
  display: inline-flex; align-items: center; gap: 8px; justify-self: start;
  padding: 8px 16px 8px 12px; border-radius: 99px;
  background: var(--md-sys-color-surface-container-lowest); color: var(--md-sys-color-on-surface);
  font-weight: 600; font-size: .9375rem;
}
.spotlight__badge strong { font-family: var(--font-display); font-size: 1.125rem; color: var(--md-sys-color-primary); }
.spotlight__modules { display: grid; gap: 12px; }
@media (min-width: 600px) { .spotlight__modules { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .spotlight { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; } }
.module-tile {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 18px; border-radius: var(--md-sys-shape-corner-extra-large);
  background: var(--md-sys-color-surface-container-lowest); color: var(--md-sys-color-on-surface);
}
.module-tile h3 { font-family: var(--font-display); font-size: 1rem; line-height: 1.35; font-weight: 700; margin-bottom: 4px; }
.module-tile p { font-size: .875rem; line-height: 1.5; color: var(--md-sys-color-on-surface-variant); }

/* ---------- Process ---------- */
.steps { display: grid; gap: 12px; counter-reset: step; list-style: none; padding: 0; }
.steps__item {
  counter-increment: step; position: relative;
  display: grid; gap: 10px; align-content: start;
  padding: 24px; border-radius: var(--md-sys-shape-corner-extra-large);
  background: var(--md-sys-color-surface-container-lowest);
}
.steps__item::before {
  content: counter(step, decimal-leading-zero);
  display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 6px;
  border-radius: var(--md-sys-shape-corner-large);
  background: var(--md-sys-color-primary); color: var(--md-sys-color-on-primary);
  font: 700 .9375rem/1 var(--font-display);
}
.steps__item p { color: var(--md-sys-color-on-surface-variant); font-size: .9375rem; }
@media (min-width: 600px) { .steps--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .steps--grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } .steps--grid .steps__item:nth-child(even)::before { border-radius: 50%; } }
/* Vertical timeline variant (service pages) */
.steps--timeline { gap: 0; }
.steps--timeline .steps__item { grid-template-columns: 44px 1fr; column-gap: 20px; padding: 0 0 28px; background: none; border-radius: 0; }
.steps--timeline .steps__item::before { grid-row: span 2; margin: 0; }
.steps--timeline .steps__item::after {
  content: ""; position: absolute; left: 21px; top: 52px; bottom: 6px; width: 2px;
  background: var(--md-sys-color-outline-variant); border-radius: 2px;
}
.steps--timeline .steps__item:last-child { padding-bottom: 0; }
.steps--timeline .steps__item:last-child::after { display: none; }
.steps--timeline h3 { padding-top: 9px; }

/* ---------- CTA band (inverse surface) ---------- */
.cta-band {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; gap: 28px;
  border-radius: var(--md-sys-shape-corner-extra-extra-large);
  background: var(--md-sys-color-inverse-surface); color: var(--md-sys-color-inverse-on-surface);
  padding: clamp(28px, 5vw, 64px);
}
.cta-band p { opacity: .88; max-width: 52ch; margin-top: 12px; }
@media (min-width: 840px) { .cta-band { grid-template-columns: minmax(0, 1fr) auto; align-items: center; } }

/* ---------- Page header (inner pages) ---------- */
.page-header { padding-block: 8px clamp(8px, 2vw, 24px); }
.page-header__inner {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; gap: 16px; align-content: start;
  border-radius: var(--md-sys-shape-corner-extra-extra-large);
  background: var(--md-sys-color-surface-container-low);
  padding: clamp(24px, 5vw, 64px) clamp(20px, 5vw, 64px) clamp(32px, 5vw, 64px);
}
.page-header h1 { max-width: 20ch; }
.page-header .lead { max-width: 60ch; color: var(--md-sys-color-on-surface-variant); }
.page-header .actions { margin-top: 12px; }
.page-header .icon-box { margin-bottom: 4px; }

.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; padding: 0; font-size: .875rem; }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 4px; color: var(--md-sys-color-on-surface-variant); }
.breadcrumbs li + li::before { content: "/" / ""; color: var(--md-sys-color-outline); padding-inline-end: 2px; }
.breadcrumbs a { color: var(--md-sys-color-on-surface-variant); display: inline-flex; min-height: 24px; align-items: center; }
.breadcrumbs [aria-current] { color: var(--md-sys-color-on-surface); font-weight: 600; }

/* ---------- Split layouts ---------- */
.split { display: grid; gap: clamp(24px, 4vw, 64px); }
@media (min-width: 840px) {
  .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
  .split--even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split--center { align-items: center; }
}

.check-list { display: grid; gap: 12px; list-style: none; padding: 0; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list .icon { color: var(--md-sys-color-primary); margin-top: 1px; }

.deliverable { display: flex; gap: 14px; align-items: flex-start; height: 100%; }
.deliverable .icon { color: var(--md-sys-color-primary); margin-top: 2px; }
.deliverable h3 { font-family: var(--font-display); font-size: 1.0625rem; line-height: 1.35; font-weight: 700; margin-bottom: 6px; }
.deliverable p { color: var(--md-sys-color-on-surface-variant); font-size: .9375rem; }

.callout {
  display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between;
  padding: clamp(20px, 3vw, 32px); border-radius: var(--md-sys-shape-corner-extra-large);
  background: var(--md-sys-color-tertiary-fixed); color: var(--md-sys-color-on-tertiary-fixed);
}
.callout > div { display: flex; gap: 16px; align-items: flex-start; flex: 1 1 360px; }
.callout p { opacity: .9; margin-top: 4px; }
.callout .btn--text { --btn-fg: var(--md-sys-color-on-tertiary-fixed); }
.callout .icon-box { background: var(--md-sys-color-on-tertiary-fixed-variant); color: var(--md-sys-color-tertiary-fixed); }

/* Products page: the "one profile" hub illustration */
.hub { position: relative; display: grid; place-items: center; min-height: 340px; padding: 24px; border-radius: var(--md-sys-shape-corner-extra-extra-large); background: var(--md-sys-color-surface-container-low); overflow: hidden; }
.hub__core {
  position: relative; z-index: 1; display: grid; place-items: center; text-align: center;
  width: 150px; aspect-ratio: 1; padding: 20px;
  background: var(--md-sys-color-primary-container); color: var(--md-sys-color-on-primary-container);
  -webkit-mask: url("/assets/img/shape-cookie.svg") center / contain no-repeat; mask: url("/assets/img/shape-cookie.svg") center / contain no-repeat;
  font: 700 1rem/1.25 var(--font-display);
}
.hub__chips { position: absolute; inset: 0; list-style: none; margin: 0; padding: 0; }
.hub__chips li {
  position: absolute; display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px 8px 10px; border-radius: 99px; white-space: nowrap;
  background: var(--md-sys-color-surface-container-lowest); box-shadow: var(--md-sys-elevation-1);
  font-size: .8125rem; font-weight: 600;
}
.hub__chips .icon { width: 18px; height: 18px; color: var(--md-sys-color-primary); }
.hub__chips li:nth-child(1) { left: 6%; top: 12%; }
.hub__chips li:nth-child(2) { right: 6%; top: 10%; }
.hub__chips li:nth-child(3) { left: 3%; top: 46%; }
.hub__chips li:nth-child(4) { right: 3%; top: 47%; }
.hub__chips li:nth-child(5) { left: 10%; bottom: 10%; }
.hub__chips li:nth-child(6) { right: 9%; bottom: 11%; }

.module-group { display: grid; gap: 16px; align-content: start; }
.module-group > p { color: var(--md-sys-color-on-surface-variant); }
.module-group ul { display: grid; gap: 12px; list-style: none; padding: 0; margin-top: 8px; }
.module-group .module-tile { background: var(--md-sys-color-surface-container-low); }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: calc(var(--section-space) * .5);
  background: var(--md-sys-color-surface-container);
  border-radius: var(--md-sys-shape-corner-extra-extra-large) var(--md-sys-shape-corner-extra-extra-large) 0 0;
  padding-block: clamp(40px, 6vw, 72px) 24px;
  color: var(--md-sys-color-on-surface-variant);
}
.site-footer__grid { display: grid; gap: 36px; }
.site-footer__about { display: grid; gap: 16px; justify-items: start; align-content: start; max-width: 380px; }
.site-footer h2 { font: 700 .9375rem/1.4 var(--font-display); color: var(--md-sys-color-on-surface); margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; display: grid; gap: 2px; }
.site-footer ul a, .site-footer__contact a { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; color: var(--md-sys-color-on-surface-variant); text-decoration: none; }
.site-footer ul a:hover, .site-footer__contact a:hover { color: var(--md-sys-color-on-surface); text-decoration: underline; }
.site-footer__contact { display: grid; gap: 10px; font-size: .9375rem; }
.site-footer__contact address { line-height: 1.55; }
.site-footer__bottom {
  display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between;
  margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--md-sys-color-outline-variant);
  font-size: .875rem;
}
.site-footer__bottom a { color: inherit; }
.site-footer__hours { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; }
.site-footer__ids { display: flex; flex-wrap: wrap; gap: 4px 20px; font-variant-numeric: tabular-nums; }
@media (min-width: 600px) { .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1.3fr; } }

/* ---------- Forms (M3 outlined text fields) ---------- */
.form { display: grid; gap: 20px; --field-bg: var(--md-sys-color-surface-container-lowest); }
.form__row { display: grid; gap: 20px; }
@media (min-width: 600px) { .form__row { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } }
.field { position: relative; display: grid; gap: 4px; }
.field__input {
  width: 100%; min-height: 56px; padding: 16px;
  border: 1px solid var(--md-sys-color-outline); border-radius: var(--md-sys-shape-corner-small);
  background: var(--field-bg); color: var(--md-sys-color-on-surface);
  font-size: 1rem; line-height: 1.5;
  transition: border-color var(--md-sys-motion-duration-short4), box-shadow var(--md-sys-motion-duration-short4);
}
.field__input:hover { border-color: var(--md-sys-color-on-surface); }
.field__input:focus { outline: none; border-color: var(--md-sys-color-primary); box-shadow: inset 0 0 0 1px var(--md-sys-color-primary); }
textarea.field__input { min-height: 160px; resize: vertical; }
.field__label {
  position: absolute; left: 12px; top: 16px; padding: 0 4px; max-width: calc(100% - 24px);
  background: var(--field-bg); color: var(--md-sys-color-on-surface-variant);
  font-size: 1rem; line-height: 1.5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  pointer-events: none; transform-origin: left top;
  transition: transform var(--md-sys-motion-duration-short4) var(--md-sys-motion-easing-emphasized), color var(--md-sys-motion-duration-short4);
}
.field__input:focus + .field__label,
.field__input:not(:placeholder-shown) + .field__label { transform: translateY(-26px) scale(.75); }
.field__input:focus + .field__label { color: var(--md-sys-color-primary); }
.field__support { display: flex; justify-content: space-between; gap: 12px; padding: 0 16px; font-size: .8125rem; line-height: 1.4; color: var(--md-sys-color-on-surface-variant); }
.field__error { display: flex; gap: 6px; align-items: flex-start; padding: 0 16px; font-size: .8125rem; line-height: 1.4; color: var(--md-sys-color-error); font-weight: 500; }
.field__error .icon { width: 16px; height: 16px; margin-top: 1px; }
.field__error[hidden] { display: none; }
.field.is-invalid .field__input { border-color: var(--md-sys-color-error); }
.field.is-invalid .field__input:focus { box-shadow: inset 0 0 0 1px var(--md-sys-color-error); }
.field.is-invalid .field__label { color: var(--md-sys-color-error); }
.field__counter { flex: none; margin-inline-start: auto; font-variant-numeric: tabular-nums; white-space: nowrap; }
.field--hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.chip-group { border: 0; margin: 0; padding: 0; min-width: 0; }
.chip-group legend { padding: 0; margin-bottom: 12px; font-weight: 600; font-size: .9375rem; }
.chip-group__list { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  position: relative; isolation: isolate; display: inline-flex; align-items: center; gap: 8px;
  min-height: 40px; padding: 0 16px; border-radius: var(--md-sys-shape-corner-full);
  box-shadow: inset 0 0 0 1px var(--md-sys-color-outline);
  color: var(--md-sys-color-on-surface-variant); font-size: .875rem; font-weight: 600;
  cursor: pointer; user-select: none;
  transition: background-color var(--md-sys-motion-duration-short4), padding var(--md-sys-motion-duration-short4) var(--md-sys-motion-easing-emphasized);
}
.chip::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: currentColor; opacity: 0; transition: opacity var(--md-sys-motion-duration-short4); }
.chip::after { content: ""; position: absolute; inset: -4px 0; } /* 48px touch target */
.chip:hover::before { opacity: .08; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.chip .icon { display: none; width: 18px; height: 18px; }
.chip:has(input:checked) { background: var(--md-sys-color-secondary-container); color: var(--md-sys-color-on-secondary-container); box-shadow: none; padding-inline-start: 10px; }
.chip:has(input:checked) .icon { display: block; }
.chip:has(input:focus-visible) { outline: 3px solid var(--md-sys-color-secondary); outline-offset: 2px; }

.checkbox { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: .9375rem; line-height: 1.5; }
.checkbox input {
  appearance: none; flex: none; display: grid; place-content: center;
  width: 18px; height: 18px; margin: 3px 0 0; border: 2px solid var(--md-sys-color-on-surface-variant);
  border-radius: 2px; background: transparent; cursor: pointer;
}
.checkbox input::before {
  content: ""; width: 12px; height: 12px; transform: scale(0);
  background: var(--md-sys-color-on-primary);
  clip-path: polygon(14% 44%, 0 58%, 40% 96%, 100% 22%, 86% 8%, 38% 70%);
  transition: transform var(--md-sys-motion-duration-short4) var(--md-sys-motion-easing-emphasized);
}
.checkbox input:checked { background: var(--md-sys-color-primary); border-color: var(--md-sys-color-primary); }
.checkbox input:checked::before { transform: scale(1); }
.checkbox input:focus-visible { outline: 3px solid var(--md-sys-color-secondary); outline-offset: 3px; }
.checkbox.is-invalid input { border-color: var(--md-sys-color-error); }
.checkbox-wrap { display: grid; gap: 6px; }
.checkbox-wrap .field__error { padding-inline-start: 30px; }

.btn__spinner { display: none; width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent; animation: tn-spin .8s linear infinite; }
.btn.is-busy .btn__spinner { display: block; }
.btn.is-busy .btn__icon { display: none; }

.banner {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 16px 20px; border-radius: var(--md-sys-shape-corner-large);
  font-size: .9375rem; line-height: 1.5;
}
.banner[hidden] { display: none; }
.banner .icon { margin-top: 0; }
.banner--success { background: var(--md-sys-color-primary-fixed); color: var(--md-sys-color-on-primary-fixed); }
.banner--error { background: var(--md-sys-color-error-container); color: var(--md-sys-color-on-error-container); }
.banner a { color: inherit; font-weight: 600; }

.snackbar {
  position: fixed; left: 50%; bottom: 16px; z-index: 120;
  display: flex; align-items: center; gap: 12px;
  width: max-content; min-width: min(344px, calc(100vw - 32px)); max-width: min(600px, calc(100vw - 32px));
  padding: 14px 8px 14px 16px; border-radius: var(--md-sys-shape-corner-extra-small);
  background: var(--md-sys-color-inverse-surface); color: var(--md-sys-color-inverse-on-surface);
  box-shadow: var(--md-sys-elevation-3); font-size: .9375rem;
  transform: translate(-50%, 24px); opacity: 0; visibility: hidden;
  transition: transform var(--md-sys-motion-duration-medium2) var(--md-sys-motion-easing-emphasized-decelerate), opacity var(--md-sys-motion-duration-short4), visibility 0s linear var(--md-sys-motion-duration-medium2);
}
.snackbar.is-open { transform: translate(-50%, 0); opacity: 1; visibility: visible; transition-delay: 0s; }
.snackbar p { flex: 1; }
.snackbar .icon-btn { color: var(--md-sys-color-inverse-on-surface); width: 40px; height: 40px; }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; gap: 20px; }
@media (min-width: 1200px) { .contact-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: start; } }
.contact-form-card { padding: clamp(20px, 4vw, 40px); border-radius: var(--md-sys-shape-corner-extra-large); background: var(--md-sys-color-surface-container-lowest); box-shadow: inset 0 0 0 1px var(--md-sys-color-outline-variant); }
.contact-aside { display: grid; gap: 20px; }
.contact-aside .card { display: grid; gap: 12px; justify-items: start; }
.map-facade {
  position: relative; display: grid; place-items: center; gap: 12px; text-align: center;
  width: 100%; aspect-ratio: 4 / 3; margin-top: 8px; padding: 20px;
  border-radius: var(--md-sys-shape-corner-large); overflow: hidden;
  background:
    linear-gradient(var(--md-sys-color-surface-container-high) 2px, transparent 2px) 0 0 / 32px 32px,
    linear-gradient(90deg, var(--md-sys-color-surface-container-high) 2px, transparent 2px) 0 0 / 32px 32px,
    var(--md-sys-color-surface-container);
}
.map-facade__pin { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50% 50% 50% 8px; transform: rotate(-45deg); background: var(--md-sys-color-primary-container); color: var(--md-sys-color-on-primary-container); box-shadow: var(--md-sys-elevation-2); }
.map-facade__pin .icon { transform: rotate(45deg); }
.map-facade__note { font-size: .8125rem; color: var(--md-sys-color-on-surface-variant); max-width: 30ch; }
.map-facade.is-loaded { padding: 0; background: var(--md-sys-color-surface-container); }
.map-facade iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Prose (privacy policy) ---------- */
.prose { max-width: 72ch; }
.prose > * + * { margin-top: 16px; }
.prose h2 { font: 700 1.375rem/1.3 var(--font-display); letter-spacing: -.01em; margin-top: 40px; }
.prose ul { padding-inline-start: 1.25em; display: grid; gap: 8px; }
.prose p, .prose li { color: var(--md-sys-color-on-surface-variant); }
.prose strong { color: var(--md-sys-color-on-surface); }

/* ---------- 404 ---------- */
.not-found { display: grid; justify-items: center; text-align: center; gap: 20px; padding-block: clamp(32px, 6vw, 80px); }
.not-found__art { position: relative; display: grid; place-items: center; width: min(260px, 70vw); aspect-ratio: 1; }
.not-found__art .shape { position: absolute; inset: 0; animation: tn-spin 60s linear infinite; }
.not-found__art span { position: relative; font: 800 clamp(3.5rem, 12vw, 5rem)/1 var(--font-display); color: var(--md-sys-color-on-primary-container); letter-spacing: -.04em; }
.not-found p { max-width: 46ch; color: var(--md-sys-color-on-surface-variant); }
.not-found .actions { justify-content: center; }

/* ==========================================================================
   Motion system
   The finished graphic is always the default. "From" states exist only under .reveal-ready
   (set before first paint when JS and motion are allowed), so reduced-motion and no-JS visitors
   always see complete, static graphics. html.motion-paused pauses every loop (WCAG 2.2.2).
   ========================================================================== */
:root {
  --md-sys-motion-spring: cubic-bezier(.34, 1.56, .64, 1); /* spatial spring, slight overshoot (M3 Expressive) */
  --tn-motif: var(--md-sys-color-primary-fixed-dim);
}
:root[data-theme="dark"] { --tn-motif: var(--md-sys-color-primary-container); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --tn-motif: var(--md-sys-color-primary-container); } }

html.motion-paused *, html.motion-paused *::before, html.motion-paused *::after { animation-play-state: paused !important; }
[data-motion-toggle] .icon--play { display: none; }
[data-motion-toggle][aria-pressed="true"] .icon--pause { display: none; }
[data-motion-toggle][aria-pressed="true"] .icon--play { display: block; }
html:not(.js) [data-motion-toggle] { display: none; }
.motion-toggle { min-height: 36px; padding: 0 12px; font-size: .875rem; --btn-fg: var(--md-sys-color-on-surface-variant); }

/* Failsafe: if site.js never runs, revealed content still appears. */
.reveal-ready:not(.motion-js) [data-reveal] { animation: tn-failsafe 0s 2.5s forwards; }
@keyframes tn-failsafe { to { opacity: 1; transform: none; } }

@keyframes tn-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes tn-pop { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes tn-ring { 0% { opacity: .7; transform: scale(1); } 70%, 100% { opacity: 0; transform: scale(2.6); } }
@keyframes tn-ping { 0% { opacity: .55; transform: scale(1); } 80%, 100% { opacity: 0; transform: scale(1.7); } }
@keyframes tn-grow-x { from { transform: scaleX(0); } }
@keyframes tn-grow-y { from { transform: scaleY(0); } }
@keyframes tn-rise { from { opacity: 0; transform: translateY(10px); } }
@keyframes tn-float-sm { from { transform: translateY(0) rotate(0); } to { transform: translateY(-6px) rotate(-3deg); } }

/* Brand motif: the logo's N path draws itself, then the orange "next" dot lands and pulses */
.motif { display: block; overflow: visible; }
.motif__path { fill: none; stroke: var(--tn-motif); stroke-width: 6.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; }
.motif__dot { fill: var(--tn-brand-accent); transform-box: fill-box; transform-origin: center; }
.motif__ring { fill: none; stroke: var(--tn-brand-accent); stroke-width: 1.1; opacity: 0; transform-box: fill-box; transform-origin: center; }
.reveal-ready .motif:not(.in-view) .motif__path { stroke-dashoffset: 1; }
.reveal-ready .motif:not(.in-view) .motif__dot { transform: scale(0); }
.motif.in-view .motif__path { animation: tn-draw 1.3s var(--md-sys-motion-easing-emphasized-decelerate) both; }
.motif.in-view .motif__dot { animation: tn-pop .6s 1.05s var(--md-sys-motion-spring) both; }
.motif.in-view .motif__ring { animation: tn-ring 2.8s 1.8s var(--md-sys-motion-easing-standard) infinite; }

.page-header__motif { position: absolute; z-index: -1; right: 20px; bottom: 20px; width: 92px; height: auto; aspect-ratio: 1; }
@media (max-width: 1199px) { .page-header__inner { padding-bottom: 132px; } }
@media (min-width: 1200px) { .page-header__motif { width: clamp(200px, 19vw, 270px); right: 7%; bottom: auto; top: 50%; translate: 0 -50%; } }
.cta-band__motif { position: absolute; z-index: -1; right: -24px; bottom: -44px; width: 210px; aspect-ratio: 1; --tn-motif: var(--md-sys-color-inverse-primary); opacity: .45; }
.icon-box--float { animation: tn-float-sm 4.5s var(--md-sys-motion-easing-standard) infinite alternate; }

/* Hero: rotating "We build …" chip */
.hero__ticker {
  display: inline-flex; align-items: center; gap: 8px; max-width: 100%;
  padding: 6px 16px 6px 12px; border-radius: var(--md-sys-shape-corner-full);
  background: color-mix(in srgb, var(--md-sys-color-primary) 10%, var(--md-sys-color-surface-container-lowest));
  color: var(--md-sys-color-primary); font-weight: 600; font-size: .9375rem; line-height: 1.5;
}
.hero__ticker-dot { position: relative; width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--tn-brand-accent); }
.hero__ticker-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--tn-brand-accent); animation: tn-ping 2s var(--md-sys-motion-easing-standard) infinite; }
.hero__ticker-words { display: inline-grid; overflow: hidden; color: var(--md-sys-color-on-surface); }
.hero__ticker-words > span { grid-area: 1 / 1; white-space: nowrap; }
.hero__ticker-words > span:not(:first-child) { opacity: 0; }
.reveal-ready .hero__ticker-words > span { animation: tn-word 12.5s var(--md-sys-motion-easing-emphasized) infinite both; }
.reveal-ready .hero__ticker-words > span:nth-child(2) { animation-delay: 2.5s; }
.reveal-ready .hero__ticker-words > span:nth-child(3) { animation-delay: 5s; }
.reveal-ready .hero__ticker-words > span:nth-child(4) { animation-delay: 7.5s; }
.reveal-ready .hero__ticker-words > span:nth-child(5) { animation-delay: 10s; }
@keyframes tn-word { 0% { opacity: 0; transform: translateY(80%); } 4%, 18% { opacity: 1; transform: none; } 22%, 100% { opacity: 0; transform: translateY(-80%); } }
.hero__title { margin-top: 24px; }

/* Hero: the emphasised phrase gets a Spark Orange underline that draws in */
.hero__title em {
  background: linear-gradient(var(--tn-brand-accent), var(--tn-brand-accent)) no-repeat 0 96% / 100% .07em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.reveal-ready .hero__title em { animation: tn-underline 1s .45s var(--md-sys-motion-easing-emphasized-decelerate) both; }
@keyframes tn-underline { from { background-size: 0% .07em; } }

/* Hero visual: orbiting spark, mockups that build themselves, live bars, pointer parallax */
.hero-visual { --px: 0; --py: 0; }
.hero-visual__orbit { position: absolute; left: 12%; top: 0; width: 90%; aspect-ratio: 1; pointer-events: none; animation: tn-spin 16s linear infinite; }
.hero-visual__orbit i {
  position: absolute; left: 50%; top: -1.2%; width: 4.4cqi; aspect-ratio: 1; margin-left: -2.2cqi; border-radius: 50%;
  background: var(--tn-brand-accent);
  box-shadow: 0 0 0 1.3cqi color-mix(in srgb, var(--tn-brand-accent) 22%, transparent);
}
.mock-browser, .mock-phone, .hero-chip { transition: translate .6s var(--md-sys-motion-easing-emphasized-decelerate); }
.mock-browser { translate: calc(var(--px) * -8px) calc(var(--py) * -8px); }
.mock-phone { translate: calc(var(--px) * 14px) calc(var(--py) * 14px); }
.hero-chip { translate: calc(var(--px) * 22px) calc(var(--py) * 22px); }
.mock-bars { display: flex; align-items: flex-end; gap: 1.1cqi; height: 9cqi; margin-top: .6cqi; transform-origin: bottom center; }
.mock-bars i { flex: 1; height: 100%; border-radius: 1cqi 1cqi .4cqi .4cqi; background: var(--md-sys-color-on-primary-container); opacity: .9; transform-origin: bottom; }
.mock-bars i:nth-child(1) { height: 42%; } .mock-bars i:nth-child(2) { height: 66%; } .mock-bars i:nth-child(3) { height: 52%; }
.mock-bars i:nth-child(4) { height: 84%; } .mock-bars i:nth-child(5) { height: 70%; } .mock-bars i:nth-child(6) { height: 100%; }
.reveal-ready .mock-bars { animation: tn-grow-y .9s .5s var(--md-sys-motion-spring) both; }
.reveal-ready .mock-bars i { animation: tn-bar-live 3.2s var(--md-sys-motion-easing-standard) infinite alternate; }
.reveal-ready .mock-bars i:nth-child(1) { animation-delay: 1.6s; } .reveal-ready .mock-bars i:nth-child(2) { animation-delay: 2s; }
.reveal-ready .mock-bars i:nth-child(3) { animation-delay: 1.8s; } .reveal-ready .mock-bars i:nth-child(4) { animation-delay: 2.3s; }
.reveal-ready .mock-bars i:nth-child(5) { animation-delay: 1.7s; } .reveal-ready .mock-bars i:nth-child(6) { animation-delay: 2.1s; }
@keyframes tn-bar-live { to { transform: scaleY(.7); } }
.reveal-ready .mock-browser__body > * { transform-origin: left center; animation: tn-build .7s var(--md-sys-motion-easing-emphasized-decelerate) both; }
.reveal-ready .mock-browser__body > :nth-child(1) { animation-delay: .15s; } .reveal-ready .mock-browser__body > :nth-child(2) { animation-delay: .25s; }
.reveal-ready .mock-browser__body > :nth-child(3) { animation-delay: .35s; } .reveal-ready .mock-browser__body > :nth-child(4) { animation-delay: .45s; }
.reveal-ready .mock-browser__body > :nth-child(5) { animation-delay: .55s; } .reveal-ready .mock-browser__body > :nth-child(6) { animation-delay: .65s; }
.reveal-ready .mock-browser__body > :nth-child(7) { animation-delay: .75s; }
@keyframes tn-build { from { opacity: 0; transform: translateY(6px) scaleX(.55); } }
.reveal-ready .mock-phone > * { animation: tn-slide-in .6s var(--md-sys-motion-easing-emphasized-decelerate) both; }
.reveal-ready .mock-phone > :nth-child(2) { animation-delay: .35s; } .reveal-ready .mock-phone > :nth-child(3) { animation-delay: .5s; }
.reveal-ready .mock-phone > :nth-child(4) { animation-delay: .6s; } .reveal-ready .mock-phone > :nth-child(5) { animation-delay: .7s; }
.reveal-ready .mock-phone > .mock-phone__fab { animation: tn-pop .6s .9s var(--md-sys-motion-spring) both, tn-breathe 2.6s 1.6s var(--md-sys-motion-easing-standard) infinite alternate; }
@keyframes tn-slide-in { from { opacity: 0; transform: translateX(14px); } }
@keyframes tn-breathe { to { scale: 1.1; } }

/* Marquee band: what we do, with Spark Orange dots between items */
.marquee {
  display: flex; align-items: center; overflow: hidden;
  border-block: 1px solid var(--md-sys-color-outline-variant);
  background: var(--md-sys-color-surface-container-low);
}
.marquee__viewport { flex: 1; min-width: 0; overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, currentColor 5%, currentColor 95%, transparent); mask: linear-gradient(90deg, transparent, currentColor 5%, currentColor 95%, transparent); }
.marquee__track { display: flex; width: max-content; }
.marquee__list { display: flex; list-style: none; margin: 0; padding: 0; }
.marquee__list li {
  display: inline-flex; align-items: center; gap: clamp(20px, 3vw, 40px); padding: clamp(16px, 2.2vw, 26px) clamp(20px, 3vw, 40px) clamp(16px, 2.2vw, 26px) 0;
  font: 700 clamp(1.125rem, .85rem + 1.1vw, 1.75rem)/1.1 var(--font-display); letter-spacing: -.02em; white-space: nowrap;
  color: var(--md-sys-color-on-surface);
}
.marquee__list li:nth-child(even) { color: var(--md-sys-color-primary); }
.marquee__list li::after { content: ""; width: .38em; height: .38em; border-radius: 50%; background: var(--tn-brand-accent); }
.reveal-ready .marquee__track { animation: tn-marquee 42s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes tn-marquee { to { transform: translateX(-50%); } }
.marquee__toggle { flex: none; margin-inline: 4px 12px; }

/* Cards: lift and icon-box shape morph (M3 Expressive) on hover */
.icon-box { transition: border-radius var(--md-sys-motion-duration-medium4) var(--md-sys-motion-spring); }
.icon-box .icon { transition: transform var(--md-sys-motion-duration-medium4) var(--md-sys-motion-spring); }
.card--interactive { transition: border-radius var(--md-sys-motion-duration-medium2) var(--md-sys-motion-easing-emphasized), transform var(--md-sys-motion-duration-medium2) var(--md-sys-motion-easing-emphasized), box-shadow var(--md-sys-motion-duration-medium2); }
.card--interactive:hover { transform: translateY(-4px); box-shadow: var(--md-sys-elevation-2); }
.card--interactive:hover .icon-box, .card--interactive:focus-within .icon-box { border-radius: 50%; }
.card--interactive:hover .icon-box .icon { transform: rotate(-8deg) scale(1.12); }
.feature:hover .icon-box { border-radius: 50%; }

/* Services CTA tile (home) */
.cta-tile { display: flex; flex-direction: column; gap: 14px; height: 100%; background: var(--md-sys-color-primary-container); color: var(--md-sys-color-on-primary-container); }
.cta-tile p { opacity: .92; }
.cta-tile .card__more { margin-top: auto; color: inherit; }
.cta-tile::before { background: var(--md-sys-color-on-primary-container); }
.cta-tile__motif { width: 64px; height: 64px; --tn-motif: var(--md-sys-color-on-primary-container); }

/* Services overview: Design / Build / Run groups */
.service-group__grid { display: grid; gap: 24px; }
.service-group__head { display: grid; gap: 12px; align-content: start; }
.service-group__head h2 { display: flex; align-items: center; gap: 12px; }
.service-group__head h2 .icon { width: 32px; height: 32px; color: var(--md-sys-color-primary); }
.service-group__step { font: 800 clamp(3rem, 2rem + 4vw, 5.5rem)/1 var(--font-display); letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 1.5px var(--md-sys-color-primary); }
@media (min-width: 1200px) {
  .service-group__grid { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 48px; }
  .service-group__head { position: sticky; top: calc(var(--app-bar-height) + 24px); }
}

/* Process: a line draws through the step numbers, which pop in order */
@media (min-width: 1200px) {
  .steps--grid { position: relative; }
  .steps--grid::before {
    content: ""; position: absolute; z-index: 1; left: 46px; right: calc(20% - 62px); top: 45px; height: 2px;
    background: var(--md-sys-color-primary); opacity: .35; border-radius: 2px; transform-origin: left center;
  }
  .steps--grid .steps__item::before { position: relative; z-index: 2; }
  .reveal-ready .steps--grid:not(.in-view)::before { transform: scaleX(0); }
  .steps--grid.in-view::before { animation: tn-grow-x 1.6s .2s var(--md-sys-motion-easing-emphasized-decelerate) both; }
}
.steps--grid.in-view .steps__item::before { animation: tn-pop .5s var(--md-sys-motion-spring) both; }
.steps--grid.in-view .steps__item:nth-child(2)::before { animation-delay: .35s; }
.steps--grid.in-view .steps__item:nth-child(3)::before { animation-delay: .7s; }
.steps--grid.in-view .steps__item:nth-child(4)::before { animation-delay: 1.05s; }
.steps--grid.in-view .steps__item:nth-child(5)::before { animation-delay: 1.4s; }
.reveal-ready .steps--grid:not(.in-view) .steps__item::before { transform: scale(0); }

/* Service timeline: each segment grows down as the section comes into view */
.steps--timeline .steps__item::after { transform-origin: top center; }
.reveal-ready .steps--timeline:not(.in-view) .steps__item::after { transform: scaleY(0); }
.reveal-ready .steps--timeline:not(.in-view) .steps__item::before { transform: scale(0); }
.steps--timeline.in-view .steps__item::before { animation: tn-pop .45s var(--md-sys-motion-spring) both; }
.steps--timeline.in-view .steps__item::after { animation: tn-grow-y .5s var(--md-sys-motion-easing-emphasized-decelerate) both; }
.steps--timeline.in-view .steps__item:nth-child(2)::before { animation-delay: .3s; } .steps--timeline.in-view .steps__item:nth-child(1)::after { animation-delay: .15s; }
.steps--timeline.in-view .steps__item:nth-child(3)::before { animation-delay: .6s; } .steps--timeline.in-view .steps__item:nth-child(2)::after { animation-delay: .45s; }
.steps--timeline.in-view .steps__item:nth-child(4)::before { animation-delay: .9s; } .steps--timeline.in-view .steps__item:nth-child(3)::after { animation-delay: .75s; }
.steps--timeline.in-view .steps__item:nth-child(5)::before { animation-delay: 1.2s; } .steps--timeline.in-view .steps__item:nth-child(4)::after { animation-delay: 1.05s; }

/* Products hub: data flows along the lines into one employee profile */
.hub__lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hub__lines path { fill: none; stroke: var(--md-sys-color-primary); stroke-width: 2; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 3 7; opacity: .5; animation: tn-flow 1.1s linear infinite; }
@keyframes tn-flow { to { stroke-dashoffset: -10; } }
.hub__pulse { position: absolute; left: 50%; top: 50%; width: 170px; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; border: 2px solid var(--md-sys-color-primary); opacity: 0; animation: tn-ping 3s var(--md-sys-motion-easing-standard) infinite; }
.hub__chips li { animation: tn-chip 6s var(--md-sys-motion-easing-standard) infinite; }
.hub__chips li:nth-child(2) { animation-delay: 1s; } .hub__chips li:nth-child(3) { animation-delay: 2s; }
.hub__chips li:nth-child(4) { animation-delay: 3s; } .hub__chips li:nth-child(5) { animation-delay: 4s; } .hub__chips li:nth-child(6) { animation-delay: 5s; }
@keyframes tn-chip { 0%, 12%, 100% { transform: none; } 6% { transform: scale(1.08); } }

/* Location pins ping softly */
.ping { position: relative; }
.ping::after { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid var(--md-sys-color-primary); opacity: 0; pointer-events: none; animation: tn-ping 2.4s var(--md-sys-motion-easing-standard) infinite; }

/* WhatsApp floating button. The only third-party colours on the site: WhatsApp green (darkened
   from #25D366 so the white glyph reaches 3.5:1) and white. */
:root { --tn-whatsapp: #179C58; --tn-on-whatsapp: #FFFFFF; }
.wa-fab {
  position: fixed; right: 16px; bottom: 16px; z-index: 60; isolation: isolate;
  display: inline-flex; align-items: center; height: 56px; padding: 0 14px;
  border-radius: 28px; background: var(--tn-whatsapp); color: var(--tn-on-whatsapp);
  font-weight: 600; text-decoration: none; box-shadow: var(--md-sys-elevation-3);
  view-transition-name: wa-fab;
  transition: translate var(--md-sys-motion-duration-medium4) var(--md-sys-motion-easing-emphasized);
}
.wa-fab::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: currentColor; opacity: 0; transition: opacity var(--md-sys-motion-duration-short4); }
.wa-fab:hover::before { opacity: .1; }
.wa-fab::after { content: ""; position: absolute; inset: 0; z-index: -2; border-radius: inherit; background: var(--tn-whatsapp); opacity: 0; animation: tn-ping 3.2s 2.5s var(--md-sys-motion-easing-standard) infinite; }
.wa-fab:focus-visible { outline: 3px solid var(--md-sys-color-secondary); outline-offset: 3px; }
.wa-fab__icon { display: grid; place-items: center; width: 28px; height: 28px; flex: none; }
.wa-fab__icon svg { width: 28px; height: 28px; fill: currentColor; }
.wa-fab__label { max-width: 0; overflow: hidden; white-space: nowrap; opacity: 0; transition: max-width var(--md-sys-motion-duration-medium4) var(--md-sys-motion-easing-emphasized), opacity var(--md-sys-motion-duration-short4), margin var(--md-sys-motion-duration-medium4) var(--md-sys-motion-easing-emphasized); }
.wa-fab:hover .wa-fab__label, .wa-fab:focus-visible .wa-fab__label { max-width: 220px; opacity: 1; margin-inline: 10px 4px; }
.reveal-ready .wa-fab { animation: tn-fab-in .7s 1s var(--md-sys-motion-spring) both; }
@keyframes tn-fab-in { from { opacity: 0; transform: scale(.4) rotate(-30deg); } }
@media (min-width: 600px) { .wa-fab { right: 24px; bottom: 24px; } }
@media (max-width: 839px) { body:has(.snackbar.is-open) .wa-fab { translate: 0 -76px; } }
@media (max-width: 599px) { .site-footer { padding-bottom: 96px; } }
.top-app-bar { view-transition-name: app-bar; }

/* ---------- Reveal on scroll (only when JS is on and motion is allowed) ---------- */
.reveal-ready [data-reveal] {
  transition: opacity var(--md-sys-motion-duration-long2) var(--md-sys-motion-easing-emphasized-decelerate), transform var(--md-sys-motion-duration-long2) var(--md-sys-motion-easing-emphasized-decelerate);
  transition-delay: calc(var(--i, 0) * 70ms); /* JS sets --i per sibling group for a stagger */
}
.reveal-ready [data-reveal]:not(.is-visible) { opacity: 0; transform: translateY(24px); }

@view-transition { navigation: auto; }

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

@media print {
  .top-app-bar, .nav-drawer, .site-footer, .cta-band, .hero-visual, .snackbar, .wa-fab, .marquee { display: none !important; }
  body { background: Canvas; color: CanvasText; }
}
