/* ═══════════════════════════════════════════════════════════
   Mazen Alowaibdi — alowaibdi.me
   "Compiled Thought" — editorial-terminal portfolio
   ═══════════════════════════════════════════════════════════ */

*,
*::before,
*::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  /* Ink (background spectrum) */
  --ink:    #0b0b0d;
  --ink-2:  #131318;
  --ink-3:  #1c1c23;

  /* Bone (foreground spectrum — warm paper) */
  --bone:   #f1ede4;
  --bone-2: #d3cec1;
  --bone-3: #8a877e;
  --mute:   #6a6862;

  /* Signal accents */
  --lime:   #d6f25c;        /* primary — "active / running" */
  --lime-d: #b4cf3d;
  --vermil: #ff6b3d;        /* secondary — "thought mark" */
  --sky:    #7ec5ff;        /* tertiary — "code / cool" */

  /* Surfaces & rules */
  --surface:  rgba(241, 237, 228, 0.025);
  --surface2: rgba(241, 237, 228, 0.05);
  --rule:     rgba(241, 237, 228, 0.08);
  --rule-2:   rgba(241, 237, 228, 0.16);

  /* Type stacks */
  --serif: 'Fraunces', 'Tajawal', Georgia, serif;
  --sans:  'Inter Tight', 'IBM Plex Sans', 'Tajawal', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono:  'JetBrains Mono', 'Tajawal', ui-monospace, SFMono-Regular, monospace;

  /* Geometry */
  --radius: 4px;
  --radius-md: 8px;
  --nav-h: 64px;
  --maxw: 1180px;
  --ease:  cubic-bezier(.22, 1, .36, 1);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  overflow-x: hidden;
  background: var(--ink);
}

body {
  background: var(--ink);
  color: var(--bone);
  font-family: var(--sans);
  font-size: 16.5px;
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
@media (min-width: 1100px) { body { font-size: 17px; } }

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

a { color: var(--bone); text-decoration: none; transition: color .25s var(--ease); }
a:hover { color: var(--lime); }
a:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 2px; }

img { max-width: 100%; display: block; }
ul { list-style: none; }

/* Custom scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb { background: var(--ink-3); border-radius: 0; }
::-webkit-scrollbar-thumb:hover { background: var(--lime-d); }

/* ── Background — fine grid + corner glow + edge marks ── */
#bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(241,237,228,0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(241,237,228,0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: -1px -1px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 35%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 35%, #000 30%, transparent 100%);
}
#bg-glow {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(800px circle at 85% 12%, rgba(214, 242, 92, 0.06), transparent 60%),
    radial-gradient(700px circle at 10% 90%, rgba(255, 107, 61, 0.05), transparent 60%);
}
#bg-noise {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.045;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 220px;
}

/* Edge marginalia — vertical mono labels at far edges (desktop only) */
.edge-mark {
  position: fixed;
  z-index: 2;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--bone-3);
  text-transform: uppercase;
  pointer-events: none;
  opacity: 0.55;
}
.edge-mark.left {
  left: 18px;
  top: 50%;
  transform: rotate(-90deg) translateX(50%);
  transform-origin: left top;
  white-space: nowrap;
}
.edge-mark.right {
  right: 18px;
  top: 50%;
  transform: rotate(90deg) translateX(-50%);
  transform-origin: right top;
  white-space: nowrap;
}
@media (max-width: 1100px) { .edge-mark { display: none; } }

/* Console — bottom-left running status */
.console {
  position: fixed;
  left: 24px;
  bottom: 18px;
  z-index: 50;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--bone-3);
  letter-spacing: 0.04em;
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.console-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 3px rgba(214, 242, 92, 0.18);
  animation: pulseDot 2s var(--ease) infinite;
}
@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .55; transform: scale(.85); }
}
@media (max-width: 720px) { .console { left: 14px; bottom: 14px; font-size: 10px; } }

