/* =============================================
   Husam Z. Rizeq — husam.top
   Civil Engineer Portfolio · Earth & Desert palette
   ============================================= */

:root {
  /* Palette — sand & earth */
  --sand-50:  #FBF7F0;
  --sand-100: #F4ECDC;
  --sand-200: #E7D7B6;
  --sand-300: #D2B98A;
  --sand-400: #B79560;
  --clay-500: #B0623F;
  --clay-600: #8B4A2D;
  --earth-700:#5C3D2A;
  --earth-800:#3D2817;
  --earth-900:#1F1410;
  --ink:      #241A12;
  --ink-soft: #5B4736;
  --line:     rgba(60,40,20,.12);
  --line-soft:rgba(60,40,20,.06);
  --accent:   #D97706;       /* desert sun amber */
  --accent-2: #7A5A2C;       /* deeper amber */
  --green:    #4F6E3D;
  --shadow-sm: 0 1px 2px rgba(50,30,10,.06), 0 1px 1px rgba(50,30,10,.04);
  --shadow-md: 0 8px 24px -8px rgba(50,30,10,.18), 0 2px 6px rgba(50,30,10,.06);
  --shadow-lg: 0 24px 48px -16px rgba(50,30,10,.25), 0 8px 16px -8px rgba(50,30,10,.12);

  /* Type */
  --f-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --f-body:    'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --f-mono:    'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;
  --f-arabic:  'Tajawal', system-ui, sans-serif;

  /* Layout */
  --maxw: 1200px;
  --gutter: clamp(20px, 4vw, 56px);
  --radius: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
}

/* Arabic */
html[data-lang="ar"] {
  --f-display: 'Tajawal', system-ui, sans-serif;
  --f-body: 'Tajawal', system-ui, sans-serif;
}
html[data-lang="ar"] body {
  direction: rtl;
  text-align: right;
  letter-spacing: 0;
}
html[data-lang="ar"] .timeline { padding-right: 0; padding-left: 0; }

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--sand-50);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s ease, opacity .2s ease; }
a:hover { color: var(--clay-600); }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
hr { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }
ul, ol { padding: 0; margin: 0; list-style: none; }

::selection { background: var(--sand-300); color: var(--earth-900); }

/* Typography */
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 600; letter-spacing: -.015em; line-height: 1.15; margin: 0; color: var(--earth-900); }
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--clay-600);
}
.kicker::before { content: ""; width: 28px; height: 1px; background: currentColor; }
html[data-lang="ar"] .kicker::before { display: none; }
.kicker.on-dark { color: var(--sand-300); }

/* ================= TOPBAR ================= */
.topbar {
  position: sticky; top: 0; z-index: 60;
  display: flex; align-items: center; gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(251,247,240,.86);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--earth-800); }
.brand-mark {
  display: inline-grid; place-items: center;
  width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(135deg, var(--sand-300), var(--clay-500));
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--f-display); font-weight: 600; font-size: 15.5px; }
.brand-role { font-family: var(--f-mono); font-size: 11px; color: var(--ink-soft); letter-spacing: .04em; }
.topnav { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.topnav a { color: var(--ink-soft); font-size: 14px; font-weight: 500; }
.topnav a:hover { color: var(--earth-900); }
html[data-lang="ar"] .topnav { margin-left: 0; margin-right: auto; }
.topbar-actions { display: flex; gap: 10px; align-items: center; }

@media (max-width: 900px) {
  .topnav { display: none; }
}

/* Buttons */
.btn-primary, .btn-outline, .btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 10px;
  font-weight: 600; font-size: 14px;
  transition: transform .15s ease, background .2s ease, border-color .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--earth-800); color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--earth-900); color: #fff; transform: translateY(-1px); }
