/* CodOps — coming soon. Dark, quiet, gold. */

:root {
  --bg: #07070a;
  --ink: #efe6d2;
  --muted: rgba(239, 230, 210, .64);
  --faint: rgba(239, 230, 210, .38);
  --gold-1: #f7e7b4;
  --gold-2: #d9b565;
  --gold-3: #c9a14a;
  --gold-4: #8c6a2c;
  --line: rgba(201, 161, 74, .26);
  --line-soft: rgba(201, 161, 74, .14);
  --edge: clamp(10px, 2.2vw, 22px);
  --display-latin: "Cormorant Garamond", "Times New Roman", serif;
  --body-latin: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display-ar: "Amiri", "Times New Roman", serif;
  --body-ar: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
}

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

html { background: var(--bg); color-scheme: dark; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body-ar);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
html:lang(en) body { font-family: var(--body-latin); }

::selection { background: rgba(201, 161, 74, .35); color: #fff; }

/* ---------- ambient layers ---------- */

.aurora {
  position: fixed;
  inset: -25%;
  z-index: 0;
  filter: blur(90px) saturate(115%);
  pointer-events: none;
}
.aurora span {
  position: absolute;
  border-radius: 50%;
  opacity: .55;
  will-change: transform;
}
.aurora span:nth-child(1) {
  width: 48vmax; height: 48vmax; left: 18%; top: 8%;
  background: radial-gradient(circle, rgba(201, 161, 74, .42), transparent 62%);
  animation: drift-a 38s ease-in-out infinite alternate;
}
.aurora span:nth-child(2) {
  width: 56vmax; height: 56vmax; right: 6%; top: 30%;
  background: radial-gradient(circle, rgba(34, 52, 92, .75), transparent 64%);
  animation: drift-b 46s ease-in-out infinite alternate;
}
.aurora span:nth-child(3) {
  width: 42vmax; height: 42vmax; left: 36%; bottom: -4%;
  background: radial-gradient(circle, rgba(92, 38, 58, .55), transparent 62%);
  animation: drift-c 54s ease-in-out infinite alternate;
}
@keyframes drift-a { to { transform: translate3d(12vw, 8vh, 0) scale(1.12); } }
@keyframes drift-b { to { transform: translate3d(-14vw, -10vh, 0) scale(.9); } }
@keyframes drift-c { to { transform: translate3d(-8vw, -14vh, 0) scale(1.18); } }

#dust {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.vignette {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(ellipse 120% 90% at 50% 45%, transparent 38%, rgba(0, 0, 0, .72) 100%);
}

.frame {
  position: fixed;
  inset: var(--edge);
  z-index: 3;
  pointer-events: none;
  border: 1px solid var(--line-soft);
}
.frame i {
  position: absolute;
  width: 26px;
  height: 26px;
  border-color: var(--gold-3);
  border-style: solid;
  opacity: .8;
}
.frame i:nth-child(1) { top: -1px; left: -1px; border-width: 1px 0 0 1px; }
.frame i:nth-child(2) { top: -1px; right: -1px; border-width: 1px 1px 0 0; }
.frame i:nth-child(3) { bottom: -1px; left: -1px; border-width: 0 0 1px 1px; }
.frame i:nth-child(4) { bottom: -1px; right: -1px; border-width: 0 1px 1px 0; }

/* ---------- header ---------- */

.intro { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
.intro .hero { flex: 1; }
.top, .hero, .work, .foot { position: relative; z-index: 4; }

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(var(--edge) + clamp(16px, 3vw, 30px)) calc(var(--edge) + clamp(16px, 3.5vw, 40px)) 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  direction: ltr;
}
.mark { width: 34px; height: 34px; flex: none; }
.brand-name {
  font-family: var(--display-latin);
  font-weight: 500;
  font-size: 1.15rem;
  letter-spacing: .2em;
}

