@import url("../_ds/fonts.css");
@import url("../_ds/theme.css");
@import url("../_shared/chrome.css");
@import url("../_shared/components.css");
@import url("../_shared/audience-switcher.css");

/* ──────────────────────────────────────────────────────────
   /about — the team behind Zenrows. Fully-remote, Bilbao-born,
   profitable, deliberately small. Signature = the distributed
   team network. Teal = remote / together; purple = the closer.
─────────────────────────────────────────────────────────── */
main { position: relative; z-index: 1; }
.ab-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.back-to-top, .back-to-top * { cursor: none; }
code { font-family: var(--font-code); }

.ab-h2 { margin: 0; font-family: var(--font-display); font-weight: 500;
  font-size: clamp(34px, 4.8vw, 68px); line-height: 0.98; letter-spacing: var(--tracking-dense, -0.024em); color: var(--text-primary); }
.ab-blur[data-reveal] { opacity: 0; filter: blur(16px); transform: translateZ(0); backface-visibility: hidden;
  will-change: filter, opacity; transition: opacity 0.7s ease, filter 0.7s ease; }
.ab-blur[data-reveal].is-in { opacity: 1; filter: blur(0); transform: translateZ(0); }

/* ═══ Act 1 — Hero + distributed-team world map ═══ */
.ab-hero { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; gap: clamp(36px, 6vh, 72px);
  padding: clamp(116px, 15vh, 168px) var(--page-gutter, 7vw) clamp(48px, 7vh, 84px); }
.ab-hero-copy { width: 100%; max-width: 1320px; margin: 0 auto; }
.ab-hero-h1 { margin: 0; font-family: var(--font-display); font-weight: 500;
  font-size: var(--mkt-hero-xl); line-height: 0.94; letter-spacing: var(--tracking-denser, -0.03em); color: var(--text-primary); }
.ab-hero-sub { margin: clamp(20px, 2.6vh, 30px) 0 0; font-family: var(--font-base); font-size: var(--mkt-body);
  line-height: 1.55; color: var(--text-secondary); max-width: 46ch; }
.ab-hero-cta { margin: clamp(26px, 3.5vh, 38px) 0 0; }
.ab-hero-note { font-family: var(--font-code); font-size: 12.5px; color: var(--text-tertiary); }

.ab-net { position: relative; width: 100%; max-width: 1320px; margin: 0 auto; aspect-ratio: 2.62 / 1; }
.ab-net-map, .ab-net-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.ab-mapdot { fill: rgba(255, 255, 255, 0.12); }
.ab-net.is-in .ab-mapdot { animation: ab-mapfade 0.9s ease both; }
@keyframes ab-mapfade { from { opacity: 0; } to { opacity: 1; } }
.ab-net-line { stroke: var(--border-subtle); stroke-width: 0.3; fill: none; vector-effect: non-scaling-stroke;
  stroke-dasharray: 3 3; opacity: 0; transition: opacity 0.8s ease; }
.ab-net.is-in .ab-net-line { opacity: 1; }
.ab-net-dots { position: absolute; inset: 0; }
.ab-net-dot { position: absolute; appearance: none; -webkit-appearance: none; border: 0; padding: 0; margin: 0;
  width: 12px; height: 12px; border-radius: 50%; background: #7ADAE6;
  transform: translate(-50%, -50%); cursor: pointer; transition: box-shadow 0.25s ease, transform 0.25s ease; }
.ab-net-dot::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; }
.ab-net-dot:hover, .ab-net-dot.is-active { transform: translate(-50%, -50%) scale(1.25); }
.ab-net-label { position: absolute; transform: translate(-50%, 9px); font-family: var(--font-code); font-size: 11px;
  letter-spacing: 0.02em; color: var(--text-tertiary); white-space: nowrap; pointer-events: none;
  opacity: 0; transition: opacity 0.6s ease, color 0.25s ease; }