/* ─────────────────────────  NAV  ───────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  background: rgba(11, 11, 13, 0.7);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--rule);
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
.nav.scrolled {
  background: rgba(11, 11, 13, 0.92);
  border-bottom-color: var(--rule-2);
}

.nav-logo {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--bone);
  text-transform: uppercase;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav-logo::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--lime);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--lime);
}
.nav-logo span { color: var(--vermil); font-weight: 800; }

.nav-links {
  display: flex;
  gap: 1.6rem;
  align-items: center;
}
.nav-links a {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--bone-3);
  letter-spacing: 0.06em;
  position: relative;
  transition: color .25s var(--ease);
  padding: 4px 0;
}
.nav-links a::before {
  content: attr(data-num) ' ';
  color: var(--mute);
  margin-right: 4px;
  font-weight: 500;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--bone);
}
.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: var(--lime);
}

.nav-cta {
  padding: 8px 16px;
  background: var(--lime);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: transform .2s var(--ease), background .2s var(--ease);
}
.nav-cta:hover { transform: translateY(-1px); background: #e6ff66; color: var(--ink); }
.nav-cta:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }

.nav-right { display: flex; align-items: center; gap: 12px; }

.lang-toggle {
  width: 38px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--rule-2);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.lang-toggle:hover { border-color: var(--lime); background: rgba(214, 242, 92, 0.08); }
.lang-toggle-label {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--bone);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 110;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--bone);
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    inset: 0 -100% 0 auto;
    width: min(320px, 86vw);
    height: 100vh;
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem;
    background: rgba(11, 11, 13, 0.97);
    border-left: 1px solid var(--rule-2);
    transition: right .35s var(--ease);
    padding: 2rem;
  }
  .nav-links.open { right: 0; }
  .nav-links a { font-size: 14px; }
}

/* ─────────────────────  SECTION SHARED  ───────────────────── */
.section {
  position: relative;
  z-index: 10;
  padding: clamp(4rem, 10vh, 7rem) clamp(1.5rem, 5vw, 4rem);
  max-width: var(--maxw);
  margin: 0 auto;
}
.section-head {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-bottom: 3rem;
  position: relative;
}
.section-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--lime);
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.section-num::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--lime);
}
.section-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.1rem, 5.2vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--bone);
  font-variation-settings: "opsz" 144, "SOFT" 30;
  max-width: 22ch;
}
.section-title em {
  font-style: italic;
  font-weight: 500;
  color: var(--vermil);
  font-variation-settings: "opsz" 144, "SOFT" 50;
}
.section-sub {
  font-family: var(--sans);
  font-size: clamp(1rem, 1.7vw, 1.1rem);
  color: var(--bone-2);
  line-height: 1.7;
  max-width: 60ch;
}

/* ──────────────────────────  HERO  ────────────────────────── */
.hero {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--nav-h) + 2rem) clamp(1.5rem, 5vw, 4rem) 3rem;
  max-width: var(--maxw);
  margin: 0 auto;
  gap: 2.4rem;
}

/* Top bar — coordinate label + thin rule + status */
.hero-topbar {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
}
.hero-coord {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--bone-3);
  text-transform: uppercase;
  font-weight: 500;
  flex-shrink: 0;
}
.hero-rule-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--rule-2), transparent 80%);
}
.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: var(--bone-3);
  text-transform: uppercase;
  font-weight: 500;
  flex-shrink: 0;
}
.hero-status-dot {
  width: 7px;
  height: 7px;
  background: var(--lime);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(214, 242, 92, 0.18);
  animation: pulseDot 2s infinite;
}

.hero-inner {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* Hero name — ONE line editorial */
.hero-name {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 8vw, 6rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--bone);
  margin-bottom: 1.4rem;
  font-variation-settings: "opsz" 144, "SOFT" 30;
  white-space: nowrap;
}
.hero-name .name-first {
  font-style: normal;
  font-weight: 500;
  color: var(--bone);
}
.hero-name .name-last {
  font-style: italic;
  font-weight: 500;
  color: var(--bone);
  font-variation-settings: "opsz" 144, "SOFT" 40;
}
.hero-name .name-dot {
  color: var(--vermil);
  font-style: italic;
  font-weight: 700;
  display: inline-block;
  margin-left: -0.04em;
}
@media (max-width: 720px) {
  .hero-name { white-space: normal; font-size: clamp(2.4rem, 11vw, 4.4rem); line-height: 1.05; }
}

.hero-name-ar {
  display: none;
  font-family: 'Tajawal', sans-serif;
  font-size: clamp(1.05rem, 2vw, 1.4rem);
  color: var(--bone-2);
  font-weight: 400;
  margin-top: 0.4rem;
  letter-spacing: 0;
}
html[dir="rtl"] .hero-name-ar { display: block; }

