/* =========================================================
   Essam — aluminum / silver / black over soft white
   Fonts: Fraunces (serif), Inter (sans), JetBrains Mono (mono)
   Arabic: Frank Ruhl Libre + IBM Plex Sans Arabic
   ========================================================= */

:root {
  /* Core neutral palette */
  --bg: #ffffff;
  --ink: #000000;
  --ink-soft: #1d1d1f;
  --ink-muted: #424245;
  --ink-faint: #6e6e73;
  --ink-quiet: #86868b;
  --rule: rgba(0, 0, 0, 0.08);
  
  /* Silver & Aluminum accents */
  --silver-bright: #e5e5ea;
  --silver: #d1d1d6;
  --aluminum: #8e8e93;
  --aluminum-dark: #3a3a3c;
  
  --glass: rgba(255, 255, 255, 0.7);
  --glass-hover: rgba(255, 255, 255, 0.9);
  --ring-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset;

  --serif: 'Fraunces', 'Cormorant Garamond', Georgia, serif;
  --serif-ar: 'Frank Ruhl Libre', 'Amiri', serif;
  --sans: 'Inter', 'Söhne', -apple-system, system-ui, sans-serif;
  --sans-ar: 'IBM Plex Sans Arabic', system-ui, sans-serif;
  --mono: 'JetBrains Mono', 'IBM Plex Mono', monospace;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --max: 1180px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}
