/* Roee Sharf — premium personal brand. Distinct identity from Site A. */
:root {
  --ink: #0b1220;
  --ink-soft: #33415a;
  --muted: #6b7891;
  --line: #e5eaf1;
  --bg: #ffffff;
  --bg-soft: #f5f9f8;
  --accent: #0e9c7f;        /* vivid emerald */
  --accent-2: #0a6f5c;
  --accent-3: #12b981;
  --gold: #c8912f;
  --gold-soft: #f0e0be;
  --radius: 16px;
  --shadow-sm: 0 1px 2px rgba(11,18,32,.06);
  --shadow: 0 6px 20px rgba(11,18,32,.08);
  --shadow-lg: 0 20px 48px rgba(11,18,32,.14);
  --maxw: 900px;
  --ease: cubic-bezier(.22,1,.36,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Heebo", "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--accent-2); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--accent); }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }

/* ---------- Header ---------- */
.hdr {
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.75);
  backdrop-filter: saturate(180%) blur(12px);
  position: sticky; top: 0; z-index: 30;
}
.hdr .wrap { display: flex; align-items: center; justify-content: space-between; padding: .75rem 1.25rem; }
.logo { display: flex; align-items: center; gap: .6rem; font-weight: 800; color: var(--ink); font-size: 1.05rem; }
.logo:hover { text-decoration: none; }
.logo .mark {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-3), var(--accent-2));
  color: #fff; display: grid; place-items: center; font-weight: 800; font-size: .9rem;
  box-shadow: 0 4px 12px rgba(14,156,127,.4);
  transition: transform .3s var(--ease);
}
.logo:hover .mark { transform: rotate(-8deg) scale(1.06); }
.nav { display: flex; gap: 1.3rem; }
.nav a { color: var(--ink-soft); font-weight: 600; font-size: .95rem; position: relative; }
.nav a::after {
  content: ""; position: absolute; right: 0; bottom: -4px; height: 2px; width: 0;
  background: var(--accent); border-radius: 2px; transition: width .28s var(--ease);
}
.nav a:hover { color: var(--accent); }
.nav a:hover::after { width: 100%; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(160deg, #eafaf5 0%, #f6fbfa 45%, #fff 100%);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(48px); opacity: .5; z-index: 0;
  animation: float 14s ease-in-out infinite;
}
.hero::before { width: 380px; height: 380px; background: radial-gradient(circle, #9be7d3, transparent 70%); top: -120px; left: -80px; }
.hero::after  { width: 320px; height: 320px; background: radial-gradient(circle, #f3e3b8, transparent 70%); bottom: -140px; right: -60px; animation-delay: -6s; }
@keyframes float {
  0%,100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(30px,-24px) scale(1.08); }
}
.hero .wrap {
  position: relative; z-index: 1;
  padding: 3.4rem 1.25rem 2.8rem;
  display: grid; grid-template-columns: 1fr 230px; gap: 2rem; align-items: center;
}
.hero .kicker {
  display: inline-block; color: var(--accent-2); font-weight: 700; letter-spacing: .03em;
  margin: 0 0 .7rem; padding: .3rem .8rem; background: rgba(14,156,127,.1);
  border: 1px solid rgba(14,156,127,.25); border-radius: 999px; font-size: .85rem;
}
.hero h1 {
  font-size: 3rem; margin: 0 0 .4rem; letter-spacing: -.03em; line-height: 1.1;
  background: linear-gradient(120deg, var(--ink) 30%, var(--accent-2) 75%, var(--accent) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero .role { font-size: 1.2rem; color: var(--ink-soft); margin: 0 0 1rem; font-weight: 700; }
.hero p.intro { color: var(--muted); margin: 0 0 1.4rem; font-size: 1.05rem; }
.hero .cta-row { display: flex; gap: .7rem; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: .5rem; font-weight: 700;
  padding: .7rem 1.3rem; border-radius: 11px; border: 1.5px solid var(--accent);
  color: var(--accent-2); background: #fff; transition: all .25s var(--ease);
}
.btn:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow); color: var(--accent); }
.btn.primary {
  background: linear-gradient(135deg, var(--accent-3), var(--accent-2)); color: #fff; border-color: transparent;
  box-shadow: 0 8px 20px rgba(14,156,127,.35);
}
.btn.primary:hover { color: #fff; box-shadow: 0 12px 26px rgba(14,156,127,.45); }

/* Portrait / monogram */
.portrait {
  width: 210px; height: 210px; border-radius: 26px; justify-self: center; position: relative;
  background: linear-gradient(145deg, var(--accent-3), var(--accent-2) 60%, #08594a);
  color: #fff; display: grid; place-items: center; box-shadow: var(--shadow-lg);
  overflow: hidden; animation: rise 1s var(--ease) both;
}
.portrait::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(130deg, rgba(255,255,255,.35), transparent 45%);
}
.portrait span { font-size: 4.2rem; font-weight: 800; letter-spacing: -.04em; position: relative; z-index: 1; }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
@keyframes rise { from { opacity: 0; transform: translateY(18px) scale(.96); } to { opacity: 1; transform: none; } }

/* ---------- Sections ---------- */
main .wrap { padding: 2.6rem 1.25rem 3.5rem; }
h2 {
  font-size: 1.65rem; margin: 2.6rem 0 1rem; letter-spacing: -.02em; position: relative; padding-bottom: .4rem;
}
h2::after {
  content: ""; position: absolute; right: 0; bottom: 0; width: 52px; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, var(--accent), var(--gold));
}
h2:first-child { margin-top: 0; }
h3 { font-size: 1.12rem; margin: 1.4rem 0 .4rem; }
p { margin: 0 0 1rem; }
.meta { color: var(--muted); font-size: .9rem; }

.lead {
  font-size: 1.15rem; color: var(--ink-soft);
  border: 1px solid rgba(14,156,127,.2);
  background: linear-gradient(120deg, #f0faf7, #fff);
  padding: 1.2rem 1.35rem; border-radius: var(--radius); margin: 0 0 1.6rem;
  box-shadow: var(--shadow-sm);
}

/* Stats */
.stats { display: flex; flex-wrap: wrap; gap: 1rem; margin: 1.6rem 0; }
.stat {
  flex: 1; min-width: 150px; padding: 1.1rem 1.2rem; border-radius: var(--radius);
  background: linear-gradient(160deg, #ffffff, #f4faf8); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.stat:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.stat .num {
  font-size: 2.1rem; font-weight: 800; line-height: 1;
  background: linear-gradient(120deg, var(--accent-2), var(--accent-3));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.stat .lbl { color: var(--muted); font-size: .92rem; margin-top: .35rem; }

/* Credential grid */
.creds { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.3rem 0; }
.cred {
  position: relative; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.15rem 1.25rem;
  background: #fff; box-shadow: var(--shadow-sm); overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.cred::before {
  content: ""; position: absolute; top: 0; right: 0; width: 3px; height: 100%;
  background: linear-gradient(180deg, var(--accent), var(--gold)); transform: scaleY(0); transform-origin: top;
  transition: transform .35s var(--ease);
}
.cred:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(14,156,127,.4); }
.cred:hover::before { transform: scaleY(1); }
.cred .k { font-size: .78rem; color: var(--accent-2); font-weight: 800; text-transform: uppercase; letter-spacing: .05em; margin: 0 0 .35rem; }
.cred h3 { margin: 0 0 .35rem; font-size: 1.08rem; }
.cred p { margin: 0; color: var(--muted); font-size: .96rem; }

/* Timeline */
.timeline { position: relative; border-right: 2px solid var(--line); padding-right: 1.4rem; margin: 1rem 0; }
.timeline .item { position: relative; margin-bottom: 1.6rem; }
.timeline .item::before {
  content: ""; position: absolute; right: -1.72rem; top: .55rem;
  width: 13px; height: 13px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 4px rgba(14,156,127,.18); transition: transform .3s var(--ease);
}
.timeline .item:hover::before { transform: scale(1.25); }
.timeline .item h3 { margin: 0 0 .2rem; }
.timeline .item .when { color: var(--gold); font-weight: 700; font-size: .85rem; margin: 0 0 .3rem; }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: .55rem; margin: .9rem 0 0; }
.chip {
  background: linear-gradient(135deg, #e6f6f1, #eef7f0); color: var(--accent-2); font-weight: 700; font-size: .88rem;
  padding: .4rem .85rem; border-radius: 999px; border: 1px solid rgba(14,156,127,.2);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.chip:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }

/* FAQ */
.faq dt { font-weight: 700; margin-top: 1.1rem; color: var(--ink); }
.faq dd { margin: .35rem 0 0; color: var(--ink-soft); }

/* Footer */
.ftr { border-top: 1px solid var(--line); background: linear-gradient(160deg, #0d1a22, #0b1220); color: #cbd5e1; margin-top: 2.5rem; }
.ftr .wrap { padding: 2rem 1.25rem; display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; align-items: center; }
.ftr a { color: #e2e8f0; }
.ftr a:hover { color: #fff; }
.ftr .fnav { display: flex; gap: 1.2rem; flex-wrap: wrap; }

.crumbs { font-size: .85rem; color: var(--muted); margin: 1.2rem 0 0; }
.crumbs a { color: var(--muted); }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .hero::before, .hero::after, .portrait { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

@media (max-width: 680px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .portrait { order: -1; width: 150px; height: 150px; }
  .portrait span { font-size: 3rem; }
  .hero h1 { font-size: 2.1rem; }
  .nav { display: none; }
  .creds { grid-template-columns: 1fr; }
}