.hero-role {
  font-family: var(--sans);
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--bone-2);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.hero-role .role-prefix {
  font-family: var(--mono);
  font-size: 0.85em;
  color: var(--bone-3);
  letter-spacing: 0.04em;
}
.hero-role .role-prefix::before {
  content: '> ';
  color: var(--lime);
  font-weight: 700;
}
.hero-role .role-text {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--vermil);
  font-size: 1.15em;
  font-variation-settings: "opsz" 144, "SOFT" 50;
}
.hero-role .role-cursor {
  color: var(--lime);
  font-weight: 700;
  animation: blink 1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.hero-desc {
  font-family: var(--sans);
  font-size: clamp(1rem, 1.7vw, 1.1rem);
  color: var(--bone);
  line-height: 1.75;
  max-width: 52ch;
  margin-bottom: 2rem;
  font-weight: 400;
}

/* Hero meta strip — small data row */
.hero-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 2rem;
  padding: 12px 16px;
  border: 1px solid var(--rule-2);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(241, 237, 228, 0.025), transparent);
  width: fit-content;
}
.hero-meta-item {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--bone-3);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.hero-meta-item .meta-num {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--lime);
  letter-spacing: 0;
}
.hero-meta-item .meta-lbl {
  font-size: 10px;
  color: var(--bone-3);
}
.hero-meta-sep {
  width: 1px;
  height: 18px;
  background: var(--rule-2);
}
@media (max-width: 480px) {
  .hero-meta { width: 100%; flex-wrap: wrap; gap: 10px; }
  .hero-meta-sep { display: none; }
}

.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.btn-primary {
  background: var(--lime);
  color: var(--ink);
  border-color: var(--lime);
}
.btn-primary:hover {
  background: #e6ff66;
  color: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(214, 242, 92, 0.22);
}
.btn-secondary {
  background: transparent;
  color: var(--bone);
  border-color: var(--rule-2);
}
.btn-secondary:hover {
  border-color: var(--bone);
  color: var(--bone);
  transform: translateY(-2px);
  background: var(--surface2);
}
.btn:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }

/* Hero right — manifest panel (terminal window) */
.manifest {
  background: var(--ink-2);
  border: 1px solid var(--rule-2);
  border-radius: 10px;
  padding: 0;
  position: relative;
  font-family: var(--mono);
  color: var(--bone-2);
  box-shadow:
    0 40px 80px -30px rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(214, 242, 92, 0.025),
    inset 0 1px 0 rgba(241, 237, 228, 0.04);
  overflow: hidden;
}