html[dir="rtl"] body { font-family: var(--sans-ar); }
button { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
::selection { background: rgba(142, 142, 147, 0.3); color: var(--ink); }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 10px;
  border: 2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover { background: rgba(0, 0, 0, 0.3); }

/* ---------- Background layers ---------- */
.bg-layer {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
}
.bg-aluminum {
  background: radial-gradient(circle 820px at var(--mx, 50%) var(--my, 30%),
    rgba(142, 142, 147, 0.15), transparent 60%);
  transition: background 0.25s ease-out;
}
.bg-silver {
  background: radial-gradient(circle 1100px at var(--mx-inv, 50%) var(--my-inv, 70%),
    rgba(209, 209, 214, 0.35), transparent 65%);
  transition: background 0.35s ease-out;
}
.bg-top-glow {
  background: radial-gradient(ellipse 1600px 800px at 50% -10%,
    rgba(255, 255, 255, 0.8), transparent 60%);
}
.bg-grain {
  opacity: 0.35; z-index: 1;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' seed='5'/><feColorMatrix values='0 0 0 0 0.85  0 0 0 0 0.83  0 0 0 0 0.78  0 0 0 0 .05 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

main { position: relative; z-index: 2; }

/* ---------- Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 1.1s var(--ease),
    transform 1.1s var(--ease);
  transition-delay: var(--delay, 0s);
}
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Silver italic accent ---------- */
.silver-italic {
  font-style: italic;
  background: linear-gradient(135deg, var(--ink), var(--aluminum));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Language swap ---------- */
.hero-title-ar, .title-ar { display: none; }
html[dir="rtl"] .hero-title-en,
html[dir="rtl"] .title-en { display: none; }
html[dir="rtl"] .hero-title-ar,
html[dir="rtl"] .title-ar { display: inline; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 20px; left: 0; right: 0; z-index: 50;
  display: flex; justify-content: center;
  pointer-events: none;
  padding: 0 16px;
}
.nav-inner {
  pointer-events: auto;
  display: flex; align-items: center; gap: 28px;
  padding: 10px 10px 10px 24px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 10px 40px -12px rgba(0, 0, 0, 0.1),
    0 2px 6px -1px rgba(0, 0, 0, 0.05);
  max-width: calc(100vw - 32px);
}
html[dir="rtl"] .nav-inner { padding: 10px 24px 10px 10px; }
.nav-brand {
  background: none; border: 0; padding: 0; cursor: pointer;
  font-family: var(--serif);
  font-style: italic; font-size: 19px; font-weight: 400;
  color: var(--ink-soft); letter-spacing: -0.01em;
}
.nav-divider {
  width: 1px; height: 16px; background: rgba(0, 0, 0, 0.12);
}
.nav-links { display: flex; gap: 6px; }
.nav-link {
  background: none; border: 0; padding: 8px 14px; cursor: pointer;
  font-family: var(--sans);
  font-size: 13px; font-weight: 500;
  color: var(--ink-muted);
  letter-spacing: -0.005em;
  border-radius: 18px;
  transition: background 0.2s, color 0.2s;
}
html[dir="rtl"] .nav-link { font-family: var(--sans-ar); }
.nav-link:hover { background: rgba(0, 0, 0, 0.05); color: var(--ink); }
.nav-lang {
  background: linear-gradient(180deg, #ffffff, #f2f2f7);
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 8px 16px; cursor: pointer; border-radius: 20px;
  font-family: var(--sans);
  font-size: 12px; font-weight: 500;
  color: var(--ink-soft); letter-spacing: 0.02em;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 1px 2px rgba(0, 0, 0, 0.04);
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 120px 40px 80px;
  position: relative;
}
.hero-grid {
  max-width: var(--max); width: 100%;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 80px; align-items: center;
}
html[dir="rtl"] .hero-copy { order: 2; }
html[dir="rtl"] .hero-portrait { order: 1; }

.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(0, 0, 0, 0.08);
  font-family: var(--sans); font-size: 12px; font-weight: 500;
  color: var(--ink-muted); letter-spacing: 0.02em;
  backdrop-filter: blur(10px);
}
html[dir="rtl"] .pill { font-family: var(--sans-ar); }
.pill-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: radial-gradient(circle, var(--silver), var(--aluminum));
}

.hero-title {
  font-family: var(--serif);
  font-size: clamp(52px, 9vw, 120px);
  line-height: 1.08;
  font-weight: 300;
  margin: 32px 0 0;
  padding-bottom: 12px;
  color: var(--ink);
  letter-spacing: -0.03em;
}
html[dir="rtl"] .hero-title {
  font-family: var(--serif-ar);
  line-height: 1.3;
  letter-spacing: 0;
  font-size: clamp(48px, 8vw, 108px);
}

.hero-tagline {
  font-family: var(--sans);
  font-size: 21px; line-height: 1.55;
  color: var(--ink-faint);
  font-weight: 400;
  max-width: 560px;
  margin: 64px 0 0;
  letter-spacing: -0.005em;
}
html[dir="rtl"] .hero-tagline {
  font-family: var(--sans-ar);
  font-size: 20px; line-height: 1.9;
  letter-spacing: 0;
}

.hero-cta {
  display: flex; gap: 14px; margin-top: 52px; flex-wrap: wrap;
}

.btn {
  padding: 15px 28px; border-radius: 18px; cursor: pointer;
  font-family: var(--sans); font-size: 14px; font-weight: 500;
  letter-spacing: -0.005em;
  display: inline-flex; align-items: center; gap: 4px;
  transition: all 0.25s var(--ease);
  background: linear-gradient(180deg, #ffffff, #f2f2f7);
  color: var(--ink-soft);
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 2px 8px -4px rgba(0, 0, 0, 0.1);
}
html[dir="rtl"] .btn { font-family: var(--sans-ar); }
.btn:hover {
  transform: translateY(-1px);
  background: linear-gradient(180deg, #ffffff, #e5e5ea);
}
.btn-primary {
  background: linear-gradient(180deg, #1d1d1f, #000000);
  color: #ffffff;
  border-color: #000000;
  box-shadow:
    0 6px 16px -6px rgba(0, 0, 0, 0.4),
    0 1px 0 rgba(255, 255, 255, 0.15) inset;
}
.btn-primary:hover {
  background: linear-gradient(180deg, #1d1d1f, #000000);
  box-shadow:
    0 12px 32px -8px rgba(0, 0, 0, 0.5),
    0 1px 0 rgba(255, 255, 255, 0.2) inset;
}
.btn .arrow { margin-inline-start: 8px; }

/* Portrait */
.hero-portrait {
  position: relative; justify-self: center;
  width: 380px; height: 460px;
}
.portrait-ring {
  position: absolute; inset: 0;
  border-radius: 38% / 34%;
  padding: 3px;
  background: linear-gradient(145deg,
    #ffffff 0%,
    var(--silver-bright) 20%,
    var(--silver) 48%,
    var(--aluminum) 60%,
    var(--silver-bright) 80%,
    #ffffff 100%);
  box-shadow:
    0 30px 80px -24px rgba(0, 0, 0, 0.25),
    0 6px 16px -6px rgba(0, 0, 0, 0.1);
}
.portrait-inner {
  width: 100%; height: 100%;
  border-radius: 37% / 33%;
  overflow: hidden;
  background: #e5e5ea;
}
.portrait-inner img {
  width: 100%; height: 100%; object-fit: cover;
  filter: contrast(1.03) saturate(0.95);
}
.portrait-shadow {
  position: absolute; bottom: -40px; left: 10%; right: 10%; height: 40px;
  background: radial-gradient(ellipse at center,
    rgba(0, 0, 0, 0.25), transparent 70%);
  filter: blur(6px);
}

/* Scroll hint */
.scroll-hint {
  position: absolute; bottom: 32px; left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.3em;
  color: rgba(0, 0, 0, 0.35);
  text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.scroll-line {
  width: 1px; height: 36px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), transparent);
}

/* ---------- Sections ---------- */
.section { padding: 140px 40px; position: relative; }
.section-inner { max-width: var(--max); margin: 0 auto; }

.kicker {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.28em;
  color: var(--aluminum);
  text-transform: uppercase;
  margin-bottom: 20px;
  display: flex; align-items: center; gap: 12px;
}
.kicker-line {
  width: 24px; height: 1px;
  background: linear-gradient(to right, var(--aluminum), transparent);
}
html[dir="rtl"] .kicker-line {
  background: linear-gradient(to left, var(--aluminum), transparent);
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(48px, 6.5vw, 84px);
  line-height: 1.08;
  font-weight: 300;
  margin: 0;
  color: var(--ink);
  letter-spacing: -0.025em;
  max-width: 820px;
  padding-bottom: 8px;
}
html[dir="rtl"] .section-title {
  font-family: var(--serif-ar);
  line-height: 1.25;
  letter-spacing: 0;
  font-size: clamp(44px, 6vw, 76px);
}
.section-title-about {
  font-size: clamp(44px, 5.8vw, 72px);
  line-height: 1.12;
}
html[dir="rtl"] .section-title-about {
  font-size: clamp(40px, 5.5vw, 68px);
  line-height: 1.3;
}
.section-title-contact {
  font-size: clamp(64px, 9vw, 120px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}
html[dir="rtl"] .section-title-contact {
  font-size: clamp(56px, 8vw, 108px);
  line-height: 1.2;
}
.section-body { margin-top: 64px; }

/* ---------- Essays ---------- */
.essay-row {
  display: grid;
  grid-template-columns: 72px 1fr 220px;
  gap: 40px;
  padding: 32px 28px;
  border-bottom: 1px solid var(--rule);
  color: inherit;
  position: relative;
  transition: all 0.4s var(--ease);
}
#essays-list .essay-row:first-of-type { border-top: 1px solid var(--rule); }
.essay-row:hover {
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 40px -18px rgba(0, 0, 0, 0.12);
}
.essay-num {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--aluminum);
}
.essay-date {
  color: rgba(0, 0, 0, 0.4);
  margin-top: 8px; font-size: 10px;
}
.essay-title {
  font-family: var(--serif);
  font-size: 28px; line-height: 1.2;
  color: var(--ink);
  font-weight: 300;
  letter-spacing: -0.015em;
  transition: font-style 0.25s;
}
html[dir="rtl"] .essay-title {
  font-family: var(--serif-ar);
  font-size: 26px; line-height: 1.5;
  letter-spacing: 0;
}
.essay-row:hover .essay-title { font-style: italic; }
.essay-blurb {
  font-family: var(--sans);
  font-size: 14px; line-height: 1.65;
  color: var(--ink-quiet);
  margin-top: 12px;
  max-width: 560px;
  letter-spacing: -0.003em;
}
html[dir="rtl"] .essay-blurb {
  font-family: var(--sans-ar);
  line-height: 1.9;
  letter-spacing: 0;
}
.essay-tags {
  display: flex; flex-wrap: wrap; gap: 6px;
  align-content: flex-start;
  padding-top: 8px;
}
.essay-tag {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 12px;
  background: rgba(142, 142, 147, 0.15);
  color: var(--ink-muted);
  text-transform: lowercase;
}

/* ---------- Projects ---------- */
.projects-grid { display: grid; gap: 20px; }
.project-card {
  padding: 40px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.5));
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow:
    0 10px 40px -16px rgba(0, 0, 0, 0.1),
    var(--ring-shadow);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  transition: all 0.4s var(--ease);
}
.project-card:hover {
  transform: translateY(-2px);
  box-shadow:
    0 30px 80px -24px rgba(0, 0, 0, 0.15),
    var(--ring-shadow);
}
.project-inner {
  display: grid;
  grid-template-columns: 1fr 1.6fr auto;
  gap: 40px; align-items: center;
}
.project-year {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.25em;
  color: var(--aluminum);
  text-transform: uppercase;
}
.project-name {
  font-family: var(--serif);
  font-size: 46px; line-height: 1;
  font-style: italic; font-weight: 300;
  color: var(--ink);
  margin-top: 10px;
  letter-spacing: -0.02em;
}
html[dir="rtl"] .project-name {
  font-family: var(--serif-ar);
  font-size: 40px;
}
.project-role {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(0, 0, 0, 0.5);
  margin-top: 10px;
}
.project-desc {
  font-family: var(--sans);
  font-size: 16px; line-height: 1.6;
  color: var(--ink-muted);
  letter-spacing: -0.003em;
}
html[dir="rtl"] .project-desc {
  font-family: var(--sans-ar);
  line-height: 1.9;
  letter-spacing: 0;
}
.project-links { display: flex; flex-direction: column; gap: 10px; }
.link-squircle {
  padding: 10px 18px;
  border-radius: 14px;
  font-family: var(--sans); font-size: 12px; font-weight: 500;
  display: inline-flex; align-items: center; justify-content: center;
  transition: all 0.2s;
  letter-spacing: 0.01em;
  border: 1px solid rgba(0, 0, 0, 0.12);
  color: var(--ink-soft);
}
html[dir="rtl"] .link-squircle { font-family: var(--sans-ar); }
.link-squircle:hover {
  background: rgba(0, 0, 0, 0.05);
  transform: translateY(-1px);
}
.link-squircle.primary {
  background: linear-gradient(180deg, #1d1d1f, #000000);
  color: #ffffff;
  border-color: #000000;
}
.link-squircle.primary:hover {
  background: linear-gradient(180deg, #1d1d1f, #000000);
}

/* ---------- About ---------- */
.bio {
  display: grid; gap: 48px;
  max-width: 780px;
}
.bio-p {
  font-family: var(--serif);
  font-size: 24px; line-height: 1.6;
  color: var(--ink-soft);
  font-weight: 300; margin: 0;
  letter-spacing: -0.008em;
}
html[dir="rtl"] .bio-p {
  font-family: var(--serif-ar);
  font-size: 22px; line-height: 2;
  letter-spacing: 0;
}
.meta-card {
  margin-top: 80px;
  padding: 32px 36px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.5));
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow:
    0 10px 40px -16px rgba(0, 0, 0, 0.1),
    var(--ring-shadow);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  max-width: 900px;
}
.meta-label {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--aluminum);
  text-transform: uppercase;
}
.meta-value {
  font-family: var(--serif);
  font-size: 18px;
  font-style: italic;
  color: var(--ink);
  margin-top: 8px;
  line-height: 1.35;
  font-weight: 400;
}
html[dir="rtl"] .meta-value {
  font-family: var(--serif-ar);
}

/* ---------- Contact ---------- */
.contact-lede {
  font-family: var(--sans);
  font-size: 20px; line-height: 1.55;
  color: var(--ink-faint);
  max-width: 560px;
  margin: 24px 0 0;
  letter-spacing: -0.003em;
}
html[dir="rtl"] .contact-lede {
  font-family: var(--sans-ar);
  font-size: 19px; line-height: 1.9;
  letter-spacing: 0;
}
.contact-grid {
  margin-top: 72px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  max-width: 900px;
}
.contact-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px 26px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.4));
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--ring-shadow);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: all 0.3s var(--ease);
}
.contact-row:hover {
  transform: translateY(-1px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0.8));
  box-shadow:
    0 12px 32px -14px rgba(0, 0, 0, 0.15),
    var(--ring-shadow);
}
.contact-label {
  font-family: var(--serif);
  font-size: 22px;
  font-style: italic;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.01em;
}
html[dir="rtl"] .contact-label { font-family: var(--serif-ar); }
.contact-handle {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.12em;
  color: rgba(0, 0, 0, 0.5);
  transition: color 0.2s;
}
.contact-row:hover .contact-handle { color: var(--ink); }

