/* AcademicDude design system (v9)
   Concept: an academic journal page meets a calm product UI. Serif headlines
   (Newsreader) on a cool paper ground, a clean sans for reading and controls
   (Instrument Sans), and the brand orange used the way an editor uses a pen:
   for annotations, actions and focus, never as wallpaper.
   Brand anchors: Ink #17191D, Orange #F47721.
   Every colour is a token. Light values live on :root; dark values are set
   twice below (device setting, and the explicit toggle) so either can win.
   Motion uses transform and opacity only, and switches off for reduced motion. */

/* Fonts are served from this site (no requests to Google), Latin subset, variable weights. SIL Open Font License. */
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../fonts/instrument-sans-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../fonts/newsreader-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Newsreader"; font-style: italic; font-weight: 400 600; font-display: swap; src: url("../fonts/newsreader-italic-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Zilla Slab"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/zilla-slab-700-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --brand-orange: #F47721;
  --brand-ink: #17191D;

  /* Surfaces */
  --bg: #FFFFFF;
  --bg-tint: #F5F6F8;
  --surface: #FFFFFF;
  --surface-2: #F4F5F7;
  --line: #E3E6EB;
  --line-strong: #C9CED6;
  --header-bg: rgba(255, 255, 255, .86);

  /* Text */
  --ink: #17191D;
  --muted: #5A606C;

  /* Accent: fill with --accent, write with --accent-text (AA on light) */
  --accent: #F47721;
  --accent-text: #B5520F;
  --on-accent: #17191D;
  --accent-soft: rgba(244, 119, 33, .11);
  --accent-softer: rgba(244, 119, 33, .06);
  --accent-line: rgba(244, 119, 33, .42);

  /* Night bands (integrity, footer, featured cards): dark in both themes */
  --night: #17191D;
  --night-2: #22262E;
  --on-night: #FFFFFF;
  --on-night-muted: rgba(255, 255, 255, .74);
  --night-line: rgba(255, 255, 255, .14);
  --accent-on-night: #FF9A52;

  /* Inverse button (ink on light, paper on dark) */
  --inverse-bg: #17191D;
  --inverse-fg: #FFFFFF;

  --shadow-sm: 0 1px 2px rgba(23, 25, 29, .05), 0 1px 1px rgba(23, 25, 29, .03);
  --shadow-md: 0 2px 6px rgba(23, 25, 29, .04), 0 14px 30px -10px rgba(23, 25, 29, .14);
  --shadow-lg: 0 6px 12px rgba(23, 25, 29, .04), 0 30px 60px -18px rgba(23, 25, 29, .24);
  --shadow-accent: 0 14px 30px -10px rgba(244, 119, 33, .55);

  /* Legacy names still used by tools.css and a few templates */
  --orange: var(--accent);
  --charcoal: var(--ink);
  --white: var(--surface);
  --o-06: var(--accent-softer);
  --o-10: var(--accent-soft);
  --o-18: rgba(244, 119, 33, .18);
  --o-30: var(--accent-line);
  --o-50: rgba(244, 119, 33, .5);
  --paper: var(--bg-tint);
  --paper-2: var(--surface-2);

  /* Type */
  --font-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-brand: "Zilla Slab", Georgia, serif;
  --font-accent: var(--font-head);

  /* Layout */
  --max: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --radius: var(--r-md);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --spring: cubic-bezier(.34, 1.4, .64, 1);
  --header-h: 72px;
  --bottom-nav-h: 0px;
  --shadow: var(--shadow-md);
  --brand-tile: transparent;
  --brand-tile-pad: 0px;
  --select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B5520F' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111317; --bg-tint: #15181D; --surface: #1A1D23; --surface-2: #21252C;
    --line: #2B3038; --line-strong: #3C424C; --header-bg: rgba(17, 19, 23, .84);
    --ink: #ECEDEF; --muted: #A9AEB8;
    --accent-text: #FF9A52; --accent-soft: rgba(244, 119, 33, .15); --accent-softer: rgba(244, 119, 33, .08); --accent-line: rgba(244, 119, 33, .5);
    --night: #0B0D10; --night-2: #1A1D23;
    --inverse-bg: #ECEDEF; --inverse-fg: #17191D; --brand-tile: #FFFFFF; --brand-tile-pad: 3px;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-md: 0 2px 6px rgba(0, 0, 0, .3), 0 14px 30px -10px rgba(0, 0, 0, .55);
    --shadow-lg: 0 6px 12px rgba(0, 0, 0, .3), 0 30px 60px -18px rgba(0, 0, 0, .7);
    --select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FF9A52' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #111317; --bg-tint: #15181D; --surface: #1A1D23; --surface-2: #21252C;
  --line: #2B3038; --line-strong: #3C424C; --header-bg: rgba(17, 19, 23, .84);
  --ink: #ECEDEF; --muted: #A9AEB8;
  --accent-text: #FF9A52; --accent-soft: rgba(244, 119, 33, .15); --accent-softer: rgba(244, 119, 33, .08); --accent-line: rgba(244, 119, 33, .5);
  --night: #0B0D10; --night-2: #1A1D23;
  --inverse-bg: #ECEDEF; --inverse-fg: #17191D; --brand-tile: #FFFFFF; --brand-tile-pad: 3px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-md: 0 2px 6px rgba(0, 0, 0, .3), 0 14px 30px -10px rgba(0, 0, 0, .55);
  --shadow-lg: 0 6px 12px rgba(0, 0, 0, .3), 0 30px 60px -18px rgba(0, 0, 0, .7);
  --select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FF9A52' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  color-scheme: dark;
}

/* Theme toggle icon (moon in light mode, sun in dark mode) */
.tt-sun { display: none !important; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .tt-sun { display: block !important; }
  :root:not([data-theme="light"]) .tt-moon { display: none !important; }
}
:root[data-theme="dark"] .tt-sun { display: block !important; }
:root[data-theme="dark"] .tt-moon { display: none !important; }

/* Night scope: anything on a night band reads its text tokens from here */
.dark, .home-hero, .site-footer, .cta-band, .guide-card.is-featured, .next-card.dark, .aside-cta, .callout-example,
.form-status.is-success, .side-card.privacy, .article-cta, .chat-head, .ws-thesis, .sheet-note, .status-live, .tip-dark {
  --ink: var(--on-night);
  --muted: var(--on-night-muted);
  --line: var(--night-line);
  --line-strong: rgba(255, 255, 255, .28);
  --surface: var(--night-2);
  --surface-2: rgba(255, 255, 255, .06);
  --accent-text: var(--accent-on-night);
  --inverse-bg: #FFFFFF;
  --inverse-fg: #17191D;
  color: var(--ink);
}

/* ==========================================================
   Base
   ========================================================== */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; font-family: var(--font-body); font-size: 17px; line-height: 1.65; font-weight: 400;
  color: var(--ink); background: var(--bg); overflow-x: clip; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility; -webkit-tap-highlight-color: transparent;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-head); font-weight: 500; line-height: 1.1; letter-spacing: -.018em; text-wrap: balance; font-optical-sizing: auto; }
p { margin: 0; text-wrap: pretty; }
h1 em, h2 em, h3 em { font-style: normal; color: inherit; }
em { font-style: italic; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::placeholder { color: var(--muted); opacity: 1; }

.skip-link { position: absolute; left: 16px; top: -80px; z-index: 300; background: var(--accent); color: var(--on-accent); padding: 10px 16px; font-weight: 700; border-radius: 10px; }
.skip-link:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); }
.container.narrow { max-width: 900px; }
.section { padding-block: clamp(72px, 9vw, 128px); }
.section-tight { padding-block: clamp(40px, 5vw, 64px); }
.tint, .paper { background: var(--bg-tint); }
.dark { background: var(--night); }

/* Small label above a heading: sentence case, set like a margin note */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; letter-spacing: .01em; color: var(--accent-text); }
.eyebrow::before { content: "§"; flex: none; font-family: var(--font-head); font-size: 19px; font-weight: 500; line-height: 1; color: var(--accent); transform: translateY(-1px); }
.eyebrow svg { width: 18px; height: 18px; color: var(--accent-text); }
.eyebrow a { border-bottom: 1.5px solid var(--accent); }
.eyebrow:has(.status)::before, .eyebrow:has(svg)::before { display: none; }

.section-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 20px 64px; align-items: end; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head h2 { font-size: clamp(34px, 4.4vw, 56px); margin-top: 14px; }
.section-head > p { font-size: 18px; max-width: 540px; color: var(--muted); }
.section-head.stacked { grid-template-columns: minmax(0, 1fr); }
.h-small { font-size: clamp(24px, 2.4vw, 30px); margin-bottom: 22px; }
.more-link { margin-top: 36px; }
.center-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 44px; }
.muted-p { margin-top: 14px; font-size: 17px; color: var(--muted); }
.two-col { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 32px clamp(32px, 6vw, 88px); align-items: start; }
.two-col h2 { font-size: clamp(30px, 3.6vw, 46px); margin-top: 14px; }

/* ==========================================================
   Buttons and links
   ========================================================== */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: 999px; border: 1.5px solid var(--accent);
  background: var(--accent); color: var(--on-accent); text-align: center;
  font-size: 15.5px; font-weight: 600; letter-spacing: .005em; line-height: 1.2; cursor: pointer;
  transition: transform .35s var(--ease);
}
.btn::after { content: ""; position: absolute; inset: 0; z-index: -1; background: currentColor; opacity: 0; transition: opacity .25s var(--ease); }
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .35s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:hover::after { opacity: .08; }
.btn:hover svg { transform: translateX(4px); }
.btn:active { transform: translateY(0) scale(.97); transition-duration: .1s; }
.btn:not(.btn-outline):not(.btn-line):not(.btn-ghost-light):not(.btn-dark):hover { box-shadow: var(--shadow-accent); }
.btn:disabled, .btn[aria-disabled="true"] { cursor: not-allowed; opacity: .55; transform: none; box-shadow: none !important; }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 14.5px; }
.btn-block { width: 100%; }
.btn-outline, .btn-line { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-outline:hover, .btn-line:hover { border-color: var(--ink); }
.btn-dark { background: var(--inverse-bg); color: var(--inverse-fg); border-color: var(--inverse-bg); }
.btn-ghost-light { background: transparent; color: var(--on-night); border-color: rgba(255, 255, 255, .4); }
.btn-ghost-light:hover { border-color: #FFFFFF; }
.btn-light { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink); background: linear-gradient(var(--accent), var(--accent)) 0 100% / 100% 2px no-repeat; padding-bottom: 3px; }
.text-link svg { width: 16px; height: 16px; color: var(--accent-text); transition: transform .3s var(--ease); }
.text-link:hover svg { transform: translateX(4px); }

/* ==========================================================
   Header, navigation, theme toggle
   ========================================================== */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: calc(var(--header-h) + env(safe-area-inset-top, 0px)); padding-top: env(safe-area-inset-top, 0px);
  background: var(--header-bg); border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: saturate(1.6) blur(16px); backdrop-filter: saturate(1.6) blur(16px);
  view-transition-name: site-header;
}
.site-header::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; z-index: 1; background: linear-gradient(90deg, var(--accent), #FFB27A 50%, var(--accent)); }
.site-header::after { content: ""; position: absolute; inset: 0; z-index: -1; box-shadow: var(--shadow-md); opacity: 0; transition: opacity .3s var(--ease); pointer-events: none; }
.site-header.scrolled::after { opacity: 1; }
.header-inner { height: 100%; display: flex; align-items: center; gap: 18px; }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; margin-right: auto; }
.brand-mark { width: 40px; height: auto; border-radius: 10px; background: var(--brand-tile); padding: var(--brand-tile-pad); box-sizing: border-box; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--font-brand); font-weight: 700; font-size: 21px; letter-spacing: .01em; color: var(--ink); }
.brand-name span { color: var(--accent); }
.brand-tag { font-size: 9px; font-weight: 600; letter-spacing: .18em; margin-top: 5px; color: var(--muted); }

.main-nav { height: 100%; }
.main-nav > ul { list-style: none; margin: 0; padding: 0; height: 100%; display: flex; align-items: center; gap: clamp(10px, 1.2vw, 22px); }
.main-nav li { height: 100%; display: flex; align-items: center; }
.nav-link { font-size: 14.5px; font-weight: 500; position: relative; padding: 6px 0; white-space: nowrap; color: var(--ink); }
.nav-link::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 2px; border-radius: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav-link:hover::after, .nav-link[aria-current="page"]::after, .has-mega.is-open > .nav-link::after { transform: scaleX(1); }
.nav-link[aria-current="page"] { font-weight: 600; }
.mega-toggle { width: 26px; height: 26px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; cursor: pointer; color: var(--muted); }
.mega-toggle svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.mega-toggle:hover { background: var(--accent-soft); color: var(--ink); }
.mega-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.header-cta { flex-shrink: 0; }

.theme-toggle { flex: 0 0 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; transition: transform .3s var(--ease); }
.theme-toggle svg { width: 19px; height: 19px; }
.theme-toggle:hover { transform: rotate(-14deg); border-color: var(--line-strong); }
.theme-toggle:active { transform: scale(.92); }

.mega {
  position: absolute; left: 50%; top: calc(100% + 1px); width: min(1180px, calc(100vw - 2 * var(--gutter)));
  transform: translate(-50%, 8px); opacity: 0; visibility: hidden; pointer-events: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: 0 0 var(--r-lg) var(--r-lg);
  box-shadow: var(--shadow-lg); padding: 20px;
  transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
}
.has-mega.is-open .mega { opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0); }
.mega-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
.mega-link { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 14px; }
.mega-link:hover, .mega-link:focus-visible { background: var(--surface-2); }
.mega-icon { flex: 0 0 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); transition: transform .3s var(--ease); }
.mega-link:hover .mega-icon { transform: scale(1.08) rotate(-4deg); }
.mega-icon svg { width: 21px; height: 21px; }
.mega-link strong { display: block; font-size: 15px; font-weight: 600; line-height: 1.3; }
.mega-link small { display: block; font-size: 13.5px; line-height: 1.45; margin-top: 4px; color: var(--muted); }
.mega-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding: 8px 10px; }
.mega-col-title { font-family: var(--font-head); font-size: 18px; font-weight: 500; color: var(--ink); margin-bottom: 10px; }
.mega-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.mega-col a { display: block; padding: 6px 8px; margin-left: -8px; border-radius: 8px; font-size: 15px; font-weight: 500; color: var(--muted); }
.mega-col a:hover, .mega-col a:focus-visible { background: var(--surface-2); color: var(--ink); }
.mega-foot { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 14px; padding: 14px 14px 2px; border-top: 1px solid var(--line); }
.mega-foot a { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 600; }
.mega-foot svg { width: 16px; height: 16px; color: var(--accent-text); transition: transform .3s var(--ease); }
.mega-foot a:hover svg { transform: translateX(4px); }

.menu-toggle { display: none; flex: 0 0 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); cursor: pointer; position: relative; }
.menu-bars i { position: absolute; left: 12px; width: 18px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .3s var(--ease), opacity .2s; }
.menu-bars i:nth-child(1) { top: 15px; }
.menu-bars i:nth-child(2) { top: 20px; }
.menu-bars i:nth-child(3) { top: 25px; }
.menu-open .menu-bars i:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.menu-open .menu-bars i:nth-child(2) { opacity: 0; }
.menu-open .menu-bars i:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

