/*
 * =========================================================
 * 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 AI")
 * lockup and an open-ring brand mark.
 *
 * Components:
 *   - FieldCraft AI 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: 64px;
  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: 40px;
  }
}


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

/* ── Service eyebrow: tags the page as an engagement model ── */

.ws-hero__eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  color: var(--color-gold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-label);
  margin-bottom: var(--space-4);
}

/* 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 quarter-disc tucked behind the photo's shoulder. */
.ws-hero__shape--gold {
  top: 0;
  left: 0;
  width: 160px;
  height: 160px;
  background-color: var(--color-gold);
  border-radius: 160px 0 0 0;
}

/* Teal half-disc anchored under the photo's bottom edge. */
.ws-hero__shape--teal {
  right: 64px;
  bottom: 0;
  width: 160px;
  height: 80px;
  background-color: var(--color-teal);
  border-radius: 0 0 80px 80px;
}

/* Twin descending discs beside the photo's squared corner: the
   workstream signature, echoing parallel streams. Both share the
   photo's bottom edge line. */
.ws-hero__shape--dot {
  right: 312px;
  top: 312px;
  width: 48px;
  height: 48px;
  background-color: var(--color-teal);
  border-radius: 50%;
}

.ws-hero__shape--dot2 {
  right: 368px;
  top: 328px;
  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__intro {
  margin-bottom: var(--space-6);
}

.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);
}

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

/* ── 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);
}

/* ── Before/after infographic (static SVG, see ui/assets/fieldcraft-ai-story.svg) ── */

.ws-infographic {
  max-width: 100%;
}

.ws-infographic__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.ws-infographic__frame svg {
  display: block;
}


/* ─────────────────────────────────────────────────────── */
/* 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: var(--color-body-steel);
  line-height: var(--leading-body);
}

/* Vertical spine connecting each node, centered on the node column */
.ws-steps {
  max-width: 640px;
  position: relative;
}

.ws-steps::before {
  content: '';
  position: absolute;
  top: 24px;
  bottom: 24px;
  left: 23px;
  width: 2px;
  background-color: rgba(13, 107, 110, 0.25);
}

.ws-step {
  display: grid;
  grid-template-columns: 48px 1fr;
  column-gap: var(--space-6);
  align-items: start;
  padding: var(--space-5) 0;
  position: relative;
}

.ws-step:first-child {
  padding-top: 0;
}

.ws-step__node-col {
  display: flex;
  justify-content: center;
}

.ws-steps__line {
  display: none;
}

.ws-step__icon {
  width: 26px;
  height: 26px;
  color: var(--color-teal);
  margin-bottom: var(--space-2);
  flex-shrink: 0;
}

.ws-step__node {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: #FFFFFF;
  border: 1.5px solid var(--color-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: var(--weight-bold);
  font-size: var(--text-lg);
  color: var(--color-teal);
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.ws-step__content h3 {
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  color: var(--color-obsidian);
  margin-bottom: var(--space-1);
}

.ws-step__content p {
  font-size: var(--text-base);
  color: var(--color-body-steel);
  line-height: var(--leading-body);
  margin-bottom: 0;
}

@media (max-width: 480px) {
  .ws-step {
    grid-template-columns: 40px 1fr;
    column-gap: var(--space-4);
  }

  .ws-steps::before {
    left: 19px;
  }

  .ws-step__node {
    width: 40px;
    height: 40px;
    font-size: var(--text-base);
  }
}

/* ── Wavy horizontal timeline (desktop), inspired by the       */
/* "How We Work" process diagram on /services                  */
@media (min-width: 960px) {
  .ws-steps {
    max-width: none;
    position: relative;
    aspect-ratio: 1400 / 300;
    min-height: 260px;
  }

  .ws-steps::before {
    display: none;
  }

  .ws-steps__line {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
  }

  .ws-step {
    display: block;
    position: absolute;
    left: var(--ws-left);
    top: var(--ws-top);
    width: 20%;
    padding: 0;
    text-align: center;
  }

  .ws-step__node-col {
    display: none;
  }

  .ws-step__icon {
    display: block;
    margin: 0 auto var(--space-3);
  }

  .ws-step__content h3 {
    font-size: var(--text-base);
  }

  .ws-step__content p {
    font-size: var(--text-sm);
  }
}


/* ─────────────────────────────────────────────────────── */
/* SECTION 4: CASE STUDY (white, Valor-style narrative)     */
/* ─────────────────────────────────────────────────────── */

.ws-case {
  background-color: var(--color-teal);
  padding-top: var(--space-12);
  padding-bottom: var(--space-12);
}

/* Gold-bordered "slide" frame: white card floating on the black section */
.ws-case__card {
  background-color: #FFFFFF;
  border: 1px solid var(--color-gold);
  border-radius: 14px;
  padding: var(--space-10);
}

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

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

.ws-case__grid {
  align-items: start;
}

/* Diagram + quote stacked in one column, placed left on desktop */
@media (min-width: 769px) {
  .ws-case__media {
    order: -1;
  }
}

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

.ws-case__solutions-intro {
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  color: var(--color-navy);
  margin: 0 0 var(--space-2);
}

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

.ws-case__solutions li {
  font-size: var(--text-base);
  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-base);
  font-weight: var(--weight-medium);
  color: var(--color-navy);
  line-height: var(--leading-normal);
  margin: 0;
}

.ws-case__diagram svg {
  display: block;
  width: 100%;
  height: auto;
  max-width: 380px;
  margin: 0 auto;
}

.ws-case__quote {
  margin: var(--space-5) 0 0;
  border-left: var(--border-gold-thick);
  background-color: var(--color-surface);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: var(--space-4) var(--space-5);
}

.ws-case__quote p {
  font-size: var(--text-sm);
  color: var(--color-navy);
  font-weight: var(--weight-medium);
  font-style: italic;
  line-height: var(--leading-normal);
  margin: 0 0 var(--space-2);
  max-width: none;
}

.ws-case__quote cite {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--color-muted);
}

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

  .ws-case__media {
    margin-top: var(--space-8);
  }
}


/* ─────────────────────────────────────────────────────── */
/* 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;
}

.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;
  }
}
