/* ============ Tokens ============ */
:root {
  --bg: #f8f6f3;
  --surface: #ffffff;
  --ink: #1d0f18;
  --ink-2: #3a2a34;
  --muted: #6b5f67;
  --line: #e9e3de;
  --plum: #220f1b;
  --plum-2: #2f1826;
  --plum-line: rgba(255, 255, 255, 0.1);
  --on-plum: #f6eff3;
  --on-plum-muted: #b9a8b2;

  --pink: #ee2a6b;
  --pink-soft: #ffe1eb;
  --yellow: #f3c316;
  --yellow-soft: #fff4c7;
  --purple: #7451f0;
  --purple-soft: #ece6ff;
  --teal: #12a184;
  --teal-soft: #d8f5ec;
  --orange: #f26a1b;
  --blue: #2f7ff0;
  --blue-soft: #dceaff;

  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 28px;
  --pill: 999px;

  --f-display: "Alexandria", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --f-body: "IBM Plex Sans Arabic", "Alexandria", system-ui, sans-serif;
  --f-em-ar: "Aref Ruqaa", "Alexandria", serif;
  --f-em-en: "Playfair Display", Georgia, serif;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light;
}

/* ============ Base ============ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3, h4 { font-family: var(--f-display); margin: 0; line-height: 1.2; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--pink); color: #fff; }
[id] { scroll-margin-top: 96px; }

.skip {
  position: absolute; inset-inline-start: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--pill);
  transition: top .2s var(--ease);
}
.skip:focus { top: 16px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.latin { font-family: var(--f-display); direction: ltr; unicode-bidi: isolate; }

/* Accent word (the reference's signature move) */
.em { color: var(--pink); font-weight: 700; font-family: var(--f-em-ar); font-style: normal; padding-inline: .04em; }
html[lang="en"] .em { font-family: var(--f-em-en); font-style: italic; font-weight: 700; }

.eyebrow {
  font-family: var(--f-display);
  font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 14px; display: block;
}
.on-plum .eyebrow { color: var(--on-plum-muted); }

