/* ============================================================
   erezpaz.com — shared stylesheet (EN/LTR + HE/RTL)
   Uses CSS logical properties throughout so dir="rtl" flips
   the layout automatically. Direction-specific tweaks live
   under html[dir="rtl"].
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* surfaces */
  --ink-0: #07090d;   /* deepest: footer */
  --ink-1: #0c0f15;   /* base dark */
  --ink-2: #121722;   /* raised dark panel */
  --paper-1: #f4f1ea; /* warm light */
  --paper-2: #ece8df; /* alt light */

  /* text */
  --t-dark-1: #ede9e1;              /* primary on dark  */
  --t-dark-2: #99a4b2;              /* secondary on dark */
  --t-light-1: #15181e;             /* primary on light  */
  --t-light-2: #555b64;             /* secondary on light */

  /* accents */
  --copper: #c9824f;
  --copper-bright: #dd9a66;
  --copper-deep: #a05c2e;           /* accent on light surfaces */
  --wine: #6e2e3f;
  --wine-deep: #3d1a26;
  --sea: #1d3a4a;
  --sea-deep: #0f2430;

  /* lines */
  --line-dark: rgba(237, 233, 225, 0.1);
  --line-dark-strong: rgba(237, 233, 225, 0.22);
  --line-light: rgba(21, 24, 30, 0.14);

  /* type */
  --font-display: "Fraunces", "Frank Ruhl Libre", Georgia, serif;
  --font-body: "Inter", "Heebo", -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "Consolas", monospace;

  --track: 0.14em;                  /* eyebrow letter-spacing (Latin) */

  /* layout */
  --max-w: 1140px;
  --pad-x: clamp(1.25rem, 4vw, 2.5rem);
  --sec-y: clamp(4.5rem, 9vw, 8rem);
  --header-h: 4.5rem;
  --radius: 14px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Hebrew page: swap families, kill Latin tracking (Hebrew has no
   uppercase and letter-spacing degrades its rhythm).
   Rubik: rounded, modern, simple — per Erez's direction. */
html[lang="he"] {
  --font-display: "Rubik", "Heebo", -apple-system, "Segoe UI", sans-serif;
  --font-body: "Rubik", "Heebo", -apple-system, "Segoe UI", sans-serif;
  --track: 0;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-block-start: calc(var(--header-h) + 1rem);
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--t-dark-1);
  background: var(--ink-1);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
figure { margin: 0; }
a { color: inherit; }
p { margin: 0 0 1.1em; }
p:last-child { margin-block-end: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; }

::selection { background: var(--copper); color: var(--ink-1); }

/* Keep embedded Latin terms (AWS, VMware…) rendering correctly
   inside Hebrew sentences: isolate them and never break them
   across lines (a wrapped LTR fragment reads scrambled in RTL) */
bdi { unicode-bidi: isolate; }
html[dir="rtl"] span[dir="ltr"] {
  unicode-bidi: isolate;
  white-space: nowrap;
}

/* ---------- Utility ---------- */
.wrap {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.skip-link {
  position: absolute;
  inset-block-start: -100px;
  inset-inline-start: 1rem;
  z-index: 200;
  padding: 0.6rem 1rem;
  background: var(--copper);
  color: var(--ink-1);
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { inset-block-start: 1rem; }

:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Section eyebrow: mono index + label, precision motif */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-block-end: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: var(--track);
  text-transform: uppercase;
  color: var(--copper);
}
.eyebrow::after {
  content: "";
  flex: 0 0 2.5rem;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}
html[lang="he"] .eyebrow { font-family: var(--font-body); font-weight: 500; }
html[lang="he"] .eyebrow .idx { font-family: var(--font-mono); }

.sec-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
  font-weight: 500;
  margin-block-end: 1.4rem;
  text-wrap: balance;
}
html[lang="he"] .sec-title { letter-spacing: 0; line-height: 1.22; font-weight: 600; }

