/* ============================================================
   Netanel Ivgi — Operational Process Leadership
   Shared design system. RTL Hebrew, editorial, anti-hype.
   Locked tokens from Visual Unification System (doc 20).
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Heebo:wght@300;400;500;600;700;800;900&family=IBM+Plex+Sans:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* ---------- tokens ---------- */
:root {
  --bg: #FAF8F4;
  --surface: #FFFFFF;
  --surface-2: #F3F1EB;
  --text: #1A1A1A;
  --muted: #6B7280;
  --rule: #D0D7E3;
  --accent: #2C5F8A;
  --accent-dark: #1F4E6F;
  --accent-soft: rgba(44, 95, 138, 0.08);
  --accent-line: rgba(44, 95, 138, 0.22);

  --ff-he: 'Heebo', sans-serif;
  --ff-en: 'IBM Plex Sans', sans-serif;
  --ff-mono: 'JetBrains Mono', monospace;

  --maxw: 1200px;
  --radius: 12px;
  --radius-sm: 7px;
  --shadow: 0 14px 40px rgba(20, 28, 40, 0.08);
  --shadow-sm: 0 6px 20px rgba(20, 28, 40, 0.06);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

[data-theme="dark"] {
  --bg: #15161B;
  --surface: #1C1E25;
  --surface-2: #23262E;
  --text: #EDEAE3;
  --muted: #9CA0A9;
  --rule: #2E323C;
  --accent: #7BAAD4;
  --accent-dark: #9BC0E2;
  --accent-soft: rgba(123, 170, 212, 0.12);
  --accent-line: rgba(123, 170, 212, 0.30);
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.40);
  --shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.30);
}

