/* ============================================================
   LIFEVERSE — Attention Intelligence Laboratory
   Brand-aligned design system (from Liferoom guidelines)
   ============================================================ */

:root {
  /* palette */
  --sky:    #74C2EE;
  --sun:    #F1CB44;
  --mint:   #7FDADA;
  --signal: #E754FF;
  --mauve:  #8C7A95;

  /* neutrals */
  --ink:    #1A1620;
  --ink-2:  #3A3540;
  --paper:  #FBFAF7;
  --paper-2:#F2EFE8;
  --rule:   #E4E0D7;

  /* type */
  --sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* layout */
  --gutter: clamp(20px, 5vw, 96px);
  --maxw: 1320px;

  /* motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; }

/* ---------- minimal scrollbar ---------- */
html {
  scrollbar-width: thin;                       /* Firefox */
  scrollbar-color: var(--mauve) transparent;
}
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--mauve);
  border-radius: 100px;
  border: 3px solid var(--paper);              /* inset look against page */
  background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover { background: var(--ink); background-clip: padding-box; }
::-webkit-scrollbar-corner { background: transparent; }
/* on dark sections (overlay menu, dark heroes) the inset border should read dark */
#overlay::-webkit-scrollbar-thumb { border-color: var(--ink); }

html {
  scroll-behavior: smooth;
}

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

body.menu-open { overflow: hidden; }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

::selection { background: var(--signal); color: #fff; }

/* ---------- shared type ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--mauve);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 7px; height: 7px; border-radius: 50%;
  background: currentColor;
  flex: none;
}
.eyebrow.sky::before    { background: var(--sky); }
.eyebrow.sun::before    { background: var(--sun); }
.eyebrow.mint::before   { background: var(--mint); }
.eyebrow.signal::before { background: var(--signal); }

h1, h2, h3 { font-weight: 300; letter-spacing: -0.03em; margin: 0; line-height: 1.0; text-wrap: balance; }

.display {
  font-weight: 200;
  font-size: clamp(48px, 9vw, 150px);
  letter-spacing: -0.045em;
  line-height: 0.92;
}
.h-xl { font-size: clamp(34px, 5.4vw, 84px); line-height: 0.98; }
.h-lg { font-size: clamp(28px, 3.6vw, 54px); }
.h-md { font-size: clamp(22px, 2.4vw, 34px); }

.lead {
  font-size: clamp(19px, 1.7vw, 25px);
  line-height: 1.5;
  color: var(--ink-2);
  font-weight: 400;
  text-wrap: pretty;
}
.muted { color: var(--mauve); }

/* ---------- layout helpers ---------- */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--gutter);
}
section { position: relative; }
.section-pad { padding-block: clamp(80px, 12vw, 180px); }

.rule { height: 1px; background: var(--rule); border: 0; margin: 0; }

/* ============================================================
   PAGE LOADER / TRANSITION
   ============================================================ */
#loader {
  position: fixed; inset: 0; z-index: 200;
  background: var(--ink);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.8s var(--ease);
}
#loader.done { transform: translateY(-100%); }
#loader .load-word {
  font-family: var(--sans); font-weight: 300;
  font-size: clamp(30px, 6vw, 80px);
  letter-spacing: 0.16em;
  color: var(--paper);
  display: flex; gap: 0.02em;
}
#loader .load-word span {
  opacity: 0; transform: translateY(18px);
  animation: loadIn 0.6s var(--ease) forwards;
}
@keyframes loadIn { to { opacity: 1; transform: none; } }

/* ============================================================
   CUSTOM CURSOR
   ============================================================ */
#cursor {
  position: fixed; top: 0; left: 0; z-index: 300;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--ink);
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: width 0.25s var(--ease), height 0.25s var(--ease),
              background 0.25s var(--ease), opacity 0.25s var(--ease);
  mix-blend-mode: difference;
  opacity: 0;
}
#cursor.hot {
  width: 52px; height: 52px;
  background: var(--mint);
}
@media (hover: none), (pointer: coarse) { #cursor { display: none; } }

/* ============================================================
   HEADER
   ============================================================ */
header.site {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: clamp(18px, 2.4vw, 30px) var(--gutter);
  mix-blend-mode: normal;
  transition: transform 0.4s var(--ease), background 0.4s var(--ease);
}
header.site.hidden { transform: translateY(-110%); }
/* scrolled state — translucent backdrop so logo + menu stay readable over any content */
header.site.scrolled {
  background: rgba(251, 250, 247, 0.82);
  -webkit-backdrop-filter: saturate(1.1) blur(12px);
  backdrop-filter: saturate(1.1) blur(12px);
  border-bottom: 1px solid var(--rule);
  padding-block: clamp(14px, 1.8vw, 22px);
}
header.site.scrolled .brand,
header.site.scrolled .menu-toggle { color: var(--ink); }
header.site.scrolled .menu-toggle .bars i { background: var(--ink); }
/* menu open: overlay covers everything, so drop the backdrop */
body.menu-open header.site {
  background: transparent;
  -webkit-backdrop-filter: none; backdrop-filter: none;
  border-bottom-color: transparent;
}
/* scroll progress bar */
#scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 120;
  transform: scaleX(0); transform-origin: left center;
  background: linear-gradient(90deg, var(--sky), var(--mint), var(--sun), var(--signal));
  will-change: transform;
  pointer-events: none;
}
/* light theme — when header sits over a dark hero or the open menu */
header.site.light .brand,
header.site.light .menu-toggle { color: var(--paper); }
header.site.light .menu-toggle .bars i { background: var(--paper); }
.brand {
  font-weight: 300; font-size: 21px; letter-spacing: 0.18em;
  text-transform: lowercase;
}
.brand b { font-weight: 600; }
.menu-toggle {
  font-family: var(--mono);
  font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase;
  background: none; border: 0; color: var(--ink); cursor: pointer;
  display: inline-flex; align-items: center; gap: 12px;
  padding: 8px 0;
}
.menu-toggle .bars { display: inline-flex; flex-direction: column; gap: 4px; }
.menu-toggle .bars i {
  width: 22px; height: 1.5px; background: var(--ink); display: block;
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
}
body.menu-open .menu-toggle .bars i:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
body.menu-open .menu-toggle .bars i:nth-child(2) { opacity: 0; }
body.menu-open .menu-toggle .bars i:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }
body.menu-open .menu-toggle .label-open  { display: none; }
.menu-toggle .label-close { display: none; }
body.menu-open .menu-toggle .label-close { display: inline; }

