/* ============================================================
   soulsurf.css
   Scoped styles for the SoulSurf case study page.
   Loaded via extraCss — no dependency on case-studies.css
   ============================================================ */


/* ============================================================
   TOKENS
   ============================================================ */
:root {
  --ty-yellow: #ffc531;
  --ty-pink: #f23072;
  --ty-gold: #b97b07;
  --ty-cream: #fff3df;
  --ty-ink: #15120f;
  --ty-muted: #62594f;
  --ty-green: #c8dfc5;
  --ty-cola: #170d0e;
  --ty-lemon: #e5e89e;
  --ty-orange: #f5c98a;
}


/* ============================================================
   GLOBAL UTILITIES
   ============================================================ */

/* Reading progress bar */
.ty-progress {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 2000;
  width: 0;
  height: 3px;
  background: var(--ty-pink);
  pointer-events: none;
  transition: width 0.1s linear;
}

/* Eyebrow label */
.ty-eyebrow {
  display: block;
  font: 800 0.72rem / 1 "Manrope", sans-serif !important;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ty-gold);
  margin-bottom: 0.75rem;
}

.ty-eyebrow-light {
  color: var(--ty-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 */
.ty-section {
  padding-block: clamp(4rem, 7vw, 7rem);
}

/* Centred heading block */
.ty-center-head {
  text-align: center;
  margin: 0 auto clamp(2rem, 4vw, 3rem);
}

.ty-center-head h2 {
  font-size: clamp(2rem, 3.8vw, 3.8rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 0.6rem 0 0;
}

.ty-sub {
  margin: 1rem auto 0;
  font-size: clamp(1rem, 1.3vw, 1.65rem);
  line-height: 1.65;
  color: var(--ty-muted);
}

/* Full-width image strip */
.ty-full-img {
  margin: 0;
  overflow: hidden;
}

.ty-full-img img {
  width: 100%;
  height: auto;
  display: block;
}


/* ============================================================
   SCROLL-DOWN BADGE
   ============================================================ */
.ty-scroll-badge {
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 10;
  margin-top: -60px;
  pointer-events: none;
}

.ty-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: ty-badge-spin 12s linear infinite;
  box-shadow: 0 2px 16px rgba(21, 18, 15, 0.08);
}

.ty-scroll-badge-inner svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.ty-scroll-arrow {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ty-ink);
  position: relative;
  z-index: 1;
  line-height: 1;
}

@keyframes ty-badge-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.ty-scroll-badge-inner:hover {
  animation-play-state: paused;
}


/* ============================================================
   HERO
   ============================================================ */
.ty-hero {
  padding-top: var(--header-height, 88px);
  background: #fff;
}

.ty-hero-video {
  margin: 0;
  overflow: hidden;
  background: #000;
}

.ty-hero-video video {
  width: 100%;
  max-height: 90vh;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.ty-hero-shell {
  padding-block: clamp(2.5rem, 5vw, 4.5rem);
  text-align: center;
}

.ty-hero-copy {
  max-width: 100%;
  margin: 0 auto;
}

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


.ty-lede {
  max-width: 1000px;
  margin: 1.25rem auto 0;
  font-size: clamp(1rem, 1.3vw, 1.65rem);
  line-height: 1.65;
  color: var(--ty-muted);
}

.ty-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
  margin-top: 2rem;
}

.ty-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(--ty-ink);
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
}

.ty-btn-ghost {
  background: transparent;
  color: var(--ty-ink);
}

.ty-btn-ghost:hover {
  background: var(--ty-ink);
  color: #fff;
  box-shadow: 4px 4px 0 var(--ty-yellow);
}

.ty-btn-solid {
  background: var(--ty-yellow);
  color: var(--ty-ink);
}

.ty-btn-solid:hover {
  box-shadow: 4px 4px 0 var(--ty-ink);
}

/* Meta strip */
.ty-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;
}

.ty-meta div {
  padding: 1.2rem 0.75rem 0;
  text-align: left;
}

.ty-meta small {
  display: block;
  font: 700 1rem / 1.2 "Manrope", sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.8;
  color: var(--ty-muted);
}

.ty-meta strong {
  display: block;
  margin-top: 0.35rem;
  font-size: 1.2rem;
  font-weight: 600;
}

/* Cans hero image */
.ty-cans-hero {
  width: 100%;
  line-height: 0;
  overflow: hidden;
}

.ty-cans-hero img {
  width: 100%;
  height: auto;
  display: block;
}


/* ============================================================
   THESIS
   ============================================================ */
