/* PALM Consulting — site stylesheet. One file, no framework. Tokens first. */
:root {
  --navy-950: #0b1729;
  --navy-900: #10203a;
  --navy-800: #172b4d;
  --navy-700: #22385f;
  --teal-700: #2a625d;
  --teal-600: #2f6f69;
  --teal-500: #5f9e96;
  --teal-300: #a6d0c9;
  --teal-100: #e3efec;
  --ink: #142033;
  --ink-2: #3d4a5c;
  --muted: #677385;
  --line: #e8e2d8;
  --line-2: #d8d0c3;
  --surface: #f5f1e9;
  --surface-2: #ede6da;
  --bg: #fbf9f5;
  --card: #ffffff;
  --danger: #b4382c;

  --font-head: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 18px;
  --wrap: 1200px;
  --gutter: 24px;
  --header-h: 72px;
  --shadow-1: 0 1px 2px rgba(16, 32, 58, 0.05), 0 2px 8px rgba(16, 32, 58, 0.04);
  --shadow-2: 0 2px 4px rgba(16, 32, 58, 0.05), 0 16px 36px rgba(16, 32, 58, 0.09);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.65 var(--font-body); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg { display: block; max-width: 100%; }
a { color: var(--teal-600); text-decoration: none; }
p { margin: 0 0 1em; }
h1, h2, h3 { font-family: var(--font-head); color: var(--ink); margin: 0; letter-spacing: -0.025em; }
h1 { font-size: clamp(2.4rem, 4.8vw, 4rem); line-height: 1.05; font-weight: 800; }
h2 { font-size: clamp(1.85rem, 3.2vw, 2.75rem); line-height: 1.12; font-weight: 800; }
h3 { font-size: 1.18rem; line-height: 1.3; font-weight: 700; letter-spacing: -0.01em; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--teal-600); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--navy-900); color: #fff; padding: 12px 16px; border-radius: var(--r-sm); }
.skip-link:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 600 13px/1.4 var(--font-body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal-600); margin: 0 0 18px; }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--teal-500); box-shadow: 0 0 0 4px var(--teal-100); }
.lead { font-size: 1.15rem; line-height: 1.65; color: var(--ink-2); max-width: 40em; }
.muted { color: var(--muted); }

/* Buttons */
.btn {
  --btn-bg: var(--navy-800); --btn-fg: #fff; --btn-bd: var(--navy-800);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 22px;
  border-radius: 999px; border: 1.5px solid var(--btn-bd); background: var(--btn-bg); color: var(--btn-fg);
  font: 600 15px/1.2 var(--font-body); cursor: pointer; text-align: center;
  transition: transform 0.18s var(--ease), background-color 0.18s var(--ease), box-shadow 0.18s var(--ease), border-color 0.18s;
}
.btn svg { width: 18px; height: 18px; transition: transform 0.2s var(--ease); }
.btn:hover { --btn-bg: var(--navy-700); --btn-bd: var(--navy-700); transform: translateY(-1px); box-shadow: var(--shadow-2); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(0) scale(0.98); box-shadow: none; }
.btn-ghost { --btn-bg: transparent; --btn-fg: var(--navy-800); --btn-bd: var(--line-2); }
.btn-ghost:hover { --btn-bg: var(--card); --btn-bd: var(--navy-800); }
.btn-light { --btn-bg: var(--bg); --btn-fg: var(--navy-900); --btn-bd: var(--bg); }
.btn-light:hover { --btn-bg: var(--teal-100); --btn-bd: var(--teal-100); }
.btn-ghost-dark { --btn-bg: transparent; --btn-fg: #fff; --btn-bd: rgba(255, 255, 255, 0.35); }
.btn-ghost-dark:hover { --btn-bg: rgba(255, 255, 255, 0.08); --btn-bd: #fff; }
.btn[disabled] { opacity: 0.7; cursor: progress; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--teal-600); background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; transition: background-size 0.25s var(--ease); padding-bottom: 2px; }
.text-link:hover { background-size: 100% 1.5px; }
.text-link svg { width: 16px; height: 16px; transition: transform 0.2s var(--ease); }
.text-link:hover svg { transform: translateX(3px); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; height: var(--header-h); background: rgba(251, 249, 245, 0.9); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color 0.2s; }
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--navy-900); min-height: 44px; }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-name { font: 800 18px/1 var(--font-head); letter-spacing: 0.04em; }
.brand-name span { font-weight: 500; letter-spacing: 0; color: var(--muted); margin-left: 4px; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a:not(.btn) { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 13px; color: var(--ink-2); font-weight: 500; font-size: 15px; transition: color 0.15s; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 13px; right: 13px; bottom: 8px; height: 2px; border-radius: 2px; background: var(--teal-500); transform: scaleX(0); transform-origin: left; transition: transform 0.25s var(--ease); }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { color: var(--navy-900); }
.nav a:not(.btn):hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav .btn { margin-left: 12px; min-height: 42px; padding: 10px 18px; font-size: 14px; }
.menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--card); color: var(--navy-900); cursor: pointer; align-items: center; justify-content: center; }
.menu-toggle svg { width: 22px; height: 22px; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

/* Sections */
.section { padding: clamp(72px, 9vw, 128px) 0; }
.section-tight { padding: clamp(56px, 7vw, 96px) 0; }
.section-alt { background: var(--surface); }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 64px; align-items: end; margin-bottom: 56px; }
.section-head > p { margin: 0; color: var(--ink-2); font-size: 1.08rem; }
.section-head.stack { grid-template-columns: minmax(0, 780px); }
.split { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 64px; align-items: start; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: clamp(40px, 5vw, 72px) 0; min-height: calc(100svh - var(--header-h)); display: flex; align-items: center; }
.hero > .wrap { width: 100%; }
.hero::before { content: ""; position: absolute; inset: auto -10% -40% 35%; height: 90%; z-index: -1; background: radial-gradient(closest-side, rgba(95, 158, 150, 0.16), transparent); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 56px; align-items: center; }
.hero h1 { max-width: 12.5em; }
.hero .lead { margin: 26px 0 34px; }
.hero-tagline { display: flex; align-items: center; gap: 14px; margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); font: 700 16px/1.3 var(--font-head); color: var(--navy-800); }
.hero-tagline::before { content: ""; width: 28px; height: 2px; background: var(--teal-500); }
.hero-visual { position: relative; aspect-ratio: 1 / 1; }

