/* ============================================
   DESIGN TOKENS
   ============================================ */
:root {
  --bg:          #ffffff;
  --page-bg:     #e8e4de;
  --text:        #1D181C;
  --red:         #CC3D35;
  --teal:        #86B8B5;
  --dark:        #1D181C;
  --dark-text:   #FFF7EE;
  --muted:       #777;
  --faint:       #ebebeb;
  --max-w:       1100px;
  --font-head:   'Rubik', sans-serif;
  --font-body:   'Assistant', sans-serif;
}

/* ============================================
   RESET
   ============================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 20px; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--page-bg);
  color: var(--text);
  direction: rtl;
  line-height: 1.7;
  padding: 40px 32px;
}
.site {
  background: var(--bg);
  max-width: var(--max-w);
  margin: 0 auto;
  box-shadow: 0 4px 48px rgba(0,0,0,0.12);
  overflow: clip;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ============================================
   TYPOGRAPHY HELPERS
   ============================================ */
.t-hero    { font-family: var(--font-head); font-weight: 900; font-size: 80px; line-height: 0.92; letter-spacing: -3px; }
.t-section { font-family: var(--font-head); font-weight: 900; font-size: 42px; letter-spacing: -1.5px; }
.t-project { font-family: var(--font-head); font-weight: 900; font-size: 56px; letter-spacing: -2px; }
.t-card    { font-family: var(--font-head); font-weight: 700; font-size: 18px; line-height: 1.35; }
.t-eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
}
.t-body    { font-family: var(--font-body); font-weight: 400; font-size: 20px; line-height: 1.8; }
.t-small   { font-family: var(--font-body); font-weight: 600; font-size: 14px; }
.t-stat    { font-family: var(--font-head); font-weight: 900; font-size: 36px; letter-spacing: -1px; }

/* ============================================
   LAYOUT
   ============================================ */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 48px;
}
.section { padding: 80px 0; }

/* ============================================
   NAV
   ============================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--faint);
}
.nav__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 48px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__logo {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 18px;
  letter-spacing: -0.5px;
  color: var(--text);
}
.nav__links {
  display: flex;
  gap: 32px;
  direction: ltr;
}
.nav__links a {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  color: var(--teal);
  transition: opacity 0.2s;
}
.nav__links a:hover { opacity: 0.7; }
.nav__links a.active { text-decoration: underline; }
.nav__back {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  color: var(--teal);
  direction: ltr;
}
.nav__back:hover { opacity: 0.7; }

/* Mobile hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
}
.nav__mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--bg);
  border-top: 1px solid var(--faint);
  padding: 16px 24px;
  gap: 16px;
}
.nav__mobile-menu a {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  color: var(--teal);
  padding: 8px 0;
}
.nav__mobile-menu.open { display: flex; }

/* ============================================
   HERO
   ============================================ */
.hero {
  padding: 88px 0 72px;
  border-bottom: 1px solid var(--faint);
  text-align: center;
}
.hero__eyebrow {
  color: var(--red);
  margin-bottom: 20px;
}
.hero__title {
  color: var(--text);
  margin-bottom: 28px;
}
.hero__body {
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 36px;
  font-size: 20px;
  line-height: 1.8;
  font-family: var(--font-body);
}
.hero__line {
  width: 48px;
  height: 3px;
  background: var(--red);
  border: none;
  margin: 0 auto 28px;
}
.hero__ctas { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.btn-primary {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1px;
  padding: 14px 28px;
}
.btn-primary:hover { opacity: 0.9; }
.btn-outline {
  display: inline-block;
  border: 2px solid var(--text);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1px;
  padding: 12px 28px;
}
.btn-outline:hover { background: var(--text); color: var(--bg); }

/* ============================================
   STATS ROW
   ============================================ */
.stats {
  display: flex;
  border-bottom: 1px solid var(--faint);
  align-items: flex-start;
}
.stats__item {
  flex: 1;
  padding: 28px 48px;
  border-left: 1px solid var(--faint);
}
.stats__item:last-child { border-left: none; }
.stats__num {
  color: var(--red);
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1;
}
.stats__num img { width: 36px; height: 36px; object-fit: contain; }
.stats__label {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text);
  margin-top: 6px;
}
.stats__label-sub {
  font-family: var(--font-body);
  font-size: 14px;
  color: #bbb;
  margin-top: 2px;
}

