/* ── Arçelik Gourmet Yogurt Maker ──
   Shared by both the project intro (index.html) and the
   step-by-step case study (case-study.html). */

/* Wider canvas, matching the other cases */
.case-content { max-width: 1320px; }
.case-hero { max-width: none; }

.case-meta {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 80px;
  align-items: start;
}

/* ── Text blocks ── */
.ym-text-block {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 820px;
}

.ym-text-block--wide { max-width: 960px; }

.ym-label {
  font-size: 13px;
  font-weight: 700;
  color: #8a8a8a;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.ym-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.1;
  color: #000;
}

.ym-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.ym-list li {
  font-size: 17px;
  line-height: 1.75;
  color: #2a2a2a;
  padding: 14px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.ym-list li:first-child { border-top: 1px solid rgba(0, 0, 0, 0.08); }

/* ── Award badge ── */
.ym-award {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  padding: 8px 16px;
  border: 1.5px solid rgba(0, 0, 0, 0.14);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #2a2a2a;
}

.ym-award::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e2001a;
  flex-shrink: 0;
}

/* ── Media ── */
.ym-media-full {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: #e9eaec;
}

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

/* Wide boards: let very long artboards scroll rather than shrink to illegibility */
.ym-media-scroll {
  width: 100%;
  border-radius: 16px;
  overflow-x: auto;
  background: #e9eaec;
  -webkit-overflow-scrolling: touch;
}

.ym-media-scroll img {
  display: block;
  height: auto;
  min-width: 900px;
  width: 100%;
}

/* ── Opening product shot ──
   The source is square; it reads as a banner on wide screens and
   opens up towards its native ratio as the viewport narrows.
   Framed slightly high so the control panel stays in shot. */
.ym-hero-shot {
  width: 100%;
  aspect-ratio: 3 / 2;
  border-radius: 16px;
  overflow: hidden;
  background: #d9dbde;
}

.ym-hero-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* The product sits high in the square source — pulling the crop
     window up keeps the whole machine, lid to plinth, in frame. */
  object-position: center 25%;
  display: block;
}

/* ── Embedded prototypes / video ──
   aspect-ratio is set per embed to match the source frame. */
.ym-embed {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: #141211;
  position: relative;
}

.ym-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.ym-caption {
  font-size: 14px;
  line-height: 1.6;
  color: #8a8a8a;
  margin-top: 14px;
}

/* ── Step heading ── */
.ym-step {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ym-step-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}

.ym-step-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
  color: #000;
  letter-spacing: -0.01em;
}

.ym-step-sub {
  font-size: 17px;
  line-height: 1.6;
  color: #5a5a5a;
}

/* ── Project plan timeline ── */
.ym-timeline {
  list-style: none;
  margin: 0;
  padding: 0 0 0 40px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 40px;
  max-width: 960px;
}

.ym-timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 6px;
  bottom: 6px;
  border-left: 2px dashed rgba(0, 0, 0, 0.16);
}

.ym-tl-item { position: relative; }

.ym-tl-item::before {
  content: '';
  position: absolute;
  left: -40px;
  top: 2px;
  width: 18px;
  height: 18px;
  background: #2b3245;
  transform: rotate(45deg);
  border-radius: 2px;
}

.ym-tl-num {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #8a8a8a;
  display: block;
  margin-bottom: 6px;
}

.ym-tl-title {
  font-size: 17px;
  font-weight: 700;
  color: #000;
  line-height: 1.4;
}

.ym-tl-points {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ym-tl-points li {
  position: relative;
  padding-left: 20px;
  font-size: 16px;
  line-height: 1.7;
  color: #5a5a5a;
}

.ym-tl-points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #b9bcc4;
}

/* ── Step board: the artefacts hung off a step's timeline ── */
.ym-timeline--board { max-width: none; }

.ym-tl-note {
  font-size: 16px;
  line-height: 1.7;
  color: #5a5a5a;
  margin-top: 8px;
  max-width: 760px;
}

/* Contact-sheet thumbnails — these show the shape and volume of the
   work, not its contents; the caption carries the meaning. */
