/* CODEX SOLUTIONS — v2 styles
   Warm paper, ink text, orange for action, sunflower for warmth, painted textures instead of black.
   Single-class selectors; modifiers use --double-dash. */

:root {
  --paper: #F7F5F0;
  --white: #FFFFFF;
  --sand: #EFEAE0;
  --sand-2: #F0ECE3;
  --ink: #16181D;
  --ink-2: #4E5462;
  --line: #E2DCCF;
  --line-2: #D6CEBD;
  --accent: #E8541E;
  --orange: #D9420C;
  --orange-hover: #BF3807;
  --sun: #FFC72C;
  --sun-soft: #FFF4D6;
  --sun-ink: #6B4E00;
  --blue: #1D3A8A;
  --blue-soft: #EAF0FF;
  --wa: #25D366;
  --wa-ink: #06231A;

  --font-display: 'Bricolage Grotesque', ui-sans-serif, system-ui, sans-serif;
  --font-body: 'Figtree', ui-sans-serif, system-ui, sans-serif;
  --font-hand: 'Permanent Marker', 'Comic Sans MS', cursive;

  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(80px, 9vw, 128px);
  --header-h: 76px;
  --r-xl: 32px;
  --r-lg: 24px;
  --r-md: 16px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0; overflow-x: hidden;
  background: var(--paper); color: var(--ink);
  font: 400 18px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: #142A66; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--sun); color: var(--ink); }
p, ul, ol, figure, dl, dd, blockquote { margin: 0; }
ul, ol { padding: 0; }
address { font-style: normal; }
button, input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 700; line-height: 1.04; letter-spacing: -0.03em; text-wrap: balance; }
h1 { font-size: clamp(42px, 5.4vw, 76px); }
h2 { font-size: clamp(34px, 4vw, 56px); }
h3 { font-size: clamp(21px, 1.8vw, 26px); line-height: 1.18; letter-spacing: -0.015em; }
h4 { font-size: 18px; line-height: 1.3; letter-spacing: -0.005em; }

.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 999px; background: var(--orange); color: #fff; font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 12px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { position: relative; padding-block: var(--section); }
.section--sand { background: var(--sand); }
.section--tight { padding-block: clamp(56px, 6vw, 88px); }
.section--flush-top { padding-top: 0; }

.lead { font-size: clamp(18px, 1.4vw, 20px); line-height: 1.6; color: var(--ink-2); max-width: 58ch; }
.muted { color: var(--ink-2); }
.kicker { display: block; margin-bottom: 16px; font-weight: 700; font-size: 16px; color: var(--orange); }
.section-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 20px 64px; align-items: end; margin-bottom: clamp(36px, 4vw, 56px); }
.section-head .lead { justify-self: end; }
.section-head--stack { grid-template-columns: minmax(0, 1fr); max-width: 820px; }
.section-head--stack .lead { justify-self: start; }
.side-head { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px 48px; }
.side-head > .kicker { margin: 6px 0 0; }

/* hand-drawn underline */
.scribble { position: relative; white-space: nowrap; }
.scribble svg { position: absolute; left: 0; bottom: -0.22em; width: 100%; height: 0.32em; overflow: visible; }
.scribble path { stroke: var(--accent); stroke-width: 3.5; stroke-linecap: round; fill: none; }
.js .scribble path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 0.9s var(--ease) 0.2s; }
.js .scribble.is-in path { stroke-dashoffset: 0; }

