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

/* fonts: Einstein for the studio narrative, brand voices for specimens only */
@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: 'Vodan'; src: url('../assets/fonts/brand/vodan_ttf-webfont.woff2') format('woff2'), url('../assets/fonts/brand/vodan_ttf-webfont.woff') format('woff'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Assistant'; src: url('../assets/fonts/brand/Assistant-VariableFont_wght.ttf') format('truetype-variations'); font-weight: 200 800; font-display: swap; }

.jonathan-case {
  --je-ink: #2D2D2D;
  --je-slate: #5B5B5B;
  --je-gray: #898A8A;
  --je-silver: #B8B8B8;
  --je-paper: #DDDDDD;
  --je-line: rgb(45 45 45 / 16%);
  --je-ease: cubic-bezier(0.22, 1, 0.36, 1);
  margin: 0;
  background: var(--je-paper);
  color: var(--je-ink);
  font-family: 'Einstein', sans-serif;
  line-height: 1.7;
}

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

/* masthead */
.case-masthead { padding: clamp(56px, 9vh, 120px) 0 clamp(36px, 6vh, 72px); }
.masthead-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) 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.05em; color: var(--je-gray); }
.case-masthead h1 { margin: 0; font-size: clamp(38px, 5.4vw, 76px); font-weight: 700; line-height: 1.1; letter-spacing: -0.012em; }
.masthead-copy p { margin: 0 0 18px; font-size: clamp(17px, 1.5vw, 20px); color: rgb(45 45 45 / 88%); }

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