.ty-thesis {
  background: var(--ty-yellow);
  padding: clamp(4rem, 7vw, 6.5rem) 0;
  text-align: center;
}

.ty-thesis-inner {
  width: min(1400px, calc(100% - 2.5rem));
  margin: 0 auto;
}

.ty-thesis-inner h2 {
  font-size: clamp(1.9rem, 3.8vw, 4rem);
  line-height: 1.35;
  letter-spacing: -0.01em;
  margin: 0.8rem 0 0;
}

.ty-thesis-inner mark {
  background: var(--pink-soft);
  color: #000;
  padding: 0.04em 0.16em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.ty-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
   ============================================================ */
.ty-logo {
  background: #fff;
}

.ty-logo .ty-center-head h2 {

  color: var(--ty-ink);
  font-size: clamp(2rem, 3.8vw, 3.8rem);
    line-height: 1.1;
    letter-spacing: -0.025em;
    margin: 0.6rem 0 0
}

.ty-logo .ty-sub {
  font-size: clamp(1rem, 1.3vw, 1.65rem);
  max-width: 100%;
}

/* Anatomy wrapper */
.ty-logo-anatomy {
  width: 40%;
  margin: clamp(1.5rem, 3vw, 2.5rem) auto 0;
}

/* Construction diagram: logo PNG + absolutely-placed callouts */
.ty-logo-construction {
  position: relative;
  width: 100%;
}

.ty-logo-construction-img {
  width: 100%;
  height: auto;
  display: block;
  position: relative;
  z-index: 1;
}

/* Hanging callout images */
.ty-drop {
  position: absolute;
  bottom: 0;
  z-index: 2;
  width: clamp(72px, 10vw, 124px);
}

.ty-drop img {
  width: 100%;
  height: auto;
  display: block;
}

.ty-drop-waves {
  left: 29%;
  transform: translateX(-50%);
}

.ty-drop-board {
  left: 61%;
  transform: translateX(-50%);
}

/* Annotation row */
.ty-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);
}

.ty-annot {
  display: flex;
  align-items: flex-end;
  gap: 0.6rem;
}

.ty-annot-circle-img {
  flex-shrink: 0;
  width: clamp(56px, 8vw, 120px);
}

.ty-annot-circle-img img {
  width: 100%;
  height: auto;
  display: block;
}

.ty-annot-text strong {
  display: block;
  font: 800 0.92rem / 1.2 "Manrope", sans-serif;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ty-ink);
  margin-bottom: 0.45rem;
}

.ty-annot-text p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--ty-muted);
}

/* Brand statement */
.ty-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(--ty-muted);
}
.ty-flavour-intro .ty-center-head {
  margin-bottom: 0;
}
.ty-digital .ty-center-head {
padding: 1rem;
}

.ty-flavour-intro .ty-sub {
  max-width: 100%;
  margin: 0;
  padding-top: 0.8rem;
  padding-bottom: 3rem;
}

/* ============================================================
   GIF ZONES
   ============================================================ */
.ty-gif {
  width: 100%;
  line-height: 0;
  overflow: hidden;
  display: block;
}

.ty-gif img {
  width: 100%;
  height: auto;
  display: block;
}

.ty-gif-bg {
  position: relative;
  background-size: cover;
  background-position: center;
  padding: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ty-gif-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(21, 18, 15, 0.4);
}

.ty-gif-bg img {
  position: relative;
  z-index: 1;
  border-radius: 1rem;
  width: 80%;
  max-height: 100%;
  object-fit: contain;
}


/* ============================================================
   FLAVOUR INTRO
   ============================================================ */
.ty-flavour-intro {
  background: #fff;
  padding-bottom: 0;
}


/* ============================================================
   FLAVOUR ROWS
   ============================================================ */
.ty-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 560px;
}

.ty-row-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(3rem, 5vw, 5rem);
  background-color: var(--cream);
}

.ty-row-copy small {
  font: 800 0.68rem / 1 "Manrope", sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--black);
}

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

.ty-row-copy p {
  margin: 1.2rem 0 0;
  font-size: clamp(1rem, 1.3vw, 1.65rem);
  line-height: 1.65;
  opacity: 0.72;
}

.ty-row-img {
  overflow: hidden;
  margin: 0;
}

.ty-row-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.5s ease;
}

.ty-row-img:hover img {
  transform: scale(1.04);
}

.ty-green,
.ty-cola,
.ty-lemon,
.ty-orange {
  background: #fff;
  color: var(--ty-ink);
}



