/* ==========================================================
   OLHA SHAPARENKO — PORTFOLIO  v2
   ========================================================== */

/* ---------- CUSTOM PROPERTIES ---------- */
:root {
  --bg:      #f8f8f8;
  --black:   #000000;
  --white:   #ffffff;
  --card:    #f0f0f0;
  --muted:   #545454;
  --border:  #e3e3e3;
  --accent:  #BEF156;

  --gutter:  106px;
  --max:     1228px;

  /* Nav typography exactly as specified */
  --nav-font-size:   16px;
  --nav-font-weight: 500;

  --ease-in: cubic-bezier(0.4, 0, 1, 1);    /* ease-in for accent reveals */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--black);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  overflow-x: clip;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---------- SCROLL REVEAL ---------- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out);
}
.reveal.reveal--delay-1 { transition-delay: 0.12s; }
.reveal.reveal--delay-2 { transition-delay: 0.24s; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* =====================================================
   NAV
   — width constrained to content column, centred
   ===================================================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--bg);
  transition: box-shadow 0.3s;
}
.nav.scrolled { box-shadow: 0 1px 0 var(--border); }

/* inner wrapper matches content width */
.nav__inner {
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin-inline: auto;
  padding: 28px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  color: var(--black);
  font-size: var(--nav-font-size);
  font-style: normal;
  font-weight: var(--nav-font-weight);
  line-height: normal;
  text-transform: uppercase;
}

.nav__links {
  display: flex;
  gap: 48px;
}

/* NAV LINK — exact spec + #BEF156 background highlight ease-in */
.nav__link {
  color: var(--black);
  font-size: var(--nav-font-size);
  font-style: normal;
  font-weight: var(--nav-font-weight);
  line-height: normal;
  text-transform: uppercase;
  position: relative;
  display: inline-block;
  /* the green bg grows from 0 → full via ease-in */
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent) 100%) no-repeat left center;
  background-size: 0% 100%;
  transition: background-size 0.3s var(--ease-in);
  padding: 2px 0;
}
.nav__link:hover {
  background-size: 100% 100%;
}

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__burger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--black);
  transition: transform 0.25s, opacity 0.25s;
}

/* =====================================================
   SECTION WRAPPER
   ===================================================== */
.section {
  padding-block: 80px;
  padding-inline: var(--gutter);
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin-inline: auto;
}
/* flush variant: section padding stripped, used for carousel */
.section--flush {
  padding-inline: 0;
  max-width: 100%;
  margin-inline: 0;
}

.section__header {
  margin-bottom: 48px;
}
/* Rule sits ABOVE the title as in the design */
.section__rule {
  width: 100%;
  height: 1px;
  background: var(--black);
  margin-bottom: 12px;
}
.section__title {
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 1.1;
}
.section__title--large {
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 1.1;
}

/* =====================================================
   HERO
   ===================================================== */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: flex-end;
  padding-top: 120px;
  padding-inline: var(--gutter);
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin-inline: auto;
}
.hero__photo {
  height: clamp(380px, 50vw, 622px);
  overflow: hidden;
}
.hero__photo img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
  transition: transform 0.8s var(--ease-out);
}
.hero__photo:hover img { transform: scale(1.03); }
.hero__intro {
  font-size: clamp(22px, 3vw, 40px);
  font-weight: 500;
  line-height: 1.3;
  padding-bottom: 20px;
}

/* =====================================================
   NAME BLOCK — green bar animates in ease-in on reveal
   ===================================================== */
.name-block {
  padding-inline: var(--gutter);
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-top: 24px;
  padding-bottom: 48px;
}
.name-block__name {
  font-size: clamp(52px, 9vw, 100px);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1;
  letter-spacing: -0.02em;
  display: flex;
  flex-direction: column;
}
.name-block__line { display: block; }
.name-block__line--accent {
  position: relative;
  display: inline-block;
}
/* The green bar: starts at 0 width, expands to full when parent .reveal gets .in-view */
.name-accent-bar {
  position: absolute;
  left: 0; right: 0;
  top: 55%;
  height: clamp(18px, 2.5vw, 31px);
  background: var(--accent);
  z-index: -1;
  transform: translateY(-50%);
  width: 0;
  transition: width 0.5s var(--ease-in) 0.35s; /* delayed so name fades in first */
}
.name-block.in-view .name-accent-bar {
  width: 100%;
}

/* =====================================================
   SELECTED WORK
   ===================================================== */
.work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px 0;
  margin-bottom: 80px;
}

.work-card__label {
  margin-bottom: 12px;
  font-size: 20px;
  text-transform: uppercase;
}

/* Label highlight: ease-in, triggers when parent work-card is hovered */
.work-card__num {
  display: inline-block;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent) 100%) no-repeat left center;
  background-size: 0% 100%;
  transition: background-size 0.3s var(--ease-in);
  padding: 2px 4px 2px 0;
}
.work-card:hover .work-card__num {
  background-size: 100% 100%;
}