.ym-shots {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.ym-shot {
  margin: 0;
  width: 164px;
  background: #f4f5f7;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 8px;
  overflow: hidden;
}

.ym-shot img {
  width: 100%;
  height: 100px;
  object-fit: contain;
  display: block;
  background: #fff;
}

.ym-shot figcaption {
  font-size: 12px;
  line-height: 1.45;
  color: #7a7a7a;
  padding: 8px 10px 10px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

/* Closing marker of a board — the outcome it led to */
.ym-tl-item--result::before { background: #141211; }

.ym-tl-item--result .ym-tl-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
}

/* ── Dark section + CTA (site footer language) ── */
.ym-dark {
  background: #141211;
  border-radius: 20px;
  padding: 64px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.ym-dark .ym-label { color: rgba(255, 255, 255, 0.45); }
.ym-dark .ym-title { color: #fff; }
.ym-dark .case-body { color: rgba(255, 255, 255, 0.65); max-width: 820px; }

.ym-cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 10px 10px 10px 24px;
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  border-radius: 100px;
  color: #fff;
  font-family: 'Manrope', sans-serif;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  width: fit-content;
  transition: border-color 0.2s, background 0.2s;
}

.ym-cta:hover {
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.05);
}

.ym-cta-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transform: rotate(-45deg);
}

.ym-cta-icon svg { width: 16px; height: 16px; fill: #000; }

/* ── Fade-in on scroll ── */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s cubic-bezier(.22,.61,.36,1), transform 0.7s cubic-bezier(.22,.61,.36,1);
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .fade-in, .hero-anim {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ── Site footer (full-bleed below the case content) ── */
.site-footer { background: #141211; width: 100%; }

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 64px 48px;
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.footer-cta { display: flex; flex-direction: column; gap: 48px; }

.footer-heading {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(56px, 8vw, 112px);
  font-weight: 700;
  line-height: 1.05;
  color: #fff;
  display: flex;
  flex-direction: column;
}

.footer-h-row { display: flex; align-items: flex-end; }

.footer-cycle-wrap {
  overflow: hidden;
  display: inline-block;
  height: 1.05em;
  vertical-align: bottom;
}

.footer-cycle-track { display: flex; flex-direction: column; }

.footer-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 10px 10px 10px 24px;
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  border-radius: 100px;
  color: #fff;
  font-family: 'Manrope', sans-serif;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  width: fit-content;
  transition: border-color 0.2s, background 0.2s;
}

.footer-btn:hover {
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.05);
}

.footer-btn-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transform: rotate(-45deg);
}

.footer-btn-icon svg { width: 16px; height: 16px; fill: #000; }

.footer-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding-top: 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 8px;
}

.footer-email {
  font-size: 16px;
  color: #fff;
  text-decoration: none;
  transition: opacity 0.2s;
}

.footer-email:hover { opacity: 0.55; }

.footer-socials { display: flex; gap: 10px; }

.footer-social-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: border-color 0.2s;
}

.footer-social-btn:hover { border-color: #fff; }

.footer-social-btn svg { width: 20px; height: 20px; fill: #fff; }

.footer-copyright { padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.07); }

.footer-copyright p { font-size: 14px; color: rgba(255, 255, 255, 0.3); }

/* ── Mobile ── */
@media (max-width: 767px) {
  .case-content { padding: 40px 20px 80px; gap: 48px; }
  .case-hero-title { font-size: 36px; }
  .ym-title { font-size: 28px; }
  .ym-step-num { font-size: 30px; }
  .case-meta { grid-template-columns: 1fr; gap: 32px; }
  .ym-dark { padding: 32px 24px; }
  .ym-timeline { padding-left: 32px; gap: 32px; }
  .ym-timeline::before { left: 5px; }
  .ym-tl-item::before { left: -32px; width: 14px; height: 14px; }
  .ym-hero-shot { aspect-ratio: 4 / 5; }
  .ym-shots { gap: 10px; margin-top: 18px; }
  .ym-shot { width: calc(50% - 5px); }
  .ym-tl-item--result .ym-tl-title { font-size: 17px; }
  .footer-inner { padding: 64px 20px 40px; gap: 48px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 28px; }
}