/* Chrome / window bar */
.manifest-chrome {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  background: linear-gradient(180deg, rgba(241, 237, 228, 0.045), rgba(241, 237, 228, 0.012));
  border-bottom: 1px solid var(--rule-2);
}
.chrome-dots {
  display: flex;
  gap: 7px;
  align-items: center;
  flex-shrink: 0;
}
.cd {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
  box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.25);
}
.cd-r { background: #ff5f57; }
.cd-y { background: #febc2e; }
.cd-g { background: #28c840; }
.chrome-title {
  flex: 1;
  text-align: center;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--bone-3);
  letter-spacing: 0.02em;
}
.chrome-meta {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--mute);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  flex-shrink: 0;
}

/* Manifest body */
.manifest-body {
  padding: 1.2rem 1.4rem 1.3rem;
}
.manifest-row {
  display: grid;
  grid-template-columns: 70px 14px 1fr;
  gap: 10px;
  padding: 7px 0;
  align-items: baseline;
  font-family: var(--mono);
  border-bottom: 1px dashed transparent;
  transition: border-color .25s var(--ease);
}
.manifest-row:hover { border-bottom-color: var(--rule); }

.manifest-key {
  color: var(--bone-3);
  letter-spacing: 0.08em;
  font-size: 10.5px;
  text-transform: uppercase;
  font-weight: 500;
}
.manifest-arrow {
  color: var(--lime);
  font-weight: 700;
  font-size: 12px;
  text-align: center;
  line-height: 1;
}
.manifest-val {
  color: var(--bone);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.manifest-val .accent  { color: var(--lime);   font-weight: 700; }
.manifest-val .accent2 { color: var(--vermil); font-weight: 700; }
.manifest-val .accent3 { color: var(--sky);    font-weight: 700; }
.manifest-val .dim     { color: var(--bone-3); font-weight: 400; }

.status-pulse {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 3px rgba(214, 242, 92, 0.2);
  animation: pulseDot 2s infinite;
  margin-right: 7px;
  vertical-align: middle;
  transform: translateY(-1px);
}

/* Manifest foot — prompt line */
.manifest-foot {
  padding: 11px 1.4rem 13px;
  border-top: 1px solid var(--rule-2);
  background: rgba(241, 237, 228, 0.012);
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--bone-2);
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 7px;
}
.foot-prompt {
  color: var(--lime);
  font-weight: 700;
}
.foot-text {
  flex: 1;
  color: var(--bone);
  font-weight: 500;
}
.foot-cursor {
  color: var(--lime);
  font-weight: 700;
  animation: blink 1s step-end infinite;
}

html[dir="rtl"] .manifest { direction: ltr; text-align: left; }

/* ────────────────────────  ABOUT  ──────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }

.about-text p {
  font-size: clamp(1.02rem, 1.7vw, 1.12rem);
  color: var(--bone);
  line-height: 1.85;
  margin-bottom: 1.2rem;
  max-width: 62ch;
  font-weight: 400;
}
.about-text p:last-child { margin-bottom: 0; }
.about-text strong {
  color: var(--bone);
  font-weight: 600;
}
.about-text em {
  font-family: var(--serif);
  font-style: italic;
  color: var(--vermil);
  font-weight: 400;
  font-size: 1.04em;
}

.spec-card {
  background: var(--ink-2);
  border: 1px solid var(--rule-2);
  border-radius: var(--radius-md);
  padding: 1.6rem;
  font-family: var(--mono);
  font-size: 12.5px;
}
.spec-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px dashed var(--rule);
  gap: 1rem;
}
.spec-row:last-child { border-bottom: none; }
.spec-key {
  color: var(--bone-3);
  letter-spacing: 0.06em;
  font-size: 10.5px;
  text-transform: uppercase;
  flex-shrink: 0;
}
.spec-val {
  color: var(--bone);
  text-align: right;
  font-size: 12.5px;
}
.spec-val .dot {
  width: 6px; height: 6px;
  background: var(--lime);
  border-radius: 50%;
  display: inline-block;
  margin-right: 6px;
  vertical-align: middle;
  box-shadow: 0 0 6px var(--lime);
}
html[dir="rtl"] .spec-val { text-align: left; }

/* ──────────────────────  PRINCIPLES  ────────────────────── */
.principles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0;
  border-top: 1px solid var(--rule-2);
  border-left: 1px solid var(--rule-2);
}
.principle {
  border-right: 1px solid var(--rule-2);
  border-bottom: 1px solid var(--rule-2);
  padding: 1.8rem 1.6rem 1.6rem;
  position: relative;
  transition: background .3s var(--ease);
}
.principle:hover {
  background: var(--surface);
}
.principle:hover .principle-num { color: var(--lime); }
.principle-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--bone-3);
  margin-bottom: 0.7rem;
  display: block;
  transition: color .3s var(--ease);
}
.principle-text {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.1rem, 1.9vw, 1.3rem);
  line-height: 1.42;
  color: var(--bone);
  letter-spacing: -0.005em;
  font-variation-settings: "opsz" 144, "SOFT" 40;
  margin-bottom: 0.8rem;
}
.principle-text .mark {
  color: var(--vermil);
}
.principle-note {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--bone-2);
  letter-spacing: 0.01em;
  line-height: 1.6;
}

/* ────────────────────  EXPERIENCE / TIMELINE  ──────────────────── */
.timeline {
  position: relative;
  padding-left: 2.2rem;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 12px;
  bottom: 12px;
  width: 1px;
  background: linear-gradient(180deg, var(--lime), var(--rule) 50%, transparent);
}
.timeline-item { position: relative; margin-bottom: 2.5rem; }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-dot {
  position: absolute;
  left: -2.2rem;
  top: 8px;
  width: 13px; height: 13px;
  border-radius: 50%;
  border: 2px solid var(--lime);
  background: var(--ink);
  box-shadow: 0 0 0 4px rgba(214, 242, 92, 0.12);
}

