/* ============================================================================
   Conifer Point — multi-page site styles (extends colors_and_type.css + kit.css)
   ========================================================================== */

/* ---------- shared layout helpers ---------- */
.section.tight { padding: 72px 0; }
.section-lead { max-width: 760px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.sec-head.center { margin-left: auto; margin-right: auto; }
.muted { color: var(--fg-3); }
.spring { color: var(--spring); }
.divider { height: 1px; background: var(--border-1); border: 0; margin: 0; }

/* keep nav anchor jumps clear of the sticky bar */
:root { scroll-padding-top: 92px; }

/* ---------- top announcement / brand wordmark in nav ---------- */
.brand img.wordmark { height: 30px; }
.nav-links a.active { color: var(--fg-1); }
.nav-links a.active::after {
  content: ""; display: block; height: 2px; border-radius: 2px;
  background: var(--green-400); margin-top: 6px;
}
.nav-mobile { padding-bottom: 18px; }
.nav-mobile a { display: block; padding: 11px 0; color: var(--fg-2); font-size: 16px; font-weight: 500; border-bottom: 1px solid var(--border-1); }
.nav-mobile a:last-child { border-bottom: 0; color: var(--green-300); }

/* ---------- page hero (interior pages) ---------- */
.page-hero {
  position: relative; overflow: hidden;
  padding: 116px 0 64px; background: var(--bg-deep);
  border-bottom: 1px solid var(--border-1);
}
.page-hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .5; }
.page-hero .halo { position: absolute; inset: 0; background: var(--grad-halo); pointer-events: none; }
.page-hero-inner { position: relative; max-width: 820px; }
.page-hero h1 { font-size: clamp(36px, 5vw, 54px); margin: 16px 0 0; }
.page-hero p { margin: 20px 0 0; max-width: 620px; }

/* ---------- homepage hero with 3D viewer ---------- */
.hero.home { padding: 84px 0 96px; }
.hero.home .hero-grid {
  position: relative; display: grid; grid-template-columns: 1.05fr .95fr;
  gap: 40px; align-items: center;
}
.hero.home .hero-copy { max-width: 600px; }
.hero.home h1 { font-size: clamp(40px, 5.4vw, 64px); }
.hero.home h1 .hero-sub {
  display: block; margin-top: 14px;
  font-size: clamp(22px, 2.7vw, 32px); font-weight: 500; line-height: 1.12;
  letter-spacing: -.01em; color: var(--fg-3);
}
.viewer-wrap {
  position: relative; width: 100%; height: 0; padding-top: 100%; align-self: center;
  border-radius: var(--r-xl); overflow: hidden;
}
.viewer-3d { position: absolute; top: 0; left: 0; right: 0; bottom: 0; width: 100%; height: 100%; }
.viewer-3d canvas { background: transparent !important; }
.viewer-fallback { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.viewer-caption {
  position: absolute; left: 18px; bottom: 16px; z-index: 3;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--fg-3);
  background: rgba(10,20,16,.55); -webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);
  border: 1px solid var(--border-1); border-radius: var(--r-pill);
  padding: 7px 14px; display: flex; align-items: center; gap: 9px;
}
.viewer-caption .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green-300); box-shadow: 0 0 10px var(--green-300); }
.viewer-legend { position: absolute; top: 16px; right: 16px; z-index: 3; display: flex; flex-direction: column; gap: 7px; }
.viewer-legend span {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .08em;
  color: var(--fg-3); display: flex; align-items: center; gap: 7px;
}
.viewer-legend i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
@media(max-width:880px){
  .hero.home .hero-grid { grid-template-columns: 1fr; }
  .viewer-wrap { max-width: 440px; padding-top: min(100%, 440px); margin: 8px auto 0; }
}

