/*
 * =========================================================
 * OLYTIC SOLUTIONS - Workstream as a Service Page Styles
 * workstream.css  /  Route: /workstream
 *
 * Solution-specific, one-pager style outreach page. Built on
 * the same global primitives as every other page (.section,
 * .container, .callout, .btn, .label) but with a distinct
 * visual identity: a big product mark/wordmark ("FieldCraft")
 * lockup and an open-ring brand mark.
 *
 * Components:
 *   - FieldCraft mark (inline SVG, duplicated per usage with
 *     hardcoded colors, no shared <symbol>/<use>)
 *   - Hero (dark, big logo lockup, node/link graphic)
 *   - Overview (problem summary, outcomes list beside a static
 *     before/after infographic, see ui/assets/fieldcraft-ai-story.svg)
 *   - What It Looks Like (spine timeline on mobile, wavy SVG
 *     timeline from 960px up, styled after the /services
 *     process diagram)
 *   - CTA band (flat rectangle, no seam)
 *   - Angled seam between hero and overview only
 *
 * CSS load order (must follow):
 *   tokens → typography → buttons → nav → footer → layout → fix-right
 * =========================================================
 */

/* ─────────────────────────────────────────────────────── */
/* FIX RIGHT MARK                                            */
/* Markup is duplicated inline at each usage (hero lockup,   */
/* hero graphic, CTA icon) with hardcoded stroke/fill colors */
/* per context, matching how the Olytic logo itself is done  */
/* elsewhere in this codebase. No shared CSS needed here.    */
/* ─────────────────────────────────────────────────────── */


/* ─────────────────────────────────────────────────────── */
/* SEAM - angled color transition between bands             */
/* ─────────────────────────────────────────────────────── */

.ws-seam-top {
  position: relative;
}

.ws-seam-top::before {
  content: '';
  position: absolute;
  top: -40px;
  left: 0;
  right: 0;
  height: 60px;
  border-bottom: 4px solid var(--color-teal);
  transform-origin: 0 0;
  transform: skewY(-1.25deg);
  z-index: 1;
}

