/*
  THESIS: a named specialist's real ~20-year SAP HR/Time/SuccessFactors track record,
  proved with a live flow diagram instead of an agency feature grid.
  OWN-WORLD: restrained white/near-black + two deliberate accents, Sora across display
  and body weights, hairline borders, pill controls, authored SVG flow motifs in place
  of stock photography or gradient icon tiles. No status-dot/badge conventions, no
  invented methodology framework - real content only.
  STORY: an HR/IT decision-maker sees Core SAP HR -> SuccessFactors -> Integration
  resolve into SAP BTP in the first viewport, reads a named founder's real track
  record as the proof a testimonial section would otherwise carry, and emails.
  FIRST VIEWPORT: left-aligned headline + two CTAs; right, a live animated node-flow
  panel (SAP HR -> SuccessFactors -> Integration -> SAP BTP).
  FORM: brief-pinned (folk.app minimal SaaS world) - direction committed directly,
  no concept roll.
  COLOR: mint (#17a589) carries the SAP HR/SuccessFactors/Integration expertise chain;
  a warm amber (#d98f2b) is reserved for SAP BTP - "where process becomes digital" -
  and the closing CTA, the one deliberate "spark" moment against an otherwise cool,
  systematic palette. Amber is not an AI marker; AI is one BTP capability among many.
*/

@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("assets/fonts/Sora-variable.woff2") format("woff2");
}

:root {
  color-scheme: light;

  --ink: #0e0f12;
  --ink-soft: #4a4d55;
  --muted: #82858c;
  --paper: #ffffff;
  --paper-soft: #f5f5f3;
  --paper-dim: #eeeeeb;
  --line: rgba(14, 15, 18, 0.12);
  --line-soft: rgba(14, 15, 18, 0.08);

  --accent: #17a589;
  --accent-strong: #0c5b4b;
  --accent-bright: #22c79e;
  --accent-soft: #e3f5ef;
  --accent-dim: rgba(23, 165, 137, 0.14);
  --accent-ink: #ffffff;

  --accent-2: #d98f2b;
  --accent-2-strong: #8c5313;
  --accent-2-bright: #f0a94a;
  --accent-2-soft: #fbeedc;
  --accent-2-dim: rgba(217, 143, 43, 0.16);
  --accent-2-glow: rgba(217, 143, 43, 0.35);

  --danger: #ff6b6b;

  --dark: #0e0f12;
  --dark-2: #17181d;
  --dark-line: rgba(255, 255, 255, 0.14);

  --font-display: "Sora", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Sora", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1180px;
  --gutter: max(1.25rem, calc((100vw - var(--container)) / 2));
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(14, 15, 18, 0.04), 0 8px 24px rgba(14, 15, 18, 0.05);
  --shadow-md: 0 4px 12px rgba(14, 15, 18, 0.05), 0 24px 48px rgba(14, 15, 18, 0.08);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  overflow-x: hidden;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
  width: 100%;
  touch-action: none;
}

img {
  max-width: 100%;
  display: block;
}

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

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 2.5px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

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

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4,
.contact-section h1,
.contact-section h2,
.contact-section h3,
.contact-section h4 {
  color: var(--paper);
}

p {
  color: var(--ink-soft);
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 1rem;
  left: 1rem;
  transform: translateY(-160%);
  padding: 0.75rem 1.1rem;
  border-radius: var(--radius-sm);
  color: var(--paper);
  background: var(--ink);
  font-weight: 700;
  transition: transform 220ms var(--ease);
}

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

/* ---------- Buttons & controls ---------- */

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
  min-height: 50px;
  padding: 0.85rem 1.4rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  white-space: nowrap;
  transition: transform 260ms var(--ease), background-color 220ms var(--ease-soft),
    border-color 220ms var(--ease-soft), color 220ms var(--ease-soft), box-shadow 220ms var(--ease-soft);
}

.button-arrow {
  display: inline-block;
  transition: transform 260ms var(--ease);
}

.button:hover .button-arrow {
  transform: translateX(3px);
}

.button-primary {
  color: var(--accent-ink);
  background: var(--ink);
  box-shadow: var(--shadow-sm);
}

