:root {
  --espresso: oklch(16.8% 0.012 28);
  --espresso-soft: oklch(21.4% 0.019 30);
  --cream: oklch(98.2% 0.013 71);
  --sand: oklch(92.1% 0.022 63);
  --clay: oklch(74.3% 0.03 43);
  --primary: oklch(68.5% 0.204 31);
  --accent: color-mix(in oklab, var(--cream) 80%, var(--primary));
  --mint: color-mix(in oklab, var(--cream) 82%, oklch(72% 0.08 160));
  --lilac: color-mix(in oklab, var(--cream) 78%, oklch(70% 0.09 300));
  --sky: color-mix(in oklab, var(--cream) 78%, oklch(72% 0.08 230));
  --line: oklch(100% 0 0 / 14%);
  --line-strong: oklch(100% 0 0 / 22%);
  --max: 80rem;
  --font: Manrope, Tajawal, system-ui, sans-serif;
  --display: "Bricolage Grotesque", Tajawal, system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-glow: 0 18px 40px -14px color-mix(in oklab, var(--primary) 60%, transparent);
  --shadow-float: 0 30px 60px -25px color-mix(in oklab, var(--espresso) 45%, transparent);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--espresso);
  color: var(--cream);
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, .font-display { font-family: var(--display); letter-spacing: -0.03em; line-height: 0.98; }
p { margin: 0; }
.ico { display: inline-flex; width: 1rem; height: 1rem; flex-shrink: 0; }
.ico svg { width: 100%; height: 100%; }
[dir="rtl"] .flip { transform: scaleX(-1); }
.skip {
  position: absolute; left: 1rem; top: 1rem; z-index: 20;
  transform: translateY(-150%);
  background: var(--cream); color: var(--espresso);
  padding: 0.5rem 1rem; border-radius: 999px;
}
.skip:focus { transform: none; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.wrap { width: min(var(--max), 100%); margin-inline: auto; padding-inline: 2.5rem; }
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s, backdrop-filter 0.3s;
}
.site-header.is-scrolled {
  background: color-mix(in oklab, var(--espresso) 90%, transparent);
  backdrop-filter: blur(18px);
  border-bottom-color: oklch(100% 0 0 / 10%);
}
.header-bar { position: relative; height: 5rem; display: flex; align-items: center; gap: 1rem; }
.logo img { height: 2.4rem; width: auto; }
.nav { display: none; gap: 0.15rem; position: absolute; left: 50%; transform: translateX(-50%); }
.nav a {
  position: relative;
  padding: 0.45rem 0.9rem; border-radius: 0.7rem; border: 1px solid transparent;
  font-weight: 700; font-size: 0.92rem;
  color: color-mix(in oklab, var(--cream) 82%, transparent);
}
.nav a:hover { color: var(--cream); }
.nav a:not([aria-current="page"])::after {
  content: "";
  position: absolute; left: 0.9rem; right: 0.9rem; bottom: 0.28rem;
  height: 1.5px; background: var(--primary);
  transform: scaleX(0); transform-origin: center;
  transition: transform 1.1s var(--ease);
}
.nav a:not([aria-current="page"]):hover::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--primary); border-color: var(--primary); }
.tools { display: none; align-items: center; gap: 0.75rem; margin-inline-start: auto; }
.lang { display: flex; border: 1px solid var(--line-strong); border-radius: 999px; padding: 0.2rem; }
.lang button, .menu-btn, .filter { background: transparent; border: 0; cursor: pointer; }
.lang button { min-width: 2.6rem; min-height: 2.2rem; border-radius: 999px; font-weight: 800; font-size: 0.78rem; }
.lang button[aria-pressed="true"] { background: var(--cream); color: var(--espresso); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem;
  min-height: 3rem; padding: 0.7rem 1.3rem; border-radius: 999px; width: fit-content;
  font-weight: 700; border: 1px solid transparent;
  transition: transform 0.3s var(--ease), background 0.3s, filter 0.3s, color 0.3s, border-color 0.3s;
}
.btn-brand { background: var(--primary); color: var(--espresso); box-shadow: var(--shadow-glow); }
.tools .btn-brand { min-height: 2.75rem; padding: 0.5rem 1.2rem; font-size: 0.95rem; }
.btn-brand:hover { transform: translateY(-2px); filter: brightness(1.05); }
.btn-ghost { border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--cream); color: var(--espresso); border-color: var(--cream); }
.btn-light { background: var(--cream); color: var(--espresso); }
.btn-light:hover { transform: translateY(-2px); background: var(--sand); }
.btn-lg { min-height: 3.5rem; padding: 0.85rem 2rem; font-size: 1rem; }
.menu-btn {
  width: 3rem; height: 3rem; border-radius: 999px; border: 1px solid var(--line-strong);
  display: grid; place-items: center; margin-inline-start: auto;
}
.menu-btn span, .menu-btn span:before, .menu-btn span:after {
  display: block; width: 1.1rem; height: 2px; background: var(--cream); position: relative; content: "";
}
.menu-btn span:before { position: absolute; top: -6px; }
.menu-btn span:after { position: absolute; top: 6px; }
.menu-panel { display: none; border-top: 1px solid var(--line); padding: 1rem 0 1.5rem; }
.menu-panel.is-open { display: grid; gap: 0.4rem; }
.menu-panel > a { font-weight: 800; font-size: 1.4rem; font-family: var(--display); padding: 0.35rem 0; }
.menu-panel .menu-tools { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; margin-top: 0.8rem; }
.menu-panel .lang { flex-shrink: 0; }
.menu-panel .btn {
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 700;
  min-height: 2.75rem;
  padding: 0.5rem 1.25rem;
  width: fit-content;
}

