/* Hallmark · genre: atmospheric · macrostructure: operations workbench · design-system: docs/company/design-system.md · designed-as-app
 * Impeccable · polish: brand register · UI/UX pass for Hong Kong SME AI operations
 */
:root {
  --background: #070b12;
  --surface: #0e1624;
  --raised: #111d2e;
  --text: #f8fafc;
  --secondary: #b4c1d3;
  --accent: #2dd4bf;
  --accent-hover: #14b8a6;
  --signal: #a7f3d0;
  --accent-ink: #04111d;
  --border: rgba(248, 250, 252, 0.1);
  --border-muted: rgba(248, 250, 252, 0.075);
  --border-strong: rgba(45, 212, 191, 0.28);
  --grid-line: rgba(248, 250, 252, 0.022);
  --grid-line-strong: rgba(248, 250, 252, 0.04);
  --surface-soft: rgba(14, 22, 36, 0.82);
  --surface-glass: rgba(7, 11, 18, 0.38);
  --surface-hover: rgba(17, 29, 46, 0.94);
  --accent-soft: rgba(45, 212, 191, 0.08);
  --accent-panel: rgba(45, 212, 191, 0.12);
  --accent-border: rgba(45, 212, 191, 0.24);
  --accent-border-strong: rgba(45, 212, 191, 0.42);
  --shadow: 0 18px 44px rgba(0, 0, 0, 0.26);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --max: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  overflow-x: clip;
  scroll-padding-top: 96px;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: clip;
  background:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px),
    linear-gradient(180deg, var(--background) 0%, var(--surface) 62%, var(--background) 100%),
    var(--background);
  background-size: 56px 56px, 56px 56px, 100% 100%, 100% 100%;
  color: var(--text);
  font-family:
    Inter,
    "Noto Sans TC",
    "PingFang TC",
    "Microsoft JhengHei",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: rgba(45, 212, 191, 0.18);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background: linear-gradient(180deg, transparent 0%, var(--background) 82%);
}

a {
  color: inherit;
  text-decoration: none;
  touch-action: manipulation;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  transform: translateY(-140%);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 10px 14px;
  background: var(--raised);
  color: var(--text);
  font-weight: 650;
  transition: transform 180ms var(--ease-out);
}

.skip-link:focus-visible {
  transform: translateY(0);
}

img,
svg {
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  max-width: 820px;
  font-size: clamp(2.35rem, 5vw, 3.5rem);
  font-weight: 650;
  line-height: 1.05;
  letter-spacing: 0;
  text-wrap: balance;
}

h2 {
  max-width: 780px;
  font-size: clamp(1.8rem, 3vw, 2.55rem);
  font-weight: 650;
  line-height: 1.14;
  letter-spacing: 0;
  text-wrap: balance;
}

h3 {
  font-size: 1.14rem;
  line-height: 1.3;
}

