/* ==========================================================================
   /designs/ — Works hub (Live works · Design works · Case studies)
   Base styles = tablet/phone (stacked); desktop geometry in (min-width:1200px)
   mirrors the Framer 1440 layout.
   ========================================================================== */

.designs-page { background: #000; }
.dz { overflow-x: clip; }

/* Header: opacity-only reveal (see [data-reveal] in main.css) */
/* Keep the first nav link clear of the fixed Back button */
.dz-header .nav { padding-left: 116px; }

/* Back button fades in (Framer appear) */
.dz-back { animation: dz-fade .6s var(--ease-out) .1s both; }
@keyframes dz-fade { from { opacity: 0; } to { opacity: 1; } }

/* ------------------------------------------------------------------ Hero */
.dz-hero {
  position: relative;
  background: radial-gradient(50% 50% at 50% 50%, #23326e 0%, rgba(171,171,171,0) 100%);
  padding: 170px 20px 120px;
}
.dz-pills {
  display: grid; grid-template-columns: repeat(2, auto);
  justify-content: center; align-items: center; gap: 110px 48px;
}
.dz-pill--design { grid-column: 1 / -1; justify-self: center; order: 3; }
.dz-pill--case { order: 2; }

.dz-pill { position: relative; display: block; isolation: isolate; border-radius: 32px; }
.dz-pill-glass {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 40px 64px;
  font-size: 32px; font-weight: 700; line-height: 1.2; white-space: nowrap; color: #fff;
  background-color: rgba(255,255,255,.2);
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
  border-radius: 32px;
  box-shadow: 0 0 12px 2px rgba(0,0,0,.15);
  transition: background-color .3s, box-shadow .3s;
}
.dz-pill:hover .dz-pill-glass,
.dz-pill:focus-visible .dz-pill-glass { background-color: rgba(255,255,255,.26); box-shadow: 0 0 22px 4px rgba(88,104,214,.35); }

/* Static image stack living behind the glass (Framer "Variant 1").
   The hover fly-out was removed on purpose (no movement on hover). */
.dz-pill-media {
  position: absolute; z-index: 0; top: 50%; left: 50%;
  width: 291px; height: 119px; margin: -59.5px 0 0 -145.5px;
  clip-path: inset(0 round 32px);
  opacity: .55;
  pointer-events: none;
}
.dz-pill-media img {
  position: absolute; object-fit: cover; border-radius: 4px;
  left: var(--x); top: var(--y); width: var(--w); height: var(--h);
  transform: rotate(var(--r, 0deg));
  filter: blur(2.5px);
  animation: dz-fade .9s var(--ease-out) .35s both;
}

/* Live works */
.dz-pill--live .p1 { --x: -10px; --y: 6px; --w: 106px; --h: 63px; }
.dz-pill--live .p2 { --x: 116px; --y: 6px; --w: 88px; --h: 63px; }
.dz-pill--live .p3 { --x: 224px; --y: 6px; --w: 88px; --h: 63px; z-index: 1; }
/* Design works */
.dz-pill--design .p1 { --x: 22px; --y: 6px; --w: 74px; --h: 55px; --r: -30deg; }
.dz-pill--design .p2 { --x: 198px; --y: 14px; --w: 73px; --h: 55px; --r: 30deg; }
.dz-pill--design .p3 { --x: 92px; --y: -4px; --w: 108px; --h: 82px; z-index: 1; }
/* Case studies */
.dz-pill--case .p1 { --x: 142px; --y: 21px; --w: 54px; --h: 34px; }
.dz-pill--case .p2 { --x: 142px; --y: 21px; --w: 54px; --h: 34px; border-radius: 10px; }
.dz-pill--case .p3 { --x: 107px; --y: 21px; --w: 46px; --h: 34px; z-index: 1; }

/* -------------------------------------------------------------- Sections */
.dz-live, .dz-design, .dz-cases { position: relative; }
.dz-live { padding-top: 40px; }
.dz-design, .dz-cases { margin-top: 140px; }
.dz-title {
  text-align: center; color: #fff;
  font-size: clamp(44px, 9vw, 76px); line-height: 1.2; font-weight: 400;
  margin-bottom: 72px;
}

/* ---- Row: text + framed screenshot (stacked on tablet/phone) ---------- */
.dz-row {
  display: flex; flex-direction: column; gap: 36px;
  padding: 0 var(--page-pad);
  margin: 0 auto 110px; max-width: 1000px;
}
.dz-text { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; max-width: 560px; }
.dz-name { font-size: 32px; font-weight: 700; line-height: 1.2; color: #fff; }
.dz-kicker { font-size: 20px; font-weight: 700; line-height: 1.2; text-transform: uppercase; color: #fff; }
.dz-desc { font-size: 16px; line-height: 1.2; color: #fff; }
.dz-desc strong { font-weight: 700; }

.dz-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-width: 140px; height: 40px; padding: 0 16px;
  background: #fff; color: #000; border: 1px solid #fff; border-radius: 6px;
  font-size: 16px; font-weight: 500; line-height: 1; white-space: nowrap;
  transition: box-shadow .25s, background-color .2s;
}
.dz-btn--wide { min-width: 199px; }
.dz-btn svg { width: 20px; height: 20px; flex: none; }
.dz-btn:hover { box-shadow: 0 8px 24px rgba(88,104,214,.35); }

/* Gradient frame (Framer "MacBook Air - 22": white + 20% #0047FF diagonal) */
.dz-frame {
  --frame-bg: linear-gradient(135deg, #fff 0%, #ccdaff 50%, #fff 100%);
  position: relative; display: block;
  aspect-ratio: 946 / 619;
  width: calc(100% + var(--page-pad));
}
.dz-frame::before {
  content: ""; position: absolute; top: 0; bottom: 0; width: 95.77%;
  background: var(--frame-bg); border-radius: 24px;
}
.dz-frame img {
  position: absolute; bottom: 0; width: 95.67%; height: 95.96%;
  object-fit: cover; border-radius: 24px;
}
.dz-row--img-right .dz-frame { margin-right: calc(var(--page-pad) * -1); }
.dz-row--img-right .dz-frame::before { left: 0; }
.dz-row--img-right .dz-frame img { right: 0; }
.dz-row--img-left .dz-frame { margin-left: calc(var(--page-pad) * -1); }
.dz-row--img-left .dz-frame::before { right: 0; }
.dz-row--img-left .dz-frame img { left: 0; }

/* ---- Design works gallery -------------------------------------------- */
.dz-design { padding: 0 var(--page-pad); }
.dz-gallery { display: flex; flex-direction: column; align-items: center; gap: 32px; }
.dz-gallery figure { margin: 0; }
.dz-gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: 16px; }

.dz-slideshow {
  width: 930px; max-width: 100%; padding: 10px 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 12.5%, #000 87.5%, transparent 100%);
          mask-image: linear-gradient(to right, transparent 0%, #000 12.5%, #000 87.5%, transparent 100%);
}
.dz-track { display: flex; gap: 10px; transition: transform .9s var(--ease-out); will-change: transform; }
.dz-slide { flex: none; width: min(413px, 72vw); aspect-ratio: 413 / 310; }

.dz-pair { display: flex; justify-content: center; gap: 32px; width: 100%; }
.dz-pair figure { width: 413px; max-width: calc(50% - 16px); aspect-ratio: 413 / 310; }
.dz-shot { width: 606px; max-width: 100%; }
.dz-shot--sign { width: 605px; aspect-ratio: 605 / 458; }
.dz-shot--cart { aspect-ratio: 606 / 455; }
.dz-shot--sofa { aspect-ratio: 606 / 819; }
.dz-shot--sitzen { aspect-ratio: 606 / 1588; }
.dz-shot--sign img { border-radius: 24px; }
.dz-shot--cart img, .dz-shot--sofa img, .dz-shot--sitzen img { border-radius: 0; }

/* ---- Case studies ----------------------------------------------------- */
.dz-cases { padding-bottom: 120px; }
.dz-cases .dz-row:last-child { margin-bottom: 0; }

/* ======================================================================
   Desktop (Framer 1440 geometry)
   ====================================================================== */
@media (min-width: 1200px) {
  .dz-hero { height: 664px; padding: 0; }
  .dz-pills { display: block; position: absolute; top: 156px; left: 0; right: 0; height: 352px; }
  .dz-pill { position: absolute; }
  .dz-pill--live { top: 63px; left: 134px; }
  .dz-pill--case { top: 63px; right: 115px; }
  .dz-pill--design { bottom: 27px; left: 50%; transform: translateX(-50%); }

  .dz-live { padding-top: 0; }
  .dz-live .dz-title { margin-bottom: 150px; }
  .dz-design { margin-top: 196px; }
  .dz-cases { margin-top: 185px; }

  /* Live works rows: 1874px stage centred and clipped by the viewport */
  .dz-live .dz-row {
    position: relative; display: flex; flex-direction: row; align-items: center; gap: 0;
    width: 1874px; max-width: none; height: 619px; padding: 0;
    margin: 0 calc(50% - 937px) 150px;
  }
  .dz-live .dz-row:last-child { margin-bottom: 0; }
  .dz-live .dz-text { width: 364px; max-width: none; }
  .dz-kicker { white-space: nowrap; }
  .dz-live .dz-row--img-right .dz-text { margin-left: 444px; }
  .dz-live .dz-row--img-left .dz-text { margin-left: 1066px; }
  .dz-live .dz-frame { position: absolute; top: 0; bottom: 0; width: 946px; aspect-ratio: auto; margin: 0; }
  .dz-live .dz-row--img-right .dz-frame { right: 0; }
  .dz-live .dz-row--img-left .dz-frame { left: 0; }
  .dz-live .dz-frame::before { width: 906px; }
  .dz-live .dz-frame img { width: 905px; height: 594px; }

  /* Design works column: 78% wide */
  .dz-design { width: 78%; margin-left: auto; margin-right: auto; padding: 0; }
  .dz-design .dz-title { margin-bottom: 87px; }
  .dz-slide { width: 413px; }

  /* Case studies: 1548px stage */
  .dz-cases { width: 1548px; margin-left: calc(50% - 774px); margin-right: calc(50% - 774px); padding-bottom: 300px; }
  .dz-cases .dz-title { margin: 0 0 74px; transform: translateX(-1%); }
  .dz-cases .dz-row { flex-direction: row; align-items: center; justify-content: center; gap: 103px; height: 640px; padding: 0; margin: 0; max-width: none; }
  .dz-cases .dz-text { width: 364px; max-width: none; flex: none; }
  .dz-case--jewelry { width: 86%; }
  .dz-case--jewelry .dz-text { order: 2; }
  .dz-case--fitlife { width: 88%; margin: 136px 0 0 174px !important; }
  .dz-cases .dz-frame { flex: none; width: 865px; height: 628px; aspect-ratio: auto; margin: 0; }
  .dz-case--jewelry .dz-frame { overflow: hidden; }
  .dz-case--jewelry .dz-frame::before { left: auto; right: 0; top: 0; bottom: auto; width: 825px; height: 619px; }
  .dz-case--jewelry .dz-frame img { left: 43px; top: 26px; bottom: auto; width: 789px; height: 593px; object-position: left top; border-radius: 24px; }
  .dz-case--fitlife .dz-frame::before { left: -38px; top: 0; bottom: auto; width: 825px; height: 619px; }
  .dz-case--fitlife .dz-frame img { left: 0; right: auto; top: 27px; bottom: auto; width: 924px; height: 592px; object-position: left top; }
}

/* Tablet tweaks */
@media (min-width: 810px) and (max-width: 1199px) {
  .dz-row { max-width: 900px; }
  .dz-live .dz-row, .dz-cases .dz-row { flex-direction: column; }
}

/* Phone */
@media (max-width: 809px) {
  .dz-header .nav { padding-left: 104px; }
  .dz-header .social { display: none; }
  /* keep the Works dropdown inside the viewport (no 1px horizontal scroll at 375) */
  .dz-header .nav-menu { left: auto; right: -8px; }
  .dz-hero { padding: 130px 16px 90px; }
  .dz-pills { grid-template-columns: 1fr; justify-items: center; gap: 96px; }
  .dz-pill--design { order: 2; }
  .dz-pill--case { order: 3; }
  .dz-pill-glass { font-size: 28px; padding: 40px 24px; min-width: 291px; }
  .dz-title { margin-bottom: 48px; }
  .dz-design, .dz-cases { margin-top: 110px; }
  .dz-row { gap: 28px; margin-bottom: 88px; }
  .dz-name { font-size: 28px; }
  .dz-kicker { font-size: 18px; }
  .dz-text { gap: 18px; }
  .dz-frame::before, .dz-frame img { border-radius: 16px; }
  .dz-pair { flex-direction: column; align-items: center; gap: 24px; }
  .dz-pair figure { max-width: 100%; }
  .dz-gallery { gap: 24px; }
}
@media (max-width: 400px) {
  .dz-header .nav .hide-sm { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .dz-track { transition: none; }
  .dz-pill-media img { animation: none; }
}