/* Network graphic */
.net { width: 100%; height: 100%; overflow: visible; }
.net .ring { fill: none; stroke: var(--line-2); stroke-dasharray: 2 6; }
.net .link { fill: none; stroke: var(--line-2); stroke-width: 1.5; }
.net .link-strong { stroke: var(--teal-500); stroke-width: 1.8; opacity: 0.75; }
.net .node rect { fill: var(--card); stroke: var(--line); }
.net .node text { font: 600 15px var(--font-body); fill: var(--ink); }
.net .node .dot { fill: var(--teal-500); }
.net .hub circle.core { fill: var(--navy-800); }
.net .hub circle.halo { fill: var(--teal-500); opacity: 0.12; transform-box: fill-box; transform-origin: center; animation: halo 4s ease-in-out infinite; }
.net .hub text { font: 700 17px var(--font-head); fill: #fff; letter-spacing: 0.04em; }
.net .hub .sub { font: 500 12px var(--font-body); fill: var(--teal-300); letter-spacing: 0.08em; }
.net .pulse { fill: var(--teal-600); }
.net .node, .net .link { opacity: 0; animation: net-in 0.8s var(--ease) forwards; animation-delay: calc(0.3s + var(--i, 0) * 0.12s); }
@keyframes net-in { to { opacity: 1; } }
@keyframes halo { 0%, 100% { transform: scale(1); opacity: 0.12; } 50% { transform: scale(1.18); opacity: 0.05; } }

/* Cards */
.card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px; transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s; }
a.card { display: flex; flex-direction: column; color: inherit; }
a.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); border-color: var(--line-2); }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--ink-2); margin: 0; }
.card .text-link { margin-top: auto; padding-top: 20px; }
.card-num { font: 600 13px/1 var(--font-body); color: var(--teal-600); letter-spacing: 0.08em; margin-bottom: 18px; display: block; }
.icon-tile { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 22px; background: var(--teal-100); color: var(--teal-700); }
.icon-tile svg { width: 24px; height: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }

/* Pain points */
.pain-list { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.pain-list li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 16px; padding: 26px 24px 26px 0; border-bottom: 1px solid var(--line); }
.pain-list li:nth-child(odd) { border-right: 1px solid var(--line); }
.pain-list li:nth-child(even) { padding-left: 28px; }
.pain-list svg { width: 26px; height: 26px; color: var(--teal-600); margin-top: 2px; }
.pain-list h3 { font-size: 1.08rem; margin-bottom: 6px; }
.pain-list p { margin: 0; color: var(--ink-2); font-size: 0.97rem; }

/* Industries */
.industry { display: flex; flex-direction: column; }
.industry ul { list-style: none; display: grid; gap: 10px; margin-top: 16px; }
.industry li { position: relative; padding-left: 20px; color: var(--ink-2); font-size: 0.96rem; }
.industry li::before { content: ""; position: absolute; left: 0; top: 10px; width: 8px; height: 2px; background: var(--teal-500); }