.button-primary:hover {
  background: var(--accent-strong);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.button-secondary {
  color: var(--ink);
  border-color: var(--line);
  background: transparent;
}

.button-secondary:hover {
  border-color: var(--ink);
  background: var(--paper-soft);
}

.section-dark .button-secondary {
  color: var(--paper);
  border-color: var(--dark-line);
}

.section-dark .button-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.4);
}

.button:active {
  transform: translateY(0) scale(0.98);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.15rem;
  transition: border-color 220ms var(--ease-soft), color 220ms var(--ease-soft), gap 220ms var(--ease);
}

.link-arrow:hover {
  color: var(--accent-strong);
  border-color: var(--accent);
  gap: 0.6rem;
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
  padding: 0.7rem 1rem;
  background: rgba(255, 255, 255, 0);
  border-bottom: 1px solid transparent;
  transition: background-color 260ms var(--ease-soft), border-color 260ms var(--ease-soft), box-shadow 260ms var(--ease-soft);
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.86);
  border-bottom-color: var(--line);
  box-shadow: 0 1px 0 rgba(14, 15, 18, 0.02);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--ink);
}

.brand-logo {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  transition: transform 260ms var(--ease);
}

.brand:hover .brand-logo {
  transform: rotate(-6deg) scale(1.05);
}

.brand-text {
  max-width: 44vw;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.9rem;
  font-weight: 550;
  font-size: 0.95rem;
}