.exp-card {
  background: var(--ink-2);
  border: 1px solid var(--rule-2);
  border-radius: var(--radius-md);
  padding: 1.6rem 1.8rem;
  transition: border-color .3s var(--ease);
}
.exp-card:hover { border-color: rgba(214, 242, 92, 0.3); }

.exp-header {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px dashed var(--rule);
}
.exp-role {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  color: var(--bone);
  letter-spacing: -0.005em;
  font-variation-settings: "opsz" 144, "SOFT" 40;
}
.exp-company {
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--bone-2);
}
.exp-company::before { content: '· '; color: var(--bone-3); }
.exp-date {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--lime);
  letter-spacing: 0.1em;
  margin-left: auto;
}
html[dir="rtl"] .exp-date { margin-left: 0; margin-right: auto; }

.exp-list { color: var(--bone-2); font-size: 1rem; line-height: 1.8; }
.exp-list li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.6rem;
}
.exp-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--lime);
  font-family: var(--mono);
  font-weight: 700;
}
html[dir="rtl"] .exp-list li { padding-left: 0; padding-right: 1.4rem; }
html[dir="rtl"] .exp-list li::before { left: auto; right: 0; content: '←'; }

/* ────────────────────────  SKILLS  ──────────────────────── */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1px;
  background: var(--rule-2);
  border: 1px solid var(--rule-2);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.skill-cat {
  background: var(--ink-2);
  padding: 1.6rem 1.5rem 1.4rem;
  transition: background .3s var(--ease);
}
.skill-cat:hover { background: var(--ink-3); }

.skill-cat-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1.1rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px dashed var(--rule);
}
.skill-cat-icon {
  width: 28px; height: 28px;
  background: rgba(214, 242, 92, 0.1);
  border: 1px solid rgba(214, 242, 92, 0.3);
  border-radius: var(--radius);
  color: var(--lime);
  display: flex;
  align-items: center;
  justify-content: center;
}
.skill-cat-icon svg { width: 14px; height: 14px; stroke-width: 2; }
.skill-cat-num {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--bone-3);
  letter-spacing: 0.18em;
  margin-left: auto;
}
html[dir="rtl"] .skill-cat-num { margin-left: 0; margin-right: auto; }
.skill-cat-name {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1.08rem;
  color: var(--bone);
  letter-spacing: -0.005em;
  font-variation-settings: "opsz" 144, "SOFT" 40;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.skill-tag {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 5px 10px;
  color: var(--bone-2);
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  transition: all .25s var(--ease);
}
.skill-tag:hover {
  border-color: var(--lime);
  color: var(--lime);
  background: rgba(214, 242, 92, 0.06);
  transform: translateY(-1px);
}

/* ──────────────────────  PROJECTS  ────────────────────── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
}
@media (max-width: 760px) { .projects-grid { grid-template-columns: 1fr; } }

.project {
  background: var(--ink-2);
  border: 1px solid var(--rule-2);
  border-radius: var(--radius-md);
  padding: 1.8rem 1.7rem;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  transition: border-color .3s var(--ease), transform .3s var(--ease);
  overflow: hidden;
}
.project::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--lime), transparent);
  opacity: 0;
  transition: opacity .3s var(--ease);
}
.project:hover {
  border-color: rgba(214, 242, 92, 0.3);
  transform: translateY(-3px);
}
.project:hover::before { opacity: 1; }

.project-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.4rem;
}
.project-num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--bone-3);
  letter-spacing: 0.2em;
}
.project-num .dot {
  display: inline-block;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--lime);
  margin-right: 6px;
  vertical-align: middle;
}
.project-tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--vermil);
  text-transform: uppercase;
  padding: 3px 8px;
  border: 1px solid rgba(255, 107, 61, 0.4);
  border-radius: var(--radius);
}

.project-title {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.3rem, 2.5vw, 1.6rem);
  line-height: 1.2;
  color: var(--bone);
  letter-spacing: -0.01em;
  font-variation-settings: "opsz" 144, "SOFT" 40;
  margin: 0.2rem 0 0.5rem;
}

.project-desc {
  color: var(--bone-2);
  font-size: 0.98rem;
  line-height: 1.7;
  flex: 1;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.7rem;
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px dashed var(--rule);
}
.project-tech span {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--bone-3);
  letter-spacing: 0.04em;
}
.project-tech .sep { color: var(--lime); }

/* ─────────────────────  EDUCATION  ──────────────────── */
.edu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}
@media (max-width: 760px) { .edu-grid { grid-template-columns: 1fr; } }

