/* ============================================================
   Jenblat.com — Omar Jenblat personal site
   Dark cinematic, warm gold accents
   ============================================================ */

:root {
  --bg: #0A0A0A;
  --bg-1: #111111;
  --bg-2: #161616;
  --gold: #C9A84C;
  --gold-soft: rgba(201, 168, 76, 0.18);
  --gold-faint: rgba(201, 168, 76, 0.08);
  --text: #F2EDE6;
  --text-dim: rgba(242, 237, 230, 0.72);
  --text-faint: rgba(242, 237, 230, 0.45);
  --border: rgba(242, 237, 230, 0.08);
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'DM Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --max-w: 1280px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  cursor: none;
  font-feature-settings: "ss01", "cv11";
  line-height: 1.55;
}

@media (max-width: 768px) {
  body { cursor: auto; }
}

a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
button, input, textarea { font-family: inherit; color: inherit; }

/* ---- Custom cursor ---------------------------------------- */
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  border-radius: 999px;
  will-change: transform;
  mix-blend-mode: difference;
}
.cursor-dot {
  width: 6px; height: 6px;
  background: var(--gold);
  transform: translate(-50%, -50%);
  transition: width 0.2s ease, height 0.2s ease;
}
.cursor-ring {
  width: 36px; height: 36px;
  border: 1px solid var(--gold);
  transform: translate(-50%, -50%);
  transition: width 0.25s ease, height 0.25s ease, border-color 0.25s ease;
}
.cursor-dot.is-hover { width: 12px; height: 12px; }
.cursor-ring.is-hover { width: 56px; height: 56px; border-color: rgba(201,168,76,0.5); }
@media (max-width: 768px) { .cursor-dot, .cursor-ring { display: none; } }

/* ---- Scroll progress bar ---------------------------------- */
.scroll-progress {
  position: fixed; top: 0; left: 0;
  height: 2px;
  background: var(--gold);
  z-index: 200;
  width: 0;
  transition: width 0.05s linear;
  box-shadow: 0 0 12px rgba(201,168,76,0.5);
}