/* ---------- buttons, links, chips ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 28px; border-radius: 999px; border: 2px solid transparent;
  font: 700 16px/1 var(--font-body); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--marker { background: var(--orange); color: #fff; font: 400 18px/1 var(--font-hand); letter-spacing: 0.04em; }
.btn--marker:hover { background: var(--orange-hover); color: #fff; transform: rotate(-1deg); }
.btn--outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--outline:hover { background: var(--ink); color: var(--paper); }
.btn--wa { background: var(--wa); color: var(--wa-ink); }
.btn--wa:hover { background: #3BE07C; color: var(--wa-ink); }
.btn--sm { min-height: 46px; padding: 0 22px; font-size: 16px; }
.btn--marker.btn--sm { font-size: 17px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

.link-more { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 700; color: var(--ink); text-decoration: none; }
.link-more svg { transition: transform 0.25s var(--ease); }
.link-more:hover { color: var(--orange); }
.link-more:hover svg { transform: translateX(4px); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.chip { display: inline-flex; align-items: center; min-height: 30px; padding: 0 12px; border-radius: 999px; font-size: 14px; font-weight: 700; background: var(--sand-2); color: var(--ink-2); }
.chip--blue { background: var(--blue-soft); color: var(--blue); }
.chip--sun { background: var(--sun-soft); color: var(--sun-ink); }
.chip--line { background: transparent; border: 1px solid var(--line-2); color: var(--ink); }
.chip--draft { background: transparent; border: 1px dashed var(--orange); color: var(--orange); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 60; border-bottom: 1px solid transparent; transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease); }
.site-header.is-scrolled { background: rgba(247, 245, 240, 0.9); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; gap: 20px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 12px; flex: none; color: var(--ink); text-decoration: none; font: 700 27px/1 var(--font-display); letter-spacing: -0.02em; }
.brand:hover { color: var(--ink); }

/* logo: a hexagon "C" (for Codex), an orange core and a yellow spark in the opening */
.brand-mark { flex: none; overflow: visible; }
.bm-c { stroke: var(--ink); stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.bm-core { fill: var(--accent); transform-box: fill-box; transform-origin: center; transition: transform 0.7s var(--ease); }
.bm-dot { fill: var(--sun); stroke: var(--ink); stroke-width: 1.2; transform-box: fill-box; transform-origin: center; animation: bm-spark 3.2s ease-in-out 1.8s infinite; }
.bw-1, .bw-2 { display: inline-block; }
.bw-2 { font-weight: 400; }
.bw-x { display: inline-block; color: var(--accent); transition: transform 0.7s var(--ease); }
.brand:hover .bm-core, .brand:focus-visible .bm-core { transform: rotate(120deg); }
.brand:hover .bw-x, .brand:focus-visible .bw-x { transform: rotate(1turn); }
/* one short intro on page load, header only */
.site-header .bm-c { stroke-dasharray: 1; stroke-dashoffset: 1; animation: bm-draw 1s var(--ease) 0.1s forwards; }
.site-header .bm-core { animation: bm-pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.65s backwards; }
.site-header .bw-1 { animation: bw-in 0.7s var(--ease) 0.25s backwards; }
.site-header .bw-2 { animation: bw-in 0.7s var(--ease) 0.4s backwards; }
@keyframes bm-draw { to { stroke-dashoffset: 0; } }
@keyframes bm-pop { from { transform: scale(0) rotate(-90deg); } to { transform: none; } }
@keyframes bw-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes bm-spark { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.45); } }
.nav-main { margin-left: auto; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-links a, .nav-menu-btn {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: 999px;
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: 16px; background: transparent; border: 0; cursor: pointer;
  transition: background-color 0.2s var(--ease);
}
.nav-links a:hover, .nav-menu-btn:hover, .nav-menu-btn[aria-expanded="true"] { background: var(--sand); color: var(--ink); }
.nav-links a[aria-current="page"], .nav-menu-btn[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--accent); border-radius: 0; }
.nav-menu-btn svg { transition: transform 0.25s var(--ease); }
.nav-menu-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.has-menu { position: relative; }
.mega {
  position: absolute; left: 50%; top: calc(100% + 12px); z-index: 70; width: min(760px, 92vw);
  padding: 14px; border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(22, 24, 29, 0.14); transform: translateX(-35%);
}
.mega[hidden] { display: none; }
.mega-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; list-style: none; }
.mega-grid a { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 14px; align-items: center; padding: 10px; border-radius: 14px; color: var(--ink); text-decoration: none; }
.mega-grid a:hover { background: var(--paper); }
.mega-grid img { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; }
.mega-grid strong { display: block; font-weight: 700; font-size: 15.5px; line-height: 1.3; }
.mega-grid small { display: block; margin-top: 2px; font-size: 13.5px; line-height: 1.35; color: var(--ink-2); }
.nav-cta-mobile { display: none; }
.nav-toggle { display: none; position: relative; width: 46px; height: 46px; margin-left: auto; border: 2px solid var(--ink); border-radius: 50%; background: transparent; cursor: pointer; }
.nav-toggle span { position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform 0.3s var(--ease), top 0.3s var(--ease); }
.nav-toggle span:first-child { top: 16px; }
.nav-toggle span:last-child { top: 25px; }
.nav-open .nav-toggle span:first-child { top: 20px; transform: rotate(45deg); }
.nav-open .nav-toggle span:last-child { top: 20px; transform: rotate(-45deg); }