/* ---------- trust / logo strip ---------- */
.trust { border-top: 1px solid var(--border-1); border-bottom: 1px solid var(--border-1); background: var(--bg-deep); overflow: hidden; }
.trust-head { padding-top: 22px; padding-bottom: 16px; }
.trust .lbl { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-4); white-space: nowrap; }
.trust-track-wrap { overflow-x: auto; overflow-y: hidden; padding-bottom: 26px; scrollbar-width: none; cursor: default; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 48px, #000 calc(100% - 48px), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 48px, #000 calc(100% - 48px), transparent 100%); }
.trust-track-wrap::-webkit-scrollbar { display: none; }
.trust-track-wrap.grabbing { cursor: default; }
.trust-rail { position: relative; width: min(480px, 70vw); height: 3px; margin: -12px auto 18px; border-radius: 999px; background: rgba(255,255,255,.08); opacity: .35; transition: opacity .25s cubic-bezier(.22,1,.36,1); }
.trust-rail span { position: absolute; top: 0; left: 0; height: 100%; width: 28%; border-radius: 999px; background: var(--green-400, #5DAB49); box-shadow: 0 0 12px rgba(143,217,110,.35); }
.trust:hover .trust-rail { opacity: 1; }
.trust-track { display: flex; gap: 20px; width: max-content; will-change: scroll-position; }
.logo-tile { flex: none; width: 168px; height: 76px; background: #fff; border-radius: 12px; display: flex; align-items: center; justify-content: center; padding: 14px 22px; box-shadow: var(--shadow-sm); }
.logo-tile img { max-width: 100%; max-height: 100%; object-fit: contain; }
.logo-tile--tall { padding: 5px 22px; }
#viewer-3d, #viewer-3d canvas { cursor: grab; }
#viewer-3d:active, #viewer-3d:active canvas { cursor: grabbing; }

/* ---------- "what we do" feature rows ---------- */
.feature-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media(max-width:880px){ .feature-row { grid-template-columns: 1fr; } }
.feature {
  background: var(--surface-1); border: 1px solid var(--border-1);
  border-radius: var(--r-lg); padding: 28px; transition: all .22s cubic-bezier(.22,1,.36,1);
}
.feature:hover { border-color: var(--border-green); box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.feature .tile { width: 46px; height: 46px; border-radius: 12px; background: var(--surface-tint); border: 1px solid var(--border-green); display: flex; align-items: center; justify-content: center; box-shadow: var(--glow-green); margin-bottom: 18px; }
.feature .tile svg { color: var(--green-300); }
.feature h3 { margin: 0 0 9px; }
.feature p { margin: 0; font-size: 15px; }

/* ---------- pipeline (interactive) ---------- */
.pipeline { margin-top: 10px; }
.pipe-track { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; position: relative; }
@media(max-width:980px){ .pipe-track { grid-template-columns: repeat(3,1fr); } }
@media(max-width:560px){ .pipe-track { grid-template-columns: 1fr 1fr; } }
.pipe-stage {
  position: relative; text-align: left; cursor: pointer; background: var(--surface-1);
  border: 1px solid var(--border-1); border-radius: var(--r-md); padding: 18px 16px 20px;
  transition: all .2s cubic-bezier(.22,1,.36,1); color: inherit; font: inherit; display: block; width: 100%;
}
.pipe-stage:hover { border-color: var(--border-green); background: var(--surface-tint); }
.pipe-stage.active { border-color: var(--green-400); background: var(--surface-tint); box-shadow: var(--glow-green); }
.pipe-stage .pnum { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; color: var(--green-300); }
.pipe-stage .pbar { height: 3px; border-radius: 3px; background: var(--border-2); margin: 12px 0 14px; overflow: hidden; }
.pipe-stage .pbar i { display: block; height: 100%; width: 100%; background: var(--grad-leaf); transform: scaleX(.25); transform-origin: left; transition: transform .3s; }
.pipe-stage:nth-child(1) .pbar i { transform: scaleX(.16); }
.pipe-stage:nth-child(2) .pbar i { transform: scaleX(.33); }
.pipe-stage:nth-child(3) .pbar i { transform: scaleX(.5); }
.pipe-stage:nth-child(4) .pbar i { transform: scaleX(.66); }
.pipe-stage:nth-child(5) .pbar i { transform: scaleX(.83); }
.pipe-stage:nth-child(6) .pbar i { transform: scaleX(1); }
.pipe-stage h4 { margin: 0; font-size: 15.5px; line-height: 1.25; }
.pipe-panel {
  margin-top: 18px; border: 1px solid var(--border-green); border-radius: var(--r-lg);
  background: var(--bg-graphite); padding: 30px 32px; box-shadow: var(--shadow-md);
}
.pipe-panel .pp-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 6px; }
.pipe-panel h3 { margin: 0; }
.pipe-panel .pp-tag { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--green-300); }
.pipe-panel .pp-desc { margin: 8px 0 22px; max-width: 720px; font-size: 16px; }
.pp-tools { display: flex; flex-wrap: wrap; gap: 10px; }
.pp-tool {
  display: inline-flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 500;
  color: var(--fg-1); background: var(--surface-1); border: 1px solid var(--border-2);
  border-radius: var(--r-pill); padding: 9px 16px;
}
.pp-tool svg { color: var(--green-300); }
.pp-fade { animation: ppfade .35s cubic-bezier(.22,1,.36,1); }
@keyframes ppfade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- project diversity ---------- */
.proj-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media(max-width:880px){ .proj-grid { grid-template-columns: 1fr 1fr; } }
@media(max-width:560px){ .proj-grid { grid-template-columns: 1fr; } }
.proj-card {
  position: relative; overflow: hidden; background: var(--surface-1);
  border: 1px solid var(--border-1); border-radius: var(--r-lg); padding: 28px;
  min-height: 220px; display: flex; flex-direction: column; transition: all .22s cubic-bezier(.22,1,.36,1);
}
.proj-card:hover { border-color: var(--border-green); transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.proj-card .tile { width: 46px; height: 46px; border-radius: 12px; background: var(--surface-tint); border: 1px solid var(--border-green); display: flex; align-items: center; justify-content: center; box-shadow: var(--glow-green); margin-bottom: 16px; }
.proj-card .tile svg { color: var(--green-300); }
.proj-card h3 { margin: 0 0 8px; font-size: 19px; }
.proj-card p { margin: 0; font-size: 14.5px; flex: 1; }
.proj-card .pc-meta { margin-top: 16px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--green-300); }
.proj-card.feat { grid-column: span 2; }
@media(max-width:880px){ .proj-card.feat { grid-column: span 2; } }
@media(max-width:560px){ .proj-card.feat { grid-column: span 1; } }

/* ---------- BMaps device mockup + carousel ---------- */
.bmaps { background: var(--bg-deep); }
.bmaps .split { gap: 48px; grid-template-columns: 1.35fr 1fr; align-items: center; }
@media (max-width: 900px){ .bmaps .split { grid-template-columns: 1fr; } }
.device { position: relative; width: 100%; }
.laptop { position: relative; perspective: 1600px; }
.device[data-laptop] .screen { transform-origin: 50% 100%; }
.device[data-laptop]:not(.opened) .screen { transform: rotateX(-91deg); opacity: .5; }
.device[data-laptop].opened .screen { transform: rotateX(0deg); opacity: 1; transition: transform 1.15s cubic-bezier(.22,1,.36,1), opacity .5s ease-out; }
.device[data-laptop].opened.settled .screen { transform: none; transition: none; }
.device[data-laptop]:not(.opened) .base { transform: scaleX(.94); opacity: .55; }
.device[data-laptop].opened .base { transform: scaleX(1); opacity: 1; transition: transform .9s cubic-bezier(.22,1,.36,1) .1s, opacity .6s ease-out; }
.device[data-laptop]:not(.opened) .car-dots { opacity: 0; }
.device[data-laptop].opened .car-dots { opacity: 1; transition: opacity .4s ease-out .9s; }
@media (prefers-reduced-motion: reduce){.device[data-laptop] .screen,.device[data-laptop] .base{transform:none!important;opacity:1!important;transition:none!important}.device[data-laptop] .car-dots{opacity:1!important}}
.laptop .screen {
  position: relative; border: 10px solid #0c1712; border-radius: 16px;
  background: #060d0a; box-shadow: var(--shadow-lg), var(--glow-green); overflow: hidden;
  aspect-ratio: 1.72;
}
.laptop .topbar {
  position: absolute; top: 0; left: 0; right: 0; height: 30px; z-index: 4;
  background: rgba(10,20,16,.85); -webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px); border-bottom: 1px solid var(--border-1);
  display: flex; align-items: center; gap: 7px; padding: 0 12px;
}
.laptop .topbar i { width: 9px; height: 9px; border-radius: 50%; background: #2a3a30; display: inline-block; }
.laptop .topbar .url { margin-left: 12px; font-family: var(--font-mono); font-size: 10.5px; color: var(--fg-4); letter-spacing: .04em; }
.laptop .slides { position: absolute; inset: 30px 0 0; }
.laptop .slide { position: absolute; inset: 0; opacity: 0; transition: opacity .5s cubic-bezier(.22,1,.36,1); }
.laptop .slide.on { opacity: 1; }
.laptop .slide image-slot, .laptop .slide img { width: 100%; height: 100%; object-fit: contain; background: #000; display: block; image-rendering: auto; }
.laptop .base { height: 14px; margin: 0 -22px; border-radius: 0 0 14px 14px; background: linear-gradient(#0c1712,#070f0b); border: 1px solid var(--border-1); border-top: 0; }
.laptop .notch { width: 86px; height: 7px; background: #0a130e; border-radius: 0 0 7px 7px; margin: 0 auto; }
.car-dots { display: flex; gap: 9px; justify-content: center; margin-top: 22px; }
.car-dots button { width: 9px; height: 9px; border-radius: 50%; border: 0; background: var(--border-2); cursor: pointer; padding: 0; transition: all .2s; }
.car-dots button.on { background: var(--green-400); box-shadow: var(--glow-green); width: 26px; border-radius: 5px; }
.bmaps-bullets { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 14px; }
.bmaps-bullets li { display: flex; gap: 13px; align-items: flex-start; }
.bmaps-bullets .ck { flex: 0 0 auto; width: 24px; height: 24px; border-radius: 50%; background: var(--surface-tint); border: 1px solid var(--border-green); display: flex; align-items: center; justify-content: center; margin-top: 1px; }
.bmaps-bullets .ck svg { color: var(--green-300); }
.bmaps-bullets b { color: var(--fg-1); font-weight: 600; }
.bmaps-bullets p { margin: 2px 0 0; font-size: 14.5px; }

/* ---------- stat band ---------- */
.statband { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media(max-width:700px){ .statband { grid-template-columns: 1fr 1fr; } }
.statband .s .big { font-family: var(--font-display); font-weight: 700; font-size: 46px; color: var(--green-300); letter-spacing: -.02em; line-height: 1; }
.statband .s .lab { margin-top: 10px; color: var(--fg-3); font-size: 14.5px; }

/* ---------- publications list ---------- */
.pub-list { display: grid; gap: 14px; max-height: 640px; overflow-y: auto; padding-right: 10px; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--green-500) transparent; -webkit-mask-image: linear-gradient(to bottom,#000 92%,transparent); mask-image: linear-gradient(to bottom,#000 92%,transparent); }
.pub-list::-webkit-scrollbar { width: 6px; }.pub-list::-webkit-scrollbar-thumb { background: var(--green-500); border-radius: 999px; }
.pub {
  display: grid; grid-template-columns: 84px 1fr auto; gap: 22px; align-items: center;
  background: var(--surface-1); border: 1px solid var(--border-1); border-radius: var(--r-lg);
  padding: 22px 26px; transition: all .2s cubic-bezier(.22,1,.36,1);
}
.pub:hover { border-color: var(--border-green); background: var(--surface-tint); }
.pub .yr { font-family: var(--font-mono); font-size: 13px; color: var(--green-300); letter-spacing: .06em; }
.pub h3 { margin: 0 0 6px; font-size: 17px; line-height: 1.35; }
.pub h3 a { color: var(--fg-1); }.pub h3 a:hover { color: var(--spring); }
.pub .src { margin: 0; font-size: 13.5px; color: var(--fg-3); font-style: italic; }
.pub .venue { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-4); white-space: nowrap; }
@media(max-width:700px){ .pub { grid-template-columns: 1fr; gap: 8px; } .pub .venue { justify-self: start; } }

a { color: var(--spring); text-decoration: none; }
a:hover { color: var(--green-300); }
.cp-body a, p a { color: var(--spring); text-decoration: none; background-image: linear-gradient(currentColor, currentColor); background-repeat: no-repeat; background-position: 0 100%; background-size: 0 1px; transition: background-size .22s cubic-bezier(0.22,1,0.36,1), color .18s; }
.cp-body a:hover, p a:hover { color: var(--green-300); background-size: 100% 1px; }
.cp-body a:focus-visible, p a:focus-visible { outline: 2px solid var(--spring); outline-offset: 2px; border-radius: 2px; }
.btn a, a.btn { background-image: none; }
a.btn:hover, a.btn:focus-visible { background-size: 0 0; }
a.btn-primary, a.btn-primary:hover { color: var(--on-green); }
a.btn-ghost, a.btn-ghost:hover { color: var(--fg-1); }
.nav-links a, .nav-mobile a, .footer a, footer a { background-image: none; color: inherit; }

.learn-hero { min-height: 68vh; display: flex; align-items: center; }
.learn-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media(max-width:900px){ .learn-grid { grid-template-columns: 1fr; } }
.learn-grid .card { padding: 30px; }
.learn-grid .card .tile { margin-bottom: 20px; }
.learn-grid .card h3 { margin: 0 0 10px; }
.learn-grid .card p { margin: 0; font-size: 16px; }

.hero-rule { display: block; width: 72px; height: 3px; border-radius: 999px; background: var(--grad-leaf); box-shadow: var(--glow-green); margin-bottom: 26px; }
.hero.home .cp-hero { font-size: clamp(46px, 5.4vw, 76px); }
.hero.home .hero-copy .cp-body-lg { font-size: 21px; line-height: 1.62; }

/* ---------- team grid ---------- */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media(max-width:980px){ .team-grid { grid-template-columns: repeat(3,1fr); } }
@media(max-width:680px){ .team-grid { grid-template-columns: 1fr 1fr; } }
.member { background: var(--surface-1); border: 1px solid var(--border-1); border-radius: var(--r-lg); padding: 32px 22px 26px; text-align: center; transition: all .2s; }
.member:hover { border-color: var(--border-green); transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.member .avatar {
  width: 132px; height: 132px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 34px; color: var(--green-300);
  background: var(--surface-tint); border: 1px solid var(--border-green); box-shadow: var(--glow-green);
  margin: 0 auto 18px; overflow: hidden;
}
.member .avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.member h4 { margin: 0 0 4px; font-size: 17px; }
.member .role { margin: 0; font-size: 13px; color: var(--fg-3); }
.member.lead .avatar { border-color: var(--green-400); box-shadow: 0 0 0 2px var(--green-400), var(--glow-green); }
.member[data-bio] { cursor: pointer; }
.member .bio-cue { display: inline-block; margin-top: 12px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--green-300); opacity: 0; transform: translateY(4px); transition: opacity .2s, transform .2s cubic-bezier(0.22,1,0.36,1); }
.member[data-bio]:hover .bio-cue, .member[data-bio]:focus-visible .bio-cue { opacity: 1; transform: none; }
.member[data-bio]:focus-visible { outline: 2px solid var(--spring); outline-offset: 3px; }
.bio-scrim { position: fixed; inset: 0; background: rgba(5,12,9,.62); -webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px); opacity: 0; pointer-events: none; transition: opacity .3s cubic-bezier(0.22,1,0.36,1); z-index: 90; }
.bio-scrim.open { opacity: 1; pointer-events: auto; }
.bio-drawer { position: fixed; top: 0; right: 0; height: 100%; width: min(520px, 92vw); background: var(--bg-surface, #18291E); border-left: 1px solid var(--border-2); box-shadow: -24px 0 60px rgba(0,0,0,.5); transform: translateX(100%); transition: transform .42s cubic-bezier(0.22,1,0.36,1); z-index: 91; display: flex; flex-direction: column; }
.bio-drawer.open { transform: none; }
.bio-drawer .bd-close { position: absolute; top: 20px; right: 20px; width: 38px; height: 38px; border-radius: 999px; border: 1px solid var(--border-2); background: rgba(255,255,255,.04); color: var(--fg-2); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: border-color .18s, color .18s; }
.bio-drawer .bd-close:hover { border-color: var(--border-green); color: var(--green-300); }
.bio-drawer .bd-body { overflow-y: auto; padding: 56px 44px 56px; }
@media(max-width:600px){ .bio-drawer .bd-body { padding: 56px 24px 40px; } }
.bio-drawer .bd-head { display: flex; align-items: center; gap: 20px; margin-bottom: 28px; }
.bio-drawer .bd-avatar { width: 84px; height: 84px; border-radius: 50%; overflow: hidden; flex: 0 0 auto; border: 1px solid var(--border-2); box-shadow: var(--glow-green); }
.bio-drawer .bd-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bio-drawer .bd-name { margin: 0 0 4px; font-size: 22px; }
.bio-drawer .bd-role { margin: 0; font-size: 13px; color: var(--fg-3); }
.bio-drawer .bd-rule { height: 1px; background: var(--border-1); margin: 0 0 26px; }
.bio-drawer .bd-text p { margin: 0 0 18px; font-size: 16px; line-height: 1.72; color: var(--fg-2); text-wrap: pretty; }
.bio-drawer .bd-text p:last-child { margin-bottom: 0; }
@media(prefers-reduced-motion:reduce){ .bio-drawer, .bio-scrim { transition: none; } }

.hist-photo { margin: 40px 0 0; max-width: 400px; }
.hist-photo img { width: 100%; height: auto; display: block; border: 1px solid var(--border-1); border-radius: var(--r-md); }
.hist-photo figcaption { margin-top: 12px; font-size: 13px; line-height: 1.55; color: var(--fg-4); }

/* ---------- timeline (history) ---------- */
.timeline { position: relative; margin-top: 8px; padding-left: 26px; }
.timeline::before { content: ""; position: absolute; left: 4px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--green-400), var(--border-1)); }
.tl-item { position: relative; padding: 0 0 28px 8px; }
.tl-item::before { content: ""; position: absolute; left: -26px; top: 5px; width: 11px; height: 11px; border-radius: 50%; background: var(--green-400); box-shadow: var(--glow-green); border: 2px solid var(--bg-base); }
.tl-item .yr { font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; color: var(--green-300); }
.tl-item p { margin: 5px 0 0; font-size: 15.5px; color: var(--fg-2); max-width: 640px; }

/* ---------- case studies ---------- */
.case-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media(max-width:820px){ .case-grid { grid-template-columns: 1fr; } }
.case {
  display: flex; flex-direction: column; background: var(--surface-1);
  border: 1px solid var(--border-1); border-radius: var(--r-xl); overflow: hidden;
  transition: all .22s cubic-bezier(.22,1,.36,1);
}
.case:hover { border-color: var(--border-green); transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.case .vis { position: relative; aspect-ratio: 16/8; overflow: hidden; border-bottom: 1px solid var(--border-1); background: var(--bg-graphite); }
.case .vis canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.case .vis .badge { position: absolute; top: 14px; left: 14px; z-index: 2; }
.case .body { padding: 26px 28px 28px; }
.case h3 { margin: 6px 0 10px; font-size: 21px; }
.case p { margin: 0; font-size: 15px; }
.case .kpis { display: flex; gap: 26px; margin-top: 20px; flex-wrap: wrap; }
.case .kpis .k .v { font-family: var(--font-display); font-weight: 700; font-size: 26px; color: var(--green-300); line-height: 1; }
.case .kpis .k .l { margin-top: 6px; font-size: 12px; color: var(--fg-3); }

.badge {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono);
  font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--green-300);
  background: rgba(10,20,16,.6); -webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px); border: 1px solid var(--border-green);
  border-radius: var(--r-pill); padding: 7px 14px;
}

/* ---------- news / media ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media(max-width:880px){ .news-grid { grid-template-columns: 1fr 1fr; } }
@media(max-width:560px){ .news-grid { grid-template-columns: 1fr; } }
.news-card { display: flex; flex-direction: column; background: var(--surface-1); border: 1px solid var(--border-1); border-radius: var(--r-lg); overflow: hidden; transition: all .2s; }
.news-card:hover { border-color: var(--border-green); transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.news-card .vis { aspect-ratio: 16/9; position: relative; background: var(--bg-graphite); border-bottom: 1px solid var(--border-1); overflow: hidden; }
.news-card .vis canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.news-card .body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.news-card .meta { display: flex; gap: 12px; align-items: center; font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-4); margin-bottom: 12px; }
.news-card .meta .tag { color: var(--green-300); }
.news-card h3 { margin: 0 0 10px; font-size: 18px; line-height: 1.3; }
.news-card p { margin: 0 0 18px; font-size: 14.5px; flex: 1; }
.news-card .more { font-size: 14px; font-weight: 600; color: var(--spring); display: inline-flex; align-items: center; gap: 7px; }

.news-feature { display: grid; grid-template-columns: 1.2fr 1fr; gap: 0; background: var(--surface-1); border: 1px solid var(--border-green); border-radius: var(--r-xl); overflow: hidden; }
@media(max-width:820px){ .news-feature { grid-template-columns: 1fr; } }
.news-feature .vis { position: relative; min-height: 320px; background: var(--bg-graphite); }
.news-feature .vis canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.news-feature .body { padding: 44px 46px; align-self: center; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
@media(max-width:880px){ .contact-grid { grid-template-columns: 1fr; gap: 32px; } }
.contact-info .line { display: flex; gap: 15px; align-items: flex-start; padding: 18px 0; border-bottom: 1px solid var(--border-1); }
.contact-info .line:last-child { border-bottom: 0; }
.contact-info .tile { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 12px; background: var(--surface-tint); border: 1px solid var(--border-green); display: flex; align-items: center; justify-content: center; box-shadow: var(--glow-green); }
.contact-info .tile svg { color: var(--green-300); }
.contact-info .lab { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-3); margin: 2px 0 4px; }
.contact-info a.val, .contact-info .val { color: var(--fg-1); font-size: 16px; font-weight: 500; }
.contact-info a.val:hover { color: var(--spring); }
.contact-info .val-sub { display: block; margin-top: 4px; font-size: 14px; font-weight: 400; line-height: 1.55; color: var(--fg-3); }
.socials { display: flex; gap: 12px; margin-top: 24px; }
.socials a { width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--border-2); display: flex; align-items: center; justify-content: center; color: var(--fg-2); transition: all .18s; }
.socials a:hover { border-color: var(--border-green); color: var(--green-300); background: var(--surface-tint); }

.cform { background: var(--surface-1); border: 1px solid var(--border-1); border-radius: var(--r-xl); padding: 34px; }
.cform .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cform .row2 .field { min-width: 0; margin-top: 0; }
.cform .row2 input { width: 100%; box-sizing: border-box; min-width: 0; }
@media(max-width:460px){ .cform .row2 { grid-template-columns: 1fr; } }
.cform .field { margin-top: 16px; }
.cform .field:first-child { margin-top: 0; }
.cform label { display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-3); margin-bottom: 8px; }
.cform input, .cform select, .cform textarea {
  width: 100%; background: var(--bg-base); border: 1px solid var(--border-2); border-radius: var(--r-md);
  padding: 13px 15px; color: var(--fg-1); font-family: var(--font-body); font-size: 15px; outline: none; transition: .15s;
}
.cform textarea { resize: vertical; min-height: 120px; }
.cform input:focus, .cform select:focus, .cform textarea:focus { border-color: var(--green-400); box-shadow: 0 0 0 3px var(--focus-ring); }
.cform .btn { margin-top: 22px; width: 100%; justify-content: center; }
.cform .sent { text-align: center; padding: 40px 10px; }
.cform .sent .ring { width: 64px; height: 64px; border-radius: 50%; background: var(--surface-tint); border: 1px solid var(--border-green); display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; box-shadow: var(--glow-green); }
.cform .sent .ring svg { color: var(--green-300); }

/* ---------- footer additions ---------- */
.footer .foot-contact { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.footer .foot-contact a { color: var(--fg-2); font-size: 15px; }
.footer .foot-contact a:hover { color: var(--green-300); }
.footer .foot-social { display: flex; gap: 10px; margin-top: 16px; }
.footer .foot-social a { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--border-2); display: flex; align-items: center; justify-content: center; color: var(--fg-2); transition: .18s; }
.footer .foot-social a:hover { border-color: var(--border-green); color: var(--green-300); }

/* ---------- targets explorer ---------- */
.tgx-bar { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.tgx-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.tgx-tab { display: flex; align-items: center; gap: 8px; cursor: pointer; font-family: var(--font-body); font-size: 14.5px; font-weight: 600; padding: 10px 18px; border-radius: var(--r-pill); border: 1px solid var(--border-2); background: transparent; color: var(--fg-2); transition: all .18s; }
.tgx-tab i { display: inline-flex; color: var(--green-300); }
.tgx-tab .cnt { font-family: var(--font-mono); font-size: 11px; margin-left: 2px; color: var(--fg-4); }
.tgx-tab:hover { border-color: var(--border-green); }
.tgx-tab.active { border-color: transparent; background: var(--green-400); color: var(--on-green); }
.tgx-tab.active i { color: var(--on-green); }
.tgx-tab.active .cnt { color: var(--on-green); opacity: .75; }
.tgx-search { position: relative; width: 280px; max-width: 100%; display: flex; align-items: center; }
.tgx-search i { position: absolute; left: 14px; color: var(--fg-4); }
.tgx-search input { width: 100%; box-sizing: border-box; background: var(--surface-1); border: 1px solid var(--border-2); border-radius: var(--r-md); padding: 12px 14px 12px 40px; color: var(--fg-1); font-family: var(--font-body); font-size: 15px; outline: none; }
.tgx-summary { margin: 0 0 20px; }
.tgx-legend { display: flex; align-items: center; gap: 8px; margin-bottom: 28px; }
.tgx-legend .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--spring); box-shadow: 0 0 8px var(--spring); flex: none; }
.tgx-legend { font-size: 15px; color: var(--fg-1); }
.tgx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.tgx-card { background: var(--surface-1); border: 1px solid var(--border-1); border-radius: var(--r-lg); padding: 24px; transition: border-color .2s, box-shadow .2s; }
.tgx-card:hover { border-color: var(--border-green); box-shadow: var(--glow-green); }
.tgx-card .cat { margin-bottom: 8px; color: var(--fg-4); }
.tgx-card h4 { margin: 0 0 14px; font-size: 16px; }
.tgx-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tgx-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--fg-2); background: var(--surface-2); border: 1px solid var(--border-1); border-radius: var(--r-pill); padding: 6px 12px 6px 10px; }
.tgx-chip .ck { width: 6px; height: 6px; border-radius: 50%; background: var(--spring); box-shadow: 0 0 6px var(--spring); flex: none; }
.tgx-empty { text-align: center; padding: 48px 0; }

/* ---------- generic eyebrow centering ---------- */
.sec-head.center .cp-eyebrow { justify-content: center; }

.team-grid.roster { grid-template-columns: 1fr 1fr; gap: 10px; }
@media(max-width:680px){ .team-grid.roster { grid-template-columns: 1fr; } }
.team-grid.roster .member { display: flex; flex-direction: row; align-items: center; text-align: left; gap: 18px; padding: 14px 22px; }
.team-grid.roster .member .avatar { width: 62px; height: 62px; margin: 0; flex: 0 0 auto; }
.team-grid.roster .member h4 { margin: 0; }
.team-grid.roster .member .role { margin: 3px 0 0; }

body.rhythm-compact .section { padding: 56px 0; }
body.rhythm-compact .sec-head { margin-bottom: 28px; }
body.rhythm-compact .feature-row, body.rhythm-compact .team-grid, body.rhythm-compact .proj-grid, body.rhythm-compact .case-grid, body.rhythm-compact .news-grid, body.rhythm-compact .statband { gap: 10px; }
body.rhythm-compact .member { padding: 20px 16px 18px; }
body.rhythm-compact .member .avatar { width: 84px; height: 84px; margin-bottom: 12px; }
body.rhythm-compact .timeline { padding-left: 22px; }
body.rhythm-compact .tl-item { padding-bottom: 18px; }
body.rhythm-roomy .section { padding: 140px 0; }
body.rhythm-roomy .sec-head { margin-bottom: 68px; }
body.rhythm-roomy .feature-row, body.rhythm-roomy .team-grid, body.rhythm-roomy .proj-grid, body.rhythm-roomy .case-grid, body.rhythm-roomy .news-grid { gap: 28px; }
body.rhythm-roomy .member { padding: 40px 26px 32px; }
body.rhythm-roomy .tl-item { padding-bottom: 40px; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s cubic-bezier(.22,1,.36,1), transform .6s cubic-bezier(.22,1,.36,1); }
.reveal.in { opacity: 1; transform: none; }
@media(prefers-reduced-motion:reduce){ .reveal { opacity: 1; transform: none; } }

/* ---------- what we do (scenario typer) ---------- */
@keyframes cp-caret{0%,49%{opacity:1}50%,100%{opacity:0}}
.wwd-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 64px; align-items: center; }
@media(max-width:900px){ .wwd-grid { grid-template-columns: 1fr; gap: 40px; } }
.wwd-ask { color: var(--fg-4); margin-bottom: 20px; }
.wwd-q-wrap { height: 260px; display: flex; align-items: flex-start; }
.wwd-q { margin: 0; font-size: 34px; line-height: 1.28; color: var(--fg-1); text-wrap: pretty; }
.wwd-q .quo { color: var(--fg-4); }
.wwd-caret { display: inline-block; width: 3px; margin-left: 2px; background: var(--spring); vertical-align: baseline; }
.wwd-caret.blink { animation: cp-caret 1.1s step-end infinite; }
.wwd-dots { display: flex; gap: 10px; margin-top: 36px; }
.wwd-dots button { width: 44px; height: 6px; border: none; padding: 0; cursor: pointer; border-radius: 3px; background: var(--border-2); transition: width .25s cubic-bezier(0.22,1,0.36,1), background .25s; }
.wwd-dots button.active { width: 84px; background: var(--border-2); }
.wwd-dots button { position: relative; }
.wwd-dots button::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--green-400); transform: scaleX(0); transform-origin: left center; }
.wwd-dots button.active.loading::after { transform: scaleX(1); transition: transform var(--fill-ms, 3600ms) linear; }
@media(prefers-reduced-motion:reduce){ .wwd-dots button.active::after { transform: scaleX(1); transition: none; } }
.wwd-dots button::before { content: ""; position: absolute; inset: -14px -6px; }
.wwd-spine { background: var(--surface-1); border: 1px solid var(--border-1); border-radius: var(--r-lg); padding: 40px 40px 12px; transition: opacity 260ms cubic-bezier(0.22,1,0.36,1), transform 260ms cubic-bezier(0.22,1,0.36,1); }
.wwd-spine.fading { opacity: 0; transform: translateY(8px); }
.wwd-step { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: start; }
.wwd-rail { display: flex; flex-direction: column; align-items: center; align-self: stretch; }
.wwd-rail .node { width: 13px; height: 13px; border-radius: 50%; flex: none; margin-top: 4px; background: transparent; border: 2px solid var(--border-2); }
.wwd-rail .node.on { background: var(--green-400); border-color: var(--green-400); box-shadow: 0 0 16px rgba(93,171,73,.55); }
.wwd-rail .line { width: 1px; flex: 1; min-height: 28px; background: var(--border-1); margin-top: 6px; }
.wwd-body { padding-bottom: 32px; }
.wwd-body .cp-label.muted { color: var(--fg-4); }
.wwd-val { margin: 6px 0 0; font-size: 20px; line-height: 1.35; }