/* ---- Nav -------------------------------------------------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.5rem 2.5rem;
  display: flex; align-items: center; justify-content: space-between;
  transition: background 0.35s ease, padding 0.35s ease, backdrop-filter 0.35s ease, border-color 0.35s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 1rem 2.5rem;
  border-bottom-color: var(--border);
}
.nav-logo {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.5rem;
  letter-spacing: 0.02em;
  color: var(--text);
}
.nav-logo .accent { color: var(--gold); }
.nav-logo img { height: 38px; width: auto; }
.nav-links { display: flex; gap: 2.25rem; }
.nav-link {
  position: relative;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-dim);
  font-weight: 400;
  transition: color 0.2s ease;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -6px; left: 0;
  height: 1px;
  width: 0;
  background: var(--gold);
  transition: width 0.3s ease;
}
.nav-link:hover { color: var(--text); }
.nav-link:hover::after { width: 100%; }
@media (max-width: 768px) {
  .nav { padding: 1rem 1.25rem; }
  .nav.is-scrolled { padding: .75rem 1.25rem; }
  .nav-links { gap: 1rem; }
  .nav-link { font-size: 0.7rem; letter-spacing: 0.12em; }
}

/* ---- Hero ------------------------------------------------- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  width: 100%;
  display: flex; align-items: center;
  overflow: hidden;
}
.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  will-change: transform;
}
.hero-fallback {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 30% 50%, rgba(201,168,76,0.18), transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(201,168,76,0.08), transparent 60%),
    #0A0A0A;
  z-index: 0;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10,10,10,0.55) 0%,
    rgba(10,10,10,0.4) 35%,
    rgba(10,10,10,0.7) 75%,
    rgba(10,10,10,0.95) 100%
  );
  z-index: 1;
}
.hero-overlay::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10,10,10,0.75) 0%, rgba(10,10,10,0.35) 45%, transparent 70%);
}
.hero-content {
  position: relative; z-index: 2;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 3rem;
}
.hero-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
  font-weight: 500;
  opacity: 0;
  animation: fadeUp 1s 0.2s ease forwards;
}
.hero-name {
  font-family: var(--serif);
  font-size: clamp(3rem, 9vw, 7.5rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin: 0 0 1.5rem;
  color: var(--text);
  opacity: 0;
  animation: fadeUp 1.1s 0.4s ease forwards;
}
.hero-rule {
  height: 1px;
  width: 0;
  background: var(--gold);
  margin: 1.75rem 0;
  animation: ruleGrow 1.4s 1s ease forwards;
}
@keyframes ruleGrow { to { width: 100px; } }
.hero-sub {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 300;
  font-style: italic;
  color: var(--text);
  min-height: 3rem;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeUp 1s 0.8s ease forwards;
}
.hero-sub .cursor-blink {
  display: inline-block;
  margin-left: 4px;
  width: 2px;
  height: 1em;
  background: var(--gold);
  vertical-align: text-bottom;
  animation: blink 1s infinite;
}
@keyframes blink { 0%,49% { opacity: 1; } 50%,100% { opacity: 0; } }

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  padding: 1.1rem 2.5rem;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--gold);
  cursor: none;
  position: relative;
  overflow: hidden;
  transition: color 0.35s ease;
  opacity: 0;
  animation: fadeUp 1s 1.2s ease forwards;
}
@media (max-width: 768px) { .btn-primary { cursor: pointer; } }
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: translateX(-101%);
  transition: transform 0.4s ease;
  z-index: -1;
}
.btn-primary:hover { color: var(--bg); }
.btn-primary:hover::before { transform: translateX(0); }
.btn-primary span.arrow { transition: transform 0.3s ease; }
.btn-primary:hover span.arrow { transform: translateX(4px); }

.hero-scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-faint);
  display: flex; flex-direction: column; align-items: center;
  gap: 0.75rem;
  animation: fadeUp 1s 1.5s ease forwards;
  opacity: 0;
}
.hero-scroll-hint::after {
  content: '';
  width: 1px;
  height: 32px;
  background: linear-gradient(180deg, var(--gold), transparent);
  animation: scrollHint 2s ease-in-out infinite;
}
@keyframes scrollHint {
  0%, 100% { transform: scaleY(1); opacity: 1; }
  50% { transform: scaleY(0.4); opacity: 0.5; transform-origin: top; }
}

@media (max-width: 768px) {
  .hero-content { padding: 0 1.5rem; }
  .hero-scroll-hint { display: none; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---- Section foundation ---------------------------------- */
.section {
  position: relative;
  padding: 8rem 3rem;
  max-width: var(--max-w);
  margin: 0 auto;
}
.section-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 1.5rem;
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(2.25rem, 5vw, 4.25rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 1.5rem;
}
.section-title em { color: var(--gold); font-style: normal; }
.section-rule {
  width: 60px; height: 1px;
  background: var(--gold);
  margin-bottom: 2.5rem;
}
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s ease, transform 1s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (max-width: 768px) {
  .section { padding: 5rem 1.5rem; }
}

/* ---- About ------------------------------------------------ */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.about-photo {
  position: relative;
  aspect-ratio: 4/5;
  background: linear-gradient(135deg, var(--bg-2), var(--bg-1));
  overflow: hidden;
  border: 1px solid var(--border);
}
.about-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
}
.about-photo::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(10,10,10,0.4));
  pointer-events: none;
}
.about-photo-frame {
  position: absolute;
  inset: 20px;
  border: 1px solid var(--gold);
  pointer-events: none;
  z-index: 2;
  transition: inset 0.5s ease;
}
.about:hover .about-photo-frame { inset: 12px; }
.about-text p {
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--text-dim);
  margin: 0 0 1.25rem;
  max-width: 540px;
}
.about-text p:first-of-type {
  font-family: var(--serif);
  font-size: 1.65rem;
  line-height: 1.45;
  color: var(--text);
  font-style: italic;
}
@media (max-width: 900px) {
  .about { grid-template-columns: 1fr; gap: 3rem; }
  .about-photo { max-width: 420px; margin: 0 auto; width: 100%; }
}