/* Phases */
.phases { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; position: relative; }
.phases li { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; }
.phases .phase-top { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.phases .phase-num { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--navy-800); color: #fff; font: 700 14px/1 var(--font-head); }
.phases li:not(:last-child)::after { content: ""; position: absolute; top: 47px; right: -21px; width: 22px; height: 2px; background: var(--teal-500); opacity: 0.6; }
.phases h3 { font-size: 1.3rem; }
.phases p { color: var(--ink-2); margin: 0; font-size: 0.97rem; }
.phases .phase-out { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 0.92rem; color: var(--ink-2); }
.phases .phase-out strong { display: block; font: 600 12px/1.4 var(--font-body); letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal-600); margin-bottom: 4px; }

/* Dark band (company intro) */
.band-dark { position: relative; overflow: hidden; background: var(--navy-900); color: #c9d4e2; }
.band-dark::after { content: ""; position: absolute; right: -120px; top: -120px; width: 520px; height: 520px; border-radius: 50%; border: 1px solid rgba(166, 208, 201, 0.18); box-shadow: 0 0 0 70px rgba(166, 208, 201, 0.04), 0 0 0 140px rgba(166, 208, 201, 0.03); pointer-events: none; }
.band-dark .wrap { position: relative; z-index: 1; }
.band-dark h2, .band-dark h3 { color: #fff; }
.band-dark .eyebrow { color: var(--teal-300); }
.band-dark .eyebrow::before { box-shadow: 0 0 0 4px rgba(166, 208, 201, 0.15); }
.band-dark p { color: #c9d4e2; }
.band-dark .lead { color: #d7e0ea; }
.principles { list-style: none; display: grid; gap: 0; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.principles li { padding: 20px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.principles h3 { font-size: 1.05rem; margin-bottom: 4px; }
.principles p { margin: 0; font-size: 0.96rem; color: #aebbcc; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr); gap: 64px; align-items: start; }
.contact-aside .lead { margin: 20px 0 28px; }
.check-list { list-style: none; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 30px; color: var(--ink-2); }
.check-list li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--teal-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f6f69' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") no-repeat center / 12px; }
.contact-line { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--ink-2); }
.contact-line p { margin: 0 0 6px; }
.contact-line a { font-weight: 600; }
.form-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(22px, 3.4vw, 40px); box-shadow: var(--shadow-1); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.form-grid .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field label { font-weight: 600; font-size: 14px; color: var(--ink); }
.field label .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 12px 14px; border: 1.5px solid var(--line-2); border-radius: var(--r-md); background: #fff; color: var(--ink); font: 400 16px/1.4 var(--font-body); transition: border-color 0.15s, box-shadow 0.15s; }
.field textarea { min-height: 140px; resize: vertical; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 40px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23677385' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 18px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--muted); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal-600); box-shadow: 0 0 0 4px rgba(47, 111, 105, 0.15); }
.field .hint { font-size: 13px; color: var(--muted); }
.field .error { font-size: 13px; color: var(--danger); font-weight: 500; }
.field .error:empty { display: none; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 28px; }
.form-note { font-size: 13px; color: var(--muted); margin: 0; }
.form-status { margin-top: 20px; padding: 16px 18px; border-radius: var(--r-md); font-weight: 500; }
.form-status:empty { display: none; }
.form-status.is-error { background: #fbefec; color: #8a2b20; border: 1px solid #efcbc3; }
.form-success .icon-tile { background: var(--teal-100); color: var(--teal-700); }
.form-success h3 { font-size: 1.5rem; margin-bottom: 10px; }
.form-success p { color: var(--ink-2); }
.form-success code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; background: var(--surface); padding: 2px 6px; border-radius: 4px; }

/* Page hero (inner pages) */
.page-hero { position: relative; overflow: hidden; padding: clamp(56px, 8vw, 112px) 0 clamp(48px, 6vw, 80px); border-bottom: 1px solid var(--line); }
.page-hero::before { content: ""; position: absolute; right: -160px; top: -200px; width: 560px; height: 560px; border-radius: 50%; border: 1px solid var(--line); box-shadow: 0 0 0 80px rgba(95, 158, 150, 0.05), 0 0 0 160px rgba(95, 158, 150, 0.03); z-index: -1; }
.page-hero h1 { max-width: 15em; font-size: clamp(2.1rem, 4.2vw, 3.4rem); }
.page-hero .lead { margin-top: 22px; }
.page-hero .btn-row { margin-top: 32px; }

/* Detail rows (services, approach) */
.detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; padding: 56px 0; border-top: 1px solid var(--line); align-items: start; }
.detail:first-child { border-top: 0; padding-top: 0; }
.detail h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); margin-bottom: 18px; }
.detail .card-num { margin-bottom: 14px; }
.detail > div > p { color: var(--ink-2); font-size: 1.05rem; }
.detail-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; }
.detail-box h3 { font: 600 12px/1.4 var(--font-body); letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal-600); margin-bottom: 16px; }
.detail-box + .detail-box { margin-top: 16px; }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; min-height: 64px; padding: 18px 0; font: 700 1.08rem/1.35 var(--font-head); color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 12px; height: 12px; border-right: 2px solid var(--teal-600); border-bottom: 2px solid var(--teal-600); transform: rotate(45deg) translateY(-3px); transition: transform 0.25s var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq details p { margin: 0 0 22px; color: var(--ink-2); max-width: 46em; }

/* Facts list (about) */
.facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); border-top: 1px solid var(--line); }
.facts dt, .facts dd { margin: 0; padding: 16px 0; border-bottom: 1px solid var(--line); }
.facts dt { font: 600 12px/1.8 var(--font-body); text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); padding-right: 40px; }
.facts dd { color: var(--ink); font-weight: 500; }