/* ---------- modality breakdown ---------- */
@keyframes cp-rise{from{opacity:0}to{opacity:1}}
.mod-grid { display: grid; grid-template-columns: minmax(280px,380px) 1fr; gap: 72px; align-items: start; }
@media(max-width:1080px){ .mod-grid { grid-template-columns: 1fr; gap: 40px; } .mod-cells { max-width: 380px; } }
.mod-cells { display: grid; grid-template-columns: repeat(10,1fr); gap: 6px; }
.mod-cells span { aspect-ratio: 1; border-radius: 3px; cursor: pointer; opacity: .82; transition: opacity .22s cubic-bezier(0.22,1,0.36,1), transform .22s cubic-bezier(0.22,1,0.36,1), box-shadow .22s; animation: cp-rise .5s cubic-bezier(0.22,1,0.36,1) backwards; }
.mod-cells span.dim { opacity: .14; }
.mod-cells span.on { opacity: 1; transform: scale(1.14); }
.mod-rows { display: flex; flex-direction: column; gap: 14px; }
.mod-row { cursor: pointer; padding: 20px 24px; border-radius: var(--r-lg); background: transparent; border: 1px solid transparent; transition: background .2s, border-color .2s, opacity .2s; }
.mod-row.on { background: var(--surface-1); border-color: var(--border-green); }
.mod-row.dim { opacity: .42; }
.mod-row .top { display: flex; align-items: baseline; gap: 16px; margin-bottom: 6px; }
.mod-row .pct { font-size: 40px; font-weight: 700; letter-spacing: -0.02em; width: 96px; flex: none; line-height: 1; }
.mod-row h4 { margin: 0; font-size: 21px; }
.mod-row .desc { margin: 0 0 0 112px; color: var(--fg-3); font-size: 15.5px; max-width: 520px; }
.mod-tags { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 0 112px; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .3s cubic-bezier(0.22,1,0.36,1), opacity .25s, margin-top .3s; }
.mod-row.on .mod-tags { max-height: 80px; opacity: 1; margin-top: 14px; }
.mod-tags span { font-size: 12.5px; letter-spacing: .04em; color: var(--fg-2); background: var(--surface-2); border: 1px solid var(--border-1); border-radius: var(--r-pill); padding: 5px 12px; white-space: nowrap; }
@media(max-width:1080px){ .mod-row .desc, .mod-tags { margin-left: 0; } .mod-row.on .mod-tags { max-height: 120px; } }