.ab-net.is-in .ab-net-label { opacity: 1; }
.ab-net-label--hq { color: #b69cff; }
.ab-net-dot:hover, .ab-net-dot.is-active { background: #7ADAE6; box-shadow: 0 0 0 5px color-mix(in srgb, #7ADAE6 18%, transparent); }
.ab-net-dot--hq { width: 15px; height: 15px; background: #7C4FE8; box-shadow: 0 0 0 6px color-mix(in srgb, #7C4FE8 16%, transparent); }
.ab-net-dot--hq:hover, .ab-net-dot--hq.is-active { background: #7C4FE8; box-shadow: 0 0 0 8px color-mix(in srgb, #7C4FE8 22%, transparent); }
.ab-net-dot.is-pulse { animation: ab-pulse 2.6s ease-in-out infinite; }
@keyframes ab-pulse { 0%, 100% { box-shadow: 0 0 0 4px color-mix(in srgb, #7ADAE6 6%, transparent); } 50% { box-shadow: 0 0 0 9px color-mix(in srgb, #7ADAE6 14%, transparent); } }
.ab-net-tip { position: absolute; transform: translate(-50%, -135%); padding: 6px 11px; border: 1px solid var(--border-subtle);
  border-radius: 999px; background: var(--background); font-family: var(--font-code); font-size: 12px; color: var(--text-primary);
  white-space: nowrap; opacity: 0; transition: opacity 0.18s ease; pointer-events: none; z-index: 3; }
.ab-net-tip.is-on { opacity: 1; }

/* ═══ Act 2 — Origin (mirrored editorial) ═══ */
.ab-origin { padding: clamp(96px, 15vh, 180px) var(--page-gutter, 7vw); }
.ab-origin-inner { max-width: 1240px; margin: 0 auto; display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(40px, 5vw, 96px); align-items: start; }
.ab-origin-lead { margin: clamp(20px, 2.6vh, 30px) 0 0; font-family: var(--font-base); font-size: var(--mkt-lead);
  line-height: 1.5; color: var(--text-primary); max-width: 40ch; }
.ab-origin-body { margin: clamp(16px, 2vh, 22px) 0 0; font-family: var(--font-base); font-size: var(--mkt-body);
  line-height: 1.6; color: var(--text-secondary); max-width: 46ch; }
.ab-origin-facts { list-style: none; margin: clamp(6px, 1vh, 12px) 0 0; padding: 0; }
.ab-fact { display: flex; flex-direction: column; gap: 4px; padding: clamp(16px, 2.2vh, 24px) 0; border-top: 1px solid var(--border-subtle); }
.ab-fact:last-child { border-bottom: 1px solid var(--border-subtle); }
.ab-fact-k { font-family: var(--font-display); font-weight: 500; font-size: clamp(18px, 1.8vw, 24px); color: var(--text-primary); letter-spacing: var(--tracking-dense, -0.02em); }
.ab-fact-v { font-family: var(--font-base); font-size: var(--mkt-body-sm); line-height: 1.45; color: var(--text-tertiary); }

/* ═══ Saturated bands ═══ */
.ab-band { position: relative; }
.ab-band-fill { position: absolute; inset: 0; z-index: 0; clip-path: circle(0% at 50% 110%); }
.ab-band--teal .ab-band-fill { background: #7ADAE6; }
.ab-band--purple .ab-band-fill { background: #7C4FE8; }
.ab-band.is-in .ab-band-fill { clip-path: circle(155% at 50% 110%); transition: clip-path 1.2s cubic-bezier(0.22, 1, 0.36, 1); }
.ab-band-inner { position: relative; z-index: 1; max-width: 1280px; margin: 0 auto;
  padding: clamp(110px, 19vh, 210px) var(--page-gutter, 7vw); }
.ab-band-inner--center { display: grid; justify-items: center; text-align: center; }
.ab-band-h2 { margin: 0; font-family: var(--font-display); font-weight: 500;
  font-size: var(--mkt-hero); line-height: 0.94; letter-spacing: var(--tracking-denser, -0.03em); }
.ab-band-lead { margin: clamp(22px, 3vh, 34px) 0 0; font-family: var(--font-base); font-size: var(--mkt-lead); line-height: 1.5; max-width: 56ch; }
.ab-band--teal .ab-band-h2 { color: #1D1612; }
.ab-band--teal .ab-band-lead { color: rgba(29, 22, 18, 0.82); }
.ab-band--purple .ab-band-h2 { color: #fff; }
.ab-band--purple .ab-band-lead { color: rgba(255, 255, 255, 0.86); }
.ab-band-inner--center .ab-band-lead { margin-left: auto; margin-right: auto; }

.ab-remote { list-style: none; margin: clamp(44px, 6vh, 72px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 48px); }
.ab-remote-item { display: flex; flex-direction: column; gap: 8px; padding-top: clamp(18px, 2.4vh, 26px); border-top: 1px solid rgba(29, 22, 18, 0.24); }
.ab-remote-k { font-family: var(--font-display); font-weight: 500; font-size: var(--mkt-h4); line-height: 1.05; color: #1D1612; letter-spacing: var(--tracking-dense, -0.02em); }
.ab-remote-v { font-family: var(--font-base); font-size: var(--mkt-body-sm); line-height: 1.45; color: rgba(29, 22, 18, 0.7); }

/* ═══ Act 4 — Values (interactive accordion) ═══ */
.ab-values { padding: clamp(96px, 15vh, 180px) var(--page-gutter, 7vw); }
.ab-values-inner { max-width: 1100px; margin: 0 auto; }
.ab-values-head { max-width: 680px; }
.ab-values-lead { margin: 16px 0 0; font-family: var(--font-base); font-size: var(--mkt-body); line-height: 1.55; color: var(--text-secondary); }
.ab-vlist { list-style: none; margin: clamp(40px, 6vh, 64px) 0 0; padding: 0; }
.ab-vrow { border-top: 1px solid var(--border-subtle); }
.ab-vrow:last-child { border-bottom: 1px solid var(--border-subtle); }
.ab-vrow-head { width: 100%; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: clamp(16px, 2.4vw, 36px);
  background: none; border: 0; cursor: pointer; text-align: left; padding: clamp(22px, 3vh, 34px) 0; }
.ab-vrow-n { font-family: var(--font-code); font-size: var(--mkt-body-sm); color: var(--text-quaternary); font-variant-numeric: tabular-nums; }
.ab-vrow-k { font-family: var(--font-display); font-weight: 500; font-size: var(--mkt-h3); line-height: 1.02;
  letter-spacing: var(--tracking-dense, -0.024em); color: var(--text-quaternary); transition: color 0.25s ease; }
.ab-vrow:hover .ab-vrow-k, .ab-vrow.is-open .ab-vrow-k { color: var(--text-primary); }
.ab-vrow-plus { position: relative; width: 18px; height: 18px; flex: none; }
.ab-vrow-plus::before, .ab-vrow-plus::after { content: ""; position: absolute; background: var(--text-tertiary); transition: transform 0.3s ease, background 0.25s ease; }
.ab-vrow-plus::before { left: 0; right: 0; top: 8px; height: 2px; }
.ab-vrow-plus::after { top: 0; bottom: 0; left: 8px; width: 2px; }
.ab-vrow.is-open .ab-vrow-plus::after { transform: scaleY(0); }
.ab-vrow.is-open .ab-vrow-plus::before { background: #7ADAE6; }
.ab-vrow-body { max-height: 0; overflow: hidden; transition: max-height 0.4s ease, opacity 0.3s ease; opacity: 0; }
.ab-vrow.is-open .ab-vrow-body { max-height: 220px; opacity: 1; }
.ab-vrow-body p { margin: 0 0 clamp(24px, 3vh, 34px); max-width: 64ch; padding-left: clamp(34px, 4vw, 56px);
  font-family: var(--font-base); font-size: var(--mkt-body); line-height: 1.55; color: var(--text-secondary); }

/* ═══ Act 5 — What we build (mirrored two-col) ═══ */
.ab-build { padding: clamp(96px, 15vh, 180px) var(--page-gutter, 7vw); }
.ab-build-inner { max-width: 1200px; margin: 0 auto; display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr); gap: clamp(40px, 5vw, 96px); align-items: center; }
.ab-build-lead { margin: clamp(20px, 2.6vh, 30px) 0 0; font-family: var(--font-base); font-size: var(--mkt-body); line-height: 1.55; color: var(--text-secondary); max-width: 46ch; }
.ab-build-link { margin: clamp(22px, 3vh, 30px) 0 0; }
.ab-prims { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--border-subtle); border: 1px solid var(--border-subtle); border-radius: 16px; overflow: hidden; }
.ab-prim { background: var(--background); padding: clamp(18px, 2.2vw, 28px); display: flex; flex-direction: column; gap: 6px; }
.ab-prim-k { font-family: var(--font-display); font-weight: 500; font-size: var(--mkt-lead); color: var(--text-primary); letter-spacing: var(--tracking-dense, -0.02em); }
.ab-prim-v { font-family: var(--font-base); font-size: var(--mkt-body-xs); line-height: 1.4; color: var(--text-tertiary); }

/* ═══ Topbar inversion ═══ */

.ab-end-cta { margin: clamp(34px, 5vh, 52px) auto 0; align-items: center; }
.ab-end-cta .link-cta { align-self: center; }
.ab-band--purple .ab-end-roles { color: #fff; }
.ab-band--purple .ab-end-roles:hover { color: rgba(255, 255, 255, 0.72); }

/* ═══ Act 4 — Team grid (avatars) ═══ */
.ab-team { padding: clamp(96px, 15vh, 180px) var(--page-gutter, 7vw); }
.ab-team-inner { max-width: 1240px; margin: 0 auto; }
.ab-team-head { max-width: 680px; }
.ab-team-lead { margin: 16px 0 0; font-family: var(--font-base); font-size: var(--mkt-body); line-height: 1.55; color: var(--text-secondary); }
.ab-team-grid { list-style: none; margin: clamp(44px, 6vh, 68px) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: clamp(24px, 3vw, 44px) clamp(16px, 2vw, 28px); }
.ab-member { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.ab-member-photo { position: relative; display: block; width: 100%; aspect-ratio: 1 / 1; border-radius: 14px;
  overflow: hidden; border: 1px solid var(--border-subtle); margin-bottom: 12px; background: #1D1612; }
/* default: full-res purple/teal duotone (SVG filter); hover reveals the photo */
.ab-member-photo img { width: 100%; height: 100%; object-fit: cover; display: block;
  filter: url(#ab-duo) contrast(1.04); transition: filter 0.45s ease, transform 0.6s cubic-bezier(0.22,1,0.36,1); }
.ab-member:hover .ab-member-photo img, .ab-member:focus-within .ab-member-photo img { filter: none; transform: scale(1.04); }
/* Roll-the-dice control */
.ab-dice-row { margin-top: clamp(24px, 3.5vh, 36px); display: flex; align-items: center; gap: clamp(14px, 2vw, 22px); flex-wrap: wrap; }
.ab-dice { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-base); font-size: var(--mkt-body-sm);
  color: var(--text-primary); background: none; border: 1px solid var(--text-tertiary); border-radius: 999px; padding: 11px 20px;
  cursor: pointer; transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease; white-space: nowrap; }
.ab-dice:hover { border-color: var(--text-primary); }
.ab-dice[disabled] { opacity: 0.6; cursor: default; }
.ab-dice-ico { width: 18px; height: 18px; flex: none; transition: transform 0.4s cubic-bezier(0.22,1,0.36,1); }
.ab-dice.is-rolling .ab-dice-ico { animation: ab-dice-spin 0.5s linear infinite; }
@keyframes ab-dice-spin { to { transform: rotate(360deg); } }
.ab-dice-out { margin: 0; flex: 1 1 240px; min-width: 0; font-family: var(--font-base); font-size: var(--mkt-body); line-height: 1.4; color: var(--text-secondary); }
.ab-dice-out strong { color: var(--text-primary); font-weight: 500; }

/* rolling / landed member states */
.ab-member.is-rolling .ab-member-photo img, .ab-member.is-landed .ab-member-photo img { filter: none; }
.ab-member.is-landed .ab-member-photo img { transform: scale(1.04); }
.ab-member.is-rolling .ab-member-photo { border-color: color-mix(in srgb, #7ADAE6 60%, var(--border-subtle)); }
.ab-member.is-landed .ab-member-photo { border-color: #7C4FE8; box-shadow: 0 0 0 2px #7C4FE8, 0 14px 34px -16px rgba(0,0,0,0.65); }
.ab-member.is-landed .ab-member-name { color: var(--text-primary); }

.ab-member-name { font-family: var(--font-display); font-weight: 500; font-size: var(--mkt-body);
  line-height: 1.15; letter-spacing: var(--tracking-dense, -0.018em); color: var(--text-primary); }
.ab-member-role { font-family: var(--font-base); font-size: var(--mkt-body-xs); line-height: 1.35; color: var(--text-tertiary); }

/* ═══ Act 6 — Who builds on Zenrows (industries) ═══ */
.ab-ind { padding: clamp(96px, 15vh, 180px) var(--page-gutter, 7vw); }
.ab-ind-inner { max-width: 1240px; margin: 0 auto; }
.ab-ind-head { max-width: 680px; }
.ab-ind-lead { margin: 16px 0 0; font-family: var(--font-base); font-size: var(--mkt-body); line-height: 1.55; color: var(--text-secondary); }
.ab-ind-grid { list-style: none; margin: clamp(44px, 6vh, 68px) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--border-subtle);
  border: 1px solid var(--border-subtle); border-radius: 18px; overflow: hidden; }
.ab-ind-card { background: var(--background); padding: clamp(28px, 3vw, 48px); display: flex; flex-direction: column; gap: 12px; }
.ab-ind-k { font-family: var(--font-display); font-weight: 500; font-size: var(--mkt-h4); line-height: 1.05;
  letter-spacing: var(--tracking-dense, -0.022em); color: var(--text-primary); }
.ab-ind-v { font-family: var(--font-base); font-size: var(--mkt-body); line-height: 1.5; color: var(--text-tertiary); max-width: 36ch; }

/* ═══ Breakpoints ═══ */
@media (max-width: 1000px) {
  .ab-hero { min-height: 0; }
  .ab-origin-inner { grid-template-columns: 1fr; gap: clamp(32px, 5vh, 48px); }
  .ab-build-inner { grid-template-columns: 1fr; gap: clamp(32px, 5vh, 48px); }
  .ab-remote { grid-template-columns: 1fr; gap: clamp(16px, 3vh, 26px); }
  .ab-ind-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .ab-net-label { display: none; }
  .ab-net-label--hq { display: block; }
}
@media (max-width: 560px) {
  .ab-prims { grid-template-columns: 1fr; }
  .ab-ind-grid { grid-template-columns: 1fr; }
  .ab-team-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
  .ab-vrow-head { gap: 12px; }
  .ab-vrow-body p { padding-left: 0; }
}
@media (min-width: 1600px) {
  .ab-hero-copy, .ab-net { max-width: 1480px; }
  .ab-band-inner { max-width: 1440px; }
}
@media (prefers-reduced-motion: reduce) {
  .ab-band.is-in .ab-band-fill { transition: none; }
  .ab-net-dot.is-pulse { animation: none; }
  .ab-net.is-in .ab-mapdot { animation: none; }
}