/* CTA band */
.cta-band { background: var(--navy-900); color: #fff; border-radius: var(--r-lg); padding: clamp(36px, 5vw, 64px); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: center; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -80px; bottom: -160px; width: 360px; height: 360px; border-radius: 50%; border: 1px solid rgba(166, 208, 201, 0.2); pointer-events: none; }
.cta-band h2 { color: #fff; font-size: clamp(1.6rem, 2.8vw, 2.3rem); }
.cta-band p { color: #c3cfde; margin: 12px 0 0; max-width: 34em; }

/* Footer */
.site-footer { background: var(--navy-950); color: #a9b6c8; padding: 72px 0 32px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.site-footer .brand { color: #fff; }
.site-footer .brand-name span { color: #8d9bb0; }
.site-footer .footer-tag { font: 700 18px/1.3 var(--font-head); color: #fff; margin: 22px 0 10px; }
.site-footer p { margin: 0; }
.site-footer h3 { font: 600 12px/1.4 var(--font-body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal-300); margin-bottom: 14px; }
.site-footer ul { list-style: none; display: grid; gap: 2px; }
.site-footer a { color: #d6dfea; display: inline-flex; align-items: center; min-height: 36px; background: linear-gradient(currentColor, currentColor) 0 85% / 0 1px no-repeat; transition: background-size 0.25s var(--ease), color 0.15s; }
.site-footer a:hover { color: #fff; background-size: 100% 1px; }
.site-footer a.brand { background: none; }
.footer-base { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.08); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; font-size: 13px; color: #7d8aa0; }

/* Motion */
.js [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); transition-delay: calc(var(--d, 0) * 70ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.hero [data-enter] { animation: enter 0.9s var(--ease) both; animation-delay: calc(var(--d, 0) * 90ms); }
@keyframes enter { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .net .node, .net .link { opacity: 1; }
  .net .pulse { display: none; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* Responsive */
@media (max-width: 1080px) {
  .phases { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .phases li::after { display: none; }
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
  :root { --header-h: 64px; }
  /* backdrop-filter would make the header the containing block of the fixed menu */
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--bg); }
  .menu-toggle { display: inline-flex; }
  .nav { position: fixed; inset: var(--header-h) 0 0 0; z-index: 49; flex-direction: column; align-items: stretch; gap: 0; padding: 16px var(--gutter) 32px; background: var(--bg); overflow-y: auto; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity 0.2s, transform 0.2s var(--ease), visibility 0.2s; }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav a:not(.btn) { min-height: 56px; font-size: 18px; padding: 0 4px; border-bottom: 1px solid var(--line); }
  .nav a:not(.btn)::after { display: none; }
  .nav .btn { margin: 24px 0 0; min-height: 52px; font-size: 16px; }
  body.menu-open { overflow: hidden; }
  .hero-grid, .contact-grid, .detail, .split { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .hero-visual { max-width: 520px; width: 100%; margin: 0 auto; }
  .section-head { grid-template-columns: minmax(0, 1fr); gap: 16px; margin-bottom: 40px; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta-band { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .grid-2, .grid-3, .phases, .pain-list { grid-template-columns: minmax(0, 1fr); }
  .pain-list li, .pain-list li:nth-child(even) { padding: 22px 0; border-right: 0; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .btn-row .btn, .form-actions .btn { width: 100%; }
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .card, .phases li { padding: 24px; }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .facts dt { padding-bottom: 0; border-bottom: 0; }
}