/* ---------- legal pages ---------- */
.legal-wrap { display: grid; grid-template-columns: 250px 1fr; gap: 64px; align-items: start; }
@media(max-width:960px){ .legal-wrap { grid-template-columns: 1fr; gap: 32px; } .legal-toc { position: static !important; } }
.legal-toc { position: sticky; top: 96px; border-left: 1px solid var(--border-1); padding-left: 20px; }
.legal-toc h6 { margin: 0 0 14px; font-family: var(--font-body); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-4); font-weight: 600; }
.legal-toc a { display: block; padding: 5px 0; font-size: 14px; color: var(--fg-3); text-decoration: none; line-height: 1.4; }
.legal-toc a:hover { color: var(--spring); }
.legal-body { max-width: 760px; }
.legal-body h2 { font-size: 26px; margin: 56px 0 16px; letter-spacing: -0.01em; scroll-margin-top: 100px; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body h3 { font-size: 19px; margin: 34px 0 12px; color: var(--fg-1); scroll-margin-top: 100px; }
.legal-body h4 { font-size: 16px; margin: 26px 0 10px; color: var(--fg-2); }
.legal-body p { font-size: 16.5px; line-height: 1.7; color: var(--fg-2); margin: 0 0 16px; text-wrap: pretty; }
.legal-body ul { margin: 0 0 18px; padding-left: 22px; display: flex; flex-direction: column; gap: 9px; }
.legal-body li { font-size: 16px; line-height: 1.62; color: var(--fg-2); }
.legal-body li ul { margin: 10px 0 0; }
.legal-body strong { color: var(--fg-1); font-weight: 600; }
.legal-body em { color: var(--fg-3); }
.legal-body a { color: var(--spring); }
.legal-caps { font-size: 14.5px !important; line-height: 1.65 !important; color: var(--fg-3) !important; }
.legal-note { background: var(--surface-1); border: 1px solid var(--border-1); border-radius: var(--r-lg); padding: 22px 26px; margin: 0 0 34px; }
.legal-note p { margin: 0; font-size: 15.5px; color: var(--fg-3); }
.legal-addr { background: var(--surface-1); border: 1px solid var(--border-1); border-radius: var(--r-md); padding: 20px 24px; margin: 0 0 18px; font-size: 15.5px; line-height: 1.65; color: var(--fg-2); }
.legal-table { width: 100%; border-collapse: collapse; margin: 0 0 22px; font-size: 14.5px; }
.legal-table th { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border-2); color: var(--fg-4); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; vertical-align: bottom; }
.legal-table td { padding: 14px; border-bottom: 1px solid var(--border-1); color: var(--fg-2); line-height: 1.55; vertical-align: top; }
.legal-table td:first-child { color: var(--fg-1); font-weight: 600; white-space: nowrap; }
.legal-dl a.dl { display: inline-flex; align-items: center; gap: 9px; font-size: 15px; color: var(--fg-1); text-decoration: none; border: 1px solid var(--border-2); border-radius: var(--r-pill); padding: 10px 20px; transition: border-color .2s, background .2s; }
.legal-dl a.dl:hover { border-color: var(--border-green); background: var(--surface-1); }
.foot-bottom .legal-links { display: flex; gap: 22px; flex-wrap: wrap; }
.foot-bottom .legal-links a { color: inherit; text-decoration: none; }
.foot-bottom .legal-links a:hover { color: var(--spring); }