.nav-links a {
  position: relative;
  padding: 0.3rem 0;
  color: var(--ink-soft);
  transition: color 200ms var(--ease-soft);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -2px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: right 260ms var(--ease);
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-links a:hover::after {
  right: 0;
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  padding: 0.22rem;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.language-switcher a {
  display: grid;
  place-items: center;
  min-width: 34px;
  min-height: 30px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  transition: color 200ms var(--ease-soft), background-color 200ms var(--ease-soft);
}

.language-switcher a[aria-current="page"] {
  color: var(--ink);
  background: var(--paper-soft);
}

.language-switcher a:hover {
  color: var(--ink);
}

.nav-cta {
  align-self: flex-start;
}

.menu-toggle {
  position: relative;
  z-index: 95;
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  cursor: pointer;
}

.menu-toggle span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 1.6px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 220ms var(--ease);
}

.menu-toggle span:first-child {
  transform: translate(-50%, -50%) translateY(-4px);
}

.menu-toggle span:last-child {
  transform: translate(-50%, -50%) translateY(4px);
}

body.menu-open .menu-toggle span:first-child {
  transform: translate(-50%, -50%) rotate(45deg);
}

body.menu-open .menu-toggle span:last-child {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.site-nav {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2.2rem;
  padding: 6rem 1.5rem 3rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--paper);
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 260ms var(--ease-soft), transform 260ms var(--ease-soft), visibility 260ms;
}

body.menu-open .site-nav {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.site-nav .nav-links {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
  font-size: 1.9rem;
  font-family: var(--font-display);
}

.site-nav .nav-links a {
  padding: 0.5rem 0;
}

.site-nav .nav-links a::after {
  display: none;
}

/* ---------- Layout helpers ---------- */

.section {
  padding: 4.5rem var(--gutter);
  background: var(--paper);
}

.section-soft {
  background: var(--paper-soft);
}

.section-dark {
  color: var(--paper);
  background: var(--dark);
}

.section-dark p {
  color: rgba(255, 255, 255, 0.68);
}

.section-inner {
  width: min(var(--container), 100%);
  margin: 0 auto;
}

.section-kicker {
  display: block;
  margin: 0 0 0.9rem;
  color: var(--accent-strong);
  font-weight: 700;
  font-size: 0.84rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.section-dark .section-kicker {
  color: var(--accent-2-bright);
}

.section-heading {
  max-width: 640px;
  margin-bottom: 2.6rem;
}

.section-heading p {
  margin-top: 0.9rem;
  font-size: 1.05rem;
}

h1 {
  font-size: clamp(1.8rem, 1.3rem + 1.8vw, 2.75rem);
  line-height: 1.12;
  max-width: 34ch;
}

.accent-word {
  color: var(--accent);
}

.accent-word-2 {
  color: var(--accent-2-strong);
}

.contact-section .accent-word-2,
.section-dark .accent-word-2 {
  color: var(--accent-2-bright);
}

h2 {
  font-size: clamp(1.9rem, 1.6rem + 1.5vw, 2.9rem);
  line-height: 1.05;
}

h3 {
  font-size: 1.15rem;
  line-height: 1.25;
  margin-bottom: 0.55rem;
}

.lead {
  font-size: 1.1rem;
  max-width: 46ch;
}

/* scroll reveal */

/* Content is visible by default; JS opts in to the reveal animation so a
   failed/blocked script never hides real content. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 720ms var(--ease-soft), transform 720ms var(--ease-soft);
  transition-delay: calc(var(--stagger, 0) * 70ms);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 8rem 1.25rem 3rem;
  overflow: hidden;
  background: var(--paper);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(var(--container), 100%);
  margin: 0 auto;
  display: grid;
  gap: 2.5rem;
}

.hero-content {
  max-width: 680px;
}

.eyebrow {
  display: block;
  margin: 0 0 1rem;
  color: var(--accent-strong);
  font-weight: 700;
  font-size: 0.86rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

h1 {
  margin-bottom: 1.25rem;
}

.hero-copy {
  max-width: 560px;
  color: var(--ink-soft);
  font-size: 1.14rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2.1rem;
}

/* flow diagram panel */

.flow-panel {
  position: relative;
  aspect-ratio: 100 / 132;
  max-width: 460px;
  width: 100%;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    radial-gradient(120% 90% at 100% 0%, var(--accent-soft), transparent 60%),
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px),
    var(--paper);
  background-size: auto, 28px 28px, 28px 28px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.flow-spotlight {
  position: absolute;
  inset: 0;
  background: radial-gradient(220px circle at var(--spot-x, 50%) var(--spot-y, 50%), var(--accent-dim), transparent 70%);
  opacity: 0;
  transition: opacity 300ms var(--ease-soft);
  pointer-events: none;
}

.flow-spotlight.is-active {
  opacity: 1;
}

.flow-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.flow-path-bg {
  fill: none;
  stroke: var(--line);
  stroke-width: 1.4;
  stroke-linecap: round;
}

.flow-path-fg {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.4;
  stroke-linecap: round;
}

.js .flow-path-fg {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  transition: stroke-dashoffset 1.8s var(--ease);
}

.js .flow-panel.is-visible .flow-path-fg {
  stroke-dashoffset: 0;
}

.flow-node {
  fill: var(--paper);
  stroke: var(--accent);
  stroke-width: 2;
}

.flow-node-end {
  fill: var(--accent-2);
  stroke: none;
}

.flow-node-pulse {
  fill: none;
  stroke: var(--accent-2);
  stroke-width: 1.2;
  transform-box: fill-box;
  transform-origin: center;
}

.js .flow-node-pulse {
  animation: node-pulse 2.4s ease-out infinite;
}

@keyframes node-pulse {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }
  100% {
    transform: scale(2.6);
    opacity: 0;
  }
}

.flow-dot {
  fill: var(--accent);
}

.flow-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  max-width: 158px;
  padding: 0.45rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  box-shadow: var(--shadow-sm);
  font-size: 0.72rem;
  line-height: 1.25;
  font-weight: 600;
  color: var(--ink);
}

.js .flow-chip {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 560ms var(--ease-soft), transform 560ms var(--ease-soft);
  transition-delay: calc(var(--stagger, 0) * 110ms);
}

.js .flow-panel.is-visible .flow-chip {
  opacity: 1;
  transform: translateY(0);
}

.flow-chip-index {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 0.66rem;
  font-weight: 800;
}

.flow-chip-1 { left: 36%; top: 2%; }
.flow-chip-2 { left: 56%; top: 29%; text-align: right; flex-direction: row-reverse; }
.flow-chip-3 { left: 2%; top: 57%; }
.flow-chip-4 { left: 34%; top: 85%; }

.flow-chip-4 .flow-chip-index {
  background: var(--accent-2-soft);
  color: var(--accent-2-strong);
}

/* marquee strip */

.hero-strip {
  position: relative;
  width: 100%;
  margin-top: 1rem;
  padding: 1.1rem 0;
  overflow: hidden;
  border-top: 1px solid var(--line);
}

.hero-strip::before,
.hero-strip::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 64px;
  z-index: 2;
  pointer-events: none;
}

