/* Itay Binyamin - personal editorial theme */
:root {
  --bg: #faf6ef;
  --bg2: #f2ebdd;
  --card: #ffffff;
  --border: #e3d9c6;
  --text: #1c1917;
  --muted: #6f6558;
  --accent: #d9481c;
  --accent-soft: rgba(217, 72, 28, 0.08);
  --radius: 20px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
h1, h2, h3, .serif { font-family: var(--serif); font-weight: 600; letter-spacing: -0.015em; }

/* Header */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(250, 246, 239, 0.88);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 1180px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--serif); font-weight: 700; font-size: 20px; }
.brand img { width: 38px; height: 38px; border-radius: 10px; }
.main-nav { display: flex; gap: 30px; }
.main-nav a { color: var(--muted); font-weight: 500; font-size: 15px; transition: color 0.2s; }
.main-nav a:hover, .main-nav a.active { color: var(--text); }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--text); color: var(--bg); font-weight: 600; font-size: 15px;
  padding: 13px 26px; border-radius: 999px; border: none; cursor: pointer;
  transition: transform 0.15s, background 0.15s; font-family: var(--sans);
}
.btn:hover { transform: translateY(-2px); background: #000; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: #b93a15; }
.btn-ghost { background: transparent; color: var(--text); border: 1.5px solid var(--border); }
.btn-ghost:hover { border-color: var(--text); background: transparent; transform: translateY(-2px); }
.nav-toggle { display: none; background: none; border: 1.5px solid var(--border); border-radius: 10px; color: var(--text); font-size: 20px; padding: 8px 12px; cursor: pointer; }

/* Hero - massive modern */
.hero { padding: 140px 0 60px; position: relative; overflow: hidden; }
.hero-massive { position: relative; }
.hero-massive h1 {
  font-size: clamp(64px, 13vw, 168px);
  line-height: 0.94;
  letter-spacing: -0.035em;
  font-weight: 700;
  position: relative;
  z-index: 2;
}
.hero-massive h1 em { font-style: italic; font-weight: 400; }
.hero-massive h1 .outline {
  color: transparent;
  -webkit-text-stroke: 2px var(--text);
}
.hero-photo-cut {
  position: absolute;
  right: 2%;
  top: -30px;
  width: clamp(220px, 30vw, 420px);
  z-index: 1;
  transform: rotate(3deg);
}
.hero-photo-cut .frame {
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 40px 80px rgba(28, 25, 23, 0.18);
  background: var(--bg2);
}
.hero-sub {
  display: flex;
  gap: 40px;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: 48px;
  flex-wrap: wrap;
  position: relative;
  z-index: 3;
}
.hero-sub p { font-size: 19px; color: var(--muted); max-width: 480px; }
.hero-sub p strong { color: var(--text); }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

/* Marquee */
.marquee {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--text);
  color: var(--bg);
  overflow: hidden;
  white-space: nowrap;
  padding: 18px 0;
}
.marquee-track {
  display: inline-flex;
  gap: 0;
  animation: marquee 36s linear infinite;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.marquee-track span { padding: 0 28px; display: inline-flex; align-items: center; gap: 56px; }
.marquee-track .dot { color: var(--accent); font-size: 16px; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Numbered sections */
.sec-num {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.1em;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}
.sec-num::after { content: ""; flex: 1; height: 1px; background: var(--border); max-width: 120px; }

/* Manifesto */
.manifesto p {
  font-family: var(--serif);
  font-size: clamp(26px, 3.6vw, 44px);
  line-height: 1.32;
  max-width: 1000px;
}
.manifesto p em { font-style: italic; color: var(--accent); }
.manifesto .sig {
  margin-top: 34px;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--muted);
  font-weight: 600;
}

/* Split feature */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.split h2 { font-size: clamp(36px, 4.6vw, 60px); line-height: 1.05; margin-bottom: 22px; }
.split h2 em { font-style: italic; color: var(--accent); }
.split p { color: var(--muted); font-size: 18px; margin-bottom: 16px; }
.split p strong { color: var(--text); }
.fact-list { margin-top: 28px; border-top: 1px solid var(--border); }
.fact { display: flex; justify-content: space-between; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--border); gap: 20px; }
.fact b { font-family: var(--serif); font-size: 24px; font-weight: 600; white-space: nowrap; }
.fact span { color: var(--muted); font-size: 15.5px; text-align: right; }

