/* ============================================================
   soulsurf.css
   Scoped styles for the SoulSurf case study page.
   Loaded via extraCss — no dependency on case-studies.css
   ============================================================ */


/* ============================================================
   TOKENS
   ============================================================ */
:root {
  --af-yellow: #ffc531;
  --af-pink: #f23072;
  --af-gold: #b97b07;
  --af-cream: #fff3df;
  --af-ink: #15120f;
  --af-muted: #62594f;
  --af-green: #c8dfc5;
  --af-cola: #170d0e;
  --af-lemon: #e5e89e;
  --af-orange: #f5c98a;
}


/* ============================================================
   GLOBAL UTILITIES
   ============================================================ */

/* Reading progress bar */
.af-progress {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 2000;
  width: 0;
  height: 3px;
  background: var(--af-pink);
  pointer-events: none;
  transition: width 0.1s linear;
}

/* Eyebrow label */
.af-eyebrow {
  display: block;
  font: 800 0.72rem / 1 "Manrope", sans-serif !important;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--af-gold);
  margin-bottom: 0.75rem;
}

.af-eyebrow-light {
  color: var(--af-yellow) !important;
}

/* Scroll-triggered reveal */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Section vertical rhythm */
.af-section {
  padding-block: clamp(4rem, 7vw, 7rem);
}

/* Centred heading block */
.af-center-head {
  text-align: center;
  margin: 0 auto clamp(2rem, 4vw, 3rem);
}

.af-center-head h2 {
  font-size: clamp(2rem, 3.8vw, 3.8rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 0.6rem 0 0;
}

.af-sub {
  margin: 1rem auto 0;
  max-width: 1000px;
  font-size: clamp(1rem, 1.3vw, 1.65rem);
  line-height: 1.65;
  color: var(--af-muted);
}

/* Full-width image strip */
.af-full-img {
  margin: 0;
  overflow: hidden;
}

.af-full-img img {
  width: 100%;
  height: auto;
  display: block;
}


/* ============================================================
   SCROLL-DOWN BADGE
   ============================================================ */
.af-scroll-badge {
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 10;
  margin-top: -60px;
  pointer-events: none;
}

.af-scroll-badge-inner {
  position: relative;
  width: 120px;
  height: 120px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  cursor: pointer;
  animation: af-badge-spin 12s linear infinite;
  box-shadow: 0 2px 16px rgba(21, 18, 15, 0.08);
}

.af-scroll-badge-inner svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.af-scroll-arrow {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--af-ink);
  position: relative;
  z-index: 1;
  line-height: 1;
}

@keyframes af-badge-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.af-scroll-badge-inner:hover {
  animation-play-state: paused;
}


/* ============================================================
   HERO
   ============================================================ */
.af-hero {
  padding-top: var(--header-height, 88px);
  background: #fff;
}

.af-hero-video {
  margin: 0;
  overflow: hidden;
  background: #000;
}

.af-hero-video video {
  width: 100%;
  max-height: 90vh;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.af-hero-shell {
  padding-block: clamp(2.5rem, 5vw, 4.5rem);
  text-align: center;
}

.af-hero-copy {
  max-width: 100%;
  margin: 0 auto;
}

.af-hero-copy h1 {
  font-size: clamp(2.4rem, 4.8vw, 4.8rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0.5rem 0 0;
}


.af-lede {
  max-width: 1000px;
  margin: 1.25rem auto 0;
  font-size: clamp(1rem, 1.3vw, 1.65rem);
  line-height: 1.65;
  color: var(--af-muted);
}

.af-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
  margin-top: 2rem;
}

.af-btn {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  font: 800 0.8rem / 1 "Manrope", sans-serif;
  letter-spacing: 0.06em;
  text-decoration: none;
  border: 2px solid var(--af-ink);
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
}

.af-btn-ghost {
  background: transparent;
  color: var(--af-ink);
}

.af-btn-ghost:hover {
  background: var(--af-ink);
  color: #fff;
  box-shadow: 4px 4px 0 var(--af-yellow);
}

.af-btn-solid {
  background: var(--af-yellow);
  color: var(--af-ink);
}

.af-btn-solid:hover {
  box-shadow: 4px 4px 0 var(--af-ink);
}

/* Meta strip */
.af-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(21, 18, 15, 0.60);
  margin-top: 4.5rem;
  text-align: center;
}