.work-card__media {
  display: block;
  position: relative;
  overflow: hidden;
  height: clamp(200px, 24vw, 284px);
  background: var(--card);
}
.work-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}
.work-card:hover .work-card__media img { transform: scale(1.04); }

.work-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(10, 12, 16, 0.75) 40%, rgba(5, 7, 10, 0.5) 100%);
  display: flex;
  align-items: flex-end;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.35s;
}
.work-card:hover .work-card__overlay { opacity: 1; }
.work-card__overlay span { color: var(--accent); font-size: 18px; font-weight: 500; }

.work-quote {
  font-size: clamp(22px, 3vw, 40px);
  font-weight: 500;
  text-align: right;
  line-height: 1.3;
  max-width: 85%;
  margin-left: auto;
}

/* =====================================================
   SERVICES
   ===================================================== */
.services-list { display: flex; flex-direction: column; }

.service-row {
  display: grid;
  grid-template-columns: 380px 1fr 409px;
  gap: 30px;
  align-items: center;
  padding-block: 28px;
  /* Internal dividers only: border on top of every row except the very first */
  border-top: none;
}
/* Only rows that follow another row get a top divider → internal lines only */
.service-row + .service-row {
  border-top: 1px solid var(--border);
}
/* No bottom border on the last row */

/* Label highlight on row hover, ease-in */
.service-row__label {
  font-size: 18px;
  text-transform: uppercase;
}
.service-row__label span {
  display: inline-block;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent) 100%) no-repeat left center;
  background-size: 0% 100%;
  transition: background-size 0.3s var(--ease-in);
  padding: 2px 4px 2px 0;
}
.service-row:hover .service-row__label span {
  background-size: 100% 100%;
}

.service-row__desc {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.6;
}
.service-row__visual {
  height: 154px;
  overflow: hidden;
  background: var(--card);
}
.service-row__visual img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}
.service-row:hover .service-row__visual img { transform: scale(1.05); }

/* =====================================================
   TEACHING
   ===================================================== */
.teaching-header__left {
  grid-column: 1 / -1;
  gap: 156px;
  align-items: start;
  margin-bottom: 56px;
}
.teaching-header__desc {
  font-size: clamp(22px, 2.8vw, 40px);
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: 48px;
}
.teaching-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.teaching-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-right: 16px;
}
.teaching-col:last-child { padding-right: 0; }
.teaching-col__text { font-size: 16px; color: var(--muted); line-height: 1.6; }
.teaching-col__photo {
  height: 282px;
  overflow: hidden;
  background: var(--card);
}
.teaching-col__photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}
.teaching-col:hover .teaching-col__photo img { transform: scale(1.04); }

/* =====================================================
   ABOUT ME â€” two equal columns aligned at top
   ===================================================== */
.about-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;  /* equal 50/50 so grids stay locked while scrolling */
  gap: 80px;
  align-items: start;
}
.about-cols__bio {
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

/* EXPERIENCE LIST â€” expandable accordion */
.experience-list { display: flex; flex-direction: column; }

.exp-item {
  border-top: 1px solid var(--border);
  overflow: hidden;
  transition: background 0.2s;
}
.exp-item:last-child { border-bottom: 1px solid var(--border); }

.exp-item__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-block: 36px;
  cursor: pointer;
  transition: background 0.2s;
}
.exp-item.open .exp-item__header { padding-bottom: 0; }
.exp-item__header:hover { background: var(--card); padding-inline: 12px; margin-inline: -12px; }

.exp-item__info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.exp-item__info strong { font-size: 18px; font-weight: 500; }
.exp-item__info span { font-size: 16px; color: var(--muted); }

.exp-item__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  font-size: 16px;
  color: var(--muted);
  flex-shrink: 0;
}

/* Arrow rotates when open */
.exp-arrow {
  transition: transform 0.3s var(--ease-out);
}
.exp-item.open .exp-arrow { transform: rotate(180deg); }

