/* Itay Binyamin v1 — personal site on the Prophet of Profits design system.
   Baby blue / light blue / navy. Space Grotesk display, Inter body, IBM Plex Mono labels. */
:root {
  --bg: #ffffff;
  --bg-soft: #f4f7fa;
  --bg-blue: #eef5fb;
  --ink: #15202c;
  --navy: #0d1622;
  --muted: #5b6b7e;
  --faint: #8fa0b3;
  --blue: #1b9fe3;
  --blue-deep: #0d7ab8;
  --blue-ink: #0b5e93;
  --baby: #cfe9fa;
  --blue-soft: #e7f3fc;
  --line: #e2e9f0;
  --card-shadow: 0 20px 60px rgba(21, 32, 44, 0.08);
  --disp: "Space Grotesk", "Inter", sans-serif;
  --body: "Inter", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
::selection { background: var(--blue); color: #fff; }
a { color: inherit; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 28px; }

/* ---------- buttons ---------- */
.btn-solid { background: var(--blue); color: #fff; font-weight: 600; font-size: 16px; padding: 17px 38px; border-radius: 100px; text-decoration: none; box-shadow: 0 12px 32px rgba(27, 159, 227, 0.4); transition: transform 0.2s, box-shadow 0.2s; display: inline-block; }
.btn-solid:hover { transform: translateY(-3px); box-shadow: 0 18px 44px rgba(27, 159, 227, 0.5); }
.btn-ghost { border: 1.5px solid var(--line); color: var(--ink); font-weight: 600; font-size: 16px; padding: 16px 36px; border-radius: 100px; text-decoration: none; transition: border-color 0.2s; display: inline-block; background: #fff; }
.btn-ghost:hover { border-color: var(--blue); }

/* ---------- nav ---------- */
.nav { position: fixed; transition: opacity 0.7s ease, transform 0.7s ease; top: 0; left: 0; right: 0; z-index: 100; background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 42px; height: 42px; border-radius: 50%; background: var(--ink); color: #fff; font-family: var(--disp); font-weight: 700; font-size: 17px; display: grid; place-items: center; letter-spacing: -0.02em; }
.brand-name { font-family: var(--disp); font-weight: 700; font-size: 18px; letter-spacing: -0.02em; }
.brand-name span { color: var(--blue); }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a { font-size: 14.5px; font-weight: 500; color: var(--muted); text-decoration: none; transition: color 0.2s; }
.nav-links a:hover { color: var(--blue-ink); }
.nav-cta { background: var(--blue); color: #fff !important; padding: 12px 24px; border-radius: 100px; font-weight: 600 !important; box-shadow: 0 8px 24px rgba(27, 159, 227, 0.35); transition: transform 0.2s, box-shadow 0.2s !important; }
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(27, 159, 227, 0.45); }
.burger { display: none; background: none; border: 1px solid var(--line); border-radius: 100px; padding: 10px 18px; font-size: 13px; font-weight: 600; cursor: pointer; color: var(--ink); }
@media (max-width: 900px) {
  .nav-links { display: none; position: absolute; top: 74px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 26px; border-bottom: 1px solid var(--line); gap: 6px; align-items: flex-start; box-shadow: var(--card-shadow); }
  .nav-links.open { display: flex; }
  .nav-links > a { font-size: 17px; font-weight: 600; color: var(--ink); padding: 14px 6px; }
  .burger { display: block; }
}

/* ================= THE DIVE — homepage scroll journey =================
   You fly toward and THROUGH each beat: text starts small in the distance,
   rushes past the camera, and you emerge into the next scene. The finale
   lands you inside the hero. Deep navy -> baby blue -> hero white. */
.dive { position: relative; height: 840vh; background: var(--navy); }
.d-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: #0d1622; }
.d-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.d-beats { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.d-beat { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); text-align: center; padding: 0 24px; opacity: 0; visibility: hidden; will-change: transform, opacity; }
.d-beat h2 { font-family: var(--disp); font-weight: 700; letter-spacing: -0.03em; line-height: 1.0; font-size: clamp(44px, 9vw, 110px); color: #fff; margin: 0; }
.d-beat h2 .blue { color: var(--blue); }
.d-beat p { color: rgba(255,255,255,0.62); font-size: clamp(15px, 2.2vw, 20px); margin: 18px auto 0; max-width: 560px; }
.d-eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--baby); margin: 0 0 18px; }
.d-hud { position: absolute; top: 96px; left: 22px; font-family: var(--mono); z-index: 4; }
.d-hud span { display: block; font-size: 10px; letter-spacing: 0.24em; color: rgba(255,255,255,0.45); margin-bottom: 4px; }
.d-hud b { font-size: 20px; letter-spacing: 0.08em; color: #fff; font-weight: 500; }
.d-depth { position: absolute; top: 96px; right: 22px; text-align: right; font-family: var(--mono); z-index: 4; }
.d-depth span { display: block; font-size: 10px; letter-spacing: 0.24em; color: rgba(255,255,255,0.45); margin-bottom: 4px; }
.d-depth b { font-size: 20px; letter-spacing: 0.08em; color: #fff; font-weight: 500; }
.d-skip { display: none; position: absolute; bottom: 26px; left: 22px; background: rgba(255,255,255,0.1); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,0.22); border-radius: 999px; padding: 12px 20px; font-size: 13px; font-weight: 600; color: #fff; cursor: pointer; z-index: 5; }
body.dive-on .d-skip { display: block; }
/* finale photo — you land on him */
.d-finale { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.df-world { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); text-align: center; padding: 0 24px; opacity: 0; visibility: hidden; }
.df-world img { width: min(300px, 58vw); aspect-ratio: 1; border-radius: 50%; object-fit: cover; margin: 0 auto 30px; border: 5px solid rgba(255,255,255,0.9); box-shadow: 0 30px 90px rgba(27,159,227,0.45); }
.df-world h2 { font-family: var(--disp); font-weight: 700; letter-spacing: -0.03em; font-size: clamp(38px, 7vw, 84px); color: var(--ink); line-height: 1.02; }
.df-world h2 .blue { color: var(--blue); }
.df-world p { color: var(--muted); font-size: 19px; margin-top: 18px; }
@media (prefers-reduced-motion: reduce) { .dive { display: none; } }

/* ---------- hero (the landing) ---------- */
.hero { min-height: 100vh; display: flex; align-items: center; position: relative; overflow: hidden; padding: 130px 0 80px;
  background: radial-gradient(900px 480px at 50% -80px, var(--blue-soft), transparent 70%), var(--bg); }
.orbs { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.55; background: radial-gradient(circle, var(--baby), transparent 70%); animation: orbDrift 14s ease-in-out infinite alternate; }
@keyframes orbDrift { from { transform: translate(0, 0) scale(1); } to { transform: translate(50px, -30px) scale(1.15); } }
.hero-in { text-align: center; position: relative; z-index: 2; padding-top: 30px; }
.hero-photo { width: 128px; height: 128px; border-radius: 50%; object-fit: cover; margin: 0 auto 30px; border: 4px solid #fff; box-shadow: 0 20px 50px rgba(27,159,227,0.3); }
.hero-eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--blue-ink); margin-bottom: 20px; }
.hero h1 { font-family: var(--disp); font-weight: 700; font-size: clamp(44px, 7.4vw, 92px); line-height: 1.0; letter-spacing: -0.03em; margin-bottom: 24px; }
.hero h1 .blue { color: var(--blue); }
.hero-sub { max-width: 640px; margin: 0 auto 40px; color: var(--muted); font-size: 19px; }
.hero-sub strong { color: var(--ink); }
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- marquee ---------- */
.marquee { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-soft); overflow: hidden; padding: 16px 0; }
.marquee-track { display: flex; width: max-content; will-change: transform; }
.marquee-track span { padding: 0 28px; display: inline-flex; align-items: center; gap: 56px; font-family: var(--disp); font-weight: 600; font-size: 15px; letter-spacing: 0.04em; color: var(--muted); white-space: nowrap; }
.marquee-track .dot { color: var(--blue); font-size: 16px; }

/* ---------- chapters ---------- */
.chapter { padding: 120px 0; position: relative; }
.ch-num { font-family: var(--mono); font-size: 12px; letter-spacing: 0.3em; color: var(--blue); text-transform: uppercase; margin-bottom: 26px; display: flex; align-items: center; gap: 14px; }
.ch-num::before { content: ""; width: 40px; height: 2px; background: var(--blue); }
.ch-title { font-family: var(--disp); font-size: clamp(34px, 5vw, 60px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; margin-bottom: 24px; }
.ch-title .blue { color: var(--blue); }
.ch-sub { color: var(--muted); font-size: 19px; max-width: 640px; }

/* manifesto thesis */
.thesis { background: var(--bg-soft); }
.thesis-text { font-family: var(--disp); font-size: clamp(26px, 3.8vw, 46px); line-height: 1.4; font-weight: 500; letter-spacing: -0.015em; max-width: 980px; }
.thesis-text .w { opacity: 0.14; transition: opacity 0.35s; }
.thesis-text .w.lit { opacity: 1; }
.thesis-text .w.blue.lit { color: var(--blue); }
.thesis-sig { margin-top: 48px; display: flex; align-items: center; gap: 18px; }
.thesis-sig img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; box-shadow: var(--card-shadow); }
.thesis-sig b { display: block; font-size: 16px; }
.thesis-sig span { font-size: 13.5px; color: var(--muted); }

/* model cards (about) */
.model-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 30px; }
.model-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 28px 24px; position: relative; overflow: hidden; transition: transform 0.22s ease, box-shadow 0.22s ease; }
.model-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--blue), #7cc4ea); }
.model-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(27,159,227,0.12); }
.mc-num { font-family: var(--mono); font-size: 12px; letter-spacing: 0.24em; color: var(--blue-ink); font-weight: 600; }
.model-card h3 { font-size: 21px; letter-spacing: -0.01em; margin: 10px 0 8px; }
.model-card p { font-size: 14.5px; color: var(--muted); line-height: 1.6; margin: 0; }
@media (max-width: 860px) { .model-grid { grid-template-columns: 1fr; } }

