/* ============================================================
   inbld presentations — shared layer for inbld-intro.html and inbld-qto.html.
   Sits on top of styles.css (tokens). Light theme only, like the rest of the public site.
   Slides are full-height sections; deck.js adds reveal animations, keyboard
   navigation, the slide counter and click-to-zoom on screenshots.
   ============================================================ */
:root { --band: var(--bg-sunken); --hdr: 64px; }
html { scroll-behavior: smooth; scroll-padding-top: var(--hdr); }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-body); }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
a { color: inherit; }

/* Icons — Lucide shapes, 2px stroke */
.ico { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- Header ---------- */
.dk-hdr { position: fixed; inset: 0 0 auto 0; height: var(--hdr); z-index: 30; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.dk-hdr .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 100%; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand .mk { width: 34px; height: 34px; border-radius: 50%; background: url('assets/brand/inbld-mark.png') center/cover; flex: none; }
.brand .wm { font-weight: 700; font-size: 23px; letter-spacing: -.02em; color: var(--text); line-height: 1; }
.brand .wm i { color: var(--accent); font-style: normal; }
.dk-nav { display: flex; gap: 2px; }
.dk-nav a { position: relative; font-size: 14.5px; color: var(--text-muted); padding: 8px 12px; border-radius: var(--r-sm); text-decoration: none; transition: color var(--dur-fast), background var(--dur-fast); white-space: nowrap; }
.dk-nav a:hover { color: var(--text); background: var(--surface-2); }
.dk-nav a.on { color: var(--text); font-weight: 700; }
.dk-nav a.on::after { content: ""; position: absolute; inset: auto 12px 2px 12px; height: 2px; border-radius: 2px; background: var(--accent); }
.dk-progress { position: absolute; bottom: -1px; right: 0; height: 2px; width: 0; background: var(--accent); transition: width 80ms linear; }

/* ---------- Slides ---------- */
/* overflow-x: clip keeps slide-in animations from widening the page before they play */
.slide { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--hdr) + 48px) 0 64px; box-sizing: border-box; overflow-x: clip; }
.slide > .wrap { width: 100%; }
.slide.sunk { background: var(--band); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.dk-head { text-align: center; max-width: 46em; margin: 0 auto 48px; }
/* Plex Mono has no Hebrew: Hebrew falls through to Alef, Latin stays mono */
.eyebrow { font-family: 'IBM Plex Mono', 'Alef', monospace; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); font-weight: 500; }
.dk-head h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(30px, 4vw, 48px); line-height: 1.12; letter-spacing: -.01em; margin: 12px 0 0; }
.dk-head p { font-size: 18px; line-height: 1.7; color: var(--text-muted); margin: 14px 0 0; }
.hl { color: var(--accent); }
.prose p { font-size: 18px; line-height: 1.75; color: var(--text-muted); margin: 0 0 16px; }
.prose p:last-child { margin-bottom: 0; }
h3.sub { font-family: var(--font-display); font-weight: 700; font-size: clamp(22px, 2.4vw, 28px); line-height: 1.25; margin: 0 0 12px; }
.equ { font-family: var(--font-display); font-weight: 700; color: var(--accent); }

/* Layouts. In RTL the first child sits on the right. */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.split.wide-first { grid-template-columns: 1.45fr 1fr; }
.split.top { align-items: start; }
.stack { display: grid; gap: 24px; }
.rows { display: grid; gap: clamp(48px, 7vw, 88px); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.center { max-width: 860px; margin-inline: auto; }

/* Cards (overview pillars) */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 32px 28px; box-shadow: var(--shadow-sm); text-align: center; text-decoration: none; display: block; transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card .pico { width: 60px; height: 60px; margin: 0 auto 20px; border-radius: var(--r-md); display: grid; place-items: center; }
.card .pico .ico { width: 28px; height: 28px; }
.card h3 { font-family: var(--font-display); font-weight: 700; font-size: 34px; margin: 0; color: var(--text); }
.card p { font-size: 16.5px; line-height: 1.6; color: var(--text-muted); margin: 10px 0 0; }

/* Check lists */
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.checks li { display: flex; align-items: center; gap: 14px; font-size: clamp(17px, 1.6vw, 21px); line-height: 1.45; color: var(--text); }
.checks .ck { width: 30px; height: 30px; border-radius: 50%; background: var(--success-fill); color: var(--success); display: grid; place-items: center; flex: none; }
.checks .ck .ico { width: 17px; height: 17px; stroke-width: 2.5; }
.lead-it { font-size: 19px; color: var(--text-muted); margin: 0 0 22px; }

/* Screenshots and figures */
.shot { position: relative; margin: 0; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-md); }
.shot img { display: block; width: 100%; height: auto; }
.shot.plain { border: none; background: transparent; box-shadow: none; border-radius: 0; }
.shot figcaption { padding: 18px 20px 20px; }
.shot figcaption h3 { font-family: var(--font-display); font-weight: 700; font-size: 21px; margin: 0; }
.shot figcaption p { font-size: 15.5px; line-height: 1.6; color: var(--text-muted); margin: 6px 0 0; }
.shot.cap-center figcaption { text-align: center; }
[data-zoom] img { cursor: zoom-in; }
[data-zoom] .zb { position: absolute; top: 12px; left: 12px; width: 34px; height: 34px; border-radius: 50%; background: color-mix(in srgb, var(--surface) 92%, transparent); color: var(--text); box-shadow: var(--shadow-sm); display: grid; place-items: center; opacity: 0; transform: scale(.9); transition: opacity var(--dur-base), transform var(--dur-base) var(--ease-out); pointer-events: none; }
[data-zoom] .zb .ico { width: 17px; height: 17px; }
[data-zoom]:hover .zb { opacity: 1; transform: none; }
.shot.lift { transition: transform var(--dur-slow) var(--ease-out), box-shadow var(--dur-slow); }
.shot.lift:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