@media (max-width: 1080px) {
  .nav-toggle { display: block; }
  .nav-cta { display: none; }
  .nav-main {
    position: fixed; inset: var(--header-h) 0 0 0; z-index: 59; overflow-y: auto;
    display: flex; flex-direction: column; gap: 24px; padding: 20px var(--gutter) 40px;
    background: var(--paper); border-top: 1px solid var(--line);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0s linear 0.25s;
  }
  .nav-open .nav-main { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .nav-open .site-header { background: var(--paper); -webkit-backdrop-filter: none; backdrop-filter: none; }
  body.nav-open { overflow: hidden; }
  .nav-links { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-links > li { border-bottom: 1px solid var(--line); }
  .nav-links a, .nav-menu-btn { width: 100%; justify-content: space-between; min-height: 60px; padding: 0; border-radius: 0; font: 700 26px/1.2 var(--font-display); letter-spacing: -0.02em; }
  .nav-links a:hover, .nav-menu-btn:hover, .nav-menu-btn[aria-expanded="true"] { background: transparent; }
  .nav-links a[aria-current="page"] { box-shadow: none; color: var(--orange); }
  .mega { position: static; width: auto; transform: none; padding: 0 0 12px; border: 0; box-shadow: none; background: transparent; }
  .mega-grid { grid-template-columns: minmax(0, 1fr); }
  .mega-grid a { padding: 8px 0; }
  .nav-cta-mobile { display: inline-flex; align-self: flex-start; }
}

/* ---------- home hero carousel ---------- */
.hero { position: relative; padding-block: clamp(14px, 2.2vh, 32px) clamp(14px, 2vh, 28px); }
.slides { display: grid; }
.slide {
  grid-area: 1 / 1; display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: clamp(28px, 4vw, 56px); align-items: center;
  min-height: 0;
  opacity: 0; visibility: hidden; transition: opacity 0.7s var(--ease), visibility 0s linear 0.7s;
}
.slide.is-active { opacity: 1; visibility: visible; transition-delay: 0s; }
.slide-tag { display: inline-flex; align-items: center; gap: 10px; margin-bottom: clamp(10px, 2vh, 22px); font-weight: 700; font-size: 15px; color: var(--ink-2); }
.slide-tag::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 5px rgba(255, 199, 44, 0.3); }
.slide-title { font-size: clamp(36px, min(5vw, 7.4svh), 74px); line-height: 1.0; letter-spacing: -0.035em; }
.slide .lead { margin-top: clamp(12px, 2vh, 22px); max-width: 46ch; }
.slide .btn-row { margin-top: clamp(16px, 3vh, 32px); }
.slide-copy > * { transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.slide:not(.is-active) .slide-copy > * { opacity: 0; transform: translateY(14px); }
.slide.is-active .slide-copy > :nth-child(2) { transition-delay: 0.06s; }
.slide.is-active .slide-copy > :nth-child(3) { transition-delay: 0.12s; }
.slide.is-active .slide-copy > :nth-child(4) { transition-delay: 0.18s; }
/* the hero (header + slide + tab bar) fits one screen at 100% zoom on laptops */
.slide-media { position: relative; height: clamp(300px, calc(100svh - var(--header-h) - 190px), 560px); }
.slide-frame { position: absolute; inset: 0; border-radius: var(--r-xl); overflow: hidden; background: var(--sand); transform: scale(0.97); transition: transform 1.1s var(--ease); }
.slide.is-active .slide-frame { transform: none; }
.slide-frame img { width: 100%; height: 100%; object-fit: cover; }
.blob { position: absolute; border-radius: 50%; background: var(--sun); pointer-events: none; }
.blob--a { width: 130px; height: 130px; left: -34px; top: -22px; opacity: 0.6; }
.blob--b { width: 190px; height: 190px; right: 30px; bottom: -44px; opacity: 0.45; }
.blob--c { width: 70px; height: 70px; right: -18px; top: 18%; opacity: 0.8; }
.float-chip {
  position: absolute; left: -28px; bottom: 36px; z-index: 2; max-width: 300px;
  display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 18px;
  background: var(--white); box-shadow: 0 18px 40px rgba(22, 24, 29, 0.14); font-weight: 700; font-size: 15px; line-height: 1.35;
  transition: opacity 0.6s var(--ease) 0.35s, transform 0.6s var(--ease) 0.35s;
}
.slide:not(.is-active) .float-chip { opacity: 0; transform: translateY(12px); }
.float-chip .tick { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--accent); color: #fff; }

.carousel-bar { display: flex; align-items: center; gap: 20px; margin-top: clamp(14px, 2vh, 28px); }
.slide-tabs { flex: 1; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; list-style: none; }
.slide-tab { width: 100%; padding: 0; border: 0; background: transparent; text-align: left; cursor: pointer; color: var(--ink-2); font-weight: 700; font-size: 15px; }
.slide-tab .bar { display: block; position: relative; height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; margin-bottom: 12px; }
.slide-tab .bar i { position: absolute; inset: 0; transform-origin: left; transform: scaleX(0); background: var(--orange); }
.slide-tab[aria-current="true"] { color: var(--ink); }
.slide-tab[aria-current="true"] .bar i { transform: scaleX(1); }
.is-playing .slide-tab[aria-current="true"] .bar i { animation: slide-progress var(--slide-ms, 6500ms) linear forwards; }
.is-paused .slide-tab[aria-current="true"] .bar i { animation-play-state: paused; }
@keyframes slide-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.carousel-ctrl { display: flex; gap: 8px; }
.round-btn { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer; transition: background-color 0.2s var(--ease), color 0.2s var(--ease); }
.round-btn:hover { background: var(--ink); color: var(--paper); }
.round-btn--solid { background: var(--ink); color: var(--paper); }
.round-btn--solid:hover { background: var(--orange); border-color: var(--orange); color: #fff; }
.round-btn .i-play { display: none; }
.is-paused .round-btn .i-play { display: block; }
.is-paused .round-btn .i-pause { display: none; }

/* ---------- proof tiles ---------- */
.proof-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tile { padding: 26px 28px; border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--line); }
.tile--sun { background: var(--sun); border-color: var(--sun); }
.tile strong { display: block; font: 700 clamp(28px, 2.6vw, 36px)/1.05 var(--font-display); letter-spacing: -0.025em; }
.tile span { display: block; margin-top: 8px; color: var(--ink-2); font-size: 16.5px; }
.tile--sun span { color: var(--ink); }

/* ---------- statement ---------- */
.statement { font: 600 clamp(28px, 3.2vw, 46px)/1.2 var(--font-display); letter-spacing: -0.02em; max-width: 30ch; }

/* ---------- service blocks (expanding) ---------- */
.svc-row { display: flex; gap: 10px; height: 560px; list-style: none; }
.svc {
  position: relative; flex: 0 0 78px; min-width: 0; border-radius: var(--r-lg); overflow: hidden; color: #fff; isolation: isolate;
  transition: flex 0.6s var(--ease);
}
.svc.is-open { flex: 1 1 0px; } /* 0px (not auto) so the basis interpolates smoothly from 78px */
.svc-art { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform 1.2s var(--ease); }
.svc.is-open .svc-art { transform: scale(1); }
.svc::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(12, 14, 20, 0.06) 0%, rgba(12, 14, 20, 0.62) 100%); }
.svc-toggle {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  padding: 24px 0; border: 0; background: transparent; color: #fff; cursor: pointer; text-align: center;
}
.svc-num { font: 400 26px/1 var(--font-display); opacity: 0.9; }
.svc-name { writing-mode: vertical-rl; transform: rotate(180deg); font-weight: 700; font-size: 18px; white-space: nowrap; }
.svc.is-open .svc-toggle { inset: 0 0 auto auto; width: auto; height: auto; padding: 32px 32px 0 0; pointer-events: none; }
.svc.is-open .svc-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.svc.is-open .svc-num { font-size: 32px; }
.svc-body {
  position: absolute; inset: 0; padding: 34px; display: flex; flex-direction: column; justify-content: space-between;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity 0.35s var(--ease), transform 0.45s var(--ease), visibility 0s linear 0.35s;
}
.svc.is-open .svc-body { opacity: 1; visibility: visible; transform: none; transition-delay: 0.25s, 0.25s, 0s; }
.svc-body h3 { max-width: 13ch; font-size: clamp(28px, 2.6vw, 38px); line-height: 1.02; letter-spacing: -0.025em; padding-right: 60px; }
.svc-body p { max-width: 38ch; font-size: 18px; line-height: 1.5; }
.svc-body ul { margin-top: 14px; display: grid; gap: 6px; list-style: none; font-size: 16.5px; }
.svc-body li { display: flex; gap: 10px; align-items: baseline; }
.svc-body li::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--sun); transform: translateY(-2px); }
.svc-body .link-more { margin-top: 18px; color: #fff; }
.svc-body .link-more:hover { color: var(--sun); }

@media (max-width: 980px) {
  .svc-row { flex-direction: column; height: auto; }
  .svc { flex: 0 0 auto; min-height: 76px; transition: min-height 0.5s var(--ease); }
  .svc.is-open { flex: 0 0 auto; min-height: 460px; }
  .svc-toggle { flex-direction: row; padding: 0 22px; inset: 0 0 auto 0; height: 76px; justify-content: flex-start; gap: 16px; }
  .svc-name { writing-mode: horizontal-tb; transform: none; font-size: 19px; white-space: normal; text-align: left; }
  .svc.is-open .svc-toggle { padding: 24px 24px 0 0; height: auto; inset: 0 0 auto auto; }
  .svc-body { padding: 26px 24px; }
  /* on phones the open card grows with its content instead of clipping it */
  .svc.is-open { min-height: 0; }
  .svc.is-open .svc-body { position: relative; inset: auto; min-height: 420px; gap: 28px; }
}

/* ---------- parallax photo band ---------- */
.band { position: relative; height: clamp(380px, 38vw, 520px); border-radius: var(--r-xl); overflow: hidden; background: var(--sand); }
.band > img { position: absolute; left: 0; top: -12%; width: 100%; height: 124%; object-fit: cover; will-change: transform; }
.band-card { position: absolute; left: clamp(16px, 3vw, 40px); bottom: clamp(16px, 3vw, 40px); max-width: 560px; padding: clamp(22px, 2.6vw, 34px); border-radius: var(--r-lg); background: var(--white); }
.band-card h2 { font-size: clamp(30px, 3.4vw, 46px); }
.band-card p { margin-top: 12px; color: var(--ink-2); }

/* ---------- steps (hand-drawn path) ---------- */
.steps-wrap { position: relative; }
.steps-path { position: absolute; left: 0; right: 0; top: 2px; width: 100%; height: 64px; pointer-events: none; }
.steps-path .dots { stroke: var(--line-2); stroke-width: 3; stroke-dasharray: 2 10; stroke-linecap: round; fill: none; }
.steps-path .ink { stroke: var(--accent); stroke-width: 3; stroke-linecap: round; fill: none; stroke-dasharray: 1; stroke-dashoffset: var(--draw, 1); }
.steps { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; list-style: none; }
.steps--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.steps--6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.steps--stack, .steps.steps--stack { grid-template-columns: minmax(0, 1fr); }
.step-n { display: grid; place-items: center; width: 62px; height: 62px; border-radius: 50%; background: var(--white); border: 2px solid var(--ink); font: 400 22px/1 var(--font-hand); transition: background-color 0.4s var(--ease); }
.step.is-on .step-n { background: var(--sun); }
.step h3 { margin-top: 20px; font-size: 23px; }
.step p { margin-top: 6px; color: var(--ink-2); font-size: 16.5px; line-height: 1.55; }

/* ---------- map ---------- */
.where { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 4vw, 64px); align-items: center; }
.map { position: relative; aspect-ratio: 7 / 4; border-radius: var(--r-xl); background: var(--white); border: 1px solid var(--line); overflow: hidden; }
.map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.pin { position: absolute; display: flex; align-items: center; gap: 8px; transform: translate(-8px, -8px); }
.pin i { position: relative; width: 16px; height: 16px; border-radius: 50%; background: var(--orange); }
.pin i::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--orange); opacity: 0; animation: pin-pulse 2.4s var(--ease) infinite; }
.pin--home i { background: var(--sun); }
.pin--home i::after { border-color: var(--sun); }
.pin span { padding: 4px 10px; border-radius: 8px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 700; white-space: nowrap; }
@keyframes pin-pulse { 0% { transform: scale(0.6); opacity: 0.9; } 100% { transform: scale(1.8); opacity: 0; } }