.af-meta div {
  padding: 1.2rem 0.75rem 0;
  text-align: left;
}

.af-meta small {
  display: block;
  font: 700 1rem / 1.2 "Manrope", sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.8;
  color: var(--af-muted);
}

.af-meta strong {
  display: block;
  margin-top: 0.35rem;
  font-size: 1.2rem;
  font-weight: 600;
}

/* Cans hero image */
.af-cans-hero {
  width: 100%;
  line-height: 0;
  overflow: hidden;
}

.af-cans-hero img {
  width: 100%;
  height: auto;
  display: block;
}


/* ============================================================
   THESIS
   ============================================================ */
.af-thesis {
  background: var(--af-yellow);
  padding: clamp(4rem, 7vw, 6.5rem) 0;
  text-align: center;
}

.af-thesis-inner {
  width: min(1400px, calc(100% - 2.5rem));
  margin: 0 auto;
}

.af-thesis-inner h2 {
  font-size: clamp(1.9rem, 3.8vw, 4rem);
  line-height: 1.35;
  letter-spacing: -0.01em;
  margin: 0.8rem 0 0;
}

.af-thesis-inner mark {
  background: var(--pink-soft);
  color: #000;
  padding: 0.04em 0.16em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.af-thesis-inner p{
  max-width: 1000px;
  margin: 1.65rem auto 0;
  font-size: clamp(1rem, 1.3vw, 1.65rem);
  line-height: 1.65;
  color: var(--black);
}

/* ============================================================
   LOGO — anatomy section
   ============================================================ */
.af-logo {
  background: #fff;
}

.af-logo .af-center-head h2 {

  color: var(--af-ink);
  font-size: clamp(2rem, 3.8vw, 3.8rem);
    line-height: 1.1;
    letter-spacing: -0.025em;
    margin: 0.6rem 0 0
}

.af-logo .af-sub {
  font-size: clamp(1rem, 1.3vw, 1.65rem);
  max-width: 100%;
}

/* Anatomy wrapper */
.af-logo-anatomy {
  width: 80%;
  margin: clamp(1.5rem, 3vw, 2.5rem) auto 0;
}

/* Construction diagram: logo PNG + absolutely-placed callouts */
.af-logo-construction {
  position: relative;
  height: 400px;
  width: 250px;
  margin: 0 auto;
}

.af-logo-construction-img {
  width: 100%;
  height: 100%;
  display: block;
  position: relative;
  z-index: 1;
}

/* Hanging callout images */
.af-drop {
  position: absolute;
  bottom: 0;
  z-index: 2;
  width: clamp(72px, 10vw, 124px);
}

.af-drop img {
  width: 100%;
  height: auto;
  display: block;
}

.af-drop-waves {
  left: 29%;
  transform: translateX(-50%);
}

.af-drop-board {
  left: 61%;
  transform: translateX(-50%);
}

/* Annotation row */
.af-logo-annotations {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 2rem auto 0;
  max-width: min(820px, 100%);
  padding: 0 clamp(0.5rem, 3vw, 2rem);
  place-items: center;
}

.af-annot {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.af-annot-circle-img {
  flex-shrink: 0;
  width: clamp(56px, 8vw, 120px);
}

.af-annot-circle-img img {
  width: 100%;
  height: auto;
  display: block;
}

.af-annot-text strong {
  display: block;
  font: 800 0.92rem / 1.2 "Manrope", sans-serif;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--af-ink);
  margin-bottom: 0.45rem;
}

.af-annot-text p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--af-muted);
}