.mobile-menu {
  position: fixed; top: calc(var(--header-h) + env(safe-area-inset-top, 0px)); right: 0; bottom: 0; z-index: 99; width: min(440px, 100%);
  background: var(--surface); color: var(--ink); border-left: 1px solid var(--line);
  padding: 18px max(var(--gutter), env(safe-area-inset-right, 0px)) calc(32px + var(--bottom-nav-h)) var(--gutter);
  display: flex; flex-direction: column; gap: 18px; overflow-y: auto; overscroll-behavior: contain;
  transform: translateX(102%); visibility: hidden; transition: transform .38s var(--ease), visibility .38s;
}
.menu-open .mobile-menu { transform: none; visibility: visible; }
.menu-open::after { content: ""; position: fixed; inset: 0; z-index: 98; background: rgba(17, 19, 23, .4); animation: fade-in .3s var(--ease) both; }
.menu-open { overflow: hidden; }
.mobile-list { list-style: none; margin: 0; padding: 0; }
.mobile-list > li { border-bottom: 1px solid var(--line); }
.mobile-list > li > a, .mobile-list summary { display: flex; align-items: center; justify-content: space-between; min-height: 58px; font-family: var(--font-head); font-size: 22px; font-weight: 500; letter-spacing: -.01em; cursor: pointer; }
.mobile-list summary { list-style: none; }
.mobile-list summary::-webkit-details-marker { display: none; }
.mobile-list summary svg { width: 20px; height: 20px; color: var(--accent-text); transition: transform .3s var(--ease); }
.mobile-list details[open] summary svg { transform: rotate(180deg); }
.mobile-list details ul { list-style: none; margin: 0 0 12px; padding: 0 0 0 14px; border-left: 2px solid var(--accent); }
.mobile-list details a { display: block; padding: 10px 0; font-size: 16px; font-weight: 500; color: var(--muted); }
.mobile-list a[aria-current="page"] { color: var(--accent-text); }
.mobile-contact { display: grid; gap: 8px; font-size: 15px; font-weight: 600; }
.mobile-contact a { border-bottom: 1.5px solid var(--accent-line); justify-self: start; }

/* Bottom navigation (phones and small tablets) */
.bottom-nav { display: none; }

/* Breadcrumb */
.breadcrumb ol { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 14px; font-weight: 500; color: var(--muted); }
.breadcrumb li { display: flex; align-items: center; gap: 10px; }
.breadcrumb li + li::before { content: "/"; color: var(--line-strong); }
.breadcrumb a { border-bottom: 1px solid transparent; }
.breadcrumb a:hover { color: var(--ink); border-bottom-color: var(--accent); }
.breadcrumb [aria-current] { color: var(--ink); font-weight: 600; }

/* Page hero (inner pages) */
.page-hero { position: relative; overflow: hidden; isolation: isolate; padding: calc(var(--header-h) + clamp(36px, 5vw, 72px)) 0 clamp(44px, 6vw, 80px); border-bottom: 1px solid var(--line); background: var(--bg); }
.page-hero.tone-paper { background: var(--bg-tint); }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: repeating-linear-gradient(180deg, transparent 0 35px, var(--line) 35px 36px); opacity: .55; -webkit-mask-image: linear-gradient(100deg, #000, transparent 70%); mask-image: linear-gradient(100deg, #000, transparent 70%); }
.page-hero::after { content: ""; position: absolute; z-index: -1; width: 640px; height: 640px; right: -220px; top: -260px; border-radius: 50%; background: radial-gradient(circle, var(--accent-soft), transparent 65%); }
@media (min-width: 1081px) {
  .page-hero-inner:not(.has-aside) { position: relative; }
  .page-hero-inner:not(.has-aside)::after { content: "§"; position: absolute; right: max(var(--gutter), env(safe-area-inset-right, 0px)); top: 50%; transform: translateY(-46%); font: italic 400 clamp(220px, 22vw, 340px)/1 var(--font-head); color: var(--accent); opacity: .13; pointer-events: none; }
}
.page-hero-inner.has-aside { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 32px clamp(32px, 5vw, 72px); align-items: end; }
.page-hero h1 { font-size: clamp(40px, 5.6vw, 72px); letter-spacing: -.025em; line-height: 1.04; margin: 14px 0 20px; max-width: 920px; }
.page-lead { font-size: clamp(17px, 1.6vw, 20px); max-width: 720px; color: var(--muted); }
.page-lead a { font-weight: 600; color: var(--ink); border-bottom: 2px solid var(--accent); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.jump-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.jump-links a { padding: 8px 15px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 14px; font-weight: 500; transition: transform .25s var(--ease); }
.jump-links a:hover { border-color: var(--accent); transform: translateY(-2px); }
.promise-list { list-style: none; margin: 0; padding: 22px; display: grid; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-md); }
.promise-list li { display: flex; gap: 12px; font-size: 15.5px; line-height: 1.5; }
.promise-list svg { flex: 0 0 24px; width: 24px; height: 24px; color: var(--accent-text); margin-top: 1px; }

/* ==========================================================
   Cards
   ========================================================== */
.card-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card-grid.svc-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card-grid.guide-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card-grid.single { grid-template-columns: minmax(0, 1fr); }
.card-grid > li[hidden] { display: none; }
.card-grid + .next-pair, .card-grid + .start-here { margin-top: 28px; }

.svc-card, .guide-card, .tool-card, .topic-card, .res-tile, .trust-tile {
  position: relative; display: flex; flex-direction: column; gap: 12px; padding: 24px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease);
}
.svc-card::before, .guide-card::before, .tool-card::before, .res-tile::before, .post-card::before, .trust-tile::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; box-shadow: var(--shadow-lg); opacity: 0; transition: opacity .4s var(--ease); pointer-events: none;
}
.svc-card:hover, .guide-card:hover, .tool-card:hover, .res-tile:hover,
.svc-card:focus-within, .guide-card:focus-within, .tool-card:focus-within, .res-tile:focus-within { transform: translateY(-4px); border-color: var(--accent-line); }
.svc-card:hover::before, .guide-card:hover::before, .tool-card:hover::before, .res-tile:hover::before, .post-card:hover::before, .post-card:focus-within::before, .trust-tile:hover::before,
.svc-card:focus-within::before, .guide-card:focus-within::before, .tool-card:focus-within::before, .res-tile:focus-within::before { opacity: 1; }
.svc-title a::after, .guide-title a::after, .tool-title a::after, .res-tile h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.svc-title a:focus-visible, .guide-title a:focus-visible, .tool-title a:focus-visible, .res-tile h3 a:focus-visible { outline: none; }
.svc-card:has(a:focus-visible), .guide-card:has(a:focus-visible), .tool-card:has(a:focus-visible), .res-tile:has(a:focus-visible) { outline: 3px solid var(--accent); outline-offset: 3px; }
.svc-card p, .guide-card p, .tool-card p, .res-tile p, .trust-tile p { font-size: 15.5px; line-height: 1.6; color: var(--muted); }
.card-next { margin-top: auto; padding-top: 8px; display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 600; color: var(--ink); }
.card-next svg, .guide-meta svg { width: 18px; height: 18px; color: var(--accent-text); transition: transform .3s var(--ease); }
.svc-card:hover .card-next svg, .tool-card:hover .card-next svg, .guide-card:hover .guide-meta svg { transform: translateX(4px); }

.svc-icon, .guide-icon, .tool-icon, .res-icon, .trust-icon { width: 48px; height: 48px; flex: none; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); transition: transform .4s var(--spring); }
.svc-icon svg, .guide-icon svg, .tool-icon svg, .res-icon svg, .trust-icon svg { width: 24px; height: 24px; }
.svc-card:hover .svc-icon, .tool-card:hover .tool-icon, .guide-card:hover .guide-icon, .res-tile:hover .res-icon { transform: scale(1.08) rotate(-5deg); }
.svc-title, .guide-title, .tool-title { font-size: 22px; line-height: 1.2; letter-spacing: -.012em; }
.res-tile h3 { font-size: 20px; line-height: 1.25; }

/* Bento: services on the home page. Wide cards on a 4/2/1 column grid (1, 6, 7, 12 …) */
.card-grid.bento { gap: 16px; }
.bento .svc-card { padding: 26px; min-height: 230px; }
.bento .svc-card:nth-child(6n+1), .bento .svc-card:nth-child(6n) { grid-column: span 2; }
.bento .svc-card:nth-child(6n+1), .bento .svc-card:nth-child(6n) {
  background: radial-gradient(120% 140% at 100% 0%, var(--accent-soft), transparent 55%), var(--surface);
}
.bento .svc-card:nth-child(6n+1) .svc-icon, .bento .svc-card:nth-child(6n) .svc-icon { width: 56px; height: 56px; border-radius: 16px; background: var(--accent); color: var(--on-accent); }
.bento .svc-card:nth-child(6n+1) .svc-title, .bento .svc-card:nth-child(6n) .svc-title { font-size: clamp(26px, 2.4vw, 32px); max-width: 22ch; }
.bento .svc-card:nth-child(6n+1) p, .bento .svc-card:nth-child(6n) p { font-size: 16.5px; max-width: 46ch; }
.bento .svc-card:nth-child(6n+7) { background: var(--surface); }

.guide-card-top, .tool-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.guide-card .guide-icon { width: 42px; height: 42px; border-radius: 12px; }
.guide-card .guide-icon svg { width: 21px; height: 21px; }
.guide-card.is-featured { background: var(--night); border-color: var(--night); }
.guide-card.is-featured .guide-icon { background: var(--accent); color: var(--on-accent); }
.guide-card.is-featured:hover { border-color: var(--accent); }
.guide-meta { margin-top: auto; padding-top: 8px; display: flex; align-items: center; gap: 8px 16px; flex-wrap: wrap; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.guide-meta svg { margin-left: auto; }

.tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-text); font-size: 12.5px; font-weight: 600; letter-spacing: .01em; line-height: 1.35; }
.guide-card.is-featured .tag { background: rgba(255, 255, 255, .1); color: var(--on-night); }
.tag-draft { background: transparent; color: var(--ink); border: 1px dashed var(--accent); }
.tag-link { transition: transform .25s var(--ease); }
.tag-link:hover { transform: translateY(-2px); }