/* Expandable body */
.exp-item__body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s var(--ease-out);
}
.exp-item.open .exp-item__body {
  grid-template-rows: 1fr;
}
.exp-item__body > * {
  overflow: hidden;
}
/* inner wrapper to allow padding animation */
.exp-item__body {
  padding-left: 0;
}
.exp-item__company-desc {
  font-size: 16px;
  color: var(--black);
  line-height: 1.6;
  padding-top: 20px;
}
.exp-item__bullets {
  list-style: disc;
  padding-left: 20px;
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.exp-item__bullets li {
  font-size: 15px;
  color: var(--black);
  line-height: 1.6;
}
.exp-item__impact {
  margin-top: 16px;
  padding: 16px;
  background: var(--card);
  font-size: 15px;
  color: var(--black);
  line-height: 1.6;
  margin-bottom: 28px;
}
.exp-item__impact strong { font-weight: 600; }

/* Ciklum expanded content â€” black text variants */
.exp-item__company-desc--black { color: var(--black); }
.exp-item__sub-desc {
  font-size: 15px;
  color: var(--black);
  line-height: 1.6;
  margin-top: 6px;
}
.exp-item__client-heading {
  font-size: 15px;
  font-weight: 600;
  color: var(--black);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-top: 20px;
  margin-bottom: 6px;
}
.exp-item__bullets--black li { color: var(--black); }
.exp-item__impact--black { color: var(--black); }
.exp-item__other-engagements {
  font-size: 15px;
  color: var(--black);
  line-height: 1.6;
  margin-top: 16px;
  margin-bottom: 28px;
  font-style: italic;
}
/* =====================================================
   BEYOND — equal columns matching About Me grid
   ===================================================== */
.beyond-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;  /* matches about-cols so both sections share the same column rhythm */
  gap: 80px;
  align-items: start;
}
.beyond-cols__text {
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}
.beyond-cols__facts {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.fact-item { display: flex; flex-direction: column; gap: 6px; }
.fact-item__label {
  font-size: 18px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.6;
}
.fact-item p { font-size: 16px; color: var(--muted); line-height: 1.6; }

/* =====================================================
   FEEDBACK / TESTIMONIALS
   ===================================================== */
.testimonials-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.testimonial {
  background: var(--card);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
}
.testimonial:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}

.testimonial__quote {
  font-size: 60px;
  line-height: 1;
  color: var(--black);
}

.testimonial__text {
  font-size: 16px;
  font-style: italic;
  line-height: 1.5;
  flex: 1;
}

.testimonial__author {
  font-size: 18px;
  text-transform: uppercase;
  text-align: right;
  font-weight: 400;
  margin-top: auto;
}
.testimonial__role {
  font-size: 15px;
  color: #8a8a8a;
  text-align: right;
}

/* =====================================================
   FOOTER — 484px tall as in design
   ===================================================== */
.footer {
  background: var(--black);
  color: var(--white);
  min-height: 484px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 64px var(--gutter) 48px;
}

.footer__cta {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  max-width: var(--max);
  margin-inline: auto;
  width: 100%;
}
.footer__heading {
  font-size: clamp(48px, 8vw, 100px);
  font-weight: 700;
  text-transform: lowercase;
  line-height: 1;
  letter-spacing: -0.02em;
}
.footer__btn {
  font-size: 28px;
  font-weight: 400;
  white-space: nowrap;
  padding-bottom: 4px;
  position: relative;
  flex-shrink: 0;
}
.footer__btn::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.3s var(--ease-out);
}
.footer__btn:hover { color: var(--accent); }
.footer__btn:hover::after { width: 100%; }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--max);
  margin-inline: auto;
  width: 100%;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.footer__name {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.7);
}
.footer__nav { display: flex; gap: 40px; }
.footer__nav a {
  font-size: 14px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.04em;
  transition: color 0.2s;
}
.footer__nav a:hover { color: var(--white); }

/* =====================================================
   RESPONSIVE — TABLET (≤1024px)
   ===================================================== */
@media (max-width: 1024px) {
  :root { --gutter: 48px; }

  .hero { grid-template-columns: 1fr; gap: 32px; padding-top: 100px; }
  .hero__photo { height: 420px; }

  .work-grid { grid-template-columns: 1fr; gap: 40px; }

  .service-row {
    grid-template-columns: 1fr 1fr;
  }
  .service-row__label { grid-column: 1 / -1; }
  .service-row__visual { display: none; }

  .teaching-header { grid-template-columns: 1fr; gap: 24px; }
  .teaching-cols { grid-template-columns: 1fr 1fr; }
  .teaching-col:last-child { display: none; }

  .about-cols { grid-template-columns: 1fr; gap: 48px; }
  .beyond-cols { grid-template-columns: 1fr; gap: 48px; }

  .testimonial { min-width: 380px; max-width: 380px; }

  .footer__cta { flex-direction: column; align-items: flex-start; gap: 24px; }
}

/* =====================================================
   RESPONSIVE — MOBILE (≤640px)
   ===================================================== */
