/*
 * =========================================================
 * OLYTIC SOLUTIONS - Synthis Landing Page Styles
 * synthis.css  /  Route: /synthis
 *
 * 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 ("Synthis")
 * lockup and a document-and-magnifier brand mark.
 *
 * Replicates the FieldCraft golden template exactly
 * (fieldcraft-ai.css): same section grammar, same component
 * structure, only the class prefix and mark differ.
 *
 * Components:
 *   - Synthis 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 the Synthis
 *     product diagram on a white panel, .sy-stack)
 *   - What It Looks Like (spine timeline on mobile, wavy SVG
 *     timeline from 960px up, styled after the /services
 *     process diagram)
 *   - Case study (white background, Valor-style)
 *   - CTA band (flat rectangle, no seam)
 *   - Angled seam between hero and overview only
 *
 * CSS load order (must follow):
 *   tokens → typography → buttons → nav → footer → layout → synthis
 * =========================================================
 */

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

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

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

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

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


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

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

/* Full-bleed photo along the left edge, fading out into the obsidian
   background, matching the FieldCraft fade motif. */
.sy-hero__media {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 62%;
  z-index: 0;
}

.sy-hero__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    transparent 0%,
    transparent 30%,
    var(--color-obsidian) 68%
  );
}

.sy-hero__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.9;
}

.sy-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--space-16);
}

.sy-hero__content {
  grid-column: 2;
}

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

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

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

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

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

/* Quiet, single-mention trust cue. Small mono label, not a badge. */
.sy-hero__trust {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: var(--space-6);
}

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

  .sy-hero__content {
    grid-column: 1;
  }

  .sy-hero__media {
    display: none;
  }
}

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


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

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

.sy-overview__intro {
  margin-bottom: var(--space-6);
}

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

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

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

/* ── Outcomes list ── */

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

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

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

/* ── Before/after panel: a raw case file becomes a structured,
   templated recommendation. Two document mock-ups flank the Synthis
   mark, sitting directly on the flat white section (no card). ── */

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

.sy-transform {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--space-6);
}

.sy-transform__doc {
  background-color: #FFFFFF;
  border: 1px solid #E4E4E2;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.sy-transform__doc-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: var(--space-2);
}

/* Raw file: a small three-tab folder accent, then ragged paragraph bars. */
.sy-transform__tabs {
  display: flex;
  gap: 4px;
  margin-bottom: var(--space-3);
}

.sy-transform__tabs span {
  width: 20px;
  height: 6px;
  border-radius: 2px;
}

.sy-transform__tabs span:nth-child(1) { background-color: var(--color-gold); }
.sy-transform__tabs span:nth-child(2) { background-color: var(--color-teal); }
.sy-transform__tabs span:nth-child(3) { background-color: #E4E4E2; }

.sy-transform__line {
  display: block;
  width: var(--w, 80%);
  height: 9px;
  border-radius: 5px;
  background-color: #ECECEA;
}

/* Structured output: labelled field rows instead of ragged bars. */
.sy-transform__field {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-2) 0;
  border-bottom: 1px solid #EFEFED;
  font-size: var(--text-sm);
}

.sy-transform__field:last-child {
  border-bottom: none;
}

.sy-transform__field span {
  color: var(--color-muted);
}

.sy-transform__field strong {
  color: var(--color-obsidian);
  font-weight: var(--weight-bold);
  white-space: nowrap;
}

.sy-transform__field--signoff strong {
  color: var(--color-teal);
}

/* The Synthis mark, sitting directly on the white section between
   the two documents, doing the work of connecting them. */
.sy-transform__mark {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
}

.sy-transform__mark svg {
  width: 44px;
  height: 44px;
}

.sy-transform__mark span {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--color-obsidian);
  white-space: nowrap;
}

@media (max-width: 768px) {
  .sy-transform {
    grid-template-columns: 1fr;
  }

  .sy-transform__mark {
    flex-direction: row;
  }
}


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

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

.sy-how__intro {
  margin-bottom: var(--space-8);
}

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

.sy-how__intro p {
  font-size: var(--text-md);
  color: rgba(255, 255, 255, 0.75);
  line-height: var(--leading-body);
}

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

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

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

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

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

.sy-steps__line {
  display: none;
}

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

.sy-step__node {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--color-obsidian);
  border: 1.5px solid var(--color-gold);
  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-gold);
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

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

.sy-step__content p {
  font-size: var(--text-base);
  color: rgba(255, 255, 255, 0.68);
  line-height: var(--leading-body);
  margin-bottom: 0;
}

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

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

  .sy-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) {
  .sy-steps {
    max-width: none;
    position: relative;
    aspect-ratio: 1400 / 300;
    min-height: 260px;
  }

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

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

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

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

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

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

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

/* ── Outcomes: a centered lead-in, then three gold cards with white text
   (three rounded corners, one squared/angled). ── */
.sy-gets {
  margin-top: var(--space-12);
}

.sy-gets__intro {
  text-align: center;
  max-width: 680px;
  margin: 0 auto var(--space-8);
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.4;
}

/* Small dashed gold accent above the lead-in, separating the outcomes
   from the process diagram. */
.sy-gets__intro::before {
  content: '';
  display: block;
  width: 48px;
  margin: 0 auto var(--space-6);
  border-top: 2px dashed var(--color-gold);
}

.sy-gets__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  align-items: stretch;
}