/* ============================================================
   OVERLAY MENU
   ============================================================ */
#overlay {
  position: fixed; inset: 0; z-index: 90;
  background: var(--ink);
  color: var(--paper);
  clip-path: circle(0% at calc(100% - 60px) 40px);
  transition: clip-path 0.8s var(--ease);
  pointer-events: none;
  display: grid;
  grid-template-columns: 1fr;
  align-content: safe center;
  overflow-y: auto;
  padding: 6vh var(--gutter);
}
body.menu-open #overlay { clip-path: circle(150% at calc(100% - 60px) 40px); pointer-events: auto; }
#overlay .menu-eyebrow { color: rgba(251,250,247,0.5); margin-bottom: 4vh; }
#overlay nav { display: flex; flex-direction: column; }
#overlay nav a {
  font-weight: 200;
  font-size: clamp(26px, 4.8vw, 62px);
  letter-spacing: -0.03em;
  line-height: 1.04;
  padding: clamp(3px, 0.4vw, 7px) 0;
  color: var(--paper);
  width: max-content;
  max-width: 100%;
  position: relative;
  display: inline-flex; align-items: baseline; gap: 18px;
  opacity: 0; transform: translateY(40px);
  transition: color 0.3s var(--ease);
}
#overlay nav a .idx {
  font-family: var(--mono);
  font-size: 13px; letter-spacing: 0.1em;
  color: var(--mauve);
  transform: translateY(-0.7em);
}
body.menu-open #overlay nav a { animation: menuItemIn 0.7s var(--ease) forwards; }
#overlay nav a:nth-child(1) { animation-delay: 0.18s; }
#overlay nav a:nth-child(2) { animation-delay: 0.24s; }
#overlay nav a:nth-child(3) { animation-delay: 0.30s; }
#overlay nav a:nth-child(4) { animation-delay: 0.36s; }
#overlay nav a:nth-child(5) { animation-delay: 0.42s; }
#overlay nav a:nth-child(6) { animation-delay: 0.48s; }
#overlay nav a:nth-child(7) { animation-delay: 0.54s; }
@keyframes menuItemIn { to { opacity: 1; transform: none; } }
@media (hover: hover) {
  #overlay nav a:hover { color: var(--mint); }
  #overlay nav:hover a:not(:hover) { color: rgba(251,250,247,0.4); }
}
#overlay .menu-foot {
  margin-top: 5vh;
  display: flex; flex-wrap: wrap; gap: 28px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em;
  text-transform: uppercase; color: rgba(251,250,247,0.55);
}
#overlay .menu-foot a { transition: color 0.25s; }
#overlay .menu-foot a:hover { color: var(--mint); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-bottom: clamp(48px, 7vw, 96px);
  position: relative;
  overflow: hidden;
}

/* full-bleed cover image hero */
.hero.cover {
  color: var(--paper);
  background-color: #08070a;
  background-image:
    linear-gradient(0deg, rgba(8,7,10,0.92) 0%, rgba(8,7,10,0.45) 26%, rgba(8,7,10,0) 52%),
    linear-gradient(90deg, rgba(8,7,10,0.95) 0%, rgba(8,7,10,0.78) 26%, rgba(8,7,10,0.32) 50%, rgba(8,7,10,0) 72%),
    url("home-cover.png");
  background-repeat: no-repeat;
  background-position: center, center, right center;
  background-size: cover, cover, cover;
}
.hero.cover .focus-mark { display: none; }
.hero.cover .eyebrow { color: rgba(251,250,247,0.8); }
.hero.cover .hero-word { color: var(--paper); text-shadow: 0 2px 50px rgba(8,7,10,0.55); }
.hero.cover .hero-tag { color: rgba(251,250,247,0.88); text-shadow: 0 1px 22px rgba(8,7,10,0.7); }
.hero.cover .hero-tag b { color: #fff; }
.hero.cover .scroll-hint { color: rgba(251,250,247,0.78); }
.hero.cover .scroll-hint .line { background: rgba(251,250,247,0.5); }
@media (max-width: 700px) {
  .hero.cover { background-position: center, center, 72% center; }
}
.hero .wrap { width: 100%; }
.hero-word {
  font-weight: 200;
  font-size: clamp(72px, 19vw, 340px);
  letter-spacing: -0.05em;
  line-height: 0.84;
  margin: 0 0 clamp(28px, 4vw, 56px);
  position: relative;
}
.hero-word .ch { display: inline-block; }
.js .hero-word .ch {
  opacity: 0; transform: translateY(0.4em);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.hero-word.lit .ch { opacity: 1; transform: none; }
.hero-word.lit .ch:nth-child(1){transition-delay:.00s}
.hero-word.lit .ch:nth-child(2){transition-delay:.04s}
.hero-word.lit .ch:nth-child(3){transition-delay:.08s}
.hero-word.lit .ch:nth-child(4){transition-delay:.12s}
.hero-word.lit .ch:nth-child(5){transition-delay:.16s}
.hero-word.lit .ch:nth-child(6){transition-delay:.20s}
.hero-word.lit .ch:nth-child(7){transition-delay:.24s}
.hero-word.lit .ch:nth-child(8){transition-delay:.28s}
.hero-word.lit .ch:nth-child(9){transition-delay:.32s}
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(24px, 4vw, 64px);
  align-items: end;
}
.hero-tag {
  font-size: clamp(18px, 1.7vw, 24px);
  line-height: 1.45;
  font-weight: 400;
  color: var(--ink-2);
  text-wrap: pretty;
  max-width: 30ch;
}
.hero-tag b { color: var(--ink); font-weight: 600; }
.hero-cta { display: flex; justify-content: flex-end; align-items: end; }

.hero .scroll-hint {
  position: absolute; left: var(--gutter); bottom: clamp(20px, 3vw, 36px);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--mauve);
  display: flex; align-items: center; gap: 10px;
}
.hero .scroll-hint .line {
  width: 40px; height: 1px; background: var(--mauve); position: relative; overflow: hidden;
}
.hero .scroll-hint .line::after {
  content:""; position:absolute; inset:0; background: var(--signal);
  transform: translateX(-100%);
  animation: scrollLine 2.4s var(--ease-soft) infinite;
}
@keyframes scrollLine { 0%{transform:translateX(-100%)} 50%{transform:translateX(0)} 100%{transform:translateX(100%)} }