.ws-seam-top--white::before  { background-color: #FFFFFF; }

@media (max-width: 640px) {
  .ws-seam-top::before {
    top: -24px;
    height: 36px;
  }
}


/* ─────────────────────────────────────────────────────── */

/* SECTION 1: HERO                                          */
/* ─────────────────────────────────────────────────────── */

.ws-hero {
  background-color: var(--color-obsidian);
  color: #FFFFFF;
  padding-top: var(--space-12);
  padding-bottom: var(--space-24);
  position: relative;
}

.ws-hero__inner {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  gap: var(--space-16);
}

.ws-hero__lockup {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

.ws-hero__wordmark {
  font-family: var(--font-sans);
  font-weight: var(--weight-bold);
  font-size: clamp(1.85rem, 3.4vw, 2.5rem);
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: #FFFFFF;
  line-height: 1;
}

.ws-hero__wordmark em {
  font-style: normal;
  color: var(--color-gold);
}

.ws-hero__headline {
  font-size: clamp(2.5rem, 5.2vw, 4.1rem);
  font-weight: var(--weight-bold);
  color: #FFFFFF;
  line-height: 1.1;
  letter-spacing: var(--tracking-tight);
  margin-bottom: var(--space-5);
  max-width: 720px;
}

.ws-hero__sub {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: rgba(255, 255, 255, 0.76);
  line-height: var(--leading-body);
  max-width: 560px;
  margin-bottom: var(--space-8);
}

.ws-hero__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
}

/* Locked shape composition shared by the service pages (teal-led,
   mirror of the home hero grammar): circle-family radii (152/80),
   flat brand colors, 8pt grid, every shape anchored to a photo edge. */
.ws-hero__composition {
  position: relative;
  width: 448px;
  height: 448px;
}

.ws-hero__shape {
  position: absolute;
}

/* Gold half-disc lying flat along the top edge, peeking out from under
   the photo's top-left corner: paired with the teal half-disc below to
   read as two parallel bands, the Workstream family variation on the
   shared quarter-disc/half-disc vocabulary (echoing parallel streams). */
.ws-hero__shape--gold {
  top: 0;
  left: -20px;
  width: 200px;
  height: 100px;
  background-color: var(--color-gold);
  border-radius: 0 0 100px 100px;
}

/* Teal half-disc standing upright along the left edge, the second of
   the two parallel bands. */
.ws-hero__shape--teal {
  left: 0;
  top: 120px;
  width: 90px;
  height: 180px;
  background-color: var(--color-teal);
  border-radius: 0 90px 90px 0;
}

/* Twin descending discs stepping away from the photo's squared
   corner: the workstream signature, echoing parallel streams. Each
   disc's top edge hangs off the photo's bottom edge line, stepping
   further down and left the further it gets from the corner. */
.ws-hero__shape--dot {
  right: 304px;
  top: 360px;
  width: 56px;
  height: 56px;
  background-color: var(--color-teal);
  border-radius: 50%;
}

.ws-hero__shape--dot2 {
  right: 376px;
  top: 400px;
  width: 32px;
  height: 32px;
  background-color: var(--color-teal);
  border-radius: 50%;
}

/* Thin brand ring peeking from behind the photo's top-right curve. */
.ws-hero__shape--ring {
  right: -8px;
  top: 0;
  width: 96px;
  height: 96px;
  border: 2px solid var(--color-teal);
  border-radius: 50%;
  opacity: 0.8;
}

/* Photo petal: three corners on the ring radius, one squared. */
.ws-hero__photo-wrap {
  position: absolute;
  top: 0;
  right: 0;
  width: 304px;
  height: 360px;
  border-radius: 152px 152px 152px 24px;
  overflow: hidden;
  background-color: var(--color-obsidian);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
}

.ws-hero__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Narrow desktops: scale the whole composition, never reflow it. */
@media (max-width: 1160px) {
  .ws-hero__composition {
    transform: scale(0.82);
    transform-origin: center;
  }
}

@media (max-width: 900px) {
  .ws-hero__inner {
    grid-template-columns: 1fr;
  }

  .ws-hero__visual {
    display: none;
  }
}

@media (max-width: 640px) {
  .ws-hero__sub {
    font-size: var(--text-base);
  }
}


/* ─────────────────────────────────────────────────────── */
/* SECTION 2: OVERVIEW (problem summary + outcomes + video) */
/* ─────────────────────────────────────────────────────── */

.ws-overview {
  padding-top: var(--space-12);
  padding-bottom: var(--space-12);
  position: relative;
}

.ws-overview__headline {
  text-align: right;
  margin-bottom: var(--space-8);
}

.ws-overview__headline::after {
  left: auto;
  right: 0;
}

.ws-overview__intro {
  max-width: 640px;
  margin-bottom: var(--space-6);
}

.ws-overview__row {
  align-items: center;
}

.ws-overview__intro p {
  font-size: var(--text-md);
  color: var(--color-body-steel);
  line-height: var(--leading-body);
}

.ws-overview__tee {
  font-weight: var(--weight-bold);
  color: var(--color-obsidian);
}

/* ── Outcomes list ── */

.ws-outcomes {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.ws-outcomes li {
  font-size: var(--text-md);
  font-weight: var(--weight-bold);
  color: var(--color-obsidian);
  line-height: var(--leading-body);
  padding-left: var(--space-6);
  position: relative;
  margin-bottom: 0;
}

.ws-outcomes li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 10px;
  height: 2px;
  background-color: var(--color-gold);
}

/* ── Statistic card: a short narrative citing two 2026 findings on why   */
/* strategy stalls when it's not paired with delivery. Narrow, bordered   */
/* light-surface card, not stretched to fill its grid track, matching the */
/* "did you know" breakout feel on /roadmapping rather than reading as a  */
/* peer to the text column. */
.ws-stats {
  background-color: var(--color-surface);
  border: 1px solid var(--color-gold);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: var(--space-8);
  max-width: 320px;
  justify-self: start;
}

.ws-stats__narrative {
  font-size: var(--text-base);
  color: rgba(26, 26, 26, 0.76);
  line-height: var(--leading-body);
  margin-bottom: var(--space-5);
}

.ws-stats__narrative:last-child {
  margin-bottom: 0;
}

.ws-stats__narrative strong {
  color: var(--color-obsidian);
  font-weight: var(--weight-bold);
}

.ws-stats__cite {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: var(--weight-bold);
  color: rgba(26, 26, 26, 0.55);
  margin-left: 1px;
}

@media (max-width: 768px) {
  .ws-stats {
    max-width: none;
    padding: var(--space-6);
  }
}


/* ─────────────────────────────────────────────────────── */
/* SECTION 3: WHAT IT LOOKS LIKE                            */
/* (vertical spine + node timeline on mobile, horizontal     */
/*  timeline from 960px up)                                 */
/* ─────────────────────────────────────────────────────── */

.ws-how {
  position: relative;
  padding-top: var(--space-12);
  padding-bottom: var(--space-12);
}

.ws-how__intro {
  max-width: 640px;
  margin-bottom: var(--space-8);
}

.ws-how__intro .section-title {
  margin-bottom: var(--space-4);
}

.ws-how__intro p {
  font-size: var(--text-md);
  color: #FFFFFF;
  line-height: var(--leading-body);
}

/* ── Flow diagram: a Sankey-style set of tapered gold ribbons, each a  */
/* different transparency of the same gold, living directly on the     */
/* section's own obsidian background (no separate panel) since the     */
/* whole "How We Work" section is dark now. The ribbon labels need      */
/* real width to stay legible, so instead of scaling the whole thing    */
/* down on narrow screens, the chart holds a 960px minimum width and    */
/* scrolls horizontally inside its own frame. */
.ws-flow {
  margin-top: var(--space-4);
}

.ws-flow__scroll {
  max-width: 100%;
  overflow-x: auto;
}

.ws-flow__chart {
  display: block;
  width: 100%;
  min-width: 1160px;
  height: auto;
}

/* Ribbons grow in from their source node on scroll-reveal: scaleX on
   the path's own fill-box, anchored at its left edge. Delay tiers
   stage the reveal left to right, once, matching how far along the
   flow each ribbon sits: align -> (1, 2) -> reassess-1 -> (3, 4) ->
   reassess-2 -> (5, 6) -> reassess-3, on Workstream 1 -> (7, 8). */
.ws-flow__ribbon {
  transform-box: fill-box;
  transform-origin: 0% 50%;
  transform: scaleX(0.02);
  transition: transform 1.1s cubic-bezier(0.65, 0, 0.35, 1);
}

.ws-flow.is-visible .ws-flow__ribbon {
  transform: scaleX(1);
}

.ws-flow.is-visible .ws-flow__ribbon--3,
.ws-flow.is-visible .ws-flow__ribbon--4 {
  transition-delay: 1s;
}

.ws-flow.is-visible .ws-flow__ribbon--5,
.ws-flow.is-visible .ws-flow__ribbon--6 {
  transition-delay: 2s;
}

.ws-flow.is-visible .ws-flow__ribbon--7,
.ws-flow.is-visible .ws-flow__ribbon--8 {
  transition-delay: 3s;
}

.ws-flow__node,
.ws-flow__label {
  opacity: 0;
  transition: opacity 0.6s ease-out;
}

.ws-flow.is-visible .ws-flow__node--align,
.ws-flow.is-visible .ws-flow__label--1,
.ws-flow.is-visible .ws-flow__label--2 {
  opacity: 1;
  transition-delay: 1s;
}

.ws-flow.is-visible .ws-flow__node--reassess-1,
.ws-flow.is-visible .ws-flow__label--3,
.ws-flow.is-visible .ws-flow__label--4 {
  opacity: 1;
  transition-delay: 2s;
}

.ws-flow.is-visible .ws-flow__node--reassess-2,
.ws-flow.is-visible .ws-flow__label--5,
.ws-flow.is-visible .ws-flow__label--6 {
  opacity: 1;
  transition-delay: 3s;
}

.ws-flow.is-visible .ws-flow__node--reassess-3,
.ws-flow.is-visible .ws-flow__label--7,
.ws-flow.is-visible .ws-flow__label--8 {
  opacity: 1;
  transition-delay: 4s;
}

.ws-flow__note {
  max-width: 640px;
  margin: var(--space-6) 0 0;
  font-size: var(--text-md);
  color: #FFFFFF;
  line-height: var(--leading-body);
}

@media (prefers-reduced-motion: reduce) {
  .ws-flow__ribbon {
    transform: scaleX(1);
    transition: none;
  }

  .ws-flow__node,
  .ws-flow__label {
    opacity: 1;
    transition: none;
  }
}


/* ─────────────────────────────────────────────────────── */
/* SECTION 4: FIT (full-bleed photo backdrop: photo bleeds  */
/* in from the right, mask-fades into the section's own      */
/* surface color, text column sits directly on it. Standalone */
/* pattern, no cross-reference to the other services, matching */
/* /roadmapping.)                                             */
/* ─────────────────────────────────────────────────────── */

.ws-case {
  position: relative;
  overflow: hidden;
  background-color: var(--color-surface);
  padding-top: var(--space-20);
  padding-bottom: var(--space-20);
}

.ws-case .container {
  position: relative;
  z-index: 1;
}

.ws-case__main {
  max-width: 54%;
  margin-left: auto;
}

.ws-case__head {
  max-width: 760px;
  margin-bottom: var(--space-6);
}

.ws-case__headline {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: var(--weight-bold);
  color: var(--color-obsidian);
  line-height: 1.2;
  letter-spacing: var(--tracking-tight);
  margin-bottom: 0;
}

.ws-case__story {
  max-width: 760px;
}

.ws-case__problem {
  font-size: var(--text-md);
  color: var(--color-body-steel);
  line-height: var(--leading-normal);
  margin: 0 0 var(--space-5);
}

.ws-case__solutions-intro {
  font-size: var(--text-md);
  font-weight: var(--weight-semibold);
  color: var(--color-obsidian);
  margin: 0 0 var(--space-3);
}

.ws-case__solutions {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.ws-case__solutions li {
  font-size: var(--text-md);
  color: var(--color-body-steel);
  line-height: var(--leading-normal);
  padding-left: var(--space-6);
  position: relative;
  margin: 0;
}

.ws-case__solutions li::before {
  content: '\2192';
  position: absolute;
  left: 0;
  color: var(--color-gold);
  font-weight: var(--weight-bold);
}

.ws-case__outcome {
  font-size: var(--text-md);
  font-weight: var(--weight-medium);
  color: var(--color-obsidian);
  line-height: var(--leading-normal);
  margin: var(--space-5) 0 0;
}

.ws-case__outcome a {
  color: var(--color-obsidian);
  text-decoration-color: var(--color-gold);
}

.ws-case__photo {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 55%;
  margin: 0;
  z-index: 0;
}

.ws-case__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-mask-image: linear-gradient(to right, #000 42%, transparent 100%);
  mask-image: linear-gradient(to right, #000 42%, transparent 100%);
}

@media (max-width: 860px) {
  .ws-case {
    overflow: visible;
    padding-top: var(--space-12);
    padding-bottom: var(--space-12);
  }

  .ws-case__main {
    max-width: none;
  }

  .ws-case__photo {
    position: static;
    width: 100%;
    aspect-ratio: 16 / 9;
    margin-top: var(--space-8);
  }

  .ws-case__photo img {
    -webkit-mask-image: none;
    mask-image: none;
    border-radius: 12px;
  }
}


/* ─────────────────────────────────────────────────────── */
/* SECTION 5: CTA                                           */
/* ─────────────────────────────────────────────────────── */

.ws-cta {
  padding-top: var(--space-12);
  padding-bottom: var(--space-10);
  position: relative;
}

.ws-cta__mark {
  display: block;
  margin-bottom: var(--space-5);
}

.ws-cta__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-12);
  align-items: center;
}

.ws-cta__inner h2 {
  font-size: clamp(1.875rem, 3vw, 2.75rem);
  font-weight: var(--weight-bold);
  color: #FFFFFF;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-5);
}

.ws-cta__inner p {
  font-size: var(--text-md);
  color: rgba(255, 255, 255, 0.82);
  line-height: var(--leading-body);
  max-width: 52ch;
  margin-bottom: 0;
}

/* Fine-print references for the numbered citations on the OVERVIEW
   section's stats card (.ws-stats__cite), kept out of that card. */
.ws-cta__inner .ws-cta__refs {
  margin-top: var(--space-4);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: var(--tracking-wide);
  color: rgba(255, 255, 255, 0.4);
  max-width: none;
}

.ws-cta__refs sup {
  margin-right: 2px;
}

.ws-cta__inner .btn {
  white-space: nowrap;
}

@media (max-width: 900px) {
  .ws-cta__inner {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .ws-cta__inner .btn {
    width: 100%;
    justify-content: center;
  }
}



/* ── Mobile lockup: smaller mark + wordmark so long names breathe ── */

@media (max-width: 560px) {
  .ws-hero__lockup svg {
    width: 52px;
    height: 52px;
  }

  .ws-hero__lockup {
    gap: var(--space-3);
    margin-bottom: var(--space-6);
  }

  .ws-hero__wordmark {
    font-size: 1.4rem;
  }
}