/* ============================================================
   PACKAGING
   ============================================================ */
.ty-packaging {
  background: var(--pink-soft);
}


/* ============================================================
   DIGITAL
   ============================================================ */
.ty-digital {
  background: #fff;
}


/* ============================================================
   PROCESS TIMELINE
   ============================================================ */
.ty-process {
  background: #fff;
}

.ty-timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  position: relative;
  margin-top: 3.5rem;
}

.ty-timeline::before {
  content: '';
  position: absolute;
  left: 60px;
  right: 60px;
  top: 22px;
  height: 3px;
  background: var(--ty-ink);
}

.ty-step {
  position: relative;
  padding: 5.25rem 1rem 0;
  text-align: center;
  z-index: 1;
}

.ty-dot {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--black);
  border: 8px solid var(--ty-yellow);
}

.ty-step h3 {
  font-size: 1.2rem;
  margin: 0.5rem 0 1rem;
}

.ty-step p {
  margin: 0;
  font-size: 1rem;
  color: var(--ty-muted);
  line-height: 1.6;
}

.teddys-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: 100%;
  padding-bottom: 16px;
  gap: 10px;
  background: #fff;
  place-items: center;
}

.grid-item {
  width: 100%;
  overflow: hidden;
}

.grid-item img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}


/* Cards container */

.ty-process-cards {
  width: 100%;

  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));

  gap: clamp(10px, 1.25vw, 18px);

  align-items: stretch;
}


/* Individual card */

.ty-process-card {
  position: relative;

  min-width: 0;
  min-height: 285px;

  overflow: hidden;

  padding:
    clamp(20px, 2vw, 30px)
    clamp(18px, 1.65vw, 26px);

  display: flex;
  flex-direction: column;

  isolation: isolate;
}


/* Yellow card */

.ty-process-card-yellow {
  background: #ffc648;
  color: #0a0a0a;
}


/* Dark card */

.ty-process-card-dark {
  background: #080808;
  color: #ffffff;
}


/* Text */

.ty-process-card-content {
  position: relative;
  z-index: 2;
}

.ty-process-card h3 {
  margin: 0;
  font-size: 28px;
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 750;
  color: inherit;
}


.ty-process-card p {
  margin: 14px 0 0;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 450;
  color: inherit;
  opacity: 0.92;
}

/* Large number */

.ty-process-number {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 1;
  font-size: clamp(3rem, 4vw, 4.5rem);
  line-height: 0.9;
  font-weight: 800;
  letter-spacing: -0.06em;
  pointer-events: none;
}

.ty-process-card-yellow .ty-process-number {
  color: rgba(105, 79, 14, 0.50);
}

.ty-process-card-dark .ty-process-number {
  color: rgba(255, 255, 255, 0.38);
}

/* ============================================================
   RESPONSIVE — 1024px
   ============================================================ */
@media (max-width: 1024px) {
  .ty-row {
    grid-template-columns: 1fr 1fr;
    min-height: auto;
  }

  .ty-meta {
    grid-template-columns: 1fr 1fr;
  }

  .ty-timeline {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }


  /* Logo */
  .ty-drop {
    width: clamp(68px, 10vw, 110px);
  }

  .ty-drop-waves {
    left: 28.5%;
  }

  .ty-drop-board {
    left: 60.5%;
  }

  .ty-logo-annotations {
    gap: 1.5rem 2.5rem;
  }
    .ty-cola .ty-row-copy{
    order: 1 !important;
  }
  .ty-cola .ty-row-img {
    order:2 !important
  }
  .ty-orange .ty-row-copy {
    order: 1 !important;
  }
  .ty-orange .ty-row-img {
    order:2 !important
  }
   .ty-gif-bg img {
    width: 100%;
  }
   .teddys-grid {
    grid-template-columns: repeat(2, 1fr);
  }
   .ty-process-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .ty-process-card {
    min-height: 200px;
  }

  .ty-process-card:last-child {
    grid-column: span 2;
  }
    .ty-row-img img {
   padding: 42px 0;
  }
}


/* ============================================================
   RESPONSIVE — 720px
   ============================================================ */