/* animated focus mark in hero bg */
.focus-mark {
  position: absolute;
  top: 14vh; right: clamp(-40px, 2vw, 80px);
  width: clamp(220px, 32vw, 520px); height: clamp(220px, 32vw, 520px);
  pointer-events: none; z-index: -1;
}
.focus-mark .ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid var(--rule);
}
.focus-mark .ring:nth-child(1) { animation: spin 28s linear infinite; }
.focus-mark .ring:nth-child(2) { inset: 14%; border-color: var(--sky); opacity:0.5; animation: spin 22s linear infinite reverse; }
.focus-mark .ring:nth-child(3) { inset: 30%; border-color: var(--signal); opacity:0.4; animation: spin 16s linear infinite; }
.focus-mark .dot {
  position: absolute; top: 50%; left: 50%;
  width: 12px; height: 12px; border-radius: 50%; background: var(--sun);
  transform: translate(-50%,-50%);
  box-shadow: 0 0 0 8px rgba(241,203,68,0.18);
  animation: pulse 3.2s var(--ease-soft) infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%,100%{ box-shadow:0 0 0 8px rgba(241,203,68,0.18);} 50%{ box-shadow:0 0 0 18px rgba(241,203,68,0); } }

/* ============================================================
   BUTTONS / LINKS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 16px 28px;
  border-radius: 100px;
  border: 1px solid var(--ink);
  background: transparent; color: var(--ink); cursor: pointer;
  position: relative; overflow: hidden;
  transition: color 0.45s var(--ease), border-color 0.45s var(--ease);
}
.btn .txt { position: relative; z-index: 1; }
.btn .arrow { position: relative; z-index: 1; transition: transform 0.4s var(--ease); }
.btn::before {
  content:""; position: absolute; inset: 0; background: var(--ink);
  transform: translateY(101%); border-radius: 100px;
  transition: transform 0.5s var(--ease);
}
.btn:hover { color: var(--paper); border-color: var(--ink); }
.btn:hover::before { transform: translateY(0); }
/* light variant — for use on dark/photo backgrounds */
.btn.light { border-color: var(--paper); color: var(--ink); background: var(--paper); }
.btn.light::before { background: var(--signal); }
.btn.light:hover { color: #fff; border-color: var(--signal); }
.btn:hover .arrow { transform: translateX(5px); }
.btn.solid { background: var(--ink); color: var(--paper); }
.btn.solid::before { background: var(--signal); }
.btn.solid:hover { color: #fff; border-color: var(--signal); }

.link-ar {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink);
  position: relative;
}
.link-ar::after {
  content:""; position:absolute; left:0; right:0; bottom:-5px; height:1px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.link-ar:hover::after { transform: scaleX(1); }
.link-ar .arrow { transition: transform 0.4s var(--ease); }
.link-ar:hover .arrow { transform: translateX(5px); }

/* ============================================================
   ABOUT / INTRO
   ============================================================ */
.about-head { max-width: 18ch; margin-bottom: clamp(40px, 6vw, 80px); }
.about-head .hl { position: relative; white-space: nowrap; }
.about-head .hl::after {
  content:""; position:absolute; left:-2px; right:-2px; bottom: 0.08em; height: 0.34em;
  background: var(--mint); opacity: 0.55; z-index: -1; border-radius: 2px;
}
.about-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: clamp(28px, 4vw, 72px);
}
.about-grid p { margin: 0; }

/* ============================================================
   EXPERTISE / AREAS
   ============================================================ */
.areas { background: var(--ink); color: var(--paper); }
.areas .eyebrow { color: rgba(251,250,247,0.5); }
.areas .eyebrow::before { background: rgba(251,250,247,0.5); }
.areas-intro {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px,4vw,64px);
  align-items: end; margin-bottom: clamp(48px, 7vw, 96px);
}
.areas-intro p { color: rgba(251,250,247,0.7); margin: 0; }
.area-list { border-top: 1px solid rgba(251,250,247,0.16); }
.area {
  display: grid;
  grid-template-columns: 64px minmax(220px, 1fr) 2fr auto;
  gap: clamp(16px, 3vw, 48px);
  align-items: center;
  padding: clamp(28px, 4vw, 52px) 0;
  border-bottom: 1px solid rgba(251,250,247,0.16);
  position: relative;
  transition: padding-left 0.5s var(--ease);
}
.area .num {
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.1em;
  color: var(--mauve);
}
.area .a-title {
  font-weight: 300; font-size: clamp(28px, 3.4vw, 52px); letter-spacing: -0.03em;
  transition: transform 0.5s var(--ease);
}
.area .a-desc { color: rgba(251,250,247,0.65); max-width: 42ch; font-size: 16px; }
.area .a-go {
  width: 56px; height: 56px; border-radius: 50%;
  border: 1px solid rgba(251,250,247,0.3);
  display: grid; place-items: center;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), transform 0.4s var(--ease);
  flex: none;
}
.area .a-go svg { transition: transform 0.4s var(--ease); }
.area::before {
  content:""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--accent, var(--mint)); transform: scaleY(0); transform-origin: bottom;
  transition: transform 0.5s var(--ease);
}
@media (hover: hover) {
  .area:hover::before { transform: scaleY(1); }
  .area:hover { padding-left: clamp(16px, 2vw, 40px); }
  .area:hover .a-title { transform: translateX(4px); }
  .area:hover .a-go { background: var(--accent); border-color: var(--accent); transform: rotate(-45deg); }
  .area:hover .a-go svg { stroke: var(--ink); }
}
.area .a-title b { color: var(--accent); font-weight: 300; }