.edu-card {
  background: var(--ink-2);
  border: 1px solid var(--rule-2);
  border-radius: var(--radius-md);
  padding: 1.7rem 1.7rem;
}
.edu-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.edu-item + .edu-item {
  margin-top: 1rem;
  padding-top: 1.2rem;
  border-top: 1px dashed var(--rule);
}
.edu-icon {
  width: 36px; height: 36px;
  border-radius: var(--radius);
  background: rgba(214, 242, 92, 0.08);
  border: 1px solid rgba(214, 242, 92, 0.25);
  color: var(--lime);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.edu-icon svg { width: 16px; height: 16px; stroke-width: 2; }
.edu-details h3 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1.1rem;
  line-height: 1.3;
  color: var(--bone);
  margin-bottom: 0.2rem;
  font-variation-settings: "opsz" 144, "SOFT" 40;
}
.edu-details p {
  font-size: 0.86rem;
  color: var(--bone-2);
  margin-bottom: 0.2rem;
  line-height: 1.55;
}
.edu-details .edu-date {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--lime);
  letter-spacing: 0.1em;
}

.cert-head {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1.15rem;
  color: var(--bone);
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 10px;
  font-variation-settings: "opsz" 144, "SOFT" 40;
}
.cert-list { display: flex; flex-direction: column; gap: 0.7rem; }
.cert-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.55rem 0;
  border-bottom: 1px dashed var(--rule);
}
.cert-item:last-child { border-bottom: none; }
.cert-bullet {
  width: 6px; height: 6px;
  background: var(--lime);
  border-radius: 50%;
  flex-shrink: 0;
}
.cert-name {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--bone-2);
  letter-spacing: 0.02em;
}

/* ─────────────────────  LANGUAGES + STRENGTHS  ──────────────────── */
.lang-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 1.2rem;
}
@media (max-width: 760px) { .lang-grid { grid-template-columns: 1fr; } }

.lang-card,
.strength-card {
  background: var(--ink-2);
  border: 1px solid var(--rule-2);
  border-radius: var(--radius-md);
  padding: 1.7rem;
}
.lang-card-head,
.strength-card-head {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1.15rem;
  color: var(--bone);
  margin-bottom: 1.2rem;
  font-variation-settings: "opsz" 144, "SOFT" 40;
}
.lang-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 0;
  border-bottom: 1px dashed var(--rule);
  gap: 1rem;
}
.lang-row:last-child { border-bottom: none; }
.lang-name {
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--bone);
  font-weight: 500;
}
.lang-bar {
  margin-top: 0.4rem;
  height: 2px;
  background: var(--rule-2);
  border-radius: 1px;
  overflow: hidden;
  width: 180px;
  max-width: 100%;
}
.lang-bar-fill {
  height: 100%;
  background: var(--lime);
  border-radius: 1px;
  transition: width 1.2s var(--ease);
}
.lang-level {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--lime);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.strength-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.strength-tag {
  font-family: var(--mono);
  font-size: 11px;
  padding: 6px 11px;
  color: var(--bone-2);
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all .25s var(--ease);
  letter-spacing: 0.01em;
}
.strength-tag:hover {
  border-color: var(--vermil);
  color: var(--vermil);
  background: rgba(255, 107, 61, 0.06);
}
.strength-tag svg { width: 12px; height: 12px; stroke-width: 2; }

/* ────────────────────────  RESUME  ──────────────────────── */
html[dir="ltr"] [data-resume-lang="ar"] { display: none; }
html[dir="rtl"] [data-resume-lang="en"] { display: none; }

.resume-shell {
  max-width: 760px;
  margin: 0 auto;
  background: var(--ink-2);
  border: 1px solid var(--rule-2);
  border-radius: var(--radius-md);
  padding: clamp(1.5rem, 3vw, 2.2rem);
  display: flex;
  gap: 2rem;
  align-items: center;
}
@media (max-width: 640px) {
  .resume-shell { flex-direction: column; text-align: center; }
}