/* per-project secondary accent (system one — character per project) */
.proj-whatsapp { --accent: #1C7A57; --accent-dark: #135E43; --accent-soft: rgba(28,122,87,.09); --accent-line: rgba(28,122,87,.24); }
.proj-pcf      { --accent: #2F4A63; --accent-dark: #20364A; --accent-soft: rgba(47,74,99,.09); --accent-line: rgba(47,74,99,.24); }
.proj-jobfit   { --accent: #8C3B43; --accent-dark: #6E2A31; --accent-soft: rgba(140,59,67,.09); --accent-line: rgba(140,59,67,.24); }
.proj-stkms    { --accent: #434B6B; --accent-dark: #313754; --accent-soft: rgba(67,75,107,.10); --accent-line: rgba(67,75,107,.24); }

[data-theme="dark"] .proj-whatsapp { --accent: #5CBE96; --accent-dark: #7FD0AE; --accent-soft: rgba(92,190,150,.13); --accent-line: rgba(92,190,150,.30); }
[data-theme="dark"] .proj-pcf      { --accent: #86A6C4; --accent-dark: #A6BFD6; --accent-soft: rgba(134,166,196,.13); --accent-line: rgba(134,166,196,.30); }
[data-theme="dark"] .proj-jobfit   { --accent: #CF8C92; --accent-dark: #DEA7AC; --accent-soft: rgba(207,140,146,.13); --accent-line: rgba(207,140,146,.30); }
[data-theme="dark"] .proj-stkms    { --accent: #98A1C7; --accent-dark: #B1B8D8; --accent-soft: rgba(152,161,199,.14); --accent-line: rgba(152,161,199,.30); }

/* ---------- base ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--ff-he);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}

::selection { background: var(--accent); color: #fff; }

a { color: inherit; text-decoration: none; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.container--narrow { max-width: 860px; }

section { position: relative; }

/* ---------- typographic atoms ---------- */
.kicker {
  font-family: var(--ff-en);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  direction: ltr;
  display: inline-block;
}
.kicker--rtl { direction: rtl; }

h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.018em; line-height: 1.18; }

.section-title {
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.section-lead {
  font-size: 18px;
  color: var(--muted);
  max-width: 720px;
  line-height: 1.6;
}

/* anchor sentence — משפט עוגן */
.anchor {
  font-size: clamp(21px, 2.6vw, 27px);
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: -0.01em;
  padding-right: 22px;
  border-right: 3px solid var(--accent);
  max-width: 820px;
}
.anchor em { font-style: normal; color: var(--accent); }

.prose p { font-size: 17px; line-height: 1.8; color: var(--text); margin-bottom: 18px; max-width: 720px; }
.prose p.muted { color: var(--muted); }
.prose strong { font-weight: 700; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--ff-he); font-size: 15px; font-weight: 600;
  padding: 13px 24px; border-radius: var(--radius-sm);
  border: 1.5px solid transparent; cursor: pointer;
  transition: all 0.2s var(--ease);
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--rule); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn .arrow { font-family: var(--ff-en); }

.text-link {
  font-family: var(--ff-en); font-size: 13px; font-weight: 600; color: var(--accent);
  letter-spacing: 0.03em; border-bottom: 1px solid var(--accent-line); padding-bottom: 2px;
  direction: ltr; display: inline-block; transition: border-color 0.2s;
}
.text-link--he { direction: rtl; font-family: var(--ff-he); font-size: 15px; }
.text-link:hover { border-color: var(--accent); }

/* ============================================================
   Header / Nav
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 70px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand__mark {
  width: 38px; height: 38px; flex-shrink: 0;
  display: grid; place-items: center;
}
.brand__mark svg { width: 100%; height: 100%; }
.brand__mark img { width: 100%; height: 100%; border-radius: 9px; object-fit: cover; box-shadow: 0 0 0 1px rgba(0,0,0,0.05); }
[data-theme="dark"] .brand__mark img { box-shadow: 0 0 0 1px var(--rule); }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-size: 18px; font-weight: 800; letter-spacing: -0.01em; }
.brand__tag {
  font-size: 11px; color: var(--muted); font-weight: 500; letter-spacing: 0.02em; margin-top: 1px;
}

.nav__links { display: flex; align-items: center; gap: 6px; }
.nav__link {
  font-size: 15.5px; font-weight: 500; color: var(--text);
  padding: 8px 14px; border-radius: 6px; position: relative;
  transition: color 0.2s, background 0.2s;
}
.nav__link:hover { color: var(--accent); }
.nav__link.is-active { color: var(--accent); }
.nav__link.is-active::after {
  content: ""; position: absolute; right: 14px; left: 14px; bottom: 1px;
  height: 2px; background: var(--accent); border-radius: 2px;
}

.nav__right { display: flex; align-items: center; gap: 8px; }
.theme-toggle {
  width: 40px; height: 40px; border-radius: 8px; border: 1.5px solid var(--rule);
  background: var(--surface); color: var(--text); cursor: pointer;
  display: grid; place-items: center; transition: all 0.2s var(--ease);
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }
.theme-toggle svg { width: 19px; height: 19px; }
.theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

.nav__cta { display: inline-flex; }
.nav__burger {
  display: none; width: 40px; height: 40px; border-radius: 8px;
  border: 1.5px solid var(--rule); background: var(--surface); cursor: pointer;
  flex-direction: column; gap: 4px; align-items: center; justify-content: center;
}
.nav__burger span { width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: 0.2s; }

@media (max-width: 880px) {
  .nav__links {
    position: fixed; inset: 70px 0 auto 0; flex-direction: column; align-items: stretch;
    background: var(--bg); border-bottom: 1px solid var(--rule); padding: 14px 20px 22px;
    gap: 2px; transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: all 0.25s var(--ease); box-shadow: var(--shadow);
  }
  .nav__links.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav__link { padding: 12px 8px; font-size: 17px; }
  .nav__link.is-active::after { display: none; }
  .nav__cta { display: none; }
  .nav__burger { display: flex; }
  .brand__tag { display: none; }
}

/* ============================================================
   Reveal animation
   ============================================================ */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: 0.07s; }
.reveal[data-d="2"] { transition-delay: 0.14s; }
.reveal[data-d="3"] { transition-delay: 0.21s; }
.reveal[data-d="4"] { transition-delay: 0.28s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   Hero — two-column with process diagram (direction 02)
   ============================================================ */
.hero { padding: 76px 0 72px; }
.hero__grid {
  display: grid; grid-template-columns: 1.35fr 1fr; gap: 64px; align-items: center;
}
.hero__title {
  font-size: clamp(32px, 4.6vw, 50px); font-weight: 700; line-height: 1.16;
  letter-spacing: -0.025em; margin: 26px 0 24px;
}
.hero__title em { font-style: normal; color: var(--accent); }
.hero__sub { font-size: 19px; line-height: 1.62; color: var(--muted); max-width: 600px; margin-bottom: 26px; }
.hero__support { font-size: 16px; color: var(--muted); line-height: 1.55; margin-bottom: 32px; max-width: 560px; }
.hero__support span { display: block; }
.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; }

/* process diagram */
.diagram { background: var(--surface); border: 1.5px solid var(--rule); border-radius: var(--radius); padding: 26px 24px; box-shadow: var(--shadow-sm); }
.diagram__cap-top { font-family: var(--ff-en); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; direction: ltr; }
.diagram__cap-top--rtl { font-family: var(--ff-he); letter-spacing: normal; text-transform: none; direction: rtl; text-align: right; }
.diag-row {
  display: flex; align-items: center; gap: 14px; padding: 13px 15px; border-radius: 8px;
  background: var(--bg); margin-bottom: 9px; direction: rtl;
  border: 1px solid transparent;
}
.diag-row:last-of-type { margin-bottom: 0; }
.diag-row__num {
  width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #fff;
  display: grid; place-items: center; font-family: var(--ff-en); font-size: 12px; font-weight: 700; flex-shrink: 0;
}
.diag-row__label { font-size: 15px; font-weight: 600; }
.diag-row__en { font-family: var(--ff-en); font-size: 11px; color: var(--muted); margin-right: auto; direction: ltr; letter-spacing: 0.04em; }
.diag-row--peak { background: var(--accent-soft); border-color: var(--accent-line); }
.diag-row--peak .diag-row__num { background: var(--text); }
.diagram__cap { margin-top: 15px; font-size: 12.5px; color: var(--muted); text-align: center; }

@media (max-width: 880px) {
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: 48px 0 52px; }
}

/* ============================================================
   Generic section spacing + dividers
   ============================================================ */
.block { padding: 64px 0; }
.block--tight { padding: 48px 0; }
.block + .block { border-top: 1px solid var(--rule); }
.block--alt { background: var(--surface-2); }

.section-head { margin-bottom: 38px; }
.section-head .kicker { margin-bottom: 12px; }

/* chapter opener (project pages / showcase feel) */
.chapter { display: flex; align-items: baseline; gap: 16px; margin-bottom: 26px; }
.chapter__num { font-family: var(--ff-en); font-size: 13px; font-weight: 700; color: var(--accent); letter-spacing: 0.08em; }
.chapter__title { font-size: clamp(22px, 2.8vw, 30px); }
.chapter__line { flex: 1; height: 1px; background: var(--rule); align-self: center; }

/* ============================================================
   Quiet Editorial project card (card direction 01)
   ============================================================ */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cards-grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 920px) { .cards-grid, .cards-grid--2 { grid-template-columns: 1fr; } }

.pcard {
  display: flex; flex-direction: column; text-align: right;
  background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius);
  padding: 28px 26px; transition: transform 0.25s var(--ease), border-color 0.25s, box-shadow 0.25s;
  height: 100%;
}
.pcard:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: var(--shadow); }
.pcard__tag {
  font-family: var(--ff-en); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent); font-weight: 700; margin-bottom: 16px; direction: rtl;
}
.pcard__title { font-size: 21px; font-weight: 700; line-height: 1.3; margin-bottom: 11px; }
.pcard__problem { font-size: 14.5px; color: var(--muted); line-height: 1.6; flex-grow: 1; }
.pcard__divider { width: 30px; height: 2px; background: var(--accent); margin: 20px 0 12px; }
.pcard__outcome { font-family: var(--ff-en); font-size: 12px; color: var(--text); direction: ltr; text-align: left; letter-spacing: 0.02em; line-height: 1.5; }
.pcard__outcome strong { color: var(--accent); font-weight: 600; }
.pcard__more { margin-top: 14px; font-family: var(--ff-en); font-size: 12px; color: var(--accent); font-weight: 600; direction: rtl; opacity: 0; transition: opacity .2s; }
.pcard:hover .pcard__more { opacity: 1; }

/* quick links on project detail pages */
.project-links {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.project-links__btn--disabled {
  opacity: 0.6;
  pointer-events: none;
  cursor: not-allowed;
}
.project-links__note {
  margin-top: 10px;
  font-size: 13px;
}

/* ============================================================
   Principle / lesson cards
   ============================================================ */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tiles--2 { grid-template-columns: repeat(2, 1fr); }
.tiles--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 920px) { .tiles, .tiles--2, .tiles--4 { grid-template-columns: 1fr; } }
.tile {
  background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius);
  padding: 24px 22px; text-align: right;
}
.tile__n { font-family: var(--ff-en); font-size: 13px; font-weight: 700; color: var(--accent); margin-bottom: 12px; }
.tile__title { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.tile__body { font-size: 14.5px; color: var(--muted); line-height: 1.6; }

/* ============================================================
   Before / After
   ============================================================ */
.ba { display: grid; grid-template-columns: 1fr auto 1fr; gap: 0; align-items: stretch; border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.ba__col { padding: 22px 24px; }
.ba__col--before { background: var(--surface-2); }
.ba__head { font-family: var(--ff-en); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.ba__col--after .ba__head { color: var(--accent); }
.ba__text { font-size: 15.5px; line-height: 1.55; font-weight: 500; }
.ba__arrow { display: grid; place-items: center; padding: 0 6px; color: var(--accent); font-size: 20px; border-inline: 1px solid var(--rule); }
.ba-list { display: flex; flex-direction: column; gap: 12px; }
@media (max-width: 720px) {
  .ba { grid-template-columns: 1fr; }
  .ba__arrow { border-inline: 0; border-block: 1px solid var(--rule); padding: 8px; transform: rotate(90deg); }
}

/* ============================================================
   Screenshot frame (proof — never alone, always captioned)
   ============================================================ */
.shot { margin: 0; }
.shot__frame {
  background: var(--surface); border: 1.5px solid var(--rule); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
}
.shot__bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; background: var(--surface-2); border-bottom: 1px solid var(--rule); }
.shot__dots { display: flex; gap: 6px; }
.shot__dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--rule); }
.shot__name { font-family: var(--ff-mono); font-size: 11px; color: var(--muted); margin-right: auto; direction: ltr; }
.shot__frame img { display: block; width: 100%; height: auto; }
.shot__frame img[data-lightbox] { cursor: zoom-in; }
.shot__frame img[data-lightbox]:hover { filter: brightness(0.98); }
.shot__img--scaled {
  width: 46% !important;
  margin: 12px auto;
  border-radius: 8px;
}
.shot__cap { margin-top: 14px; }
.shot__cap-title { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.shot__cap-title b { color: var(--accent); }
.shot__cap-why { font-size: 14px; color: var(--muted); line-height: 1.55; }
.shot__cap-why .lbl { font-family: var(--ff-en); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin-left: 6px; direction: ltr; }

.shot-placeholder {
  background: var(--surface-2); border: 1.5px dashed var(--rule); border-radius: var(--radius);
  min-height: 240px; display: grid; place-items: center; text-align: center; color: var(--muted);
  font-size: 13.5px; padding: 28px; line-height: 1.6;
}
.shot-placeholder .ph-name { font-family: var(--ff-mono); font-size: 11px; color: var(--accent); display: block; margin-top: 6px; }

.shots-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
@media (max-width: 820px) { .shots-2 { grid-template-columns: 1fr; } }

/* stacked full-width shots (dense UI captures) */
.shots-stack { display: flex; flex-direction: column; gap: 34px; }
.shot__view { max-height: 580px; overflow-y: auto; overscroll-behavior: contain; background: var(--surface); }
.shot__view img { display: block; width: 100%; height: auto; }
.shot__view::-webkit-scrollbar { width: 10px; }
.shot__view::-webkit-scrollbar-thumb { background: var(--rule); border-radius: 10px; }
.shot__scrollhint { font-family: var(--ff-en); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-right: auto; direction: ltr; display: inline-flex; align-items: center; gap: 5px; }
.shot__scrollhint::before { content: "↕"; font-size: 13px; }
.shot-subhead { display: flex; align-items: center; gap: 14px; margin: 8px 0 4px; }
.shot-subhead__tag { font-family: var(--ff-en); font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #fff; background: var(--accent); border-radius: 5px; padding: 4px 10px; direction: ltr; flex-shrink: 0; }
.shot-subhead__txt { font-size: 16px; font-weight: 600; }
.shot-subhead__line { flex: 1; height: 1px; background: var(--rule); }

/* uniform screenshot gallery (even tiles, click to enlarge) */
.shot-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .shot-gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .shot-gallery { grid-template-columns: 1fr; } }
.gshot { display: flex; flex-direction: column; }
.gshot__thumb {
  position: relative; height: 220px; overflow: hidden; cursor: zoom-in;
  background: var(--surface); border: 1.5px solid var(--rule); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); transition: border-color 0.2s, transform 0.2s var(--ease);
}
.gshot__thumb:hover { border-color: var(--accent); transform: translateY(-3px); }
.gshot__thumb img { display: block; width: 100%; height: auto; }
.gshot__thumb::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 64px; background: linear-gradient(to top, var(--surface), transparent); pointer-events: none; }
.gshot__tag {
  position: absolute; top: 10px; inset-inline-start: 10px; z-index: 2;
  font-family: var(--ff-en); font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: #fff; background: var(--accent); border-radius: 5px; padding: 4px 9px; direction: ltr;
}
.gshot__zoom {
  position: absolute; bottom: 10px; inset-inline-end: 10px; z-index: 2;
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--ff-he); font-size: 11px; font-weight: 600; color: var(--text);
  background: color-mix(in srgb, var(--surface) 88%, transparent); border: 1px solid var(--rule);
  border-radius: 100px; padding: 4px 10px; backdrop-filter: blur(4px);
}
.gshot__zoom svg { width: 12px; height: 12px; }
.gshot__cap { margin-top: 12px; }
.gshot__name { font-family: var(--ff-mono); font-size: 10.5px; color: var(--muted); direction: ltr; margin-bottom: 5px; }
.gshot__title { font-size: 14.5px; font-weight: 700; line-height: 1.35; margin-bottom: 4px; }
.gshot__title b { color: var(--accent); }
.gshot__why { font-size: 13px; color: var(--muted); line-height: 1.5; }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 200; display: none; background: rgba(8, 10, 14, 0.9); overflow: auto; padding: 40px 16px 60px; }
.lightbox.is-open { display: block; }
.lightbox__img { display: block; max-width: 1080px; width: 100%; margin: 0 auto; border-radius: 10px; box-shadow: 0 24px 70px rgba(0,0,0,0.6); }
.lightbox__cap { max-width: 1080px; margin: 16px auto 0; color: #EDEAE3; font-size: 14px; text-align: center; direction: rtl; }
.lightbox__close { position: fixed; top: 18px; inset-inline-end: 22px; width: 44px; height: 44px; border-radius: 10px; border: 1.5px solid rgba(255,255,255,0.3); background: rgba(0,0,0,0.4); color: #fff; cursor: pointer; display: grid; place-items: center; z-index: 201; transition: background 0.2s; }
.lightbox__close:hover { background: rgba(255,255,255,0.15); }
.lightbox__close svg { width: 20px; height: 20px; }

/* ============================================================
   Layers / architecture
   ============================================================ */
.layers { display: flex; flex-direction: column; gap: 12px; counter-reset: layer; }
.layer {
  display: grid; grid-template-columns: 56px 1fr; gap: 18px; align-items: center;
  background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 18px 20px;
}
.layer__n { width: 44px; height: 44px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-family: var(--ff-en); font-weight: 700; font-size: 17px; }
.layer__title { font-size: 16px; font-weight: 700; margin-bottom: 3px; }
.layer__body { font-size: 14.5px; color: var(--muted); line-height: 1.55; }

/* tech chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-family: var(--ff-mono); font-size: 12px; color: var(--text); background: var(--surface-2); border: 1px solid var(--rule); border-radius: 100px; padding: 5px 13px; }

/* allowed/limits */
.factbar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 720px) { .factbar { grid-template-columns: 1fr; } }
.fact { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 20px; }
.fact__k { font-family: var(--ff-en); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.fact__v { font-size: 15px; line-height: 1.55; }

.status-pill { display: inline-flex; align-items: center; gap: 7px; font-family: var(--ff-en); font-size: 12px; font-weight: 600; letter-spacing: 0.04em; color: var(--accent); background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: 100px; padding: 5px 13px; direction: ltr; }
.status-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

/* ============================================================
   Project page hero
   ============================================================ */
.phero { padding: 60px 0 50px; }
.phero__meta { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-bottom: 22px; font-family: var(--ff-en); font-size: 12px; color: var(--muted); letter-spacing: 0.05em; }
.phero__meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--muted); }
.phero__title { font-size: clamp(30px, 4.4vw, 46px); font-weight: 700; line-height: 1.15; letter-spacing: -0.025em; max-width: 900px; margin-bottom: 20px; }
.phero__title em { font-style: normal; color: var(--accent); }
.phero__sub { font-size: 19px; color: var(--muted); max-width: 680px; line-height: 1.6; }