/* ============================================================
   APPLICATIONS
   ============================================================ */
.apps-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px,5vw,80px);
  align-items: center;
}
.apps-card {
  aspect-ratio: 4/3;
  border-radius: 18px;
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(116,194,238,0.5), transparent 55%),
    radial-gradient(120% 120% at 100% 100%, rgba(231,84,255,0.35), transparent 55%),
    var(--paper-2);
  border: 1px solid var(--rule);
  position: relative; overflow: hidden;
  display: grid; place-items: center;
}
.apps-card .orb {
  width: 42%; aspect-ratio: 1; border-radius: 50%;
  background: conic-gradient(from 0deg, var(--sky), var(--mint), var(--sun), var(--signal), var(--sky));
  filter: blur(2px);
  animation: spin 18s linear infinite;
  mask: radial-gradient(circle, transparent 52%, #000 53%);
  -webkit-mask: radial-gradient(circle, transparent 52%, #000 53%);
}
.apps-card .orb-core {
  position:absolute; width: 16%; aspect-ratio:1; border-radius:50%;
  background: var(--ink);
}

/* ============================================================
   TEAM
   ============================================================ */
.team-head {
  display:flex; flex-wrap: wrap; justify-content: space-between; align-items: end;
  gap: 24px; margin-bottom: clamp(40px, 5vw, 72px);
}
.team-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2vw, 28px);
}
.member { position: relative; }
.member .photo {
  width: 100%; aspect-ratio: 3/4; border-radius: 12px; overflow: hidden;
  background: var(--paper-2);
  position: relative;
}
.member image-slot { width: 100%; height: 100%; }
.member .photo img { width:100%; height:100%; object-fit:cover; display:block; filter:grayscale(1); transition: transform 0.6s var(--ease); }
.member .photo img.circ { transform: scale(1.3); }
@media (hover: hover) { .member:hover .photo img { transform: scale(1.05); } .member:hover .photo img.circ { transform: scale(1.36); } }
.member .photo::after {
  content:""; position:absolute; inset:0; border-radius:12px;
  box-shadow: inset 0 0 0 1px var(--rule);
  pointer-events: none;
}
.member .m-name { font-weight: 500; font-size: 19px; margin-top: 16px; letter-spacing: -0.01em; }
.member .m-role { font-size: 13.5px; color: var(--mauve); line-height: 1.4; margin-top: 4px; }
.member .m-bar {
  height: 2px; width: 0; background: var(--accent, var(--sky)); margin-top: 14px;
  transition: width 0.5s var(--ease);
}
@media (hover: hover) { .member:hover .m-bar { width: 100%; } }

/* ============================================================
   BLOG
   ============================================================ */
.blog { background: var(--ink); color: var(--paper); }
.blog .eyebrow { color: rgba(251,250,247,0.5); }
.blog .eyebrow::before { background: rgba(251,250,247,0.5); }
.blog-head {
  display:flex; flex-wrap:wrap; justify-content: space-between; align-items: end;
  gap: 24px; margin-bottom: clamp(40px, 5vw, 72px);
}
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px,3vw,40px); }
.post { display: flex; flex-direction: column; }
.post .p-img {
  width: 100%; aspect-ratio: 16/11; border-radius: 12px; overflow: hidden;
  background: var(--ink-2);
}
.post image-slot { width: 100%; height: 100%; }
.post .p-tags { display:flex; gap: 10px; margin: 20px 0 12px; flex-wrap: wrap; }
.post .tag {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 100px; border: 1px solid rgba(251,250,247,0.22);
  color: rgba(251,250,247,0.7);
}
.post .p-title {
  font-weight: 300; font-size: clamp(21px, 1.9vw, 27px); letter-spacing: -0.02em; line-height: 1.12;
  transition: color 0.3s var(--ease);
}
.post .p-excerpt { color: rgba(251,250,247,0.6); font-size: 15px; margin-top: 12px; }
.post .p-date { font-family: var(--mono); font-size: 12px; color: var(--mauve); margin-top: 16px; letter-spacing: 0.08em; }
@media (hover: hover) { .post:hover .p-title { color: var(--mint); } }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 6vw, 100px);
  align-items: start;
}
.contact-mail {
  font-weight: 200; letter-spacing: -0.03em;
  font-size: clamp(30px, 4.6vw, 70px);
  line-height: 1.04;
  display: inline-block; position: relative;
}
.contact-mail::after {
  content:""; position:absolute; left:0; bottom: 0.04em; right:0; height: 2px;
  background: var(--signal); transform: scaleX(0); transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.contact-mail:hover::after { transform: scaleX(1); }
.contact-form { display: grid; gap: 22px; }
.field { display: grid; gap: 8px; }
.field label {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--mauve);
}
.field input, .field textarea {
  font-family: var(--sans); font-size: 17px; color: var(--ink);
  background: transparent; border: 0; border-bottom: 1px solid var(--rule);
  padding: 10px 0; outline: none;
  transition: border-color 0.3s var(--ease);
}
.field input:focus, .field textarea:focus { border-color: var(--ink); }
.field textarea { resize: vertical; min-height: 80px; }
.contact-socials { display: flex; gap: 26px; margin-top: 8px; flex-wrap: wrap; }

/* ============================================================
   FOOTER
   ============================================================ */
footer.site { background: var(--paper-2); padding-block: clamp(56px, 7vw, 100px); }
.foot-top {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(32px, 5vw, 80px);
  padding-bottom: clamp(40px, 5vw, 72px); border-bottom: 1px solid var(--rule);
}
.foot-word { font-weight: 200; font-size: clamp(56px, 14vw, 220px); letter-spacing: -0.05em; line-height: 0.82; }
.focus-note h4 {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--mauve); margin: 0 0 14px; font-weight: 500;
}
.focus-note p { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.55; max-width: 46ch; }
.foot-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px;
  padding-top: 32px;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--mauve);
}
.foot-bottom .grant { max-width: 60ch; text-transform: none; letter-spacing: 0.02em; }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
.reveal.d4 { transition-delay: 0.32s; }