.hero-strip::before {
  left: 0;
  background: linear-gradient(90deg, var(--paper), transparent);
}

.hero-strip::after {
  right: 0;
  background: linear-gradient(270deg, var(--paper), transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: 2.5rem;
  animation: marquee 32s linear infinite;
}

.marquee-track span {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.92rem;
  white-space: nowrap;
}

.marquee-track span::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--line);
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.hero-strip:hover .marquee-track {
  animation-play-state: paused;
}

/* ---------- Flow tabs (services) ---------- */

.flow-tabs-wrap {
  position: relative;
  margin-bottom: 2.2rem;
}

.js .flow-tabs-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0.6rem;
  width: 48px;
  background: linear-gradient(270deg, var(--paper), transparent);
  pointer-events: none;
}

@media (min-width: 780px) {
  .flow-tabs-wrap::after {
    display: none;
  }
}

.flow-tabs {
  display: none;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.6rem;
  scrollbar-width: none;
}

.js .flow-tabs {
  display: flex;
}

.flow-tabs::-webkit-scrollbar {
  display: none;
}

.flow-tab {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 220ms var(--ease-soft), color 220ms var(--ease-soft), border-color 220ms var(--ease-soft);
}

.flow-tab-index {
  font-family: var(--font-display);
  font-size: 0.78rem;
  color: var(--muted);
}

.flow-tab:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.flow-tab[aria-selected="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.flow-tab[aria-selected="true"] .flow-tab-index {
  color: rgba(255, 255, 255, 0.6);
}

.flow-panels {
  position: relative;
}

.flow-panel-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.4rem;
  margin-bottom: 1rem;
  padding: 2.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-soft);
}

.js .flow-panel-card {
  display: none;
  margin-bottom: 0;
  animation: panel-in 420ms var(--ease-soft);
}

.js .flow-panel-card[data-active="true"] {
  display: grid;
}

@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.panel-top {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.panel-number {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-display);
  font-weight: 700;
  flex: 0 0 auto;
}

.panel-label {
  color: var(--accent-strong);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.flow-panel-card h3 {
  font-size: 1.5rem;
  margin: 0;
}

.flow-panel-card p {
  max-width: 62ch;
  font-size: 1.02rem;
}

.callout {
  margin: 1.8rem 0 0;
  max-width: 68ch;
}

.callout p {
  margin: 0;
  font-size: 1.08rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.75);
}

/* ---------- Story / signals ---------- */

.story-layout {
  display: grid;
  gap: 2.2rem;
}

.signal-list {
  display: grid;
  gap: 0.8rem;
}

.signal-card {
  position: relative;
  display: flex;
  gap: 1rem;
  padding: 1.3rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  transition: transform 260ms var(--ease), box-shadow 260ms var(--ease), border-color 260ms var(--ease);
}

.signal-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(14, 15, 18, 0.18);
}

.signal-index {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
}

.signal-card strong {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.signal-card p {
  margin: 0;
  font-size: 0.96rem;
}

.section-dark .signal-card {
  border-color: var(--dark-line);
  background: rgba(255, 255, 255, 0.05);
}

.section-dark .signal-card:hover {
  border-color: rgba(255, 255, 255, 0.24);
}

.section-dark .signal-card strong {
  color: var(--paper);
}

/* ---------- Pillars ---------- */

.pillar-grid {
  display: grid;
  gap: 1rem;
}

.pillar-card {
  padding: 1.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  transition: transform 260ms var(--ease), box-shadow 260ms var(--ease);
}

.pillar-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.pillar-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 1rem;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.pillar-icon svg {
  width: 20px;
  height: 20px;
}

.pillar-card p {
  font-size: 0.96rem;
}

.section-dark .pillar-card {
  border-color: var(--dark-line);
  background: rgba(255, 255, 255, 0.05);
}

.section-dark .pillar-card:hover {
  box-shadow: none;
  border-color: rgba(255, 255, 255, 0.24);
}

.section-dark .pillar-icon {
  background: rgba(255, 255, 255, 0.08);
  color: var(--accent-2-bright);
}

.pillar-grid--duo {
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .pillar-grid--duo {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---------- Experience timeline ---------- */

.timeline {
  position: relative;
  display: grid;
  gap: 0;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--line);
}

.timeline-item {
  position: relative;
  padding: 1.15rem 0 1.15rem 2.4rem;
  border-bottom: 1px solid var(--line-soft);
}

.timeline-item:last-child {
  border-bottom: none;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.5rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--accent);
}

.timeline-role {
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--ink);
}