/* Brand statement */
.af-logo-statement {
  text-align: center;
  max-width: 1000px;
  margin: 3.75rem auto 0;
   font-size:clamp(1rem, 1.3vw, 1.65rem) ;
  line-height: 1.75;
  color: var(--af-muted);
}
.af-flavour-intro .af-center-head {
  margin-bottom: 0;
}
.af-digital .af-center-head {
padding: 1rem;
}

.af-flavour-intro .af-sub {
  max-width: 100%;
  margin: 0;
  padding-top: 0.8rem;
  padding-bottom: 3rem;
}

/* ============================================================
   GIF ZONES
   ============================================================ */
.af-gif {
  width: 100%;
  line-height: 0;
  overflow: hidden;
  display: block;
}

.af-gif img {
  width: 100%;
  height: auto;
  display: block;
}

.af-gif-bg {
  position: relative;
  background-size: cover;
  background-position: center;
  padding: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.af-gif-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(21, 18, 15, 0.4);
}

.af-gif-bg img {
  position: relative;
  z-index: 1;
  border-radius: 1rem;
  width: 80%;
  max-height: 100%;
  object-fit: contain;
}


/* ============================================================
   FLAVOUR INTRO
   ============================================================ */
.af-flavour-intro {
  background: #fff;
  padding-bottom: 0;
}


/* ============================================================
   FLAVOUR ROWS
   ============================================================ */
.af-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 560px;
}

.af-row-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(3rem, 5vw, 5rem);
  background-color: var(--cream);
}

.af-row-copy small {
  font: 800 0.68rem / 1 "Manrope", sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--black);
}

.af-row-copy h3 {
  font-size: clamp(2.2rem, 4.3vw, 4.4rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin: 0.85rem 0 0;
}

.af-row-copy p {
  margin: 1.2rem 0 0;
  font-size: clamp(1rem, 1.3vw, 1.65rem);
  line-height: 1.65;
  opacity: 0.72;
}

.af-row-img {
  overflow: hidden;
  margin: 0;
}

.af-row-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.af-row-img:hover img {
  transform: scale(1.04);
}

.af-green,
.af-cola,
.af-lemon,
.af-orange {
  background: #fff;
  color: var(--af-ink);
}


/* ============================================================
   PACKAGING
   ============================================================ */
.af-packaging {
  background: var(--pink-soft);
}


/* ============================================================
   DIGITAL
   ============================================================ */
.af-digital {
  background: #fff;
}


/* ============================================================
   PROCESS TIMELINE
   ============================================================ */
.af-process {
  background: #fff;
}

.af-timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  position: relative;
  margin-top: 3.5rem;
}

.af-timeline::before {
  content: '';
  position: absolute;
  left: 60px;
  right: 60px;
  top: 22px;
  height: 3px;
  background: var(--af-ink);
}

.af-step {
  position: relative;
  padding: 5.25rem 1rem 0;
  text-align: center;
  z-index: 1;
}

.af-dot {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--black);
  border: 8px solid var(--af-yellow);
}

.af-step h3 {
  font-size: 1.2rem;
  margin: 0.5rem 0 1rem;
}

.af-step p {
  margin: 0;
  font-size: 1rem;
  color: var(--af-muted);
  line-height: 1.6;
}


/* ============================================================
   RESPONSIVE — 1024px
   ============================================================ */