/* keep maqaf compounds (ו־AI, מ־25) on one line */
.nb { white-space: nowrap; }

.lede {
  font-size: clamp(1.0625rem, 1.6vw, 1.1875rem);
  color: var(--t-dark-2);
  max-width: 62ch;
}

/* Light sections */
.light { background: var(--paper-1); color: var(--t-light-1); }
.light .lede { color: var(--t-light-2); }
.light .eyebrow { color: var(--copper-deep); }
.light ::selection { background: var(--copper-deep); color: var(--paper-1); }

section { padding-block: var(--sec-y); }

/* ---------- Media placeholder (generic; specific layouts override) ---------- */
.media { position: relative; }
.media .media-ph {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  text-align: center;
  padding: 1.5rem;
}
.media .media-ph::before {
  content: "";
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 2px;
  transform: rotate(45deg);
  border: 2px solid rgba(237, 233, 225, 0.5);
}
.media .media-ph span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: rgba(237, 233, 225, 0.62);
  direction: ltr;
}
.media > img { position: relative; z-index: 1; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  line-height: 1;
  border: 1px solid transparent;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease),
              color 0.25s var(--ease), transform 0.25s var(--ease);
}
.btn:active { transform: translateY(1px); }

.btn-solid { background: var(--copper); color: #14100c; }
.btn-solid:hover { background: var(--copper-bright); }

.btn-ghost { border-color: var(--line-dark-strong); color: var(--t-dark-1); }
.btn-ghost:hover { border-color: var(--copper); color: var(--copper-bright); }

.light .btn-ghost { border-color: var(--line-light); color: var(--t-light-1); }
.light .btn-ghost:hover { border-color: var(--copper-deep); color: var(--copper-deep); }

.btn .arrow { transition: transform 0.25s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
html[dir="rtl"] .btn:hover .arrow { transform: translateX(-3px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease),
              backdrop-filter 0.35s var(--ease);
  border-block-end: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(12, 15, 21, 0.72);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-block-end-color: var(--line-dark);
}

.header-inner {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--t-dark-1);
  white-space: nowrap;
}
.brand .node {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 2px;
  background: var(--copper);
  transform: rotate(45deg);
  align-self: center;
}

.main-nav { display: flex; align-items: center; gap: 1.6rem; }
.main-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--t-dark-2);
  transition: color 0.2s;
  white-space: nowrap;
}
.main-nav a:hover, .main-nav a.active { color: var(--t-dark-1); }

.header-actions { display: flex; align-items: center; gap: 0.9rem; }

.lang-switch {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  text-decoration: none;
  color: var(--t-dark-2);
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.lang-switch:hover { color: var(--copper-bright); border-color: var(--copper); }
html[lang="he"] .lang-switch { font-family: var(--font-body); }

.icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  color: var(--t-dark-2);
  transition: color 0.2s, background 0.2s;
}
.icon-link:hover { color: var(--t-dark-1); background: rgba(237, 233, 225, 0.07); }
.icon-link svg { width: 1.15rem; height: 1.15rem; }

.btn-header { padding: 0.55rem 1.15rem; font-size: 0.875rem; }

/* Mobile nav */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0.5rem;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--t-dark-1);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .main-nav {
    position: fixed;
    inset-block-start: var(--header-h);
    inset-inline: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 1rem var(--pad-x) 2rem;
    background: rgba(9, 11, 16, 0.97);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    border-block-end: 1px solid var(--line-dark);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
  }
  .main-nav.open { transform: translateY(0); opacity: 1; visibility: visible; }
  .main-nav a {
    width: 100%;
    padding: 0.9rem 0;
    font-size: 1.1rem;
    border-block-end: 1px solid var(--line-dark);
  }
  .nav-toggle { display: flex; }
  .btn-header { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-block: calc(var(--header-h) + 3rem) 8rem;
  overflow: hidden;
  isolation: isolate;
}