.eyebrow { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--primary); font-size: 0.75rem; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; }
.dot { width: 0.5rem; height: 0.5rem; border-radius: 999px; background: var(--primary); flex-shrink: 0; }
.lede { margin-top: 1.4rem; max-width: 42rem; color: var(--clay); }
.star { color: var(--primary); }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2.2rem; }

.page-hero { padding: 3.5rem 0 3rem; }
.page-hero h1 {
  margin: 1.4rem 0 0;
  max-width: 16ch;
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 800;
  line-height: 0.95;
}
.page-hero .lede { font-size: clamp(1.1rem, 2vw, 1.25rem); }

.work-list { padding-bottom: 6rem; }
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.filter {
  min-height: 2.75rem; padding: 0.5rem 1.25rem; border-radius: 999px;
  border: 1px solid var(--line-strong); font-weight: 700; font-size: 0.9rem;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.filter:hover { border-color: var(--cream); }
.filter[aria-pressed="true"] { background: var(--cream); color: var(--espresso); border-color: var(--cream); }

.work-grid { display: grid; gap: 3.5rem; margin-top: 3rem; }
.project-card { display: grid; gap: 1.25rem; }
.project-card.is-hidden { display: none; }
.project-card:target { scroll-margin-top: 6.5rem; }
.project-card h3 { margin: 0.45rem 0 0; font-size: clamp(1.8rem, 3.2vw, 2.35rem); font-weight: 800; }
.project-card p { margin-top: 0.25rem; color: var(--clay); }
.project-meta { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding-inline: 0.2rem; }
.meta { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem; color: var(--clay); }
.pill { border: 1px solid var(--line-strong); border-radius: 999px; padding: 0.1rem 0.5rem; letter-spacing: 0; text-transform: none; font-weight: 700; }
.round-arrow {
  margin-top: 1.4rem; width: 3rem; height: 3rem; border-radius: 999px;
  border: 1px solid var(--line-strong); display: grid; place-items: center; flex-shrink: 0;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.project-card:hover .round-arrow { background: var(--cream); color: var(--espresso); border-color: var(--cream); }
.empty { margin-top: 3rem; color: var(--clay); font-weight: 600; }

.shot-pad {
  min-height: 22rem; border-radius: 1.6rem; display: grid; place-items: center;
  padding: 1.5rem; overflow: hidden;
  transition: transform 0.7s var(--ease);
}
.project-card:hover .shot-pad { transform: scale(1.02); }
.shot-pad.accent { background: var(--accent); }
.shot-pad.mint { background: var(--mint); }
.shot-pad.sky { background: var(--sky); }
.shot-pad.lilac { background: var(--lilac); }
.shot-pad.espresso-soft { background: var(--espresso-soft); }
.shot-pad.olive { background: oklch(90% 0.028 140); }
.window.photo { width: 100%; max-width: none; }
.shot-pad:has(.window.photo) { height: auto; min-height: 0; }
.window img.shot {
  width: 100%;
  height: auto;
  max-height: 24rem;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.shot-pad.ink { background: #0c0c0c; }
.brand-lockup { width: min(100%, 36rem); height: auto; display: block; }
.card-actions { display: flex; flex-wrap: wrap; gap: 0.85rem 1.25rem; margin-top: 0.9rem; }
.card-actions a { color: inherit; font-weight: 800; text-decoration: underline; text-underline-offset: 0.22em; }

.window {
  width: 100%; max-width: 36rem; overflow: hidden; border-radius: 1rem;
  border: 1px solid color-mix(in oklab, var(--espresso) 10%, transparent);
  background: var(--cream); color: var(--espresso); box-shadow: var(--shadow-float);
}
.win-bar { display: flex; align-items: center; gap: 0.45rem; border-bottom: 1px solid color-mix(in oklab, var(--espresso) 10%, transparent); padding: 0.7rem 1rem; }
.dot-r, .dot-clay, .dot-sand { width: 0.62rem; height: 0.62rem; border-radius: 999px; }
.dot-r { background: var(--primary); }
.dot-clay { background: var(--clay); }
.dot-sand { background: var(--sand); }
.win-url { margin-inline: auto; border-radius: 999px; background: var(--sand); color: color-mix(in oklab, var(--espresso) 55%, white); padding: 0.15rem 1rem; font-size: 0.62rem; }
.win-body { display: grid; gap: 1rem; padding: 1.2rem; }
.win-top { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.brand-mini { font-family: var(--display); font-size: 0.9rem; font-weight: 800; }
.nav-stubs { display: flex; gap: 0.7rem; }
.nav-stubs i, .bar { display: block; height: 0.45rem; border-radius: 999px; background: color-mix(in oklab, var(--espresso) 15%, transparent); }
.nav-stubs i { width: 2.5rem; }
.bar.w80 { width: 80%; } .bar.w60 { width: 60%; } .bar.w70 { width: 70%; } .bar.w40 { width: 40%; } .bar.w6 { width: 6rem; }
.bar.primary { background: color-mix(in oklab, var(--primary) 50%, transparent); }
.bar.dark { background: color-mix(in oklab, var(--espresso) 25%, transparent); }
.chip-dark { border-radius: 999px; background: var(--espresso); color: var(--cream); padding: 0.2rem 0.7rem; font-size: 0.62rem; font-weight: 800; width: fit-content; }
.chip-dark.mt { margin-top: 0.6rem; display: inline-block; padding: 0.35rem 0.75rem; }
.halo-hero { display: grid; grid-template-columns: 3fr 2fr; align-items: center; gap: 1rem; border-radius: 0.9rem; padding: 1.2rem; background: var(--accent); }
.halo-hero .lg { font-size: 1.25rem; font-weight: 800; line-height: 1.15; }
.halo-hero .bar { margin-top: 0.45rem; }
.blob { border-radius: 72% 28% 64% 36% / 42% 68% 32% 58%; }
.blob.brand { aspect-ratio: 1; background: var(--primary); }
.blob.clay { aspect-ratio: 1; background: var(--clay); }
.prod-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.7rem; }
.prod { display: grid; gap: 0.4rem; border: 1px solid color-mix(in oklab, var(--espresso) 10%, transparent); border-radius: 0.6rem; padding: 0.45rem; }
.swatch { display: block; aspect-ratio: 1; border-radius: 0.4rem; }
.swatch.accent { background: var(--accent); }
.swatch.sand { background: var(--sand); }
.swatch.wide { aspect-ratio: 16/10; }

.phone-shell { width: 12.5rem; border-radius: 2.4rem; background: var(--espresso); padding: 0.45rem; box-shadow: var(--shadow-float); }
.phone-screen { position: relative; overflow: hidden; border-radius: 2rem; background: var(--cream); color: var(--espresso); }
.notch { position: absolute; left: 50%; top: 0.4rem; z-index: 1; width: 5rem; height: 1.15rem; transform: translateX(-50%); border-radius: 999px; background: var(--espresso); }
.phone-body { display: grid; gap: 0.7rem; padding: 2.3rem 0.9rem 1.3rem; }
.tiny { font-size: 0.62rem; color: color-mix(in oklab, var(--espresso) 55%, white); }
.tiny.bold, .tiny.mute { font-weight: 700; }
.tiny.up { text-transform: uppercase; letter-spacing: 0.14em; }
.font-display.md { font-size: 1rem; font-weight: 800; line-height: 1.15; }
.font-display.lg { font-size: 1.15rem; font-weight: 800; }
.font-display.xl { font-size: 2.1rem; font-weight: 800; line-height: 0.9; }
.font-display.tight { line-height: 0.85; }
.avatars { display: flex; gap: 0.4rem; }
.av { width: 2.1rem; height: 2.1rem; border-radius: 999px; display: grid; place-items: center; font-size: 0.62rem; font-weight: 800; }
.av.mint { background: var(--mint); }
.av.sky { background: var(--sky); }
.av.lilac { background: var(--lilac); }
.av.accent { background: var(--accent); }
.next-visit { display: grid; gap: 0.25rem; border-radius: 1rem; padding: 0.7rem; background: var(--mint); }
.next-visit.lilac { background: var(--lilac); }
.slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.3rem; }
.slots span { border-radius: 0.5rem; padding: 0.4rem 0; text-align: center; font-size: 0.58rem; font-weight: 800; background: var(--sand); }
.slots span.on { background: var(--espresso); color: var(--cream); }
.confirm { margin-top: 0.15rem; border-radius: 999px; background: var(--primary); color: var(--espresso); padding: 0.55rem; text-align: center; font-size: 0.68rem; font-weight: 800; }
.route-row {
  display: flex; align-items: center; justify-content: space-between;
  border-radius: 0.75rem; background: var(--sand); padding: 0.6rem 0.75rem;
}
.route-row span { font-size: 0.68rem; font-weight: 800; }
.route-row b { font-family: var(--display); font-size: 0.9rem; }

.poster-board { width: 100%; max-width: 28rem; overflow: hidden; border-radius: 1rem; box-shadow: var(--shadow-float); display: grid; grid-template-columns: 2fr 1fr; gap: 0.7rem; background: var(--espresso); padding: 1.2rem; }
.poster-main { display: grid; aspect-ratio: 3/4; align-content: space-between; border-radius: 0.8rem; background: var(--primary); color: var(--espresso); padding: 1.2rem; }
.poster-main .ar { margin-top: 0.5rem; }
.poster-side { display: grid; gap: 0.7rem; }
.circle { aspect-ratio: 1; border-radius: 999px; }
.circle.cream { background: var(--cream); }
.tile { aspect-ratio: 1; border-radius: 0.8rem; }
.tile.glow { background: color-mix(in oklab, var(--primary) 70%, white); }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.7rem; }
.stat { border-radius: 0.6rem; padding: 0.7rem; }
.stat span { display: block; font-size: 0.62rem; color: color-mix(in oklab, var(--espresso) 55%, white); }
.stat b { display: block; font-family: var(--display); font-size: 1.1rem; font-weight: 800; }
.stat.muted { background: var(--sand); }
.stat.sky { background: var(--sky); }
.chart { display: flex; align-items: end; gap: 0.4rem; height: 7rem; border: 1px solid color-mix(in oklab, var(--espresso) 10%, transparent); border-radius: 0.6rem; padding: 0.7rem; }
.chart i { flex: 1; display: block; border-radius: 0.3rem 0.3rem 0 0; background: color-mix(in oklab, var(--espresso) 15%, transparent); }
.chart i.on { background: var(--primary); }

.atlas { display: grid; grid-template-columns: 7rem 1fr; }
.atlas-side { display: grid; align-content: start; gap: 0.7rem; padding: 1rem; border-inline-end: 1px solid color-mix(in oklab, var(--espresso) 10%, transparent); }
.atlas-main { display: grid; gap: 1rem; padding: 1.2rem; }
.progress { height: 0.45rem; border-radius: 999px; background: color-mix(in oklab, var(--cream) 70%, white); }
.progress i { display: block; width: 66%; height: 100%; border-radius: 999px; background: var(--espresso); }
.course-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.7rem; }
.course { display: grid; gap: 0.4rem; border: 1px solid color-mix(in oklab, var(--espresso) 10%, transparent); border-radius: 0.6rem; padding: 0.55rem; }

.grain { position: relative; }
.grain:before {
  content: ""; pointer-events: none; position: absolute; inset: 0; opacity: 0.07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.cta { position: relative; overflow: hidden; padding: 6rem 0 7rem; }
.cta h2 { font-size: clamp(3rem, 8vw, 6rem); max-width: 14ch; margin: 0; line-height: 0.95; }
.cta .lede { max-width: 34rem; font-size: 1.15rem; }
.asterisk {
  position: absolute; inset-inline-end: 5%; top: 1.5rem;
  font-size: clamp(10rem, 28vw, 28rem); color: var(--primary); opacity: 0.2;
  font-family: var(--display); line-height: 1; pointer-events: none;
  animation: spin 30s linear infinite;
}

.site-footer { background: var(--espresso); padding: 4rem 0 2rem; }
.footer-grid { display: grid; gap: 2.5rem; }
.footer-grid img { height: 2.5rem; width: auto; margin-bottom: 1.1rem; }
.footer-grid .btn { margin-top: 1rem; }
.footer-grid nav { display: grid; gap: 0.45rem; align-content: start; font-weight: 700; }
.footer-grid nav a { width: fit-content; padding: 0.2rem 0; color: color-mix(in oklab, var(--cream) 85%, transparent); }
.footer-grid nav a:hover { color: color-mix(in oklab, var(--primary) 70%, white); }
.legal { display: flex; justify-content: space-between; gap: 1rem; align-items: center; margin-top: 3.5rem; padding-top: 1.3rem; border-top: 1px solid oklch(100% 0 0 / 12%); color: var(--clay); font-size: 0.78rem; }
.legal img { width: 2rem; height: 2rem; border-radius: 0.45rem; }

.reveal { opacity: 0; transform: translateY(1.75rem); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.d2 { transition-delay: 120ms; }

@keyframes spin { to { transform: rotate(360deg); } }

@media (min-width: 640px) {
  .wrap { padding-inline: 2rem; }
  .page-hero { padding: 5rem 0 5rem; }
  .shot-pad { padding: 2.4rem; min-height: 30rem; }
  .phone-shell { width: 14rem; }
}
@media (min-width: 768px) {
  .work-grid { grid-template-columns: 1fr 1fr; gap: 3.5rem 2.5rem; }
  .shift { margin-top: 6rem; }
}
@media (min-width: 900px) {
  .nav, .tools { display: flex; }
  .menu-btn { display: none; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .asterisk { animation: none; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

@media (max-width: 639px) {
  .page-hero { padding: 2.5rem 0 1.5rem; }
  .page-hero h1 { font-size: clamp(2.25rem, 11vw, 3.25rem); line-height: 1.12; max-width: none; }
  .filters { gap: 0.45rem; }
  .filter { min-height: 44px; }
  .work-list { padding-bottom: 4rem; }
  .work-grid { gap: 2.5rem; margin-top: 2rem; }
  .project-card h3 { font-size: clamp(1.6rem, 8vw, 2rem); line-height: 1.2; }
  .cta { padding: 4rem 0 4.5rem; }
  .actions { display: grid; width: 100%; }
  .actions .btn { width: 100%; justify-content: center; }
}