.h2 { font-size: clamp(32px, 4.6vw, 54px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.18; }
html[lang="en"] .h2 { letter-spacing: -0.03em; line-height: 1.08; }
html[lang="en"] .h2 .em { line-height: 1.12; display: inline-block; padding-bottom: .06em; }
.lede { color: var(--muted); font-size: 17px; max-width: 46ch; }
.on-plum .lede { color: var(--on-plum-muted); }

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 52px; padding-inline: 22px 6px; border-radius: var(--pill);
  font-family: var(--f-display); font-weight: 500; font-size: 15px; white-space: nowrap;
  transition: transform .2s var(--ease), background-color .2s, color .2s, box-shadow .2s;
}
.btn:active { transform: scale(.97); }
.btn .ic {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: 18px;
  transition: transform .3s var(--ease);
}
.btn:hover .ic { transform: rotate(-45deg); }
[dir="rtl"] .btn:hover .ic { transform: rotate(45deg); }
.btn-dark { background: var(--ink); color: #fff; box-shadow: 0 10px 24px -12px rgba(29, 15, 24, .6); }
.btn-dark .ic { background: #fff; color: var(--ink); }
.btn-dark:hover { background: var(--pink); }
.btn-light { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.btn-light .ic { background: var(--ink); color: #fff; }
.btn-light:hover { border-color: var(--ink); }
.btn-plain { padding-inline: 22px; }

/* arrows mirror in RTL */
[dir="rtl"] .flip { transform: scaleX(-1); }

/* ============ Nav ============ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
}
.nav-in { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { font-family: var(--f-display); font-weight: 800; font-size: 20px; letter-spacing: .02em; direction: ltr; unicode-bidi: isolate; }
.brand b { color: var(--pink); }
.nav-pill {
  display: flex; gap: 2px; padding: 5px; border-radius: var(--pill);
  background: var(--surface); border: 1px solid var(--line);
  position: absolute; left: 50%; transform: translateX(-50%);
}
.nav-pill a {
  font-family: var(--f-display); font-size: 14px; font-weight: 500;
  padding: 8px 16px; border-radius: var(--pill); color: var(--ink-2);
  transition: background-color .2s, color .2s;
}
.nav-pill a:hover { background: var(--bg); }
.nav-pill a.is-active { background: var(--pink-soft); color: var(--pink); }
.nav-end { display: flex; align-items: center; gap: 8px; }
.lang {
  height: 44px; min-width: 44px; padding-inline: 12px; border-radius: var(--pill);
  border: 1px solid var(--line); background: var(--surface); font-family: var(--f-display); font-weight: 600; font-size: 14px;
  transition: border-color .2s;
}
.lang:hover { border-color: var(--ink); }
.nav .btn { height: 44px; padding-inline: 18px 4px; font-size: 14px; }
.nav .btn .ic { width: 36px; height: 36px; font-size: 16px; }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: #fff; place-items: center; font-size: 20px; }
.menu {
  display: none; position: absolute; top: 72px; inset-inline: 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 10px; box-shadow: 0 24px 48px -24px rgba(34, 15, 27, .35);
  overscroll-behavior: contain;
}
.menu a { display: block; padding: 14px 16px; border-radius: var(--r-sm); font-family: var(--f-display); font-weight: 500; }
.menu a:hover { background: var(--bg); }
.menu.open { display: block; animation: drop .25s var(--ease); }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } }

/* ============ Hero ============ */
.hero { position: relative; padding-top: clamp(40px, 7vw, 80px); text-align: center; overflow: hidden; }
.hero h1 {
  font-size: clamp(36px, 6.2vw, 76px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.22;
  max-width: 16ch; margin-inline: auto;
}
html[lang="en"] .hero h1 { letter-spacing: -0.035em; line-height: 1.08; max-width: 14ch; }
.hero-sub { color: var(--muted); font-size: clamp(16px, 1.6vw, 18px); max-width: 52ch; margin: 22px auto 0; }
.hero-cta { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 30px; }

.float-tile {
  position: absolute; width: 84px; height: 84px; border-radius: 24px;
  display: grid; place-items: center; font-size: 40px; color: #fff;
  box-shadow: inset 0 -8px 0 rgba(0, 0, 0, .12), 0 20px 36px -16px rgba(34, 15, 27, .45);
}
.float-tile.t1 { background: var(--yellow); color: var(--ink); top: 16%; inset-inline-start: 7%; rotate: -14deg; }
.float-tile.t2 { background: var(--teal); top: 34%; inset-inline-end: 8%; rotate: 12deg; }
.float-tile.t3 { background: var(--purple); width: 60px; height: 60px; font-size: 28px; border-radius: 18px; top: 52%; inset-inline-start: 15%; rotate: 10deg; }

/* screen strip + phone */
.stage { position: relative; margin-top: clamp(44px, 6vw, 72px); padding-bottom: 56px; }
.strip { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.strip-track { display: flex; gap: 18px; width: max-content; padding-block: 60px 10px; direction: ltr; }
.shot {
  position: relative; width: 212px; height: 380px; border-radius: 24px; overflow: hidden; flex: none;
  background: var(--plum-2);
}
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.shot::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(20, 8, 15, .78), transparent 45%); }
.shot-meta { position: absolute; inset-inline: 14px; bottom: 14px; z-index: 1; color: #fff; text-align: left; }
.shot-meta strong { display: block; font-family: var(--f-display); font-size: 15px; font-weight: 600; }
.shot-meta span { font-size: 12px; opacity: .75; font-family: var(--f-display); }
.shot-top { position: absolute; top: 12px; inset-inline: 12px; z-index: 1; display: flex; justify-content: space-between; }
.chip {
  font-family: var(--f-display); font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: var(--pill);
  background: rgba(255, 255, 255, .22); color: #fff; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.chip.c-pink { background: var(--pink); }
.chip.c-yellow { background: var(--yellow); color: var(--ink); }
.chip.c-purple { background: var(--purple); }
.chip.c-teal { background: var(--teal); }

.phone {
  position: absolute; left: 50%; top: 0; transform: translateX(-50%); z-index: 3;
  width: 258px; height: 540px; border-radius: 44px; padding: 10px;
  background: #171016;
  box-shadow: 0 0 0 2px #3b2d36, 0 40px 80px -30px rgba(34, 15, 27, .7);
}
.phone::before {
  content: ""; position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
  width: 86px; height: 24px; background: #000; border-radius: var(--pill); z-index: 2;
}
.phone-screen { position: relative; width: 100%; height: 100%; border-radius: 34px; overflow: hidden; background: #fff; }
.phone-screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; transition: opacity .7s var(--ease); }
.phone-screen img.on { opacity: 1; }
.phone-cap {
  position: absolute; left: 50%; bottom: -44px; transform: translateX(-50%);
  font-family: var(--f-display); font-size: 13px; color: var(--muted); white-space: nowrap; direction: ltr;
}

@media (prefers-reduced-motion: no-preference) {
  .strip-track { animation: slide 48s linear infinite; }
  .strip:hover .strip-track { animation-play-state: paused; }
  .float-tile { animation: bob 6s ease-in-out infinite; }
  .float-tile.t2 { animation-delay: -2s; }
  .float-tile.t3 { animation-delay: -4s; }
}
@keyframes slide { to { transform: translateX(-50%); } }
@keyframes bob { 50% { transform: translateY(-14px); } }

/* ============ Stripe divider ============ */
.stripes {
  height: 14px;
  background: repeating-linear-gradient(-45deg, var(--pink) 0 12px, #fff 12px 24px);
}

/* ============ Plum sections ============ */
.on-plum { background: var(--plum); color: var(--on-plum); }
.sec { padding-block: clamp(72px, 9vw, 120px); }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: clamp(36px, 5vw, 56px); flex-wrap: wrap; }
.sec-head .lede { text-align: end; max-width: 34ch; }
.sec-head.stack { display: block; }
.sec-head.stack .lede { text-align: start; margin-top: 16px; max-width: 56ch; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat {
  border-radius: var(--r-lg); padding: 22px 22px 24px; min-height: 230px;
  display: flex; flex-direction: column; justify-content: space-between; color: #fff;
  transition: transform .35s var(--ease);
}
.stat:hover { transform: translateY(-6px) rotate(-1deg); }
.stat-top { display: flex; justify-content: space-between; align-items: center; font-family: var(--f-display); font-size: 15px; font-weight: 500; }
.stat-top i { font-size: 20px; }
.stat-v { font-family: var(--f-display); font-weight: 700; font-size: clamp(48px, 5.4vw, 68px); line-height: 1; letter-spacing: -0.03em; direction: ltr; text-align: start; font-variant-numeric: tabular-nums; }
.stat-k { font-family: var(--f-display); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; opacity: .85; margin-top: 10px; }
.s-pink { background: var(--pink); }
.s-yellow { background: var(--yellow); color: var(--ink); }
.s-purple { background: var(--purple); }
.s-teal { background: var(--teal); }
.stats-note { display: flex; align-items: center; gap: 10px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--plum-line); color: var(--on-plum-muted); font-size: 15px; }
.stats-note i { color: var(--yellow); font-size: 18px; }

/* ============ Work ============ */
.work { display: grid; grid-template-columns: 1.15fr 1fr; grid-template-rows: auto auto; gap: 20px; }
.work-card {
  position: relative; display: flex; flex-direction: column; border-radius: var(--r-lg); overflow: hidden;
  background: var(--surface); border: 1px solid var(--line);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.work-card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -36px rgba(34, 15, 27, .45); }
.work-card.big { grid-row: span 2; }
.work-media { position: relative; overflow: hidden; display: flex; justify-content: center; align-items: flex-end; gap: 14px; padding: 36px 24px 0; flex: 1; min-height: 260px; }
.work-media img { width: 150px; border-radius: 20px 20px 0 0; box-shadow: 0 -10px 40px -10px rgba(0, 0, 0, .35); transition: transform .5s var(--ease); }
.work-card.big .work-media img { width: 196px; }
.work-card.big .work-media img:nth-child(1) { transform: translateY(26px) rotate(-6deg); }
.work-card.big .work-media img:nth-child(3) { transform: translateY(26px) rotate(6deg); }
.work-card:hover .work-media img { transform: translateY(-8px); }
.work-card.big:hover .work-media img:nth-child(1) { transform: translateY(10px) rotate(-8deg); }
.work-card.big:hover .work-media img:nth-child(3) { transform: translateY(10px) rotate(8deg); }
.m-pink { background: var(--pink); }
.m-yellow { background: var(--yellow); }
.m-purple { background: var(--purple); }
.work-badges { position: absolute; top: 16px; inset-inline: 16px; display: flex; justify-content: space-between; align-items: center; z-index: 2; }
.work-go { width: 42px; height: 42px; border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-items: center; font-size: 18px; transition: transform .3s var(--ease); }
.work-card:hover .work-go { transform: rotate(-45deg); }
[dir="rtl"] .work-card:hover .work-go { transform: rotate(45deg); }
.work-body { padding: 22px 24px 24px; }
.work-body h3 { font-size: 24px; font-weight: 700; }
.work-body p { color: var(--muted); margin-top: 6px; font-size: 15px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.tag { font-family: var(--f-display); font-size: 12px; font-weight: 500; padding: 5px 11px; border-radius: var(--pill); background: var(--bg); color: var(--ink-2); direction: ltr; }

/* ============ Skills (plum) ============ */
.skills { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.skill {
  border: 1px solid var(--plum-line); border-radius: var(--r-lg); padding: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .04), transparent);
  transition: background-color .3s, border-color .3s, transform .35s var(--ease);
}
.skill:hover { border-color: rgba(255, 255, 255, .24); transform: translateY(-4px); }
.skill-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 44px; }
.skill-ic { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; font-size: 26px; color: #fff; box-shadow: inset 0 -5px 0 rgba(0, 0, 0, .14); }
.skill-arrow { width: 36px; height: 36px; border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-items: center; font-size: 16px; }
.skill h3 { font-size: 20px; font-weight: 600; }
.skill p { color: var(--on-plum-muted); font-size: 15px; margin-top: 6px; }
.bg-pink { background: var(--pink); } .bg-yellow { background: var(--yellow); color: var(--ink) !important; }
.bg-purple { background: var(--purple); } .bg-teal { background: var(--teal); }
.bg-orange { background: var(--orange); } .bg-blue { background: var(--blue); }

/* ============ Process (pinned) ============ */
.process { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.process-pin { position: sticky; top: 120px; }
.process-num {
  font-family: var(--f-display); font-weight: 800; font-size: clamp(110px, 14vw, 190px); line-height: .9; letter-spacing: -0.05em;
  margin-top: 40px; direction: ltr; text-align: start; color: var(--pink); transition: color .4s;
  text-shadow: 0 30px 60px color-mix(in srgb, currentColor 30%, transparent);
}
.process-name { font-family: var(--f-display); font-weight: 700; font-size: clamp(28px, 3vw, 38px); margin-top: 18px; }
.process-dots { display: flex; gap: 10px; margin-top: 28px; padding: 10px; background: var(--surface); border-radius: 18px; width: max-content; box-shadow: 0 16px 30px -20px rgba(34, 15, 27, .35); }
.process-dots span { width: 34px; height: 34px; border-radius: 10px; opacity: .3; transform: scale(.85); transition: opacity .3s, transform .3s var(--ease); display: grid; place-items: center; color: #fff; font-size: 16px; }
.process-dots span.on { opacity: 1; transform: scale(1); }
.steps { padding-top: 8px; }
.step {
  border-inline-start: 2px solid var(--line); padding: 26px 26px 26px 26px; margin-bottom: 18vh;
  opacity: .4; transition: opacity .4s, border-color .4s;
}
.step:last-child { margin-bottom: 6vh; }
.step.on { opacity: 1; border-color: var(--c, var(--pink)); }
.step h3 { font-size: 20px; font-weight: 600; display: flex; gap: 10px; }
.step h3 b { color: var(--c, var(--pink)); font-weight: 700; direction: ltr; }
.step p { color: var(--muted); margin-top: 8px; max-width: 44ch; }

/* ============ About ============ */
.about { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.about-lead { font-family: var(--f-display); font-size: clamp(20px, 2vw, 24px); font-weight: 500; line-height: 1.6; margin-top: 26px; }
.about-body { color: var(--muted); margin-top: 16px; max-width: 58ch; }
.about-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.about-tags .tag { background: var(--surface); border: 1px solid var(--line); font-size: 13px; padding: 7px 14px; }
.timeline { display: grid; gap: 12px; }
.tl {
  display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px 22px;
}
.tl-ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; color: #fff; }
.tl-when { font-family: var(--f-display); font-size: 13px; color: var(--muted); direction: ltr; display: inline-block; font-variant-numeric: tabular-nums; }
.tl h3 { font-size: 18px; font-weight: 600; margin-top: 2px; }
.tl p { color: var(--muted); font-size: 14px; margin-top: 2px; }

/* ============ Certificates (plum, tilted cards) ============ */
.certs-sec { position: relative; overflow: hidden; }
.certs-title { text-align: center; position: relative; z-index: 1; }
.certs-title .h2 { font-size: clamp(38px, 5.4vw, 66px); }
.certs { position: relative; min-height: 640px; margin-top: -360px; }
.cert {
  position: absolute; width: 260px; border-radius: var(--r-md); padding: 10px;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6);
  transition: transform .4s var(--ease);
}
.cert:hover { transform: rotate(0deg) scale(1.04) !important; z-index: 3; }
.cert-in { background: var(--plum); border-radius: 14px; padding: 20px; min-height: 170px; display: flex; flex-direction: column; justify-content: space-between; gap: 22px; }
.cert-in i { font-size: 30px; }
.cert-in h3 { font-size: 17px; font-weight: 600; color: var(--on-plum); line-height: 1.35; }
.cert-in p { font-size: 13px; color: var(--on-plum-muted); margin-top: 4px; }
.cert.c1 { background: var(--yellow); top: 0; inset-inline-end: 4%; transform: rotate(5deg); }
.cert.c1 i { color: var(--yellow); }
.cert.c2 { background: var(--purple); top: 330px; inset-inline-start: 3%; transform: rotate(-6deg); }
.cert.c2 i { color: #a993ff; }
.cert.c3 { background: var(--teal); top: 20px; inset-inline-start: 8%; transform: rotate(-4deg); }
.cert.c3 i { color: #4fd8b8; }
.cert.c4 { background: var(--pink); top: 360px; inset-inline-end: 7%; transform: rotate(7deg); }
.cert.c4 i { color: #ff7aa5; }

/* ============ Contact ============ */
.contact { text-align: center; padding-block: clamp(80px, 10vw, 130px); }
.contact .h2 { font-size: clamp(40px, 6vw, 76px); }
.contact .lede { margin: 18px auto 0; text-align: center; }
.contact .hero-cta { margin-top: 32px; }

/* ============ Footer ============ */
.footer { border-top: 1px solid var(--line); padding-top: 56px; }
.foot-top { display: grid; grid-template-columns: 1.4fr 1fr 1.4fr; gap: 32px; }
.foot-brand .brand { font-size: 26px; }
.foot-brand p { color: var(--muted); font-size: 15px; margin-top: 10px; max-width: 32ch; }
.foot-col h4 { font-size: 15px; font-weight: 600; margin-bottom: 12px; }
.foot-col a { display: block; color: var(--muted); font-size: 15px; padding-block: 3px; transition: color .2s; }
.foot-col a:hover { color: var(--pink); }
.foot-col .latin { display: inline-block; }
.socials { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 44px; }
.social {
  border-radius: var(--r-md); padding: 26px 16px; display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-family: var(--f-display); font-weight: 500; font-size: 15px;
  transition: transform .3s var(--ease);
}
.social:hover { transform: translateY(-4px); }
.social i { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-size: 24px; color: #fff; }
.sc-blue { background: var(--blue-soft); } .sc-blue i { background: var(--blue); }
.sc-pink { background: var(--pink-soft); } .sc-pink i { background: var(--pink); }
.sc-yellow { background: var(--yellow-soft); } .sc-yellow i { background: var(--yellow); color: var(--ink); }
.sc-purple { background: var(--purple-soft); } .sc-purple i { background: var(--purple); }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 26px; margin-top: 36px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }

/* ============ Reveal ============ */
@media (prefers-reduced-motion: no-preference) {
  .rv { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
  .rv.in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
}

/* ============ Project detail pages ============ */
.back { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-display); font-size: 14px; font-weight: 500; color: var(--muted); padding: 8px 14px 8px 12px; border-radius: var(--pill); border: 1px solid var(--line); background: var(--surface); transition: border-color .2s, color .2s; }
.back:hover { color: var(--ink); border-color: var(--ink); }
.d-hero { padding-top: clamp(28px, 4vw, 48px); }
.d-head { margin-top: 28px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: end; }
.d-head h1 { font-size: clamp(40px, 6vw, 76px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
html[lang="en"] .d-head h1 { letter-spacing: -0.035em; line-height: 1.05; }
.d-head p { color: var(--muted); font-size: 17px; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 40px; }
.fact { border-radius: var(--r-md); padding: 18px 20px; }
.fact span { display: block; font-family: var(--f-display); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; opacity: .7; }
.fact strong { display: block; font-family: var(--f-display); font-size: 19px; font-weight: 600; margin-top: 4px; }
.f-pink { background: var(--pink-soft); } .f-yellow { background: var(--yellow-soft); } .f-purple { background: var(--purple-soft); } .f-teal { background: var(--teal-soft); }

.gallery-band { margin-top: 48px; padding-block: 56px; }
.gallery { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding-inline: var(--gutter); padding-bottom: 8px; scrollbar-width: thin; justify-content: safe center; }
.gallery button { flex: none; width: 230px; border-radius: 26px; overflow: hidden; scroll-snap-align: center; background: #000; box-shadow: 0 30px 50px -30px rgba(0, 0, 0, .7); transition: transform .3s var(--ease); }
.gallery button:hover { transform: translateY(-6px); }
.gallery img { width: 100%; height: 470px; object-fit: cover; object-position: top; }
.gallery.single button { width: 280px; }
.gallery.single img { height: auto; }

.d-body { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(32px, 6vw, 80px); }
.d-body h2 { font-size: 26px; font-weight: 700; margin-bottom: 14px; }
.d-body h2:not(:first-child) { margin-top: 48px; }
.d-body .overview { color: var(--ink-2); font-size: 17px; line-height: 1.9; }
.built { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.built div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px 20px; display: flex; gap: 14px; align-items: flex-start; }
.built b { font-family: var(--f-display); color: var(--pink); direction: ltr; font-size: 15px; }
.built span { font-size: 15px; line-height: 1.6; }
.outcomes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.outcome { border-radius: var(--r-md); padding: 20px; color: #fff; min-height: 140px; display: flex; flex-direction: column; justify-content: space-between; }
.outcome strong { font-family: var(--f-display); font-size: 40px; font-weight: 700; line-height: 1; direction: ltr; text-align: start; }
.outcome span { font-size: 14px; opacity: .9; }
.side { display: grid; gap: 14px; align-content: start; position: sticky; top: 100px; }
.side-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 22px; }
.side-card h3 { font-size: 15px; font-weight: 600; margin-bottom: 12px; color: var(--muted); }
.side-card .tags { margin-top: 0; }
.side-card .btn { height: 46px; font-size: 14px; }
.link-row { display: flex; flex-wrap: wrap; gap: 8px; }
.next { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }

.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(20, 8, 15, .9); display: none; place-items: center; padding: 24px; overscroll-behavior: contain; }
.lightbox.open { display: grid; }
.lightbox img { max-height: 88vh; width: auto; border-radius: 22px; }
.lightbox-close { position: absolute; top: 18px; inset-inline-end: 18px; width: 46px; height: 46px; border-radius: 50%; background: #fff; color: var(--ink); font-size: 22px; display: grid; place-items: center; }

/* ============ Responsive ============ */
@media (max-width: 1080px) {
  .nav-pill { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .skills { grid-template-columns: repeat(2, 1fr); }
  .float-tile.t3 { display: none; }
}
@media (max-width: 860px) {
  .nav-end .btn, .nav-end .lang { display: none; }
  .menu-btn { display: grid; }
  .menu .lang { display: inline-block; margin: 6px 6px 4px; }
  .work { grid-template-columns: 1fr; }
  .work-card.big { grid-row: auto; }
  .process, .about, .d-head, .d-body, .foot-top { grid-template-columns: 1fr; }
  .process-pin { position: static; }
  .process-num { font-size: 110px; margin-top: 24px; }
  .step { margin-bottom: 0; opacity: 1; border-color: var(--c, var(--pink)); }
  .steps { display: grid; gap: 14px; }
  .process-dots { display: none; }
  .certs { min-height: 0; margin-top: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .cert { position: static; width: auto; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .side { position: static; }
  .sec-head .lede { text-align: start; }
  .float-tile { width: 60px; height: 60px; font-size: 28px; border-radius: 18px; }
  .float-tile.t1 { top: 4%; inset-inline-start: 4%; }
  .float-tile.t2 { top: 40%; inset-inline-end: 3%; }
}
@media (max-width: 560px) {
  .stats, .skills, .built, .outcomes, .certs { grid-template-columns: 1fr; }
  .stat { min-height: 170px; }
  .socials { grid-template-columns: repeat(2, 1fr); }
  .shot { width: 160px; height: 300px; }
  .phone { width: 210px; height: 440px; border-radius: 38px; }
  .phone-screen { border-radius: 29px; }
  .phone::before { width: 70px; height: 20px; top: 18px; }
  .strip-track { padding-block: 70px 10px; }
  .hero-cta .btn { flex: 1 1 auto; justify-content: space-between; }
  .float-tile { display: none; }
  .work-media img { width: 120px; }
  .work-card.big .work-media img { width: 104px; }
  .gallery button { width: 200px; }
  .gallery img { height: 410px; }
  .cert { transform: none !important; }
}

[dir="ltr"] .flip-back, [dir="ltr"] .flip-next { transform: scaleX(-1); }

/* ============ Sunshine additions ============ */
.flow { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; counter-reset: f; }
.flow li { counter-increment: f; display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px 10px 10px; border-radius: var(--pill); color: #fff; font-family: var(--f-display); font-weight: 500; font-size: 15px; }
[dir="rtl"] .flow li { padding: 10px 10px 10px 18px; }
.flow li::before { content: counter(f); width: 28px; height: 28px; border-radius: 50%; background: rgba(255, 255, 255, .25); display: grid; place-items: center; font-size: 13px; }
.flow-note { color: var(--muted); font-size: 15px; margin-top: 12px; }
.banner { margin: 48px 0 0; border-radius: var(--r-lg); overflow: hidden; background: #f7ecf4; }
.banner img { width: 100%; }

.work-card.wide { grid-column: 1 / -1; display: grid; grid-template-columns: 1.6fr 1fr; }
.work-card.wide .work-media { padding: 0; align-items: center; min-height: 0; }
.work-card.wide .work-media img { width: 100%; border-radius: 0; box-shadow: none; transform: none; }
.work-card.wide:hover .work-media img { transform: scale(1.02); }
.work-card.wide .work-body { display: flex; flex-direction: column; justify-content: center; padding: 32px; }
.work-card.wide .work-body h3 { font-size: 30px; }
.m-sun { background: #f7ecf4; }
.work-card.wide .work-badges .chip { background: var(--pink); }
@media (max-width: 860px) {
  .work-card.wide { grid-template-columns: 1fr; }
  .work-card.wide .work-media { padding-top: 56px; }
  .work-card.wide .work-body { padding: 22px 24px 24px; }
}

/* iPad-shaped screens (Risha) */
.gallery.tablet button { width: 330px; border-radius: 20px; }
.gallery.tablet img { height: auto; aspect-ratio: 1000 / 1415; object-fit: cover; }
@media (max-width: 560px) { .gallery.tablet button { width: 270px; } }