.status { display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 600; line-height: 1.35; white-space: nowrap; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; }
.status-live { background: var(--night); color: var(--on-night); }
.status-live::before { background: var(--accent); box-shadow: 0 0 0 3px rgba(244, 119, 33, .3); }
.status-planned { background: var(--surface); color: var(--ink); border: 1px dashed var(--accent); }
.status-planned::before { background: transparent; border: 2px solid var(--accent); width: 6px; height: 6px; }
.tool-card.is-planned { border-style: dashed; background: var(--bg-tint); }
.legend { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-bottom: 28px; font-size: 15px; }
.legend p { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* Topic cards */
.topic-card { gap: 10px; }
.topic-tags { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.topic-meta { font-size: 13px; font-weight: 600; color: var(--muted); }
.topic-title { font-size: 20px; line-height: 1.28; }
.topic-angle { font-size: 15px; line-height: 1.55; color: var(--muted); }
.topic-next { font-size: 14.5px; line-height: 1.5; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); margin-top: auto; }
.topic-keywords { display: flex; flex-wrap: wrap; gap: 6px; font-size: 12.5px; font-weight: 600; }
.topic-keywords span { padding: 2px 9px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }

/* Resource tiles */
.res-tiles { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.res-tile { padding: 22px; gap: 10px; }
.res-icon { width: 44px; height: 44px; border-radius: 12px; }
.res-icon svg { width: 22px; height: 22px; }

/* Boost chips */
.boost-chips { list-style: none; margin: 0 0 44px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.boost-chip { display: inline-flex; align-items: center; gap: 9px; min-height: 46px; padding: 0 16px 0 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 15px; font-weight: 500; transition: transform .3s var(--ease); }
.boost-chip svg { width: 20px; height: 20px; color: var(--accent-text); }
.boost-chip:hover, .boost-chip:focus-visible { transform: translateY(-2px); border-color: var(--accent-line); }
.boost-sub { margin-top: 8px; }
.boost-sub + .card-grid { margin-bottom: 40px; }

/* Trust: a signed charter with a turning seal */
.charter { position: relative; display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 32px clamp(32px, 5vw, 88px); padding: clamp(28px, 4.4vw, 64px); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.charter::before { content: ""; position: absolute; inset: 10px; border: 1px solid var(--accent-line); border-radius: calc(var(--r-lg) - 8px); pointer-events: none; }
.charter-head { position: relative; }
.charter-head h2 { font-size: clamp(32px, 3.8vw, 52px); margin: 14px 0 14px; }
.charter-head > p:not(.eyebrow) { color: var(--muted); max-width: 420px; }
.charter-seal { width: clamp(128px, 13vw, 176px); margin-top: 34px; color: var(--accent); }
.charter-seal svg { display: block; width: 100%; height: auto; overflow: visible; }
.seal-text text { fill: currentColor; font-family: var(--font-body); font-weight: 600; }
.seal-mark { font: italic 400 68px var(--font-head); fill: currentColor; }
.charter-list { list-style: none; margin: 0; padding: 0; display: grid; }
.charter-item { display: grid; grid-template-columns: 62px minmax(0, 1fr); column-gap: 18px; row-gap: 6px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.charter-item:first-child { padding-top: 6px; }
.charter-item .trust-icon { grid-row: span 3; }
.charter-item h3 { font-size: 23px; line-height: 1.2; }
.charter-item p { color: var(--muted); font-size: 15.5px; line-height: 1.6; }
.charter-item .trust-link { margin-top: 4px; justify-self: start; }
.charter-item:hover .trust-icon { transform: rotate(-8deg) scale(1.05); }
.charter-sign { margin-top: 24px; display: flex; flex-direction: column; gap: 2px; font-size: 13px; color: var(--muted); }
.charter-sign span { font: italic 500 28px/1.1 var(--font-head); color: var(--ink); }
@media (prefers-reduced-motion: no-preference) {
  .seal-text { transform-box: view-box; transform-origin: 50% 50%; animation: seal-spin 40s linear infinite; }
}
@keyframes seal-spin { to { transform: rotate(360deg); } }

/* Contact: an orange panel with the form on paper */
.contact-split { width: auto; max-width: none; margin-inline: max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter))); padding: clamp(24px, 4.4vw, 64px); border-radius: clamp(26px, 3.6vw, 44px); position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(150deg, #F7883A, #F47721 45%, #E2600F); --ink: #17191D; --muted: rgba(23, 25, 29, .86); --accent-text: #17191D; color: var(--ink); }
.contact-split::before { content: ""; position: absolute; inset: 0; z-index: -1; background: repeating-linear-gradient(180deg, transparent 0 35px, rgba(23, 25, 29, .07) 35px 36px); -webkit-mask-image: linear-gradient(90deg, #000, transparent 55%); mask-image: linear-gradient(90deg, #000, transparent 55%); }
.contact-split .eyebrow::before { color: #17191D; }
.contact-split .contact-options a, .contact-split .contact-card { --ink: #17191D; --muted: #5A606C; --surface: #FFFFFF; --surface-2: #F4F5F7; --line: #E3E6EB; --line-strong: #C9CED6; --accent-text: #B5520F; --accent-soft: rgba(244, 119, 33, .11); --inverse-bg: #17191D; --inverse-fg: #FFFFFF;
  --select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B5520F' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); color: var(--ink); }
.contact-split .contact-options a { border-color: transparent; box-shadow: 0 10px 24px -14px rgba(23, 25, 29, .5); }
.contact-split .contact-card { border-color: transparent; box-shadow: 0 34px 80px -30px rgba(23, 25, 29, .6); }
.contact-split .contact-note a { border-bottom-color: #17191D; }
.contact-split .form-submit { background: #17191D; border-color: #17191D; color: #FFFFFF; }

/* Trust tiles: icons set like an embossed university seal */
.trust-icon { width: 56px; height: 56px; border-radius: 50%; background: var(--accent-soft); box-shadow: 0 0 0 4px var(--surface), 0 0 0 5.5px var(--accent-line); margin: 6px 0 4px 6px; }
.trust-icon svg { width: 25px; height: 25px; }
.trust-tile:hover .trust-icon { transform: rotate(-8deg) scale(1.05); }
.trust-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.trust-tile { padding: 26px 24px; }
.trust-tile h3 { font-size: 22px; line-height: 1.2; margin-top: 6px; }
.trust-link { margin-top: auto; padding-top: 6px; display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; font-size: 14.5px; font-weight: 600; background: linear-gradient(var(--accent), var(--accent)) 0 100% / 100% 1.5px no-repeat; padding-bottom: 2px; }
.trust-link svg { width: 16px; height: 16px; color: var(--accent-text); transition: transform .3s var(--ease); }
.trust-link:hover svg { transform: translateX(4px); }
.placeholder-note { padding: 28px; border: 1.5px dashed var(--accent); border-radius: var(--r-md); text-align: center; color: var(--muted); }

/* ==========================================================
   Listings: search, filters, blog cards
   ========================================================== */
.post-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.post-card { position: relative; border-radius: var(--r-md); transition: transform .45s var(--ease); }
.post-card[hidden] { display: none; }
.post-card:hover, .post-card:focus-within { transform: translateY(-5px); }
.post-card article {
  position: relative; height: 100%; display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); box-shadow: var(--shadow-sm);
}
.post-card:hover article, .post-card:focus-within article { border-color: var(--accent-line); }
.post-media { aspect-ratio: 8 / 5; overflow: hidden; background: var(--night); }
.post-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.post-card article:hover .post-media img { transform: scale(1.04); }
.post-body { padding: 22px 24px 22px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.post-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.post-title { font-size: 23px; line-height: 1.2; letter-spacing: -.012em; }
.post-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.post-title a:focus-visible { outline: none; }
.post-card article:has(.post-title a:focus-visible) { outline: 3px solid var(--accent); outline-offset: 3px; }
.post-excerpt { font-size: 15.5px; color: var(--muted); }
.post-meta { margin-top: auto; padding-top: 8px; display: flex; align-items: center; gap: 14px; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.post-meta svg { width: 18px; height: 18px; margin-left: auto; color: var(--accent-text); transition: transform .3s var(--ease); }
.post-card article:hover .post-meta svg { transform: translateX(4px); }
@media (min-width: 1081px) {
  #post-grid:not(.is-filtered) .post-card.is-featured { grid-column: span 2; }
  #post-grid:not(.is-filtered) .post-card.is-featured article { flex-direction: row; }
  #post-grid:not(.is-filtered) .post-card.is-featured .post-media { flex: 1.15; aspect-ratio: auto; min-height: 100%; }
  #post-grid:not(.is-filtered) .post-card.is-featured .post-body { flex: 1; padding: 34px 32px 30px; justify-content: center; }
  #post-grid:not(.is-filtered) .post-card.is-featured .post-title { font-size: 32px; }
}

.blog-hero { position: relative; overflow: hidden; isolation: isolate; padding: calc(var(--header-h) + clamp(40px, 6vw, 72px)) 0 clamp(56px, 7vw, 88px); }
.blog-hero h1 { font-size: clamp(44px, 6.4vw, 86px); letter-spacing: -.03em; margin: 20px 0 22px; max-width: 900px; }
.blog-lead { font-size: clamp(17px, 1.6vw, 20px); max-width: 640px; color: var(--muted); }
.listing-controls { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-bottom: 8px; }
.search-field, .blog-search { position: relative; display: flex; align-items: center; max-width: 680px; background: var(--surface); color: var(--ink); border: 1px solid var(--line-strong); border-radius: 999px; box-shadow: var(--shadow-md); }
.blog-search { margin-top: 30px; }
.search-field > svg, .blog-search > svg { position: absolute; left: 20px; width: 22px; height: 22px; color: var(--accent-text); pointer-events: none; }
.search-field input, .blog-search input { flex: 1; min-width: 0; height: 58px; padding: 0 56px 0 54px; border: 0; background: transparent; border-radius: 999px; font-size: 16.5px; font-weight: 500; outline: none; }
.search-field input::-webkit-search-cancel-button, .blog-search input::-webkit-search-cancel-button { display: none; }
.search-field:focus-within, .blog-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft), var(--shadow-md); }
.search-clear { position: absolute; right: 9px; width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer; background: var(--surface-2); color: var(--ink); font-size: 24px; line-height: 1; }
.search-clear:hover { background: var(--accent); color: var(--on-accent); }
.select-row { display: flex; flex-wrap: wrap; gap: 12px 16px; }
.select-field { display: grid; gap: 4px; min-width: 200px; }
.select-field label { font-size: 13.5px; font-weight: 600; color: var(--muted); }
.select-field select, .field select { appearance: none; -webkit-appearance: none; background: var(--surface) var(--select-arrow) no-repeat right 14px center / 18px; padding-right: 42px !important; }
.select-field select { width: 100%; min-width: 0; height: 48px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 12px; font-weight: 500; cursor: pointer; }
.chip-row, .filter-bar { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px; cursor: pointer; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); color: var(--ink); font-size: 14.5px; font-weight: 500; transition: transform .25s var(--ease); }
.filter-chip span { min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px; display: grid; place-items: center; background: var(--surface-2); font-size: 12.5px; }
.filter-chip:hover { transform: translateY(-2px); border-color: var(--accent); }
.filter-chip:active { transform: scale(.96); }
.filter-chip[aria-pressed="true"] { background: var(--inverse-bg); color: var(--inverse-fg); border-color: var(--inverse-bg); }
.filter-chip[aria-pressed="true"] span { background: var(--accent); color: var(--on-accent); }
.blog-list { padding-top: clamp(40px, 5vw, 64px); }
.results-status { margin: 10px 0 16px; font-size: 15px; font-weight: 600; color: var(--muted); }
.draft-note { margin: 0 0 28px; font-size: 14.5px; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.empty-state { text-align: center; padding: 52px 24px; border: 1.5px dashed var(--accent-line); border-radius: var(--r-md); background: var(--surface); margin-top: 8px; }
.empty-state h2 { font-size: 28px; margin-bottom: 10px; }
.empty-state p { margin-bottom: 20px; color: var(--muted); }
.load-more-wrap { display: flex; justify-content: center; margin-top: 40px; }
.notice-box { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; margin-bottom: 26px; border-radius: 14px; background: var(--accent-softer); border: 1px solid var(--accent-line); font-size: 15.5px; line-height: 1.55; }
.notice-box > svg { flex: 0 0 24px; width: 24px; height: 24px; color: var(--accent-text); margin-top: 1px; }
.start-here { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 18px 22px; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--line); }
.start-here-label { font-weight: 600; }
.start-here ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.start-here a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; border-bottom: 2px solid var(--accent); }
.start-here svg { width: 15px; height: 15px; }

/* Next cards, pills, split links */
.next-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.next-pair.single { grid-template-columns: minmax(0, 1fr); max-width: 760px; margin: 0 0 28px; }
.next-card { display: flex; gap: 16px; align-items: flex-start; padding: 22px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .35s var(--ease); }
.next-card:hover { transform: translateY(-4px); border-color: var(--accent-line); }
.next-card > span:last-child { display: grid; gap: 4px; }
.next-card small { font-size: 13px; font-weight: 600; color: var(--accent-text); }
.next-card strong { font-family: var(--font-head); font-size: 21px; font-weight: 500; line-height: 1.25; }
.next-card span span { font-size: 15px; line-height: 1.5; color: var(--muted); }
.next-card.dark { background: var(--night); border-color: var(--night); }
.next-card.dark .tool-icon { background: var(--accent); color: var(--on-accent); }
.pill-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.pill-links a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 14.5px; font-weight: 500; transition: transform .25s var(--ease); }
.pill-links a:hover { border-color: var(--accent); transform: translateY(-2px); }
.pill-links svg { width: 18px; height: 18px; color: var(--accent-text); }
.more-tools-title { margin-top: 48px; }
.split-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.split-link { position: relative; display: grid; gap: 8px; padding: 24px 24px 58px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface); transition: transform .35s var(--ease); }
.split-link:hover { border-color: var(--accent-line); transform: translateY(-4px); }
.split-link strong { font-family: var(--font-head); font-size: 23px; font-weight: 500; line-height: 1.2; }
.split-link span:not(.eyebrow) { font-size: 15.5px; color: var(--muted); }
.split-link > svg { position: absolute; left: 24px; bottom: 22px; width: 22px; height: 22px; color: var(--accent-text); transition: transform .3s var(--ease); }
.split-link:hover > svg { transform: translateX(4px); }

/* ==========================================================
   How it works steps (a real sequence, so it is numbered)
   ========================================================== */
.steps-flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; position: relative; }
.steps-flow::before { content: ""; position: absolute; left: 28px; right: 28px; top: 27px; height: 2px; background: repeating-linear-gradient(90deg, var(--accent) 0 8px, transparent 8px 16px); opacity: .7; }
.flow-step { position: relative; display: grid; gap: 12px; align-content: start; padding-right: 8px; }
.flow-num { position: relative; z-index: 1; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); color: var(--ink); border: 1.5px solid var(--accent); font-family: var(--font-head); font-size: 26px; font-weight: 500; box-shadow: 0 0 0 6px var(--bg); }
.tint .flow-num, .paper .flow-num { background: var(--bg-tint); box-shadow: 0 0 0 6px var(--bg-tint); }
.flow-step:last-child .flow-num { background: var(--accent); color: var(--on-accent); }
.flow-icon { position: absolute; top: 11px; left: 72px; width: 34px; height: 34px; color: var(--accent-text); background: linear-gradient(var(--accent-soft), var(--accent-soft)), var(--bg); box-shadow: 0 0 0 5px var(--bg); border-radius: 10px; display: grid; place-items: center; }
.tint .flow-icon, .paper .flow-icon { background: linear-gradient(var(--accent-soft), var(--accent-soft)), var(--bg-tint); box-shadow: 0 0 0 5px var(--bg-tint); }
.flow-icon svg { width: 20px; height: 20px; }
.flow-title { font-size: 22px; line-height: 1.22; margin-top: 8px; }
.flow-step p { font-size: 15.5px; color: var(--muted); }

/* FAQ */
.faq-list { display: grid; gap: 10px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.faq-item[open] { border-color: var(--accent-line); box-shadow: var(--shadow-md); }
.faq-item summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; cursor: pointer; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:focus-visible { outline-offset: -3px; border-radius: var(--r-md); }
.faq-q { font-family: var(--font-body); font-size: 17px; font-weight: 600; line-height: 1.4; letter-spacing: 0; }
.faq-item summary svg { flex: 0 0 32px; width: 32px; height: 32px; padding: 6px; border-radius: 50%; background: var(--surface-2); color: var(--accent-text); transition: transform .35s var(--ease); }
.faq-item[open] summary svg { transform: rotate(180deg); }
.faq-a { padding: 0 22px 22px; font-size: 16px; line-height: 1.7; color: var(--muted); }
.faq-a p + p { margin-top: .7em; }
.faq-a a { font-weight: 600; color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.faq-page { padding-top: clamp(40px, 5vw, 64px); padding-bottom: clamp(48px, 6vw, 80px); display: grid; gap: 44px; }
.faq-group h2 { font-size: clamp(26px, 3vw, 34px); margin-bottom: 18px; }
@media (prefers-reduced-motion: no-preference) {
  .faq-item[open] .faq-a { animation: fade-up .35s var(--ease) both; }
}

/* CTA band */
.cta-band { background: var(--night); padding: clamp(52px, 7vw, 88px) 0; position: relative; overflow: hidden; isolation: isolate; }
.cta-band::after { content: ""; position: absolute; z-index: -1; width: 560px; height: 560px; right: -160px; bottom: -300px; border-radius: 50%; background: radial-gradient(circle, rgba(244, 119, 33, .35), transparent 65%); }
.cta-band-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; align-items: center; }
.cta-band h2 { font-size: clamp(30px, 3.8vw, 46px); margin-bottom: 10px; }
.cta-band p { font-size: 17px; max-width: 620px; color: var(--muted); }
.cta-band-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ==========================================================
   Content pages, articles, prose
   ========================================================== */
.content-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); padding-top: clamp(40px, 5vw, 72px); padding-bottom: clamp(48px, 6vw, 88px); align-items: start; }
.content-layout.no-aside { grid-template-columns: minmax(0, 1fr); padding: 0; }
.content-aside { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 20px; }
.content-layout.is-policy .content-aside { gap: 0; }
.summary-box { padding: 20px 22px; border-radius: var(--r-md); background: var(--accent-softer); border: 1px solid var(--accent-line); }
.summary-label { font-size: 13.5px; font-weight: 600; color: var(--accent-text); margin-bottom: 6px; }
.summary-box p:last-child { font-size: 17px; line-height: 1.6; }

.article-hero { position: relative; overflow: hidden; isolation: isolate; padding: calc(var(--header-h) + clamp(36px, 5vw, 64px)) 0 clamp(48px, 6vw, 80px); }
.article-hero-inner { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.article-hero h1 { font-size: clamp(40px, 5.2vw, 70px); letter-spacing: -.025em; margin: 18px 0 18px; }
.article-standfirst { font-size: clamp(17px, 1.6vw, 20px); max-width: 620px; color: var(--muted); }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 0; margin-top: 26px; font-size: 14.5px; font-weight: 500; color: var(--muted); }
.article-meta span { display: inline-flex; align-items: center; }
.article-meta span + span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); margin: 0 12px; }
.article-figure { margin: 0; }
.article-figure img { width: 100%; height: auto; border-radius: var(--r-lg); border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.draft-banner { display: inline-flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 18px; padding: 10px 16px; border: 1px dashed var(--accent); border-radius: 12px; font-size: 14.5px; font-weight: 500; background: var(--surface); }
.draft-banner strong { background: var(--accent); color: var(--on-accent); padding: 2px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; }

.read-progress { position: fixed; left: 0; right: 0; top: calc(var(--header-h) + env(safe-area-inset-top, 0px)); z-index: 98; height: 3px; pointer-events: none; }
.read-progress span { display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; }

.article-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); padding-top: clamp(48px, 6vw, 80px); padding-bottom: clamp(48px, 6vw, 80px); align-items: start; }
.article-aside { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 20px; }
.toc summary { list-style: none; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--muted); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.toc summary::-webkit-details-marker { display: none; }
.toc nav ol { list-style: none; margin: 14px 0 0; padding: 0; border-left: 1px solid var(--line); display: grid; gap: 2px; }
.toc nav a { display: block; padding: 7px 0 7px 16px; margin-left: -1px; border-left: 2px solid transparent; font-size: 15px; font-weight: 500; line-height: 1.4; color: var(--muted); }
.toc nav a:hover { border-left-color: var(--accent-line); color: var(--ink); }
.toc nav a[aria-current] { border-left-color: var(--accent); font-weight: 600; color: var(--ink); }
.aside-cta { display: grid; gap: 10px; padding: 20px; border-radius: var(--r-md); background: var(--night); }
.aside-cta-title { font-family: var(--font-head); font-size: 19px !important; font-weight: 500; }
.aside-cta p { margin: 0 !important; font-weight: 400 !important; font-size: 14.5px !important; }
.aside-cta .btn { justify-self: start; }
.aside-cta .text-link { justify-self: start; font-size: 14.5px; color: var(--accent-on-night); }
.aside-cta .text-link svg { width: 15px; height: 15px; }

.prose { max-width: 740px; font-size: 18px; line-height: 1.78; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(30px, 3vw, 38px); margin-top: 2em; scroll-margin-top: 100px; }
.prose h2::before { content: "§"; margin-right: .3em; font-weight: 400; color: var(--accent); }
.prose h3 { font-size: 24px; margin-top: 1.7em; scroll-margin-top: 100px; }
.prose h4 { font-family: var(--font-body); font-size: 18px; font-weight: 600; margin-top: 1.5em; }
.prose h2 + *, .prose h3 + * { margin-top: .7em; }
.prose a { font-weight: 600; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .45em; }
.prose ul li::marker { color: var(--accent); }
.prose ol li::marker { color: var(--accent-text); font-weight: 600; }
.prose code { font-size: .9em; background: var(--surface-2); padding: 2px 6px; border-radius: 6px; }
.prose .small-note { font-size: 15px; font-style: italic; margin-top: .6em; color: var(--muted); }
.prose blockquote { margin-left: 0; padding-left: 20px; border-left: 3px solid var(--accent); font-family: var(--font-head); font-size: 1.12em; }