.timeline-meta {
  margin-top: 0.25rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.timeline-company {
  font-weight: 600;
  color: var(--ink-soft);
}

.experience-link {
  margin-top: 1.6rem;
}

.team-block {
  margin-top: 3.5rem;
}

.team-block h3 {
  font-size: 1.3rem;
}

.team-intro {
  margin-bottom: 1.5rem;
}

/* ---------- BTP section spacing helpers ---------- */

.about-sublead {
  font-size: 1.02rem;
  margin-bottom: 1.2rem;
}

.btp-signals {
  margin-bottom: 3rem;
}

.deploy-block {
  margin-top: 3.5rem;
}

.deploy-block h3 {
  font-size: 1.3rem;
}

.deploy-intro {
  margin-bottom: 1.5rem;
}

.deploy-note {
  margin-top: 1.2rem;
  font-size: 0.95rem;
}

/* ---------- Contact ---------- */

.contact-section {
  position: relative;
  padding: 5.5rem var(--gutter);
  overflow: hidden;
  color: var(--paper);
  background: var(--dark);
}

.contact-glow {
  position: absolute;
  z-index: 0;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  right: -180px;
  top: -220px;
  background: radial-gradient(circle, var(--accent-2-glow), transparent 70%);
  filter: blur(10px);
}

.contact-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2.5rem;
}

.contact-inner h2 {
  max-width: 18ch;
}

.contact-inner .lead {
  color: rgba(255, 255, 255, 0.68);
  max-width: 52ch;
}

.contact-alt {
  margin-top: 1.5rem;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.92rem;
}

.contact-alt a {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  transition: color 200ms var(--ease-soft), border-color 200ms var(--ease-soft);
}

.contact-alt a:hover {
  color: var(--accent-2-bright);
  border-color: var(--accent-2-bright);
}

/* ---------- Contact form ---------- */

.contact-form {
  display: grid;
  gap: 1rem;
}

.form-row {
  display: grid;
  gap: 1rem;
}

.form-field {
  display: grid;
  gap: 0.45rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 400;
  resize: vertical;
  transition: border-color 200ms var(--ease-soft), background-color 200ms var(--ease-soft);
}

.form-field textarea {
  min-height: 108px;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: rgba(255, 255, 255, 0.32);
}

.form-field input:hover,
.form-field textarea:hover {
  border-color: rgba(255, 255, 255, 0.28);
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent-2);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px var(--accent-2-dim);
}

.form-field input:invalid:not(:placeholder-shown),
.form-field textarea:invalid:not(:placeholder-shown) {
  border-color: var(--danger);
}

.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-footer {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.4rem;
}

.contact-form .button-primary {
  position: relative;
}

.contact-form .button-primary[data-loading="true"] {
  color: transparent;
  pointer-events: none;
}

.contact-form .button-primary[data-loading="true"]::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(14, 15, 18, 0.3);
  border-top-color: var(--ink);
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.form-status {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
}

.form-status[data-state="success"] {
  color: var(--accent-bright);
}

.form-status[data-state="error"] {
  color: var(--danger);
}