/* backdrop: soft copper/steel glow + faint layered lines */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(56rem 34rem at 78% 18%, rgba(201, 130, 79, 0.13), transparent 62%),
    radial-gradient(44rem 30rem at 12% 88%, rgba(29, 58, 74, 0.35), transparent 65%),
    var(--ink-1);
}
html[dir="rtl"] .hero::before {
  background:
    radial-gradient(56rem 34rem at 22% 18%, rgba(201, 130, 79, 0.13), transparent 62%),
    radial-gradient(44rem 30rem at 88% 88%, rgba(29, 58, 74, 0.35), transparent 65%),
    var(--ink-1);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0 119px,
    rgba(237, 233, 225, 0.028) 119px 120px
  );
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 70%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 70%, transparent);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  width: 100%;
}

.hero-kicker {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: var(--track);
  text-transform: uppercase;
  color: var(--t-dark-2);
  margin-block-end: 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.hero-kicker .node {
  width: 0.45rem;
  height: 0.45rem;
  background: var(--copper);
  border-radius: 2px;
  transform: rotate(45deg);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 3.7vw, 3.3rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 500;
  margin-block-end: 1.5rem;
  text-wrap: balance;
}
html[lang="he"] .hero h1 { letter-spacing: 0; line-height: 1.2; font-weight: 600; }
.hero h1 em {
  font-style: italic;
  color: var(--copper-bright);
}
html[lang="he"] .hero h1 em { font-style: normal; font-weight: 700; }

.hero .sub {
  max-width: 56ch;
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  color: var(--t-dark-2);
  margin-block-end: 2.2rem;
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.9rem; }

/* Portrait */
.hero-media {
  position: relative;
  align-self: end;
  display: flex;
  justify-content: center;
  width: 100%;
}
.hero-media .halo {
  position: absolute;
  inset-block-end: 0;
  inset-inline: 12%;
  height: 78%;
  border-radius: 45% 45% 0 0;
  background:
    radial-gradient(closest-side at 50% 78%, rgba(201, 130, 79, 0.24), transparent),
    linear-gradient(to top, rgba(29, 58, 74, 0.4), rgba(18, 23, 34, 0.15));
  border: 1px solid var(--line-dark);
  border-block-end: 0;
}
.hero-media .media {
  width: min(100%, 440px);
  aspect-ratio: 4 / 5;
  max-height: min(72svh, 620px);
}
.hero-media .media > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.5));
}
.hero-media .media-ph { border-radius: 45% 45% 0 0; }

/* fact strip */
.hero-facts {
  position: absolute;
  inset-block-end: 0;
  inset-inline: 0;
  border-block-start: 1px solid var(--line-dark);
  background: rgba(12, 15, 21, 0.55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.hero-facts ul {
  list-style: none;
  margin: 0;
  padding: 1rem var(--pad-x);
  max-width: var(--max-w);
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 3rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--t-dark-2);
}
html[lang="he"] .hero-facts ul { font-family: var(--font-body); font-size: 0.875rem; }
.hero-facts li { display: flex; align-items: center; gap: 0.6rem; }
.hero-facts li::before {
  content: "";
  width: 0.35rem;
  height: 0.35rem;
  background: var(--copper);
  border-radius: 1px;
  transform: rotate(45deg);
  flex: none;
}

@media (max-width: 900px) {
  .hero {
    min-height: auto;
    padding-block-end: 0;
    flex-direction: column;
    align-items: stretch;
  }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; margin-block-start: -1rem; }
  .hero-media img { max-height: 46svh; }
  .hero-facts { position: static; margin-block-start: 3rem; }
}

/* ---------- Positioning band ---------- */
.positioning {
  border-block-start: 1px solid var(--line-dark);
  background: var(--ink-0);
}
.pos-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