/* ---------- cards & grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.card { padding: clamp(22px, 2.4vw, 30px); border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--line); }
.card h3 { font-size: 22px; }
.card p { margin-top: 8px; color: var(--ink-2); font-size: 16.5px; }
.card ul { margin-top: 14px; display: grid; gap: 7px; list-style: none; font-size: 16px; }
.card li { display: flex; gap: 10px; align-items: baseline; }
.card li::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); transform: translateY(-2px); }
.card--sun { background: var(--sun); border-color: var(--sun); }
.card--sun p { color: var(--ink); }
.card-icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 18px; border-radius: 14px; background: var(--sun-soft); color: var(--orange); }

.project { display: flex; flex-direction: column; border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--line); overflow: hidden; transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease); }
.project:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(22, 24, 29, 0.1); }
.project[hidden] { display: none; }
.project-thumb { position: relative; height: 180px; overflow: hidden; background: var(--sand); }
.project-thumb > img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.project:hover .project-thumb > img { transform: scale(1.06); }
.project-thumb .note { position: absolute; left: 16px; right: 16px; bottom: 14px; padding: 9px 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.94); font-size: 14px; font-weight: 600; color: var(--ink); }
.project-body { display: flex; flex-direction: column; gap: 12px; flex: 1; padding: 22px 24px 24px; }
.project h3 { font-size: 22px; }
.project dl { display: grid; gap: 8px; font-size: 15.5px; line-height: 1.5; }
.project dt { display: inline; font-weight: 700; color: var(--orange); }
.project dd { display: inline; color: var(--ink-2); }
.project .outcome dd { color: var(--ink); font-weight: 600; }
.project-tech { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.draft-flag { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; border: 1px dashed var(--orange); color: var(--orange); font-size: 14px; font-weight: 700; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 2px solid var(--ink); background: transparent; color: var(--ink); font-weight: 700; font-size: 15px; cursor: pointer; transition: background-color 0.2s var(--ease), color 0.2s var(--ease); }
.filter:hover { background: var(--sand); }
.filter[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.filters--soft .filter { min-height: 40px; border: 1px solid var(--line-2); background: var(--white); font-weight: 600; font-size: 14.5px; }
.filters--soft .filter[aria-pressed="true"] { background: var(--sun); border-color: var(--sun); color: var(--ink); }
.filter-status { margin: 18px 0 22px; color: var(--ink-2); font-weight: 600; }

/* dashboard illustrations */
.dash { margin: 0; padding: 18px; border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--line); }
.dash-screen { border-radius: 14px; background: var(--paper); padding: 14px; height: 200px; }
.dash figcaption { margin-top: 14px; }
.dash figcaption strong { display: block; font: 700 20px/1.2 var(--font-display); letter-spacing: -0.01em; }
.dash figcaption span { color: var(--ink-2); font-size: 15.5px; }