/* Big CTA */
.cta-massive { padding: 110px 0; text-align: left; }
.cta-massive h2 { font-size: clamp(52px, 9vw, 130px); line-height: 0.98; letter-spacing: -0.03em; margin-bottom: 36px; }
.cta-massive h2 em { font-style: italic; color: var(--accent); }
.cta-massive .btn { font-size: 17px; padding: 18px 38px; }

/* Scroll animations */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.in { opacity: 1; transform: none; }
.stagger-child { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.in > .stagger-child, .stagger-child.in { opacity: 1; transform: none; }
/* hero load animation */
@keyframes heroUp { from { opacity: 0; transform: translateY(34px); } to { opacity: 1; transform: none; } }
.hero-massive h1 { animation: heroUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) both; }
.hero-photo-cut .frame { animation: heroUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both; }
.hero-sub { animation: heroUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both; }
.page-hero h1 { animation: heroUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) both; }
/* marquee is JS-driven now */
.marquee-track { animation: none; will-change: transform; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .stagger-child { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero-massive h1, .hero-photo-cut .frame, .hero-sub, .page-hero h1 { animation: none !important; }
}

/* Old hero styles retired */

/* Personal numbers */
.numbers { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg2); }
.numbers-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.num { padding: 36px 20px; text-align: center; border-left: 1px solid var(--border); }
.num:first-child { border-left: none; }
.num b { display: block; font-family: var(--serif); font-size: clamp(30px, 3.6vw, 44px); font-weight: 600; }
.num b .accent { color: var(--accent); }
.num span { color: var(--muted); font-size: 14px; }

/* Sections */
.section { padding: 90px 0; }
.section-head { max-width: 700px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(34px, 4.4vw, 52px); line-height: 1.08; margin-bottom: 16px; }
.section-head h2 em { font-style: italic; color: var(--accent); }
.section-head p { color: var(--muted); font-size: 18px; }

/* Story */
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.story-block h3 { font-size: 26px; margin-bottom: 12px; }
.story-block p { color: var(--muted); font-size: 17px; margin-bottom: 14px; }
.story-block p strong { color: var(--text); }

/* Life cards */
.life-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.life-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 34px 30px; transition: transform 0.2s, box-shadow 0.2s;
}
.life-card:hover { transform: translateY(-5px); box-shadow: 0 18px 40px rgba(28, 25, 23, 0.08); }
.life-card .icon { font-size: 34px; margin-bottom: 16px; }
.life-card h3 { font-size: 23px; margin-bottom: 10px; }
.life-card p { color: var(--muted); font-size: 15.5px; }

/* Pull quote */
.pull-quote { text-align: center; max-width: 860px; margin: 0 auto; padding: 20px 0; }
.pull-quote blockquote { font-family: var(--serif); font-size: clamp(30px, 4.6vw, 54px); line-height: 1.2; font-style: italic; }
.pull-quote blockquote .accent { color: var(--accent); font-style: italic; }
.pull-quote cite { display: block; margin-top: 22px; font-style: normal; font-family: var(--sans); color: var(--muted); font-size: 15px; font-weight: 600; }