/* exec summary block */
.exec { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; }
.exec__cell { padding: 24px 22px; border-left: 1px solid var(--rule); }
.exec__cell:first-child { border-left: 0; }
.exec__k { font-family: var(--ff-en); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 9px; }
.exec__v { font-size: 15px; line-height: 1.6; }
@media (max-width: 820px) { .exec { grid-template-columns: 1fr; } .exec__cell { border-left: 0; border-top: 1px solid var(--rule); } .exec__cell:first-child { border-top: 0; } }

/* ============================================================
   Thinking
   ============================================================ */
.essay-row { display: grid; grid-template-columns: 92px 1fr auto; gap: 30px; align-items: center; padding: 30px 4px; border-bottom: 1px solid var(--rule); transition: background 0.2s; }
.essay-row:hover { background: var(--surface); }
.essay-row__num { font-family: var(--ff-en); font-size: 30px; font-weight: 700; color: var(--accent); line-height: 1; }
.essay-row__meta { font-family: var(--ff-en); font-size: 11px; color: var(--muted); margin-top: 7px; letter-spacing: 0.04em; }
.essay-row__tag { font-family: var(--ff-en); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); font-weight: 700; margin-bottom: 6px; }
.essay-row__title { font-size: 22px; font-weight: 700; margin-bottom: 6px; letter-spacing: -0.01em; }
.essay-row__sub { font-size: 15px; color: var(--muted); line-height: 1.5; max-width: 620px; }
.essay-row__arrow { font-size: 22px; color: var(--muted); }
.essay-row:hover .essay-row__arrow { color: var(--accent); }
@media (max-width: 720px) { .essay-row { grid-template-columns: 1fr; gap: 10px; } .essay-row__arrow { display: none; } }