/* ============================================
   PROJECTS SECTION
   ============================================ */
.projects { }
.projects__header {
  margin-bottom: 32px;
}
.projects__eyebrow {
  color: var(--teal);
  margin-bottom: 8px;
}
.projects__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.card {
  padding: 24px;
  background: var(--bg);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.10);
}
.card--red   { border: 2px solid var(--red); }
.card--teal  { border: 2px solid var(--teal); }
.card--dark  { border: 2px solid var(--text); }
.card__tag {
  margin-bottom: 12px;
}
.card__tag--red   { color: var(--red); }
.card__tag--teal  { color: var(--teal); }
.card__tag--dark  { color: var(--text); }
.card__title {
  color: var(--text);
  margin-bottom: 10px;
}
.card__desc {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--muted);
  line-height: 1.7;
  flex: 1;
  margin-bottom: 16px;
}
.card__arrow {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 18px;
  display: block;
}
.card__arrow--red   { color: var(--red); }
.card__arrow--teal  { color: var(--teal); }
.card__arrow--dark  { color: var(--text); }

/* ============================================
   ABOUT STRIP
   ============================================ */
.about {
  background: var(--dark);
  padding: 80px 0;
}
.about__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.about__eyebrow {
  color: var(--teal);
  margin-bottom: 16px;
}
.about__title {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 36px;
  letter-spacing: -1px;
  line-height: 1.1;
  color: var(--dark-text);
  margin-bottom: 20px;
}
.about__body {
  font-family: var(--font-body);
  font-size: 20px;
  color: #aaa;
  line-height: 1.8;
}
.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  align-content: start;
}
.skill-tag {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 11px;
  padding: 8px 12px;
  border: 1px solid #333;
  color: #ccc;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
  background: var(--dark);
  padding: 48px 48px 32px;
}
.footer__top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-bottom: 32px;
  border-bottom: 1px solid #2e2e2e;
  margin-bottom: 24px;
  gap: 20px;
}
.footer__logo {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 26px;
  letter-spacing: -1px;
  color: var(--dark-text);
}
.footer__tagline {
  font-family: var(--font-body);
  font-size: 20px;
  color: #999;
  margin-top: 6px;
  direction: ltr;
}
.footer__contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}
.footer__contact-item {
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  transition: color 0.2s;
}
.footer__contact-item:hover { color: var(--teal); }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer__nav {
  display: flex;
  gap: 24px;
  direction: rtl;
}
.footer__nav a {
  font-family: var(--font-body);
  font-size: 20px;
  color: #999;
  transition: color 0.2s;
}
.footer__nav a:hover { color: var(--teal); }
.footer__copy {
  font-family: var(--font-body);
  font-size: 20px;
  color: #999;
  direction: ltr;
}
@media (max-width: 768px) {
  footer { padding: 36px 24px 24px; }
  .footer__top { flex-direction: column; gap: 24px; }
  .footer__contact { align-items: flex-start; }
  .footer__bottom { flex-direction: column-reverse; gap: 16px; align-items: flex-start; }
}

/* ============================================
   PROJECT PAGE — HERO
   ============================================ */
.project-hero {
  padding: 64px 0 48px;
  border-bottom: 4px solid;  /* color set inline per project */
}
.project-hero__eyebrow {
  margin-bottom: 16px;
}
.project-hero__title {
  color: var(--text);
  margin-bottom: 16px;
}
.project-hero__subtitle {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 20px;
  color: #999;
  margin-bottom: 24px;
}
.project-hero__challenge {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 20px;
  color: var(--text);
  max-width: 640px;
}

/* ============================================
   PROJECT PAGE — BRIEF SECTION
   ============================================ */
.brief {
  padding: 40px 0;
  border-bottom: 1px solid var(--faint);
}
.brief__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}
.brief__heading {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 22px;
  margin-bottom: 16px;
  color: var(--text);
}
.brief__body {
  font-family: var(--font-body);
  font-size: 20px;
  color: var(--muted);
  line-height: 1.55;
}

/* ============================================
   PROJECT PAGE — PEDAGOGICAL RATIONALE
   ============================================ */