@media (max-width: 640px) {
  :root { --gutter: 20px; }

  .nav__inner { padding: 18px var(--gutter); }
  .nav__links {
    position: fixed;
    top: 0; right: -100%;
    width: 70vw; height: 100vh;
    background: var(--white);
    flex-direction: column;
    justify-content: center;
    padding: 48px 32px;
    gap: 32px;
    box-shadow: -8px 0 40px rgba(0,0,0,0.12);
    transition: right 0.35s var(--ease-out);
  }
  .nav__links.open { right: 0; }
  .nav__link { font-size: 18px; }
  .nav__burger { display: flex; }

  .hero { padding-top: 80px; }
  .hero__photo { height: 280px; }
  .hero__intro { font-size: 20px; }

  .name-block__name { font-size: clamp(40px, 13vw, 72px); }

  .section { padding-block: 56px; }
  .section--flush { padding-inline: 0; margin-inline: 0; }

  .work-card__media { height: 220px; }
  .work-quote { font-size: 20px; text-align: left; max-width: 100%; }

  .service-row { grid-template-columns: 1fr; }

  .teaching-cols { grid-template-columns: 1fr; }
  .teaching-col:last-child { display: flex; }

  .testimonial { min-width: 78vw; max-width: 78vw; }

  .footer__heading { font-size: 40px; }
  .footer__btn { font-size: 20px; }
  .footer__bottom { flex-direction: column; gap: 20px; text-align: center; }
  .footer__nav { flex-wrap: wrap; justify-content: center; gap: 20px; }
}

/* =====================================================
   CASE STUDY — redstor.html (and future cases)
   All tokens reused from the root :root block above.
   ===================================================== */

/* ── 1. NAV: hide-on-scroll-down / show-on-scroll-up ─
   JS in script.js adds/removes .nav--hidden via scroll
   direction detection.
   The transition is on transform so it eases out smoothly.  */
.nav {
  transition: transform 0.35s var(--ease-out), box-shadow 0.3s;
}
.nav--hidden {
  transform: translateY(-100%);
}
/* logo-only variant: left-aligned, no links */
.nav__inner--case {
  justify-content: flex-start;
}

/* ── 2. CASE HERO ───────────────────────────────────── */
.cs-hero {
  padding-top: 100px;
  padding-inline: var(--gutter);
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin-inline: auto;
}
.cs-hero__title-wrap { padding-bottom: 32px; }
.cs-hero__title {
  font-size: clamp(64px, 9vw, 100px);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

/* Hero body: cover photo left, meta rows right */
.cs-hero__body {
  display: grid;
  grid-template-columns: 451px 1fr;
  gap: 64px;
  align-items: stretch;
  min-height: 427px;
  padding-bottom: 80px;
}
.cs-hero__cover {
  overflow: hidden;
  background: var(--card);
  flex-shrink: 0;
}
.cs-hero__cover img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
  display: block;
  transition: transform 0.8s var(--ease-out);
}
.cs-hero__cover:hover img { transform: scale(1.03); }

.cs-hero__meta { display: flex; flex-direction: column; }

.cs-meta-row {
  display: flex;
  gap: 64px;
  align-items: flex-start;
  padding-block: 28px;
  border-bottom: 1px solid var(--border);
}
.cs-meta-row:first-child { border-top: 1px solid var(--border); }
.cs-meta-row__label {
  font-size: 20px;
  font-weight: 400;
  text-transform: uppercase;
  white-space: nowrap;
  min-width: 100px;
  flex-shrink: 0;
  line-height: 1.5;
}
.cs-meta-row__value {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--muted);
}
.cs-meta-row__value strong {
  display: block;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 2px;
}
.cs-meta-row__value span { color: var(--muted); }

/* ── 3. SECTION WRAPPER ─────────────────────────────── */
.cs-section {
  padding-block: 64px;
  padding-inline: var(--gutter);
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin-inline: auto;
}
.cs-section__header { margin-bottom: 48px; }
.cs-section__title {
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 700;
  text-transform: none;
  line-height: 1;
}
.cs-section__rule {
  width: 100%;
  height: 1px;
  background: var(--black);
  margin-bottom: 12px;
}
.cs-section__label {
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 1;
}

/* ── 4. CHALLENGE BODY ──────────────────────────────── */
.cs-challenge__body {
  padding-left: 153px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cs-challenge__body p {
  font-size: 30px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--black);
}

/* ── 5. STEPS ───────────────────────────────────────── */
.cs-step {
  display: flex;
  gap: 55px;
  align-items: stretch;   /* ← was flex-start */
  padding-block: 120px;
  border-top: none;
}
.cs-step:last-of-type { border-bottom: none; }

/* Steps without a number are indented to match the text col */
.cs-step--indented { padding-left: 153px; }

/* Suppresses the top border (e.g. the 88:241 continuation block) */
.cs-step--no-border { border-top: none; padding-top: 0; }

.cs-step__num {
  font-size: 66px;
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
  width: 98px;
  color: var(--black);
}
.cs-step__content {
  flex: 0 0 406px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.cs-step__title {
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--black);
  text-transform: lowercase;
}
.cs-step__desc {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--black);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cs-step__desc strong { font-weight: 700; }
.cs-step__desc ul {
  list-style: disc;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cs-step__desc li { line-height: 1.5; }

/* Visual panel */
.cs-step__visual {
  flex: 1;
  overflow: hidden;
  background: transparent;
  /* min-height and max-height removed — height now matches the text column */
}
.cs-step__visual--short { max-height: 321px; }
.cs-step__visual img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s transparent;
}
.cs-step__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── 6. CALLOUT — narrow 38px green line, text beside it ─
   Design: the bar is exactly 38px tall, same row as the text.
   Text sits to the RIGHT of the bar (not on top of it).
   The bar scaleX-animates ease-in when .in-view fires.        */
