/* MIEL case — content styles. The nav/footer envelope comes from
   ../../studio-case-shell.css and is not restyled here. */

/* fonts: Einstein locally (file:// safe) for the studio narrative; brand voices for specimens */
@font-face { font-family: 'Einstein'; src: url('../assets/fonts/Einstein-Regular.woff2') format('woff2'); font-weight: 300 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Einstein'; src: url('../assets/fonts/Einstein-Medium.woff2') format('woff2'); font-weight: 600 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Medion'; src: url('../assets/fonts/brand/Medion.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Acumin'; src: url('../assets/fonts/brand/AcuminVariableConcept.otf') format('opentype'); font-weight: 300 900; font-display: swap; }

.miel-case {
  --mi-base: #C99797;
  --mi-light: #F6E7E7;
  --mi-rose: #E9C9C4;
  --mi-gold: #BFA184;
  --mi-cocoa: #4F3A3B;
  --mi-deep: #B06462; /* the original-ad headline tone */
  --mi-line: rgb(79 58 59 / 16%);
  --mi-ease: cubic-bezier(0.32, 0.72, 0, 1);
  margin: 0;
  background: var(--mi-light);
  color: var(--mi-cocoa);
  font-family: 'Einstein', sans-serif;
  line-height: 1.7;
}

.case-main { display: block; }
.miel-case .wrap { max-width: 1200px; margin: 0 auto; padding-inline: clamp(20px, 4vw, 40px); }

/* masthead */
.case-masthead { padding: clamp(56px, 9vh, 120px) 0 clamp(36px, 6vh, 72px); }
.masthead-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 72px); align-items: end; }
.case-eyebrow { margin: 0 0 18px; font-size: 14px; font-weight: 600; letter-spacing: 0.06em; color: var(--mi-deep); }
.case-masthead h1 { margin: 0; font-size: clamp(38px, 5.4vw, 74px); font-weight: 700; line-height: 1.12; letter-spacing: -0.012em; }
.masthead-copy p { margin: 0 0 18px; font-size: clamp(17px, 1.5vw, 20px); color: rgb(79 58 59 / 88%); }

.text-link { color: var(--mi-cocoa); font-weight: 600; text-decoration: none; border-bottom: 1.5px solid var(--mi-gold); padding-bottom: 2px; transition: border-color 0.4s var(--mi-ease); }
.text-link:hover, .text-link:focus-visible { border-color: var(--mi-cocoa); }
.text-link.light { color: var(--mi-light); border-color: var(--mi-gold); }
.text-link.light:hover, .text-link.light:focus-visible { border-color: var(--mi-light); }

/* hero bench — the living poster */
.hero-bench { --hb-hands-w: clamp(210px, 24vw, 345px);
  /* הנכס המוארך ממשיך באופן טבעי מעבר לקצה המקטע. הירידה הקטנה משאירה את שתי הידיים
     גלויות ומונעת חיתוך אלכסוני או פייד מלאכותי. */
  --hb-hands-drop: calc(var(--hb-hands-w) * 1.5476 * 0.03);
  position: relative; background: var(--mi-base); min-height: clamp(520px, 84vh, 820px);
  overflow: hidden; }
.hb-ghost { position: absolute; inset: 0; display: grid; place-items: center; }
.hb-ghost img { width: min(120vw, 1150px); opacity: 0.17; transform: translateY(-4%); }
.hb-type { position: absolute; inset: 0; display: grid; align-content: start; justify-items: center;
  padding-top: clamp(170px, 24vh, 236px); color: var(--mi-deep); font-family: 'Medion', serif; text-align: center; }
.hb-kick { font-size: clamp(26px, 4.6vw, 66px); letter-spacing: 0.05em; white-space: nowrap; }
.hb-giant { font-size: clamp(96px, 15vw, 225px); line-height: 0.9; letter-spacing: 0.34em; text-indent: 0.34em; }
.hb-giant2 { letter-spacing: 0.2em; text-indent: 0.2em; }
.hb-hands { position: absolute; left: 50%; bottom: calc(-1 * var(--hb-hands-drop)); transform: translateX(-52%);
  display: block; width: var(--hb-hands-w); filter: drop-shadow(0 30px 60px rgb(79 58 59 / 25%)); }
/* v2: הלוקאפ מתחיל מתחת לאזור הניווט הדביק (--nav-safe מהמעטפת) */
.hb-lockup { position: absolute; top: calc(var(--nav-safe, 96px) + 4px); left: 50%;
  transform: translateX(-50%); width: clamp(88px, 9vw, 124px); }