@media (max-width: 1024px) {
  .af-row {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .af-meta {
    grid-template-columns: 1fr 1fr;
  }

  .af-timeline {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }


  /* Logo */
  .af-drop {
    width: clamp(68px, 10vw, 110px);
  }

  .af-drop-waves {
    left: 28.5%;
  }

  .af-drop-board {
    left: 60.5%;
  }

  .af-logo-annotations {
    gap: 1.5rem 2.5rem;
  }
    .af-cola .af-row-copy{
    order: 1 !important;
  }
  .af-cola .af-row-img {
    order:2 !important
  }
  .af-orange .af-row-copy {
    order: 1 !important;
  }
  .af-orange .af-row-img {
    order:2 !important
  }
   .af-gif-bg img {
    width: 100%;
  }
}


/* ============================================================
   RESPONSIVE — 720px
   ============================================================ */
@media (max-width: 720px) {

  /* Hero */
  .af-hero-copy h1 {
    font-size: clamp(1.9rem, 8vw, 2.8rem);
  }

  .af-meta {
    grid-template-columns: 1fr 1fr;
  }

  /* Scroll badge */
  .af-scroll-badge {
    margin-top: -44px;
  }

  .af-scroll-badge-inner {
    width: 84px;
    height: 84px;
  }

  .af-scroll-badge-inner svg {
    width: 84px;
    height: 84px;
  }

  .af-scroll-badge-inner svg text {
    font-size: 9.5px;
    letter-spacing: 2.5px;
  }

  .af-scroll-arrow {
    font-size: 1rem;
  }

  /* Thesis */
  .af-thesis-inner h2 {
    font-size: clamp(1.7rem, 6.5vw, 2.4rem);
  }

  /* Logo */
  .af-logo-anatomy {
    width: 100%;
  }

  .af-drop {
    width: clamp(56px, 15vw, 88px);
  }

  .af-drop-waves {
    left: 27%;
  }

  .af-drop-board {
    left: 59%;
  }

  .af-logo-annotations {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding: 0;
    max-width: 400px;
  }

  .af-annot-circle-img {
    width: 58px;
  }

  .af-logo-statement {
    margin-top: 2rem;
  }

  /* Flavour rows */
  .af-row-copy {
    padding: 2.5rem 1.5rem;
  }

  .af-row-copy h3 {
    font-size: clamp(1.9rem, 6vw, 2.8rem);
  }

  /* Timeline */
  .af-timeline {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .af-step {
    text-align: left;
    padding: 0 0 0 3rem;
  }

  .af-dot {
    left: 0;
    transform: none;
    top: 0;
    width: 32px;
    height: 32px;
  border: 6px solid var(--af-yellow);
  }
  .af-timeline::before {
  content: '';
  position: absolute;
  top: -16px;
  left: 14px;
  width: 3px;
  height: 100%;
  background: var(--af-ink);
}
  
  .af-step h3 {
    margin-top: 0;
    margin-bottom: 8px;
  }

  /* GIF */
  .af-gif-bg {
    padding: 4rem 1rem;
  }

  .af-gif-bg img {
    width: 100%;
  }
  .af-meta small{
    font-size: 0.8rem;
  }
  .af-meta div {
    padding: 1rem 1.4rem;
  }
  .af-meta strong {
    font-size: 0.8rem;
  }
 
.af-step p {
  line-height: 1.5;
}
.af-logo-construction {
  height: 280px;
  width: 160px;
}
}


/* ============================================================
   RESPONSIVE — 480px
   ============================================================ */
@media (max-width: 480px) {

  /* Buttons */
  .af-cta-row {
    flex-direction: column;
  }

  .af-btn {
    text-align: center;
  }

  /* Scroll badge */
  .af-scroll-badge {
    margin-top: -38px;
  }

  .af-scroll-badge-inner {
    width: 72px;
    height: 72px;
  }

  .af-scroll-badge-inner svg {
    width: 72px;
    height: 72px;
  }

  .af-scroll-badge-inner svg text {
    font-size: 8.5px;
    letter-spacing: 2px;
  }

  .af-scroll-arrow {
    font-size: 0.9rem;
  }

  /* Logo */
  .af-logo-anatomy {
    width: 100%;
  }

  .af-drop {
    width: clamp(44px, 17vw, 64px);
  }

  .af-drop-waves {
    left: 26%;
  }

  .af-drop-board {
    left: 57%;
  }

  .af-annot {
    gap: 0.75rem;
  }

  .af-annot-circle-img {
    width: 86px;
  }

  .af-annot-text strong {
    font-size: 0.68rem;
    letter-spacing: 0.1em;
  }

  .af-annot-text p {
    font-size: 0.82rem;
  }

  .af-logo-statement {
    font-size: 0.92rem;
    margin-top: 1.75rem;
  }
}


/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .af-row-img img {
    transition: none;
  }

  .af-scroll-badge-inner {
    animation: none;
  }
}