.line-reveal { display: block; overflow: hidden; }
.line-reveal > span { display: block; transform: translateY(105%); transition: transform 0.9s var(--ease); }
.line-reveal.in > span { transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal, .line-reveal > span, .js .hero-word .ch { opacity: 1 !important; transform: none !important; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-cta { justify-content: flex-start; }
  .about-grid { grid-template-columns: 1fr; }
  .areas-intro { grid-template-columns: 1fr; }
  .area { grid-template-columns: 40px 1fr; row-gap: 14px; }
  .area .a-desc { grid-column: 2; }
  .area .a-go { display: none; }
  .apps-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .foot-top { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .team-grid { grid-template-columns: 1fr 1fr; }
}

/* ---- phone refinements ---- */
@media (max-width: 600px) {
  .page-hero .ph-title { font-size: clamp(40px, 13vw, 84px); }
  .page-hero { padding-top: clamp(120px, 16vh, 200px); }
  .case { border-radius: 16px; }
  .case-teaser { border-radius: 14px; }
  .aud { gap: 8px; }
  .aud span { font-size: 10px; padding: 6px 11px; }
  /* CTA rows: align left when stacked rather than space-between gaps */
  .value-grid { gap: 28px; }
}

/* ============================================================
   PAGE-HERO MOTIFS (decorative header visuals)
   ============================================================ */
.page-hero { position: relative; overflow: hidden; }
.page-hero .wrap { position: relative; z-index: 2; }
.ph-visual {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: clamp(300px, 44vw, 660px);
  z-index: 1; pointer-events: none;
  display: grid; place-items: center;
}
.ph-visual svg { width: clamp(230px, 30vw, 470px); height: auto; overflow: visible; }
.ph-visual::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--paper) 0%, rgba(251,250,247,0) 32%);
}
.page-hero.dark .ph-visual::after { background: linear-gradient(90deg, var(--ink) 0%, rgba(26,22,32,0) 32%); }
@media (max-width: 760px) {
  .ph-visual { width: 80%; opacity: 0.4; }
  .ph-visual::after { background: linear-gradient(180deg, rgba(251,250,247,0) 36%, var(--paper) 90%); }
  .page-hero.dark .ph-visual::after { background: linear-gradient(180deg, rgba(26,22,32,0) 36%, var(--ink) 90%); }
}

/* motif primitives */
.m-stroke { fill: none; stroke: var(--accent, var(--signal)); stroke-linecap: round; }
.m-fill { fill: var(--accent, var(--signal)); }
.m-node { animation: mPulse 3.6s var(--ease-soft) infinite; transform-box: fill-box; transform-origin: center; }
.m-node:nth-of-type(2) { animation-delay: .35s; }
.m-node:nth-of-type(3) { animation-delay: .7s; }
.m-node:nth-of-type(4) { animation-delay: 1.05s; }
.m-node:nth-of-type(5) { animation-delay: 1.4s; }
.m-node:nth-of-type(6) { animation-delay: 1.75s; }
.m-node:nth-of-type(7) { animation-delay: 2.1s; }
.m-node:nth-of-type(8) { animation-delay: 2.45s; }

@keyframes mPulse { 0%,100% { opacity: .4; transform: scale(1); } 50% { opacity: 1; transform: scale(1.18); } }
@keyframes mFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes waveDrift { to { transform: translateX(-110px); } }
@keyframes orchSpin { to { transform: rotate(360deg); } }

.m-wline { stroke: var(--accent); stroke-width: 1.6; fill: none; stroke-linecap: round; animation: waveDrift 7s linear infinite; }
.m-venn { animation: mFloat 11s var(--ease-soft) infinite; transform-box: fill-box; transform-origin: center; }
.m-orbit { transform-box: view-box; transform-origin: 200px 200px; animation: orchSpin 64s linear infinite; }
.m-piece { animation: mFloat 5s var(--ease-soft) infinite; transform-box: fill-box; transform-origin: center; }

@media (prefers-reduced-motion: reduce) {
  .m-node, .m-wline, .m-venn, .m-orbit, .m-piece { animation: none !important; }
}

/* ============================================================
   PAGE-EXIT TRANSITION
   ============================================================ */
#pexit {
  position: fixed; inset: 0; z-index: 210;
  background: var(--ink);
  transform: translateY(100%);
  transition: transform 0.55s var(--ease);
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}
#pexit .px-word {
  font-weight: 300; font-size: clamp(28px, 5vw, 64px);
  letter-spacing: 0.16em; color: var(--paper);
  opacity: 0; transform: translateY(10px);
  transition: opacity 0.4s var(--ease) 0.1s, transform 0.4s var(--ease) 0.1s;
}
body.leaving #pexit { transform: translateY(0); }
body.leaving #pexit .px-word { opacity: 1; transform: none; }

/* ============================================================
   FOOTER NAV (added for multipage)
   ============================================================ */
.foot-nav {
  display: flex; flex-wrap: wrap; gap: clamp(18px, 3vw, 44px);
  padding: 32px 0;
  border-bottom: 1px solid var(--rule);
}
.foot-nav a {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--mauve); position: relative; transition: color 0.3s var(--ease);
}
.foot-nav a:hover { color: var(--ink); }
.foot-nav a.is-active { color: var(--ink); }
.foot-nav a.is-active::before {
  content: ""; position: absolute; left: -14px; top: 50%; width: 6px; height: 6px;
  background: var(--signal); border-radius: 50%; transform: translateY(-50%);
}

/* overlay active link marker */
#overlay nav a.is-active { color: var(--mint); }
#overlay nav a.is-active .idx { color: var(--mint); }

/* ============================================================
   INNER PAGE HERO
   ============================================================ */