/* ---------- testimonials ---------- */
.quote-wrap { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px 48px; }
.quote blockquote { margin-top: 18px; font: 600 clamp(26px, 3vw, 40px)/1.25 var(--font-display); letter-spacing: -0.015em; }
.quote figcaption { margin-top: 22px; font-weight: 600; color: var(--ink-2); }
.quote[hidden] { display: none; }
.quote-ctrl { display: flex; gap: 10px; margin-top: 24px; }

/* ---------- FAQ ---------- */
.faq { border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; padding: 18px 0; cursor: pointer; list-style: none; font: 600 clamp(19px, 1.7vw, 23px)/1.3 var(--font-display); letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 16px; height: 16px; background: linear-gradient(var(--orange), var(--orange)) center / 16px 2.5px no-repeat, linear-gradient(var(--orange), var(--orange)) center / 2.5px 16px no-repeat; transition: transform 0.3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 0 22px; max-width: 68ch; color: var(--ink-2); }
.faq .answer p + p { margin-top: 10px; }

/* ---------- CTA sun block ---------- */
.cta-sun { position: relative; margin-left: clamp(16px, 8vw, 120px); padding: clamp(64px, 7vw, 96px) clamp(24px, 6vw, 96px); background: var(--sun); border-top-left-radius: clamp(60px, 9vw, 140px); overflow: hidden; }
.cta-sun h2 { max-width: 17ch; font-size: clamp(36px, 4.6vw, 64px); }
.cta-sun .lead { margin-top: 18px; color: var(--ink); }
.cta-sun .btn-row { margin-top: 32px; }
.cta-sun .btn--outline:hover { background: var(--ink); color: var(--sun); }
.cta-lines { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 28px; list-style: none; font-weight: 700; }
.cta-lines a { color: var(--ink); text-decoration: none; }
.cta-lines a:hover { text-decoration: underline; }
.cta-doodle { position: absolute; right: clamp(16px, 5vw, 80px); top: 50%; width: clamp(120px, 16vw, 220px); transform: translateY(-50%) rotate(-8deg); pointer-events: none; }