/* Quote */
.quote { margin: 0 auto; max-width: 22em; font-family: var(--font-display); font-weight: 700; font-size: clamp(28px, 4vw, 46px); line-height: 1.25; color: var(--text); text-align: center; }
.quote cite { display: block; margin-top: 16px; font-style: normal; font-size: 17px; font-weight: 400; color: var(--text-muted); }

/* ---------- Hero ---------- */
.dk-hero { position: relative; isolation: isolate; overflow: hidden; display: grid; place-items: center; text-align: center; }
.dk-hero .bg { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; animation: drift 28s var(--ease-in-out) infinite alternate; }
/* Illustration cover (intro): the art keeps its own proportions, centred at full height, and every
   edge fades into the page, so the cream background shows around it instead of a cut */
.dk-hero .art { position: absolute; inset: var(--hdr) 0 0 0; z-index: -2; margin: auto; height: calc(100% - var(--hdr)); max-width: 100%; aspect-ratio: 1097 / 954; object-fit: cover; object-position: 22% 50%; opacity: .9;
  -webkit-mask-image: radial-gradient(ellipse closest-side at 50% 50%, #000 55%, transparent 100%);
          mask-image: radial-gradient(ellipse closest-side at 50% 50%, #000 55%, transparent 100%);
  animation: drift 28s var(--ease-in-out) infinite alternate; }
.dk-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 18%, transparent) 0%, color-mix(in srgb, var(--bg) 62%, transparent) 70%, var(--bg) 100%); }
.dk-hero .logo { width: min(560px, 82vw); height: auto; display: block; margin: 0 auto; filter: drop-shadow(0 6px 24px color-mix(in srgb, var(--bg) 90%, transparent)); }
.dk-hero .panel { display: inline-block; margin-top: 24px; padding: 26px clamp(20px, 4vw, 44px); background: color-mix(in srgb, var(--surface) 86%, transparent); backdrop-filter: blur(8px); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow-lg); }
.dk-hero h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(34px, 5.6vw, 64px); line-height: 1.08; letter-spacing: -.015em; margin: 0; }
.dk-hero .en { margin-top: 12px; font-family: var(--font-mono); font-size: clamp(12px, 1.4vw, 15px); letter-spacing: .06em; color: var(--text-muted); direction: ltr; }
.cue { position: absolute; bottom: 26px; left: 50%; translate: -50% 0; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); background: color-mix(in srgb, var(--surface) 80%, transparent); color: var(--text-muted); display: grid; place-items: center; cursor: pointer; animation: bob 2.4s var(--ease-in-out) infinite; }
.cue:hover { color: var(--text); }
@keyframes drift { from { transform: scale(1); } to { transform: scale(1.07); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* ---------- Reveal animations (deck.js adds .in) ---------- */
.js [data-reveal] { opacity: 0; transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); transition-delay: var(--d, 0ms); }
.js [data-reveal="up"] { transform: translateY(32px); }
.js [data-reveal="zoom"] { transform: scale(.94); }
.js [data-reveal="zoom-out"] { transform: scale(1.08); }
.js [data-reveal="start"] { transform: translateX(40px); }
.js [data-reveal="end"] { transform: translateX(-40px); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* ---------- Slide counter ---------- */
.dk-count { position: fixed; bottom: 18px; left: 18px; z-index: 25; display: flex; align-items: center; gap: 2px; padding: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-pill); box-shadow: var(--shadow-sm); font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); direction: ltr; }
.dk-count button { width: 30px; height: 30px; border: none; border-radius: 50%; background: transparent; color: var(--text-muted); display: grid; place-items: center; cursor: pointer; }
.dk-count button:hover { background: var(--surface-2); color: var(--text); }
.dk-count .ico { width: 16px; height: 16px; }
.dk-count .n { min-width: 52px; text-align: center; }

/* ---------- Lightbox ---------- */
.dk-lb { padding: 0; border: none; background: transparent; max-width: 96vw; max-height: 94vh; overflow: visible; }
.dk-lb::backdrop { background: rgba(38 35 30 / .84); backdrop-filter: blur(4px); }
.dk-lb img { display: block; max-width: 96vw; max-height: 88vh; width: auto; height: auto; border-radius: var(--r-md); box-shadow: var(--shadow-lg); background: var(--surface); cursor: zoom-out; }
.dk-lb p { margin: 12px 0 0; text-align: center; color: #F2EEE6; font-size: 15px; }
.dk-lb .x { position: fixed; top: 16px; left: 16px; width: 42px; height: 42px; border-radius: 50%; border: none; background: rgba(251 249 245 / .14); color: #FBF9F5; display: grid; place-items: center; cursor: pointer; }
.dk-lb .x:hover { background: rgba(251 249 245 / .26); }

/* ---------- Footer ---------- */
.dk-foot { background: var(--surface); border-top: 1px solid var(--line); }
.dk-foot .wrap { padding-block: 28px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 14px; color: var(--text-subtle); }
.dk-foot nav { display: flex; gap: 20px; flex-wrap: wrap; }
.dk-foot a { color: var(--text-muted); text-decoration: none; }
.dk-foot a:hover { color: var(--text); }
.dk-foot .mail { font-family: var(--font-mono); direction: ltr; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .dk-nav { display: none; }
}
@media (max-width: 900px) {
  .slide:not(.dk-hero) { min-height: 0; padding: calc(var(--hdr) + 36px) 0 56px; }
  .split, .split.wide-first, .cards, .gallery { grid-template-columns: 1fr; }
  .split > .media-first { order: -1; }
  .dk-count { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .dk-hero .bg, .dk-hero .art, .cue { animation: none; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
}