/* article body */
.article { max-width: 720px; }
.article h2 { font-size: 24px; margin: 36px 0 14px; }
.article p { font-size: 17.5px; line-height: 1.85; margin-bottom: 20px; }
.article blockquote { margin: 26px 0; padding-right: 22px; border-right: 3px solid var(--accent); font-size: 20px; font-weight: 600; line-height: 1.5; color: var(--text); }

/* ============================================================
   About
   ============================================================ */
.about-grid { display: grid; grid-template-columns: 320px 1fr; gap: 54px; align-items: start; }
@media (max-width: 880px) { .about-grid { grid-template-columns: 1fr; gap: 32px; } }
.headshot { width: 100%; aspect-ratio: 4/5; border-radius: var(--radius); border: 1.5px dashed var(--rule); background: var(--surface-2); display: grid; place-items: center; text-align: center; color: var(--muted); font-size: 13px; padding: 24px; line-height: 1.6; overflow: hidden; }
.headshot img { width: 100%; height: 100%; object-fit: cover; }
.about-facts { margin-top: 22px; display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--rule); }
.about-fact { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--rule); font-size: 14px; }
.about-fact .k { color: var(--muted); }
.about-fact .v { font-weight: 600; font-family: var(--ff-en); direction: ltr; }

/* ============================================================
   Contact
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; gap: 32px; } }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 7px; }
.field input, .field textarea {
  width: 100%; font-family: var(--ff-he); font-size: 15px; color: var(--text);
  background: var(--surface); border: 1.5px solid var(--rule); border-radius: var(--radius-sm); padding: 12px 14px;
  transition: border-color 0.2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field textarea { min-height: 130px; resize: vertical; }
.contact-list { display: flex; flex-direction: column; gap: 4px; }
.contact-item { display: flex; align-items: center; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.contact-item__ico { width: 40px; height: 40px; border-radius: 9px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex-shrink: 0; }
.contact-item__ico svg { width: 19px; height: 19px; }
.contact-item__k { font-size: 12.5px; color: var(--muted); }
.contact-item__v { font-size: 15.5px; font-weight: 600; font-family: var(--ff-en); direction: ltr; }

/* ============================================================
   CTA band + Footer
   ============================================================ */