.btn-outline {
  background: transparent; color: var(--earth-800);
  border: 1.5px solid var(--earth-800);
}
.btn-outline:hover { background: var(--earth-800); color: #fff; }
.btn-outline.on-dark { color: var(--sand-100); border-color: var(--sand-300); }
.btn-outline.on-dark:hover { background: var(--sand-100); color: var(--earth-900); }
.btn-ghost {
  background: var(--sand-100); color: var(--earth-800);
  padding: 8px 12px; font-size: 12.5px; letter-spacing: .04em;
}
.btn-ghost:hover { background: var(--sand-200); }
.btn-ghost .lang-sep { opacity: .35; margin: 0 4px; }
.btn-primary.lg, .btn-outline.lg { padding: 14px 22px; font-size: 15px; border-radius: 12px; }

/* Active language indicator */
html[data-lang="en"] .lang-en { color: var(--earth-900); font-weight: 700; }
html[data-lang="en"] .lang-ar { color: var(--ink-soft); opacity: .55; }
html[data-lang="ar"] .lang-ar { color: var(--earth-900); font-weight: 700; }
html[data-lang="ar"] .lang-en { color: var(--ink-soft); opacity: .55; }

/* ================= HERO ================= */
.hero {
  position: relative;
  min-height: 88vh;
  display: grid;
  align-items: center;
  isolation: isolate;
  padding: clamp(48px, 8vw, 110px) var(--gutter) clamp(64px, 9vw, 130px);
  overflow: hidden;
  color: var(--sand-50);
}
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-img {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(.62) saturate(1.1) contrast(1.05);
  transform: scale(1.04);
}
.hero-veil {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(31,20,16,.15), transparent 60%),
    linear-gradient(180deg, rgba(31,20,16,.45) 0%, rgba(31,20,16,.55) 45%, rgba(31,20,16,.85) 100%);
}
.hero-dunes {
  position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 200px;
  color: var(--sand-50);
}
.hero-grid {
  position: relative; z-index: 1;
  width: 100%; max-width: var(--maxw); margin-inline: auto;
  display: grid; grid-template-columns: 1.4fr .9fr; gap: clamp(28px, 5vw, 80px);
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-mono); font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--sand-200);
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.18);
  padding: 8px 14px; border-radius: 999px;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.hero-eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: #6cd071; box-shadow: 0 0 0 4px rgba(108,208,113,.18); }