/* infrastructure layer stack — text-built, no clip-art */
.layers { list-style: none; margin: 0; padding: 0; }
.layers li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.1rem;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  color: var(--t-dark-2);
  background: rgba(237, 233, 225, 0.02);
  transition: border-color 0.3s, color 0.3s, transform 0.3s var(--ease);
}
.layers li + li { margin-block-start: 0.55rem; }
.layers li:hover {
  border-color: rgba(201, 130, 79, 0.55);
  color: var(--t-dark-1);
  transform: translateX(4px);
}
html[dir="rtl"] .layers li:hover { transform: translateX(-4px); }
.layers .tick {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 1px;
  background: var(--copper);
  transform: rotate(45deg);
  flex: none;
  opacity: 0.85;
}

@media (max-width: 900px) {
  .pos-grid { grid-template-columns: 1fr; }
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
.about-side { position: sticky; top: calc(var(--header-h) + 2rem); }
.about-side .media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; }

.about-facts {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  font-size: 0.9rem;
  color: var(--t-light-2);
}
.about-facts li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.6rem;
  border-block-end: 1px solid var(--line-light);
}
.about-facts .k {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: var(--track);
  text-transform: uppercase;
}
html[lang="he"] .about-facts .k { font-family: var(--font-body); font-weight: 500; font-size: 0.85rem; }
.about-facts .v { color: var(--t-light-1); font-weight: 500; text-align: end; }

.about-body p { max-width: 66ch; color: #2c313a; }
.about-body .pull {
  margin: 2.2rem 0;
  padding-inline-start: 1.4rem;
  border-inline-start: 3px solid var(--copper-deep);
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  line-height: 1.35;
  font-style: italic;
  color: var(--t-light-1);
}
html[lang="he"] .about-body .pull { font-style: normal; }

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-side { position: static; max-width: 420px; }
}

/* ---------- Expertise ---------- */
.exp-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-block-start: 3rem;
}
.exp-card {
  padding: 1.6rem 1.4rem 1.5rem;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: rgba(237, 233, 225, 0.025);
  transition: border-color 0.3s, background 0.3s, transform 0.35s var(--ease);
}
.exp-card:hover {
  border-color: rgba(201, 130, 79, 0.5);
  background: rgba(237, 233, 225, 0.045);
  transform: translateY(-4px);
}
.exp-card .idx {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--copper);
  display: block;
  margin-block-end: 1.6rem;
}
.exp-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.35;
  margin-block-end: 0.6rem;
  color: var(--t-dark-1);
}
.exp-card p { font-size: 0.9rem; line-height: 1.6; color: var(--t-dark-2); }

@media (max-width: 1080px) { .exp-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .exp-grid { grid-template-columns: 1fr; } }

/* ---------- Selected Work (timeline) ---------- */
.timeline {
  list-style: none;
  margin: 3rem 0 0;
  padding: 0;
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  inset-block: 0.5rem 0.5rem;
  inset-inline-start: 0.4375rem;
  width: 1px;
  background: linear-gradient(to bottom, var(--copper-deep), var(--line-light));
}
.tl-item {
  position: relative;
  padding-inline-start: 3rem;
  padding-block-end: 3rem;
}
.tl-item:last-child { padding-block-end: 0.5rem; }
.tl-item::before {
  /* recovery-point node */
  content: "";
  position: absolute;
  inset-inline-start: 0;
  inset-block-start: 0.55rem;
  width: 0.875rem;
  height: 0.875rem;
  border-radius: 3px;
  transform: rotate(45deg);
  background: var(--paper-1);
  border: 2px solid var(--copper-deep);
  transition: background 0.3s;
}
.tl-item:hover::before { background: var(--copper-deep); }

.tl-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 1rem;
  margin-block-end: 0.5rem;
}
.tl-head h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
html[lang="he"] .tl-head h3 { letter-spacing: 0; }
.tl-role {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: var(--track);
  text-transform: uppercase;
  color: var(--copper-deep);
  padding: 0.25rem 0.65rem;
  border: 1px solid rgba(160, 92, 46, 0.35);
  border-radius: 999px;
  white-space: nowrap;
}
html[lang="he"] .tl-role { font-family: var(--font-body); font-weight: 500; font-size: 0.8rem; }
.tl-item p { max-width: 64ch; color: var(--t-light-2); }