.callout { border-radius: var(--r-md); padding: 22px 24px; border: 1px solid var(--accent-line); }
.callout > * + * { margin-top: .7em; }
.callout-title { font-weight: 600; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.callout-title span { background: var(--accent); color: var(--on-accent); padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; }
.callout-example { background: var(--night); border-color: var(--night); }
.callout-example strong { color: var(--accent-on-night); }
.callout-tip { background: var(--accent-softer); }
.callout-note, .callout-warning { background: var(--surface); }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
.table-wrap:focus-visible { outline-offset: 2px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15.5px; line-height: 1.5; min-width: 520px; }
.prose th { background: var(--surface-2); color: var(--ink); text-align: left; padding: 12px 16px; font-weight: 600; border-bottom: 1px solid var(--line); }
.prose td { padding: 12px 16px; border-top: 1px solid var(--line); vertical-align: top; }
.prose tbody tr:nth-child(even) td { background: var(--accent-softer); }

.article-cta { margin-top: 2.6em !important; padding: 28px; border-radius: var(--r-lg); background: var(--night); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px 28px; align-items: center; }
.article-cta-kicker { color: var(--accent-on-night); font-size: 13.5px; font-weight: 600; }
.article-cta-text { font-family: var(--font-head); font-size: 22px; font-weight: 500; line-height: 1.3; margin-top: 6px; }
.article-cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.article-cta .btn { min-height: 48px; }
.article-cta .btn-outline { color: var(--on-night); border-color: rgba(255, 255, 255, .4); }
.article-about { margin-top: 2em !important; padding-top: 22px; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.65; color: var(--muted); }
.article-services { margin: 28px 0 0; }
.share-row { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.share-row p { font-weight: 600; font-size: 14px; margin: 0; }
.share-row ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.share-row a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); font-size: 14px; font-weight: 500; text-decoration: none; }
.share-row a:hover { border-color: var(--ink); }
.share-row svg { width: 18px; height: 18px; }
.related { padding-top: 0; }
.related-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 32px; }
.related-head h2 { font-size: clamp(32px, 4vw, 50px); }

/* Side cards (tools, contact) */
.side-card { padding: 22px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface); }
.side-card h2 { font-size: 21px; margin-bottom: 12px; }
.side-card ol, .side-card ul { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; font-size: 15px; line-height: 1.55; }
.side-card li::marker { color: var(--accent-text); font-weight: 600; }
.side-card a { font-weight: 600; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.side-card.limits { background: var(--bg-tint); }
.side-card.privacy { display: flex; gap: 12px; align-items: flex-start; background: var(--night); border-color: var(--night); font-size: 14.5px; }
.side-card.privacy svg { flex: 0 0 22px; width: 22px; height: 22px; color: var(--accent); }
.tool-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
.tool-side { display: grid; gap: 16px; position: sticky; top: calc(var(--header-h) + 24px); }
.tool-app { min-width: 0; }

/* Services list rows */
.svc-rows { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.svc-row { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 16px; padding: 22px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .35s var(--ease); }
.svc-row:hover, .svc-row:focus-within { border-color: var(--accent-line); transform: translateY(-3px); }
.svc-row .svc-icon { grid-row: span 2; }
.svc-row .svc-title { font-size: 21px; margin-bottom: 6px; }
.svc-row .svc-title a::after { content: ""; position: absolute; inset: 0; }
.svc-row p { font-size: 15px; line-height: 1.55; color: var(--muted); }
.svc-for { margin-top: 6px; font-size: 14px !important; }
.svc-row .card-next { grid-column: 2; }

/* Service detail: at a glance + process diagram */
.glance { padding: 22px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.glance-label { font-size: 13.5px; font-weight: 600; color: var(--accent-text); margin-bottom: 10px; }
.glance-plain, .glance-for { font-size: 15px; line-height: 1.55; margin-bottom: 10px; }
.process-diagram { list-style: none; margin: 14px 0; padding: 0; display: grid; gap: 0; }
.process-diagram li { position: relative; display: flex; align-items: center; gap: 12px; padding: 7px 0; font-size: 14.5px; font-weight: 500; line-height: 1.35; }
.process-diagram li:not(:last-child)::after { content: ""; position: absolute; left: 14px; top: 36px; bottom: -8px; width: 2px; background: var(--accent-line); }
.pd-num { flex: 0 0 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--surface); color: var(--ink); border: 1.5px solid var(--accent); font: 500 15px var(--font-head); position: relative; z-index: 1; }
.process-diagram li:last-child .pd-num { background: var(--accent); color: var(--on-accent); }
.glance-note { display: flex; gap: 10px; align-items: flex-start; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13.5px; font-weight: 500; line-height: 1.45; color: var(--muted); }
.glance-note svg { flex: 0 0 20px; width: 20px; height: 20px; color: var(--accent-text); }
.next-step { background: var(--bg-tint); }
.next-step-inner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 32px clamp(28px, 4vw, 64px); align-items: start; padding-top: clamp(40px, 5vw, 64px); padding-bottom: clamp(40px, 5vw, 64px); }
.next-step h2 { font-size: clamp(28px, 2.8vw, 38px); margin: 8px 0 12px; }

/* ==========================================================
   Forms and contact
   ========================================================== */
.field { display: grid; gap: 6px; margin-bottom: 18px; min-width: 0; }
.field > label, .field legend { font-size: 14.5px; font-weight: 600; }
.optional { font-weight: 400; color: var(--muted); }
.field input:not([type="checkbox"]):not([type="radio"]), .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 12px; background-color: var(--surface); font-size: 16px; line-height: 1.45;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.field [aria-invalid="true"] { border-color: var(--accent-text) !important; border-width: 2px !important; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
.field-hint { font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.field-error { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; font-weight: 600; line-height: 1.4; color: var(--accent-text); }
.field-error::before { content: "!"; flex: 0 0 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); font-size: 12px; font-weight: 700; margin-top: 1px; }
.check-field { grid-template-columns: 24px minmax(0, 1fr); align-items: start; gap: 4px 12px; }
.check-field input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--accent); cursor: pointer; }
.check-field label { font-size: 15px; font-weight: 400; line-height: 1.5; }
.check-field label a { font-weight: 600; border-bottom: 1.5px solid var(--accent); }
.check-field .field-error { grid-column: 2; }
.hp-field { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.form-submit .fs-busy { display: none; }
.form-submit.is-busy .fs-label { display: none; }
.form-submit.is-busy .fs-busy { display: inline; }
.form-status:empty { display: none; }
.form-status { margin-top: 18px; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--accent-line); font-size: 15.5px; line-height: 1.55; }
.form-status:focus { outline: none; }
.form-status strong { display: block; font-family: var(--font-head); font-size: 19px; font-weight: 500; margin-bottom: 4px; }
.form-status.is-success { background: var(--night); border-color: var(--night); }
.form-status.is-success strong { color: var(--accent-on-night); }
.form-status.is-info { background: var(--accent-softer); }
.form-status.is-error { background: var(--surface); border-width: 2px; border-color: var(--accent); }
.form-status .form-status-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.form-status a:not(.btn) { font-weight: 600; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.form-offline { display: block; overflow-wrap: anywhere; margin-bottom: 20px; padding: 14px 16px; border-radius: 14px; background: var(--accent-softer); border: 1px dashed var(--accent); font-size: 15px; line-height: 1.5; }
.form-offline a { font-weight: 600; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }

.contact-layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 32px clamp(32px, 5vw, 72px); align-items: start; }
.contact-layout:has(.contact-aside) { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); }
.contact-intro h2 { font-size: clamp(34px, 4.2vw, 54px); margin: 14px 0 16px; }
.contact-intro > p:not(.eyebrow):not(.contact-note) { font-size: 18px; max-width: 520px; color: var(--muted); }
.contact-card { padding: clamp(22px, 3vw, 36px); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.contact-aside { display: grid; gap: 16px; }
.contact-options { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 10px; }
.side-card .contact-options { margin: 0; padding: 0; }
.contact-options a { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); font-weight: 600; font-size: 15.5px; text-decoration: none !important; overflow-wrap: anywhere; transition: transform .3s var(--ease); }
.contact-options a:hover { border-color: var(--accent-line); transform: translateX(4px); }
.contact-options small { display: block; font-size: 12.5px; font-weight: 600; color: var(--accent-text); }
.co-icon { flex: 0 0 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); }
.co-icon svg { width: 22px; height: 22px; }
.contact-note { margin-top: 18px; font-size: 14.5px; color: var(--muted); }
.contact-note a { font-weight: 600; color: var(--ink); border-bottom: 1.5px solid var(--accent); }

/* ==========================================================
   Home hero: headline, intake, and the annotated draft
   ========================================================== */
.home-hero { position: relative; overflow: hidden; isolation: isolate; padding: calc(var(--header-h) + clamp(36px, 5vw, 72px)) 0 clamp(64px, 7vw, 104px); background: var(--bg); }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-bg i { position: absolute; display: block; }
.hb-rules { inset: 0; background: repeating-linear-gradient(180deg, transparent 0 35px, var(--line) 35px 36px); opacity: .5; -webkit-mask-image: linear-gradient(100deg, #000 0%, rgba(0, 0, 0, .25) 40%, transparent 65%); mask-image: linear-gradient(100deg, #000 0%, rgba(0, 0, 0, .25) 40%, transparent 65%); }
.hb-margin { top: 0; bottom: 0; left: clamp(10px, 4vw, 64px); width: 1.5px; background: var(--accent-line); }
.hb-glow { width: 900px; height: 900px; right: -320px; top: -360px; border-radius: 50%; background: radial-gradient(circle, var(--accent-soft), transparent 62%); }
.home-hero-inner { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 48px clamp(28px, 4vw, 72px); align-items: center; }
.hero-copy, .hero-stage { min-width: 0; }
.hero-pill { display: inline-flex; align-items: center; gap: 10px; max-width: 100%; padding: 7px 16px 7px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); font-size: 13.5px; font-weight: 500; line-height: 1.35; color: var(--muted); }
.hp-dot { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.hero-title { font-size: clamp(44px, 4.5vw, 72px); font-weight: 500; line-height: 1.0; letter-spacing: -.03em; margin: 24px 0 22px; }
.ht-line { display: block; }
.ht-word { display: inline-block; }
.ht-mark { position: relative; display: inline-block; white-space: nowrap; font-style: italic; }
.ht-swoosh { position: absolute; left: -2%; bottom: -.1em; width: 104%; height: .26em; color: var(--accent); overflow: visible; }
.hero-lead { font-size: clamp(17px, 1.35vw, 19.5px); line-height: 1.62; max-width: 560px; color: var(--muted); }

.intake { margin-top: 30px; max-width: 660px; padding: 16px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.intake-title { display: flex; align-items: center; gap: 8px; margin: 2px 4px 12px; font-size: 15px; font-weight: 600; }
.intake-title svg { width: 20px; height: 20px; flex: none; color: var(--accent-text); }
.intake-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) auto; gap: 8px; align-items: stretch; }
.intake-field { display: grid; align-content: center; gap: 2px; min-width: 0; min-height: 58px; padding: 8px 14px; border-radius: 14px; background: var(--surface-2); border: 1.5px solid transparent; }
.intake-field:focus-within { border-color: var(--accent); background: var(--surface); }
.intake-field label { font-size: 12px; font-weight: 600; color: var(--muted); }
.intake-field select, .intake-field input { width: 100%; min-width: 0; min-height: 28px; padding: 2px 0; border: 0; background: transparent; font-size: 16px; font-weight: 500; outline: none; color: var(--ink); }
.intake-field select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 22px; background: var(--select-arrow) right center / 16px no-repeat; text-overflow: ellipsis; }
.intake-field select option { background: var(--surface); color: var(--ink); }
.intake-btn { min-height: 58px; padding: 0 22px; border-radius: 14px; }
.intake-note { display: flex; align-items: center; gap: 8px; margin: 12px 4px 0; font-size: 13px; font-weight: 500; line-height: 1.4; color: var(--muted); }
.intake-note svg { width: 15px; height: 15px; flex: none; color: var(--accent-text); }
.intake.has-error .intake-note { padding: 9px 12px; border-radius: 12px; background: var(--inverse-bg); color: var(--inverse-fg); font-weight: 600; }

.home-hero .hero-actions { margin-top: 26px; }
.hero-trust { list-style: none; margin: 32px 0 0; padding: 22px 0 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.hero-trust li { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; min-width: 0; line-height: 1.4; color: var(--muted); }
.hero-trust svg { flex: 0 0 34px; width: 34px; height: 34px; padding: 7px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-text); }
.hero-trust b { display: block; font-size: 14px; font-weight: 600; line-height: 1.25; margin-bottom: 2px; color: var(--ink); }