/* ---------- venture web ---------- */
.hweb-sec { padding: 40px 0 100px; }
.hweb-wrap { display: flex; flex-direction: column; align-items: center; }
.hweb-svg { width: min(560px, 94vw); height: auto; display: block; }
.hw-ring { transform-origin: 360px 360px; animation: hwSpin linear infinite; }
.hw-node { transform-box: fill-box; transform-origin: center; animation: hwSpinRev linear infinite; }
@keyframes hwSpin { to { transform: rotate(360deg); } }
@keyframes hwSpinRev { to { transform: rotate(-360deg); } }
@media (prefers-reduced-motion: reduce) { .hw-ring, .hw-node { animation: none; } }
.web-legend { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }
.web-legend span { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.web-legend i { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }

/* venture detail sheet */
.h-sheet { position: fixed; left: 12px; right: 12px; bottom: 12px; display: flex; gap: 16px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 14px 44px 14px 14px; box-shadow: 0 18px 44px rgba(21,32,44,0.25); opacity: 0; pointer-events: none; transform: translateY(16px); transition: opacity 0.28s ease, transform 0.28s ease; max-width: 560px; margin: 0 auto; z-index: 90; }
.h-sheet.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
.hs-close { position: absolute; top: 8px; right: 12px; width: 32px; height: 32px; border: none; background: none; font-size: 26px; line-height: 1; color: var(--faint); cursor: pointer; }
.hs-logo { width: 64px; height: 64px; border-radius: 50%; border: 2.5px solid var(--blue); overflow: hidden; flex: none; display: flex; align-items: center; justify-content: center; background: #fff; }
.hs-logo img { width: 100%; height: 100%; object-fit: cover; }
.hs-cat { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; margin: 0 0 4px; }
.hs-body h3 { font-size: 19px; margin: 0 0 4px; letter-spacing: -0.01em; }
.hs-desc { font-size: 13.5px; color: var(--muted); margin: 0 0 8px; line-height: 1.5; }
.hs-link { font-size: 13px; font-weight: 700; color: var(--blue-ink); text-decoration: none; }
.hs-link.is-soon { color: var(--faint); pointer-events: none; }

/* ---------- ventures page ---------- */
.page-head { padding: 150px 0 60px; background: radial-gradient(700px 340px at 50% -60px, var(--blue-soft), transparent 70%), var(--bg); }
.page-head h1 { font-family: var(--disp); font-size: clamp(38px, 5.6vw, 68px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.04; margin: 18px 0; }
.page-head h1 .blue { color: var(--blue); }
.page-head p { color: var(--muted); font-size: 19px; max-width: 640px; }
.crumbs { font-size: 12.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); font-weight: 600; }
.crumbs a { color: var(--blue-ink); text-decoration: none; }
.vweb-sec { padding: 10px 0 30px; text-align: center; overflow: hidden; }
.vweb-big { width: min(760px, 96vw); aspect-ratio: 1 / 1; height: auto; display: block; margin: 0 auto; }
.vweb-bleed { width: 100vw; position: relative; left: 50%; transform: translateX(-50%); }
@media (max-width: 760px) { .vweb-big { width: 100vw; max-width: none; margin: 0; } }
.v-chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 26px 0 8px; }
.v-chip { border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 10px 18px; font-size: 13.5px; font-weight: 600; color: var(--ink); cursor: pointer; transition: all 0.18s ease; }
.v-chip:hover { border-color: var(--blue); color: var(--blue-ink); }
.v-chip.on { background: var(--blue); border-color: var(--blue); color: #fff; }
.v-hint { color: var(--faint); font-size: 13px; margin: 14px 0 0; }
.vdir { padding: 30px 0 80px; }
.vdir-h { font-size: 22px; letter-spacing: -0.01em; margin: 44px 0 18px; }
.vdir-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.vdir-list li { display: flex; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; }
.vdir-list img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex: none; border: 1px solid var(--line); }
.vdir-list a { font-weight: 700; color: var(--ink); text-decoration: none; font-size: 16px; }
.vdir-list a:hover { color: var(--blue-ink); }
.vdir-name { font-weight: 700; font-size: 16px; }
.vdir-list p { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.vdir-soon { display: inline-block; font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue-ink); background: rgba(27,159,227,0.1); border-radius: 999px; padding: 2px 10px; margin-left: 6px; }
.srv-cta { text-align: center; margin-top: 70px; padding: 60px 30px; background: linear-gradient(180deg, #0f6faf, #15202c); border-radius: 24px; color: #fff; }
.srv-cta h2 { color: #fff; font-size: clamp(28px, 4.4vw, 44px); letter-spacing: -0.02em; margin: 0 0 12px; }
.srv-cta p { color: rgba(255,255,255,0.75); font-size: 17px; margin: 0 0 26px; }
.srv-cta p:last-child { margin-bottom: 0; }

/* ---------- book ---------- */
.book-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 60px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 28px; padding: 64px; box-shadow: var(--card-shadow); }
.book-grid h2 { font-size: clamp(32px, 4vw, 48px); margin-bottom: 18px; line-height: 1.1; letter-spacing: -0.025em; }
.book-grid h2 em { color: var(--blue); font-style: normal; }
.book-grid p { color: var(--muted); font-size: 17px; margin-bottom: 16px; }
.book-stage { position: relative; display: grid; place-items: center; padding: 20px; }
.book-stage::before { content: ""; position: absolute; width: 80%; height: 76%; background: radial-gradient(circle, var(--blue), transparent 68%); opacity: 0.2; filter: blur(30px); }
.book-hint { margin-top: 18px; font-size: 13px; color: var(--muted); letter-spacing: 0.04em; text-align: center; }
.book { position: relative; width: min(250px, 62vw); transform: rotate(2.2deg); filter: drop-shadow(0 28px 28px rgba(21,32,44,0.35)); transition: transform 0.3s ease; cursor: pointer; z-index: 1; }
.book:hover { transform: rotate(0) translateY(-5px); }
.book img { display: block; width: 100%; height: auto; border-radius: 3px 11px 11px 3px; aspect-ratio: 2/3; object-fit: cover; }
.book::after { content: ""; position: absolute; inset: 1% -7px 1% auto; width: 8px; border-radius: 0 7px 7px 0; background: linear-gradient(90deg, #d8d0c2, #fbf9ef 55%, #c3b9aa); }
@media (max-width: 900px) { .book-grid { grid-template-columns: 1fr; padding: 44px 30px; } .book-grid .book-stage { order: -1; } }
/* flipbook modal */
.book-modal { position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center; padding: 20px; }
.book-modal[hidden] { display: none; }
.book-modal-backdrop { position: absolute; inset: 0; background: rgba(13, 22, 34, 0.72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.book-modal-close { position: absolute; top: 14px; right: 16px; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: #fff; font-size: 22px; line-height: 1; cursor: pointer; color: var(--ink); display: grid; place-items: center; z-index: 10; }
.flipbook-wrap { position: relative; z-index: 1; }
.flipbook { position: relative; width: min(680px, 94vw); height: clamp(430px, 58vh, 520px); perspective: 2200px; -webkit-perspective: 2200px; }
.fb-page { position: absolute; top: 0; bottom: 0; width: 50%; overflow: hidden; padding: 36px 32px 44px; cursor: pointer; }
.fb-left { left: 0; border-radius: 10px 3px 3px 10px; background: linear-gradient(100deg, #efe7d3 0%, #faf5e9 12%, #fdf9ef 100%); box-shadow: inset -28px 0 36px -28px rgba(74,58,32,.45); }
.fb-right { right: 0; border-radius: 3px 10px 10px 3px; background: linear-gradient(260deg, #efe7d3 0%, #faf5e9 12%, #fdf9ef 100%); box-shadow: inset 28px 0 36px -28px rgba(74,58,32,.45); }
.fb-spine { position: absolute; left: 50%; top: 1.5%; bottom: 1.5%; width: 4px; transform: translateX(-50%); background: linear-gradient(90deg, rgba(74,58,32,0), rgba(74,58,32,.35), rgba(74,58,32,0)); pointer-events: none; z-index: 6; }
.fb-leaf { position: absolute; top: 0; bottom: 0; width: 50%; transform-style: preserve-3d; -webkit-transform-style: preserve-3d; z-index: 5; pointer-events: none; }
.fb-leaf.on-right { right: 0; transform-origin: left center; -webkit-transform-origin: left center; }
.fb-leaf.on-left { left: 0; transform-origin: right center; -webkit-transform-origin: right center; }
.fb-leaf.fwd { animation: fbFwd .65s cubic-bezier(.45,.05,.35,1) forwards; }
.fb-leaf.bwd { animation: fbBwd .65s cubic-bezier(.45,.05,.35,1) forwards; }
@keyframes fbFwd { from { transform: rotateY(0deg); } to { transform: rotateY(-180deg); } }
@keyframes fbBwd { from { transform: rotateY(-180deg); } to { transform: rotateY(0deg); } }
.fb-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; overflow: hidden; padding: 36px 32px 44px; }
.fb-face.fb-front { border-radius: 3px 10px 10px 3px; background: linear-gradient(260deg, #efe7d3 0%, #faf5e9 12%, #fdf9ef 100%); box-shadow: inset 28px 0 36px -28px rgba(74,58,32,.45); }
.fb-face.fb-back { transform: rotateY(180deg); border-radius: 10px 3px 3px 10px; background: linear-gradient(100deg, #efe7d3 0%, #faf5e9 12%, #fdf9ef 100%); box-shadow: inset -28px 0 36px -28px rgba(74,58,32,.45); }
.fb-page h3, .fb-face h3 { font-family: Georgia, "Times New Roman", serif; font-weight: 600; font-size: clamp(22px, 3.4vw, 30px); color: #15202c; margin: 10px 0 16px; line-height: 1.2; }
.fb-page p, .fb-face p { font-family: Georgia, "Times New Roman", serif; font-size: 15px; line-height: 1.72; color: #4a443c; margin-bottom: 13px; }
.fb-runhead { font-family: Inter, sans-serif !important; font-size: 10.5px !important; letter-spacing: .22em; text-transform: uppercase; color: #a89c83 !important; margin-bottom: 4px !important; }
.fb-pagenum { position: absolute; bottom: 16px; font-family: Inter, sans-serif !important; font-size: 11px !important; color: #a89c83 !important; margin: 0 !important; }
.fb-left .fb-pagenum, .fb-face.fb-back .fb-pagenum { left: 32px; }
.fb-right .fb-pagenum, .fb-face.fb-front .fb-pagenum { right: 32px; }
.fb-title { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.fb-title h3 { font-size: clamp(30px, 5vw, 44px); margin: 12px 0 8px; }
.fb-ornament { color: var(--blue) !important; letter-spacing: .5em !important; font-size: 13px !important; margin-bottom: 6px !important; }
.fb-subtitle { font-style: italic; font-size: 17px !important; color: #15202c !important; }
.fb-author { font-family: Inter, sans-serif !important; font-size: 12px !important; letter-spacing: .28em; text-transform: uppercase; color: var(--blue-deep) !important; margin-top: 18px !important; }
.fb-cta { display: inline-block; font-family: Inter, sans-serif !important; font-size: 14px !important; font-weight: 700; background: var(--blue); color: #fff !important; padding: 12px 26px; border-radius: 999px; margin: 8px 0 10px !important; }
.fb-lines { border-top: 1px solid #e5dcc8; margin-top: 18px; padding-top: 16px; }
.fb-lines p { font-style: italic; font-size: 14.5px; margin-bottom: 8px; }
.fb-lines .fb-runhead { margin-bottom: 10px !important; }
.fb-hint { text-align: center; color: rgba(255,255,255,.78); font-size: 13.5px; margin-top: 18px; font-family: Inter, sans-serif; }
@media (max-width: 640px) { .fb-page, .fb-face { padding: 26px 20px 40px; } }

/* ---------- metrics strip ---------- */
.metrics-grid { display: flex; gap: 16px; overflow-x: auto; padding: 6px 2px 18px; scroll-snap-type: x proximity; scrollbar-width: none; }
.metrics-grid::-webkit-scrollbar { display: none; }
.metric { flex: 0 0 auto; width: 216px; scroll-snap-align: start; background: #fff; border: 1.5px solid var(--line); border-radius: 20px; padding: 26px 22px; text-align: left; font-family: var(--body); cursor: pointer; transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s; }
.metric:hover { transform: translateY(-5px); box-shadow: 0 18px 36px rgba(21,32,44,0.12); border-color: var(--blue); }
.metric b { font-family: var(--disp); font-size: clamp(40px, 5vw, 50px); font-weight: 700; line-height: 1; letter-spacing: -0.02em; display: block; color: var(--ink); }
.metric .m-label { display: block; margin-top: 10px; font-size: 14px; font-weight: 700; color: var(--muted); }
.metric .m-detail { display: block; max-height: 0; opacity: 0; overflow: hidden; transition: max-height 0.35s ease, opacity 0.35s ease, margin 0.35s ease; font-size: 13.5px; color: var(--muted); line-height: 1.55; }
.metric.open .m-detail { max-height: 140px; opacity: 1; margin-top: 10px; }
.metric.open { border-color: var(--blue); }

/* ---------- faq ---------- */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; background: none; border: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 26px 4px; cursor: pointer; font-family: var(--disp); font-size: 19px; font-weight: 600; text-align: left; color: var(--ink); letter-spacing: -0.01em; }
.faq-q .fx { color: var(--blue); font-size: 26px; font-weight: 300; transition: transform 0.3s; flex: none; }
.faq-item.open .fx { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.faq-item.open .faq-a { max-height: 600px; }
.faq-a p { padding: 0 4px 28px; color: var(--muted); max-width: 760px; font-size: 16.5px; }
.faq-a a { color: var(--blue-ink); font-weight: 600; }

/* ---------- final ---------- */
.final { text-align: center; padding: 140px 0; background: radial-gradient(800px 400px at 50% 120%, var(--blue-soft), transparent 70%), var(--bg); }
.final h2 { font-family: var(--disp); font-size: clamp(38px, 6.4vw, 80px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.04; margin-bottom: 24px; }
.final h2 .blue { color: var(--blue); }
.final p { color: var(--muted); font-size: 19px; max-width: 560px; margin: 0 auto 40px; }

/* ---------- footer ---------- */
.colophon { background: var(--ink); color: rgba(255, 255, 255, 0.7); padding: 70px 0 34px; }
.c-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 50px; }
.c-grid h5 { font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: rgba(255, 255, 255, 0.4); margin-bottom: 18px; font-weight: 600; }
.c-grid a { display: block; color: rgba(255, 255, 255, 0.7); text-decoration: none; font-size: 15px; margin-bottom: 10px; }
.c-grid a:hover { color: var(--blue); }
.c-brand .brand-name { color: #fff; font-size: 20px; }
.c-brand img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; margin-bottom: 16px; border: 2px solid rgba(255,255,255,0.25); }
.c-brand p { font-size: 14.5px; max-width: 300px; color: rgba(255, 255, 255, 0.5); margin-top: 12px; }
.c-base { border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 26px; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: rgba(255, 255, 255, 0.4); }
@media (max-width: 900px) { .c-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- contact form ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; padding: 20px 0 110px; align-items: start; }
@media (max-width: 960px) { .split { grid-template-columns: 1fr; gap: 50px; } }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 44px 40px; box-shadow: var(--card-shadow); }
.form-card h2 { font-family: var(--disp); font-size: 28px; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.02em; }
.form-card > p { color: var(--muted); margin-bottom: 30px; font-size: 16px; }
.f-row { margin-bottom: 20px; }
.f-row label { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 9px; }
.f-row input, .f-row select, .f-row textarea { width: 100%; background: var(--bg-soft); border: 1.5px solid var(--line); color: var(--ink); border-radius: 12px; padding: 15px 16px; font-size: 16px; font-family: var(--body); transition: border-color 0.2s; }
.f-row input:focus, .f-row select:focus, .f-row textarea:focus { outline: none; border-color: var(--blue); background: #fff; }
.f-row textarea { min-height: 130px; resize: vertical; }
.submit-btn { width: 100%; background: var(--blue); color: #fff; border: none; font-weight: 700; font-size: 16px; padding: 18px; border-radius: 100px; cursor: pointer; box-shadow: 0 12px 32px rgba(27, 159, 227, 0.4); transition: transform 0.2s, box-shadow 0.2s; }
.submit-btn:hover { transform: translateY(-2px); box-shadow: 0 18px 44px rgba(27, 159, 227, 0.5); }
.form-note { margin-top: 18px; font-size: 14px; color: var(--faint); text-align: center; }
.cal-box { border: 1px solid var(--line); border-radius: 22px; overflow: hidden; background: #fff; box-shadow: var(--card-shadow); }
.cal-box iframe { display: block; width: 100%; height: 700px; border: 0; }
.c-direct { margin-top: 30px; }
.c-direct div { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.c-direct div span { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); display: block; margin-bottom: 4px; }
.c-direct a { color: var(--blue-ink); text-decoration: none; font-weight: 600; }
.sent-panel { text-align: center; padding: 30px 0; }
.sent-panel h3 { font-family: var(--disp); font-size: 26px; margin-bottom: 10px; }
.sent-panel p { color: var(--muted); }

/* ---------- reveal ---------- */
.rv { opacity: 0; transform: translateY(36px); transition: opacity 0.9s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none; } }

/* nav stays out of the dive, then morphs in */
body.dive-armed .nav { opacity: 0; transform: translateY(-18px); pointer-events: none; }
body.dive-armed.dive-done .nav { opacity: 1; transform: none; pointer-events: auto; }

/* finale hero layer (grows out of the finale photo) */
.df-world, .df-hero { transition: none; }
.df-hero { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); text-align: center; padding: 0 24px; opacity: 0; visibility: hidden; }
.df-hero .hero-photo { margin-left: auto; margin-right: auto; }

/* metrics: slow auto-scroll track */
.metrics-viewport { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.metrics-track { display: flex; gap: 16px; width: max-content; padding: 6px 2px 18px; will-change: transform; }
.metrics-track .metric { flex: 0 0 auto; }

/* nav brand: photo avatar with a slow rotating ring */
.brand-ava { position: relative; display: inline-block; width: 46px; height: 46px; border-radius: 50%; }
.brand-ava::before { content: ""; position: absolute; inset: -3px; border-radius: 50%;
  background: conic-gradient(from 0deg, var(--blue), var(--baby), var(--blue-deep), var(--blue));
  animation: avaSpin 9s linear infinite; }
.brand-ava img { position: relative; display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 2px solid #fff; }
@keyframes avaSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .brand-ava::before { animation: none; } }

/* ===== Finale v3: ONE photo, in sync + lowered (Oct 20) ===== */
.d-finale { display: flex; align-items: center; justify-content: center; padding: 100px 24px 32px; }
.df-col { display: flex; flex-direction: column; align-items: center; width: 100%; max-width: 880px; }
.df-photo { width: min(300px, 58vw); aspect-ratio: 1; border-radius: 50%; object-fit: cover; border: 5px solid rgba(255,255,255,0.9); box-shadow: 0 30px 90px rgba(27,159,227,0.45); opacity: 0; }
.df-swap { display: grid; width: 100%; margin-top: 30px; }
.df-swap > div { grid-area: 1 / 1; align-self: start; }
.df-world { position: static; transform: none; padding: 0; }
.df-hero { position: static; transform: none; padding: 0; }
.df-hero .hero-sub { max-width: 640px; margin-left: auto; margin-right: auto; }

/* ===== Footer heart: soft pulse (Oct 20) ===== */
.hrt { display: inline-block; animation: hrtPulse 1.8s ease-in-out infinite; }
@keyframes hrtPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.22); } }
@media (prefers-reduced-motion: reduce) { .hrt { animation: none; } }

/* ===== Hero verb rotator: build / scale / invest / operate (Oct 20) ===== */
.verb-rot { display: inline-grid; text-align: left; vertical-align: bottom; }
.verb-rot .vr-w { grid-area: 1 / 1; opacity: 0; animation: vrCycle 10s ease-in-out infinite; will-change: opacity, transform, filter; }
.verb-rot .vr-w:nth-child(2) { animation-delay: 2.5s; }
.verb-rot .vr-w:nth-child(3) { animation-delay: 5s; }
.verb-rot .vr-w:nth-child(4) { animation-delay: 7.5s; }
@keyframes vrCycle {
  0% { opacity: 0; transform: translateY(10px); filter: blur(5px); }
  4.5% { opacity: 1; transform: translateY(0); filter: blur(0); }
  20.5% { opacity: 1; transform: translateY(0); filter: blur(0); }
  25% { opacity: 0; transform: translateY(-10px); filter: blur(5px); }
  100% { opacity: 0; transform: translateY(-10px); filter: blur(5px); }
}
@media (prefers-reduced-motion: reduce) {
  .verb-rot .vr-w { animation: none; }
  .verb-rot .vr-w:first-child { opacity: 1; }
}

/* ===== Finale bottom clearance: buttons breathe before the marquee (Oct 20) ===== */
.d-finale { padding-bottom: 88px; }


/* ===== The Film: real-life opening (Oct 22) ===== */
.film-layer { position: absolute; inset: -4%; background-size: cover; background-position: center; opacity: 0; visibility: hidden; will-change: opacity, transform; }
.film-layer:first-child { opacity: 1; visibility: visible; }
.film-shade { position: absolute; inset: 0; z-index: 2; background: linear-gradient(180deg, rgba(8,14,22,0.16) 0%, rgba(8,14,22,0) 30%, rgba(8,14,22,0) 52%, rgba(8,14,22,0.62) 100%); pointer-events: none; }
.film-grain { position: absolute; inset: 0; z-index: 3; opacity: 0.05; pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%27300%27%20height%3D%27300%27%3E%3Cfilter%20id%3D%27n%27%3E%3CfeTurbulence%20type%3D%27fractalNoise%27%20baseFrequency%3D%270.9%27%20numOctaves%3D%272%27%2F%3E%3CfeColorMatrix%20type%3D%27saturate%27%20values%3D%270%27%2F%3E%3C%2Ffilter%3E%3Crect%20width%3D%27300%27%20height%3D%27300%27%20filter%3D%27url%28%23n%29%27%20opacity%3D%270.55%27%2F%3E%3C%2Fsvg%3E"); }
.film-cap { position: absolute; left: 6vw; bottom: 11vh; z-index: 4; opacity: 0; visibility: hidden; color: #fff; pointer-events: none; }
.fc-place { font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: 0.34em; margin: 0 0 12px; color: rgba(255,255,255,0.92); }
.fc-sub { font-family: var(--disp); font-size: clamp(27px, 4.6vw, 46px); font-weight: 600; letter-spacing: -0.015em; line-height: 1.05; margin: 0; color: #fff; text-shadow: 0 2px 30px rgba(8,14,22,0.45); }
.film-title { position: absolute; inset: 0; z-index: 4; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 0 24px; opacity: 0; visibility: hidden; pointer-events: none; }
.film-title .fc-place { color: rgba(255,255,255,0.8); }
.film-title h2 { font-family: var(--disp); font-weight: 700; letter-spacing: -0.03em; font-size: clamp(38px, 7vw, 84px); color: #fff; line-height: 1.02; margin: 0; text-shadow: 0 4px 44px rgba(8,14,22,0.5); }
.film-title h2 .blue { color: var(--blue); }
.film-veil { position: absolute; inset: 0; z-index: 5; background: linear-gradient(180deg, #ffffff 0%, #eef6fc 55%, #e7f3fc 100%); opacity: 0; pointer-events: none; }
.d-finale { z-index: 6; }


/* ===== The Film v2: camera moves + light bloom (Oct 22) ===== */
.film-layer { inset: -6%; }
.film-glow { position: absolute; inset: 0; z-index: 3; opacity: 0; pointer-events: none; background: radial-gradient(ellipse at 50% 42%, rgba(190,228,252,0.85) 0%, rgba(140,205,248,0.35) 45%, rgba(140,205,248,0) 72%); }


/* ===== The Passage: through real places (Oct 22) ===== */
.pass-layer { position: absolute; inset: -8%; background-size: cover; background-position: center; will-change: transform, clip-path; }
.pass-glow { position: absolute; z-index: 3; border-radius: 50%; pointer-events: none; opacity: 0; visibility: hidden; }
.pass-veil { position: absolute; inset: 0; z-index: 5; background: linear-gradient(180deg, #ffffff 0%, #eef6fc 55%, #e7f3fc 100%); opacity: 0; pointer-events: none; }


/* ===== The Passage, polished: cinematic vignette (Oct 22) ===== */
.film-shade { background: radial-gradient(ellipse at center, rgba(8,14,22,0) 56%, rgba(8,14,22,0.30) 100%), linear-gradient(180deg, rgba(8,14,22,0.16) 0%, rgba(8,14,22,0) 30%, rgba(8,14,22,0) 52%, rgba(8,14,22,0.62) 100%); }


/* ===== The Passage, director's cut (Oct 22) ===== */
.pass-intro { position: absolute; inset: 0; z-index: 30; background: #05090f; pointer-events: none; animation: passIntro 1.5s ease 0.1s forwards; }
@keyframes passIntro { to { opacity: 0; visibility: hidden; } }
.pass-word { position: absolute; left: 0; right: 0; top: 44%; z-index: 1; transform: translateY(-50%); text-align: center; font-family: var(--disp); font-weight: 700; font-size: clamp(84px, 21vw, 340px); letter-spacing: 0.01em; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,0.30); white-space: nowrap; opacity: 0; visibility: hidden; pointer-events: none; will-change: transform, opacity; }
.pass-light { position: absolute; z-index: 1; width: 72vmax; height: 72vmax; border-radius: 50%; transform: translate(-50%,-50%); background: radial-gradient(circle, rgba(235,247,255,0.50) 0%, rgba(235,247,255,0) 60%); opacity: 0; pointer-events: none; }
.fc-rule { display: block; width: 54px; height: 2px; background: var(--blue); margin-bottom: 16px; transform: scaleX(0); transform-origin: left; }
.pass-thread { position: absolute; left: 26px; top: 50%; transform: translateY(-50%); z-index: 4; width: 2px; height: 180px; background: rgba(255,255,255,0.18); border-radius: 2px; pointer-events: none; }
.pt-fill { position: absolute; left: 0; top: 0; width: 100%; height: 100%; background: var(--blue); border-radius: 2px; transform: scaleY(0); transform-origin: top; }
.pt-dot { position: absolute; left: 50%; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 50%; background: rgba(255,255,255,0.35); transition: background 0.3s, box-shadow 0.3s; }
.pt-dot.on { background: #fff; box-shadow: 0 0 12px rgba(27,159,227,0.95); }


/* place-words, brought forward (Oct 22: could barely be seen) */
.pass-word { -webkit-text-stroke: 2.5px rgba(255,255,255,0.62); color: rgba(255,255,255,0.07); filter: drop-shadow(0 2px 24px rgba(8,14,22,0.45)); }


/* finale geometry (Oct 22): the portrait is pinned to the bloom's center,
   out of the column flow, so light, opening and portrait share one point.
   The world line sits just under the full-size portrait. */
.df-photo { position: absolute; left: 50%; top: 46%; transform: translate(-50%,-50%); z-index: 2; }
.df-world { top: 63%; }


/* place-words fit the screen (Oct 22): the whole word is always visible,
   sized by its letter count; short words keep the full drama */
.pass-word { font-size: min(clamp(54px, 21vw, 340px), calc(148vw / var(--n, 6))); }


/* finale stack restored to engine control (Oct 22): an old override had
   forced the world/hero text back into the document flow, where no
   positioning could reach them. Absolute again, measured every frame. */
.df-world, .df-hero { position: absolute; left: 0; right: 0; transform: translateY(-50%); }
/* FORT rides small above LAUDERDALE */
.pw-small { display: block; font-size: 0.32em; letter-spacing: 0.52em; text-indent: 0.52em; line-height: 1.15; margin-bottom: 0.12em; }


/* rotating verb, centered in its slot (Oct 22): the slot keeps the widest
   word's width so the headline never changes shape, and each word sits in
   the middle of the slot instead of leaving a hole after short words */
.verb-rot { justify-items: center; }
.verb-rot .vr-w { text-align: center; }


/* no header flash on load (Oct 22): a tiny gate script in the head marks
   the page before first paint, and the nav stays hidden until the journey
   lands — then it glides in, the moment it belongs to */
html.dive-pending .nav { opacity: 0; visibility: hidden; transform: translateY(-8px); pointer-events: none; transition: opacity .5s ease, transform .5s ease, visibility 0s linear .5s; }
html.dive-pending body.dive-done .nav { opacity: 1; visibility: visible; transform: none; pointer-events: auto; transition: opacity .5s ease, transform .5s ease; }


/* stage fills the FULL screen height (Oct 22): 100svh computes short in
   some in-app browsers and left the navy wrapper showing as a bar under
   the photo. lvh is the true full height; the engine measures the stage
   live, so every scene and the finale scale to match. */
.d-stage { height: 100vh; height: 100lvh; }


/* stage height, measured (Oct 22): the gate script records the device's
   real viewport height before first paint and the stage uses exactly that
   — no unit roulette between browsers. Set once, so it never shifts
   mid-scroll; refreshed on orientation change by the engine. */
.d-stage { height: 100vh; height: 100svh; height: var(--stage-h, 100svh); }

/* PASSAGE v19: the opening waits in true black; the curtain lifts only when the first photograph is actually in */
.d-stage { background: #000; }
.pass-intro { background: #000; animation-play-state: paused; }
.pass-intro.go { animation-play-state: running; }

/* v20: the dive wrapper itself is black — no blue can ever show beneath the stage */
.dive { background: #000; }

/* v21: phone slice of the harbour pano centers the ferry */
@media (max-width: 760px) {
  .d-stage > .pass-layer:nth-child(4) { background-position: 88% 50% !important; }
}


/* v22: NYC scene is now a baked centered slice (v10) — retire the v21 phone slice override */
@media (max-width:760px){.d-stage >.pass-layer:nth-child(4) { background-position: 50% 46%!important}}