/* sections */
.case-sec { padding: clamp(64px, 11vh, 140px) 0; }
.sec-pink { background: var(--mi-rose); }
.sec-cocoa { background: var(--mi-cocoa); color: var(--mi-light); }
.sec-cocoa .sec-no { color: var(--mi-gold); }
.sec-cocoa .sec-copy p { color: rgb(246 231 231 / 86%); }

.sec-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(30px, 5vw, 84px); align-items: center; }
.sec-grid.flip { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.sec-no { margin: 0 0 14px; font-size: 13.5px; font-weight: 600; letter-spacing: 0.08em; color: var(--mi-deep); }
.case-sec h2 { margin: 0 0 20px; font-size: clamp(28px, 3.6vw, 50px); font-weight: 700; line-height: 1.16; letter-spacing: -0.01em; }
.sec-copy p { margin: 0 0 16px; font-size: clamp(16px, 1.35vw, 19px); color: rgb(79 58 59 / 88%); max-width: 52ch; }
.sec-copy.center { text-align: center; }
.sec-copy.center p { margin-inline: auto; }
.proof-link-row { margin: 26px 0 0; }
.proof-link-row.center { text-align: center; }

.sec-media { margin: 0; }
.original-ad img { width: 100%; height: auto; box-shadow: 0 40px 110px rgb(79 58 59 / 24%); }
.original-ad figcaption { margin-top: 14px; font-size: 13.5px; color: var(--mi-deep); }

.lockup-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 2vw, 26px);
  margin-top: 30px; align-items: center; }
.lockup-row img { width: 100%; max-height: 92px; object-fit: contain; }