.lang { display: inline-flex; align-items: center; gap: 4px; color: var(--faint); font-size: .8rem; }
.lang button {
  appearance: none;
  background: none;
  border: 0;
  padding: 6px 8px;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
  transition: color .3s ease;
  position: relative;
}
.lang button[data-lang="en"] { font-family: var(--body-latin); letter-spacing: .14em; }
.lang button[data-lang="ar"] { font-family: var(--body-ar); }
.lang button:hover { color: var(--gold-1); }
.lang button[aria-pressed="true"] { color: var(--gold-1); }
.lang button[aria-pressed="true"]::after {
  content: "";
  position: absolute;
  left: 8px; right: 8px; bottom: 2px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-3), transparent);
}
.lang button:focus-visible, .brand:focus-visible { outline: 1px solid var(--gold-3); outline-offset: 4px; }

/* ---------- hero ---------- */

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(20px, 4vh, 48px) calc(var(--edge) + 20px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin: 0;
  color: var(--gold-2);
  font-size: .95rem;
  font-weight: 400;
}
html:lang(en) .eyebrow { font-size: .74rem; letter-spacing: .5em; text-transform: uppercase; margin-inline-end: -.5em; }
.eyebrow .rule {
  width: clamp(28px, 6vw, 64px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-3));
}
.eyebrow .rule:last-child { background: linear-gradient(90deg, var(--gold-3), transparent); }
html[dir="rtl"] .eyebrow .rule:first-child { background: linear-gradient(90deg, var(--gold-3), transparent); }
html[dir="rtl"] .eyebrow .rule:last-child { background: linear-gradient(90deg, transparent, var(--gold-3)); }

.wordmark {
  margin: clamp(14px, 2.4vh, 26px) 0 0;
  direction: ltr;
  font-family: var(--display-latin);
  font-weight: 300;
  font-size: clamp(3rem, 11.5vw, 8.6rem);
  line-height: 1;
  letter-spacing: .3em;
  padding-left: .3em; /* balance the trailing letter-spacing */
  background: linear-gradient(100deg, #8c6a2c 0%, #f7e7b4 22%, #c9a14a 42%, #fff4d2 52%, #b98f3e 68%, #f0d99a 86%, #8c6a2c 100%);
  background-size: 260% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 34px rgba(201, 161, 74, .16));
  animation: shimmer 11s linear infinite;
}
@keyframes shimmer { from { background-position: 0% 50%; } to { background-position: 260% 50%; } }

.headline {
  margin: clamp(14px, 2.4vh, 24px) 0 0;
  font-family: var(--display-ar);
  font-weight: 700;
  font-size: clamp(1.55rem, 3.4vw, 2.5rem);
  line-height: 1.5;
  color: var(--ink);
}
html:lang(en) .headline {
  font-family: var(--display-latin);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.6rem, 3.6vw, 2.7rem);
  line-height: 1.25;
}

.lede {
  max-width: 40rem;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: clamp(.95rem, 1.5vw, 1.06rem);
  line-height: 1.9;
}
html:lang(en) .lede { line-height: 1.8; }

/* ---------- countdown ---------- */

.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(8px, 1.8vw, 20px);
  width: 100%;
  max-width: 640px;
  margin: clamp(26px, 4.4vh, 44px) 0 0;
}

.unit {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: clamp(14px, 2.4vw, 22px) 6px clamp(12px, 2vw, 18px);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .012));
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 0 rgba(247, 231, 180, .09), 0 24px 60px -34px rgba(0, 0, 0, .9);
  overflow: hidden;
}
.unit::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  width: 36%;
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, var(--gold-1), transparent);
  opacity: .7;
}
.unit::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 40%, rgba(247, 231, 180, .07) 50%, transparent 60%);
  transform: translateX(-120%);
  animation: sheen 7s ease-in-out infinite;
}
.unit:nth-child(2)::after { animation-delay: .35s; }
.unit:nth-child(3)::after { animation-delay: .7s; }
.unit:nth-child(4)::after { animation-delay: 1.05s; }
@keyframes sheen { 0%, 60% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }

.num {
  display: block;
  direction: ltr;
  font-family: var(--display-latin);
  font-weight: 300;
  font-size: clamp(2.2rem, 7vw, 4.4rem);
  line-height: 1;
  font-variant-numeric: lining-nums tabular-nums;
  color: #f3e3b5;
  text-shadow: 0 0 22px rgba(201, 161, 74, .25);
}
.num.tick { animation: tick .6s cubic-bezier(.2, .8, .2, 1); }
@keyframes tick {
  from { opacity: .15; transform: translateY(-10px); filter: blur(3px); }
  to { opacity: 1; transform: none; filter: none; }
}

.label { color: var(--faint); font-size: .8rem; font-weight: 400; }
html:lang(en) .label { font-size: .66rem; letter-spacing: .32em; text-transform: uppercase; margin-inline-end: -.32em; }

/* ---------- journey line ---------- */

.journey { width: 100%; max-width: 640px; margin: clamp(22px, 3.4vh, 32px) 0 0; }
.track { position: relative; height: 1px; background: var(--line-soft); }
.fill {
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: var(--p, 0%);
  background: linear-gradient(90deg, var(--gold-4), var(--gold-1));
  transition: width 1s linear;
}
html[dir="rtl"] .fill { background: linear-gradient(270deg, var(--gold-4), var(--gold-1)); }
.spark {
  position: absolute;
  top: 50%;
  inset-inline-start: var(--p, 0%);
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gold-1);
  box-shadow: 0 0 10px 2px rgba(247, 231, 180, .7), 0 0 26px 6px rgba(201, 161, 74, .35);
  transform: translate(-50%, -50%);
  transition: inset-inline-start 1s linear;
  animation: pulse 2.4s ease-in-out infinite;
}
html[dir="rtl"] .spark { transform: translate(50%, -50%); }
@keyframes pulse { 50% { opacity: .55; } }

.launch-date { margin: 14px 0 0; color: var(--faint); font-size: .86rem; }
.launch-date .date { color: var(--gold-2); margin-inline-start: 6px; }
html:lang(en) .launch-date { letter-spacing: .08em; }

/* ---------- pillars ---------- */

.pillars {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px clamp(18px, 4vw, 44px);
  margin: clamp(26px, 4.6vh, 46px) 0 0;
  padding: 0;
  list-style: none;
}
.pillars li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: .92rem;
}
html:lang(en) .pillars li { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; }
.pillars svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--gold-3);
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- scroll cue ---------- */

.scroll-cue {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: clamp(22px, 4vh, 40px);
  color: var(--faint);
  font-size: .8rem;
  text-decoration: none;
  transition: color .3s ease;
}
html:lang(en) .scroll-cue { font-size: .66rem; letter-spacing: .4em; text-transform: uppercase; margin-inline-end: -.4em; }
.scroll-cue:hover { color: var(--gold-1); }
.scroll-cue i {
  position: relative;
  width: 1px;
  height: 38px;
  overflow: hidden;
  background: var(--line-soft);
}
.scroll-cue i::after {
  content: "";
  position: absolute;
  left: 0; top: -40%;
  width: 1px; height: 40%;
  background: linear-gradient(transparent, var(--gold-1));
  animation: fall 2.2s cubic-bezier(.6, 0, .4, 1) infinite;
}
@keyframes fall { to { top: 100%; } }

/* ---------- work ---------- */

.work {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(64px, 12vh, 140px) calc(var(--edge) + clamp(18px, 4vw, 48px)) 0;
}

.work-head { display: flex; flex-direction: column; align-items: center; text-align: center; margin-bottom: clamp(48px, 9vh, 96px); }
.work-title {
  margin: 16px 0 0;
  font-family: var(--display-ar);
  font-weight: 700;
  font-size: clamp(2rem, 4.6vw, 3.3rem);
  line-height: 1.4;
  color: var(--ink);
}
html:lang(en) .work-title { font-family: var(--display-latin); font-style: italic; font-weight: 400; line-height: 1.15; }
.work-lede { max-width: 36rem; margin: 12px 0 0; color: var(--muted); line-height: 1.9; }