.cs-callout {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-left: 153px; /* indent matches step text column */
  padding-block: 0;
  margin-block: 8px;
  /* overflow:hidden needed so scaleX clip works */
  overflow: hidden;
}

.cs-callout__bar {
  flex-shrink: 0;
  width: 100%;           /* grows to fill remaining space behind the text */
  height: 38px;          /* exactly 38px as per design */
  background: var(--accent);
  /* Animate: start collapsed (scaleX 0), expand on .in-view */
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.55s var(--ease-in) 0.25s;
  /* Pull the bar behind the text by making it the first child
     but using absolute approach below instead */
}

/*
  CORRECTED LAYOUT:
  The bar spans the full width of the callout, the text sits on top
  of it (z-index layering), exactly like the design where the green
  rectangle is behind the bold text.
*/
.cs-callout {
  position: relative;
  padding-left: 153px;
  margin-block: 32px;
}

.cs-callout__text {
  font-size: clamp(18px, 2vw, 30px);
  font-weight: 500;
  line-height: 1.5;
  color: var(--black);
  max-width: 1074px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.cs-callout__text p { margin: 0; }

.cs-callout__text-highlight {
  display: block;
  height: 38px;
  margin-top: 8px;
  position: relative;
}
.cs-callout__text-highlight::before {
  content: '';
  position: absolute;
  left: -8px; right: -8px;
  top: 0; bottom: 0;
  background: var(--accent);
  z-index: -1;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.55s var(--ease-in) 0.25s;
}
.cs-callout.in-view .cs-callout__text-highlight::before {
  transform: scaleX(1);
}

.cs-callout__bar { display: none; }

@media (max-width: 1024px) {
  .cs-callout { padding-left: 0; }
}

/* ── 7. TEAM PHOTO BLOCK ────────────────────────────── */
.cs-team-photo {
  padding: 56px 0 0 153px;
}
.cs-team-photo__label {
  font-size: 20px;
  font-weight: 400;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.cs-team-photo__img {
  width: 100%;
  height: 506px;
  overflow: hidden;
  background: var(--card);
}
.cs-team-photo__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s var(--ease-out);
}
.cs-team-photo__img:hover img { transform: scale(1.02); }

/* ── 8. RESULTS ─────────────────────────────────────── */
.cs-result-row {
  display: flex;
  gap: 64px;
  align-items: flex-start;
  padding-block: 28px;
  border-top: none;
}
.cs-result-row:last-child { border-bottom: none; }
.cs-result-row__label {
  font-size: 20px;
  font-weight: 400;
  text-transform: uppercase;
  white-space: nowrap;
  min-width: 100px;
  flex-shrink: 0;
  line-height: 1.5;
}
.cs-result-row__value {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--muted);
}
.cs-result-row__value--list {
  list-style: disc;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cs-result-row__value--list li { line-height: 1.5; }

/* ── 9. REFLECTION ──────────────────────────────────── */
.cs-reflection {
  margin-top: 64px;
  padding-left: 153px;
  padding-bottom: 0;
  font-size: clamp(18px, 2.2vw, 30px);
  font-weight: 700;
  line-height: 1.4;
  color: var(--black);
  font-style: normal;
  max-width: 1043px;
  border-bottom: none;
}

/* ── CASE NAV ── */
.cs-case-nav {
  display: flex;
  justify-content: space-between;
  padding-inline: var(--gutter);
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-block: 40px;
  border-top: 1px solid var(--border);
}

.cs-case-nav__link {
  font-size: 30px;
  font-weight: 400;
  color: var(--black);
  text-decoration: none;
  line-height: 45px;
  position: relative;
  display: inline-block;
  padding: 0 6px;
}

/* The #BEF156 block grows behind the text on hover — ease-in */
.cs-case-nav__link::before {
  content: '';
  position: absolute;
  top: 50%;
  transform: translateY(-50%) scaleX(0);
  transform-origin: left center;   /* grows left → right */
  left: 0;
  right: 0;
  height: 38px;                    /* exact height from Figma */
  background: var(--accent);       /* #BEF156 */
  z-index: -1;
  transition: transform 0.3s var(--ease-in);
}

.cs-case-nav__link:hover::before {
  transform: translateY(-50%) scaleX(1);
}

/* Remove the old underline-only hover from ::after */
.cs-case-nav__link::after { display: none; }

/* =====================================================
   RESPONSIVE — CASE STUDY  ≤1024px
   ===================================================== */
@media (max-width: 1024px) {
  .cs-hero__body {
    grid-template-columns: 1fr;
    gap: 0;
    min-height: auto;
  }
  .cs-hero__cover { height: 380px; }
  .cs-challenge__body { padding-left: 0; }
  .cs-step { flex-wrap: wrap; }
  .cs-step--indented { padding-left: 0; }
  .cs-step__visual,
  .cs-step__visual--short { flex: 0 0 100%; max-height: 280px; }
  .cs-callout__bar { left: 0; }
  .cs-callout__text { margin-left: 0; }
  .cs-team-photo { padding-left: 0; }
  .cs-reflection { padding-left: 0; }
}

/* =====================================================
   RESPONSIVE — CASE STUDY  ≤640px
   ===================================================== */
@media (max-width: 640px) {
  .cs-hero { padding-top: 80px; }
  .cs-hero__title { font-size: 48px; }
  .cs-hero__cover { height: 240px; }
  .cs-meta-row { gap: 24px; flex-direction: column; }
  .cs-meta-row__label { min-width: auto; font-size: 14px; }
  .cs-challenge__body p { font-size: 22px; }
  .cs-section__title,
  .cs-section__label { font-size: 36px; }
  .cs-step { gap: 24px; padding-block: 40px; }
  .cs-step__num { font-size: 44px; width: auto; }
  .cs-step__content { flex: 1 1 auto; }
  .cs-step__title { font-size: 26px; }
  .cs-step__visual,
  .cs-step__visual--short { max-height: 220px; }
  .cs-callout__text { font-size: 18px; line-height: 1.4; padding: 8px 12px; }
  .cs-callout__bar { height: 100%; }
  .cs-team-photo__img { height: 240px; }
  .cs-reflection { font-size: 18px; margin-top: 40px; }
  .cs-case-nav { padding: 32px var(--gutter) 48px; }
  .cs-case-nav__link { font-size: 20px; }
}
/* =====================================================
   ADIDAS CASE — adidas.html
   Only new styles. Everything else reused from above.
   ===================================================== */

.cs-stats {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 105px;
  padding: 64px 0 80px 153px;
}

.cs-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-transform: uppercase;
}