.tl-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-block-start: 0.9rem;
}
.tl-tags span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  color: var(--t-light-2);
  padding: 0.22rem 0.6rem;
  background: rgba(21, 24, 30, 0.05);
  border: 1px solid var(--line-light);
  border-radius: 6px;
  direction: ltr;
  unicode-bidi: isolate;
}

/* external product link inside a timeline entry */
.tl-link {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: var(--copper-deep);
  text-decoration: none;
  direction: ltr;
  unicode-bidi: isolate;
}
.tl-link:hover { text-decoration: underline; }

/* ---------- Companies ---------- */
.companies { background: var(--paper-2); }
.co-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-block-start: 3rem;
}
.co-card {
  display: block;
  text-decoration: none;
  padding: 1.5rem 1.4rem;
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  background: var(--paper-1);
  transition: border-color 0.3s, transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
a.co-card:hover {
  border-color: var(--copper-deep);
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(21, 24, 30, 0.08);
}
.co-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  color: var(--t-light-1);
}
.co-card h3 .ext {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--copper-deep);
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.co-card .co-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: var(--track);
  text-transform: uppercase;
  color: var(--t-light-2);
  display: block;
  margin-block: 0.3rem 0.8rem;
}
html[lang="he"] .co-card .co-tag { font-family: var(--font-body); font-weight: 500; font-size: 0.8rem; }
.co-card p { font-size: 0.92rem; color: var(--t-light-2); }

/* winery: distinct, wine-toned, deliberately separate */
.winery-card {
  margin-block-start: 2.5rem;
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(120deg, var(--wine-deep), var(--wine) 85%);
  color: #f2e6e0;
  border: 1px solid rgba(110, 46, 63, 0.5);
}
html[dir="rtl"] .winery-card {
  background: linear-gradient(-120deg, var(--wine-deep), var(--wine) 85%);
}
.winery-copy { padding: clamp(1.8rem, 4vw, 3rem); }
.winery-copy .eyebrow { color: #d9a5a0; }
.winery-copy h3 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 600;
  margin-block-end: 0.9rem;
}
.winery-copy p { color: rgba(242, 230, 224, 0.82); max-width: 52ch; }
.winery-media { position: relative; min-height: 260px; }
.winery-media img,
.winery-media .media-ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 1000px) { .co-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) {
  .co-grid { grid-template-columns: 1fr; }
  .winery-card { grid-template-columns: 1fr; }
  .winery-media { min-height: 220px; }
}

/* ---------- Beyond Work ---------- */
.beyond { background: var(--ink-0); }
.beyond-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
  margin-block-start: 3rem;
}
.beyond-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line-dark);
  display: flex;
  flex-direction: column;
  min-height: 380px;
  isolation: isolate;
}
.beyond-card .bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.beyond-card .bg img,
.beyond-card .bg .media-ph {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.beyond-card .bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
    rgba(7, 9, 13, 0.5) 10%,
    rgba(7, 9, 13, 0.12) 45%,
    transparent 70%);
}
.beyond-card .card-copy {
  margin-block-start: auto;
  padding: 5rem 1.6rem 1.8rem;
  /* text-anchored scrim: guarantees contrast over any photo */
  background: linear-gradient(to top,
    rgba(7, 9, 13, 0.88) 45%,
    rgba(7, 9, 13, 0.45) 78%,
    transparent);
}
.beyond-card .card-kicker {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: var(--track);
  text-transform: uppercase;
  color: var(--copper-bright);
  display: block;
  margin-block-end: 0.6rem;
}
html[lang="he"] .beyond-card .card-kicker { font-family: var(--font-body); font-weight: 500; font-size: 0.85rem; }
.beyond-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  margin-block-end: 0.6rem;
}
.beyond-card p { font-size: 0.95rem; color: rgba(237, 233, 225, 0.78); max-width: 46ch; }