.project {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 6vw, 88px);
  margin-bottom: clamp(80px, 14vh, 150px);
}
.project:nth-of-type(even) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.28fr); }
.project:nth-of-type(even) .shot { order: 2; }

/* the visual: browser window + phone */
.shot {
  position: relative;
  display: block;
  padding-bottom: 7%;
  padding-inline-end: 9%;
  color: inherit;
  text-decoration: none;
}
.project:nth-of-type(even) .shot { padding-inline-end: 0; padding-inline-start: 9%; }
.shot::before {
  content: "";
  position: absolute;
  inset: 8% 6% 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(201, 161, 74, .22), transparent 70%);
  filter: blur(40px);
  z-index: -1;
  opacity: .7;
  transition: opacity .6s ease;
}
.shot:hover::before { opacity: 1; }

.browser {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: #0c0c11;
  box-shadow: 0 50px 90px -40px rgba(0, 0, 0, .95), inset 0 1px 0 rgba(247, 231, 180, .06);
  transition: transform .8s cubic-bezier(.2, .8, .2, 1), border-color .6s ease;
}
.shot:hover .browser { transform: translateY(-6px); border-color: rgba(201, 161, 74, .45); }
.bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 12px;
  direction: ltr;
  background: linear-gradient(180deg, #17171d, #111116);
  border-bottom: 1px solid var(--line-soft);
}
.bar i { width: 7px; height: 7px; border-radius: 50%; background: rgba(247, 231, 180, .16); }
.bar i:first-child { background: rgba(201, 161, 74, .55); }
.bar .url {
  flex: 1;
  margin-right: 34px;
  text-align: center;
  font-family: var(--body-latin);
  font-size: .68rem;
  letter-spacing: .06em;
  color: var(--faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.browser img { display: block; width: 100%; height: auto; transition: transform 1.4s cubic-bezier(.2, .8, .2, 1); }
.shot:hover .browser img { transform: scale(1.025); }

.phone {
  position: absolute;
  bottom: 0;
  inset-inline-end: 0;
  width: 25%;
  padding: 5px;
  border-radius: 20px;
  background: linear-gradient(150deg, #34343c, #0b0b0f 55%, #24242b);
  border: 1px solid rgba(247, 231, 180, .2);
  box-shadow: 0 34px 60px -18px rgba(0, 0, 0, .95), 0 0 0 1px rgba(0, 0, 0, .6);
  transition: transform .8s cubic-bezier(.2, .8, .2, 1);
}
.project:nth-of-type(even) .phone { inset-inline-end: auto; inset-inline-start: 0; }
.phone::before {
  content: "";
  position: absolute;
  top: 9px; left: 50%;
  width: 28%; height: 5px;
  transform: translateX(-50%);
  border-radius: 4px;
  background: #07070a;
  z-index: 1;
}
.phone img { display: block; width: 100%; height: auto; border-radius: 15px; }
.shot:hover .phone { transform: translateY(-14px); }

/* the words */
.meta { display: flex; flex-direction: column; align-items: flex-start; }
.idx { display: flex; align-items: center; gap: 14px; margin: 0; color: var(--gold-2); }
.idx > span:first-child {
  font-family: var(--display-latin);
  font-weight: 300;
  font-size: 2.6rem;
  line-height: 1;
  background: linear-gradient(120deg, var(--gold-1), var(--gold-3) 60%, var(--gold-4));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.idx i { width: 40px; height: 1px; background: linear-gradient(90deg, var(--gold-3), transparent); }
html[dir="rtl"] .idx i { background: linear-gradient(270deg, var(--gold-3), transparent); }
.idx .cat { font-size: .9rem; }
html:lang(en) .idx .cat { font-size: .7rem; letter-spacing: .3em; text-transform: uppercase; }

.name {
  margin: 18px 0 0;
  font-family: var(--display-latin);
  font-weight: 400;
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  line-height: 1.1;
  color: var(--ink);
}
.name .sub {
  display: block;
  margin-top: 8px;
  font-family: var(--display-ar);
  font-size: .5em;
  font-weight: 400;
  color: var(--gold-2);
}
html:lang(en) .name .sub { display: none; }
.name .suffix { font-style: italic; font-weight: 300; color: var(--gold-2); }

.desc { margin: 16px 0 0; color: var(--muted); line-height: 1.95; max-width: 30rem; }
html:lang(en) .desc { line-height: 1.8; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; padding: 0; list-style: none; }
.tags li {
  padding: 5px 14px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: rgba(255, 255, 255, .02);
  color: var(--muted);
  font-size: .8rem;
}
html:lang(en) .tags li { font-size: .72rem; letter-spacing: .08em; }

.visit {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 26px;
  padding-bottom: 6px;
  color: var(--gold-1);
  text-decoration: none;
  font-size: .95rem;
}
.visit bdi { font-family: var(--body-latin); font-size: .82rem; color: var(--faint); letter-spacing: .04em; }
.visit .arrow { display: inline-block; transition: transform .4s ease; font-family: var(--body-latin); }
html[dir="rtl"] .visit .arrow { transform: scaleX(-1); }
.visit::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  bottom: 0;
  width: 36px;
  height: 1px;
  background: var(--gold-3);
  transition: width .5s cubic-bezier(.2, .8, .2, 1);
}
.visit:hover::after { width: 100%; }
.visit:hover .arrow { transform: translate(3px, -3px); }
html[dir="rtl"] .visit:hover .arrow { transform: scaleX(-1) translate(3px, -3px); }
.visit:focus-visible, .shot:focus-visible, .scroll-cue:focus-visible { outline: 1px solid var(--gold-3); outline-offset: 6px; }

@media (max-width: 860px) {
  .project, .project:nth-of-type(even) { grid-template-columns: 1fr; gap: 34px; }
  .project:nth-of-type(even) .shot { order: 0; }
  .shot, .project:nth-of-type(even) .shot { padding-inline-start: 0; padding-inline-end: 7%; padding-bottom: 9%; }
  .project:nth-of-type(even) .phone { inset-inline-start: auto; inset-inline-end: 0; }
  .phone { width: 27%; border-radius: 16px; padding: 4px; }
  .phone img { border-radius: 12px; }
}

/* ---------- footer ---------- */

.foot {
  direction: ltr;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: clamp(24px, 5vh, 48px) 24px calc(var(--edge) + clamp(16px, 3vw, 28px));
  color: var(--faint);
  font-family: var(--body-latin);
  font-size: .74rem;
  letter-spacing: .12em;
}
.foot .dot { color: var(--gold-3); font-size: .5rem; }

/* ---------- entrance ---------- */

.reveal { opacity: 0; transform: translateY(14px); filter: blur(4px); }
.reveal.in { opacity: 1; transform: none; filter: none; transition: opacity 1.2s ease, transform 1.2s cubic-bezier(.2, .8, .2, 1), filter 1.2s ease; }
.swap { transition: opacity .35s ease; }
.swap.out { opacity: 0; }

/* ---------- small screens ---------- */

@media (max-width: 560px) {
  .top { padding-top: calc(var(--edge) + 14px); }
  .brand-name { font-size: 1rem; }
  .mark { width: 28px; height: 28px; }
  .wordmark { letter-spacing: .2em; padding-left: .2em; }
  .unit { gap: 6px; }
  .label { font-size: .7rem; }
  html:lang(en) .label { font-size: .56rem; letter-spacing: .2em; margin-inline-end: -.2em; }
  .frame i { width: 18px; height: 18px; }
}

@media (max-height: 700px) and (min-width: 561px) {
  .hero { padding-block: 16px; }
  .pillars { margin-top: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .aurora span, .wordmark, .unit::after, .spark, .scroll-cue i::after { animation: none; }
  .browser, .phone, .browser img { transition: none; }
  .reveal { opacity: 1; transform: none; filter: none; }
  .num.tick { animation: none; }
  .fill, .spark { transition: none; }
}
