*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: #f1f2f4;
  font-family: 'Manrope', sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ─────────────────────────────────────────────
   Page wrapper
───────────────────────────────────────────── */
.page {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 64px;
}

/* ─────────────────────────────────────────────
   Hero header
───────────────────────────────────────────── */
.header-section {
  width: 100%;
  max-width: 1200px;
  will-change: transform;
}

.header-inner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 854px;
}

.spacer { flex: 1; }

/* Logo */
.logo {
  width: 56px;
  height: 56px;
  background-color: #2f2f2f;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo img {
  width: 39.375px;
  height: 29.75px;
}

/* Hero type */
.hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 100px;
  line-height: 1.05;
  color: #000;
}

.hero-regular { font-weight: 400; }
.hero-bold    { font-weight: 700; }

/* ── Carousel ── */
.hero-carousel {
  overflow: hidden;
  height: 1.2em;        /* clips exactly to one line */
  display: block;
}

.hero-carousel-track {
  display: flex;
  flex-direction: column;
  will-change: transform;
}

.hero-carousel-track span {
  flex-shrink: 0;
  display: block;
  line-height: 1.098em;  /* slight extra spacing to prevent accidental line breaks */
}

/* ─────────────────────────────────────────────
   Content section
───────────────────────────────────────────── */
.content-section {
  display: flex;
  flex-direction: column;
  gap: 10vh;
  align-items: center;
  width: 100%;
  max-width: 1200px;
}

/* ─────────────────────────────────────────────
   Card base
───────────────────────────────────────────── */
.card {
  background: #fff;
  border-radius: 40px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 1200px;
  max-width: 100%;
  height: 800px;
  flex-shrink: 0;
  will-change: transform;
}

/* Left image pane */
.card-image {
  position: relative;
  width: 740px;
  height: 800px;           /* match card height */
  flex-shrink: 0;
  overflow: visible;
}

/* Right text pane */
.card-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 40px;
  min-width: 0;
  position: relative;
  z-index: 1;
}

.card-brand {
  font-weight: 700;
  font-size: 14px;
  color: #8a8a8a;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: normal;
}

.card-title {
  font-weight: 700;
  font-size: 24px;
  color: #000;
  line-height: 1.35;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 16px 24px 16px 0;
  font-family: 'Anybody', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #000;
  text-decoration: underline;
  text-decoration-style: solid;
}