.page-hero {
  padding-top: clamp(140px, 18vh, 240px);
  padding-bottom: clamp(40px, 6vw, 80px);
}
.page-hero .ph-title {
  font-weight: 200; letter-spacing: -0.045em; line-height: 0.9;
  font-size: clamp(54px, 12vw, 184px);
  margin: clamp(20px, 3vw, 32px) 0 0;
}
.page-hero .ph-title em { font-style: normal; color: var(--accent, var(--signal)); }
.page-hero .ph-lead {
  max-width: 36ch; margin-top: clamp(28px, 4vw, 44px);
  font-size: clamp(19px, 1.8vw, 26px); line-height: 1.45; color: var(--ink-2);
  text-wrap: pretty;
}
.page-hero .ph-lead b { color: var(--ink); font-weight: 600; }
.page-hero.dark { background: var(--ink); color: var(--paper); }
.page-hero.dark .ph-lead { color: rgba(251,250,247,0.72); }
.page-hero.dark .ph-lead b { color: var(--paper); }
.page-hero.dark .eyebrow { color: rgba(251,250,247,0.55); }
.page-hero.dark .eyebrow::before { background: rgba(251,250,247,0.55); }

/* breadcrumb / index marker */
.crumb {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--mauve);
}
.crumb a { color: var(--mauve); transition: color 0.3s; }
.crumb a:hover { color: var(--ink); }
.page-hero.dark .crumb, .page-hero.dark .crumb a { color: rgba(251,250,247,0.55); }

/* prev / next page footer nav */
.pager {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  border-top: 1px solid var(--rule);
}
.pager a {
  padding: clamp(28px, 4vw, 52px) 0;
  display: flex; flex-direction: column; gap: 8px;
  transition: padding 0.4s var(--ease);
}
.pager a.next { text-align: right; align-items: flex-end; border-left: 1px solid var(--rule); padding-left: 32px; }
.pager a.prev { padding-right: 32px; }
.pager .pg-label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--mauve); }
.pager .pg-title { font-weight: 300; font-size: clamp(24px, 3vw, 42px); letter-spacing: -0.02em; }
@media (hover: hover) {
  .pager a.prev:hover { padding-left: 16px; }
  .pager a.next:hover { padding-right: 16px; }
  .pager a:hover .pg-title { color: var(--signal); }
}

/* ============================================================
   GENERIC TILES
   ============================================================ */
.tiles { display: grid; gap: clamp(16px, 2vw, 28px); }
.tiles.c2 { grid-template-columns: repeat(2, 1fr); }
.tiles.c3 { grid-template-columns: repeat(3, 1fr); }
.tile {
  border: 1px solid var(--rule); border-radius: 16px;
  padding: clamp(26px, 3vw, 42px);
  background: var(--paper);
  position: relative; overflow: hidden;
  transition: transform 0.5s var(--ease), border-color 0.5s var(--ease);
}
.tile .t-num {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; color: var(--mauve);
}
.tile .t-title {
  font-weight: 400; font-size: clamp(22px, 2.2vw, 30px); letter-spacing: -0.02em;
  margin: 14px 0 12px;
}
.tile .t-title b { color: var(--accent, var(--sky)); font-weight: 400; }
.tile .t-desc { color: var(--ink-2); font-size: 16px; line-height: 1.55; }
.tile::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: var(--accent, var(--sky)); transform: scaleX(0); transform-origin: left;
  transition: transform 0.5s var(--ease);
}
@media (hover: hover) {
  .tile:hover { transform: translateY(-4px); border-color: var(--accent, var(--sky)); }
  .tile:hover::after { transform: scaleX(1); }
}

/* ============================================================
   BRAIN WAVES (neuroscience)
   ============================================================ */
.waves { display: flex; flex-direction: column; border-top: 1px solid var(--rule); }
.wave {
  display: grid; grid-template-columns: 56px 200px 1fr 120px; align-items: center;
  gap: clamp(16px, 3vw, 48px);
  padding: clamp(22px, 3vw, 36px) 0;
  border-bottom: 1px solid var(--rule);
  position: relative;
}
.wave .w-num { font-family: var(--mono); font-size: 13px; color: var(--mauve); }
.wave .w-name { font-weight: 300; font-size: clamp(26px, 3vw, 44px); letter-spacing: -0.02em; }
.wave .w-name span { color: var(--accent); }
.wave .w-desc { color: var(--ink-2); font-size: 15.5px; line-height: 1.5; max-width: 40ch; }
.wave .w-graph { width: 120px; height: 44px; overflow: hidden; }
.wave .w-graph path {
  fill: none; stroke: var(--accent); stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
.wave .w-freq { font-family: var(--mono); font-size: 11px; color: var(--mauve); letter-spacing: 0.08em; margin-top: 6px; }
@media (max-width: 820px) {
  .wave { grid-template-columns: 40px 1fr; row-gap: 10px; }
  .wave .w-desc { grid-column: 2; }
  .wave .w-graph { display: none; }
}

/* ============================================================
   AI SIGNALS
   ============================================================ */
.signal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 24px); }
.sig {
  border: 1px solid rgba(251,250,247,0.16); border-radius: 14px;
  padding: clamp(24px, 3vw, 36px);
  background: rgba(251,250,247,0.02);
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), transform 0.4s var(--ease);
}
.sig .s-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent, var(--mint)); }
.sig .s-title { font-weight: 400; font-size: clamp(20px, 2vw, 26px); letter-spacing: -0.01em; margin: 18px 0 10px; }
.sig .s-desc { color: rgba(251,250,247,0.6); font-size: 15px; line-height: 1.5; }
@media (hover: hover) {
  .sig:hover { transform: translateY(-4px); border-color: var(--accent, var(--mint)); background: rgba(251,250,247,0.05); }
}
@media (max-width: 820px) { .signal-grid { grid-template-columns: 1fr; } .tiles.c3 { grid-template-columns: 1fr; } .tiles.c2 { grid-template-columns: 1fr; } .pager { grid-template-columns: 1fr; } .pager a.next { border-left: 0; border-top: 1px solid var(--rule); align-items: flex-start; text-align: left; padding-left: 0; } }

/* big statement block */
.statement {
  font-weight: 200; letter-spacing: -0.03em; line-height: 1.05;
  font-size: clamp(30px, 5vw, 78px); text-wrap: balance;
}
.statement em { font-style: normal; color: var(--accent, var(--signal)); }

/* two-column content row */
.split {
  display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(28px, 5vw, 80px);
  align-items: start;
}
.split .s-head { position: sticky; top: 120px; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split .s-head { position: static; } }