/* ---- Ventures --------------------------------------------- */
.ventures-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}
.venture-card {
  position: relative;
  padding: 2.5rem 2rem;
  background: var(--bg-1);
  border: 1px solid var(--border);
  overflow: hidden;
  cursor: none;
  transform-style: preserve-3d;
  transition: border-color 0.4s ease, background 0.4s ease;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  will-change: transform;
}
@media (max-width: 768px) { .venture-card { cursor: pointer; } }
.venture-card::before {
  content: '';
  position: absolute;
  top: -1px; left: -1px; right: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.venture-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(600px circle at var(--mx,50%) var(--my,50%), rgba(201,168,76,0.12), transparent 40%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.venture-card:hover {
  border-color: rgba(201,168,76,0.4);
  background: var(--bg-2);
}
.venture-card:hover::before, .venture-card:hover::after { opacity: 1; }
.venture-num {
  font-family: var(--serif);
  font-size: 0.875rem;
  color: var(--gold);
  letter-spacing: 0.15em;
  margin-bottom: 1.5rem;
}
.venture-name {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 500;
  line-height: 1.1;
  margin: 0 0 1rem;
  color: var(--text);
}
.venture-desc {
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}
.venture-arrow {
  align-self: flex-end;
  margin-top: 1.5rem;
  color: var(--gold);
  font-size: 1.25rem;
  opacity: 0.5;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.venture-card:hover .venture-arrow { opacity: 1; transform: translate(3px,-3px); }

/* ---- Numbers --------------------------------------------- */
.numbers {
  background: linear-gradient(180deg, transparent, var(--bg-1) 50%, transparent);
  padding: 8rem 3rem;
  margin: 0;
  max-width: 100%;
}
.numbers-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.numbers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 4rem;
}
.number-block {
  text-align: center;
  position: relative;
  padding: 2rem 1rem;
}
.number-block:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 20%; right: -1rem;
  width: 1px; height: 60%;
  background: var(--border);
}
.number-value {
  font-family: var(--serif);
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 400;
  color: var(--gold);
  line-height: 1;
  letter-spacing: -0.02em;
  display: block;
  margin-bottom: 1rem;
}
.number-label {
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-dim);
}
@media (max-width: 900px) {
  .numbers-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .number-block:not(:last-child)::after { display: none; }
  .number-block { border-bottom: 1px solid var(--border); }
}
@media (max-width: 768px) {
  .numbers { padding: 5rem 1.5rem; }
}

/* ---- Contact --------------------------------------------- */
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}
.contact-text p {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text-dim);
  max-width: 480px;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.contact-form label {
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.field { display: flex; flex-direction: column; }
.field input, .field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  padding: 0.85rem 0;
  font-size: 1rem;
  font-family: var(--sans);
  outline: none;
  resize: none;
  transition: border-color 0.3s ease;
}
.field input:focus, .field textarea:focus { border-bottom-color: var(--gold); }
.field textarea { min-height: 120px; }
.contact-form .btn-primary {
  align-self: flex-start;
  margin-top: 1.5rem;
  opacity: 1;
  animation: none;
}
.form-status {
  margin-top: 1rem;
  padding: 1rem 1.25rem;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
}
.form-status.success {
  background: var(--gold-faint);
  border-left: 2px solid var(--gold);
  color: var(--gold);
}
.form-status.error {
  background: rgba(255, 99, 71, 0.08);
  border-left: 2px solid #ff6347;
  color: #ff8a72;
}
@media (max-width: 900px) {
  .contact { grid-template-columns: 1fr; gap: 3rem; }
}

/* ---- Footer ---------------------------------------------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 3rem;
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.footer-meta {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.footer-links {
  display: flex;
  gap: 2rem;
}
.footer-links a {
  font-size: 0.875rem;
  color: var(--text-dim);
  transition: color 0.3s ease;
}
.footer-links a:hover { color: var(--gold); }
@media (max-width: 768px) { .footer { padding: 2rem 1.5rem; } }
