/* HLW Consulting — shared base
   Swiss-minimal, warm near-white, technical-blueprint sci-fi.
   Per-page accent is set via :root{ --accent: ... } in each page. */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  --bg:        oklch(0.987 0.004 85);
  --bg-2:      oklch(0.975 0.005 85);
  --ink:       oklch(0.205 0.012 65);
  --muted:     oklch(0.52 0.012 65);
  --faint:     oklch(0.66 0.008 70);
  --line:      oklch(0.88 0.006 80);
  --line-soft: oklch(0.93 0.005 80);
  --accent:    oklch(0.55 0.17 255);          /* overridden per page */
  --accent-15: oklch(0.55 0.17 255 / 0.15);

  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --maxw: 1240px;
  --pad: clamp(24px, 5vw, 88px);
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: var(--bg); }

a { color: inherit; text-decoration: none; }

/* ---------- type ---------- */
.mono {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}

.display {
  font-weight: 700;
  letter-spacing: -0.028em;
  line-height: 0.98;
  text-wrap: balance;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ---------- layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--pad);
}

.rule {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0;
}

/* ---------- top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--bg) 82%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.topbar-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 64px;
}
.wordmark {
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.wordmark .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-15);
}

.switch {
  display: flex;
  align-items: center;
  gap: 2px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.switch a {
  padding: 7px 12px;
  color: var(--faint);
  border-radius: 2px;
  transition: color .18s, background .18s;
  white-space: nowrap;
}
.switch a:hover { color: var(--ink); }
.switch a.active {
  color: var(--ink);
  background: var(--bg-2);
  box-shadow: inset 0 0 0 1px var(--line);
}
.switch a.active::before {
  content: "";
  display: inline-block;
  width: 5px; height: 5px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--accent);
  vertical-align: middle;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 13px 20px;
  border: 1px solid var(--ink);
  color: var(--bg);
  background: var(--ink);
  border-radius: 2px;
  transition: transform .18s ease, background .18s, color .18s;
}
.btn:hover { transform: translateY(-2px); }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translate(3px,-3px); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--ink); }

/* ---------- domains ---------- */
.domains { padding-block: clamp(56px, 8vw, 110px); }
.domain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.domain {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 30px 28px 34px;
  min-height: 196px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: background .2s;
}
.domain:hover { background: var(--bg-2); }
.domain.flash {
  background: var(--bg-2);
  box-shadow: inset 0 0 0 2px var(--accent);
  transition: box-shadow .25s, background .25s;
}
.domain .code {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--faint);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.domain .code .tag { color: var(--accent); }
.domain h3 {
  margin: 22px 0 10px;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.domain p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
  max-width: 30ch;
}

/* ---------- value / outcomes ---------- */
.value { padding-block: clamp(56px, 8vw, 110px); }
.value-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
}
.value h2 {
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.04;
  margin: 0;
  text-wrap: balance;
}
.value-points { display: flex; flex-direction: column; gap: 30px; }
.value-point { display: grid; grid-template-columns: 44px 1fr; gap: 18px; }
.value-point .n {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.1em;
  padding-top: 4px;
}
.value-point h4 { margin: 0 0 6px; font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.value-point p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; }

/* ---------- cta ---------- */
.cta { padding-block: clamp(64px, 9vw, 130px); }
.cta-in {
  border: 1px solid var(--line);
  background: var(--bg-2);
  border-radius: 4px;
  padding: clamp(36px, 5vw, 64px);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.cta h2 {
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.0;
  margin: 0 0 18px;
  text-wrap: balance;
}
.cta p { margin: 0; color: var(--muted); font-size: 16px; max-width: 42ch; }
.contact-block { display: flex; flex-direction: column; gap: 16px; }
.contact-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.contact-row .lbl {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}
.contact-row .val { font-size: 18px; font-weight: 500; }
.contact-row.urgent .lbl { color: var(--accent); }

/* ---------- rapid response band ---------- */
.rapid {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}
.rapid-in {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(20px, 4vw, 56px);
  padding-block: 22px;
}
.rapid-status {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
}
.rapid-status .pulse {
  position: relative;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}
.rapid-status .pulse::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: 50%;
  background: var(--accent);
  animation: rapidPulse 2s ease-out infinite;
}
@keyframes rapidPulse {
  0%   { transform: scale(1);   opacity: 0.6; }
  100% { transform: scale(3.4); opacity: 0; }
}
.rapid-line {
  margin: 0;
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.45;
  color: var(--muted);
  max-width: 64ch;
}
.rapid-line strong { color: var(--ink); font-weight: 500; }
.rapid .btn { white-space: nowrap; }
@media (max-width: 820px) {
  .rapid-in { grid-template-columns: 1fr; gap: 16px; justify-items: start; }
}

/* ---------- R&D note (under domains) ---------- */
.rnd-note {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(18px, 3vw, 40px);
  align-items: baseline;
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px dashed var(--line);
}
.rnd-note .tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
  padding-top: 4px;
}
.rnd-note p {
  margin: 0;
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.5;
  color: var(--ink);
  max-width: 70ch;
  text-wrap: pretty;
}
.rnd-note p span { color: var(--muted); }
@media (max-width: 600px) {
  .rnd-note { grid-template-columns: 1fr; gap: 10px; }
}

/* ---------- footer ---------- */
.foot {
  border-top: 1px solid var(--line);
  padding-block: 40px;
}
.foot-in {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .domain-grid { grid-template-columns: 1fr 1fr; }
  .value-grid { grid-template-columns: 1fr; }
  .cta-in { grid-template-columns: 1fr; }
  .switch a.active::before { display: none; }
}
@media (max-width: 600px) {
  .domain-grid { grid-template-columns: 1fr; }
  .switch { display: none; }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