.shell {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

[id] {
  scroll-margin-top: 96px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(7, 11, 18, 0.82);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(18px);
}

.nav {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.brand-logo {
  display: block;
  width: 226px;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: clamp(14px, 2.6vw, 28px);
  color: var(--secondary);
  font-size: 1rem;
  font-weight: 560;
}

.nav-links a,
.site-footer a {
  border-bottom: 1px solid transparent;
  transition:
    color 180ms var(--ease-out),
    border-color 180ms var(--ease-out);
}

.nav-links a:hover,
.site-footer a:hover {
  color: var(--signal);
  border-color: rgba(45, 212, 191, 0.42);
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0 18px;
  font-weight: 650;
  line-height: 1;
  white-space: nowrap;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.nav-cta {
  min-height: 40px;
  color: var(--accent-ink);
  background: var(--accent);
  border-color: transparent;
}

.nav-cta:hover,
.button.primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.nav-cta:active,
.button:active,
.plan-button:active {
  transform: translateY(0);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(320px, 0.84fr);
  gap: 64px;
  align-items: center;
  padding: 70px 0 56px;
}

.brand-signal {
  position: absolute;
  top: 50px;
  right: min(42%, 520px);
  width: clamp(140px, 18vw, 250px);
  opacity: 0.055;
  pointer-events: none;
  transform: rotate(2deg);
}

.eyebrow {
  margin-bottom: 16px;
  color: var(--signal);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lead {
  max-width: 680px;
  margin-top: 22px;
  color: var(--secondary);
  font-size: 1.12rem;
  text-wrap: pretty;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button.primary {
  color: var(--accent-ink);
  background: var(--accent);
  border-color: transparent;
}

.button.secondary {
  color: var(--text);
  background: transparent;
}

.button.secondary:hover {
  border-color: var(--accent-border-strong);
  transform: translateY(-1px);
}

.panel {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: linear-gradient(180deg, var(--raised), var(--surface));
  box-shadow: var(--shadow);
}

.ai-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(18px, 3vw, 24px);
}

.ai-panel::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(90deg, transparent, var(--accent-soft), transparent),
    linear-gradient(var(--grid-line-strong) 1px, transparent 1px);
  background-size: 100% 100%, 100% 36px;
  animation: scan-surface 1200ms ease-out 420ms 1 both;
}

.ai-panel::after {
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.5;
  animation: signal-line 1400ms ease-out 620ms 1 both;
}

.panel-top {
  position: relative;
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.panel-title,
.section-kicker,
.label,
.timeline-item span,
.stat-card strong,
.stat-card span,
.plan-label {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

.panel-title {
  color: var(--signal);
  font-size: 0.8rem;
}

.panel-subtitle {
  margin-top: 4px;
  color: var(--secondary);
  font-size: 0.82rem;
}

.status-pill {
  flex: 0 0 auto;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 5px 10px;
  color: var(--signal);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.75rem;
  box-shadow: 0 0 16px var(--accent-soft);
}

.dashboard-panel {
  transform: translateY(2px);
  opacity: 0.92;
}

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 22px 0 14px;
}

.stat-card {
  min-height: 98px;
  padding: 14px;
  background: var(--surface-glass);
  border: 1px solid var(--border-muted);
  border-radius: 12px;
}

.stat-card span {
  display: block;
  color: var(--secondary);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.stat-card strong {
  display: block;
  margin-top: 10px;
  color: var(--text);
  font-size: clamp(0.96rem, 1.5vw, 1.08rem);
  line-height: 1.32;
}

.stat-card small {
  display: block;
  margin-top: 10px;
  color: var(--secondary);
}

.accent-stat {
  background: linear-gradient(180deg, var(--accent-panel), var(--surface-glass));
  border-color: var(--accent-border);
}

.accent-stat strong {
  color: var(--signal);
}

.workflow-card {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.flow-step,
.dashboard-note,
.output-chip {
  background: var(--surface-glass);
  border: 1px solid var(--border-muted);
  border-radius: 12px;
}

.flow-step {
  position: relative;
  min-height: 118px;
  padding: 16px;
}

.flow-step::after {
  position: absolute;
  top: 50%;
  right: -13px;
  width: 12px;
  height: 1px;
  content: "";
  background: var(--accent-border-strong);
}

.flow-step:last-child::after {
  display: none;
}

.flow-step span,
.dashboard-note span,
.output-chip span {
  display: block;
  color: var(--secondary);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.flow-step strong {
  display: block;
  margin-top: 22px;
  font-size: 1rem;
  line-height: 1.35;
}

.flow-step.active {
  background: linear-gradient(180deg, var(--accent-panel), var(--surface-glass));
  border-color: var(--border-strong);
}

.flow-step.active strong {
  color: var(--signal);
}

.dashboard-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 12px;
  padding: 14px 16px;
}

.dashboard-note strong {
  display: block;
  margin-top: 4px;
  line-height: 1.3;
}

.compact-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.output-chip {
  min-height: 76px;
  padding: 14px;
}

.output-chip strong {
  display: block;
  margin-top: 10px;
  color: var(--signal);
  font-size: 0.92rem;
  line-height: 1.25;
}

.trust-strip {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  padding: 18px 0 38px;
  color: var(--secondary);
}

.trust-strip > span {
  color: var(--signal);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.integration-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.integration-list span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  background: var(--surface-soft);
  border: 1px solid rgba(248, 250, 252, 0.1);
  border-radius: 999px;
  font-size: 0.875rem;
}

.section {
  position: relative;
  padding: 88px 0;
  border-top: 1px solid var(--border);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(280px, 0.55fr);
  gap: 40px;
  align-items: end;
  margin-bottom: 32px;
}

.section-head.compact {
  margin-bottom: 0;
}

.section-head p {
  color: var(--secondary);
  font-size: 1.02rem;
  line-height: 1.72;
}

.section-kicker {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 18px;
  color: var(--signal);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.section-kicker img {
  width: 24px;
  height: 24px;
  opacity: 0.9;
}

.service-grid,
.pricing-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) repeat(2, minmax(0, 0.9fr));
  gap: 16px;
  align-items: stretch;
}

.pricing-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pricing-note {
  max-width: 880px;
  margin: -8px 0 28px;
  padding: 16px 18px;
  color: var(--secondary);
  font-size: 1.02rem;
  line-height: 1.68;
  background: rgba(45, 212, 191, 0.07);
  border: 1px solid rgba(45, 212, 191, 0.18);
  border-radius: 10px;
}

.card {
  min-height: 100%;
  padding: 22px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.service-grid .card {
  display: grid;
  grid-template-rows: auto minmax(108px, 1fr) auto;
  align-content: stretch;
}

.service-grid .card:first-child {
  grid-row: span 2;
  padding: clamp(24px, 3vw, 32px);
  background:
    linear-gradient(180deg, var(--raised), var(--surface)),
    var(--surface);
  border-color: var(--accent-border);
}

.service-grid .card:first-child h3 {
  max-width: 12ch;
  font-size: clamp(1.35rem, 2vw, 1.7rem);
}

.service-grid .card:first-child p {
  max-width: 34ch;
  font-size: 1.08rem;
}

.service-grid .card:nth-child(4) {
  grid-column: span 2;
}

.card:hover {
  background: var(--surface-hover);
  border-color: var(--border-strong);
  transform: translateY(-3px);
}

.card p {
  margin-top: 10px;
  color: var(--secondary);
  font-size: 1rem;
  line-height: 1.68;
}

.metric {
  align-self: end;
  min-height: 78px;
  margin-top: 20px;
  padding: 12px 13px;
  display: flex;
  align-items: center;
  color: var(--signal);
  font-size: 0.96rem;
  font-weight: 650;
  line-height: 1.45;
  background: var(--accent-soft);
  border: 1px solid rgba(45, 212, 191, 0.16);
  border-radius: 8px;
}

.process-section {
  background: linear-gradient(180deg, rgba(14, 22, 36, 0.42), transparent);
}

.process-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 40px;
  align-items: start;
}

.timeline {
  display: grid;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-soft);
  padding: 16px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px 16px;
  align-items: start;
  padding: 16px;
  border-radius: 10px;
  background: var(--surface-glass);
}

.timeline-item span {
  grid-row: span 2;
  color: var(--signal);
  font-size: 0.78rem;
  line-height: 1.3;
}

.timeline-item strong {
  font-size: 1.05rem;
  line-height: 1.3;
}

.timeline-item p {
  color: var(--secondary);
  font-size: 1rem;
  line-height: 1.65;
}

.work-list {
  display: grid;
  gap: 12px;
}

.work-item {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) repeat(2, minmax(0, 0.9fr));
  gap: 0;
  align-content: start;
  padding: 0;
  overflow: hidden;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.work-item:hover {
  background: var(--raised);
  border-color: var(--accent-border);
  transform: translateY(-2px);
}

.label {
  color: var(--secondary);
  font-size: 0.88rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.work-item p {
  margin-top: 8px;
  color: var(--secondary);
  font-size: 1rem;
  line-height: 1.68;
}

.work-item > div {
  min-height: 178px;
  padding: 22px;
  border-left: 1px solid var(--border-muted);
}

.work-item > div:first-child {
  border-left: 0;
}

.price-card {
  display: flex;
  flex-direction: column;
  min-height: 440px;
  padding: 26px;
  background: var(--raised);
}

.price-card.featured {
  border-color: var(--border-strong);
  background: linear-gradient(180deg, var(--raised), var(--surface));
}

.plan-label {
  align-self: flex-start;
  min-height: 26px;
  padding: 4px 9px;
  margin-bottom: 18px;
  color: var(--signal);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(45, 212, 191, 0.09);
  border: 1px solid rgba(45, 212, 191, 0.18);
  border-radius: 999px;
}

.price {
  margin-top: 18px;
  font-size: 1.85rem;
  font-weight: 650;
  letter-spacing: 0;
}

.plan-fit {
  margin-top: 14px;
  padding: 13px 14px;
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.55;
  background: rgba(248, 250, 252, 0.055);
  border: 1px solid rgba(248, 250, 252, 0.1);
  border-radius: 8px;
}

.list {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
  padding: 0;
  color: var(--secondary);
  font-size: 1rem;
  line-height: 1.62;
  list-style: none;
}

.list li {
  position: relative;
  padding-left: 18px;
}

.list li::before {
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 6px;
  height: 6px;
  content: "";
  background: var(--accent);
  border-radius: 50%;
  transform: translateY(-50%);
}

.plan-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  margin-top: auto;
  padding: 0 46px 0 18px;
  color: var(--text);
  font-weight: 650;
  text-align: center;
  background: linear-gradient(180deg, rgba(45, 212, 191, 0.16), rgba(45, 212, 191, 0.07));
  border: 1px solid rgba(45, 212, 191, 0.34);
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(248, 250, 252, 0.06);
  transition:
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.plan-button::after {
  position: absolute;
  right: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: var(--signal);
  content: "→";
  background: rgba(7, 11, 18, 0.34);
  border: 1px solid rgba(248, 250, 252, 0.12);
  border-radius: 999px;
}

.plan-button:hover {
  background: linear-gradient(180deg, rgba(45, 212, 191, 0.24), rgba(45, 212, 191, 0.1));
  border-color: rgba(45, 212, 191, 0.58);
  transform: translateY(-1px);
}

.plan-button.primary {
  color: var(--accent-ink);
  background: var(--accent);
  border-color: transparent;
}

.plan-button.primary::after {
  color: var(--accent-ink);
  background: rgba(4, 17, 29, 0.08);
  border-color: rgba(4, 17, 29, 0.14);
}

.plan-button.primary:hover {
  background: var(--accent-hover);
}

.contact-section {
  padding-bottom: 56px;
}

.cta {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  overflow: hidden;
  padding: 32px;
  color: var(--text);
  background: var(--raised);
  border: 1px solid rgba(45, 212, 191, 0.24);
  border-radius: 12px;
}

.cta::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(90deg, rgba(45, 212, 191, 0.12), transparent 38%),
    linear-gradient(rgba(248, 250, 252, 0.045) 1px, transparent 1px);
  background-size: 100% 100%, 100% 34px;
  opacity: 0.7;
}

.cta > * {
  position: relative;
}

.cta p {
  max-width: 720px;
  margin-top: 8px;
  color: var(--secondary);
  font-size: 1.02rem;
  line-height: 1.68;
}

.legal-page {
  min-height: calc(100vh - 142px);
}

.legal-layout {
  display: grid;
  gap: 18px;
}

.legal-page .section-head > *,
.legal-page .card {
  min-width: 0;
}

.legal-card {
  width: 100%;
  max-width: 900px;
  overflow-wrap: anywhere;
}

.legal-card h2 {
  font-size: 1.35rem;
}

.legal-page p,
.legal-page li {
  overflow-wrap: anywhere;
}

.legal-card p + p,
.legal-card p + .legal-list,
.legal-card .legal-list + p {
  margin-top: 14px;
}

.legal-card a {
  color: var(--signal);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-list {
  margin-top: 14px;
}

.site-footer {
  color: var(--secondary);
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) repeat(2, minmax(150px, 0.7fr)) minmax(260px, 1fr);
  gap: 28px;
  align-items: start;
  padding: 36px 0;
  font-size: 1rem;
  line-height: 1.7;
}

.footer-brand,
.footer-service {
  display: grid;
  gap: 6px;
}

.footer-brand strong,
.footer-service strong {
  color: var(--text);
}

.footer-brand span,
.footer-service span {
  color: var(--secondary);
}

.footer-links {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0 8px;
  justify-content: flex-end;
}

.button:focus-visible,
.nav-cta:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.reveal {
  opacity: 1;
}

.js .reveal {
  opacity: 1;
  transform: translateY(10px);
  transition:
    opacity 420ms var(--ease-out),
    transform 420ms var(--ease-out);
}

.js .reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@keyframes scan-surface {
  0% {
    background-position: -140% 0, 0 0;
  }

  100% {
    background-position: 140% 0, 0 36px;
  }
}

@keyframes signal-line {
  0%,
  100% {
    opacity: 0.18;
    transform: translateX(-38%);
  }

  50% {
    opacity: 0.7;
    transform: translateX(38%);
  }
}

@media (max-width: 1080px) {
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-grid .card:first-child,
  .service-grid .card:nth-child(4) {
    grid-column: auto;
    grid-row: auto;
  }

  .work-list {
    grid-template-columns: 1fr;
  }

  .work-item {
    grid-template-columns: 1fr;
  }

  .work-item > div,
  .work-item > div:first-child {
    min-height: auto;
    border-top: 1px solid var(--border-muted);
    border-left: 0;
  }

  .work-item > div:first-child {
    border-top: 0;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .nav {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    padding-bottom: 16px;
  }

  .hero,
  .section-head,
  .process-layout,
  .trust-strip,
  .work-item,
  .cta {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 56px;
  }

  .section-head.compact {
    margin-bottom: 32px;
  }

  .brand-signal {
    top: 24px;
    right: 18px;
    width: 150px;
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .shell {
    width: min(100% - 24px, var(--max));
  }

  .site-header {
    position: static;
  }

  .nav {
    grid-template-columns: 1fr;
    gap: 14px;
    align-items: start;
    padding: 16px 0;
  }

  .brand-logo {
    width: 160px;
  }

  .nav-links {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    padding-bottom: 0;
    font-size: 0.84rem;
  }

  .nav-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 6px;
    border: 1px solid var(--border);
    border-radius: 8px;
    white-space: nowrap;
  }

  .nav-cta {
    width: 100%;
  }

  .hero {
    gap: 36px;
    padding: 46px 0 44px;
  }

  h1 {
    font-size: clamp(1.72rem, 8.2vw, 2.05rem);
    line-height: 1.1;
  }

  .eyebrow {
    max-width: 26ch;
    font-size: 0.68rem;
    line-height: 1.45;
    letter-spacing: 0.045em;
  }

  .lead {
    font-size: 0.98rem;
  }

  .actions,
  .actions .button {
    width: 100%;
  }

  .section {
    padding: 48px 0;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-stats,
  .workflow-card,
  .compact-flow {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .dashboard-stats {
    padding: 18px 0 10px;
  }

  .stat-card {
    min-height: 72px;
    padding: 11px;
  }

  .stat-card span,
  .flow-step span {
    font-size: 0.64rem;
    letter-spacing: 0.06em;
  }

  .stat-card strong {
    margin-top: 7px;
    font-size: 1rem;
  }

  .flow-step {
    min-height: 82px;
    padding: 11px;
  }

  .flow-step::after {
    display: none;
  }

  .flow-step strong {
    margin-top: 10px;
    font-size: 0.9rem;
  }

  .dashboard-note {
    display: grid;
    grid-template-columns: 1fr;
  }

  .panel,
  .card,
  .work-item,
  .cta {
    padding: 18px;
  }

  .timeline {
    padding: 10px;
  }

  .timeline-item {
    grid-template-columns: 36px 1fr;
    padding: 14px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