/* ---------- Footer ---------- */
.footer {
  padding: 48px 40px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  display: flex; justify-content: space-between;
  max-width: var(--max);
  margin: 60px auto 0;
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.25em;
  color: rgba(0, 0, 0, 0.4);
  text-transform: uppercase;
  gap: 16px;
  flex-wrap: wrap;
}

/* =========================================================
   Responsive
   ========================================================= */

/* Tablets */
@media (max-width: 960px) {
  .hero { padding: 110px 28px 80px; }
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .hero-portrait { width: 300px; height: 360px; order: -1; justify-self: center; }
  html[dir="rtl"] .hero-copy { order: 2; }
  html[dir="rtl"] .hero-portrait { order: -1; }
  .hero-tagline { margin-top: 40px; }
  .hero-cta { margin-top: 36px; }

  .section { padding: 100px 28px; }
  .section-body { margin-top: 48px; }

  .essay-row {
    grid-template-columns: 56px 1fr;
    gap: 24px;
    padding: 28px 20px;
  }
  .essay-tags { grid-column: 1 / -1; padding-top: 0; }

  .project-inner {
    grid-template-columns: 1fr;
    gap: 24px; align-items: start;
  }
  .project-card { padding: 32px; }
  .project-links { flex-direction: row; flex-wrap: wrap; }

  .meta-card {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px; padding: 28px;
  }

  .contact-grid { grid-template-columns: 1fr; }
}