.cs-stat__num {
  font-size: 100px;
  font-weight: 700;
  line-height: 110px;
  letter-spacing: -0.02em;
  color: var(--black);
  text-align: center;
}

.cs-stat__label {
  font-size: 20px;
  font-weight: 400;
  line-height: 30px;
  color: var(--muted);
  text-align: center;
  text-transform: uppercase;
}

@media (max-width: 1024px) {
  .cs-stats { padding-left: 0; gap: 40px; flex-wrap: wrap; }
  .cs-stat__num { font-size: 72px; line-height: 1; }
}

@media (max-width: 640px) {
  .cs-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 24px; padding-left: 0; padding-block: 40px; }
  .cs-stat__num { font-size: 56px; }
  .cs-stat__label { font-size: 16px; }
}

/* =====================================================
   VASARI — new layout blocks only.
   All other styles reuse existing cs-* classes above.
   ===================================================== */

/* ── Allow full-bleed breakouts without horizontal scroll ── */
main {
  overflow-x: clip;
}

/* ── Full-width UI image ── */
.cs-ui-full {
  width: 100vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  overflow: hidden;
  background: transparent;
  margin-top: 56px;
  height: clamp(360px, 45vw, 700px);
}
.cs-ui-full img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s var(--ease-out);
}
.cs-ui-full:hover img { transform: scale(1.02); }

/* ── Visual direction — full-bleed grey block ── */
.cs-visual-dir {
  width: 100vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  background: #d9d9d9;
  min-height: 856px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas: "text media";  /* text left, image right — explicit */
  align-items: center;
  overflow: hidden;
  margin-block: 0;
}