.cta-band { padding: 72px 0; text-align: center; }
.cta-band h2 { font-size: clamp(24px, 3.2vw, 34px); margin-bottom: 14px; }
.cta-band p { font-size: 18px; color: var(--muted); max-width: 600px; margin: 0 auto 28px; line-height: 1.6; }

.site-footer { border-top: 1px solid var(--rule); padding: 48px 0 40px; background: var(--surface-2); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }
.footer-logo { height: 92px; width: auto; max-width: 100%; margin-bottom: 14px; }
.footer-logo--light { display: none; }
[data-theme="dark"] .footer-logo--dark { display: none; }
[data-theme="dark"] .footer-logo--light { display: block; }
.footer__about { font-size: 14px; color: var(--muted); line-height: 1.65; max-width: 320px; }
.footer__col h4 { font-family: var(--ff-en); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; font-weight: 600; }
.footer__col a { display: block; font-size: 14.5px; color: var(--text); padding: 5px 0; transition: color 0.2s; }
.footer__col a:hover { color: var(--accent); }
.footer-bottom { margin-top: 38px; padding-top: 22px; border-top: 1px solid var(--rule); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 13px; color: var(--muted); }
.footer-bottom .en { font-family: var(--ff-en); direction: ltr; }

/* utilities */
.mt-s { margin-top: 16px; } .mt-m { margin-top: 28px; } .mt-l { margin-top: 44px; }
.mb-s { margin-bottom: 16px; } .mb-m { margin-bottom: 28px; }
.muted { color: var(--muted); }
.center { text-align: center; }
.divider { height: 1px; background: var(--rule); border: 0; margin: 0; }
