/*
 * =========================================================
 * OLYTIC SOLUTIONS - FieldCraft AI Landing Page Styles
 * fieldcraft-ai.css  /  Route: /fieldcraft-ai
 *
 * 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 the FieldCraft AI
 *     product diagram on an obsidian panel, .fr-stack)
 *   - 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             */
/* ─────────────────────────────────────────────────────── */

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

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

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

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


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

.fr-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 rather than sitting in a shaped frame -- distinct from
   both the home hero's blob and FieldCraft's own previous cut-corner
   card treatment. */
.fr-hero__media {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 62%;
  z-index: 0;
}

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

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

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

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

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

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

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

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

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

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

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

  .fr-hero__media {
    display: none;
  }
}

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


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

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

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

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

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

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

/* ── Outcomes list ── */

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

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

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

/* ── Product diagram panel (FieldCraft AI + its connected stack) ──
   Obsidian card so the white tiles, gold connectors, and white labels
   read on this white section. */

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

/* No card: the diagram sits directly on the flat white section. */
.fr-stack {
  padding: 0;
}

.fr-stack svg {
  display: block;
  width: 100%;
  height: auto;
  max-width: 480px;
  margin: 0 auto;
}

/* Each spoke (182 units long) starts fully retracted, then draws outward
   from the hub so you watch the connection form. */
.fr-stack__connector {
  stroke-dasharray: 182;
  stroke-dashoffset: 182;
}

html.js [data-reveal].fr-stack.is-visible .fr-stack__connector {
  animation: fr-stack__draw-connector 0.7s ease-out forwards;
}

html.js [data-reveal].fr-stack.is-visible .fr-stack__connector:nth-of-type(2) { animation-delay: 0.18s; }
html.js [data-reveal].fr-stack.is-visible .fr-stack__connector:nth-of-type(3) { animation-delay: 0.36s; }
html.js [data-reveal].fr-stack.is-visible .fr-stack__connector:nth-of-type(4) { animation-delay: 0.54s; }

@keyframes fr-stack__draw-connector {
  to { stroke-dashoffset: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .fr-stack__connector {
    stroke-dashoffset: 0;
    animation: none !important;
  }
}


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

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

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

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

.fr-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 */
.fr-steps {
  max-width: 640px;
  position: relative;
}

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

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

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

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

.fr-steps__line {
  display: none;
}

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

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

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

.fr-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) {
  .fr-step {
    grid-template-columns: 40px 1fr;
    column-gap: var(--space-4);
  }

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

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

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

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

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

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

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

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

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

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

.fr-case {
  background-color: var(--color-obsidian);
  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. ── */
  --fc-body-size: 1rem;          /* narrative paragraphs + bullets   */
  --fc-quote-size: 0.9375rem;    /* testimonial quote (15px)         */
  --fc-icon-size: 60px;          /* gold truck-and-wrench title icon */
  --fc-photo-width: 78%;         /* mower photo width within the blob */
  --fc-accent-size: 46%;         /* teal card size                   */
  --fc-blob-overlap: 44px;       /* gold overlap up into the photo   */
}

/* Plain black backdrop -- no more white "slide" card floating on the
   section; the section's own obsidian background shows through. */
.fr-case__card {
  padding: var(--space-10) 0;
  position: relative;
}

/* Card content sits above the decorative draw-in frame. */
.fr-case__grid {
  position: relative;
  z-index: 1;
}

/* Left column: the title stacked over the narrative body. Both title and
   the right-hand blob share the grid's top edge, so they line up. */
.fr-case__main {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

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

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

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

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

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

/* ── Two columns: the whole narrative body (left) beside the aggregated
   photo + quote + teal blob (right). Stretch so both columns end level. ── */
.fr-case__grid {
  align-items: stretch;
  grid-template-columns: 1fr 1fr;
  /* Clear the draw-in frame's top line. */
  margin-top: var(--space-4);
}

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


.fr-case__body p {
  font-size: var(--fc-body-size);
  color: rgba(255, 255, 255, 0.82);
  line-height: var(--leading-body);
  margin: 0;
}

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

.fr-case__solutions li {
  font-size: var(--fc-body-size);
  color: rgba(255, 255, 255, 0.82);
  line-height: var(--leading-body);
  padding-left: var(--space-6);
  position: relative;
  margin: 0;
}

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

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

/* ── Aggregated blob: mower photo, gold quote, and a teal card overlap
   into one organic cluster that fills the right column. ── */
.fr-case__cluster {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  isolation: isolate;
}

/* Teal card peeking from behind the gold, tying the cluster together. */
.fr-case__accent {
  position: absolute;
  z-index: 0;
  right: -14px;
  bottom: -18px;
  width: var(--fc-accent-size);
  aspect-ratio: 1 / 1;
  background-color: var(--color-teal);
  border-radius: 62% 38% 47% 53% / 55% 43% 57% 45%;
}

/* Mower photo, organic blob, offset to the top-right of the cluster.
   Its top is the top of the whole blob, level with the title. */
.fr-case__photo {
  position: relative;
  z-index: 2;
  width: var(--fc-photo-width);
  margin: 0 0 0 auto;
  aspect-ratio: 4 / 3;
  border-radius: 58% 42% 46% 54% / 58% 48% 52% 42%;
  overflow: hidden;
}

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

/* Gold quote, organic blob, overlaps up into the photo and fills the rest
   of the column. Extra top padding clears the photo overlap. */
.fr-case__quote {
  position: relative;
  z-index: 1;
  flex: 1;
  margin: calc(-1 * var(--fc-blob-overlap)) 0 0 0;
  padding: calc(var(--fc-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;
}

.fr-case__quote p {
  font-size: var(--fc-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). */
.fr-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) {
  .fr-case__card {
    padding: var(--space-6) 0;
  }
}

/* ── Decorative frame: four gold accent lines, one per side, each fading to
   transparent at both ends so the corners read as faded/missing. Same
   gradient treatment as the home page's CTA divider. Static, no animation. */
.fr-case__frame {
  position: absolute;
  top: var(--space-6);
  right: calc(var(--space-5) * -1);
  bottom: var(--space-6);
  left: calc(var(--space-5) * -1);
  z-index: 0;
  pointer-events: none;
  --fc-line: 1.5px;
  background-image:
    linear-gradient(to right,  transparent, var(--color-gold) 15%, var(--color-gold) 85%, transparent),
    linear-gradient(to right,  transparent, var(--color-gold) 15%, var(--color-gold) 85%, transparent),
    linear-gradient(to bottom, transparent, var(--color-gold) 15%, var(--color-gold) 85%, transparent),
    linear-gradient(to bottom, transparent, var(--color-gold) 15%, var(--color-gold) 85%, transparent);
  background-size:
    100% var(--fc-line),   /* top    */
    100% var(--fc-line),   /* bottom */
    var(--fc-line) 100%,   /* left   */
    var(--fc-line) 100%;   /* right  */
  background-position: left top, left bottom, left top, right top;
  background-repeat: no-repeat;
}

/* On the narrow single-column stack the framed box reads awkwardly. */
@media (max-width: 768px) {
  .fr-case__frame {
    display: none;
  }
}


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

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

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

/* Gold accent divider (same as the home page CTA), centered in the gap
   above the CTA, fading out at both ends. */
.fr-cta__inner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    var(--color-gold) 18%,
    var(--color-gold) 82%,
    transparent
  );
}

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

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

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

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

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



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

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

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

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