/* ============================================================
   ARTICLE / BLOG POST DETAIL
   ============================================================ */
.article { padding-top: clamp(120px, 16vh, 200px); padding-bottom: clamp(50px, 7vw, 96px); }
.tags-row { display: flex; gap: 10px; flex-wrap: wrap; margin: clamp(20px,3vw,28px) 0 18px; }
.article .tag {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 100px; border: 1px solid var(--rule); color: var(--ink-2);
}
.article-title {
  font-weight: 200; letter-spacing: -0.04em; line-height: 0.98;
  font-size: clamp(36px, 6vw, 88px); max-width: 17ch; margin: 0;
}
.article-title em { font-style: normal; color: var(--accent, var(--signal)); }
.post-meta {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  margin-top: clamp(24px, 3vw, 36px);
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mauve);
}
.post-meta .who { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.post-meta .avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent, var(--signal)); color: var(--ink);
  display: grid; place-items: center;
  font-family: var(--sans); font-weight: 600; font-size: 14px; letter-spacing: 0;
}
.post-meta .sep { width: 4px; height: 4px; border-radius: 50%; background: var(--rule); }
.article-hero-img {
  width: 100%; aspect-ratio: 16 / 7.5; border-radius: 16px; overflow: hidden;
  margin: clamp(36px,5vw,64px) 0; background: var(--paper-2);
}
.article-hero-img image-slot { width: 100%; height: 100%; }
.measure { max-width: 64ch; margin: 0 auto; }
.measure > p { font-size: clamp(17px,1.25vw,19px); line-height: 1.75; color: var(--ink-2); margin: 0 0 1.4em; text-wrap: pretty; }
.measure > p b, .measure > p strong { color: var(--ink); font-weight: 600; }
.measure > h2 { font-weight: 400; font-size: clamp(22px,2.4vw,30px); letter-spacing: -0.02em; color: var(--ink); margin: 1.8em 0 0.5em; }
.measure > p:first-child { font-size: clamp(19px,1.5vw,23px); color: var(--ink); line-height: 1.6; }
.pullquote {
  border: 0; margin: clamp(36px,5vw,56px) 0; padding: 4px 0 4px 28px;
  border-left: 2px solid var(--accent, var(--signal));
  font-weight: 200; font-size: clamp(24px,3.2vw,40px); line-height: 1.16; letter-spacing: -0.02em; color: var(--ink);
}
.pullquote cite { display: block; margin-top: 16px; font-style: normal; font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mauve); }
.article-foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; align-items: center;
  max-width: 64ch; margin: clamp(40px,5vw,64px) auto 0; padding-top: 28px; border-top: 1px solid var(--rule);
}
.article-foot .share { display: flex; gap: 20px; }
.article-foot .share a { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mauve); transition: color .3s var(--ease); }
.article-foot .share a:hover { color: var(--ink); }
.related { border-top: 1px solid var(--rule); }

/* ============================================================
   ENTERPRISE / SERVICES
   ============================================================ */

/* homepage enterprise band intro */
.ent-head {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(24px, 4vw, 72px);
  align-items: end; margin-bottom: clamp(36px, 5vw, 64px);
}
.ent-head p { margin: 0; color: var(--ink-2); }
@media (max-width: 900px) { .ent-head { grid-template-columns: 1fr; } }

/* audience chips */
.aud { display: flex; flex-wrap: wrap; gap: 10px; }
.aud span {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 7px 14px; border-radius: 100px; border: 1px solid var(--rule); color: var(--ink-2);
}
.page-hero.dark .aud span, .dark-sec .aud span { border-color: rgba(251,250,247,0.24); color: rgba(251,250,247,0.72); }

/* dark section helper (matches .areas/.blog theming) */
.dark-sec { background: var(--ink); color: var(--paper); }
.dark-sec .eyebrow { color: rgba(251,250,247,0.5); }
.dark-sec .eyebrow::before { background: rgba(251,250,247,0.5); }
.dark-sec .eyebrow.signal::before { background: var(--signal); }
.dark-sec .eyebrow.sky::before { background: var(--sky); }
.dark-sec .eyebrow.sun::before { background: var(--sun); }
.dark-sec .eyebrow.mint::before { background: var(--mint); }
.dark-sec .lead { color: rgba(251,250,247,0.7); }

/* capability list */
.cap-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.cap-list li {
  display: grid; grid-template-columns: 56px 1fr; gap: clamp(16px, 3vw, 44px);
  align-items: start; padding: clamp(22px, 2.8vw, 34px) 0;
  border-bottom: 1px solid var(--rule);
}
.cap-list .c-num { font-family: var(--mono); font-size: 13px; color: var(--accent, var(--mauve)); padding-top: 5px; }
.cap-list h3 { font-weight: 400; font-size: clamp(20px, 2.1vw, 28px); letter-spacing: -0.02em; }
.cap-list p { margin: 9px 0 0; color: var(--ink-2); font-size: 16px; line-height: 1.55; max-width: 64ch; }
.dark-sec .cap-list { border-color: rgba(251,250,247,0.16); }
.dark-sec .cap-list li { border-color: rgba(251,250,247,0.16); }
.dark-sec .cap-list p { color: rgba(251,250,247,0.62); }
@media (max-width: 640px) { .cap-list li { grid-template-columns: 40px 1fr; } }

/* process steps */
.process { display: grid; gap: 0; }
.pstep {
  display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 3vw, 44px);
  padding: clamp(24px, 3vw, 42px) 0; border-bottom: 1px solid var(--rule);
}
.pstep:last-child { border-bottom: 0; }
.pstep .p-dot {
  width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--rule);
  display: grid; place-items: center; font-family: var(--mono); font-size: 14px;
  color: var(--accent, var(--signal)); flex: none;
}
.pstep h3 { font-weight: 400; font-size: clamp(21px, 2.2vw, 30px); letter-spacing: -0.02em; }
.pstep p { margin: 11px 0 0; color: var(--ink-2); font-size: 16px; line-height: 1.55; max-width: 60ch; }