/* ---------- footer ---------- */
.site-footer { background: var(--sand); padding-top: clamp(56px, 6vw, 80px); font-size: 16px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 32px 48px; }
.footer-tag { margin-top: 12px; font-weight: 700; }
.footer-brand p.muted { margin-top: 6px; max-width: 32ch; }
.footer-h { margin-bottom: 12px; font: 700 16px/1.4 var(--font-body); letter-spacing: 0; }
.site-footer ul { display: grid; gap: 2px; list-style: none; }
.site-footer nav a, .site-footer address a { display: inline-block; padding: 5px 0; color: var(--ink-2); text-decoration: none; }
.site-footer nav a:hover, .site-footer address a:hover { color: var(--orange); }
.site-footer address { display: grid; margin-top: 12px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 48px; padding-block: 22px 28px; border-top: 1px solid var(--line-2); font-size: 14px; color: var(--ink-2); }
.footer-bottom a { color: var(--ink-2); }
.wa-float { position: fixed; right: max(18px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); z-index: 55; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: var(--wa); color: var(--wa-ink); box-shadow: 0 12px 28px rgba(22, 24, 29, 0.22); transition: transform 0.25s var(--ease); }
.wa-float:hover { transform: translateY(-2px) scale(1.05); color: var(--wa-ink); }