.btn-arrow {
  font-size: 14px;
  line-height: 1;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

.read-more:hover .btn-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ─────────────────────────────────────────────
   Card 1 — cover image
───────────────────────────────────────────── */
.card-img-cover {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  will-change: transform;
  height: 904px;
  width: auto;
  max-width: none;
  object-fit: cover;
  pointer-events: none;
}

/* ─────────────────────────────────────────────
   Card 2 — Denon blob + dashboard screenshot
───────────────────────────────────────────── */

/* Outer container, same position/size as Figma */
.blob-wrap,
.card-img-bottom,
.healing-photo,
.healing-sidebar {
  will-change: transform;
}

.blob-wrap {
  position: absolute;
  left: 236px;
  top: 189px;
  width: 373.986px;
  height: 373.986px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 21.68° group rotation */
.blob-rotate {
  transform: rotate(21.68deg);
  position: relative;
  width: 100%;
  height: 100%;
}

/* Each blob layer: absolutely centred with per-layer offset */
.blob-layer {
  position: absolute;
  transform: translate(-50%, -50%);
  opacity: 0;
  scale: 0.6;
  transition: opacity 1.1s cubic-bezier(0.22, 1, 0.36, 1),
              scale   1.1s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Exit: outermost collapses first (reversed stagger) */
.blob-layer:nth-child(1) { transition-delay: 420ms; }
.blob-layer:nth-child(2) { transition-delay: 360ms; }
.blob-layer:nth-child(3) { transition-delay: 300ms; }
.blob-layer:nth-child(4) { transition-delay: 240ms; }
.blob-layer:nth-child(5) { transition-delay: 180ms; }
.blob-layer:nth-child(6) { transition-delay: 120ms; }
.blob-layer:nth-child(7) { transition-delay: 60ms; }
.blob-layer:nth-child(8) { transition-delay: 0ms; }

/* Enter: innermost blooms first, outermost last */
.blob-wrap.is-visible .blob-layer:nth-child(1) { transition-delay: 0ms; }
.blob-wrap.is-visible .blob-layer:nth-child(2) { transition-delay: 60ms; }
.blob-wrap.is-visible .blob-layer:nth-child(3) { transition-delay: 120ms; }
.blob-wrap.is-visible .blob-layer:nth-child(4) { transition-delay: 180ms; }
.blob-wrap.is-visible .blob-layer:nth-child(5) { transition-delay: 240ms; }
.blob-wrap.is-visible .blob-layer:nth-child(6) { transition-delay: 300ms; }
.blob-wrap.is-visible .blob-layer:nth-child(7) { transition-delay: 360ms; }
.blob-wrap.is-visible .blob-layer:nth-child(8) { transition-delay: 420ms; }

.blob-wrap.is-visible .blob-layer {
  opacity: 1;
  scale: 1;
}

/* Counter-rotation wrapper + img sizing */
.blob-counter-rotate {
  transform: rotate(-20deg);
  width: 100%;
  height: 100%;
}

.blob-counter-rotate img {
  display: block;
  width: 100%;
  height: 100%;
}

/* Dashboard screenshot */
.card-img-bottom {
  position: absolute;
  left: 36px;
  top: 376px;
  width: 468.206px;
  height: 292.629px;
  object-fit: cover;
  pointer-events: none;
}

/* ─────────────────────────────────────────────
   Card 3 — Healing photo + ellipses + sidebar
───────────────────────────────────────────── */

/* Photo frame with shadow */
.healing-photo {
  position: absolute;
  left: 132.33px;
  top: 62px;
  width: 460.567px;
  height: 690.851px;
  border-radius: 40px;
  overflow: hidden;
  box-shadow: 0 40px 100px 0 rgba(116, 14, 16, 0.5);
}

.healing-main-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

/* Ellipse rings — centred inside the photo at correct sizes */
.ellipse {
  position: absolute;
  transform-origin: center center;
  pointer-events: none;
}

/* Figma positions (absolute within .healing-photo): */
/* ellipse1: left 177.49px top 145.75px width 48.046px height 57.152px rotate -23.79° */
.ellipse-sm {
  left: 177.49px;
  top: 145.75px;
  width: 48.046px;
  height: 57.152px;
  transform: rotate(-23.79deg);
}

/* ellipse2: left 183.67px top 100.54px width 88.19px height 104.903px rotate -23.79° */
.ellipse-md {
  left: 183.67px;
  top: 100.54px;
  width: 88.19px;
  height: 104.903px;
  transform: rotate(-23.79deg);
}

/* ellipse3 container: left 197.05px top 55.67px width 132.515px height 157.628px rotate -23.79° */
.ellipse-lg {
  left: 197.05px;
  top: 55.67px;
  width: 132.515px;
  height: 157.628px;
  transform: rotate(-23.79deg);
}

/* Frosted-glass sidebar pill */
.healing-sidebar {
  position: absolute;
  left: 60px;
  top: 179.54px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-radius: 46.294px;
  padding: 34.721px;
  display: flex;
  flex-direction: column;
  gap: 44.656px;
  box-shadow: 0 60px 80px -20px rgba(248, 77, 35, 0.4);
}

.sidebar-icon {
  width: 41.587px;
  height: 41.587px;
  opacity: 0.7;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sidebar-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* SVGs default fill to white via their var(--fill-0, white) */
}

/* ─────────────────────────────────────────────
   BW Case Study Overlay
───────────────────────────────────────────── */
#bw-overlay {
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 200;
  overflow-y: auto;
  overflow-x: hidden;
  transform: translateY(100%);
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

#bw-overlay.is-open { transform: translateY(0); }

.case-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

.case-nav-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.case-nav-brand {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8a8a8a;
  opacity: 0;
  transition: opacity 0.4s ease-out;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: calc(100% - 80px);
}

.case-nav-brand.is-visible { opacity: 1; }

.case-nav-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f1f2f4;
  border: none;
  cursor: pointer;
  color: #000;
  transition: background 0.2s ease-out;
}

.case-nav-close:hover { background: #e0e1e4; }
.case-nav-close .material-icons { font-size: 20px; }

.case-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 64px 140px;
  display: flex;
  flex-direction: column;
  gap: 20vh;
}

.case-hero {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 820px;
}

.case-eyebrow {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8a8a8a;
}

.case-hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 60px;
  line-height: 1.05;
  color: #000;
}

.case-hero-sub {
  font-family: 'Manrope', sans-serif;
  font-size: 18px;
  line-height: 1.65;
  color: #5a5a5a;
}

.case-img {
  border-radius: 8px;
  overflow: hidden;
  background: #f1f2f4;
}

.case-img--hero { height: 640px; }

.case-img--hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(100%);
}

.case-img img {
  width: 100%;
  height: auto;
  display: block;
  filter: grayscale(100%);
}

