/* ============================================================
   ZORIYA — unifying technical design system
   mono labels + services index + market + network sections
   ============================================================ */

:root {
  --mono: "IBM Plex Mono", "SFMono-Regular", Menlo, Consolas, monospace;
}

/* ---- unified mono section labels ----------------------------------- */
.eyebrow,
.zf-eyebrow, .za-eyebrow, .zu-eyebrow, .mc-eyebrow,
.menu-eyebrow {
  font-family: var(--mono);
  font-weight: 500;
  font-size: clamp(11px, 0.75vw, 12.5px);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.eyebrow::before { content: none; }

/* keep new sections' content above the scroll thread */
.suite-head, .suite-list,
.market-head, .market-row, .market-close,
.network-head, .net-grid, .builton,
.hero-corner { position: relative; z-index: 2; }

/* hero corner label */
.hero-corner {
  position: absolute;
  left: var(--pad-x);
  bottom: clamp(96px, 14vh, 130px);
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
  z-index: 2;
}

/* ---- 01 · WHAT WE DO — services index ------------------------------- */
/* curtain effect: the services index pins at the top and the dark problem
   section immediately lifts up OVER it — no visible white/black boundary scroll */
/* --suite-os (set by main.js) = how much taller the list is than the
   viewport. Short screens get that much extra runway, so the full list —
   row 05 included — scrolls in before the curtain phase; on tall screens
   it is 0 and this is exactly the original geometry. */
.suite-track { height: calc(100svh + 100vh + var(--suite-os, 0px)); position: relative; }
.suite-track .suite {
  /* pin offset by the overshoot: on short screens the list scrolls up just
     enough to bring row 05 in, then pins with its bottom at the viewport
     edge for the curtain. Tall screens: overshoot 0 = the original top: 0. */
  position: sticky; top: calc(-1 * var(--suite-os, 0px)); min-height: 100svh;
  background: var(--paper);
  display: flex; flex-direction: column; justify-content: center;
}
.suite { padding-block: clamp(64px, 9vh, 130px); }
.suite-head { margin-bottom: clamp(40px, 6vh, 72px); display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.suite-list { display: flex; flex-direction: column; border-bottom: 1px solid rgba(14,14,16,.14); }
.suite-row {
  display: grid;
  grid-template-columns: 52px 1.05fr 1.15fr auto;
  align-items: baseline;
  gap: clamp(14px, 2.4vw, 36px);
  padding: clamp(20px, 2.8vh, 30px) 8px;
  border-top: 1px solid rgba(14,14,16,.14);
  text-decoration: none;
  color: var(--ink);
  transition: background .35s var(--ease-soft), padding-left .35s var(--ease);
}
.suite-row:hover { background: var(--cream); padding-left: 22px; }
.suite-idx { font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--cobalt); letter-spacing: .08em; }
.suite-name { font-size: clamp(22px, 2.4vw, 34px); font-weight: 400; letter-spacing: -0.02em; line-height: 1.05; }
.suite-out { font-size: clamp(14px, 1.1vw, 16.5px); line-height: 1.5; color: var(--ink-soft); text-wrap: pretty; }
.suite-arrow { font-size: 20px; color: var(--cobalt); opacity: 0; transform: translateX(-8px); transition: opacity .3s var(--ease), transform .3s var(--ease); }
.suite-row:hover .suite-arrow { opacity: 1; transform: none; }
.suite-tag {
  display: inline-block; vertical-align: middle;
  font-family: var(--mono); font-size: 10.5px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  color: #fff; background: var(--cobalt);
  padding: 5px 10px 4px; border-radius: 100px;
  margin-left: 12px; transform: translateY(-3px);
}
.suite-hi { background: var(--pale-blue); border-top-color: var(--cobalt); }
.suite-hi:hover { background: var(--pale-blue); }
.suite-hi + .suite-row { border-top-color: var(--cobalt); }
@media (max-width: 860px) {
  .suite-row { grid-template-columns: 40px 1fr; }
  .suite-out { grid-column: 2; }
  .suite-arrow { display: none; }
}

/* ---- 03 · THE MARKET — static stat strip ---------------------------- */
.market { padding-block: clamp(64px, 9vh, 130px); background: linear-gradient(180deg, #fff 0%, #fff 62%, var(--paper) 100%); }
.market-head { margin-bottom: clamp(36px, 5vh, 60px); display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.market-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3.5vw, 56px);
}
.market-stat { border-top: 1px solid rgba(14,14,16,.2); padding-top: 22px; }
.market-num {
  font-family: var(--serif);
  font-size: clamp(52px, 6vw, 96px);
  font-weight: 380;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--cobalt);
  display: block;
  margin-bottom: 14px;
}
.market-stat p { font-size: clamp(14px, 1.15vw, 17px); line-height: 1.5; color: var(--ink-soft); max-width: 30ch; text-wrap: pretty; }
.market-close {
  margin-top: clamp(40px, 6vh, 64px);
  display: flex; flex-direction: column; gap: 10px;
  max-width: 62ch;
}
.market-close .lede { max-width: none; }
.market-src { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: rgba(14,14,16,.42); }
@media (max-width: 760px) { .market-row { grid-template-columns: 1fr; } }

/* ---- 14 · THE NETWORK ------------------------------------------------ */
.network { padding-block: clamp(64px, 9vh, 130px); }
.network-head { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; margin-bottom: clamp(32px, 4.5vh, 56px); }
/* ---- POWERED BY — full-width sign across the bottom of the hero ----- */
.powered {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding-block: clamp(18px, 2.6vh, 28px);
  padding-inline: clamp(48px, 6vw, 110px);
  border-top: 1px solid rgba(14,14,16,.12);
  background: var(--paper, #FBFAF7);
  display: flex; align-items: center;
  gap: clamp(20px, 2.6vw, 40px);
  overflow: hidden;
}
.powered-label {
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase;
  color: rgba(14,14,16,.42); flex: none;
}
.pb-marquee {
  flex: 1; min-width: 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.pb-track { display: flex; width: max-content; animation: pbScroll 36s linear infinite; }
.powered:hover .pb-track { animation-play-state: paused; }
.pb-seq { display: flex; align-items: center; flex: none; }
.pb-item {
  flex: none; font-weight: 600; letter-spacing: -0.01em;
  font-size: clamp(14px, 1.1vw, 17px);
  white-space: nowrap;
}
.pb-dot { flex: none; color: var(--cobalt); padding-inline: clamp(14px, 1.6vw, 26px); }
@keyframes pbScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .pb-track { animation: none; } }

/* ---- powered-by: typographic brand wordmarks ------------------------ */
.pb-item { color: rgba(14,14,16,.66); }
.pb-anthropic { font-family: 'Space Grotesk', var(--sans); font-weight: 500; letter-spacing: .01em; }
.pb-openai    { font-family: 'Sora', var(--sans); font-weight: 600; letter-spacing: -.01em; }
.pb-gemini    { font-family: 'Lexend', var(--sans); font-weight: 600; letter-spacing: 0; }
.pb-ibm       { font-family: 'IBM Plex Sans', var(--sans); font-weight: 600; letter-spacing: .01em; }
.pb-eleven    { font-family: 'Space Grotesk', var(--sans); font-weight: 700; letter-spacing: -.01em; }
.pb-eleven::before { content: "II"; letter-spacing: -.08em; margin-right: 4px; font-weight: 700; }
.pb-twilio    { font-family: 'Poppins', var(--sans); font-weight: 600; letter-spacing: -.01em; }
.pb-hubspot   { font-family: 'Lexend', var(--sans); font-weight: 600; }
.pb-ghl       { font-family: 'Sora', var(--sans); font-weight: 600; }
.pb-make      { font-family: 'Space Grotesk', var(--sans); font-weight: 700; letter-spacing: -.02em; }
.pb-n8n       { font-family: var(--mono); font-weight: 500; letter-spacing: -.02em; }
.pb-zapier    { font-family: 'Poppins', var(--sans); font-weight: 700; letter-spacing: -.01em; }
.pb-stripe    { font-family: 'Sora', var(--sans); font-weight: 600; letter-spacing: -.02em; }
.pb-notion    { font-family: 'Lexend', var(--sans); font-weight: 600; letter-spacing: -.01em; }
.pb-gws       { font-family: 'Poppins', var(--sans); font-weight: 600; letter-spacing: 0; }

/* ---- 14. MEET THE TEAM ---------------------------------------------- */
/* team train: one row, continuously scrolling sideways (marquee) */
.team-marquee { overflow: hidden; margin-inline: calc(-1 * var(--pad-x)); padding-block: 6px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.team-train { display: flex; gap: clamp(16px, 2vw, 28px); width: max-content; padding-inline: 4px;
  animation: teamTrain 60s linear infinite; }
.team-marquee:hover .team-train { animation-play-state: paused; }
.team-train .team-card { width: clamp(240px, 22vw, 300px); flex: none; }
@keyframes teamTrain { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .team-marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .team-train { animation: none; }
}
.team-card {
  border: 1px solid rgba(14,14,16,.14);
  border-radius: 18px;
  background: var(--cream);
  padding: clamp(22px, 2.4vw, 32px) clamp(20px, 2vw, 28px);
  display: flex; flex-direction: column; align-items: center; text-align: center;
  transition: transform .4s var(--ease), border-color .35s;
}
.team-card:hover { transform: translateY(-4px); border-color: rgba(14,14,16,.32); }
.team-photo {
  width: clamp(96px, 8.5vw, 128px); aspect-ratio: 1;
  border-radius: 50%;
  display: grid; place-content: center;
  background:
    repeating-linear-gradient(45deg, rgba(14,14,16,.045) 0 8px, transparent 8px 16px),
    var(--paper-2);
  border: 1px solid rgba(14,14,16,.12);
  margin-bottom: 18px;
  overflow: hidden;
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-photo span { font-family: var(--mono); font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: rgba(14,14,16,.38); }
.team-name { font-size: clamp(21px, 1.8vw, 26px); font-weight: 500; letter-spacing: -0.015em; }
.team-role { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--cobalt); margin-top: 8px; line-height: 1.5; }
.team-bio { font-size: 13.5px; line-height: 1.55; color: var(--ink-soft); margin-top: 12px; text-wrap: pretty; }

/* 5-person layout: founder leads a full-width row, 4 specialists below */
.team-grid-5 { grid-template-columns: repeat(4, 1fr); }
.team-grid-5 .team-lead { grid-column: 1 / -1; flex-direction: row; text-align: left; align-items: center; gap: clamp(24px, 3vw, 44px); }
.team-grid-5 .team-lead .team-photo { margin-bottom: 0; flex: none; width: clamp(120px, 11vw, 168px); }
.team-grid-5 .team-lead .team-bio { max-width: 60ch; }
@media (max-width: 1080px) {
  .team-grid-5 { grid-template-columns: repeat(2, 1fr); }
  .team-grid-5 .team-lead { flex-direction: column; text-align: center; gap: 0; }
  .team-grid-5 .team-lead .team-photo { margin-bottom: 18px; }
}
@media (max-width: 620px) { .team-grid-5 { grid-template-columns: 1fr; } }