/* value / outcomes grid */
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.6vw, 36px); }
.value { border-top: 2px solid var(--accent, var(--signal)); padding-top: clamp(16px, 2vw, 24px); }
.value h3 { font-weight: 300; font-size: clamp(20px, 2vw, 27px); letter-spacing: -0.02em; }
.value p { margin: 11px 0 0; color: var(--ink-2); font-size: 15.5px; line-height: 1.55; }
@media (max-width: 820px) { .value-grid { grid-template-columns: 1fr; } }

/* case study (dark card) */
.case {
  background: var(--ink); color: var(--paper); border-radius: 20px;
  padding: clamp(32px, 5vw, 76px); position: relative; overflow: hidden;
}
.case .eyebrow { color: rgba(251,250,247,0.55); }
.case .eyebrow::before { background: var(--accent, var(--signal)); }
.case .case-name { font-weight: 200; font-size: clamp(34px, 5vw, 66px); letter-spacing: -0.03em; line-height: 1.0; margin: clamp(16px, 2.4vw, 26px) 0 0; }
.case .case-name em { font-style: normal; color: var(--accent, var(--signal)); }
.case .case-sub { color: rgba(251,250,247,0.72); max-width: 56ch; margin-top: clamp(16px, 2vw, 22px); font-size: clamp(17px, 1.4vw, 21px); line-height: 1.5; }
.case-outcomes { list-style: none; margin: clamp(30px, 4vw, 50px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(14px, 1.8vw, 24px); }
.case-outcomes li { display: grid; grid-template-columns: 22px 1fr; gap: 14px; color: rgba(251,250,247,0.84); font-size: 16px; line-height: 1.5; }
.case-outcomes .tick { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--accent, var(--signal)); display: grid; place-items: center; margin-top: 2px; }
.case-outcomes .tick::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent, var(--signal)); }
.case-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 1.6vw, 22px); margin-top: clamp(30px, 4vw, 50px); }
.metric { border: 1px dashed rgba(251,250,247,0.32); border-radius: 14px; padding: clamp(18px, 2vw, 28px); }
.metric .m-val { font-weight: 200; font-size: clamp(34px, 3.6vw, 50px); letter-spacing: -0.02em; color: rgba(251,250,247,0.45); line-height: 1; }
.metric .m-label { font-size: 14.5px; color: rgba(251,250,247,0.72); margin-top: 12px; line-height: 1.4; }
.metric .m-note { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mauve); margin-top: 12px; }
@media (max-width: 820px) { .case-outcomes { grid-template-columns: 1fr; } .case-metrics { grid-template-columns: 1fr; } }

/* compact case teaser on service pages */
.case-teaser {
  display: grid; grid-template-columns: 1fr auto; gap: clamp(22px, 3vw, 52px); align-items: center;
  border: 1px solid var(--rule); border-radius: 18px; padding: clamp(28px, 3.6vw, 52px);
}
.case-teaser .ct-eyebrow { margin-bottom: 16px; }
.case-teaser h3 { font-weight: 300; font-size: clamp(24px, 2.8vw, 38px); letter-spacing: -0.02em; max-width: 22ch; }
.case-teaser p { margin: 14px 0 0; color: var(--ink-2); font-size: 16px; line-height: 1.55; max-width: 52ch; }
@media (max-width: 760px) { .case-teaser { grid-template-columns: 1fr; } }

/* ============================================================
   PATHS / PLATFORM ACCESS CARDS
   (homepage "two paths" + Owned AI platform access modes)
   ============================================================ */
.paths { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(20px, 2.6vw, 36px); }
.path {
  display: flex; flex-direction: column;
  border: 1px solid var(--rule); border-radius: 18px;
  padding: clamp(28px, 3.4vw, 48px);
  background: var(--paper);
  position: relative; overflow: hidden;
  transition: transform 0.5s var(--ease), border-color 0.5s var(--ease);
}
.path::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: var(--accent, var(--sky)); transform: scaleX(0); transform-origin: left;
  transition: transform 0.5s var(--ease);
}
@media (hover: hover) {
  .path:hover { transform: translateY(-4px); border-color: var(--accent, var(--sky)); }
  .path:hover::after { transform: scaleX(1); }
}
.path .p-kicker {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent, var(--mauve)); display: inline-flex; align-items: center; gap: 10px;
}
.path .p-kicker::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent, var(--mauve)); flex: none; }
.path h3 { font-weight: 300; font-size: clamp(25px, 2.7vw, 36px); letter-spacing: -0.025em; margin: 18px 0 0; }
.path .p-lead { color: var(--ink-2); font-size: 16.5px; line-height: 1.55; margin: 14px 0 0; }
.path .p-foot { margin-top: auto; padding-top: clamp(24px, 3vw, 34px); }

/* checklist used inside path cards */
.feat-list { list-style: none; margin: clamp(22px, 2.6vw, 30px) 0 0; padding: 0; display: grid; gap: 13px; }
.feat-list li { display: grid; grid-template-columns: 20px 1fr; gap: 13px; align-items: start; font-size: 15.5px; color: var(--ink-2); line-height: 1.45; }
.feat-list .tk { width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--accent, var(--signal)); display: grid; place-items: center; margin-top: 1px; flex: none; }
.feat-list .tk::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent, var(--signal)); }

/* dark-context variants */
.dark-sec .path, .case .path { background: rgba(251,250,247,0.02); border-color: rgba(251,250,247,0.16); }
.dark-sec .path .p-lead, .dark-sec .feat-list li { color: rgba(251,250,247,0.64); }

/* audience chips inside the dark case card */
.case .aud span { border-color: rgba(251,250,247,0.24); color: rgba(251,250,247,0.72); }

@media (max-width: 820px) { .paths { grid-template-columns: 1fr; } }

/* paper-friendly post cards (blog index + related) */
.posts-paper .p-title { color: var(--ink); }
.posts-paper .p-excerpt { color: var(--mauve); }
.posts-paper .tag { color: var(--ink-2); border-color: var(--rule); }
.posts-paper .p-img { background: var(--paper-2); }
@media (hover: hover) { .posts-paper .post:hover .p-title { color: var(--accent, var(--signal)); } }