/* ---------- inner page hero ---------- */
.page-hero { position: relative; padding-block: clamp(40px, 5vw, 72px) clamp(56px, 6vw, 96px); }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.page-hero-grid--solo { grid-template-columns: minmax(0, 880px); }
.page-hero h1 { font-size: clamp(40px, 5vw, 68px); }
.page-hero .lead { margin-top: 22px; }
.page-hero .btn-row { margin-top: 30px; }
.page-hero .chips { margin-top: 26px; }
.page-media { position: relative; height: clamp(320px, 34vw, 480px); }
.page-media .slide-frame { transform: none; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; list-style: none; font-size: 15px; color: var(--ink-2); }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--line-2); }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--orange); }

/* problem → answer pairs */
.pairs { display: grid; gap: 0; border-top: 2px solid var(--ink); }
.pair { display: grid; grid-template-columns: minmax(0, 1fr) 48px minmax(0, 1fr); gap: 20px; align-items: center; padding: 24px 0; border-bottom: 1px solid var(--line); }
.pair .q { font: 600 clamp(19px, 1.6vw, 22px)/1.35 var(--font-display); }
.pair .a { color: var(--ink-2); }
.pair .arrow { color: var(--orange); }

/* grouped build lists (SAP page) */
.build-group { margin: clamp(40px, 5vw, 64px) 0 14px; font-size: clamp(22px, 2vw, 28px); }
.section-head + .build-group { margin-top: 0; }