.rationale {
  padding: 40px 0;
  border-bottom: 1px solid var(--faint);
}
.rationale__heading {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 28px;
  margin-bottom: 8px;
}
.rationale__heading-en {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 24px;
  direction: ltr;
}
.rationale__block {
  border-right: 4px solid;  /* color set inline per project */
  padding-right: 24px;
  max-width: 720px;
}
.rationale__text {
  font-family: var(--font-body);
  font-size: 20px;
  color: var(--muted);
  line-height: 1.55;
}

/* ============================================
   PROJECT PAGE — WORKSHOP PLAN TABLE
   ============================================ */
.workshop-plan {
  padding: 40px 0;
  border-bottom: 1px solid var(--faint);
}
.workshop-plan__heading {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 28px;
  margin-bottom: 8px;
}
.workshop-plan__heading-en {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 24px;
  direction: ltr;
}
.workshop-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-body);
  font-size: 14px;
}
.workshop-table th {
  background: var(--dark);
  color: #fff;
  padding: 12px 16px;
  text-align: right;
  font-weight: 600;
  font-size: 16px;
}
.workshop-table td {
  padding: 14px 16px;
  vertical-align: top;
  line-height: 1.7;
  font-size: 17px;
  color: var(--text);
}
.workshop-table tr:nth-child(even) td { background: #f5f1eb; }
.workshop-table tr:nth-child(odd)  td { background: var(--bg); }

/* ============================================
   PROJECT PAGE — PRESENTATION EMBED
   ============================================ */
.presentation {
  padding: 40px 0;
  border-bottom: 1px solid var(--faint);
}
.presentation__heading {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 28px;
  margin-bottom: 8px;
}
.presentation__heading-en {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 24px;
  direction: ltr;
}
.presentation__iframe {
  width: 100%;
  height: 600px;
  border: 1px solid var(--faint);
}
.presentation__download {
  display: none;
}
.btn-download {
  display: inline-block;
  padding: 14px 28px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  border: 2px solid;  /* color set inline */
  margin-top: 8px;
}

/* ============================================
   PROJECT PAGE — NEXT PROJECT STRIP
   ============================================ */
.next-project {
  background: var(--dark);
  padding: 40px 0;
  cursor: pointer;
}
.next-project__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.next-project__label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--teal);
}
.next-project__title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 24px;
  color: var(--dark-text);
}
.next-project__title:hover { opacity: 0.8; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1200px) {
  body { padding: 24px 16px; }
}

@media (max-width: 1100px) {
  .container { padding: 0 48px; }
  .about__inner { padding: 0 48px; }
}

@media (max-width: 768px) {
  body { padding: 0; }
  .site { box-shadow: none; }
  .container { padding: 0 24px; }
  .section { padding: 48px 0; }

  /* Nav */
  .nav__inner { padding: 0 24px; }
  .nav__links { display: none; }
  .nav__hamburger { display: flex; }

  /* Hero */
  .hero { padding: 56px 0 48px; }
  .t-hero { font-size: 48px; letter-spacing: -2px; }
  .t-section { font-size: 28px; }
  .t-project { font-size: 36px; }
  .t-stat { font-size: 28px; }

  /* Stats */
  .stats { flex-wrap: wrap; }
  .stats__item {
    flex: 1 1 50%;
    padding: 20px 24px;
    border-left: none;
    border-bottom: 1px solid var(--faint);
  }

  /* Projects grid */
  .projects__grid { grid-template-columns: 1fr; }

  /* About */
  .about__inner {
    grid-template-columns: 1fr;
    padding: 0 24px;
    gap: 40px;
  }
  .about { padding: 48px 0; }

  /* Footer */
  footer {
    flex-direction: column;
    gap: 12px;
    text-align: center;
    padding: 24px;
  }

  /* Project page */
  .brief__grid { grid-template-columns: 1fr; gap: 32px; }
  .next-project__inner { flex-direction: column; gap: 12px; text-align: center; padding: 0 24px; }

  /* PDF embed → download button */
  .presentation__iframe { display: none; }
  .presentation__download { display: block; }
}