.resume-doc {
  width: 130px;
  height: 175px;
  background: var(--ink);
  border: 1px solid var(--rule-2);
  border-radius: var(--radius);
  padding: 14px 12px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.resume-shell:hover .resume-doc {
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5);
}
.doc-bar {
  width: 100%;
  height: 2px;
  background: var(--lime);
  margin-bottom: 4px;
}
.doc-line {
  width: 100%;
  height: 3px;
  background: var(--rule-2);
  border-radius: 1px;
}
.doc-line.title { width: 70%; height: 6px; background: var(--bone); }
.doc-line.sub   { width: 45%; background: var(--vermil); }
.doc-line.short { width: 55%; }
.doc-line.mid   { width: 80%; }
.doc-spacer    { height: 5px; }
.doc-spacer-sm { height: 2px; }
.doc-stamp {
  position: absolute;
  bottom: 8px;
  right: 8px;
  font-family: var(--mono);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--lime);
  border: 1px solid var(--lime);
  padding: 2px 5px;
  border-radius: 2px;
}

.resume-doc.rtl { align-items: flex-end; }
.resume-doc.rtl .doc-stamp { right: auto; left: 8px; }

.resume-info { flex: 1; display: flex; flex-direction: column; gap: 0.7rem; }
.resume-info-head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.2rem;
}
.resume-lang-badge {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  background: var(--lime);
  color: var(--ink);
  padding: 4px 8px;
  border-radius: var(--radius);
}
.resume-lang-badge.ar { background: var(--vermil); color: var(--ink); }
.resume-info h3 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1.35rem;
  color: var(--bone);
  font-variation-settings: "opsz" 144, "SOFT" 40;
}
.resume-desc {
  font-size: 0.92rem;
  color: var(--bone-2);
  line-height: 1.65;
}
.resume-meta { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.resume-meta-tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--bone-3);
  border: 1px solid var(--rule-2);
  padding: 4px 8px;
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.resume-meta-tag svg { width: 11px; height: 11px; stroke-width: 2; }
.resume-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 0.3rem; }
.resume-alt {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--bone-3);
  letter-spacing: 0.04em;
}
.resume-alt a { color: var(--lime); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 640px) {
  .resume-info-head { justify-content: center; }
  .resume-meta { justify-content: center; }
  .resume-actions { justify-content: center; }
}