.video-card { position: relative; overflow: hidden; box-shadow: 0 40px 110px rgb(79 58 59 / 26%); }
.video-card video { width: 100%; display: block; }
.reel-card { max-width: 400px; justify-self: center; }
.media-toggle { position: absolute; inset-inline-end: 14px; bottom: 14px; z-index: 3;
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px;
  border: 0; border-radius: 999px; background: rgb(35 22 22 / 76%); color: var(--mi-light);
  font-family: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.media-toggle:focus-visible { outline: 2.5px solid var(--mi-gold); outline-offset: 2px; }

/* system */
.palette-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin-top: clamp(36px, 6vh, 60px); }
.palette-row div { background: var(--c); color: var(--t); min-width: 0; overflow: hidden; min-height: clamp(120px, 18vh, 190px); display: flex; align-items: flex-end; padding: 16px; border: 1px solid var(--mi-line); }
.palette-row b { font-size: 13px; letter-spacing: 0.04em; font-weight: 600; }
.type-rows { display: grid; gap: clamp(26px, 4vh, 44px); margin-top: clamp(40px, 7vh, 72px); }
.type-row { display: grid; gap: 8px; border-top: 1px solid var(--mi-line); padding-top: 22px; }
.type-name { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; color: var(--mi-deep); }
.type-row p { margin: 0; text-align: start; }
.tp-medion { font-family: 'Medion', serif; font-weight: 400; font-size: clamp(38px, 6vw, 92px); line-height: 1; }
.tp-acumin { font-family: 'Acumin', sans-serif; font-weight: 500; font-size: clamp(18px, 2.4vw, 34px); letter-spacing: 0.3em; }
.icons-strip { display: grid; grid-template-columns: repeat(9, 1fr); gap: clamp(8px, 1.6vw, 22px);
  margin-top: clamp(40px, 7vh, 72px); padding: clamp(18px, 3vw, 30px);
  background: #fff; border: 1px solid var(--mi-line); }
.icons-strip img { width: min(100%, 52px); margin-inline: auto; }
.book-strip { margin: clamp(44px, 7vh, 80px) 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.book-strip img { width: 100%; height: auto; border: 1px solid var(--mi-line); box-shadow: 0 18px 50px rgb(79 58 59 / 12%); }
.book-strip figcaption { grid-column: 1 / -1; margin-top: 10px; font-size: 13.5px; color: var(--mi-deep); }

/* feed */
.phone-shot img { width: 100%; max-width: 340px; height: auto; margin-inline: auto; display: block;
  filter: drop-shadow(0 30px 70px rgb(79 58 59 / 30%)); }
.wide-media { margin: clamp(40px, 7vh, 72px) auto 0; }
.wide-media img { width: 100%; height: auto; display: block; box-shadow: 0 34px 90px rgb(45 26 26 / 20%); }
.scene-media img { box-shadow: 0 34px 90px rgb(45 26 26 / 26%); }

/* comparison */
.comparison { position: relative; margin-top: clamp(36px, 6vh, 60px); max-width: 760px;
  aspect-ratio: 1; overflow: hidden; box-shadow: 0 30px 80px rgb(79 58 59 / 24%); }
.comparison-layer { position: absolute; inset: 0; margin: 0; }
.comparison-layer img { width: 100%; height: 100%; object-fit: cover; }
.comparison-layer figcaption { position: absolute; top: 14px; background: rgb(79 58 59 / 84%);
  color: var(--mi-light); font-size: 13px; letter-spacing: 0.05em; padding: 7px 14px; border-radius: 999px; }
.comparison-before figcaption { left: 14px; }
.comparison-after figcaption { right: 14px; }
.comparison-after { clip-path: inset(0 0 0 50%); }
.comparison-range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.comparison-range:focus-visible { opacity: 1; appearance: none; background: none;
  outline: 3px solid var(--mi-gold); outline-offset: -3px; }
.comparison-divider { position: absolute; top: 0; bottom: 0; left: calc(50% - 1.5px); width: 3px;
  background: var(--mi-light); box-shadow: 0 0 12px rgb(0 0 0 / 35%); pointer-events: none; }
.comparison-divider::after { content: "⇄"; position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%); width: 46px; height: 46px; border-radius: 50%;
  background: var(--mi-light); color: var(--mi-cocoa); display: grid; place-items: center;
  font-size: 17px; box-shadow: 0 8px 22px rgb(0 0 0 / 25%); }

/* built list */
.sec-built { background: #fff; border-block: 1px solid var(--mi-line); }
.built-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 30px; align-self: center; }
.built-list li { position: relative; padding-inline-start: 26px; font-size: clamp(15.5px, 1.3vw, 18px); }
.built-list li::before { content: ""; position: absolute; inset-inline-start: 0; top: 0.62em; width: 12px; height: 12px; border-radius: 50%; background: var(--mi-base); border: 2px solid var(--mi-cocoa); }

/* cta band */
.case-cta-band { background: var(--mi-cocoa); color: var(--mi-light); text-align: center; padding: clamp(64px, 11vh, 130px) 0; }
.case-cta-band p { margin: 0 0 14px; font-size: clamp(16px, 1.4vw, 19px); color: rgb(246 231 231 / 78%); }
.case-cta-band h2 { margin: 0 0 30px; font-size: clamp(30px, 4vw, 54px); line-height: 1.18; font-weight: 700; }

/* concept disclosure — once, small, gray */
.concept-note { margin: 0 auto; padding-block: 34px 46px; text-align: center; font-size: 13px; color: rgb(79 58 59 / 45%); }

/* responsive */
@media (max-width: 960px) {
  .masthead-grid, .sec-grid, .sec-grid.flip { grid-template-columns: 1fr; }
  .sec-grid .sec-media { order: 2; }
  .hero-bench { min-height: clamp(500px, 70vh, 640px); }
  .hb-kick { white-space: normal; }
  .lockup-row { grid-template-columns: repeat(4, 1fr); gap: 10px; }
  .lockup-row img { max-height: 64px; }
  .built-list { grid-template-columns: 1fr; margin-top: 8px; }
  .book-strip { grid-template-columns: repeat(2, 1fr); }
  .icons-strip { grid-template-columns: repeat(9, 1fr); gap: 6px; padding: 14px; }
  .palette-row { gap: 8px; }
  .palette-row div { padding: 10px 8px; justify-content: center; }
  .palette-row b { font-size: 11px; writing-mode: vertical-rl; }
  .reel-card { max-width: min(78vw, 340px); }
  .comparison { max-width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .text-link, .media-toggle { transition: none; }
}

/* v2: מתחת ל-360px (200% זום) הטיפוגרפיה הענקית מצטמצמת בלי לשטח את האמנות */
@media (max-width: 359px) {
  .hero-bench { --hb-hands-w: min(70vw, 210px); min-height: 460px; }
  .hb-type { padding-top: clamp(150px, 30vh, 190px); }
  .hb-kick { font-size: clamp(15px, 7vw, 22px); letter-spacing: 0.04em; white-space: normal; padding-inline: 10px; }
  .hb-giant { font-size: clamp(54px, 30vw, 84px); letter-spacing: 0.18em; text-indent: 0.18em; }
  .hb-giant2 { letter-spacing: 0.1em; text-indent: 0.1em; }
  .hb-lockup { width: clamp(72px, 26vw, 96px); }
}

@media (max-width: 359px) {
  .palette-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .palette-row b { writing-mode: horizontal-tb; font-size: 10px; }
}