/* Phones */
@media (max-width: 640px) {
  .nav { top: 12px; }
  .nav-inner {
    gap: 10px;
    padding: 8px 8px 8px 16px;
    border-radius: 22px;
  }
  html[dir="rtl"] .nav-inner { padding: 8px 16px 8px 8px; }
  .nav-brand { font-size: 17px; }
  .nav-links { gap: 0; }
  .nav-link { padding: 6px 8px; font-size: 12px; }
  .nav-divider { display: none; }
  .nav-divider-lang { display: inline-block; }
  .nav-lang { padding: 6px 10px; font-size: 11px; }

  .hero { padding: 96px 20px 110px; }
  .hero-portrait { width: 240px; height: 290px; }
  .hero-title { margin-top: 24px; }
  .hero-tagline { font-size: 17px; margin-top: 28px; }
  html[dir="rtl"] .hero-tagline { font-size: 17px; }
  .hero-cta { margin-top: 28px; gap: 10px; }
  .btn { padding: 13px 22px; font-size: 13px; }

  .section { padding: 80px 20px; }
  .section-body { margin-top: 36px; }
  .kicker { font-size: 10px; letter-spacing: 0.22em; }

  .essay-row {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 24px 16px;
  }
  .essay-row:hover { border-radius: 18px; }
  .essay-num { display: flex; gap: 12px; align-items: baseline; }
  .essay-date { margin-top: 0; }

  .project-card { padding: 24px; border-radius: 22px; }
  .project-name { font-size: 34px; }
  html[dir="rtl"] .project-name { font-size: 30px; }

  .meta-card {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 56px;
  }

  .bio { gap: 32px; }
  .bio-p { font-size: 19px; }
  html[dir="rtl"] .bio-p { font-size: 19px; }

  .contact-row { padding: 18px 20px; }
  .contact-label { font-size: 18px; }

  .footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 36px 20px;
  }

  .scroll-hint { bottom: 20px; }
}

/* Very narrow */
@media (max-width: 380px) {
  .nav-links { display: none; }
}