:root {
  --ink: #142130;
  --navy: #0b1724;
  --navy-2: #102537;
  --navy-3: #18384f;
  --cream: #f7f3eb;
  --paper: #ffffff;
  --soft: #edf3f6;
  --gold: #d3b36f;
  --gold-dark: #9d7c3d;
  --sky: #81c7ef;
  --muted: #63717d;
  --line: rgba(20,33,48,.12);
  --radius: 24px;
  --shadow: 0 20px 60px rgba(11,23,36,.11);
  --serif: "Libre Baskerville", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); line-height: 1.67; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; }
.wrap { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }
.section { padding: 100px 0; }
.section-soft { background: var(--soft); }
.section-dark { background: var(--navy); color: white; }
.skip-link { position: absolute; left: -9999px; top: 8px; }
.skip-link:focus { left: 8px; background: white; color: var(--navy); padding: 8px 12px; z-index: 1000; border-radius: 8px; }

.site-header { position: sticky; top: 0; z-index: 100; backdrop-filter: blur(15px); background: rgba(11,23,36,.89); border-bottom: 1px solid rgba(255,255,255,.08); }
.nav-wrap { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: white; text-decoration: none; font-weight: 700; }
.brand-mark { width: 39px; height: 39px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg,var(--gold),#f0ddab); position: relative; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }
.brand-name { letter-spacing: -.01em; }
.site-nav { display: flex; align-items: center; gap: 25px; }
.site-nav a { color: rgba(255,255,255,.80); text-decoration: none; font-size: .92rem; font-weight: 600; }
.site-nav a:hover { color: white; }
.nav-cta { border: 1px solid rgba(255,255,255,.22); border-radius: 999px; padding: 8px 14px; }
.nav-toggle { display: none; }

.hero { position: relative; padding: 90px 0 84px; overflow: hidden; }
.hero-pattern { position: absolute; inset: 0; opacity: .42; pointer-events: none; background-image: radial-gradient(circle at 72% 16%, rgba(129,199,239,.22), transparent 22%), radial-gradient(circle at 78% 48%, rgba(211,179,111,.11), transparent 31%), linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px); background-size: auto, auto, 42px 42px, 42px 42px; }
.hero::after { content:""; position:absolute; width:650px; height:650px; border:1px solid rgba(255,255,255,.06); border-radius:50%; right:-280px; top:-170px; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.08fr .92fr; gap: 68px; align-items: center; }
.hero h1, .section h2 { font-family: var(--serif); letter-spacing: -.035em; line-height: 1.17; }
.hero h1 { font-size: clamp(2.8rem, 5.8vw, 5.2rem); margin: 12px 0 24px; max-width: 790px; }
.hero-lead { color: rgba(255,255,255,.76); font-size: 1.15rem; max-width: 730px; }
.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: .75rem; font-weight: 700; color: var(--gold); margin: 0 0 10px; }
.eyebrow.dark { color: var(--gold-dark); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 47px; padding: 0 19px; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: .91rem; transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button.primary { background: var(--gold); color: var(--navy); box-shadow: 0 10px 30px rgba(211,179,111,.18); }
.button.ghost { border: 1px solid rgba(255,255,255,.18); color: white; }
.button.outline { border: 1px solid var(--line); color: var(--ink); background: white; }
.button.dark-outline { border: 1px solid rgba(255,255,255,.20); color: white; }
.button.light { background: white; color: var(--navy); }
.light-ghost { border-color: rgba(255,255,255,.28) !important; }
.quick-facts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.quick-facts span { color: rgba(255,255,255,.69); font-size: .81rem; border: 1px solid rgba(255,255,255,.10); border-radius: 999px; padding: 6px 10px; }

.hero-portrait { position: relative; width: min(430px, 94%); margin: 0 auto; }
.portrait-card { position: relative; border-radius: 32px 32px 76px 32px; overflow: hidden; border: 1px solid rgba(255,255,255,.10); box-shadow: 0 35px 90px rgba(0,0,0,.34); background: #203346; transform: rotate(1.1deg); }
.portrait-card img { width: 100%; height: auto; aspect-ratio: auto; object-fit: cover; object-position: center 36%; }
.portrait-gradient { position:absolute; inset:auto 0 0; height:42%; background:linear-gradient(transparent,rgba(5,14,22,.88)); }
.portrait-label { position:absolute; z-index:2; left:24px; right:24px; bottom:24px; display:flex; flex-direction:column; gap:3px; }
.portrait-label strong { font-family:var(--serif); font-size:1.05rem; }
.portrait-label span { font-size:.78rem; color:rgba(255,255,255,.73); }
.crescent-badge { position:absolute; width:104px; height:104px; right:-35px; top:-34px; background:rgba(211,179,111,.98); border-radius:50%; box-shadow:0 18px 40px rgba(0,0,0,.22); display:grid; place-items:center; transform:none; }
.portrait-orbit { position:absolute; width:115%; aspect-ratio:1; border:1px solid rgba(129,199,239,.18); border-radius:50%; left:-17%; top:8%; }
.orbit-dot { position:absolute; width:8px; height:8px; border-radius:50%; background:var(--sky); box-shadow:0 0 18px rgba(129,199,239,.7); }
.d1 { left:4%; top:50%; }.d2 { right:13%; top:2%; background:var(--gold); }.d3 { right:-1%; bottom:25%; width:5px; height:5px; }

.about-grid, .professional-grid { display: grid; grid-template-columns: 1.07fr .93fr; gap: 68px; align-items: center; }
.section h2 { font-size: clamp(2.1rem, 4.1vw, 3.5rem); margin: 8px 0 20px; }
.section-copy p, .family-copy p { color: #4c5a66; font-size: 1.02rem; }
.principles-card { background: linear-gradient(145deg,var(--navy-2),var(--navy)); color:white; border-radius: var(--radius); padding: 42px; box-shadow: var(--shadow); position:relative; overflow:hidden; }
.principles-card::after { content:""; position:absolute; width:220px; height:220px; border-radius:50%; border:1px solid rgba(255,255,255,.08); right:-80px; top:-80px; }
.card-kicker { text-transform:uppercase; letter-spacing:.14em; font-size:.72rem; color:var(--gold); font-weight:700; }
.principles-card h3 { font-family:var(--serif); font-size:1.8rem; line-height:1.25; margin:8px 0 14px; }
.principles-card > p:not(.card-kicker) { color:rgba(255,255,255,.72); }
.principle-line { display:flex; align-items:center; gap:15px; border-top:1px solid rgba(255,255,255,.10); padding:14px 0; }
.principle-line:first-of-type { margin-top:20px; }
.principle-line span { color:var(--gold); font-size:.72rem; font-weight:700; letter-spacing:.12em; }
.principle-line b { font-size:.9rem; }

.section-heading { max-width: 760px; margin-bottom: 44px; }
.section-heading p:last-child { color: var(--muted); }
.project-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.project-card { background: white; padding: 34px; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: 0 12px 40px rgba(11,23,36,.055); display: flex; flex-direction: column; min-height: 370px; position:relative; overflow:hidden; }
.project-card::after { content:""; position:absolute; width:150px; height:150px; border-radius:50%; right:-72px; bottom:-72px; opacity:.10; }
.project-moon::after { background:var(--sky); }.project-name::after { background:var(--gold); }.project-book::after { background:var(--navy-3); }
.project-card h3 { font-family: var(--serif); font-size: 1.55rem; margin: 8px 0 12px; }
.project-card p { color: var(--muted); }
.project-kicker { text-transform: uppercase; letter-spacing: .12em; font-size: .69rem; font-weight: 700; color: var(--gold-dark)!important; }
.project-topline { display:flex; align-items:center; justify-content:space-between; min-height:52px; margin-bottom:18px; }
.status { font-size:.68rem; text-transform:uppercase; letter-spacing:.09em; padding:6px 9px; border-radius:999px; font-weight:700; }
.status.live { background:#e6f5ed; color:#226744; }.status.developing { background:#fff4da; color:#7d5b17; }.status.published { background:#e8f1f7; color:#315d78; }
.moon-symbol {
  display: block;
  width: 37px;
  height: 37px;
  border-radius: 50%;
  background: var(--navy);
  position: relative;
  transform: rotate(248deg);
  transform-origin: center;
}

.moon-symbol::after {
  content: "";
  position: absolute;
  width: 37px;
  height: 37px;
  border-radius: 50%;
  background: white;
  left: 12px;
  top: -5px;
}
.hebrew-mark { font-family:Georgia,serif; font-weight:700; font-size:1.18rem; color:var(--navy); }
.small-book { width:42px; height:42px; border-radius:13px; display:grid; place-items:center; background:var(--navy); color:var(--gold); font-size:1.3rem; }
.text-link { margin-top: auto; padding-top: 18px; font-weight: 700; text-decoration: none; color: var(--navy); display:inline-flex; align-items:center; gap:8px; }
.text-link span { transition:transform .2s ease; }.text-link:hover span { transform:translateX(4px); }

.book-section { background: var(--navy); color: white; overflow:hidden; }
.book-grid { display: grid; grid-template-columns: .78fr 1.22fr; gap: 78px; align-items: center; }
.book-copy p { color: rgba(255,255,255,.72); }
.book-copy .book-lead { color: white; font-size: 1.14rem; }
.book-visual { position:relative; padding:20px 0 28px; }
.book-glow { position:absolute; width:360px; height:360px; border-radius:50%; background:radial-gradient(circle,rgba(129,199,239,.16),transparent 68%); left:50%; top:48%; transform:translate(-50%,-50%); filter:blur(10px); }
.real-book-cover { position:relative; width:min(330px,88%); height:auto; object-fit:contain; margin:0 auto; border-radius:7px 13px 13px 7px; box-shadow:18px 20px 0 #071019, 0 36px 80px rgba(0,0,0,.43); transform:perspective(1000px) rotateY(-4deg) rotateZ(-1deg); }
.book-points { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin-top: 24px; }
.book-points span { border: 1px solid rgba(255,255,255,.12); border-radius: 12px; padding: 10px 12px; color: rgba(255,255,255,.80); font-size: .87rem; }

.skill-stack { display: grid; gap: 11px; }
.skill-stack div { border: 1px solid var(--line); border-radius: 17px; padding: 17px 19px; background: white; box-shadow: 0 8px 28px rgba(11,23,36,.04); display:flex; gap:16px; align-items:flex-start; }
.skill-no { flex:0 0 auto; width:34px; height:34px; border-radius:50%; display:grid; place-items:center; background:var(--soft); color:var(--gold-dark); font-weight:700; font-size:.7rem; }
.skill-stack p { margin:0; }
.skill-stack strong { display: block; margin-bottom: 3px; }
.skill-stack small { color: var(--muted); font-size: .88rem; }

.family-layout { display:grid; grid-template-columns:.78fr 1.22fr; gap:62px; align-items:center; }
.family-copy { max-width:440px; }
.photo-collage { display:grid; grid-template-columns:1.6fr .9fr; grid-template-rows:repeat(2,minmax(0,1fr)); gap:14px; height:560px; }
.photo-collage figure { min-width:0; min-height:0; margin:0; position:relative; overflow:hidden; border-radius:22px; box-shadow:0 16px 45px rgba(11,23,36,.11); background:#d7e0e5; }
.photo-main { grid-row:1 / 3; }
.photo-collage img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.photo-main img { object-position:center; }.photo-small.top img { object-position:center; }.photo-small.bottom img { object-position:center 42%; }
.photo-collage figcaption { position:absolute; left:14px; bottom:14px; background:rgba(11,23,36,.78); color:white; padding:7px 10px; border-radius:999px; backdrop-filter:blur(8px); font-size:.73rem; }

.contact-section { background: linear-gradient(135deg,#15334a,#0b1724 70%); color:white; }
.contact-card { display:flex; align-items:center; justify-content:space-between; gap:40px; }
.contact-card h2 { max-width:760px; }
.contact-card p { color:rgba(255,255,255,.72); max-width:720px; }
.contact-actions { flex:0 0 auto; display:flex; gap:12px; flex-wrap:wrap; }
.site-footer { background:#071019; color:rgba(255,255,255,.64); padding:44px 0; }
.footer-grid { display:grid; grid-template-columns:1fr auto; gap:22px; align-items:start; }
.footer-grid strong { color:white; }
.footer-grid p { margin:5px 0 0; }
.footer-links { display:flex; flex-wrap:wrap; gap:18px; }
.footer-links a { color:rgba(255,255,255,.72); text-decoration:none; font-size:.9rem; }
.copyright { grid-column:1/-1; padding-top:18px; border-top:1px solid rgba(255,255,255,.08); font-size:.82rem; }

.reveal { opacity:0; transform:translateY(16px); transition:opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity:1; transform:none; }

@media (max-width: 980px) {
  .hero-grid, .about-grid, .professional-grid, .book-grid, .family-layout { grid-template-columns:1fr; }
  .hero-portrait { max-width:390px; margin-top:10px; }
  .project-grid { grid-template-columns:1fr; }
  .project-card { min-height:auto; }
  .book-visual { order:2; }
  .family-copy { max-width:760px; }
  .photo-collage { height:520px; }
}

@media (max-width: 900px) {
  .site-nav { display:none; position:absolute; top:72px; left:20px; right:20px; flex-direction:column; align-items:stretch; gap:0; padding:12px; background:#102131; border:1px solid rgba(255,255,255,.08); border-radius:16px; box-shadow:var(--shadow); }
  .site-nav.open { display:flex; }
  .site-nav a { padding:12px; }
  .nav-toggle { display:block; background:transparent; border:1px solid rgba(255,255,255,.2); color:white; border-radius:999px; padding:7px 12px; }
  .contact-card { align-items:flex-start; flex-direction:column; }
}

@media (max-width: 650px) {
  .wrap { width:min(100% - 28px,1160px); }
  .section { padding:74px 0; }
  .hero { padding:70px 0 58px; }
  .hero h1 { font-size:2.75rem; }
  .quick-facts { align-items:flex-start; flex-direction:column; }
  .principles-card, .project-card { padding:27px; }
  .book-points { grid-template-columns:1fr; }
  .photo-collage { grid-template-columns:1fr 1fr; grid-template-rows:330px 180px; height:auto; }
  .photo-main { grid-column:1 / 3; grid-row:1; }
  .photo-small.top { grid-column:1; grid-row:2; }.photo-small.bottom { grid-column:2; grid-row:2; }
  .footer-grid { grid-template-columns:1fr; }
  .copyright { grid-column:auto; }
  .brand-name { font-size:.93rem; }
}

@media (max-width: 420px) {
  .hero h1 { font-size:2.38rem; }
  .hero-portrait { width:88%; }
  .crescent-badge { width:84px; height:84px; right:-25px; }
  .photo-collage { grid-template-rows:280px 150px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior:auto; }
  .reveal { opacity:1; transform:none; transition:none; }
  .button, .text-link span { transition:none; }
}


/* Shared crescent and shofar mark; preserve its orientation and proportions. */
.brand-mark { flex-shrink:0; }
.crescent-badge { overflow:hidden; }