/* The annotated draft: a page on a desk, with an editor's marks */
.hero-stage { position: relative; padding: clamp(28px, 3vw, 44px) clamp(18px, 2.4vw, 34px) clamp(18px, 2vw, 26px); border-radius: 32px; background: var(--bg-tint); border: 1px solid var(--line); }
.hero-stage::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background-image: radial-gradient(var(--line-strong) 1px, transparent 1.4px); background-size: 22px 22px; opacity: .55; -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 75%); pointer-events: none; }
.hero-stage > * { position: relative; }
.workspace { --mx: 0; --my: 0; position: relative; width: 100%; max-width: 560px; aspect-ratio: 1 / 1.02; margin: 0 auto; }
.workspace [data-depth] { translate: calc(var(--mx) * var(--d, .3) * 18px) calc(var(--my) * var(--d, .3) * 18px); transition: translate .5s var(--ease); }
.ws-sheet { position: absolute; left: 14%; top: 13%; width: 70%; height: 80%; padding: 22px 22px 18px 34px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); rotate: -1.5deg; }
.ws-sheet::before { content: ""; position: absolute; left: 22px; top: 0; bottom: 0; width: 1.5px; background: var(--accent-line); }
.sheet-head { display: flex; align-items: center; gap: 8px; padding-bottom: 12px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.sheet-tag { padding: 2px 8px; border-radius: 6px; background: var(--accent-soft); color: var(--accent-text); font-size: 11px; font-weight: 600; }
.sheet-title { font-family: var(--font-head); font-size: 14px; font-weight: 500; }
.sheet-h { font-family: var(--font-head); font-size: 14px; font-weight: 600; margin: 12px 0 8px; }
.sheet-line { height: 6px; margin: 0 0 9px; border-radius: 4px; background: var(--line); }
.sheet-line.w95 { width: 95%; } .sheet-line.w92 { width: 92%; } .sheet-line.w90 { width: 90%; } .sheet-line.w88 { width: 88%; } .sheet-line.w80 { width: 80%; } .sheet-line.w70 { width: 70%; } .sheet-line.w60 { width: 60%; }
.sheet-hl { margin: 2px 0 10px; font-family: var(--font-head); font-size: 13.5px; line-height: 1.55; }
.sheet-hl span { position: relative; z-index: 0; padding: 1px 2px; }
.sheet-hl span::before { content: ""; position: absolute; inset: 0 -2px; z-index: -1; border-radius: 3px; background: rgba(244, 119, 33, .26); transform-origin: left; }
.sheet-hl em { color: var(--ink); font-style: italic; text-decoration: underline wavy var(--accent); text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.sheet-note { position: absolute; left: -14%; bottom: 7%; width: 64%; padding: 12px 14px; border-radius: 14px 14px 14px 4px; background: var(--night); font-size: 12.5px; line-height: 1.45; rotate: 1.5deg; box-shadow: var(--shadow-lg); }
.sheet-note b { display: block; font-size: 11px; font-weight: 600; color: var(--accent-on-night); margin-bottom: 3px; }
.ws-card { position: absolute; z-index: 2; padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-md); font-size: 13px; line-height: 1.4; }
.ws-label { font-size: 11px; font-weight: 600; color: var(--accent-text); margin-bottom: 6px; }
.ws-strong { font-family: var(--font-head); font-weight: 500; font-size: 15px; line-height: 1.3; }
.ws-outline { left: -7%; top: 14%; width: 31%; }
.ws-outline ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; font-weight: 500; font-size: 12.5px; }
.ws-outline b { display: inline-grid; place-items: center; width: 20px; height: 20px; margin-right: 6px; border-radius: 6px; background: var(--accent-soft); color: var(--accent-text); font-size: 11px; font-weight: 600; }
.ws-thesis { right: -3%; top: 0; width: 44%; background: var(--night); border-color: var(--night); }
.ws-cite { right: -8%; top: 29%; width: 28%; background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.ws-cite .ws-label { color: var(--on-accent); opacity: .8; }
.ws-check { right: -2%; bottom: 0; width: 38%; }
.ws-check ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-weight: 500; font-size: 12.5px; }
.ws-check li { display: flex; gap: 7px; align-items: center; }
.ws-check li::before { content: ""; flex: 0 0 15px; height: 15px; border-radius: 5px; border: 1.5px solid var(--line-strong); }
.ws-check li.done::before { border-color: var(--accent); background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2317191D' stroke-width='3.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 10px no-repeat; }
.ws-rail { list-style: none; margin: 24px auto 0; padding: 0; max-width: 560px; display: flex; justify-content: space-between; gap: 6px; }
.ws-rail li { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--muted); position: relative; }
.ws-rail li span { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--surface); border: 1.5px solid var(--line-strong); color: var(--ink); font-size: 12px; position: relative; z-index: 1; }
.ws-rail li:not(:last-child)::after { content: ""; position: absolute; top: 13px; left: 50%; width: 100%; height: 1.5px; background: var(--accent-line); }
.ws-rail li:nth-child(2)::after { --n: 1; } .ws-rail li:nth-child(3)::after { --n: 2; } .ws-rail li:nth-child(4)::after { --n: 3; }
.ws-rail li:last-child span { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.ws-caption { margin-top: 10px; text-align: center; font-size: 12px; color: var(--muted); }

/* ==========================================================
   Cinematic hero: a night stage with a live editing loop
   (one 12-second loop; transform and opacity only; pauses off screen)
   ========================================================== */
.home-hero { --loop: 12s; background: var(--night); margin-inline: clamp(0px, 1vw, 14px); border-radius: 0 0 clamp(28px, 4vw, 52px) clamp(28px, 4vw, 52px); }
.home-hero .hb-rules { background: repeating-linear-gradient(180deg, transparent 0 35px, rgba(255, 255, 255, .05) 35px 36px); opacity: 1; }
.home-hero .hb-margin { background: rgba(244, 119, 33, .45); }
.home-hero .hb-glow { width: 1000px; height: 1000px; right: -260px; top: -340px; background: radial-gradient(circle, rgba(244, 119, 33, .3), transparent 60%); }
.home-hero .hb-glow-2 { width: 760px; height: 760px; left: -320px; right: auto; top: auto; bottom: -420px; background: radial-gradient(circle, rgba(244, 119, 33, .16), transparent 62%); }
.home-hero .hero-pill { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); box-shadow: none; color: var(--on-night-muted); }
.home-hero .hero-trust { border-top-color: var(--night-line); }
.home-hero .hero-trust svg { background: rgba(244, 119, 33, .16); color: var(--accent-on-night); }
.home-hero .btn-line { border-color: rgba(255, 255, 255, .32); color: #FFFFFF; }
.home-hero .btn-line:hover { border-color: #FFFFFF; }

/* Paper islands inside the night hero keep the paper palette in both themes */
.home-hero .intake, .ws-sheet, .ws-outline, .ws-check {
  --ink: #17191D; --muted: #5A606C; --surface: #FFFFFF; --surface-2: #F4F5F7; --line: #E3E6EB; --line-strong: #C9CED6;
  --accent-text: #B5520F; --accent-soft: rgba(244, 119, 33, .11); --inverse-bg: #17191D; --inverse-fg: #FFFFFF;
  --select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B5520F' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  color: var(--ink);
}
.home-hero .intake { border-color: transparent; box-shadow: 0 34px 80px -24px rgba(0, 0, 0, .7); }
.home-hero .hero-stage { background: none; border: 0; padding: 0; }
.home-hero .hero-stage::before { background-image: radial-gradient(rgba(255, 255, 255, .16) 1px, transparent 1.4px); opacity: .6; }
.scene-glow { position: absolute; inset: 4% 2% 10%; border-radius: 50%; background: radial-gradient(closest-side, rgba(244, 119, 33, .45), rgba(244, 119, 33, .1) 60%, transparent); pointer-events: none; }
.home-hero .ws-sheet, .home-hero .ws-card { box-shadow: 0 26px 60px -18px rgba(0, 0, 0, .7); }
.home-hero .ws-thesis { background: #22262E; border-color: rgba(255, 255, 255, .12); }
.hl-run b { font-weight: inherit; display: inline-block; }
.sheet-hl span.hl-run::before { inset: -1px -3px; }
.sheet-edit { margin: 0 0 10px; font-family: var(--font-head); font-size: 13.5px; line-height: 1.55; }
.sheet-edit s { position: relative; text-decoration: none; color: var(--muted); display: inline-block; }
.sheet-edit s::after { content: ""; position: absolute; left: -2px; right: -2px; top: 54%; height: 2px; border-radius: 2px; background: var(--accent); transform-origin: left; }
.sheet-edit ins { display: inline-block; margin: 0 5px 0 6px; text-decoration: none; color: var(--accent-text); font-weight: 600; font-style: italic; }
.ws-pen { position: absolute; inset: 0; z-index: 6; pointer-events: none; opacity: 0; }
.ws-pen i { position: absolute; left: 0; top: 0; width: 38px; height: 38px; margin: -34px 0 0 -4px; display: grid; place-items: center; border-radius: 50% 50% 50% 6px; background: var(--accent); color: #17191D; box-shadow: 0 12px 26px -6px rgba(0, 0, 0, .65); }
.ws-pen svg { width: 20px; height: 20px; }
.home-hero .ws-rail li { color: var(--on-night-muted); }
.home-hero .ws-rail li span, .home-hero .ws-rail li:last-child span { background: var(--night); border-color: rgba(255, 255, 255, .3); color: #FFFFFF; isolation: isolate; }
.home-hero .ws-rail li span::after { content: ""; position: absolute; inset: -1.5px; z-index: -1; border-radius: 50%; background: var(--accent); opacity: 0; }
.home-hero .ws-rail li:last-child span::after { opacity: 1; }
.home-hero .ws-rail li:not(:last-child)::after { background: rgba(255, 255, 255, .18); }
.home-hero .ws-rail li:not(:last-child)::before { content: ""; position: absolute; z-index: 0; top: 13px; left: 50%; width: 100%; height: 1.5px; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.home-hero .ws-caption { color: var(--on-night-muted); }

@keyframes k-word { 0% { opacity: 0; transform: translateY(5px); } 3% { opacity: 1; transform: none; } 86% { opacity: 1; transform: none; } 91%, 100% { opacity: 0; transform: none; } }
@keyframes k-hl { 0%, 19% { transform: scaleX(0); opacity: 1; } 25%, 88% { transform: scaleX(1); opacity: 1; } 93%, 100% { transform: scaleX(1); opacity: 0; } }
@keyframes k-strike { 0%, 30% { transform: scaleX(0); opacity: 1; } 34%, 88% { transform: scaleX(1); opacity: 1; } 93%, 100% { transform: scaleX(1); opacity: 0; } }
@keyframes k-dim { 0%, 32% { opacity: 1; } 36%, 88% { opacity: .5; } 93%, 100% { opacity: 1; } }
@keyframes k-ins { 0%, 35% { opacity: 0; transform: translateY(-7px) scale(.7); } 39%, 88% { opacity: 1; transform: none; } 93%, 100% { opacity: 0; transform: none; } }
@keyframes k-note { 0%, 41% { opacity: 0; transform: scale(.86) translateY(10px); } 46%, 88% { opacity: 1; transform: none; } 93%, 100% { opacity: 0; transform: none; } }
@keyframes k-cite { 0%, 47% { opacity: 0; transform: translate(48px, -12px) rotate(9deg); } 52% { opacity: 1; transform: translate(-5px, 0) rotate(-2deg); } 55%, 88% { opacity: 1; transform: none; } 93%, 100% { opacity: 0; transform: none; } }
@keyframes k-tick { 0%, 55% { transform: scale(0); } 58% { transform: scale(1.25); } 60%, 89% { transform: scale(1); } 93%, 100% { transform: scale(0); } }
@keyframes k-dot { 0% { opacity: 0; } 4%, 86% { opacity: 1; } 91%, 100% { opacity: 0; } }
@keyframes k-fill { 0% { transform: scaleX(0); opacity: 1; } 9%, 86% { transform: scaleX(1); opacity: 1; } 91%, 100% { transform: scaleX(1); opacity: 0; } }
@keyframes k-breathe { 0%, 100% { opacity: .65; transform: scale(.94); } 50% { opacity: 1; transform: scale(1.04); } }
@keyframes k-pen {
  0% { opacity: 0; transform: translate(95%, 102%); }
  3% { opacity: 1; transform: translate(20.7%, 43%); }
  16% { opacity: 1; transform: translate(60%, 42%); }
  19% { opacity: 1; transform: translate(20.7%, 43%); }
  25% { opacity: 1; transform: translate(60%, 42%); }
  30% { opacity: 1; transform: translate(20.6%, 50.6%); }
  34% { opacity: 1; transform: translate(32.9%, 50.6%); }
  38% { opacity: 1; transform: translate(37%, 52%); }
  44% { opacity: 1; transform: translate(45.9%, 76%); }
  51% { opacity: 1; transform: translate(84%, 43%); }
  57% { opacity: 1; transform: translate(68.4%, 87%); }
  61% { opacity: 1; transform: translate(68.4%, 92%); }
  66%, 100% { opacity: 0; transform: translate(100%, 106%); }
}
@media (prefers-reduced-motion: no-preference) {
  html.js-hero .home-hero.is-ready .scene-glow { animation: k-breathe 8s ease-in-out infinite; }
  html.js-hero .home-hero.is-ready .hl-run b { animation: k-word var(--loop) var(--ease) infinite both; }
  html.js-hero .home-hero.is-ready .hl-run b:nth-child(1) { animation-delay: .5s; }
  html.js-hero .home-hero.is-ready .hl-run b:nth-child(2) { animation-delay: .8s; }
  html.js-hero .home-hero.is-ready .hl-run b:nth-child(3) { animation-delay: 1.1s; }
  html.js-hero .home-hero.is-ready .hl-run b:nth-child(4) { animation-delay: 1.4s; }
  html.js-hero .home-hero.is-ready .hl-run b:nth-child(5) { animation-delay: 1.7s; }
  html.js-hero .home-hero.is-ready .sheet-hl span.hl-run::before { animation: k-hl var(--loop) var(--ease) infinite both; }
  html.js-hero .home-hero.is-ready .sheet-edit s::after { animation: k-strike var(--loop) var(--ease) infinite both; }
  html.js-hero .home-hero.is-ready .sheet-edit s { animation: k-dim var(--loop) ease infinite both; }
  html.js-hero .home-hero.is-ready .sheet-edit ins { animation: k-ins var(--loop) var(--spring) infinite both; }
  html.js-hero .home-hero.is-ready .sheet-note { animation: k-note var(--loop) var(--spring) infinite both; }
  html.js-hero .home-hero.is-ready .ws-cite { animation: k-cite var(--loop) var(--ease) infinite both; }
  html.js-hero .home-hero.is-ready .ws-check li.done::before { animation: k-tick var(--loop) var(--ease) infinite both; }
  html.js-hero .home-hero.is-ready .ws-check li.done + li.done::before { animation-delay: .45s; }
  html.js-hero .home-hero.is-ready .ws-rail li span::after { animation: k-dot var(--loop) ease infinite both; }
  html.js-hero .home-hero.is-ready .ws-rail li:not(:last-child)::before { animation: k-fill var(--loop) var(--ease) infinite both; }
  html.js-hero .home-hero.is-ready .ws-rail li:not(:last-child)::after { animation: none; transform: none; }
  html.js-hero .home-hero.is-ready .ws-rail li:nth-child(1) span::after { animation-delay: .6s; }
  html.js-hero .home-hero.is-ready .ws-rail li:nth-child(1)::before { animation-delay: .9s; }
  html.js-hero .home-hero.is-ready .ws-rail li:nth-child(2) span::after { animation-delay: 1.9s; }
  html.js-hero .home-hero.is-ready .ws-rail li:nth-child(2)::before { animation-delay: 2.2s; }
  html.js-hero .home-hero.is-ready .ws-rail li:nth-child(3) span::after { animation-delay: 3.2s; }
  html.js-hero .home-hero.is-ready .ws-rail li:nth-child(3)::before { animation-delay: 3.5s; }
  html.js-hero .home-hero.is-ready .ws-rail li:nth-child(4) span::after { animation-delay: 4.5s; }
  html.js-hero .home-hero.is-ready .ws-rail li:nth-child(4)::before { animation-delay: 4.8s; }
  html.js-hero .home-hero.is-ready .ws-rail li:nth-child(5) span::after { animation-delay: 5.8s; }
  html.js-hero .home-hero.is-ready .ws-pen { animation: k-pen var(--loop) cubic-bezier(.45, 0, .25, 1) infinite both; }
  .home-hero.is-paused *, .home-hero.is-paused *::before, .home-hero.is-paused *::after { animation-play-state: paused !important; }
}

/* Moving strip under the hero */
main.home { overflow-x: clip; }
.marquee { position: relative; z-index: 1; margin: clamp(-34px, -2.4vw, -20px) -2% 0; overflow: hidden; background: var(--accent); color: #17191D; transform: rotate(-1.6deg); box-shadow: 0 18px 40px -18px rgba(244, 119, 33, .7); pointer-events: none; }
.marquee-track { display: flex; width: max-content; align-items: center; gap: 22px; padding: 14px 0; font: italic 500 clamp(19px, 2vw, 26px)/1.1 var(--font-head); white-space: nowrap; }
.marquee-track span { display: inline-block; }
.marquee-track i { font-style: normal; opacity: .55; }
@media (prefers-reduced-motion: no-preference) {
  .marquee-track { animation: marquee 70s linear infinite; }
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Floating bands: rounded, inset panels that break the page rhythm */
.band { margin-inline: clamp(8px, 1.4vw, 20px); border-radius: clamp(26px, 3.6vw, 48px); }
.band-accent { background: var(--accent); --ink: #17191D; --muted: rgba(23, 25, 29, .86); --accent-text: #17191D; color: var(--ink); position: relative; overflow: hidden; isolation: isolate; }
.band-accent::before { content: "§"; position: absolute; z-index: -1; left: -2%; bottom: -18%; font: italic 400 clamp(280px, 34vw, 520px)/1 var(--font-head); color: rgba(23, 25, 29, .07); pointer-events: none; }
.band-accent .eyebrow::before { color: #17191D; }
.band-accent .text-link { color: #17191D; background-image: linear-gradient(#17191D, #17191D); }
.band-accent .text-link svg { color: #17191D; }
.band-accent .finder-panel { --ink: #17191D; --muted: #5A606C; --surface: #FFFFFF; --surface-2: #F4F5F7; --line: #E3E6EB; --line-strong: #C9CED6; --accent-text: #B5520F; --inverse-bg: #17191D; --inverse-fg: #FFFFFF; color: var(--ink); border-color: transparent; box-shadow: 0 30px 70px -26px rgba(23, 25, 29, .55); }
.integrity.band { border: 0; }

/* Service finder */
.finder { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 28px clamp(28px, 4vw, 64px); align-items: start; }
.finder-intro h2 { font-size: clamp(34px, 3.8vw, 52px); line-height: 1.05; margin: 12px 0 14px; }
.finder-intro p { max-width: 460px; color: var(--muted); }
.finder-more { margin-top: 18px; }
.finder-panel { padding: clamp(18px, 2.4vw, 30px); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.finder-q { border: 0; margin: 0 0 20px; padding: 0; min-width: 0; }
.finder-q legend { padding: 0; margin-bottom: 12px; font-family: var(--font-head); font-size: 20px; font-weight: 500; }
.finder-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.finder-chip { min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); font: 500 14.5px/1.25 var(--font-body); text-align: left; cursor: pointer; transition: transform .25s var(--ease); }
.finder-chip:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.finder-chip:active { transform: scale(.96); }
.finder-chip[aria-pressed="true"] { background: var(--inverse-bg); border-color: var(--inverse-bg); color: var(--inverse-fg); }
.finder-chip[aria-pressed="true"]::before { content: "✓ "; color: var(--accent); }
.finder-result { padding-top: 18px; border-top: 1px dashed var(--line-strong); }
.finder-empty { font-size: 15px; color: var(--muted); }
.finder-kicker { font-size: 13.5px; font-weight: 600; color: var(--accent-text); margin-bottom: 10px; }
.finder-picks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.finder-pick { padding: 16px 18px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.finder-pick-title { font-size: 20px; margin-bottom: 4px; }
.finder-pick-title a { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.finder-pick p { font-size: 15px; line-height: 1.5; color: var(--muted); }
.finder-pick-links { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 8px; font-size: 14px !important; font-weight: 600; }
.finder-pick-links a { display: inline-flex; align-items: center; min-height: 32px; color: var(--ink); border-bottom: 1.5px solid var(--accent-line); }
.finder-ask { border-bottom-color: var(--ink) !important; }
.finder-reset { margin-top: 16px; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; font: 600 14px var(--font-body); cursor: pointer; transition: transform .25s var(--ease); }
.finder-reset:hover { border-color: var(--ink); }
.finder-reset:active { transform: scale(.96); }
@media (prefers-reduced-motion: no-preference) {
  .finder-pick { animation: fade-up .45s var(--ease) both; }
  .finder-pick:nth-child(2) { animation-delay: .06s; }
  .finder-pick:nth-child(3) { animation-delay: .12s; }
}

/* Integrity section */
.integrity { border-block: 1px solid var(--night-line); }
.integrity .section-head > p { color: var(--on-night-muted); }
.integrity .int-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.int-col { padding: 28px; border-radius: var(--r-lg); border: 1px solid var(--night-line); background: rgba(255, 255, 255, .03); }
.int-yes { background: rgba(244, 119, 33, .1); border-color: rgba(244, 119, 33, .45); }
.int-col h3 { font-size: 24px; margin-bottom: 16px; }
.int-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.int-col li { display: flex; gap: 12px; font-size: 15.5px; line-height: 1.5; }
.int-col li::before { flex: 0 0 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; margin-top: 1px; }
.int-yes li::before { content: "✓"; background: var(--accent); color: var(--on-accent); }
.int-no li::before { content: "✕"; background: rgba(255, 255, 255, .1); color: var(--on-night); }
.int-foot { margin-top: 24px; max-width: 760px; font-size: 15.5px; color: var(--on-night-muted); }
.int-foot a { color: var(--accent-on-night); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ==========================================================
   Connect band (Instagram + contact) above the footer
   ========================================================== */
.connect { position: relative; overflow: hidden; padding-block: clamp(72px, 8vw, 112px); background: var(--bg); border-top: 1px solid var(--line); }
.connect-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 40px clamp(32px, 5vw, 80px); align-items: center; }
.connect-copy h2 { font-size: clamp(32px, 3.6vw, 50px); line-height: 1.06; margin: 14px 0 16px; }
.connect-copy h2 span { color: var(--muted); }
.connect-lead { max-width: 520px; font-size: 17px; color: var(--muted); }
.connect-cards { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 10px; max-width: 520px; }
.cc { display: flex; align-items: center; gap: 14px; padding: 12px 14px 12px 12px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .3s var(--ease); }
.cc:hover { border-color: var(--accent-line); transform: translateX(4px); }
.cc-icon { flex: 0 0 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--inverse-bg); color: var(--inverse-fg); }
.cc-icon svg { width: 24px; height: 24px; }
.cc-insta .cc-icon { background: var(--accent); color: var(--on-accent); }
.cc-text { flex: 1; min-width: 0; font-weight: 600; font-size: 16px; overflow-wrap: anywhere; line-height: 1.3; }
.cc-text small { display: block; font-size: 12.5px; font-weight: 500; color: var(--muted); }
.cc-go { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.cc-go svg { width: 16px; height: 16px; color: var(--accent-text); transition: transform .3s var(--ease); }
.cc:hover .cc-go svg { transform: translateX(3px); }

.insta-frame { position: relative; padding: 18px; border-radius: 28px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.if-head { display: flex; align-items: center; gap: 12px; padding: 2px 4px 16px; }
.if-avatar { flex: 0 0 52px; height: 52px; border-radius: 50%; padding: 2.5px; background: conic-gradient(from 200deg, var(--accent), #FFB27A, var(--accent)); }
.if-avatar img { width: 100%; height: 100%; object-fit: contain; border-radius: 50%; background: var(--night); padding: 8px; border: 2px solid var(--surface); }
.if-id { flex: 1; min-width: 0; line-height: 1.25; }
.if-id strong { display: block; font-size: 16px; font-weight: 600; overflow-wrap: anywhere; }
.if-id small { font-size: 13px; color: var(--muted); }
.if-follow { flex: none; padding: 9px 18px; border-radius: 10px; background: var(--accent); color: var(--on-accent); font-size: 14px; font-weight: 600; transition: transform .25s var(--ease); }
.if-follow:hover { transform: translateY(-2px); }
.if-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.tip { position: relative; display: flex; flex-direction: column; aspect-ratio: 1; padding: 12px; border-radius: 12px; overflow: hidden; transition: transform .35s var(--ease); }
.tip:hover { transform: scale(1.03); z-index: 1; }
.tip-orange { background: var(--accent); color: var(--on-accent); }
.tip-dark { background: var(--night); }
.tip-light { background: var(--surface-2); color: var(--ink); }
.tip-big { position: absolute; right: -4px; bottom: -10px; font: 600 clamp(32px, 3.4vw, 48px)/1 var(--font-head); letter-spacing: -.04em; opacity: .16; white-space: nowrap; }
.tip-kicker { font-size: 10.5px; font-weight: 600; }
.tip-dark .tip-kicker, .tip-light .tip-kicker { color: var(--accent-text); }
.tip strong { margin-top: 6px; font: 500 clamp(13px, 1.1vw, 15.5px)/1.22 var(--font-head); }
.tip-foot { margin-top: auto; display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 600; opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .3s var(--ease); }
.tip-foot svg { width: 12px; height: 12px; }
.tip:hover .tip-foot, .tip:focus-visible .tip-foot { opacity: 1; transform: none; }
.if-note { margin-top: 14px; padding: 0 4px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.if-note a { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; color: var(--ink); border-bottom: 1.5px solid var(--accent); }
.if-note svg { width: 14px; height: 14px; }

/* Instagram: a phone showing the real profile (handle, avatar, follow) and a post grid */
.ig-stage { position: relative; isolation: isolate; display: grid; justify-items: center; gap: 16px; }
.ig-stage::before { content: ""; position: absolute; z-index: -1; inset: 4% -4% 12%; border-radius: 50%; background: radial-gradient(closest-side, rgba(244, 119, 33, .28), transparent); }
.ig-phone { position: relative; width: min(100%, 384px); padding: 11px; border-radius: 50px; background: #17191D; box-shadow: 0 44px 90px -34px rgba(23, 25, 29, .6), inset 0 0 0 1.5px rgba(255, 255, 255, .1); transform: rotate(-2.5deg); transition: transform .6s var(--ease); }
.ig-phone:hover { transform: rotate(0deg) translateY(-4px); }
.ig-phone::before { content: ""; position: absolute; z-index: 2; top: 21px; left: 50%; width: 96px; height: 26px; margin-left: -48px; border-radius: 999px; background: #17191D; }
.ig-screen { --ink: #17191D; --muted: #5A606C; --line: #E3E6EB; background: #FFFFFF; color: var(--ink); border-radius: 40px; overflow: hidden; padding: 50px 14px 0; }
.ig-bar { display: flex; align-items: center; justify-content: space-between; padding: 0 6px 14px; font-size: 16px; font-weight: 700; }
.ig-bar svg { width: 22px; height: 22px; }
.ig-profile { display: flex; align-items: center; gap: 16px; padding: 0 6px; }
.ig-avatar { flex: 0 0 80px; height: 80px; border-radius: 50%; padding: 3px; background: conic-gradient(from 210deg, #F47721, #FFC08F, #F47721, #C24E0C, #F47721); transition: transform .4s var(--spring); }
.ig-avatar:hover { transform: scale(1.05) rotate(-4deg); }
.ig-avatar img { width: 100%; height: 100%; border-radius: 50%; background: #FFFFFF; border: 3px solid #FFFFFF; object-fit: contain; padding: 8px; }
.ig-id { min-width: 0; line-height: 1.3; }
.ig-id strong { display: block; font-size: 17px; font-weight: 700; }
.ig-id span { font-size: 13px; color: var(--muted); }
.ig-bio { margin: 12px 6px 0; font-size: 13.5px; line-height: 1.5; }
.ig-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 14px 6px 0; }
.ig-follow, .ig-msg { display: grid; place-items: center; min-height: 38px; border-radius: 10px; font-size: 14px; font-weight: 600; transition: transform .2s var(--ease); }
.ig-follow { background: var(--accent); color: #17191D; }
.ig-msg { background: #EFF0F2; color: #17191D; }
.ig-follow:active, .ig-msg:active { transform: scale(.96); }
.ig-tabs { display: grid; grid-template-columns: 1fr 1fr; margin: 16px -14px 0; border-top: 1px solid var(--line); }
.ig-tabs span { display: grid; place-items: center; padding: 11px 0; color: #9AA0AA; }
.ig-tabs .is-on { color: #17191D; box-shadow: inset 0 1.5px 0 #17191D; }
.ig-tabs svg { width: 21px; height: 21px; }
.ig-grid { list-style: none; margin: 0 -14px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; }
.ig-post { display: block; overflow: hidden; }
.ig-post img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .6s var(--ease); }
.ig-post:hover img { transform: scale(1.05); }
.ig-grid .tip { aspect-ratio: 4 / 5; padding: 9px 8px; border-radius: 0; gap: 0; }
.ig-grid .tip:hover { transform: none; }
.ig-grid .tip:hover strong { text-decoration: underline; text-decoration-color: currentColor; text-underline-offset: 2px; }
.tip-brand { position: absolute; right: 6px; top: 6px; width: 20px; height: 20px; border-radius: 50%; background: #FFFFFF; padding: 3px; box-shadow: 0 1px 3px rgba(0, 0, 0, .15); }
.tip-brand img { width: 100%; height: 100%; object-fit: contain; }
.tip-orange { background: linear-gradient(160deg, #F7883A, #E2600F); }
.tip-light { background: #F4F5F7; color: #17191D; }
.tip-light .tip-kicker { color: #B5520F; }
.ig-grid .tip-kicker { font-size: 9.5px; padding-right: 22px; }
.ig-grid .tip strong { margin-top: 5px; font: 500 12.5px/1.22 var(--font-head); }
.ig-grid .tip-big { font-size: 34px; }
.ig-grid .tip-foot { display: none; }
.ig-stage .if-note { text-align: center; }

/* ==========================================================
   Footer
   ========================================================== */
.site-footer { position: relative; overflow: hidden; isolation: isolate; background: var(--night); padding: 0 0 28px; }
.footer-rules { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: repeating-linear-gradient(180deg, transparent 0 39px, rgba(255, 255, 255, .03) 39px 40px); }
.footer-cta { position: relative; display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: 24px 40px; align-items: end; margin-top: clamp(56px, 7vw, 88px); padding: clamp(28px, 4vw, 52px); border-radius: 28px; background: var(--accent); color: var(--on-accent); overflow: hidden;
  --ink: var(--on-accent); --muted: rgba(23, 25, 29, .78); }
.footer-cta::after { content: ""; position: absolute; right: -60px; bottom: -80px; width: 300px; height: 300px; border: 1.5px solid rgba(23, 25, 29, .16); border-radius: 50%; pointer-events: none; }
.footer-cta::before { content: ""; position: absolute; right: 30px; bottom: 10px; width: 160px; height: 160px; border: 1.5px solid rgba(23, 25, 29, .12); border-radius: 50%; pointer-events: none; }
.footer-kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.footer-kicker span { width: 8px; height: 8px; border-radius: 50%; background: var(--on-accent); }
.footer-cta-title { margin: 12px 0 10px; font: 500 clamp(32px, 3.8vw, 54px)/1.02 var(--font-head); letter-spacing: -.025em; max-width: 720px; text-wrap: balance; }
.footer-cta-title em { font-style: italic; color: inherit; }
.footer-cta-text { max-width: 560px; font-size: 16px; color: var(--muted); }
.footer-cta-actions { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 10px; }
.footer-cta .btn { background: #17191D; border-color: #17191D; color: #FFFFFF; }
.footer-cta .btn-ghost-light { background: transparent; border-color: rgba(23, 25, 29, .5); color: #17191D; }
.footer-cta .btn-ghost-light:hover { border-color: #17191D; }
.footer-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); gap: 40px clamp(32px, 5vw, 80px); margin-top: clamp(48px, 6vw, 72px); }
.footer-logo { display: inline-block; margin-bottom: 20px; padding: 14px 18px 12px; border-radius: 20px; background: #FFFFFF; box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .5); transition: transform .3s var(--ease); }
.footer-logo:hover { transform: translateY(-2px); }
.footer-logo img { width: 150px; height: auto; display: block; }
.footer-brand > p { font-size: 15px; line-height: 1.65; max-width: 360px; color: var(--muted); }
.footer-brand strong { color: var(--ink); font-weight: 600; }
.footer-contact { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 8px; max-width: 340px; }
.footer-contact a { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 12px 8px 8px; border-radius: 16px; border: 1px solid var(--line); transition: transform .3s var(--ease); }
.footer-contact a:hover { border-color: var(--accent); transform: translateX(4px); }
.fc-icon { flex: 0 0 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: rgba(255, 255, 255, .07); color: var(--accent); }
.fc-icon svg { width: 20px; height: 20px; }
.footer-contact span:last-child { min-width: 0; font-size: 14.5px; font-weight: 600; overflow-wrap: anywhere; line-height: 1.3; }
.footer-contact small { display: block; font-size: 12px; font-weight: 500; color: var(--muted); }
.footer-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.footer-col h2 { font-family: var(--font-head); font-size: 19px; font-weight: 500; color: var(--ink); margin-bottom: 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.footer-col a { display: inline-flex; align-items: center; min-height: 34px; font-size: 14.5px; line-height: 1.35; color: var(--muted); }
.footer-col a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; }
.footer-integrity { display: flex; gap: 14px; align-items: flex-start; margin-top: 48px; padding: 16px 20px; border-radius: 16px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); font-size: 14px; line-height: 1.6; color: var(--muted); }
.footer-integrity > svg { flex: 0 0 24px; width: 24px; height: 24px; color: var(--accent); }
.footer-integrity strong { color: var(--ink); font-weight: 600; }
.footer-integrity a { color: var(--accent-on-night); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.footer-word { display: block; width: 100%; height: auto; margin-top: 40px; overflow: visible; user-select: none; }
.footer-word text { font: 700 150px/1 var(--font-brand); fill: #FFFFFF; }
.footer-word tspan { fill: var(--accent); }
.footer-bottom { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; font-size: 13.5px; color: var(--muted); }
.footer-bottom p { margin: 0; }
.footer-legal { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 20px; }
.footer-legal a { display: inline-flex; min-height: 32px; align-items: center; }
.footer-legal a:hover, .to-top:hover { color: var(--accent-on-night); }
.to-top { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-strong); font-weight: 600; color: var(--ink); }

/* Sticky WhatsApp button (sits above the assistant on desktop, above the tab bar on phones) */
.wa-float { position: fixed; right: max(20px, env(safe-area-inset-right, 0px)); bottom: max(20px, env(safe-area-inset-bottom, 0px)); z-index: 90; display: inline-flex; align-items: center; gap: 8px; height: 50px; padding: 0 18px 0 14px; border-radius: 999px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow-lg); font-size: 14.5px; font-weight: 600; transition: transform .3s var(--ease); }
.wa-float svg { width: 22px; height: 22px; color: #1FA855; }
.wa-float:hover { transform: translateY(-3px); }
.has-chat .wa-float { bottom: calc(max(20px, env(safe-area-inset-bottom, 0px)) + 84px); }
.menu-open .wa-float, .chat-open .wa-float { opacity: 0; visibility: hidden; pointer-events: none; }

/* ==========================================================
   Chat assistant (launcher, panel, messages)
   ========================================================== */
.chat-launcher {
  position: fixed; right: max(20px, env(safe-area-inset-right, 0px)); bottom: max(20px, env(safe-area-inset-bottom, 0px)); z-index: 1000;
  width: 70px; height: 70px; padding: 0; border-radius: 50%; cursor: pointer; overflow: visible;
  display: flex; align-items: center; justify-content: center;
  background: #FFFFFF; border: 3px solid var(--accent); box-shadow: 0 0 0 3px var(--bg), var(--shadow-lg);
  transition: transform .3s var(--ease), opacity .2s, visibility .2s;
}
.chat-launcher:hover { transform: translateY(-3px); }
.chat-launcher:active { transform: scale(.94); }
.chat-launcher:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.chat-launcher[aria-expanded="true"] { background: var(--accent); border-color: var(--ink); }
.chat-launcher-badge { position: absolute; top: 2px; right: 2px; z-index: 2; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); border: 2px solid #FFFFFF; opacity: 0; transform: scale(.4); transition: opacity .2s, transform .2s; }
.chat-launcher.has-unread .chat-launcher-badge { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
  .chat-launcher::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 3px solid var(--accent); animation: halo 3.6s ease-out infinite; pointer-events: none; }
}
@keyframes halo { 0% { opacity: .6; transform: scale(1); } 70%, 100% { opacity: 0; transform: scale(1.35); } }

.chat-nudge {
  position: fixed; right: max(20px, env(safe-area-inset-right, 0px)); bottom: calc(max(20px, env(safe-area-inset-bottom, 0px)) + 168px); z-index: 1000;
  display: flex; align-items: center; gap: 4px; max-width: 290px; padding: 6px 6px 6px 16px;
  background: var(--inverse-bg); color: var(--inverse-fg); border-radius: 16px 16px 4px 16px; box-shadow: var(--shadow-lg);
  animation: chat-rise .35s var(--ease);
}
.chat-nudge-text { background: none; border: 0; color: inherit; font: 600 14px/1.35 var(--font-body); text-align: left; cursor: pointer; padding: 4px 0; }
.chat-nudge-close { flex: 0 0 30px; height: 30px; border-radius: 50%; border: 0; background: transparent; color: inherit; font-size: 20px; cursor: pointer; }
.chat-nudge-close:hover, .chat-nudge-close:focus-visible { background: var(--accent); color: var(--on-accent); }

.chat-panel {
  position: fixed; right: max(20px, env(safe-area-inset-right, 0px)); bottom: calc(max(20px, env(safe-area-inset-bottom, 0px)) + 84px); z-index: 1001;
  width: min(400px, calc(100vw - 40px)); height: min(620px, calc(100vh - 140px)); height: min(620px, calc(100dvh - 140px));
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 24px;
  box-shadow: var(--shadow-lg);
  opacity: 0; transform: translateY(14px) scale(.98); transform-origin: bottom right;
  transition: opacity .25s var(--ease), transform .3s var(--ease);
}
.chat-panel.is-open { opacity: 1; transform: none; }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 12px 10px 12px 14px; background: var(--night); }
.chat-head-mascot { flex: 0 0 46px; height: 46px; border-radius: 50%; overflow: visible; background: #FFFFFF; border: 2px solid var(--accent); display: flex; align-items: center; justify-content: center; padding: 0; }
.chat-head-text { flex: 1; min-width: 0; }
.chat-head h2 { font: 500 19px/1.2 var(--font-head); margin: 0; }
.chat-mode { display: inline-block; margin-top: 4px; padding: 2px 8px; border-radius: 99px; font: 500 11.5px/1.4 var(--font-body); background: rgba(244, 119, 33, .18); color: var(--on-night); border: 1px solid rgba(244, 119, 33, .5); }
.chat-mode[data-mode="ai"] { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.chat-icon-btn { flex: 0 0 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; border: 0; background: transparent; color: var(--on-night); cursor: pointer; }
.chat-icon-btn svg { width: 20px; height: 20px; }
.chat-icon-btn:hover, .chat-icon-btn:focus-visible { background: var(--accent); color: var(--on-accent); outline: none; }
.chat-notice { margin: 0; padding: 9px 14px; font-size: 12.5px; line-height: 1.45; background: var(--accent-softer); border-bottom: 1px solid var(--line); color: var(--muted); }
.chat-notice:empty { display: none; }
.chat-notice a { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 2px; }
.chat-log { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 16px 14px 8px; display: flex; flex-direction: column; gap: 12px; scroll-behavior: smooth; }
.chat-log:focus-visible { outline: 2px solid var(--accent); outline-offset: -4px; }
.chat-msg { display: flex; }
.chat-user { justify-content: flex-end; }
.chat-bubble { max-width: 88%; padding: 10px 14px; border-radius: 18px; font-size: 14.5px; line-height: 1.5; overflow-wrap: anywhere; }
.chat-bubble p { margin: 0; }
.chat-bubble p + p, .chat-bubble ul + p, .chat-bubble p + ul { margin-top: 6px; }
.chat-bubble ul { margin: 6px 0 0; padding-left: 18px; }
.chat-bubble li + li { margin-top: 3px; }
.chat-bubble li::marker { color: var(--accent); }
.chat-bot .chat-bubble { background: var(--surface-2); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.chat-user .chat-bubble { background: var(--inverse-bg); color: var(--inverse-fg); border-bottom-right-radius: 6px; }
.chat-error .chat-bubble { background: var(--surface); border: 1.5px solid var(--accent); }
.chat-tag { display: table; margin-bottom: 6px; font: 600 11px/1 var(--font-body); color: var(--ink); background: var(--surface); border: 1px solid var(--accent-line); padding: 4px 7px; border-radius: 99px; }
.chat-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.chat-link, .chat-retry { display: inline-flex; align-items: center; min-height: 34px; padding: 6px 12px; border-radius: 99px; cursor: pointer; font: 600 13px/1.2 var(--font-body); color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong); text-decoration: none; }
.chat-link:hover, .chat-link:focus-visible, .chat-retry:hover, .chat-retry:focus-visible { background: var(--accent); border-color: var(--accent); color: var(--on-accent); outline: none; }
.chat-retry { margin-top: 10px; }
.chat-typing .chat-bubble { display: inline-flex; gap: 5px; padding: 14px 16px; }
.chat-typing .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: chat-dot 1s infinite ease-in-out; }
.chat-typing .dot:nth-child(3) { animation-delay: .15s; }
.chat-typing .dot:nth-child(4) { animation-delay: .3s; }
@keyframes chat-dot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-4px); } }
@keyframes chat-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.chat-suggest { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 14px 10px; }
.chat-chip { min-height: 36px; padding: 7px 12px; border-radius: 99px; cursor: pointer; font: 500 13px/1.2 var(--font-body); color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong); transition: transform .2s var(--ease); }
.chat-chip:hover, .chat-chip:focus-visible { border-color: var(--accent); outline: none; transform: translateY(-1px); }
.chat-form { position: relative; display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px 6px; border-top: 1px solid var(--line); }
.chat-form textarea { flex: 1; min-height: 44px; max-height: 132px; resize: none; padding: 11px 14px; border-radius: 14px; font: 400 15px/1.4 var(--font-body); color: var(--ink); background: var(--surface-2); border: 1px solid var(--line-strong); }
.chat-form textarea::placeholder { color: var(--muted); }
.chat-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.chat-send { flex: 0 0 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 0; cursor: pointer; background: var(--accent); color: var(--on-accent); transition: transform .2s var(--ease); }
.chat-send svg { width: 20px; height: 20px; }
.chat-send:hover { transform: scale(1.06); }
.chat-send:active { transform: scale(.92); }
.chat-send:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.chat-send:disabled { opacity: .45; cursor: progress; transform: none; }
.chat-count { position: absolute; left: 14px; bottom: calc(100% + 2px); margin: 0; font-size: 12px; font-weight: 600; background: var(--surface); padding: 2px 6px; border-radius: 6px; }
.chat-count:empty { display: none; }
.chat-count.is-error { color: var(--accent-text); border: 1px solid var(--accent); }
.chat-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.chat-foot { display: flex; justify-content: center; gap: 18px; padding: 6px 12px 12px; font-size: 12.5px; font-weight: 600; }
.chat-foot a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent-line); text-underline-offset: 3px; }
.chat-foot a:hover, .chat-foot a:focus-visible { text-decoration-color: var(--accent); }
.menu-open .chat-launcher, .menu-open .chat-nudge { opacity: 0; visibility: hidden; pointer-events: none; }

/* Mascot (front face crop with blink and blush reactions) */
.mascot { width: 64px; height: 68px; }
.mascot-svg { width: 100%; height: 100%; overflow: visible; }
.chat-launcher .mascot, .chat-head-mascot .mascot { width: 100%; height: 100%; }
.mascot-logo { position: relative; }
.mascot-logo .mascot-face { display: block; width: 100%; height: 100%; object-fit: contain; transform: translateX(var(--look-x, 0)) rotate(var(--look-r, 0deg)); transform-origin: 50% 70%; transition: transform .35s var(--ease); }
.mascot-logo .mascot-extras { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.mascot .m-extra { opacity: 0; transition: opacity .25s; }
.mascot-avatar { position: relative; width: 100%; height: 100%; }
.ma-clip { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; background: #FFFFFF; }
.mascot-avatar .mascot-face { position: absolute; left: 6%; top: -15%; display: block; width: 88%; height: auto; max-width: none; transform-origin: 50% 45%; transition: transform .35s var(--ease); }
.ma-lid { position: absolute; top: 43%; width: 15%; height: 7.5%; border-radius: 0 0 50% 50%; background: #FFFFFF; border-bottom: 2px solid #17191D; transform: scaleY(0); transform-origin: top; }
.ma-lid-l { left: 25.5%; } .ma-lid-r { left: 60%; }
.ma-blush { position: absolute; top: 60%; width: 13%; height: 6.5%; border-radius: 50%; background: rgba(244, 119, 33, .55); opacity: 0; transition: opacity .3s; }
.ma-blush-l { left: 23.5%; } .ma-blush-r { left: 64.5%; }
.mascot-avatar .mascot-extras { position: absolute; inset: -22% -26% auto auto; width: 70%; height: 70%; overflow: visible; pointer-events: none; }
.mascot-avatar[data-state="curious"] .m-extra-curious, .mascot-avatar[data-state="thinking"] .m-extra-thinking,
.mascot-avatar[data-state="celebrate"] .m-extra-celebrate, .mascot-avatar[data-state="helpful"] .m-extra-helpful,
.mascot-logo[data-state="curious"] .m-extra-curious, .mascot-logo[data-state="thinking"] .m-extra-thinking,
.mascot-logo[data-state="celebrate"] .m-extra-celebrate, .mascot-logo[data-state="helpful"] .m-extra-helpful { opacity: 1; }
.mascot-avatar[data-state="celebrate"] .ma-blush, .mascot-avatar[data-state="helpful"] .ma-blush, .mascot-avatar[data-state="excited"] .ma-blush { opacity: 1; }
.mascot-avatar[data-state="celebrate"] .ma-lid, .mascot-avatar[data-state="excited"] .ma-lid { transform: scaleY(.55); }
.mascot-avatar[data-state="curious"] .mascot-face { transform: rotate(-7deg) scale(1.04); }
.mascot-avatar[data-state="thinking"] .mascot-face { transform: rotate(5deg); }
.mascot-avatar[data-state="helpful"] .mascot-face { transform: rotate(4deg) scale(1.04); }
.mascot-logo[data-state="curious"] .mascot-face { transform: translateX(var(--look-x, 0)) rotate(-6deg); }
.mascot-logo[data-state="thinking"] .mascot-face { transform: rotate(-3deg) translateY(1px); }
.mascot-logo[data-state="helpful"] .mascot-face { transform: rotate(5deg); }
@keyframes hop { 50% { transform: translateY(-6px) rotate(4deg); } }
@keyframes nod { 0%, 100% { transform: none; } 30% { transform: rotate(-6deg); } 60% { transform: rotate(5deg); } }
@keyframes blink-lid { 0%, 92%, 100% { transform: scaleY(0); } 95% { transform: scaleY(1); } }
@keyframes avatar-peek { 0%, 84%, 100% { transform: none; } 88% { transform: rotate(-6deg) scale(1.04); } 93% { transform: rotate(3deg); } }
@media (prefers-reduced-motion: no-preference) {
  .mascot-avatar[data-state="idle"] .ma-lid { animation: blink-lid 4.6s infinite; }
  .chat-launcher .mascot-avatar[data-state="idle"] .mascot-face { animation: avatar-peek 9s ease-in-out infinite; }
  .mascot-avatar[data-state="celebrate"] .mascot-face, .mascot-logo[data-state="celebrate"] .mascot-face { animation: hop .6s var(--ease) 2; }
  .mascot-avatar[data-state="helpful"] .mascot-face { animation: nod .9s var(--ease) 1; }
}

/* ==========================================================
   Home: section-specific treatments
   ========================================================== */

/* FAQ: question list beside a sticky heading */
.faq-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: 28px clamp(32px, 6vw, 96px); align-items: start; }
.faq-side { position: sticky; top: calc(var(--header-h) + 32px); }
.faq-side .section-head { margin-bottom: 8px; }
.faq-side .more-link { margin-top: 20px; }

/* Blog: a journal layout, lead article plus two shorter entries */
@media (min-width: 1081px) {
  .post-grid.journal { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); grid-template-rows: auto auto; }
  .post-grid.journal > li:first-child { grid-row: span 2; }
  .post-grid.journal > li:first-child .post-title { font-size: clamp(28px, 2.4vw, 36px); }
  .post-grid.journal > li:first-child .post-media { aspect-ratio: 16 / 10; }
  .post-grid.journal > li:not(:first-child) article { flex-direction: row; }
  .post-grid.journal > li:not(:first-child) .post-media { flex: 0 0 40%; aspect-ratio: auto; }
  .post-grid.journal > li:not(:first-child) .post-body { padding: 20px 22px; }
}

/* ==========================================================
   Motion: one orchestrated hero moment, light reveals, page transitions
   ========================================================== */
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes word-in { from { opacity: 0; transform: translateY(.35em); } to { opacity: 1; transform: none; } }
@keyframes swoosh { from { stroke-dashoffset: 320; } to { stroke-dashoffset: 0; } }
@keyframes sweep { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes pop { from { opacity: 0; transform: scale(.86) translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes tick { from { transform: scale(0); } 60% { transform: scale(1.2); } to { transform: scale(1); } }
@keyframes rail-fill { from { transform: scaleX(0); } to { transform: none; } }
@keyframes ws-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes reveal-in { from { opacity: 0; translate: 0 22px; } to { opacity: 1; translate: none; } }

@media (prefers-reduced-motion: no-preference) {
  .js-hero .home-hero .ht-word { opacity: 0; }
  .js-hero .home-hero.is-ready .ht-word { animation: word-in .7s var(--ease) both; animation-delay: calc(var(--i, 0) * 70ms + 60ms); }
  .js-hero .home-hero .ht-swoosh path { stroke-dasharray: 320; stroke-dashoffset: 320; }
  .js-hero .home-hero.is-ready .ht-swoosh path { animation: swoosh .9s var(--ease) .65s both; }
  .js-hero .home-hero .hero-copy > :not(h1), .js-hero .home-hero .ws-sheet, .js-hero .home-hero .ws-card, .js-hero .home-hero .sheet-note { opacity: 0; }
  .js-hero .home-hero.is-ready .hero-copy > :not(h1), .js-hero .home-hero.is-ready .ws-sheet, .js-hero .home-hero.is-ready .ws-card { animation: fade-up .7s var(--ease) both; }
  .js-hero .home-hero.is-ready .hero-pill { animation-delay: 0s; }
  .js-hero .home-hero.is-ready .hero-lead { animation-delay: .35s; }
  .js-hero .home-hero.is-ready .intake { animation-delay: .45s; }
  .js-hero .home-hero.is-ready .hero-actions { animation-delay: .55s; }
  .js-hero .home-hero.is-ready .hero-trust { animation-delay: .65s; }
  .js-hero .home-hero.is-ready .ws-sheet { animation-delay: .15s; }
  .js-hero .home-hero .sheet-hl span::before { transform: scaleX(0); }
  .js-hero .home-hero.is-ready .sheet-hl span::before { animation: sweep .7s var(--ease) 1s both; }
  .js-hero .home-hero.is-ready .sheet-note { animation: pop .55s var(--spring) 1.5s both; }
  .js-hero .home-hero.is-ready .ws-outline { animation-delay: .4s; }
  .js-hero .home-hero.is-ready .ws-thesis { animation-delay: .55s; }
  .js-hero .home-hero.is-ready .ws-cite { animation-delay: .7s; }
  .js-hero .home-hero.is-ready .ws-check { animation-delay: .85s; }
  .js-hero .home-hero .ws-check li.done::before { transform: scale(0); }
  .js-hero .home-hero.is-ready .ws-check li.done::before { animation: tick .4s var(--spring) both; animation-delay: 1.8s; }
  .js-hero .home-hero.is-ready .ws-check li.done + li.done::before { animation-delay: 2.05s; }
  .js-hero .home-hero.is-ready .ws-rail li:not(:last-child)::after { transform-origin: left; animation: rail-fill .5s var(--ease) both; animation-delay: calc(.9s + var(--n, 0) * .12s); }

  /* Scroll reveals: driven by the scroll position itself where supported, so nothing waits on a script */
  @supports (animation-timeline: view()) {
    .reveal, .section-head { animation: reveal-in linear both; animation-timeline: view(); animation-range: entry 0% entry 70%; }
  }
}
/* How it works: the dashed line fills as the steps scroll into view */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .steps-flow::after { content: ""; position: absolute; left: 28px; right: 28px; top: 27px; height: 2px; background: var(--accent); transform-origin: left; animation: grow-x linear both; animation-timeline: view(); animation-range: entry 60% cover 50%; }
    .flow-num { animation: num-on linear both; animation-timeline: view(); animation-range: entry 80% cover 35%; }
    .flow-step:nth-child(2) .flow-num { animation-range: entry 100% cover 40%; }
    .flow-step:nth-child(3) .flow-num { animation-range: cover 30% cover 45%; }
    .flow-step:nth-child(4) .flow-num { animation-range: cover 35% cover 50%; }
  }
}
@keyframes grow-x { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes grow-y { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes num-on { from { opacity: .35; transform: scale(.8); } to { opacity: 1; transform: none; } }

/* Gentle float for the hero cards on large screens only (saves battery on phones) */
@media (prefers-reduced-motion: no-preference) and (min-width: 1081px) {
  .js-hero .home-hero.is-ready .ws-thesis { animation: fade-up .7s var(--ease) .55s both, ws-float 7s ease-in-out 1.4s infinite; }
  .js-hero .home-hero.is-ready .ws-cite { animation: fade-up .7s var(--ease) .7s both, ws-float 8s ease-in-out 1.8s infinite; }
}

/* Page transitions between pages of the site (browsers that support them) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .18s ease both; }
::view-transition-new(root) { animation: vt-in .32s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .workspace [data-depth] { translate: none !important; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none !important; }
  .chat-launcher::after { display: none; }
}

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1440px) and (min-width: 1181px) {
  .brand-tag { display: none; }
  .brand-name { font-size: 19px; }
  .brand-mark { width: 36px; }
  .header-inner { gap: 14px; }
  .main-nav > ul { gap: 14px; }
  .nav-link { font-size: 14px; }
  .header-cta { padding: 0 16px; font-size: 14px; }
}
@media (max-width: 1180px) {
  .main-nav, .header-cta { display: none; }
  .menu-toggle { display: block; }
  .card-grid.svc-grid, .res-tiles, .card-grid.guide-grid-4, .trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-top { grid-template-columns: minmax(0, 1fr); }
  .footer-links { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
  .hero-trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1181px) {
  .mobile-menu { display: none; }
}
@media (max-width: 1080px) {
  .card-grid, .split-links, .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .content-layout, .article-layout { grid-template-columns: minmax(0, 1fr); }
  .content-aside, .article-aside { position: static; }
  .aside-cta { display: none; }
  .toc { border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; background: var(--surface); }
  .toc summary::after { content: "+"; font-size: 22px; color: var(--accent-text); }
  .toc[open] summary::after { content: "–"; }
  .prose { max-width: none; }
  .article-hero-inner { grid-template-columns: minmax(0, 1fr); }
  .article-figure { max-width: 620px; }
  .tool-layout { grid-template-columns: minmax(0, 1fr); }
  .tool-side { position: static; }
  .contact-layout, .contact-layout:has(.contact-aside) { grid-template-columns: minmax(0, 1fr); }
  .page-hero-inner.has-aside { grid-template-columns: minmax(0, 1fr); }
  .steps-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 22px; }
  .steps-flow::before, .steps-flow::after { display: none; }
  .two-col { grid-template-columns: minmax(0, 1fr); }
  .home-hero-inner, .finder, .next-step-inner, .connect-inner { grid-template-columns: minmax(0, 1fr); }
  .workspace { max-width: 520px; }
  .hero-stage { max-width: 640px; width: 100%; margin-inline: auto; }
}
@media (max-width: 900px) {
  .footer-cta { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .faq-layout { grid-template-columns: minmax(0, 1fr); }
  .charter { grid-template-columns: minmax(0, 1fr); }
  .charter-head { padding-right: 110px; }
  .charter-seal { position: absolute; top: 0; right: 0; width: 96px; margin: 0; }
  .faq-side { position: static; }
  .faq-side .more-link { display: none; }
  .faq-main::after { content: none; }
}

/* Phones and small tablets: app-style bottom navigation */
@media (max-width: 900px) {
  :root { --bottom-nav-h: calc(66px + env(safe-area-inset-bottom, 0px)); }
  body { padding-bottom: var(--bottom-nav-h); }
  .bottom-nav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 95; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
    height: var(--bottom-nav-h); padding: 6px max(6px, env(safe-area-inset-right, 0px)) env(safe-area-inset-bottom, 0px) max(6px, env(safe-area-inset-left, 0px));
    background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -12px rgba(23, 25, 29, .18);
    view-transition-name: bottom-nav;
  }
  .bn-item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 54px; border-radius: 14px; color: var(--muted); font-size: 11.5px; font-weight: 600; transition: transform .2s var(--ease); }
  .bn-icon { display: grid; place-items: center; width: 44px; height: 30px; border-radius: 999px; transition: transform .3s var(--spring); }
  .bn-icon svg { width: 22px; height: 22px; }
  .bn-item[aria-current="page"], .bn-item[aria-expanded="true"] { color: var(--ink); }
  .bn-item[aria-current="page"] .bn-icon, .bn-item[aria-expanded="true"] .bn-icon { background: var(--accent-soft); color: var(--accent-text); }
  .bn-item:active { transform: scale(.92); }
  .bn-cta .bn-icon { background: var(--accent); color: var(--on-accent); }
  .bn-cta { color: var(--ink); }
  .bn-cta[aria-current="page"] .bn-icon { background: var(--accent); color: var(--on-accent); }
  .menu-open .bottom-nav { z-index: 100; }

  /* The Chat tab opens the assistant, so the round launcher steps aside */
  .chat-launcher { display: none; }
  .has-chat .wa-float, .wa-float { right: max(14px, env(safe-area-inset-right, 0px)); bottom: calc(var(--bottom-nav-h) + 12px); width: 52px; height: 52px; padding: 0; justify-content: center; }
  .wa-label { display: none; }
  .chat-nudge { left: 12px; right: 78px; bottom: calc(var(--bottom-nav-h) + 12px); max-width: none; border-radius: 16px 16px 16px 4px; }
  .chat-panel { bottom: calc(var(--bottom-nav-h) + 12px); }
  .field-focus .wa-float { opacity: 0; visibility: hidden; pointer-events: none; }
}

@media (max-width: 760px) {
  .section-head { grid-template-columns: minmax(0, 1fr); align-items: start; gap: 14px; }
  .card-grid, .card-grid.svc-grid, .card-grid.guide-grid-4, .split-links, .next-pair, .post-grid, .res-tiles, .trust-grid { grid-template-columns: minmax(0, 1fr); }
  .bento .svc-card:nth-child(6n+1), .bento .svc-card:nth-child(6n) { grid-column: auto; }
  .bento .svc-card { min-height: 0; }
  .field-row { grid-template-columns: minmax(0, 1fr); }
  .cta-band-inner { grid-template-columns: minmax(0, 1fr); }
  .chip-row, .filter-bar { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(var(--gutter) * -1); padding: 4px var(--gutter) 8px; scrollbar-width: none; }
  .chip-row::-webkit-scrollbar, .filter-bar::-webkit-scrollbar { display: none; }
  .filter-chip { flex-shrink: 0; }
  .select-field { flex: 1 1 160px; min-width: 0; }
  .steps-flow { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .steps-flow::before { display: block; left: 27px; right: auto; top: 28px; bottom: 28px; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--accent) 0 8px, transparent 8px 16px); }
  .steps-flow::after { display: block; left: 27px !important; right: auto !important; top: 28px !important; bottom: 28px; width: 2px; height: auto !important; transform-origin: top !important; animation-name: grow-y !important; animation-range: entry 30% cover 70% !important; }

  /* Services: compact app-style rows on phones; the four wide cards stay highlighted */
  .card-grid.bento { gap: 10px; }
  .bento .svc-card { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 14px; row-gap: 4px; align-items: start; padding: 16px 16px 14px; }
  .bento .svc-card .svc-icon { grid-row: 1 / span 3; width: 44px; height: 44px; border-radius: 12px; }
  .bento .svc-card .svc-icon svg { width: 22px; height: 22px; }
  .bento .svc-card .svc-title { font-size: 19px; }
  .bento .svc-card p { font-size: 14.5px; line-height: 1.5; }
  .bento .svc-card .card-next { padding-top: 4px; font-size: 13.5px; }
  .bento .svc-card:nth-child(6n+1) .svc-icon, .bento .svc-card:nth-child(6n) .svc-icon { width: 44px; height: 44px; border-radius: 12px; }
  .bento .svc-card:nth-child(6n+1) .svc-title, .bento .svc-card:nth-child(6n) .svc-title { font-size: 21px; }
  .bento .svc-card:nth-child(6n+1) p, .bento .svc-card:nth-child(6n) p { font-size: 14.5px; }

  /* Guides, tools and articles: swipeable rails with the next card peeking in */
  .rail-sm { display: grid; grid-template-columns: none !important; grid-auto-flow: column; grid-auto-columns: 84%; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: max(var(--gutter), env(safe-area-inset-left, 0px)); margin-inline: calc(max(var(--gutter), env(safe-area-inset-left, 0px)) * -1); padding: 4px max(var(--gutter), env(safe-area-inset-left, 0px)) 18px; scrollbar-width: none; }
  .rail-sm::-webkit-scrollbar { display: none; }
  .rail-sm > li { scroll-snap-align: start; animation: none !important; }
  .boost-sub + .card-grid { margin-bottom: 24px; }
  .flow-step { grid-template-columns: 56px minmax(0, 1fr); column-gap: 16px; }
  .flow-step .flow-num { grid-row: span 3; }
  .flow-step .flow-icon { display: none; }
  .flow-title { margin-top: 0; }
  .footer-links { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
  .boost-chip { font-size: 14px; min-height: 42px; }
  .brand-tag { display: none; }
  .related-head { flex-direction: column; align-items: flex-start; }
  .article-cta { grid-template-columns: minmax(0, 1fr); padding: 24px; }
  .article-cta .btn { flex: 1; }
  .prose { font-size: 17px; }
  .post-title { font-size: 22px; }
  .blog-search input, .search-field input { height: 54px; font-size: 16px; }

  .home-hero { padding-top: calc(var(--header-h) + 24px); }
  .hero-title { font-size: clamp(40px, 11.5vw, 54px); }
  .intake { padding: 12px; border-radius: 20px; }
  .intake-row { grid-template-columns: minmax(0, 1fr); }
  .intake-btn { width: 100%; }
  .home-hero .hero-actions .btn { flex: 1 1 100%; }
  .hero-trust { gap: 14px 12px; }
  .hero-trust li { font-size: 12.5px; }
  .hero-trust svg { flex-basis: 30px; width: 30px; height: 30px; padding: 6px; }
  .hero-stage { border-radius: 24px; padding: 22px 12px 14px; }
  .ws-pen { display: none; }
  .home-hero { margin-inline: 6px; border-radius: 0 0 28px 28px; }
  .marquee-track { padding: 11px 0; gap: 16px; }
  .workspace { aspect-ratio: 1 / 1.05; max-width: 400px; }
  .ws-sheet { left: 6%; width: 86%; padding: 16px 14px 14px 24px; }
  .ws-sheet::before { left: 14px; }
  .ws-outline, .ws-cite { display: none; }
  .ws-card { padding: 9px 11px; border-radius: 12px; font-size: 11.5px; }
  .ws-strong { font-size: 13px; }
  .ws-thesis { right: 0; top: -2%; width: 58%; }
  .ws-check { right: 0; width: 52%; }
  .ws-check ul { font-size: 11px; }
  .sheet-note { left: 0; bottom: 2%; width: 60%; font-size: 11.5px; }
  .ws-sheet .sheet-line.w95, .ws-sheet .sheet-line.w88, .ws-sheet .sheet-line.w92 { display: none; }
  .hero-bg .hb-margin { display: none; }
  .ws-rail li { font-size: 11px; }
  .svc-rows, .integrity .int-grid { grid-template-columns: minmax(0, 1fr); }
  .int-col { padding: 22px; }

  .charter-head { padding-right: 0; }
  .charter-seal { position: static; width: 104px; margin-top: 20px; }
  .charter-item { grid-template-columns: 52px minmax(0, 1fr); column-gap: 14px; }
  .charter-item .trust-icon { width: 46px; height: 46px; }
  .charter::before { inset: 6px; }
  .contact-split { padding: 22px 16px 16px; }
  .ig-phone { transform: none; width: min(100%, 360px); }
  .insta-frame { padding: 12px; border-radius: 22px; }
  .if-follow { padding: 8px 12px; font-size: 13px; }
  .tip { padding: 9px; border-radius: 9px; }
  .tip strong { font-size: 12.5px; }
  .tip-kicker { font-size: 9.5px; }
  .cc-go { font-size: 0; gap: 0; }
  .cc-go svg { width: 18px; height: 18px; }
  .footer-cta { border-radius: 22px; }
  .footer-cta-actions .btn { flex: 1 1 100%; }
  .footer-logo img { width: 124px; }
  .footer-logo { padding: 12px 14px 10px; border-radius: 16px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 600px) {
  .chat-panel { inset: 0; width: 100%; height: 100%; height: 100dvh; border: 0; border-radius: 0; transform: translateY(24px); padding-bottom: env(safe-area-inset-bottom, 0px); }
  .chat-open body { overflow: hidden; }
  .chat-open .bottom-nav { visibility: hidden; }
  .chat-bubble { max-width: 92%; }
  .chat-form textarea { font-size: 16px; } /* prevents iOS zoom on focus */
}
@media (max-width: 420px) {
  .brand-name { font-size: 18px; }
  .brand-mark { width: 34px; }
  .header-inner { gap: 10px; }
  .theme-toggle { flex-basis: 40px; height: 40px; }
  .menu-toggle { flex-basis: 42px; height: 42px; }
  .menu-bars i { left: 11px; }
  .footer-links { grid-template-columns: minmax(0, 1fr); }
  .if-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .if-grid li:nth-child(n+5) { display: none; }
}

/* Smooth images: lazy images fade in when ready, on a quiet placeholder */
.img-fade { opacity: 0; transition: opacity .5s var(--ease); }
.img-fade.is-loaded { opacity: 1; }
.post-media, .article-figure { background: var(--surface-2); }
a, button, input, select, textarea, label, summary { touch-action: manipulation; }

/* Touch screens: no sticky hover lifts after a tap, a short press feedback instead */
@media (hover: none) {
  .svc-card:hover, .guide-card:hover, .tool-card:hover, .res-tile:hover, .post-card:hover, .next-card:hover, .split-link:hover, .svc-row:hover,
  .cc:hover, .contact-options a:hover, .footer-contact a:hover, .btn:hover, .boost-chip:hover, .filter-chip:hover, .jump-links a:hover, .pill-links a:hover { transform: none; }
  .svc-card:hover::before, .guide-card:hover::before, .tool-card:hover::before, .res-tile:hover::before, .post-card:hover::before, .trust-tile:hover::before { opacity: 0; }
  .svc-card:hover .svc-icon, .tool-card:hover .tool-icon, .guide-card:hover .guide-icon, .res-tile:hover .res-icon { transform: none; }
  .btn:not(.btn-outline):not(.btn-line):not(.btn-ghost-light):not(.btn-dark):hover { box-shadow: none; }
  .svc-card:active, .guide-card:active, .tool-card:active, .res-tile:active, .post-card:active, .next-card:active, .split-link:active, .svc-row:active, .trust-tile:active, .cc:active, .faq-item summary:active { transform: scale(.985); transition-duration: .12s; }
}

/* Lighter effects on small screens and low-power devices */
@media (max-width: 900px) {
  .site-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--surface); }
  /* Sections far below the screen are laid out only when they come near, so long pages scroll smoothly */
  .section:not(:first-child), .connect, .site-footer { content-visibility: auto; contain-intrinsic-size: auto 900px; }
}