.hero-title { font-size: clamp(38px, 6.5vw, 78px); font-weight: 600; letter-spacing: -.02em; margin: 22px 0 18px; color: #fff; }
.hero-title .t-line { display: block; }
.hero-title .t-sub { display: block; font-family: var(--f-body); font-size: clamp(15px, 1.7vw, 20px); font-weight: 500; letter-spacing: .01em; color: var(--sand-200); margin-top: 14px; }
.hero-lede { font-size: clamp(15px, 1.5vw, 17.5px); max-width: 60ch; color: rgba(255,255,255,.86); line-height: 1.7; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-cta .btn-primary { background: var(--accent); color: #fff; }
.hero-cta .btn-primary:hover { background: #b86205; }
.hero-cta .btn-outline { color: #fff; border-color: rgba(255,255,255,.55); }
.hero-cta .btn-outline:hover { background: #fff; color: var(--earth-900); }
.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 44px; max-width: 560px; }
.hero-stats li { display: flex; flex-direction: column; gap: 4px; padding: 14px 0; border-top: 1px solid rgba(255,255,255,.18); }
.hero-stats strong { font-family: var(--f-display); font-size: clamp(24px, 3vw, 34px); color: #fff; line-height: 1; }
.hero-stats strong span { color: var(--accent); margin-left: 2px; }
.hero-stats li > span { font-size: 12px; color: var(--sand-200); letter-spacing: .04em; }

/* Hero card */
.hero-card {
  background: rgba(251,247,240,.96);
  color: var(--ink);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,.4);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.card-row { display: flex; flex-direction: column; gap: 2px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.card-row:last-of-type { border: 0; }
.card-label { font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.card-value { font-weight: 600; color: var(--earth-900); font-size: 14.5px; }
.card-link {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0; font-size: 14px; color: var(--earth-800);
  border-bottom: 1px dashed var(--line);
}
.card-link:last-child { border: 0; }
.card-link:hover { color: var(--clay-600); }
.card-link svg { color: var(--clay-500); flex-shrink: 0; }

@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
}

/* ================= SECTIONS ================= */
.section {
  padding: clamp(72px, 9vw, 130px) var(--gutter);
  max-width: var(--maxw);
  margin-inline: auto;
}
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-title { font-size: clamp(28px, 4vw, 46px); margin-top: 14px; }
.section-title.on-dark { color: #fff; }
.section-lede { color: var(--ink-soft); font-size: clamp(15px, 1.5vw, 17.5px); margin-top: 16px; line-height: 1.7; max-width: 64ch; }
.section-lede.on-dark { color: rgba(255,255,255,.78); }

/* ================= ABOUT ================= */
.section-about { border-top: 1px solid var(--line-soft); }
.about-grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.about-text p { color: var(--ink); font-size: 16.5px; line-height: 1.85; margin: 0 0 18px; }
.about-text p:last-child { margin: 0; }
.about-meta {
  background: var(--sand-100);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--line-soft);
  position: sticky; top: 90px;
}
.about-meta dl { display: grid; gap: 18px; margin: 0; }
.about-meta dt { font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--clay-600); margin-bottom: 4px; }
.about-meta dd { font-weight: 600; color: var(--earth-900); margin: 0; font-size: 15px; line-height: 1.5; }
@media (max-width: 920px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-meta { position: static; }
}

/* ================= DESERT ================= */
.section-desert {
  background:
    linear-gradient(180deg, var(--sand-50) 0%, var(--sand-100) 100%);
  max-width: none;
  position: relative;
  overflow: hidden;
}
.section-desert::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 10% 20%, rgba(176,98,63,.06), transparent 35%),
    radial-gradient(circle at 90% 80%, rgba(217,119,6,.04), transparent 40%);
  pointer-events: none;
}
.section-desert > * { position: relative; max-width: var(--maxw); margin-inline: auto; }
.section-desert > .section-head { max-width: 760px; }

.desert-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  margin-top: clamp(28px, 4vw, 48px);
}
.desert-card {
  background: #fff;
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
  position: relative; overflow: hidden;
}
.desert-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(160deg, transparent 60%, rgba(217,119,6,.04) 100%);
  pointer-events: none;
}
.desert-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.desert-icon {
  display: inline-grid; place-items: center;
  width: 52px; height: 52px; border-radius: 12px;
  color: var(--clay-600);
  background: linear-gradient(135deg, var(--sand-100), var(--sand-200));
  margin-bottom: 18px;
}
.desert-card h3 { font-size: 18.5px; margin-bottom: 10px; }
.desert-card p { color: var(--ink-soft); margin: 0; font-size: 14.5px; line-height: 1.65; }
@media (max-width: 920px) {
  .desert-grid { grid-template-columns: 1fr; }
}

/* ================= PROJECTS ================= */
.section-projects { background: var(--sand-50); }
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: clamp(28px, 4vw, 48px);
}
.project {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease;
  display: flex; flex-direction: column;
}
.project:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.project-feature { grid-column: 1 / -1; flex-direction: row; }
.project-feature .project-img { flex: 1.15; }
.project-feature .project-body { flex: 1; padding: 36px; }
.project-img {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--sand-200);
}
.project-feature .project-img { aspect-ratio: auto; min-height: 380px; }
.project-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.project:hover .project-img img { transform: scale(1.04); }
.project-body { padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.project-tag {
  display: inline-block; align-self: flex-start;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--clay-600);
  background: var(--sand-100);
  padding: 5px 10px; border-radius: 6px;
}
.project-body h3 { font-size: 21px; line-height: 1.25; }
.project-feature .project-body h3 { font-size: 28px; }
.project-body p { color: var(--ink-soft); margin: 0; font-size: 14.5px; line-height: 1.65; }
.project-feature .project-body p { font-size: 16px; }
.project-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: auto; padding-top: 16px; border-top: 1px dashed var(--line); }
.project-meta li { display: flex; flex-direction: column; gap: 2px; }
.project-meta span { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.project-meta b { font-size: 13px; color: var(--earth-900); font-weight: 600; }

@media (max-width: 920px) {
  .projects-grid { grid-template-columns: 1fr; }
  .project-feature { flex-direction: column; }
  .project-feature .project-img { min-height: 260px; }
  .project-feature .project-body { padding: 24px; }
  .project-feature .project-body h3 { font-size: 22px; }
}

/* ================= TIMELINE ================= */
.section-experience { background: var(--sand-50); border-top: 1px solid var(--line-soft); }
.timeline { display: grid; gap: 28px; }
.tl-item {
  display: grid; grid-template-columns: 220px 1fr; gap: 32px;
  position: relative;
  padding-left: 0;
}
.tl-when { padding-top: 24px; }
.tl-when time { font-family: var(--f-mono); font-size: 12.5px; letter-spacing: .08em; color: var(--clay-600); display: block; margin-bottom: 6px; }
.tl-when .tl-loc { font-size: 13px; color: var(--ink-soft); }
.tl-card {
  background: #fff;
  padding: 28px 32px;
  border-radius: var(--radius);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-sm);
  position: relative;
}
.tl-card::before {
  content: ""; position: absolute; left: -16px; top: 32px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--clay-500); border: 3px solid var(--sand-50);
  box-shadow: 0 0 0 1px var(--line);
}
html[data-lang="ar"] .tl-card::before { left: auto; right: -16px; }
.tl-card h3 { font-size: 22px; margin-bottom: 4px; }
.tl-org { color: var(--clay-600); font-weight: 600; font-size: 14.5px; margin: 0 0 14px; }
.tl-card ul { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.tl-card ul li { color: var(--ink); font-size: 15px; line-height: 1.6; padding-left: 22px; position: relative; }
.tl-card ul li::before {
  content: ""; position: absolute; left: 0; top: 10px;
  width: 10px; height: 1.5px; background: var(--clay-500);
}
html[data-lang="ar"] .tl-card ul li { padding-left: 0; padding-right: 22px; }
html[data-lang="ar"] .tl-card ul li::before { left: auto; right: 0; }
.tl-projects { font-size: 14px; color: var(--ink-soft); padding: 14px 16px; background: var(--sand-100); border-radius: 8px; margin: 0; }
.tl-projects b { color: var(--earth-900); }

@media (max-width: 760px) {
  .tl-item { grid-template-columns: 1fr; gap: 12px; }
  .tl-when { padding-top: 0; }
  .tl-card::before { display: none; }
}

/* ================= SKILLS ================= */
.section-skills { background: var(--sand-100); border-top: 1px solid var(--line-soft); }
.section-skills .section-head { max-width: 760px; }
.skills-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: clamp(28px, 4vw, 48px); }
.skill-col h3 {
  font-size: 13px; font-family: var(--f-mono); text-transform: uppercase; letter-spacing: .1em;
  color: var(--clay-600); margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--line);
}
.chip-list { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-list li {
  display: inline-block;
  background: #fff; color: var(--earth-900);
  padding: 7px 13px; border-radius: 8px;
  font-size: 13px; font-weight: 500;
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, background .2s ease;
}
.chip-list li:hover { transform: translateY(-2px); background: var(--sand-50); }
@media (max-width: 920px) { .skills-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .skills-grid { grid-template-columns: 1fr; } }

/* Education + Languages */
.edu-lang { display: grid; grid-template-columns: 1.6fr 1fr; gap: 24px; margin-top: 48px; }
.edu-card {
  background: #fff; border-radius: var(--radius);
  padding: 28px 32px;
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-sm);
}
.edu-card h3 { font-size: 13px; font-family: var(--f-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--clay-600); margin-bottom: 18px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.edu-row { display: flex; flex-direction: column; gap: 4px; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.edu-row:last-of-type { border: 0; padding-bottom: 0; }
.edu-row strong { font-family: var(--f-display); font-size: 17px; color: var(--earth-900); font-weight: 600; }
.edu-row span { color: var(--ink-soft); font-size: 14px; }
.edu-row .edu-meta { font-size: 13px; color: var(--ink-soft); }
.lang-bars { display: grid; gap: 16px; }
.lang-bar { display: grid; grid-template-columns: 90px 1fr 90px; align-items: center; gap: 14px; font-size: 14px; }
.lang-bar .bar { height: 6px; background: var(--sand-200); border-radius: 999px; overflow: hidden; }
.lang-bar .bar > span { display: block; height: 100%; background: linear-gradient(90deg, var(--clay-500), var(--accent)); border-radius: 999px; }
.lang-bar em { font-style: normal; color: var(--ink-soft); font-size: 13px; text-align: right; }
html[data-lang="ar"] .lang-bar em { text-align: left; }
@media (max-width: 760px) { .edu-lang { grid-template-columns: 1fr; } }

/* ================= CONTACT ================= */
.section-contact {
  max-width: none;
  background: var(--earth-900);
  padding: clamp(72px, 9vw, 130px) var(--gutter);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.section-contact::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(217,119,6,.16), transparent 50%),
    radial-gradient(circle at 10% 80%, rgba(176,98,63,.14), transparent 50%);
  pointer-events: none;
}
.contact-card {
  position: relative;
  max-width: 880px; margin-inline: auto;
  text-align: center;
}
.contact-card .kicker { justify-content: center; }
.contact-card .section-title { margin: 18px auto 18px; max-width: 22ch; }
.contact-card .section-lede { margin-inline: auto; }
.contact-actions {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 36px;
}
.contact-actions .btn-primary { background: var(--accent); color: #fff; }
.contact-actions .btn-primary:hover { background: #b86205; }

/* ================= FOOTER ================= */
.footer {
  background: var(--earth-900);
  color: var(--sand-300);
  padding: 26px var(--gutter);
  border-top: 1px solid rgba(255,255,255,.06);
}
.footer-inner {
  max-width: var(--maxw); margin-inline: auto;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 13px;
}
.footer-tech { color: var(--sand-400); margin: 0; }
.footer p { margin: 0; }

/* ================= FAB PRINT ================= */
.fab-print {
  position: fixed; bottom: 24px; right: 24px; z-index: 50;
  width: 50px; height: 50px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--earth-800); color: #fff;
  box-shadow: var(--shadow-lg);
  transition: transform .2s ease, background .2s ease;
}
.fab-print:hover { transform: translateY(-2px); background: var(--earth-900); }
html[data-lang="ar"] .fab-print { right: auto; left: 24px; }

/* ================= REVEAL ON SCROLL ================= */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ================= PRINT ================= */
@media print {
  :root { --gutter: 18px; }
  body { background: #fff; font-size: 11.2pt; }
  .topbar, .fab-print, .no-print, .hero-cta, .contact-actions, .hero-card, .hero-stats { display: none !important; }
  .hero { min-height: auto; padding: 18mm 0 8mm; color: var(--ink); }
  .hero-bg, .hero-veil, .hero-img, .hero-dunes { display: none !important; }
  .hero-grid { display: block; }
  .hero-eyebrow { color: var(--clay-600); background: none; border: 0; padding: 0; }
  .hero-title { color: var(--earth-900); font-size: 28pt; }
  .hero-title .t-sub { color: var(--ink-soft); font-size: 13pt; }
  .hero-lede { color: var(--ink); }
  .section { padding: 8mm 0; max-width: none; }
  .section-desert, .section-projects, .section-experience, .section-skills, .section-contact, .section-about { background: #fff !important; }
  .section-contact { color: var(--ink); border-top: 1px solid var(--line); }
  .section-contact::before { display: none; }
  .section-title.on-dark, .section-lede.on-dark, .kicker.on-dark { color: var(--earth-900) !important; }
  .desert-card, .project, .tl-card, .edu-card, .chip-list li { box-shadow: none !important; border: 1px solid var(--line); break-inside: avoid; }
  .project-img { max-height: 60mm; }
  .projects-grid, .desert-grid, .skills-grid, .edu-lang { display: grid; grid-template-columns: 1fr 1fr; gap: 6mm; }
  .footer { background: #fff; color: var(--ink-soft); border-top: 1px solid var(--line); }
  a { color: inherit; text-decoration: none; }
  h2, h3 { break-after: avoid; }
  .tl-item { grid-template-columns: 28mm 1fr; gap: 6mm; break-inside: avoid; }
  .tl-card::before { display: none; }
}