.sy-get {
  background-color: var(--color-teal);
  border-radius: 24px 24px 0 24px;   /* three rounded corners, one squared */
  padding: var(--space-8);
}

.sy-get h3 {
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  color: #FFFFFF;
  margin: 0 0 var(--space-2);
}

.sy-get p {
  font-size: var(--text-base);
  color: rgba(255, 255, 255, 0.9);
  line-height: var(--leading-body);
  margin: 0;
}

@media (max-width: 768px) {
  .sy-gets__grid {
    grid-template-columns: 1fr;
  }
}

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

.sy-case {
  background-color: var(--color-surface);
  padding-top: var(--space-12);
  padding-bottom: var(--space-12);

  /* ── Breakout sizing knobs. This section is a self-contained composition;
     these are deliberately independent of the site type scale, so tweak
     them freely without worrying about the rest of the page. ── */
  --sy-body-size: 1rem;          /* narrative paragraphs + bullets   */
  --sy-quote-size: 0.9375rem;    /* testimonial quote (15px)         */
  --sy-icon-size: 60px;          /* gold document title icon         */
  --sy-photo-width: 78%;         /* documents photo width in the blob*/
  --sy-accent-size: 46%;         /* teal card size                   */
  --sy-blob-overlap: 44px;       /* gold overlap up into the photo   */
}

/* Plain white backdrop, section's own surface color shows through. */
.sy-case__card {
  padding: var(--space-10) 0;
  position: relative;
}

.sy-case__grid {
  position: relative;
  z-index: 1;
}

/* Left column: the title stacked over the narrative body. */
.sy-case__main {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

/* Title with its gold document-and-magnifier icon to the left. */
.sy-case__title-row {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.sy-case__title-icon {
  flex-shrink: 0;
  width: var(--sy-icon-size);
  height: var(--sy-icon-size);
}

.sy-case__title-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.sy-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;
  padding-bottom: 0;
}

/* No gold accent rule under the case-study headline. */
.sy-case__headline::after {
  display: none;
}

.sy-case__grid {
  align-items: stretch;
  grid-template-columns: 1fr 1fr;
}

.sy-case__body,
.sy-case__evidence {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.sy-case__body p {
  font-size: var(--sy-body-size);
  color: var(--color-body-steel);
  line-height: var(--leading-body);
  margin: 0;
}

/* "What we did" as a gold-arrow bullet list. */
.sy-case__solutions {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

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

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

@media (max-width: 768px) {
  .sy-case__grid {
    grid-template-columns: 1fr;
  }
}

.sy-case__cluster {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  isolation: isolate;
}

.sy-case__accent {
  position: absolute;
  z-index: 0;
  right: -14px;
  bottom: -18px;
  width: var(--sy-accent-size);
  aspect-ratio: 1 / 1;
  background-color: var(--color-teal);
  border-radius: 62% 38% 47% 53% / 55% 43% 57% 45%;
}

.sy-case__photo {
  position: relative;
  z-index: 2;
  width: var(--sy-photo-width);
  margin: 0 0 0 auto;
  aspect-ratio: 4 / 3;
  border-radius: 58% 42% 46% 54% / 58% 48% 52% 42%;
  overflow: hidden;
}

.sy-case__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sy-case__quote {
  position: relative;
  z-index: 1;
  flex: 1;
  margin: calc(-1 * var(--sy-blob-overlap)) 0 0 0;
  padding: calc(var(--sy-blob-overlap) + var(--space-8)) var(--space-10) var(--space-10);
  background-color: var(--color-gold);
  border-left: none;
  border-top: none;
  border-radius: 44% 56% 46% 54% / 26% 30% 34% 30%;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.sy-case__quote p {
  font-size: var(--sy-quote-size);
  color: var(--color-obsidian);
  font-weight: var(--weight-medium);
  font-style: italic;
  line-height: var(--leading-body);
  text-wrap: pretty;
  margin: 0;
}

/* Attribution flows inline at the end of the quote (no separate line). */
.sy-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: rgba(26, 26, 26, 0.72);
  white-space: nowrap;
  margin-left: var(--space-2);
}

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

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

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

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

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

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

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

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

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



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

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

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

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

/* ── Case study: documents photo full-bleed backdrop from the right (Valor-style) ── */
.sy-case { position: relative; overflow: hidden; }
.sy-case .container { position: relative; z-index: 1; }
.sy-case__accent { display: none; }
.sy-case__main { max-width: 54%; }
.sy-case__photo {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 55%;
  margin: 0;
  z-index: 0;
  border-radius: 0;
  aspect-ratio: auto;
}
.sy-case__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-mask-image: linear-gradient(to left, #000 42%, transparent 100%);
  mask-image: linear-gradient(to left, #000 42%, transparent 100%);
}
.sy-case__quote {
  margin: var(--space-6) 0 0 0;
  padding: 0 0 0 var(--space-5);
  background-color: transparent;
  border-radius: 0;
  border-left: 2px solid var(--color-gold);
}
@media (max-width: 900px) {
  .sy-case { overflow: visible; }
  .sy-case__main { max-width: none; }
  .sy-case__photo { position: static; width: 100%; margin-top: var(--space-8); }
  .sy-case__photo img {
    -webkit-mask-image: none;
    mask-image: none;
    border-radius: 12px;
    aspect-ratio: 16 / 9;
  }
}