.beyond-card.tall { grid-column: span 5; grid-row: span 2; min-height: 560px; }
.beyond-card.wide { grid-column: span 7; }
.beyond-card.small { grid-column: span 7; }

@media (max-width: 900px) {
  .beyond-card.tall, .beyond-card.wide, .beyond-card.small { grid-column: span 12; grid-row: auto; min-height: 340px; }
  .beyond-card.tall { min-height: 460px; }
}

/* thematic placeholder tints */
.ph-wine .media-ph   { background: linear-gradient(150deg, #2a1017, var(--wine-deep) 55%, #6e2e3f); }
.ph-sea .media-ph    { background: linear-gradient(150deg, var(--sea-deep), var(--sea) 60%, #2e5d75); }
.ph-israel .media-ph { background: linear-gradient(150deg, #241c12, #4a3a22 60%, #77602f); }
.ph-portrait .media-ph { background: linear-gradient(165deg, var(--ink-2), #1c2330 55%, rgba(201, 130, 79, 0.35)); }
.ph-work .media-ph   { background: linear-gradient(150deg, #14181f, #1d2530 60%, #31414f); }

/* ---------- Education ---------- */
.edu-list {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  max-width: 760px;
}
.edu-list li {
  display: flex;
  align-items: baseline;
  gap: 1.2rem;
  padding-block: 1.1rem;
  border-block-end: 1px solid var(--line-light);
  color: var(--t-light-1);
}
.edu-list li::before {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 1px;
  background: var(--copper-deep);
  transform: rotate(45deg);
  flex: none;
  position: relative;
  top: -2px;
}
.edu-list .note { color: var(--t-light-2); }

/* ---------- Contact ---------- */
.contact {
  position: relative;
  overflow: hidden;
}
.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(40rem 26rem at 50% 120%, rgba(201, 130, 79, 0.12), transparent 70%),
    var(--ink-1);
  z-index: -1;
}
.contact .inner { max-width: 720px; }
.contact .sec-title { font-size: clamp(2.4rem, 5vw, 3.6rem); }
.contact .lede { margin-block-end: 2.4rem; }
.contact-ctas { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-block-end: 2rem; }
.contact-email {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--t-dark-2);
}
.contact-email a { color: var(--copper-bright); text-decoration: none; }
.contact-email a:hover { text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink-0);
  border-block-start: 1px solid var(--line-dark);
  padding-block: 2.5rem;
  font-size: 0.875rem;
  color: var(--t-dark-2);
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem 2rem;
}
.footer-grid a { color: var(--t-dark-2); text-decoration: none; }
.footer-grid a:hover { color: var(--t-dark-1); }
.footer-coords {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  direction: ltr;
}

/* ---------- Subpage hero ---------- */
.page-hero {
  padding-block: calc(var(--header-h) + 4rem) 4rem;
  position: relative;
  isolation: isolate;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(46rem 26rem at 82% 0%, rgba(201, 130, 79, 0.09), transparent 65%),
    var(--ink-1);
}
html[dir="rtl"] .page-hero::before {
  background:
    radial-gradient(46rem 26rem at 18% 0%, rgba(201, 130, 79, 0.09), transparent 65%),
    var(--ink-1);
}
.page-hero .sec-title { font-size: clamp(2.3rem, 4.6vw, 3.4rem); margin-block-end: 1rem; }
.page-hero .lede { max-width: 68ch; }

/* ---------- Lean home: compact work rows ---------- */
.mini-work {
  list-style: none;
  margin: 2.6rem 0 0;
  padding: 0;
  border-block-start: 1px solid var(--line-dark);
}
.mini-row {
  display: grid;
  grid-template-columns: minmax(0, 5fr) auto minmax(0, 7fr) auto;
  gap: 0.5rem 1.75rem;
  align-items: baseline;
  padding-block: 1.55rem;
  border-block-end: 1px solid var(--line-dark);
  text-decoration: none;
  color: inherit;
}
.mini-row h3 {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: color 0.25s;
}
html[lang="he"] .mini-row h3 { letter-spacing: 0; }
.mini-row h3::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 1px;
  background: var(--copper);
  transform: rotate(45deg);
  flex: none;
}
.mini-role {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: var(--track);
  text-transform: uppercase;
  color: var(--copper);
  padding: 0.25rem 0.65rem;
  border: 1px solid rgba(201, 130, 79, 0.35);
  border-radius: 999px;
  white-space: nowrap;
  justify-self: start;
}
html[lang="he"] .mini-role { font-family: var(--font-body); font-weight: 500; font-size: 0.8rem; }
.mini-row p { margin: 0; font-size: 0.95rem; color: var(--t-dark-2); }
.mini-row .go {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--copper);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.25s, transform 0.25s var(--ease);
}
html[dir="rtl"] .mini-row .go { transform: translateX(6px); }
a.mini-row:hover h3 { color: var(--copper-bright); }
a.mini-row:hover .go, a.mini-row:focus-visible .go { opacity: 1; transform: none; }
@media (max-width: 720px) {
  .mini-row { grid-template-columns: 1fr; }
  .mini-row .go { display: none; }
  .mini-row h3 { font-size: 1.35rem; }
}

/* compact section rhythm for the lean home page */
.compact { padding-block: clamp(3.5rem, 7vw, 5.5rem); }

.more-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-block-start: 1.8rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: var(--track);
  text-transform: uppercase;
  text-decoration: none;
  color: var(--copper);
  transition: color 0.25s;
}
html[lang="he"] .more-link { font-family: var(--font-body); font-weight: 500; font-size: 0.95rem; }
.more-link:hover { color: var(--copper-bright); }
.more-link .arrow { transition: transform 0.25s var(--ease); }
.more-link:hover .arrow { transform: translateX(4px); }
html[dir="rtl"] .more-link:hover .arrow { transform: translateX(-4px); }
.light .more-link { color: var(--copper-deep); }
.light .more-link:hover { color: var(--copper); }

/* ---------- Lean home: beyond teaser tiles ---------- */
.tile-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-block-start: 2.6rem;
}
.tile {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line-dark);
  text-decoration: none;
  isolation: isolate;
}
.tile .media, .tile img, .tile .media-ph { position: absolute; inset: 0; width: 100%; height: 100%; }
.tile img { object-fit: cover; transition: transform 0.6s var(--ease); }
.tile:hover img { transform: scale(1.04); }
.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(7, 9, 13, 0.94) 12%, rgba(7, 9, 13, 0.55) 34%, transparent 60%);
}
.tile .tile-label {
  position: absolute;
  z-index: 2;
  inset-block-end: 0;
  inset-inline: 0;
  padding: 1.1rem 1.2rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  color: var(--t-dark-1);
  font-weight: 600;
}
.tile .tile-label .k {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: var(--track);
  text-transform: uppercase;
  color: var(--copper-bright);
  font-weight: 500;
}
html[lang="he"] .tile .tile-label .k { font-family: var(--font-body); font-size: 0.8rem; }
@media (max-width: 720px) {
  .tile-grid { grid-template-columns: 1fr; }
  .tile { aspect-ratio: 16 / 9; }
}

/* ---------- Full-bleed photo band (beyond page) ---------- */
.photo-band {
  position: relative;
  min-height: 46svh;
  overflow: hidden;
  isolation: isolate;
}
.photo-band img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}
.photo-band .caption {
  position: absolute;
  inset-block-end: 1.4rem;
  inset-inline-start: var(--pad-x);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: rgba(237, 233, 225, 0.85);
  background: rgba(7, 9, 13, 0.55);
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
html[lang="he"] .photo-band .caption { font-family: var(--font-body); }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--d, 0s);
}
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}
