/* ==========================================================================
   Forklog Consulting case study — free-form section below the shared hero.
   Its own visual language (black / gold accents, layout, light scroll
   animation) but set in the same site-wide font as every other page.
   ========================================================================== */

:root {
  --fc-black: #000000;
  --fc-gold: #e9b75b;
  --fc-gold-soft: rgba(233, 183, 91, 0.14);
  --fc-gray: #eaeaea;
  --fc-ink: #0a0a0a;
  --font-display: var(--font-sans);
}

.fc-section {
  position: relative;
  overflow: hidden;
  padding-block: clamp(64px, 10vw, 120px);
  background: var(--color-bg);
  color: var(--fc-ink);
}

.fc-section--dark {
  background: var(--fc-black);
  color: #ffffff;
}

.fc-section__inner {
  position: relative;
  z-index: 1;
}

.fc-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fc-gold);
  margin-bottom: 20px;
}

.fc-eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--fc-gold);
}

.fc-eyebrow--dark {
  color: var(--fc-black);
}

.fc-eyebrow--dark::before {
  background: var(--fc-black);
}

.fc-heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
  max-width: 760px;
  margin-bottom: 16px;
}

.fc-lede {
  max-width: 720px;
  font-size: var(--fs-body);
  line-height: 1.7;
}

.fc-section--dark .fc-lede {
  color: rgba(255, 255, 255, 0.72);
}

/* ---------- Research steps ---------- */

.fc-steps {
  list-style: none;
  margin: 32px 0 40px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 860px;
}

.fc-steps li {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
}

.fc-steps__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 32px;
  color: var(--fc-gold);
}

.fc-steps p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.55;
}

.fc-competitors {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.fc-competitors figure {
  margin: 0;
}

.fc-competitor {
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.fc-competitor:hover {
  transform: translateY(-6px);
}

.fc-competitor img {
  display: block;
  width: 100%;
  aspect-ratio: 1080 / 644;
  object-fit: cover;
}

/* Caption sits below the white photo card, directly on the section's own
   dark background — plain text, no white strip behind it (matches the
   Tezos case research captions). */
.fc-competitors figcaption {
  margin-top: 12px;
  padding: 0;
  font-size: 13px;
  font-style: italic;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.65);
}

/* ---------- Wireframing ---------- */

.fc-wireframe-shot {
  margin-top: 40px;
  border-radius: 20px;
  overflow: hidden;
  background: var(--fc-gray);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.fc-wireframe-shot img {
  display: block;
  width: 100%;
}

/* ---------- UI design showcase ---------- */

.fc-section--ui .fc-section__inner {
  margin-bottom: clamp(40px, 6vw, 64px);
}

.fc-showcase {
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 5vw, 48px);
}

.fc-showcase__row {
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.16);
}

.fc-showcase__row img {
  display: block;
  width: 100%;
}

.fc-mobile-row {
  margin-top: clamp(40px, 6vw, 64px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.fc-mobile-row__item {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.16);
}

.fc-mobile-row__item img {
  display: block;
  width: 100%;
}

/* ---------- Typography & colors ---------- */

.fc-type-sample {
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 32px 0 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.fc-type-sample__aa {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 88px;
  line-height: 1;
  color: var(--fc-gold);
}

.fc-type-sample__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  margin: 0 0 6px;
}

.fc-type-sample__charset {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.55);
}

.fc-colors {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: clamp(32px, 5vw, 48px);
}

/* Extra breathing room between the dark Typography & Colors block and the
   Result paragraph that follows it — the shared .case-result has almost no
   top margin by default, which reads as cramped right after a full-bleed
   dark section. Scoped to this page only. */
/* This page has no accordion list, so the shared .case-result rule (which
   centers a 936px column to match the accordion above it on other case
   pages) doesn't apply here — instead this page's paragraphs all sit flush
   against the .container edge, so Result should match that edge too. */
.case-result {
  max-width: 936px;
  margin: 0 0 clamp(40px, 6vw, 64px) max(calc((100vw - var(--container-width)) / 2 + var(--container-pad)), var(--container-pad));
  padding-right: var(--container-pad);
  padding-left: 0;
  margin-top: clamp(56px, 9vw, 96px);
}

.fc-color {
  height: 128px;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
  font-family: var(--font-display);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* The black swatch sits on the section's own black background — without a
   visible edge it disappears entirely, so it gets a solid white outline. */
.fc-color--black {
  border: 1px solid #ffffff;
}

.fc-color__name {
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.06em;
}

.fc-color__hex {
  font-size: 12px;
  opacity: 0.7;
}

/* ---------- Cat mascot sign-off ---------- */

.fc-mascot {
  display: flex;
  justify-content: center;
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: var(--container-pad);
  padding-block: clamp(24px, 5vw, 40px) 0;
}

.fc-mascot img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.14);
}

/* ---------- Scroll reveal + light parallax ---------- */

.reveal-up {
  opacity: 0;
  transform: translateY(48px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal-up {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .fc-steps {
    grid-template-columns: 1fr;
  }

  .fc-competitors {
    grid-template-columns: 1fr;
  }

  .fc-mobile-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .fc-colors {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .fc-mobile-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .fc-type-sample {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .fc-type-sample__aa {
    font-size: 64px;
  }
}