@media (max-width: 480px) {
  .container { padding: 0 24px; }
  .t-hero { font-size: 40px; letter-spacing: -1.5px; }
  .stats__item { flex: 1 1 100%; }
}

/* ============================================
   CV / ABOUT PAGE
   ============================================ */

/* --- Page header --- */
.cv-header {
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--faint);
}
.cv-header__row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  flex-wrap: wrap;
}
.cv-header__name {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 56px;
  letter-spacing: -2.5px;
  line-height: 1;
  color: var(--text);
}
.cv-header__role {
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 400;
  color: var(--muted);
  margin-top: 10px;
}
.cv-header__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 20px;
  color: var(--muted);
  direction: ltr;
}
.cv-header__actions a { color: var(--text); }
.btn-cv-download {
  display: inline-block;
  padding: 13px 28px;
  background: var(--red);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1px;
  transition: opacity 0.2s;
  white-space: nowrap;
}
.btn-cv-download:hover { opacity: 0.88; }

/* --- About strip (full-width) --- */
.cv-about {
  padding: 40px 0;
  border-bottom: 1px solid var(--faint);
  background: #fafafa;
}
.cv-about__text {
  font-family: var(--font-body);
  font-size: 20px;
  color: var(--text);
  line-height: 1.85;
  max-width: 760px;
}

/* --- Body layout --- */
.cv-body {
  display: grid;
  grid-template-columns: 1fr 280px;
}
.cv-main {
  padding: 56px 48px 80px;
  border-left: 1px solid var(--faint);
}
.cv-side {
  padding: 56px 32px 80px;
  background: #fafafa;
}

/* --- Section heading --- */
.cv-section { margin-bottom: 52px; }
.cv-section:last-child { margin-bottom: 0; }
.cv-section__heading {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 22px;
  color: var(--text);
  letter-spacing: -0.5px;
  margin-bottom: 4px;
}
.cv-section__rule {
  width: 36px;
  height: 3px;
  background: var(--red);
  border: none;
  margin: 0 0 24px;
}

/* --- Experience entries --- */
.cv-job { margin-bottom: 32px; padding-bottom: 32px; border-bottom: 1px solid var(--faint); }
.cv-job:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.cv-job__dates {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 700;
  color: var(--teal);
  letter-spacing: 0.5px;
  margin-bottom: 6px;
  direction: ltr;
}
.cv-job__org {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 20px;
  color: var(--text);
  line-height: 1.2;
}
.cv-job__role {
  font-family: var(--font-body);
  font-size: 20px;
  color: var(--muted);
  margin: 6px 0 12px;
}
.cv-job__bullets { list-style: none; padding: 0; }
.cv-job__bullets li {
  font-family: var(--font-body);
  font-size: 20px;
  color: var(--text);
  line-height: 1.75;
  padding-right: 16px;
  position: relative;
  margin-bottom: 5px;
}
.cv-job__bullets li::before {
  content: '—';
  position: absolute;
  right: 0;
  color: var(--red);
  font-weight: 700;
}

/* --- Education entries --- */
.cv-edu { margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--faint); }
.cv-edu:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.cv-edu__dates {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 700;
  color: var(--teal);
  letter-spacing: 0.5px;
  margin-bottom: 4px;
  direction: ltr;
}
.cv-edu__degree {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 20px;
  color: var(--text);
  line-height: 1.3;
}
.cv-edu__note {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 700;
  color: var(--red);
  margin-top: 2px;
}
.cv-edu__school {
  font-family: var(--font-body);
  font-size: 20px;
  color: var(--muted);
  margin-top: 3px;
}

/* --- Skills & Languages --- */
.cv-skills-list { display: flex; flex-wrap: wrap; gap: 6px; }
.cv-skill {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  padding: 6px 14px;
  background: var(--teal);
  border: 1px solid var(--teal);
  border-radius: 20px;
  color: #fff;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .cv-body { grid-template-columns: 1fr; }
  .cv-main { padding: 40px 24px; border-left: none; border-bottom: 1px solid var(--faint); }
  .cv-side { padding: 40px 24px; }
  .cv-header { padding: 40px 0 32px; }
  .cv-header__name { font-size: 40px; }
  .cv-header__row { flex-direction: column; align-items: flex-start; gap: 20px; }
}