.cs-visual-dir__text {
  grid-area: text;
  padding: 20px 0px 140px 210px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cs-visual-dir__media {
  grid-area: media;
  height: 100%;
  min-height: 856px;
  overflow: hidden;
  position: relative;
}

.cs-visual-dir__text p {
  font-size: 16px;
  color: var(--black);
  line-height: 1.6;
  max-width: 406px;
}

.cs-visual-dir__media {
  height: 100%;
  min-height: 856px;
  overflow: hidden;
  position: relative;
}

.cs-visual-dir__media img {
  position: absolute;
  width: 130%;
  height: 110%;
  object-fit: cover;
  object-position: left center;
  top: -5%;
  left: -10%;
}

/* ── Callout — text paragraphs + green bar at bottom ── */
.cs-callout {
  position: relative;
  padding-left: 153px;
  margin-block: 32px;
}
.cs-callout__text {
  font-size: clamp(18px, 2vw, 30px);
  font-weight: 500;
  line-height: 1.5;
  color: var(--black);
  max-width: 1074px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.cs-callout__text p { margin: 0; }
.cs-callout__text-highlight {
  position: relative;
  display: inline;
}
.cs-callout__text-highlight::before {
  content: '';
  position: absolute;
  left: -8px; right: -8px;
  top: 50%; height: 38px;
  transform: translateY(-50%) scaleX(0);
  transform-origin: left center;
  background: var(--accent);
  z-index: -1;
  transition: transform 0.55s var(--ease-in) 0.25s;
}
.cs-callout.in-view .cs-callout__text-highlight::before {
  transform: translateY(-50%) scaleX(1);
}
.cs-callout__bar { display: none; }

/* ── Solution items ── */
.cs-solution-item {
  padding-left: 153px;
  padding-block: 64px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cs-solution-item__header {
  display: flex;
  align-items: baseline;
  gap: 0;
}
.cs-solution-item__header .cs-step__num {
  width: auto;
  margin-right: 8px;
  font-size: 44px;
  line-height: 1.15;
}
.cs-solution-item__header .cs-step__title {
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.15;
}
.cs-solution-item .cs-step__desc {
  max-width: 530px;
}
.cs-solution-item__image {
  margin-top: 12px;
  width: 100%;
  max-width: 1076px;
  height: 512px;
  overflow: hidden;
  background: transparent;
}
.cs-solution-item__image img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease-out);
}
.cs-solution-item:hover .cs-solution-item__image img { transform: scale(1.03); }

/* ── Full-bleed UI screenshot gallery ── */
.cs-ui-gallery {
  width: 100vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  background: var(--card);
  padding-block: 80px;
  margin-block: 0px;
  overflow: hidden;
}
.cs-ui-gallery__inner {
  display: flex;
  flex-direction: column;
  gap: 140px;
  max-width: 1785px;
  margin-inline: auto;
  padding-inline: 106px;
}
.cs-ui-gallery__row {
  display: grid;
  grid-template-columns: repeat(3, 538px);
  gap: 32px;
}
.cs-ui-gallery__row--offset {
  margin-left: -270px;
}
.cs-ui-gallery__card {
  width: 538px;
  height: 352px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(57, 79, 122, 0.10);
  background: var(--white);
  flex-shrink: 0;
}
.cs-ui-gallery__card img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease-out);
}
.cs-ui-gallery__card:hover img { transform: scale(1.04); }

/* ── Responsive ── */
@media (max-width: 1400px) {
  .cs-ui-gallery__row { grid-template-columns: repeat(3, 1fr); }
  .cs-ui-gallery__card { width: 100%; }
  .cs-ui-gallery__row--offset { margin-left: 0; }
}
@media (max-width: 1024px) {
  .cs-ui-full { height: 320px; margin-top: 40px; }
  .cs-visual-dir { grid-template-columns: 1fr; min-height: auto; }
  .cs-visual-dir__text { padding: 56px 48px; }
  .cs-visual-dir__text p { max-width: 100%; }
  .cs-visual-dir__media { min-height: 360px; }
  .cs-visual-dir__media img { width: 100%; height: 100%; top: 0; left: 0; }
  .cs-callout { padding-left: 0; }
  .cs-solution-item { padding-left: 0; }
  .cs-solution-item__image { height: 320px; max-width: 100%; }
  .cs-ui-gallery__inner { padding-inline: 48px; gap: 80px; }
  .cs-ui-gallery__row { grid-template-columns: 1fr 1fr; }
  .cs-ui-gallery__card { height: 260px; }
}
@media (max-width: 640px) {
  .cs-ui-full { height: 220px; }
  .cs-visual-dir__text { padding: 40px 20px; }
  .cs-visual-dir__text .cs-step__title { font-size: 28px; }
  .cs-visual-dir__media { min-height: 240px; }
  .cs-solution-item { padding-block: 40px; }
  .cs-solution-item__header .cs-step__num { font-size: 28px; }
  .cs-solution-item__header .cs-step__title { font-size: 26px; }
  .cs-solution-item__image { height: 220px; }
  .cs-ui-gallery__inner { padding-inline: 20px; gap: 32px; }
  .cs-ui-gallery__row { grid-template-columns: 1fr; }
  .cs-ui-gallery__card { height: 220px; }
}
/* =====================================================
   PARAGON — new layout blocks only.
   All other styles reuse existing cs-* classes above.
   ===================================================== */

/* ── Ethnographic photo pair — two equal cards side by side ── */
.cs-paragon-photo-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 40px 0 0 153px;
  margin-bottom: 40px;
}

.cs-paragon-photo {
  height: 373px;
  overflow: hidden;
  background: var(--card);
  box-shadow: 0 10px 10px rgba(57, 79, 122, 0.1);
}
.cs-paragon-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease-out);
}
.cs-paragon-photo:hover img { transform: scale(1.04); }