.form-burst {
  position: fixed;
  z-index: 300;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.form-burst-particle {
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 6px;
  margin: -3px;
  border-radius: 50%;
  background: var(--particle-color, var(--accent-2-bright));
  animation: burst-fly 650ms var(--ease) forwards;
}

@keyframes burst-fly {
  to {
    transform: translate(var(--tx), var(--ty)) scale(0.3);
    opacity: 0;
  }
}

.contact-section .button-primary {
  background: var(--accent-2);
  color: var(--ink);
}

.contact-section .button-primary:hover {
  background: var(--accent-2-bright);
}

/* ---------- Legal pages ---------- */

.legal-page {
  padding-top: 7.5rem;
}

.legal-content {
  max-width: 46rem;
  color: var(--ink-soft);
}

.legal-content h1 {
  margin: 0 0 0.6rem;
}

.legal-content h2 {
  margin: 2.75rem 0 0.75rem;
  font-size: 1.25rem;
  color: var(--ink);
}

.legal-content h3 {
  margin: 1.75rem 0 0.5rem;
  font-size: 1rem;
  color: var(--ink);
}

.legal-content p {
  margin: 0 0 1rem;
  line-height: 1.75;
}

.legal-content strong {
  color: var(--ink);
}

.legal-meta {
  color: var(--muted);
  font-size: 0.88rem;
}

.legal-lead {
  font-size: 1.05rem;
  color: var(--ink);
}

.legal-address {
  margin: 0 0 1rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper-soft);
  font-style: normal;
  line-height: 1.8;
}

.legal-list {
  margin: 0 0 1rem;
  padding-left: 1.15rem;
  line-height: 1.75;
}

.legal-list li {
  margin-bottom: 0.5rem;
}

dl.legal-list {
  padding-left: 0;
}

dl.legal-list dt {
  margin-top: 1rem;
  font-weight: 700;
  color: var(--ink);
}

dl.legal-list dd {
  margin: 0.25rem 0 0;
}

.legal-content a {
  color: var(--accent-strong);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---------- Footer ---------- */

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 2rem var(--gutter);
  color: var(--muted);
  background: var(--paper);
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
}

.site-footer a {
  font-weight: 600;
  color: var(--ink);
  transition: color 200ms var(--ease-soft);
}

.site-footer a:hover {
  color: var(--accent-strong);
}

.footer-identity p {
  margin: 0;
}

.footer-legal {
  margin-top: 0.4rem;
  font-size: 0.82rem;
  line-height: 1.6;
}

.footer-legal a {
  font-weight: 500;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

/* ======================================================
   Responsive: mobile-first base above, enhance upward
   ====================================================== */

@media (min-width: 640px) {
  .hero {
    padding-top: 8.5rem;
  }

  .flow-panel {
    max-width: 420px;
  }
}

@media (min-width: 780px) {
  .menu-toggle {
    display: none;
  }

  .site-nav {
    position: static;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    padding: 0;
    overflow-y: visible;
    background: transparent;
    transform: none;
    opacity: 1;
    visibility: visible;
    transition: none;
    width: auto;
  }

  .site-nav .nav-links {
    flex-direction: row;
    align-items: center;
    font-size: 0.95rem;
    font-family: var(--font-body);
    gap: 1.9rem;
  }

  .site-nav .nav-links a {
    padding: 0.3rem 0;
  }

  .site-nav .nav-links a::after {
    display: block;
  }

  .nav-cta {
    align-self: center;
  }

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

@media (min-width: 900px) {
  .hero-inner {
    grid-template-columns: minmax(0, 0.95fr) minmax(340px, 0.85fr);
    align-items: center;
  }

  .hero-strip {
    grid-column: 1 / -1;
  }

  .story-layout {
    grid-template-columns: minmax(0, 0.82fr) minmax(360px, 1fr);
    align-items: start;
  }

  .story-copy {
    position: sticky;
    top: 6.5rem;
  }

  .contact-inner {
    grid-template-columns: minmax(0, 0.85fr) minmax(360px, 1fr);
    align-items: start;
  }

  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1000px) {
  .section {
    padding: 7rem var(--gutter);
  }

  .hero {
    padding: 10.5rem 1.25rem 4rem;
  }

  h1 {
    font-size: clamp(2.1rem, 1.5rem + 1.4vw, 3rem);
  }
}

@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;
    scroll-behavior: auto !important;
  }

  .marquee-track {
    animation: none;
  }
}

/* Printing renders the whole document at once with no scroll/intersection
   events, so reveal-gated and tab-gated content must be forced visible. */
@media print {
  .js [data-reveal],
  .js .flow-chip {
    opacity: 1 !important;
    transform: none !important;
  }

  .js .flow-path-fg {
    stroke-dashoffset: 0 !important;
  }

  .js .flow-panel-card {
    display: grid !important;
    margin-bottom: 1rem !important;
  }

  .flow-tabs-wrap,
  .menu-toggle {
    display: none !important;
  }
}