.case-img-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.case-img-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.case-meta {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 160px;
  width: 100%;
  padding: 24px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.case-awards {
  display: flex;
  flex-direction: row;
  gap: 16px;
  align-items: flex-start;
}

.case-awards img {
  height: 80px;
  width: auto;
  object-fit: contain;
  display: block;
}

.case-meta-label {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8a8a8a;
  margin-bottom: 20px;
}

.case-scope-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.case-scope-list li {
  font-family: 'Manrope', sans-serif;
  font-size: 16px;
  color: #000;
}

.case-body {
  font-family: 'Manrope', sans-serif;
  font-size: 17px;
  line-height: 1.75;
  color: #2a2a2a;
}

.case-chapter {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 10vw;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
  padding: 15vh 0 15vh 0;
}

.case-chapter.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.case-chapter .case-section {
  flex: 0 0 300px;
  position: sticky;
  top: 100px;
}

.case-chapter .case-imgs,
.case-chapter .case-img,
.case-chapter .case-img-grid {
  flex: 1;
  min-width: 0;
}

.case-imgs {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.case-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 680px;
}

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

/* ─────────────────────────────────────────────
   Page transition curtain
───────────────────────────────────────────── */

/* ─────────────────────────────────────────────
   Footer
───────────────────────────────────────────── */
.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);
}

/* ─────────────────────────────────────────────
   Responsive
───────────────────────────────────────────── */
@media (max-width: 1328px) {
  .page { padding: 40px 24px; }

  .card {
    width: 100%;
    height: auto;
    flex-direction: column;
  }

  .card-image {
    width: 100%;
    height: 500px;
    overflow: hidden;
  }

  .hero-title { font-size: clamp(40px, 7vw, 100px); }

  .header-inner { height: auto; gap: 48px; }
}

/* ── Tablet ── */
@media (max-width: 1023px) {
  .page { padding: 32px 20px; }

  /* BW overlay */
  .case-nav-inner  { padding: 16px 40px; }
  .case-content    { padding: 60px 40px 100px; gap: 14vh; }
  .case-hero-title { font-size: 44px; }
  .case-meta       { gap: 64px; }

  .case-chapter {
    gap: 6vw;
    padding: 10vh 0;
  }
  .case-chapter .case-section { flex: 0 0 240px; }
}

/* ── Mobile ── */
@media (max-width: 767px) {

  /* ─── Main page ─── */
  .page         { padding: 16px; gap: 6px; }
  .header-inner { gap: 24px; }
  .hero-title   { font-size: clamp(32px, 9vw, 60px); }

  .card         { border-radius: 24px; }
  .card-image   { height: 400px; overflow: hidden; }
  .card-text    { padding: 24px; gap: 12px; }
  .card-title   { font-size: 20px; }

  /* ─── Card 2: blob + dashboard image — mobile reposition ─── */
  .blob-wrap {
    left: calc(50% - 150px);  /* centre a 300px blob */
    top: 20px;
    width: 300px;
    height: 300px;
  }

  .card-img-bottom {
    width: 100%;
    height: 220px;
    left: 0;
    top: auto;
    bottom: 0;
  }

  /* ─── BW overlay nav ─── */
  .case-nav-inner { padding: 14px 20px; }

  /* ─── BW overlay content ─── */
  .case-content {
    padding: 36px 20px 80px;
    gap: 10vh;
  }

  /* ─── Hero ─── */
  .case-hero       { gap: 16px; max-width: none; }
  .case-hero-title { font-size: 32px; line-height: 1.1; }
  .case-hero-sub   { font-size: 16px; }

  /* ─── Case meta: 3-col → stacked ─── */
  .case-meta {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 20px 0;
  }

  /* ─── Awards: horizontal row → tighter ─── */
  .case-awards img { height: 60px; }

  /* ─── Hero image ─── */
  .case-img--hero { height: 240px; }

  /* ─── Image grids → single column ─── */
  .case-img-pair { grid-template-columns: 1fr; }
  .case-img-grid { grid-template-columns: 1fr; }

  /* ─── Chapters: row → column ─── */
  .case-chapter {
    flex-direction: column;
    gap: 28px;
    padding: 7vh 0;
  }
  .case-chapter .case-section {
    flex: none;
    position: static;
    max-width: none;
  }
  .case-section-title { font-size: 20px; }
  .case-body          { font-size: 16px; }

  /* ─── Footer ─── */
  .footer-inner   { padding: 64px 20px 40px; gap: 48px; }
  .footer-bottom  { flex-direction: column; align-items: flex-start; gap: 28px; }
}