/* hero world — editorial spread: ghost display type blocked by photo */
.hero-world {
  position: relative; margin: 0; background: var(--je-ink); overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center; min-height: clamp(420px, 72vh, 760px);
}
.hero-ghost {
  position: absolute; margin: 0; inset-block-start: clamp(8px, 4vh, 40px); inset-inline: 0;
  font-family: 'Vodan', serif; font-size: clamp(90px, 17vw, 250px); line-height: 0.92;
  color: var(--je-silver); opacity: 0.28; text-align: center; direction: ltr;
  user-select: none; pointer-events: none;
}
.hero-photo { position: relative; z-index: 1; height: 100%; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-id {
  position: relative; z-index: 1; display: grid; justify-items: center; gap: clamp(28px, 5vh, 54px);
  padding: clamp(40px, 7vh, 80px) clamp(20px, 4vw, 60px);
}
.hw-mono { width: clamp(110px, 14vw, 200px); height: auto; }
.hw-lockup { width: min(100%, 460px); height: auto; }

/* sections */
.case-sec { padding: clamp(56px, 9vh, 110px) 0; }
.sec-white { background: #ECECEA; }
.sec-ink { background: var(--je-ink); color: #F4F4F2; }
.sec-ink .sec-no { color: var(--je-gray); }
.sec-ink .sec-copy p { color: rgb(244 244 242 / 82%); }
.sec-no { margin: 0 0 14px; font-size: 14px; font-weight: 700; letter-spacing: 0.08em; color: var(--je-gray); }
.sec-copy h2 { margin: 0 0 18px; font-size: clamp(28px, 3.4vw, 46px); font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; }
.sec-copy p { margin: 0 0 16px; font-size: clamp(16px, 1.35vw, 18.5px); color: rgb(45 45 45 / 84%); max-width: 56ch; }
.sec-copy.center { text-align: center; display: grid; justify-items: center; margin-bottom: clamp(26px, 4vh, 44px); }
.sec-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.sec-grid.flip { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.proof-link-row { margin: 26px 0 0; }
.proof-link-row.center { text-align: center; }

/* origin */
.origin-duo { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 16px; align-items: start; }
.origin-duo figure { margin: 0; display: grid; gap: 10px; }
.origin-duo img { width: 100%; background: #F4F4F2; box-shadow: 0 24px 60px rgb(45 45 45 / 22%); }
.origin-duo figcaption { font-size: 14px; color: var(--je-slate); text-align: center; }

/* mark section */
.mono-tones { display: flex; gap: 14px; margin-top: 30px; }
.mt { flex: 1; min-width: 0; display: block; padding: 16% 15%; }
.mt img { display: block; width: 100%; height: auto; }
.mt-paper { background: var(--je-paper); }
.mt-gray { background: var(--je-gray); }
.mt-ink { background: #1F1F1F; }
.video-card { margin: 0; position: relative; overflow: hidden; box-shadow: 0 30px 80px rgb(0 0 0 / 30%); }
.video-card video { width: 100%; display: block; aspect-ratio: 4 / 5; object-fit: cover; background: var(--je-paper); }
.reel-card { max-width: 420px; justify-self: center; }
.reel-card video { aspect-ratio: 9 / 16; }
.media-toggle {
  position: absolute; inset-inline-end: 14px; inset-block-end: 14px; z-index: 3;
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px;
  background: rgb(45 45 45 / 82%); color: #F4F4F2; border: 1px solid rgb(244 244 242 / 35%);
  border-radius: 999px; font: inherit; font-size: 14.5px; font-weight: 600; cursor: pointer;
}
.media-toggle:focus-visible { outline: 2px solid #F4F4F2; outline-offset: 2px; }

/* system */
.palette-row { display: flex; min-height: 170px; box-shadow: 0 24px 60px rgb(45 45 45 / 18%); }
.palette-row > div { flex: 1; background: var(--c); display: grid; place-items: end center; padding-block-end: 12px; }
.palette-row b { color: var(--t); font-weight: 600; font-size: clamp(9px, 1.3vw, 14px); letter-spacing: 0.05em; }
.type-rows { margin-top: 34px; border-top: 1px solid var(--je-line); }
.type-row {
  display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 20px; align-items: baseline;
  padding-block: 20px; border-bottom: 1px solid var(--je-line);
}
.type-name { font-size: 12.5px; font-weight: 700; letter-spacing: 0.24em; color: var(--je-gray); }
.tp-vodan { margin: 0; font-family: 'Vodan', serif; font-size: clamp(30px, 4.8vw, 60px); line-height: 1.04; }
.tp-assistant { margin: 0; font-family: 'Assistant', sans-serif; font-weight: 500; font-size: clamp(19px, 2.3vw, 26px); }
.locks-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 34px; }
.ls { margin: 0; display: grid; place-items: center; aspect-ratio: 4 / 3; padding: 8%; min-width: 0; }
.ls img { width: 100%; height: 100%; object-fit: contain; }
.ls.paper { background: #F4F4F2; }
.ls.ink { background: var(--je-ink); }
.book-strip { margin: 40px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.book-strip img { width: 100%; height: auto; border: 1px solid var(--je-line); background: #fff; }
.book-strip figcaption { grid-column: 1 / -1; font-size: 14px; color: var(--je-slate); text-align: center; margin-top: 4px; }

/* world */
.original-art { margin: 0; display: grid; gap: 10px; max-width: 440px; justify-self: center; }
.original-art img { width: 100%; box-shadow: 0 30px 80px rgb(45 45 45 / 28%); }
.original-art figcaption { font-size: 14px; color: var(--je-slate); text-align: center; }
.apps-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: clamp(30px, 5vh, 54px); }
.apps-grid figure { margin: 0; }
.apps-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* feed */
.phone-shot { margin: 0; display: grid; justify-items: center; }
.device-phone-generic {
  --frame: #171a1f;
  --frame-edge: #30343b;
  position: relative; display: block;
  box-sizing: border-box;
  width: min(21rem, 78vw);
  max-width: 100%;
  padding: 2.8%;
  overflow: hidden;
  border: 1px solid var(--frame-edge);
  border-radius: 9%;
  background: var(--frame);
  box-shadow: 0 2px 3px rgb(0 0 0 / 18%), 0 24px 64px rgb(0 0 0 / 34%);
  isolation: isolate;
}
/* v2: יחס המסך 440/956 יושב על המסך עצמו; המסגרת border-box ולעולם לא רחבה מההורה, והצילום נשאר שלם ולא מעוות */
.device-phone-generic__screen { display: block; width: 100%; aspect-ratio: 440 / 956; overflow: hidden; border-radius: 7.2%; background: #f4f4f2; }
.device-phone-generic__screen > img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.wide-media { margin: clamp(30px, 5vh, 54px) auto 0; }
.wide-media img { width: 100%; height: auto; box-shadow: 0 26px 70px rgb(45 45 45 / 22%); }
.sec-ink .wide-media img { box-shadow: 0 26px 70px rgb(0 0 0 / 45%); }
.devices-media img { box-shadow: 0 30px 90px rgb(45 45 45 / 30%); }

/* built */
.sec-built { background: #ECECEA; }
.built-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); margin-top: 10px; }
.bc { background: #F4F4F2; border: 1px solid var(--je-line); padding: clamp(22px, 3vw, 36px); }
.bc h3 { margin: 0 0 14px; font-size: clamp(18px, 1.8vw, 22px); font-weight: 700; }
.bc ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.bc li { position: relative; padding-inline-start: 22px; font-size: clamp(15.5px, 1.3vw, 17.5px); color: rgb(45 45 45 / 86%); }
.bc li::before { content: ""; position: absolute; inset-inline-start: 0; top: 0.62em; width: 10px; height: 2px; background: var(--je-gray); }
.built-note { margin: 22px 0 0; font-size: 15px; color: var(--je-slate); max-width: 70ch; }

/* CTA band */
.case-cta-band { background: var(--je-ink); color: #F4F4F2; text-align: center; padding: clamp(56px, 9vh, 100px) 0; }
.case-cta-band p { margin: 0 0 10px; font-size: clamp(16px, 1.5vw, 19px); color: rgb(244 244 242 / 75%); }
.case-cta-band h2 { margin: 0 0 28px; font-size: clamp(30px, 4vw, 52px); font-weight: 700; line-height: 1.2; }
.case-cta-band .btn { font-family: 'Einstein', sans-serif; }

/* responsive */
@media (max-width: 900px) {
  .masthead-grid, .sec-grid, .sec-grid.flip { grid-template-columns: 1fr; }
  .hero-world { grid-template-columns: 1fr; min-height: 0; }
  .hero-photo { order: -1; max-height: 56vh; }
  .hero-ghost { font-size: clamp(70px, 19vw, 130px); }
  .locks-strip, .book-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .apps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .origin-duo { grid-template-columns: 1fr; }
  .built-cols { grid-template-columns: 1fr; }
  .sec-grid .sec-media, .reel-card { justify-self: stretch; max-width: 460px; margin-inline: auto; }
}
@media (max-width: 540px) {
  .locks-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .type-row { grid-template-columns: 1fr; gap: 6px; }
  .palette-row { min-height: 130px; }
  .apps-grid { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .jonathan-case * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* v2: מתחת ל-360px (200% זום) הפלטה נשברת לשני צבעים בשורה במקום לחרוג מהמסך */
@media (max-width: 359px) {
  .palette-row { flex-wrap: wrap; }
  .palette-row > div { flex: 1 1 45%; min-width: 0; min-height: 76px; overflow: hidden; }
  .palette-row b { font-size: 10px; }
}
