
:root {
  --navy:#0b1e3a;
  --deep:#000512;
  --blue:#4188da;
  --pale:#f2f4f7;
  --line:#c5c6ce;
  --text:#191c1e;
}
* { box-sizing:border-box; }
html { scroll-behavior:smooth; }
body {
  margin:0;
  background:#f7f9fc;
  color:var(--navy);
  font-family: Arial, "Noto Sans Hebrew", sans-serif;
}
.site-brand-showcase {
  display:block;
  padding:28px clamp(18px,4vw,56px);
  background:#17191b;
  text-decoration:none;
}
.site-brand-showcase img {
  display:block;
  width:min(100%, 1380px);
  height:auto;
  margin:0 auto;
  border-radius:clamp(20px,3vw,46px);
  box-shadow:0 24px 60px rgba(0,5,18,.38);
}
.site-brand-showcase:focus-visible {
  outline:3px solid #70b7ff;
  outline-offset:-7px;
}
.site-header {
  height:118px;
  display:flex;
  flex-direction:row;
  direction:ltr;
  align-items:center;
  padding:0 42px;
  background:rgba(255,255,255,.96);
  position:relative;
  z-index:5;
}
.brand {
  order:2;
  margin-left:0;
  margin-right:0;
  text-align:right;
  min-width:300px;
}
.brand-name {
  font-family:Georgia,"Times New Roman",serif;
  font-size:45px;
  line-height:1;
  font-weight:700;
  letter-spacing:-1px;
  color:#0b1e3a;
}
.llm {
  font-family:Arial,"Noto Sans Hebrew",sans-serif;
  font-size:.58em;
  font-weight:600;
  letter-spacing:.15px;
}
.brand-tag {
  margin-top:10px;
  font-size:15px;
  letter-spacing:.3px;
  color:#595f66;
}
nav {
  order:1;
  display:flex;
  margin-right:auto;
  align-items:center;
  gap:42px;
  direction:rtl;
}
nav a {
  color:#0b1e3a;
  text-decoration:none;
  font-size:17px;
  white-space:nowrap;
}
nav a:hover {color:#4188da}

.hero {
  min-height:675px;
  position:relative;
  overflow:hidden;
  display:flex;
  align-items:stretch;
  background:radial-gradient(circle at 36% 44%, rgba(214,235,255,.92) 0%, rgba(238,247,255,.92) 34%, rgba(250,252,255,.98) 68%, #ffffff 100%);
}
.hero::after {
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(90deg,rgba(255,255,255,.05),rgba(255,255,255,.18));
  pointer-events:none;
}
.tech {
  position:absolute; left:0; top:0; width:54%; height:100%;
  background-image:url("../images/site-visual.webp");
  background-size:cover; background-position:left center; background-repeat:no-repeat;
  opacity:1; z-index:1;
}
.tech::after {
  content:""; position:absolute; inset:0;
  background:linear-gradient(90deg,rgba(255,255,255,0) 45%,rgba(247,251,255,.28) 72%,rgba(250,252,255,.92) 100%),linear-gradient(180deg,rgba(255,255,255,.08),rgba(255,255,255,0) 45%,rgba(255,255,255,.12));
  pointer-events:none;
}
.hero-content {
  width:50%;
  margin-left:auto;
  padding:92px 54px 65px 48px;
  position:relative;
  z-index:2;
  text-align:right;
}
.hero {
  position:relative;
}
.focus-card {
  position:relative;
}
.focus-card::before,
.focus-card::after {
  content:"";
  position:absolute;
  width:12px;
  height:12px;
  border-color:rgba(36,79,125,.35);
  border-style:solid;
  border-width:0;
  pointer-events:none;
}
.focus-card::before {
  top:8px; right:8px;
  border-top-width:1.5px; border-right-width:1.5px;
}
.focus-card::after {
  bottom:8px; left:8px;
  border-bottom-width:1.5px; border-left-width:1.5px;
}
.hero h1 {
  margin:0;
  font-family:Georgia,"Times New Roman",serif;
  font-size:67px;
  line-height:1.18;
  font-weight:700;
  letter-spacing:-2px;
  color:#0b1e3a;
}
.lead {
  margin:30px 0 0;
  font-size:23px;
  line-height:1.65;
  color:#004883;
}
.sub {
  margin-top:42px;
  font-size:20px;
  line-height:1.7;
  color:#595f66;
}
.cta {
  margin-top:40px;
  width:278px;
  height:65px;
  border-radius:5px;
  background:linear-gradient(135deg,#4188da,#004883);
  color:white;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:22px;
  text-decoration:none;
  font-size:21px;
  box-shadow:0 10px 22px rgba(11,30,58,.22);
}
.doc {
  font-size:27px;
  line-height:1;
}

.scroll {
  position:absolute;
  bottom:12px;
  left:50%;
  transform:translateX(-50%);
  width:26px;
  height:47px;
  border:1.5px solid #595f66;
  border-radius:16px;
  display:flex;
  justify-content:center;
  align-items:center;
  z-index:3;
  background:rgba(255,255,255,.35);
}
.scroll span {font-size:20px;line-height:1}

.focus {
  position:relative;
  z-index:4;
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:25px;
  padding:30px 55px 34px;
  background:rgba(248,252,255,.94);
  border-top:1px solid #e0e3e6;
}
.focus-card {
  text-align:center;
  color:#0b1e3a;
  min-height:180px;
}
.icon {
  height:58px;
  display:flex;
  justify-content:center;
  align-items:center;
  margin-bottom:10px;
  color:#0b1e3a;
  font-size:46px;
}
.focus h3 {
  margin:0 0 12px;
  font-size:17px;
}
.focus p {
  margin:0 auto;
  max-width:180px;
  font-size:14px;
  line-height:1.75;
  color:#595f66;
}
.focus .bar {
  width:36px;
  height:1.5px;
  background:#4188da;
  margin:17px auto 0;
}

@media(max-width:1050px) {
  nav {gap:20px}
  .site-header {padding:0 25px}
  .hero-content {padding-right:35px}
  .hero h1 {font-size:53px}
  .focus {padding-left:25px;padding-right:25px}
}
@media(max-width:760px) {
  .site-brand-showcase {
    padding:14px 12px;
  }
  .site-brand-showcase img {
    border-radius:18px;
    box-shadow:0 14px 32px rgba(0,5,18,.32);
  }
  .browser {width:100%;margin:0;border-radius:0}
  .browserbar {height:40px}
  .site-header {
    height:auto;
    padding:22px 20px;
    flex-direction:column;
    gap:20px;
  }
  .brand {margin:0;text-align:center}
  .brand-name {font-size:36px}
  nav {flex-wrap:wrap;justify-content:center;gap:15px 25px}
  .hero {min-height:760px}
  .tech {
    width:100%;height:48%;
    top:0;opacity:.8;
  }
  .hero-content {
    width:100%;
    padding:380px 28px 70px;
    text-align:right;
    background:linear-gradient(180deg,transparent 0%,rgba(247,251,255,.78) 42%,rgba(247,251,255,.96) 65%);
  }
  .hero h1 {font-size:44px;letter-spacing:-1px}
  .lead {font-size:19px}
  .sub {font-size:17px}
  .cta {width:100%}
  .focus {grid-template-columns:1fr 1fr;padding:28px 18px}
}

/* Explicit RTL/LTR ordering for the mixed Hebrew-English title */
.brand-name {
  display:flex;
  direction:rtl;
  flex-direction:row;
  align-items:baseline;
  justify-content:flex-start;
  gap:.18em;
  white-space:nowrap;
}
.brand-name .credentials {
  display:inline-flex;
  direction:rtl;
  flex-direction:row;
  align-items:baseline;
  gap:0;
  font-family:Arial,"Noto Sans Hebrew",sans-serif;
  font-size:.56em;
  font-weight:600;
  letter-spacing:.1px;
}
.brand-name .degree {
  direction:ltr;
  unicode-bidi:isolate;
  display:inline-block;
  font-size:.76em;
  font-weight:500;
  letter-spacing:.02em;
  vertical-align:baseline;
  position:relative;
  left:-8px;
}

/* ===== Final design refinement ===== */
:root {
  --brand:#0b1e3a;
  --brand-strong:#000512;
  --brand-mid:#4188da;
  --brand-soft:#f2f4f7;
  --surface:#FFFFFF;
  --surface-glass:rgba(255,255,255,.76);
  --text-main:#191c1e;
  --text-muted:#595f66;
  --border:rgba(89,95,102,.22);
  --shadow:0 14px 36px rgba(15,47,82,.10);
}
body { background:#f7f9fc; color:var(--text-main); }

::selection { background:#4188da; color:#ffffff; }
::-moz-selection { background:#4188da; color:#ffffff; }

a:focus-visible, button:focus-visible, .nav-dropdown-trigger:focus-visible {
  outline:2.5px solid #4188da;
  outline-offset:3px;
  border-radius:3px;
}
.browser {
  width:100%; max-width:none; margin:0; border:0; border-radius:0;
  overflow:hidden; background:var(--surface); box-shadow:none;
}
.browserbar { display:none; }
.site-header {
  height:108px; padding:0 clamp(24px,5vw,72px); border-bottom:1px solid var(--border);
  box-shadow:0 5px 22px rgba(15,47,82,.055);
}
.brand-name { color:var(--brand); }
.brand-tag, nav a { color:var(--brand); }
nav a { position:relative; transition:color .2s ease; }
nav a::after {
  content:""; position:absolute; right:0; bottom:-8px; width:0; height:2px;
  background:var(--brand-mid); transition:width .2s ease;
}
nav a:hover { color:var(--brand-mid); }
nav a:hover::after { width:100%; }
nav a.is-active { color:var(--brand-mid); }
nav a.is-active::after { width:100%; }
.back-to-top {
  position:fixed; left:20px; bottom:20px; z-index:60;
  width:40px; height:40px; border-radius:50%;
  background:var(--brand); color:#fff; border:1px solid rgba(255,255,255,.45);
  display:flex; align-items:center; justify-content:center;
  cursor:pointer; box-shadow:0 6px 16px rgba(11,30,58,.22);
  opacity:0; visibility:hidden; transform:translateY(10px);
  transition:opacity .25s ease, transform .25s ease, visibility .25s ease, background .2s ease;
}
.back-to-top.is-visible { opacity:1; visibility:visible; transform:translateY(0); }
.back-to-top:hover { background:var(--brand-mid); }
.back-to-top svg { width:18px; height:18px; }
@media (prefers-reduced-motion:reduce) {
  .back-to-top { transition:opacity .1s linear, visibility .1s linear; }
}
.nav-dropdown { position:relative; display:inline-block; }
.nav-dropdown-menu {
  position:absolute; top:calc(100% + 14px); right:-14px; min-width:220px;
  background:#fff; border:1px solid var(--border); border-radius:10px;
  box-shadow:0 16px 34px rgba(15,47,82,.14);
  padding:8px; opacity:0; visibility:hidden; transform:translateY(-6px);
  transition:opacity .18s ease, transform .18s ease, visibility .18s ease;
  text-align:right; z-index:50;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity:1; visibility:visible; transform:translateY(0);
}
.nav-dropdown-menu a {
  display:block; padding:10px 14px; border-radius:6px;
  font-size:14px; white-space:nowrap; color:var(--brand);
}
.nav-dropdown-menu a::after { content:none; }
.nav-dropdown-menu a:hover { background:rgba(15,74,157,.08); color:var(--brand-mid); }
@media(max-width:760px) {
  .nav-dropdown-menu { position:static; opacity:1; visibility:visible; transform:none; box-shadow:none; border:0; padding:0 0 0 14px; display:none; }
  .nav-dropdown.open .nav-dropdown-menu { display:block; }
}
.hero { border-bottom:1px solid var(--border); }
.hero h1 { color:var(--brand); }
.lead { color:var(--brand); }
.sub { color:var(--text-muted); }
.cta, #position a[href="#full-position"] {
  min-height:58px; border-radius:8px;
  background:linear-gradient(135deg,var(--brand-mid),var(--brand-strong)) !important;
  box-shadow:0 10px 24px rgba(15,47,82,.20) !important;
  transition:transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.cta:hover, #position a[href="#full-position"]:hover {
  transform:translateY(-2px); box-shadow:0 14px 30px rgba(15,47,82,.26) !important;
  filter:saturate(1.06);
}
.focus {
  gap:20px; padding:46px clamp(24px,5vw,72px) 50px;
  background:linear-gradient(180deg,#f7f9fc 0%,#eceef1 100%);
  border-top:0; border-bottom:1px solid var(--border);
}
.focus-card {
  min-height:205px; padding:26px 18px 22px; color:var(--brand);
  background:var(--surface-glass); border:1px solid var(--border); border-radius:16px;
  box-shadow:0 10px 28px rgba(15,47,82,.075); backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
  transition:transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.focus-card:hover {
  transform:translateY(-5px); border-color:rgba(36,79,125,.28);
  box-shadow:0 17px 38px rgba(15,47,82,.13);
}
.icon { height:54px; margin-bottom:14px; color:var(--brand-mid); }
.icon svg { width:42px; height:42px; stroke:currentColor; fill:none; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
.focus h3 { margin:0 0 11px; font-size:18px; color:var(--brand); }
.focus p { color:var(--text-muted); font-size:14px; line-height:1.7; }
.focus .bar { width:42px; height:2px; margin-top:18px; background:var(--brand-mid); border-radius:2px; }
#position {
  padding-top:88px !important; padding-bottom:92px !important;
  background:linear-gradient(180deg,#fff 0%,#f2f4f7 100%) !important;
  border-top:1px solid rgba(23,59,99,.07);
}
#position h2 { color:var(--brand) !important; }
#position p { color:var(--text-muted) !important; }
.brand-name .person-name { font-family:Georgia,"Times New Roman",serif; font-weight:700; }
.brand-name .credentials { color:var(--brand); font-size:.54em; font-weight:500; }
.brand-name .degree { color:var(--brand); }
@media(max-width:760px) {
  .site-header { min-height:148px; height:auto; }
  .focus { grid-template-columns:1fr; }
  .focus-card { min-height:auto; }
}


/* Refinements: sticky header, shorter hero, unified radii, narrower reading column */
.site-header {
  position:sticky;
  top:0;
  z-index:100;
  background:rgba(255,255,255,.88);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
}
.hero { min-height:590px; }
.cta, #position a[href="#full-position"], .focus-card { border-radius:12px !important; }
#position > div { max-width:780px !important; }
@media(max-width:760px) {
  .site-header { position:relative; }
  .hero { min-height:700px; }
  #position > div { max-width:100% !important; }
}