/* Book */
.book-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 60px; align-items: center; background: var(--text); border-radius: 28px; padding: 64px; color: var(--bg); }
.book-grid .eyebrow { color: var(--accent); }
.book-grid h2 { font-size: clamp(32px, 4vw, 48px); color: #fff; margin-bottom: 18px; line-height: 1.1; }
.book-grid p { color: #b8b0a4; font-size: 17px; margin-bottom: 16px; }
.book-cover {
  background: linear-gradient(150deg, #2a2521, #1c1917);
  border: 1px solid #3a342c; border-radius: 14px; padding: 54px 40px; text-align: center;
  box-shadow: 0 30px 60px rgba(0,0,0,0.35);
}
.book-cover .kicker { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.book-cover h3 { font-size: 44px; color: #fff; margin: 14px 0 6px; line-height: 1.05; }
.book-cover p { color: #b8b0a4; font-size: 15px; font-style: italic; font-family: var(--serif); }

/* Category pills */
.pills { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 32px; }
.pill {
  padding: 11px 22px; border-radius: 999px; border: 1.5px solid var(--border);
  background: var(--card); color: var(--muted); font-weight: 600; font-size: 14px; cursor: pointer;
  transition: all 0.2s; font-family: var(--sans);
}
.pill:hover { color: var(--text); border-color: var(--text); }
.pill.active { background: var(--text); color: var(--bg); border-color: var(--text); }

/* Carousel */
.carousel-wrap { position: relative; }
.carousel {
  display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 6px 4px 24px; scrollbar-width: none; cursor: grab;
}
.carousel::-webkit-scrollbar { display: none; }
.carousel.dragging { scroll-snap-type: none; cursor: grabbing; }
.v-card {
  flex: 0 0 340px; scroll-snap-align: start;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: transform 0.2s, box-shadow 0.2s;
  display: flex; flex-direction: column;
}
.v-card:hover { transform: translateY(-6px); box-shadow: 0 20px 44px rgba(28, 25, 23, 0.1); }
.v-shot { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--bg2); }
.v-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 0.4s; }
.v-card:hover .v-shot img { transform: scale(1.04); }
.v-tag {
  position: absolute; top: 12px; left: 12px; font-size: 12px; font-weight: 700;
  padding: 6px 13px; border-radius: 999px; background: rgba(255,255,255,0.92);
  backdrop-filter: blur(6px); border: 1px solid var(--border); font-family: var(--sans);
}
.v-body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.v-body h3 { font-size: 21px; }
.v-body p { color: var(--muted); font-size: 14.5px; flex: 1; font-family: var(--sans); }
.v-link { display: inline-flex; align-items: center; gap: 7px; color: var(--accent); font-weight: 700; font-size: 14.5px; margin-top: 8px; font-family: var(--sans); transition: gap 0.2s; }
.v-link:hover { gap: 12px; }
.car-nav { display: flex; gap: 10px; align-items: center; margin-top: 8px; }
.car-btn {
  width: 50px; height: 50px; border-radius: 50%; border: 1.5px solid var(--border);
  background: var(--card); color: var(--text); font-size: 20px; cursor: pointer; transition: all 0.2s;
}
.car-btn:hover { border-color: var(--text); background: var(--text); color: var(--bg); }
.car-dots { display: flex; gap: 8px; margin-left: 10px; }
.car-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--border); transition: all 0.2s; }
.car-dots i.on { background: var(--accent); width: 28px; border-radius: 99px; }

/* Network web */
.net-section { background: var(--bg2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.net-layout { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 50px; align-items: center; }
.net-layout h2 { font-size: clamp(32px, 4vw, 48px); line-height: 1.1; margin-bottom: 18px; }
.net-layout h2 em { font-style: italic; color: var(--accent); }
.net-layout p { color: var(--muted); font-size: 17px; margin-bottom: 14px; }
.net-wrap { position: relative; display: flex; justify-content: center; }
.net-web { width: 100%; max-width: 540px; height: auto; }
.net-node { cursor: pointer; }
.net-node .node-bg { filter: drop-shadow(0 3px 8px rgba(28, 25, 23, 0.14)); transition: transform 0.22s ease; transform-box: fill-box; transform-origin: center; }
.net-node .node-ring { transition: transform 0.22s ease; transform-box: fill-box; transform-origin: center; }
.net-node:hover .node-bg, .net-node:hover .node-ring { transform: scale(1.18); }
.net-node image { pointer-events: none; }
.net-node text.node-fallback { pointer-events: none; }
.net-link { stroke: #d8cdb8; stroke-width: 1.2; }
.net-tip {
  position: absolute; pointer-events: none; background: var(--text); color: var(--bg);
  padding: 10px 16px; border-radius: 12px; font-size: 13px; font-weight: 600; white-space: nowrap;
  opacity: 0; transition: opacity 0.15s; z-index: 5; transform: translate(-50%, -145%);
  text-align: center; line-height: 1.35; box-shadow: 0 8px 24px rgba(28,25,23,0.2);
}
.net-tip b { display: block; font-size: 14px; }
.net-tip span { font-size: 11px; font-weight: 500; opacity: 0.75; text-transform: uppercase; letter-spacing: 0.08em; }
.net-legend { display: flex; gap: 18px; margin-top: 20px; flex-wrap: wrap; font-size: 13.5px; color: var(--muted); }
.net-legend span { display: flex; align-items: center; gap: 7px; }
.net-legend i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }

/* Social icons */
.socials { display: flex; gap: 12px; }
.socials a {
  width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--border);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--muted); transition: all 0.2s; background: var(--card);
}
.socials a svg { display: block; }
.socials a:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

/* Venture grid (my-ventures page) */
.v-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.v-grid .v-card { flex: none; }
.cat-title { display: flex; align-items: center; gap: 12px; margin: 60px 0 28px; }
.cat-title:first-of-type { margin-top: 0; }
.cat-title i { width: 12px; height: 12px; border-radius: 50%; }
.cat-title h3 { font-size: 27px; }
.cat-title span { color: var(--muted); font-size: 14px; font-family: var(--sans); }

/* FAQ */
.faq { max-width: 800px; }
.faq-item { border: 1px solid var(--border); border-radius: 16px; margin-bottom: 12px; overflow: hidden; background: var(--card); }
.faq-q { width: 100%; background: none; border: none; color: var(--text); font-family: var(--serif); font-size: 19px; font-weight: 600; text-align: left; padding: 22px 24px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-q .x { color: var(--accent); font-size: 26px; font-weight: 400; flex-shrink: 0; transition: transform 0.25s; font-family: var(--sans); }
.faq-item.open .faq-q .x { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-a p { padding: 0 24px 24px; color: var(--muted); font-size: 16px; }

/* CTA banner */
.cta-banner {
  background: var(--text); border-radius: 28px;
  padding: 70px 48px; text-align: center; position: relative; overflow: hidden; color: var(--bg);
}
.cta-banner h2 { font-size: clamp(32px, 4.4vw, 52px); color: #fff; margin-bottom: 16px; line-height: 1.08; }
.cta-banner h2 em { font-style: italic; color: var(--accent); }
.cta-banner p { color: #b8b0a4; font-size: 18px; margin-bottom: 32px; }
.cta-banner .btn { background: var(--accent); color: #fff; }
.cta-banner .btn:hover { background: #b93a15; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: var(--bg2); padding: 60px 0 30px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 44px; }
.footer-grid h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); margin-bottom: 16px; font-family: var(--sans); }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid ul a { color: var(--muted); font-size: 15px; }
.footer-grid ul a:hover { color: var(--accent); }
.footer-brand p { color: var(--muted); font-size: 15px; margin-top: 12px; max-width: 320px; }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 24px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: 13.5px; }
.footer-bottom a { color: var(--accent); font-weight: 600; }

/* Page hero (inner pages) */
.page-hero { padding: 150px 0 56px; text-align: center; }
.page-hero h1 { font-size: clamp(40px, 5.4vw, 68px); line-height: 1.04; margin-bottom: 18px; }
.page-hero h1 em { font-style: italic; color: var(--accent); }
.page-hero p { color: var(--muted); font-size: 19px; max-width: 640px; margin: 0 auto; }

/* Responsive */
@media (max-width: 960px) {
  .hero-massive h1 { font-size: clamp(56px, 17vw, 96px); }
  .hero-photo-cut { position: relative; right: auto; top: auto; width: min(320px, 70vw); margin: 36px 0 0; transform: rotate(-2deg); }
  .hero-sub { flex-direction: column; align-items: flex-start; gap: 24px; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .book-grid { grid-template-columns: 1fr; padding: 44px 30px; }
  .numbers-grid { grid-template-columns: repeat(2, 1fr); }
  .num:nth-child(3) { border-left: none; }
  .num { border-top: 1px solid var(--border); }
  .num:nth-child(-n+2) { border-top: none; }
  .v-grid, .life-grid { grid-template-columns: repeat(2, 1fr); }
  .main-nav { display: none; }
  .nav-toggle { display: block; }
  .main-nav.mobile-open {
    display: flex; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; background: var(--bg); border-bottom: 1px solid var(--border);
    padding: 12px 24px 20px; gap: 4px;
  }
  .main-nav.mobile-open a { padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 16px; }
  .header-cta { display: none; }
}
@media (max-width: 620px) {
  .v-grid, .life-grid { grid-template-columns: 1fr; }
  .v-card { flex-basis: 300px; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-banner { padding: 48px 28px; }
}