/* ────────────────────────  CONTACT  ──────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 1.5rem;
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-list {
  background: var(--ink-2);
  border: 1px solid var(--rule-2);
  border-radius: var(--radius-md);
  padding: 1.7rem;
  display: flex;
  flex-direction: column;
}
.contact-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px dashed var(--rule);
}
.contact-row:first-child { padding-top: 0; }
.contact-row:last-child { border-bottom: none; padding-bottom: 0; }
.contact-icon {
  width: 36px; height: 36px;
  border-radius: var(--radius);
  background: rgba(214, 242, 92, 0.08);
  border: 1px solid rgba(214, 242, 92, 0.25);
  color: var(--lime);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-icon svg { width: 15px; height: 15px; stroke-width: 2; }
.contact-icon.gh { color: var(--bone-2); border-color: var(--rule-2); background: var(--surface); }
.contact-icon.gh svg { fill: currentColor; }

.contact-meta {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--bone-3);
  text-transform: uppercase;
  margin-bottom: 2px;
}
.contact-val {
  font-size: 0.95rem;
  color: var(--bone);
}
.contact-val a { color: var(--bone); }
.contact-val a:hover { color: var(--lime); }

.contact-cta {
  background: var(--ink-2);
  border: 1px solid var(--rule-2);
  border-radius: var(--radius-md);
  padding: 2rem 1.8rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
  position: relative;
  overflow: hidden;
}
.contact-cta::before {
  content: '';
  position: absolute;
  top: -40%; right: -25%;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(214, 242, 92, 0.1), transparent 65%);
  pointer-events: none;
}
.contact-cta h3 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.5rem, 2.7vw, 1.9rem);
  line-height: 1.25;
  color: var(--bone);
  font-variation-settings: "opsz" 144, "SOFT" 40;
}
.contact-cta h3 .mark { color: var(--vermil); }
.contact-cta p {
  font-size: 0.96rem;
  color: var(--bone-2);
  line-height: 1.65;
  max-width: 36ch;
}
.contact-cta .btn { align-self: flex-start; margin-top: 0.4rem; }
html[dir="rtl"] .contact-cta .btn { align-self: flex-end; }

/* ────────────────────────  FOOTER  ──────────────────────── */
.footer {
  position: relative;
  z-index: 10;
  border-top: 1px solid var(--rule);
  padding: 2.2rem clamp(1.5rem, 5vw, 4rem);
  margin-top: 2rem;
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--bone-3);
  letter-spacing: 0.04em;
}
.footer-sig {
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-sig::before {
  content: '◆';
  color: var(--lime);
}
.footer-sig a { color: var(--bone-2); }
.footer-sig a:hover { color: var(--lime); }
.footer-links { display: flex; gap: 1.2rem; align-items: center; }
.footer-links a {
  color: var(--bone-3);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.footer-links a:hover { color: var(--lime); }
.footer-links svg { width: 13px; height: 13px; fill: currentColor; }

/* ──────────────────────  REVEAL  ───────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-d1 { transition-delay: 80ms; }
.reveal-d2 { transition-delay: 160ms; }
.reveal-d3 { transition-delay: 240ms; }
.reveal-d4 { transition-delay: 320ms; }

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

/* ──────────────────────  RTL  ───────────────────── */
html[dir="rtl"] {
  --serif: 'Tajawal', 'Fraunces', Georgia, serif;
  --sans:  'Tajawal', system-ui, sans-serif;
}
html[dir="rtl"] body { font-family: 'Tajawal', sans-serif; }
html[dir="rtl"] .hero-name {
  font-family: 'Tajawal', sans-serif;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0;
  font-size: clamp(2.4rem, 8vw, 5rem);
  white-space: nowrap;
}
html[dir="rtl"] .hero-name .name-dot { color: var(--vermil); font-style: normal; }
html[dir="rtl"] .hero-name .name-last,
html[dir="rtl"] .section-title em,
html[dir="rtl"] .principle-text,
html[dir="rtl"] .exp-role,
html[dir="rtl"] .skill-cat-name,
html[dir="rtl"] .project-title,
html[dir="rtl"] .edu-details h3,
html[dir="rtl"] .cert-head,
html[dir="rtl"] .lang-card-head,
html[dir="rtl"] .strength-card-head,
html[dir="rtl"] .resume-info h3,
html[dir="rtl"] .contact-cta h3,
html[dir="rtl"] .section-title {
  font-family: 'Tajawal', sans-serif;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0;
}
html[dir="rtl"] .principle-text { font-weight: 600; }
html[dir="rtl"] .hero-role .role-text { font-style: normal; font-family: 'Tajawal', sans-serif; }
html[dir="rtl"] .nav-links a::before { margin-right: 0; margin-left: 4px; }

/* Force LTR for tech / mono items in Arabic */
html[dir="rtl"] .skill-tag,
html[dir="rtl"] .project-tech,
html[dir="rtl"] .exp-date,
html[dir="rtl"] .nav-logo,
html[dir="rtl"] .cert-name,
html[dir="rtl"] .resume-meta-tag,
html[dir="rtl"] .footer-sig,
html[dir="rtl"] .footer-links,
html[dir="rtl"] .console,
html[dir="rtl"] .principle-num,
html[dir="rtl"] .skill-cat-num,
html[dir="rtl"] .project-num,
html[dir="rtl"] .section-num {
  direction: ltr;
  unicode-bidi: isolate;
}

html[dir="rtl"] .timeline { padding-left: 0; padding-right: 2.2rem; }
html[dir="rtl"] .timeline::before { left: auto; right: 6px; }
html[dir="rtl"] .timeline-dot { left: auto; right: -2.2rem; }


/* ──────────────────────  RESPONSIVE FINE-TUNE  ───────────────────── */
@media (max-width: 600px) {
  .hero-topbar { gap: 8px; }
  .hero-coord { font-size: 9.5px; }
  .hero-status { font-size: 9.5px; letter-spacing: 0.1em; }
}
@media (max-width: 480px) {
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; justify-content: center; }
  .nav-cta { display: none; }
  .manifest-body { padding: 1rem 1.1rem 1.1rem; }
  .manifest-row { grid-template-columns: 60px 12px 1fr; gap: 8px; }
  .manifest-val { font-size: 12px; }
  .manifest-foot { padding-left: 1.1rem; padding-right: 1.1rem; }
  .chrome-title { font-size: 10px; }
}