/* layered capability list */
.layers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; border-top: 2px solid var(--ink); }
.layer { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 18px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.layer .n { font: 400 20px/1 var(--font-hand); color: var(--orange); padding-top: 6px; }
.layer h3 { font-size: 22px; }
.layer p { margin-top: 6px; color: var(--ink-2); font-size: 16.5px; }
.layer .chips { margin-top: 12px; }

/* tabs (AI use cases) */
.tabs { display: grid; grid-template-columns: minmax(200px, 0.3fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); }
.tablist { display: flex; flex-direction: column; gap: 6px; align-self: start; position: sticky; top: calc(var(--header-h) + 24px); }
.tab { min-height: 56px; padding: 0 20px; border-radius: 999px; border: 2px solid transparent; background: transparent; color: var(--ink-2); text-align: left; font-weight: 700; font-size: 17px; cursor: pointer; transition: background-color 0.2s var(--ease), color 0.2s var(--ease); }
.tab:hover { background: var(--sand); color: var(--ink); }
.tab[aria-selected="true"] { background: var(--ink); color: var(--paper); }
.tabpanel { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-content: start; }
.tabpanel[hidden] { display: none; }
.tabpanel.is-entering { animation: panel-in 0.45s var(--ease); }
@keyframes panel-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* services page */
.svc-page { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.svc-index { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 4px; list-style: none; }
.svc-index a { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; align-items: center; padding: 8px 10px; border-radius: 14px; color: var(--ink-2); text-decoration: none; font-weight: 600; }
.svc-index a:hover, .svc-index a[aria-current="true"] { background: var(--white); color: var(--ink); }
.svc-index img { width: 36px; height: 36px; border-radius: 10px; object-fit: cover; }
.svc-section { scroll-margin-top: calc(var(--header-h) + 24px); }
.svc-section + .svc-section { margin-top: clamp(72px, 8vw, 112px); }
.svc-strip { height: 120px; border-radius: var(--r-lg); overflow: hidden; margin-bottom: 28px; }
.svc-strip img { width: 100%; height: 100%; object-fit: cover; }
.svc-section h2 { font-size: clamp(32px, 3.4vw, 46px); }
.svc-section .lead { margin-top: 14px; }
.svc-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 28px; }

/* about */
.values { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; border-top: 2px solid var(--ink); }
.value { padding: 26px 0; border-bottom: 1px solid var(--line); }
.value h3 { font-size: 23px; }
.value p { margin-top: 8px; color: var(--ink-2); }

/* forms */
.contact-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 40px clamp(40px, 6vw, 88px); align-items: start; }
.form { display: grid; gap: 18px; padding: clamp(24px, 3vw, 36px); border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--line); }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 15px; font-weight: 700; }
.field .opt { font-weight: 500; color: var(--ink-2); }
.field input, .field select, .field textarea { width: 100%; min-height: 52px; padding: 12px 16px; border-radius: 14px; border: 1.5px solid var(--line-2); background: var(--paper); color: var(--ink); font-size: 16px; transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease); }
.field textarea { min-height: 128px; resize: vertical; line-height: 1.5; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 44px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(255, 199, 44, 0.45); }
.field [aria-invalid="true"] { border-color: #C0341D; }
.field-error { font-size: 14px; font-weight: 600; color: #B42318; }
.field-error:empty { display: none; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.form-note { font-size: 14.5px; color: var(--ink-2); }
.form-status { font-weight: 600; }
.form-status:empty { display: none; }
.channel-list { display: grid; gap: 12px; list-style: none; margin-top: 32px; }
.channel { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 16px; align-items: center; padding: 16px 18px; border-radius: var(--r-md); background: var(--white); border: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: border-color 0.2s var(--ease), transform 0.2s var(--ease); }
.channel:hover { border-color: var(--ink); color: var(--ink); transform: translateY(-2px); }
.channel .card-icon { margin: 0; }
.channel small { display: block; font-size: 14px; color: var(--ink-2); }
.channel strong { display: block; font-weight: 700; word-break: break-word; }

/* prose */
.prose { max-width: 760px; }
.prose h2 { margin-top: 48px; font-size: clamp(24px, 2.4vw, 30px); }
.prose p, .prose ul { margin-top: 14px; color: var(--ink-2); }
.prose ul { padding-left: 22px; display: grid; gap: 6px; }

/* reveal (used sparingly) & parallax */
.js [data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
[data-parallax] { will-change: transform; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .slide { grid-template-columns: minmax(0, 1fr); align-content: start; gap: 20px; }
  .slide-media { height: clamp(220px, 34svh, 380px); }
}
@media (max-width: 1080px) {
  .slide-tabs { grid-template-columns: repeat(5, minmax(120px, 1fr)); overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
  .section-head, .where, .page-hero-grid, .contact-grid, .tabs, .svc-page { grid-template-columns: minmax(0, 1fr); }
  .section-head .lead { justify-self: start; }
  .side-head, .quote-wrap { grid-template-columns: minmax(0, 1fr); }
  .grid-3, .proof-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps, .steps--5, .steps--6 { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; }
  .steps-path { display: none; }
  .tablist { position: static; flex-direction: row; overflow-x: auto; scrollbar-width: none; }
  .tab { flex: none; }
  .svc-index { position: static; grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; padding-bottom: 6px; }
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
  .cta-doodle { display: none; }
}
@media (max-width: 760px) {
  .brand { font-size: 23px; gap: 10px; }
  .site-header .brand-mark { width: 34px; height: 34px; }
  body { font-size: 17px; }
  .grid-3, .grid-2, .grid-4, .proof-tiles, .layers, .values, .svc-cols, .tabpanel, .form-row { grid-template-columns: minmax(0, 1fr); }
  .steps, .steps--5, .steps--6 { grid-template-columns: minmax(0, 1fr); }
  .pair { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .pair .arrow { transform: rotate(90deg); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .carousel-bar { flex-direction: column; align-items: stretch; }
  .carousel-ctrl { justify-content: flex-end; }
  .float-chip { left: 12px; right: 12px; bottom: 12px; max-width: none; }
  .blob--a { left: -10px; }
  .blob--c { right: 6px; }
  .btn { white-space: normal; text-align: center; }
  .slide .btn-row .btn { flex: 1 1 auto; padding: 0 18px; }
  .cta-sun .btn-row .btn { flex: 1 1 100%; }
  .cta-sun { margin-left: 0; border-top-left-radius: 56px; }
  .map { aspect-ratio: 4 / 3; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js .scribble path { stroke-dashoffset: 0; }
  .site-header .bm-c { stroke-dashoffset: 0; }
  .bm-dot { animation: none; }
}