@media (max-width: 720px) {

  /* Hero */
  .ty-hero-copy h1 {
    font-size: clamp(1.9rem, 8vw, 2.8rem);
  }

  .ty-meta {
    grid-template-columns: 1fr 1fr;
  }

  /* Scroll badge */
  .ty-scroll-badge {
    margin-top: -44px;
  }

  .ty-scroll-badge-inner {
    width: 84px;
    height: 84px;
  }

  .ty-scroll-badge-inner svg {
    width: 84px;
    height: 84px;
  }

  .ty-scroll-badge-inner svg text {
    font-size: 9.5px;
    letter-spacing: 2.5px;
  }

  .ty-scroll-arrow {
    font-size: 1rem;
  }

  /* Thesis */
  .ty-thesis-inner h2 {
    font-size: clamp(1.7rem, 6.5vw, 2.4rem);
  }

  /* Logo */
  .ty-logo-anatomy {
    width: 100%;
  }

  .ty-drop {
    width: clamp(56px, 15vw, 88px);
  }

  .ty-drop-waves {
    left: 27%;
  }

  .ty-drop-board {
    left: 59%;
  }

  .ty-logo-annotations {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding: 0;
    max-width: 400px;
  }

  .ty-annot-circle-img {
    width: 58px;
  }

  .ty-logo-statement {
    margin-top: 2rem;
  }
  .ty-row {
    grid-template-columns: 1fr;
  }

  /* Flavour rows */
  .ty-row-copy {
    padding: 2.5rem 1.5rem;
  }

  .ty-row-copy h3 {
    font-size: clamp(1.9rem, 6vw, 2.8rem);
  }

  /* Timeline */
  .ty-timeline {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .ty-step {
    text-align: left;
    padding: 0 0 0 3rem;
  }

  .ty-dot {
    left: 0;
    transform: none;
    top: 0;
    width: 32px;
    height: 32px;
  border: 6px solid var(--ty-yellow);
  }
  .ty-timeline::before {
  content: '';
  position: absolute;
  top: -16px;
  left: 14px;
  width: 3px;
  height: 100%;
  background: var(--ty-ink);
}
  
  .ty-step h3 {
    margin-top: 0;
    margin-bottom: 8px;
  }

  /* GIF */
  .ty-gif-bg {
    padding: 6rem 1rem;
  }

  .ty-gif-bg img {
    width: 100%;
  }
  .ty-meta small{
    font-size: 0.8rem;
  }
    .ty-meta strong {
    font-size: 0.8rem;
  }
 
.ty-step p {
  line-height: 1.5;
}
  .teddys-grid {
    grid-template-columns: 1fr;
  }
  .ty-process-cards {
    grid-template-columns: 1fr;

    gap: 12px;
  }


  .ty-process-card,
  .ty-process-card:last-child {
    grid-column: auto;

    min-height: 205px;

    padding: 24px 22px;
  }


  .ty-process-card h3 {
    font-size: 1.35rem;
  }


  .ty-process-card p {
    margin-top: 12px;
    line-height: 1.45;
  }


  .ty-process-number {
    font-size: 3rem;
  }
}


/* ============================================================
   RESPONSIVE — 480px
   ============================================================ */
@media (max-width: 480px) {

  /* Buttons */
  .ty-cta-row {
    flex-direction: column;
  }

  .ty-btn {
    text-align: center;
  }

  /* Scroll badge */
  .ty-scroll-badge {
    margin-top: -38px;
  }

  .ty-scroll-badge-inner {
    width: 72px;
    height: 72px;
  }

  .ty-scroll-badge-inner svg {
    width: 72px;
    height: 72px;
  }

  .ty-scroll-badge-inner svg text {
    font-size: 8.5px;
    letter-spacing: 2px;
  }

  .ty-scroll-arrow {
    font-size: 0.9rem;
  }

  /* Logo */
  .ty-logo-anatomy {
    width: 100%;
  }

  .ty-drop {
    width: clamp(44px, 17vw, 64px);
  }

  .ty-drop-waves {
    left: 26%;
  }

  .ty-drop-board {
    left: 57%;
  }

  .ty-annot {
    gap: 0.75rem;
  }

  .ty-annot-circle-img {
    width: 86px;
  }

  .ty-annot-text strong {
    font-size: 0.68rem;
    letter-spacing: 0.1em;
  }

  .ty-annot-text p {
    font-size: 0.82rem;
  }

  .ty-logo-statement {
    font-size: 0.92rem;
    margin-top: 1.75rem;
  }
    .ty-process-card {
    min-height: 190px;

    padding: 21px 19px;
  }

  .ty-process-card h3 {
    font-size: 22px;
  }

  .ty-process-number {
    font-size: 3.5rem;
  }

}


/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .ty-row-img img {
    transition: none;
  }

  .ty-scroll-badge-inner {
    animation: none;
  }
}