/* ── Workaround cards — 4-col grid ── */
.cs-paragon-cards {
  display: flex;
  gap: 30px;
  align-items: center;
  padding-left: 153px;   /* ← matches cs-step--indented */
}

.cs-paragon-cards--offset {
  padding-left: 153px;   /* ← same, no extra offset on row 2 */
  margin-top: 60px;
}

.cs-paragon-card {
  width: 248px;
  height: 326px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--white);
  padding: 22px 22px 48px 22px;
  box-shadow: 0 10px 10px rgba(57, 79, 122, 0.1);
}

.cs-paragon-card img {
  width: 204px;
  height: 204px;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}

.cs-paragon-card p {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.5;
  width: 204px;
}

@media (max-width: 1024px) {
  .cs-paragon-cards { flex-wrap: wrap; gap: 20px; }
  .cs-paragon-cards--offset { margin-top: 20px; }
  .cs-paragon-card { width: calc(50% - 10px); height: auto; }
  .cs-paragon-card img { width: 100%; height: 180px; }
}

@media (max-width: 640px) {
  .cs-paragon-card { width: 100%; }
  .cs-paragon-card img { height: 160px; }
}

/* ── Paragon: reflection with green bar pinned to last line bottom ── */
.cs-reflection-bar {
  position: relative;
  padding-left: 153px;
  padding-block: 64px;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin-inline: auto;
}

.cs-reflection-bar__line {
  position: absolute;
  bottom: 64px;        /* matches padding-bottom so bar sits at text bottom */
  left: 153px;
  right: var(--gutter);
  height: 38px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.55s var(--ease-in) 0.25s;
}

.cs-reflection-bar.in-view .cs-reflection-bar__line {
  transform: scaleX(1);
}

.cs-reflection-bar p {
  position: relative;  /* sits above the bar via stacking */
  font-size: 30px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--black);
  max-width: 1075px;
  z-index: 1;
}

@media (max-width: 1024px) {
  .cs-reflection-bar { padding-left: var(--gutter); }
  .cs-reflection-bar__line { left: var(--gutter); }
}
/* ── Paragon: ethnographic research block ── */
.cs-ethno {
  padding-left: 153px;
  padding-block: 64px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cs-ethno__header {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 1011px;
}

.cs-ethno__photos {
  display: flex;
  gap: 76px;
  align-items: center;
  margin-top: 8px;
}

.cs-ethno__card {
  width: 500px;
  height: 373px;
  flex-shrink: 0;
  background: var(--white);
  padding: 22px;
  box-shadow: 0 10px 10px rgba(57, 79, 122, 0.1);
  overflow: hidden;
}

.cs-ethno__card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease-out);
}

.cs-ethno__card:hover img { transform: scale(1.04); }

@media (max-width: 1024px) {
  .cs-ethno { padding-left: 0; }
  .cs-ethno__photos { flex-direction: column; gap: 24px; }
  .cs-ethno__card { width: 100%; height: 280px; }
}

@media (max-width: 640px) {
  .cs-ethno__card { height: 220px; padding: 12px; }
}
.cs-paragon-photo-full {
  background: var(--white);
  padding: 22px;
  box-shadow: 0 10px 10px rgba(57, 79, 122, 0.1);
  overflow: hidden;
}

.cs-paragon-photo-full img {
  width: 100%;
  display: block;
  object-fit: cover;
}
/* ── Paragon stats: neon sweep behind each number ── */
.cs-stat__num--accent {
  position: relative;
  display: inline-block;
}
.cs-stat__num--accent::before {
  content: '';
  position: absolute;
  left: -4px; right: -4px;
  bottom: 8px;
  height: 38px;
  background: var(--accent);
  z-index: -1;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.55s var(--ease-in) 0.1s;
}
/* stagger each stat's animation delay */
.cs-stat:nth-child(2) .cs-stat__num--accent::before { transition-delay: 0.2s; }
.cs-stat:nth-child(3) .cs-stat__num--accent::before { transition-delay: 0.3s; }
.cs-stat:nth-child(4) .cs-stat__num--accent::before { transition-delay: 0.4s; }

.cs-stats.in-view .cs-stat__num--accent::before {
  transform: scaleX(1);
}

/* ── Adidas: top-line neon highlight ── */
.cs-adidas-callout {
  position: relative;
  padding-left: 153px;
  padding-top: 32px;
  padding-bottom: 32px;
}

.cs-adidas-callout p {
  position: relative;
  z-index: 1;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--black);
  max-width: 1075px;
}

.cs-adidas-callout::before {
  content: '';
  position: absolute;
  left: 153px;
  right: 0;
  top: 32px;
  height: 38px;
  background: var(--accent);
  z-index: 0;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.55s var(--ease-in) 0.25s;
}

.cs-adidas-callout.in-view::before {
  transform: scaleX(1);
}