:root {
  --void: #0a1517;
  --void-2: #0f1f21;
  --void-3: #15292b;
  --white: #ece6d8;
  --mute: #93a19c;
  --line: rgba(243, 241, 236, .09);
  --blue: #e8b04b;
  --blue-2: #f0c56e;
  --serif: "Bodoni Moda", "Didot", Georgia, serif;
  --sans: "Manrope", system-ui, sans-serif;
  --ar: "Amiri", "Traditional Arabic", serif;
  --pad: clamp(20px, 4vw, 64px);
  --ease: cubic-bezier(.2, .7, .1, 1);
}

* { box-sizing: border-box; }
html { background: var(--void); overflow-x: clip; }
body { margin: 0; background: var(--void); color: var(--white); font: 400 17px/1.65 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip; }
body.is-loading { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--blue-2); outline-offset: 4px; border-radius: 6px; }
::selection { background: var(--blue); color: #0a1517; }
.muted { color: var(--mute); }

/* ---------- boot ---------- */
.boot { position: fixed; inset: 0; z-index: 100; background: var(--void); display: flex; flex-direction: column; justify-content: flex-end; padding: var(--pad); }
.boot-num { font: 400 clamp(110px, 22vw, 320px)/.8 var(--serif); letter-spacing: -0.03em; }
.boot-meta { display: flex; align-items: center; gap: 22px; margin-top: 22px; color: var(--mute); font-size: 14px; }
.boot-bar { flex: 0 0 min(380px, 50vw); height: 1px; background: var(--line); }
.boot-bar b { display: block; height: 100%; width: 0; background: var(--blue-2); box-shadow: 0 0 12px var(--blue); }

/* ---------- ambient ---------- */
.columns { position: fixed; inset: 0; z-index: 0; display: grid; grid-template-columns: repeat(5, 1fr); padding: 0 var(--pad); pointer-events: none; }
.columns i { border-left: 1px solid rgba(243, 241, 236, .045); }
.columns i:last-child { border-right: 1px solid rgba(243, 241, 236, .045); }
main, .foot, .top { position: relative; z-index: 1; }
.grain { position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .07; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.cursor { position: fixed; left: 0; top: 0; z-index: 2; pointer-events: none; width: 520px; height: 520px; margin: -260px 0 0 -260px; border-radius: 50%; background: radial-gradient(circle, rgba(232, 176, 75, .14), transparent 62%); opacity: 0; }
@media (pointer: fine) { .cursor { opacity: 1; } }

/* ---------- header ---------- */
.top { position: fixed; top: 0; left: 0; right: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; padding: 22px var(--pad); background: linear-gradient(rgba(10,21,23,.92) 35%, rgba(10,21,23,0)); }
.mark { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 600; font-size: 15px; letter-spacing: .01em; }
.ring-mini { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--white); box-shadow: 0 0 10px rgba(240, 197, 110, .9), inset 0 0 6px rgba(240, 197, 110, .6); }
.top nav { display: flex; align-items: center; gap: 32px; font-size: 14px; }
.top nav a:not(.pill) { text-decoration: none; color: var(--mute); transition: color .25s; }
.top nav a:not(.pill):hover { color: var(--white); }
.index { position: fixed; left: 16px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 12px; color: var(--mute); }
.index span:first-child { color: var(--white); }
.index i { width: 1px; height: 90px; background: var(--line); position: relative; }
.index b { position: absolute; left: 0; top: 0; width: 1px; height: 0; background: var(--blue-2); box-shadow: 0 0 8px var(--blue); }

/* ---------- pills ---------- */
.pill { position: relative; display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 24px; border-radius: 999px; border: 1px solid rgba(243, 241, 236, .3); font-weight: 600; font-size: 14px; text-decoration: none; overflow: hidden; transition: border-color .3s, color .3s; }
.pill::before { content: ""; position: absolute; inset: 0; background: var(--white); transform: translateY(101%); transition: transform .5s var(--ease); }
.pill span { position: relative; }
.pill:hover { color: var(--void); border-color: var(--white); }
.pill:hover::before { transform: translateY(0); }
.pill-solid { background: var(--blue); border-color: var(--blue); color: #0a1517; box-shadow: 0 0 30px -6px var(--blue); }
.pill-xl { min-height: 64px; padding: 0 36px; font-size: 17px; }
.link-under { font-weight: 600; font-size: 15px; text-decoration: none; background: linear-gradient(var(--white), var(--white)) 0 100% / 100% 1px no-repeat; padding-bottom: 3px; transition: background-size .4s var(--ease); }
.link-under:hover { background-size: 0 1px; background-position: 100% 100%; }

/* ---------- hero ---------- */
.hero { position: relative; }
.hero-pin { position: relative; height: 100vh; min-height: 640px; overflow: hidden; }
.glow { position: absolute; left: 50%; bottom: -38vh; width: 120vw; height: 70vh; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(232, 176, 75, .55), rgba(232, 176, 75, .12) 55%, transparent); filter: blur(30px); pointer-events: none; }
.name { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-58%); margin: 0; text-align: center; font: 400 clamp(110px, 24vw, 420px)/.8 var(--serif); letter-spacing: -0.035em; white-space: nowrap; }
.name-row { display: inline-flex; gap: clamp(90px, 13vw, 230px); }
.n-l, .n-r { display: inline-block; }
.light-ring { position: absolute; left: 50%; top: 47%; width: clamp(260px, 30vw, 470px); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; pointer-events: none; }
.light-ring::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .92); box-shadow: 0 0 22px rgba(255, 255, 255, .55), 0 0 70px rgba(240, 197, 110, .55), inset 0 0 26px rgba(240, 197, 110, .45); }
.light-ring i { position: absolute; inset: -14px; border-radius: 50%; background: conic-gradient(from 0deg, transparent 0 70%, rgba(245, 220, 160, .95) 82%, transparent 92%); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 16px), #000 calc(100% - 14px)); mask: radial-gradient(farthest-side, transparent calc(100% - 16px), #000 calc(100% - 14px)); filter: blur(4px); animation: spin 9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.portrait { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); margin: 0; width: clamp(300px, 36vw, 600px); }
.portrait img { width: 100%; filter: grayscale(1) contrast(1.08); -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent 100%); mask-image: linear-gradient(to bottom, #000 78%, transparent 100%); }
.hero-ar { position: absolute; right: var(--pad); bottom: 70px; margin: 0; font: 700 clamp(28px, 3vw, 44px)/1 var(--ar); color: var(--mute); direction: rtl; }
.corner { position: absolute; margin: 0; font-size: 13px; color: var(--mute); }
.c-left { left: calc(var(--pad) + 46px); bottom: 74px; }
.c-right { right: var(--pad); top: 96px; }
.scroll-cue { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); margin: 0; font-size: 12px; color: var(--mute); letter-spacing: .04em; }
.scene2 { position: absolute; right: var(--pad); top: 56%; transform: translateY(-50%); width: min(560px, 44vw); visibility: hidden; }
.serif-xl { margin: 0 0 22px; font: 400 clamp(40px, 4vw, 64px)/1.02 var(--serif); letter-spacing: -0.02em; }
.sl { display: block; overflow: hidden; padding-bottom: .06em; }
.sl > span { display: inline-block; }
.s2-lede { margin: 0 0 16px; font-size: 18px; line-height: 1.55; }
.s2-story { margin: 0 0 30px; color: var(--mute); font-size: 15.5px; }
.s2-actions { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }

/* ---------- marquee ---------- */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding: 26px 0; background: var(--void); }
.marquee-track { display: flex; align-items: center; gap: 40px; width: max-content; animation: slide 42s linear infinite; }
.marquee span { font: italic 400 clamp(34px, 4.6vw, 62px)/1 var(--serif); color: rgba(243, 241, 236, .82); white-space: nowrap; }
.marquee b { width: 9px; height: 9px; border-radius: 50%; background: var(--blue-2); box-shadow: 0 0 12px var(--blue); flex: none; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- headings ---------- */
.serif-l { font: 400 clamp(40px, 5vw, 84px)/1 var(--serif); letter-spacing: -0.02em; margin: 0 0 30px; max-width: 13em; }

/* ---------- system ---------- */
.system { padding: 120px var(--pad) 40px; }
.system-pin { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 60px; align-items: center; min-height: 100vh; }
.layers-list { list-style: none; margin: 30px 0 0; padding: 0; }
.layers-list li { padding: 18px 0 18px 22px; border-left: 1px solid var(--line); transition: border-color .4s, opacity .4s; opacity: .35; }
.layers-list li.is-on { border-color: var(--blue-2); opacity: 1; box-shadow: -8px 0 18px -10px var(--blue); }
.layers-list h3 { margin: 0 0 4px; font: 400 30px/1.1 var(--serif); }
.layers-list p { margin: 0; color: var(--mute); max-width: 30em; }
.explode { position: relative; height: 560px; perspective: 1600px; }
.layer { position: absolute; left: 0; right: 0; top: 50%; margin-top: -190px; height: 380px; transform-style: preserve-3d; transform: rotateX(56deg) rotateZ(-34deg); }
.layer img, .rules-card, .ledger { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 14px; border: 1px solid rgba(243, 241, 236, .14); box-shadow: 0 30px 80px -20px #000, 0 0 60px -20px rgba(232, 176, 75, .5); }
.l-ui { z-index: 3; } .l-rules { z-index: 2; } .l-data { z-index: 1; }
.tag { position: absolute; right: -10px; top: -14px; padding: 4px 12px; border-radius: 999px; background: var(--blue); color: #0a1517; font-weight: 600; font-size: 13px; box-shadow: 0 0 18px var(--blue); }
.rules-card { background: var(--void-3); padding: 34px 38px; display: grid; align-content: center; gap: 14px; }
.rc-row { display: flex; justify-content: space-between; gap: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--line); font-size: 17px; }
.rc-row .k { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; color: var(--blue-2); }
.ledger { background: #f1ece0; color: #1a2526; padding: 30px 34px; display: grid; align-content: center; gap: 4px; font-size: 16px; }
.lg-h, .lg-r { display: grid; grid-template-columns: 1fr 1.1fr .7fr 1fr; padding: 9px 0; border-bottom: 1px solid rgba(16, 19, 26, .14); font-variant-numeric: tabular-nums; }
.lg-h { font-weight: 700; color: var(--blue); }

/* ---------- work stage ---------- */
.work { padding: 80px 0 20px; }
.work-pin { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 48px; align-items: center; min-height: 100vh; padding: 90px var(--pad) 40px; }
.switch { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, .02); margin-bottom: 30px; }
.switch button { position: relative; z-index: 1; appearance: none; border: 0; background: none; color: var(--mute); font: 600 14px var(--sans); padding: 10px 18px; border-radius: 999px; cursor: pointer; transition: color .3s; white-space: nowrap; }
.switch button[aria-selected="true"] { color: #0a1517; }
.switch-thumb { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 999px; background: var(--blue); box-shadow: 0 0 24px -4px var(--blue); transition: transform .55s var(--ease); }
.switch[data-on="pharmacy"] .switch-thumb { transform: translateX(100%); }
.sys-ar { margin: 0 0 -6px; font: 700 54px/1 var(--ar); color: transparent; -webkit-text-stroke: 1px rgba(240, 197, 110, .55); direction: rtl; text-align: left; }
.sys-sub { color: var(--mute); margin: -14px 0 30px; max-width: 28em; }
.slide-cap { padding-top: 20px; border-top: 1px solid var(--line); min-height: 170px; }
.cap-count { margin: 0 0 6px; font-size: 13px; font-variant-numeric: tabular-nums; }
.slide-cap h3 { margin: 0 0 6px; font: 400 30px/1.1 var(--serif); }
.slide-cap p:last-child { margin: 0; color: var(--mute); font-size: 15.5px; max-width: 28em; }
.sys-facts { margin: 20px 0 0; display: grid; gap: 8px; font-size: 14px; }
.sys-facts div { display: grid; grid-template-columns: 90px 1fr; gap: 12px; padding-top: 8px; border-top: 1px solid var(--line); }
.sys-facts dt { color: var(--mute); }
.sys-facts dd { margin: 0; font-weight: 500; }
.sys-facts a { color: var(--blue-2); }
.stage { position: relative; }
.stage-ring { position: absolute; left: 50%; top: 50%; width: 86%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; border: 2px solid rgba(255, 255, 255, .8); box-shadow: 0 0 30px rgba(255, 255, 255, .35), 0 0 120px rgba(232, 176, 75, .6), inset 0 0 60px rgba(232, 176, 75, .35); }
.frame { position: relative; aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden; background: #0e1118; border: 1px solid rgba(243, 241, 236, .16); box-shadow: 0 50px 100px -40px #000, 0 0 80px -30px var(--blue); }
.slide { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(6, 1fr); }
.slide i { background-size: 600% 100%; background-repeat: no-repeat; transform-origin: top; }
.slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; }
.demo-note { padding: 0 var(--pad); font-size: 13px; margin: 10px 0 0; }

/* phone and no-motion fallback gallery */
.work.is-static .work-pin { min-height: 0; }
.work.is-static .frame { aspect-ratio: auto; overflow-x: auto; display: flex; gap: 10px; background: none; border: 0; box-shadow: none; scroll-snap-type: x mandatory; border-radius: 0; }
.work.is-static .slide { position: relative; flex: 0 0 92%; scroll-snap-align: center; display: block; }
.work.is-static .slide img { position: relative; opacity: 1; height: auto; border-radius: 12px; border: 1px solid var(--line); }
.work.is-static .slide i { display: none; }
.work.is-static .stage-ring { display: none; }

/* ---------- rules ---------- */
.rules { padding: 140px var(--pad) 100px; }
.rule-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); margin-top: 30px; }
.rule { position: relative; padding: 34px 30px 40px 0; border-bottom: 1px solid var(--line); }
.rule:not(:nth-child(3n+1)) { padding-left: 30px; border-left: 1px solid var(--line); }
.rule::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 0; background: var(--blue-2); box-shadow: 0 0 10px var(--blue); transition: width .7s var(--ease); }
.rule:hover::after { width: 100%; }
.rule h3 { margin: 0 0 10px; font: 400 28px/1.1 var(--serif); }
.rule p { margin: 0; color: var(--mute); font-size: 15.5px; }

/* ---------- contact ---------- */
.contact { position: relative; padding: 160px var(--pad) 140px; border-top: 1px solid var(--line); overflow: hidden; }
.contact-ring { position: absolute; right: -8vw; top: 50%; width: min(60vw, 760px); aspect-ratio: 1; transform: translateY(-50%); border-radius: 50%; border: 2px solid rgba(255, 255, 255, .85); box-shadow: 0 0 30px rgba(255, 255, 255, .35), 0 0 160px rgba(232, 176, 75, .65), inset 0 0 90px rgba(232, 176, 75, .4); pointer-events: none; }
.contact-title { position: relative; margin: 0 0 28px; font: 400 clamp(58px, 9vw, 150px)/.92 var(--serif); letter-spacing: -0.03em; }
.contact-lede { position: relative; margin: 0 0 40px; color: var(--mute); font-size: 19px; max-width: 30em; }
.contact-actions { position: relative; display: flex; flex-wrap: wrap; gap: 14px; }
.foot { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 26px var(--pad) 36px; border-top: 1px solid var(--line); color: var(--mute); font-size: 13px; }
.foot a { text-decoration: none; } .foot a:hover { color: var(--white); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .top nav a:not(.pill) { display: none; }
  .index { display: none; }
  .columns { grid-template-columns: repeat(3, 1fr); }
  .hero-pin { height: auto; min-height: 0; overflow: visible; padding-top: 120px; }
  .name { position: relative; top: auto; transform: none; font-size: 27vw; }
  .name-row { gap: 0; }
  .light-ring { top: 260px; width: 62vw; }
  .portrait { position: relative; left: auto; transform: none; margin: -14vw auto 0; width: 82vw; }
  .hero-ar { position: relative; right: auto; bottom: auto; text-align: center; margin-top: 10px; }
  .corner, .scroll-cue { display: none; }
  .scene2 { position: relative; right: auto; top: auto; transform: none; width: auto; visibility: visible; padding: 50px var(--pad) 60px; }
  .system-pin { grid-template-columns: 1fr; min-height: 0; }
  .explode { height: 520px; }
  .layer { height: 260px; margin-top: -130px; }
  .work-pin { grid-template-columns: 1fr; min-height: 0; padding-top: 40px; }
  .rule-grid { grid-template-columns: 1fr; }
  .rule, .rule:not(:nth-child(3n+1)) { padding-left: 0; border-left: 0; }
  .contact-ring { width: 110vw; right: -60vw; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .explode { height: 420px; }
  .layer { left: 8%; right: 8%; height: 180px; margin-top: -90px; }
  .tag { right: 0; top: -12px; font-size: 12px; }
  .rules-card { padding: 16px; gap: 4px; }
  .rc-row { padding-bottom: 3px; font-size: 10px; }
  .ledger { padding: 14px; }
  .lg-h, .lg-r { padding: 3px 0; font-size: 10px; }
  .switch button { padding: 9px 12px; font-size: 13px; }
  .pill-xl { min-height: 56px; padding: 0 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track, .light-ring i { animation: none; }
  .cursor { display: none; }
  .pill::before, .rule::after, .link-under, .switch-thumb { transition: none; }
}

/* scene 2 in normal flow (reduced motion / no animation library) */
.hero > .scene2.scene2-flow { position: relative; right: auto; top: auto; transform: none; visibility: visible; width: auto; max-width: 680px; margin: 0 0 0 auto; padding: 60px var(--pad) 100px; }

/* ---------- work: browser window + thumbnails ---------- */
.window { position: relative; border-radius: 14px; overflow: hidden; background: #1a1c21; border: 1px solid rgba(244, 241, 234, .14); box-shadow: 0 50px 100px -40px #000, 0 0 90px -30px rgba(232, 176, 75, .55); }
.window-bar { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; background: #1f2127; border-bottom: 1px solid rgba(244, 241, 234, .08); font-size: 12px; color: var(--mute); }
.window-bar i { width: 10px; height: 10px; border-radius: 50%; background: #3a3c43; }
.window-bar i:first-child { background: #c9a25a; }
.window-bar span { margin-left: 12px; padding: 3px 14px; border-radius: 6px; background: rgba(255, 255, 255, .05); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.window .frame { border: 0; border-radius: 0; box-shadow: none; }
.slide { display: block; will-change: transform, opacity; }
.slide img { opacity: 1; }
.thumbs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-top: 16px; position: relative; }
.thumb { appearance: none; border: 1px solid rgba(244, 241, 234, .12); background: #15171c; border-radius: 8px; padding: 0; overflow: hidden; cursor: pointer; text-align: left; color: var(--mute); transition: border-color .3s, color .3s, transform .3s var(--ease); }
.thumb img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; opacity: .55; transition: opacity .3s; }
.thumb span { display: block; padding: 6px 8px; font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thumb:hover { transform: translateY(-3px); color: var(--white); }
.thumb:hover img { opacity: .9; }
.thumb.is-on { border-color: var(--blue); color: var(--white); box-shadow: 0 0 18px -6px var(--blue); }
.thumb.is-on img { opacity: 1; }
.stage-ring { width: 74%; opacity: .55; }
.work.is-static .window-bar span { max-width: 60vw; }
@media (max-width: 900px) {
  .thumbs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .work.is-static .frame { gap: 0; }
  .work.is-static .slide { flex: 0 0 100%; }
  .work.is-static .slide img { border: 0; border-radius: 0; }
}
@media (prefers-reduced-motion: reduce) { .thumb, .thumb img { transition: none; } }

/* real photo (no cutout yet): soft oval fade so the name shows around it */
.portrait img[src*="portrait-real"] {
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 48% 48%, #000 55%, transparent 100%);
  mask-image: radial-gradient(ellipse 50% 50% at 48% 48%, #000 55%, transparent 100%);
}

/* real cutout portrait (head centred in the file) */
.portrait { width: clamp(420px, 56vw, 900px); }
.portrait img[src*="portrait-hero"] {
  filter: contrast(1.05);
  -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent 98%), linear-gradient(to right, transparent 18%, #000 32%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to bottom, #000 72%, transparent 98%), linear-gradient(to right, transparent 18%, #000 32%);
  mask-composite: intersect;
}
@media (max-width: 900px) { .portrait { width: 118vw; margin-left: -20vw; } }

/* ===== v6: kiln-green palette touches from the first dark version ===== */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; width: 20px; height: 20px; }
.tiles i { background: var(--white); border-radius: 2px; transition: transform .5s var(--ease); }
.tiles i:nth-child(2) { background: var(--blue); }
.mark:hover .tiles i:nth-child(1) { transform: translate(11px, 0); }
.mark:hover .tiles i:nth-child(2) { transform: translate(0, 11px); }
.mark:hover .tiles i:nth-child(4) { transform: translate(-11px, 0); }
.mark:hover .tiles i:nth-child(3) { transform: translate(0, -11px); }
.marquee span { font-style: normal; color: transparent; -webkit-text-stroke: 1px rgba(236, 230, 216, .6); transition: color .3s; }
.marquee span:hover { color: var(--white); }
.marquee b { width: 12px; height: 12px; border-radius: 3px; transform: rotate(45deg); box-shadow: none; background: var(--blue); }

/* ===== work: covers + case studies ===== */
.work { padding: 140px 0 40px; }
.work-head { padding: 0 var(--pad); display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.work-head .muted { margin: 0 0 34px; max-width: 26em; }
.covers { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 10px var(--pad) 40px; }
.cover { position: relative; display: block; text-decoration: none; border-radius: 22px; padding: 22px 22px 28px; background: var(--void-2); border: 1px solid var(--line); overflow: hidden; perspective: 1200px; transition: border-color .4s, transform .5s var(--ease); }
.cover:hover { border-color: rgba(232, 176, 75, .55); transform: translateY(-4px); }
.cover-ar { position: absolute; right: 22px; bottom: 10px; font: 700 110px/1 "Reem Kufi", var(--ar); color: transparent; -webkit-text-stroke: 1px rgba(232, 176, 75, .28); direction: rtl; pointer-events: none; }
.cover-img { border-radius: 12px; overflow: hidden; border: 1px solid rgba(236, 230, 216, .14); box-shadow: 0 30px 60px -30px #000; transform-style: preserve-3d; }
.cover-img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; transition: transform 1s var(--ease); }
.cover:hover .cover-img img { transform: scale(1.04); }
.cover-text { position: relative; padding: 24px 6px 0; }
.cover-kind { margin: 0 0 6px; color: var(--blue); font-size: 13px; font-weight: 600; }
.cover h3 { margin: 0 0 10px; font: 400 clamp(34px, 3.4vw, 52px)/1 var(--serif); }
.cover-text > p:not(.cover-kind) { margin: 0 0 20px; color: var(--mute); max-width: 30em; }
.cover-go { display: inline-block; font-weight: 600; font-size: 14px; padding-bottom: 3px; background: linear-gradient(var(--blue), var(--blue)) 0 100% / 100% 1px no-repeat; }

.case { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 56px; padding: 120px var(--pad) 40px; border-top: 1px solid var(--line); margin-top: 60px; position: relative; }
.case-side { position: sticky; top: 110px; align-self: start; }
.case-ar { margin: 0 0 -8px; font: 700 72px/1 "Reem Kufi", var(--ar); color: transparent; -webkit-text-stroke: 1px rgba(232, 176, 75, .45); direction: rtl; text-align: left; }
.serif-m { margin: 0 0 18px; font: 400 clamp(40px, 4.2vw, 66px)/1 var(--serif); letter-spacing: -0.02em; }
.case-lede { margin: 0 0 14px; font-size: 18px; line-height: 1.55; }
.case-side > p.muted { margin: 0 0 24px; font-size: 15.5px; }
.case-facts { margin: 0; display: grid; gap: 10px; font-size: 14px; }
.case-facts div { display: grid; grid-template-columns: 90px 1fr; gap: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.case-facts dt { color: var(--mute); }
.case-facts dd { margin: 0; font-weight: 500; }
.case-facts a { color: var(--blue); }
.case-shots { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.shot { margin: 0; cursor: zoom-in; border-radius: 14px; background: #172a2c; border: 1px solid rgba(236, 230, 216, .12); overflow: hidden; transition: border-color .35s, transform .45s var(--ease), box-shadow .45s; }
.shot.wide { grid-column: 1 / -1; }
.shot:hover, .shot:focus-visible { border-color: rgba(232, 176, 75, .6); transform: translateY(-4px); box-shadow: 0 30px 60px -30px #000, 0 0 40px -18px rgba(232, 176, 75, .6); }
.shot .bar { display: flex; gap: 6px; padding: 10px 12px; border-bottom: 1px solid rgba(236, 230, 216, .08); }
.shot .bar i { width: 8px; height: 8px; border-radius: 50%; background: #2c4446; }
.shot .bar i:first-child { background: var(--blue); }
.shot img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.shot figcaption { padding: 12px 16px 16px; color: var(--mute); font-size: 14px; }
.shot figcaption b { color: var(--white); font-weight: 600; }
.case-flip { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }
.case-flip .case-side { order: 2; }

.lightbox { width: min(1500px, 94vw); max-height: 94vh; padding: 0; border: 1px solid rgba(236, 230, 216, .16); border-radius: 16px; background: var(--void-2); color: var(--white); }
.lightbox::backdrop { background: rgba(4, 10, 11, .86); backdrop-filter: blur(6px); }
.lightbox figure { margin: 0; }
.lightbox img { width: 100%; max-height: 82vh; object-fit: contain; background: #fff; }
.lightbox figcaption { padding: 14px 18px; color: var(--mute); font-size: 14px; }
.lb-close { position: absolute; top: 10px; right: 10px; z-index: 2; appearance: none; border: 1px solid rgba(236, 230, 216, .3); background: rgba(10, 21, 23, .85); color: var(--white); font: 600 13px var(--sans); padding: 8px 14px; border-radius: 999px; cursor: pointer; }
.lb-close:hover { border-color: var(--blue); }

@media (max-width: 900px) {
  .covers { grid-template-columns: 1fr; }
  .case, .case-flip { grid-template-columns: 1fr; gap: 30px; padding-top: 80px; }
  .case-side { position: static; }
  .case-flip .case-side { order: 0; }
  .case-shots { grid-template-columns: 1fr; }
  .cover-ar { font-size: 80px; }
}
@media (prefers-reduced-motion: reduce) {
  .cover, .cover-img img, .shot { transition: none; }
}
.case-ar { margin: 0 0 10px; font-size: 58px; }
.cover-text > p:not(.cover-kind) { max-width: 22em; }
.cover-ar { font-size: 92px; -webkit-text-stroke-color: rgba(232, 176, 75, .22); }

/* frontal real portrait (beach selfie, B&W) */
.portrait:has(img[src*="portrait-front"]) { width: clamp(360px, 40vw, 640px); }
.portrait img[src*="portrait-front"] { filter: contrast(1.04); -webkit-mask-image: linear-gradient(to bottom, #000 74%, transparent 99%); mask-image: linear-gradient(to bottom, #000 74%, transparent 99%); }
@media (max-width: 900px) { .portrait:has(img[src*="portrait-front"]) { width: 92vw; margin-left: auto; } }

/* ===== glass folder: the projects come out of it ===== */
.vault { position: relative; }
.folder { display: none; }
.vault.is-anim { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding-top: 40px; }
.vault.is-anim .folder { display: block; position: absolute; left: 50%; top: 54%; width: clamp(320px, 30vw, 460px); aspect-ratio: 1.42; transform: translate(-50%, -50%); perspective: 1400px; z-index: 3; pointer-events: none; }
.f-back, .f-front { position: absolute; inset: 0; border-radius: 20px; border: 1px solid rgba(255, 255, 255, .2); -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3); }
.f-back { background: linear-gradient(160deg, rgba(232, 176, 75, .22), rgba(232, 176, 75, .06) 60%, rgba(255, 255, 255, .04)); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .25); }
.f-tab { position: absolute; left: 18px; top: -30px; height: 34px; padding: 0 18px; display: flex; align-items: center; border-radius: 12px 12px 0 0; background: rgba(232, 176, 75, .2); border: 1px solid rgba(255, 255, 255, .2); border-bottom: 0; font-size: 12px; font-weight: 600; color: var(--white); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.f-paper { position: absolute; left: 8%; right: 8%; top: 7%; height: 70%; border-radius: 10px; background: #fff center top / cover no-repeat; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .7); }
.f-paper.p1 { background-image: url(assets/sh-admin-dash.webp); transform: rotate(-4deg) translateY(-6%); }
.f-paper.p2 { background-image: url(assets/ph-home.webp); transform: rotate(3deg) translateY(2%); left: 12%; right: 4%; }
.f-front { top: 26%; transform-origin: 50% 100%; transform: rotateX(-14deg); background: linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(232, 176, 75, .14) 55%, rgba(10, 21, 23, .35)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 -10px 40px -20px rgba(232, 176, 75, .5); display: flex; flex-direction: column; justify-content: flex-end; padding: 20px 22px; }
.f-name { font: 400 clamp(22px, 2vw, 30px)/1 var(--serif); color: var(--white); }
.f-count { margin-top: 6px; font-size: 12px; color: rgba(236, 230, 216, .75); }
.f-glow { position: absolute; inset: -40%; z-index: -1; background: radial-gradient(closest-side, rgba(232, 176, 75, .35), transparent 70%); filter: blur(20px); }
.vault.is-anim .work-head, .vault.is-anim .covers { position: relative; z-index: 2; }

/* ===================== v8: best of every version ===================== */
/* studio portrait */
.portrait:has(img[src*="portrait-studio"]) { width: clamp(400px, 44vw, 700px); }
.portrait img[src*="portrait-studio"] { filter: contrast(1.06); -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent 98%); mask-image: linear-gradient(to bottom, #000 70%, transparent 98%); }
@media (max-width: 900px) { .portrait:has(img[src*="portrait-studio"]) { width: 104vw; margin-left: -7vw; } }

/* glass language, taken from the folder, used across the page */
.glass { background: linear-gradient(160deg, rgba(255, 255, 255, .07), rgba(232, 176, 75, .04) 60%, rgba(255, 255, 255, .02)); border: 1px solid rgba(255, 255, 255, .12); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 30px 60px -36px #000; }

/* covers become glass */
.cover { background: linear-gradient(160deg, rgba(255, 255, 255, .06), rgba(232, 176, 75, .05) 55%, rgba(255, 255, 255, .015)); border-color: rgba(255, 255, 255, .12); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12); }
.cover-go::after { content: ""; display: inline-block; width: 8px; height: 8px; margin-left: 10px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg) translateY(-1px); transition: transform .4s var(--ease); }
.cover:hover .cover-go::after { transform: rotate(45deg) translate(3px, -3px); }

/* project viewer: full-screen glass sheet */
.case-modal { width: min(1480px, 96vw); height: 92vh; max-height: none; max-width: none; margin: auto; padding: 0; border: 1px solid rgba(255, 255, 255, .14); border-radius: 24px; color: var(--white); overflow-y: auto; overscroll-behavior: contain;
  background: linear-gradient(160deg, rgba(21, 41, 43, .94), rgba(10, 21, 23, .97)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 60px 120px -40px #000; }
.case-modal::backdrop { background: rgba(4, 10, 11, .7); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.case-modal .case { margin: 0; border: 0; padding: 70px clamp(24px, 4vw, 56px) 56px; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
.case-modal .case-side { top: 70px; }
.case-modal .case-side { order: 0 !important; }
.cm-close { position: sticky; top: 18px; float: right; margin: 18px 18px 0 0; z-index: 5; appearance: none; cursor: pointer; padding: 9px 18px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .25); background: rgba(10, 21, 23, .7); color: var(--white); font: 600 13px var(--sans); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.cm-close:hover { border-color: var(--blue); color: var(--blue); }

/* bento of screens */
.case-modal .case-shots { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.case-modal .shot { grid-column: span 2; background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .1); }
.case-modal .shot.wide:nth-child(1) { grid-column: span 6; }
.case-modal .shot.wide:nth-child(2) { grid-column: span 4; grid-row: span 2; }
.case-modal .shot.wide:nth-child(2) img { aspect-ratio: auto; height: calc(100% - 80px); min-height: 260px; }
.case-modal .shot:nth-child(3), .case-modal .shot:nth-child(4) { grid-column: span 2; }
.case-modal .shot:nth-child(5), .case-modal .shot:nth-child(6) { grid-column: span 3; }
.case-modal .shot figcaption { font-size: 13px; }
.lightbox { z-index: 10; }

/* principles as glass tiles */
.rule-grid { border-top: 0; gap: 16px; }
.rule, .rule:not(:nth-child(3n+1)) { padding: 30px 28px 34px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 18px; background: linear-gradient(160deg, rgba(255, 255, 255, .05), rgba(232, 176, 75, .03) 60%, transparent); }
.rule::after { left: 28px; right: 28px; width: auto; transform: scaleX(0); transform-origin: left; bottom: 0; transition: transform .7s var(--ease); }
.rule:hover::after { transform: scaleX(1); width: auto; }
.rule:nth-child(1) { grid-column: span 2; }
.rule:nth-child(1) h3 { font-size: clamp(32px, 3vw, 44px); }

@media (max-width: 900px) {
  .case-modal { width: 100vw; height: 100dvh; border-radius: 0; }
  .case-modal .case { grid-template-columns: 1fr; padding: 60px 20px 40px; }
  .case-modal .case-side { position: static; }
  .case-modal .case-shots { grid-template-columns: 1fr; }
  .case-modal .shot, .case-modal .shot.wide:nth-child(n) { grid-column: auto; grid-row: auto; }
  .case-modal .shot.wide:nth-child(2) img { height: auto; aspect-ratio: 16 / 10; min-height: 0; }
  .rule:nth-child(1) { grid-column: auto; }
}
.cm-close { position: fixed; float: none; margin: 0; top: calc(4vh + 16px); right: calc(2vw + 18px); }
@media (max-width: 900px) { .cm-close { top: 14px; right: 14px; } }
.rule:nth-child(6) { grid-column: span 3; }
@media (max-width: 900px) { .rule:nth-child(6) { grid-column: auto; } }

/* ===================== v9 work: moving wall of screens ===================== */
.work { padding: 140px 0 0; }
.work-head { padding: 0 var(--pad); }
.reel { position: relative; }
.reel-pin { position: relative; height: 100vh; min-height: 680px; overflow: hidden; }
.reel-name { position: absolute; left: 0; top: 50%; transform: translateY(-50%); margin: 0; display: flex; gap: 6vw; white-space: nowrap; pointer-events: none;
  font: 400 clamp(120px, 17vw, 300px)/1 var(--serif); color: transparent; -webkit-text-stroke: 1px rgba(232, 176, 75, .16); }
.reel-name .ar { font-family: "Reem Kufi", var(--ar); direction: rtl; }
.wall-wrap { position: absolute; top: -10%; bottom: -10%; right: -4%; width: 66%; perspective: 1600px; perspective-origin: 30% 50%; }
.wall { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; transform-style: preserve-3d; transform: rotateX(22deg) rotateZ(-10deg) rotateY(-8deg); transform-origin: 50% 50%; }
.col { display: flex; flex-direction: column; gap: 22px; will-change: transform; }
.wall .shot { margin: 0; border-radius: 12px; overflow: hidden; cursor: zoom-in; position: relative; background: #fff; border: 1px solid rgba(255, 255, 255, .18);
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .9), 0 0 50px -24px rgba(232, 176, 75, .5); transition: transform .5s var(--ease), box-shadow .5s; }
.wall .shot img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.wall .shot figcaption { position: absolute; left: 10px; bottom: 10px; padding: 4px 11px; border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--white);
  background: rgba(10, 21, 23, .78); border: 1px solid rgba(255, 255, 255, .16); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.wall .shot:hover { transform: translateZ(40px) scale(1.03); box-shadow: 0 40px 80px -24px #000, 0 0 60px -16px rgba(232, 176, 75, .8); }
.reel-pin::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, var(--void) 22%, rgba(10, 21, 23, .55) 42%, transparent 60%), linear-gradient(var(--void), transparent 14%, transparent 86%, var(--void)); }
.reel-info { position: absolute; z-index: 2; left: var(--pad); top: 50%; transform: translateY(-50%); width: min(470px, 36vw); }
.reel-num { margin: 0 0 18px; font-size: 13px; color: var(--mute); font-variant-numeric: tabular-nums; }
.reel-kind { margin: 0 0 8px; color: var(--blue); font-size: 13px; font-weight: 600; }
.reel-info .serif-m { margin-bottom: 18px; }
.reel-lede { margin: 0 0 12px; font-size: 18px; line-height: 1.55; }
.reel-more { margin: 0 0 22px; color: var(--mute); font-size: 15.5px; }
.reel-facts { margin: 0 0 26px; display: grid; gap: 8px; font-size: 14px; }
.reel-facts div { display: grid; grid-template-columns: 90px 1fr; gap: 12px; padding-top: 8px; border-top: 1px solid var(--line); }
.reel-facts dt { color: var(--mute); }
.reel-facts dd { margin: 0; font-weight: 500; }
.reel-facts a { color: var(--blue); }
.reel-bar { height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.reel-bar i { display: block; height: 100%; background: var(--blue); transform-origin: left; transform: scaleX(0); box-shadow: 0 0 10px var(--blue); }

/* phone: the columns become rows that glide on their own */
@media (max-width: 900px) {
  .reel { padding: 60px 0 30px; }
  .reel-pin { height: auto; min-height: 0; overflow: visible; display: flex; flex-direction: column; }
  .reel-pin::after { display: none; }
  .reel-name { position: relative; top: auto; transform: none; font-size: 22vw; order: 0; overflow: hidden; width: 100%; }
  .reel-info { position: relative; left: auto; top: auto; transform: none; width: auto; padding: 0 var(--pad); order: 1; }
  .reel-bar { display: none; }
  .wall-wrap { position: relative; inset: auto; width: auto; order: 2; perspective: none; margin-top: 30px; overflow: hidden; }
  .wall { position: relative; display: flex; flex-direction: column; gap: 12px; transform: none; }
  .col { flex-direction: row; gap: 12px; width: max-content; animation: glide 34s linear infinite; }
  .col-2 { animation-direction: reverse; }
  .col-3 { animation-duration: 40s; }
  .wall .shot { width: 70vw; flex: none; }
}
@keyframes glide { to { transform: translateX(-50%); } }

/* no motion: a calm static grid */
@media (prefers-reduced-motion: reduce) {
  .reel-pin { height: auto; overflow: visible; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 40px; padding: 60px var(--pad); }
  .reel-pin::after { display: none; }
  .reel-name { display: none; }
  .reel-info { position: relative; left: auto; top: auto; transform: none; width: auto; }
  .wall-wrap { position: relative; inset: auto; width: auto; perspective: none; }
  .wall { position: relative; transform: none; }
  .col { animation: none; }
  .col .shot:nth-child(n+4) { display: none; }
  .wall .shot:hover { transform: none; }
}
@media (prefers-reduced-motion: reduce) and (max-width: 900px) {
  .reel-pin { grid-template-columns: 1fr; }
  .col { flex-direction: column; width: auto; }
  .wall .shot { width: auto; }
}

/* ChatGPT studio portrait: soft separation shadow + smooth fade into the page */
.portrait:has(img[src*="portrait-gpt"]) { width: clamp(380px, 38vw, 600px); }
.portrait img[src*="portrait-gpt"] {
  filter: contrast(1.04) drop-shadow(0 0 28px rgba(232, 176, 75, .22)) drop-shadow(0 30px 60px rgba(0, 0, 0, .55));
  -webkit-mask-image: linear-gradient(to bottom, #000 62%, rgba(0,0,0,.55) 82%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 62%, rgba(0,0,0,.55) 82%, transparent 100%);
}
.portrait:has(img[src*="portrait-gpt"])::before { content: ""; position: absolute; left: 10%; right: 10%; top: 8%; height: 60%; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(232, 176, 75, .16), transparent 75%); filter: blur(30px); }
.glow { opacity: .75; }
@media (max-width: 900px) { .portrait:has(img[src*="portrait-gpt"]) { width: 96vw; margin-left: auto; } }
.portrait img[src*="portrait-gpt"] {
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, rgba(0,0,0,.5) 76%, transparent 94%), linear-gradient(to right, transparent 0%, #000 14%, #000 86%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to bottom, #000 55%, rgba(0,0,0,.5) 76%, transparent 94%), linear-gradient(to right, transparent 0%, #000 14%, #000 86%, transparent 100%);
  mask-composite: intersect;
}
.light-ring { z-index: 1; }
.portrait { z-index: 2; }
.portrait img[src*="portrait-gpt"] {
  -webkit-mask-image: linear-gradient(to bottom, #000 74%, rgba(0,0,0,.5) 88%, transparent 100%), linear-gradient(to right, transparent 0%, #000 14%, #000 86%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 74%, rgba(0,0,0,.5) 88%, transparent 100%), linear-gradient(to right, transparent 0%, #000 14%, #000 86%, transparent 100%);
}

/* second system mirrors the first: wall on the left, story on the right */
@media (min-width: 901px) {
  #reel-pharmacy .wall-wrap { right: auto; left: -4%; perspective-origin: 70% 50%; }
  #reel-pharmacy .wall { transform: rotateX(22deg) rotateZ(10deg) rotateY(8deg); }
  #reel-pharmacy .reel-info { left: auto; right: var(--pad); }
  #reel-pharmacy .reel-pin::after { background: linear-gradient(270deg, var(--void) 22%, rgba(10, 21, 23, .55) 42%, transparent 60%), linear-gradient(var(--void), transparent 14%, transparent 86%, var(--void)); }
  #reel-pharmacy .reel-name { flex-direction: row-reverse; right: 0; left: auto; }
}
/* portrait: deeper, reference-like shadow on the body */
.portrait img[src*="portrait-gpt"] { filter: contrast(1.06) drop-shadow(0 40px 70px rgba(0, 0, 0, .7)); }

/* ===== colour themes (choose with ?theme=mono | midnight; default = kiln green) ===== */
html[data-theme="mono"] { --void: #0b0b0c; --void-2: #141416; --void-3: #1c1c20; --white: #f2f0eb; --mute: #8e8d8a; --line: rgba(242, 240, 235, .1); --blue: #d4b06a; --blue-2: #e6c88a; }
html[data-theme="midnight"] { --void: #06070b; --void-2: #0d0f16; --void-3: #141724; --white: #f1f2f6; --mute: #8a90a3; --line: rgba(241, 242, 246, .09); --blue: #6d8bff; --blue-2: #9db0ff; }
html[data-theme] body, html[data-theme] .boot, html[data-theme] .marquee { background: var(--void); }
html[data-theme] .top { background: linear-gradient(var(--void) 35%, transparent); }
html[data-theme="mono"] .light-ring::before { box-shadow: 0 0 22px rgba(255,255,255,.5), 0 0 70px rgba(212,176,106,.35), inset 0 0 26px rgba(212,176,106,.25); }
html[data-theme="midnight"] .light-ring::before { box-shadow: 0 0 22px rgba(255,255,255,.55), 0 0 80px rgba(109,139,255,.6), inset 0 0 26px rgba(109,139,255,.45); }
html[data-theme="midnight"] .glow { background: radial-gradient(closest-side, rgba(70, 100, 255, .55), rgba(70, 100, 255, .12) 55%, transparent); }
html[data-theme="mono"] .glow { background: radial-gradient(closest-side, rgba(212, 176, 106, .28), rgba(212, 176, 106, .06) 55%, transparent); }
html[data-theme] .reel-pin::after { background: linear-gradient(90deg, var(--void) 22%, transparent 60%), linear-gradient(var(--void), transparent 14%, transparent 86%, var(--void)); }
html[data-theme] #reel-pharmacy .reel-pin::after { background: linear-gradient(270deg, var(--void) 22%, transparent 60%), linear-gradient(var(--void), transparent 14%, transparent 86%, var(--void)); }
html[data-theme] .wall .shot figcaption { background: color-mix(in srgb, var(--void) 80%, transparent); }
html[data-theme="midnight"] .pill-solid, html[data-theme="midnight"] .tag { color: #fff; }

/* =====================================================================
   v13 palette: deep navy + gold (from ui-ux-pro-max "trust navy + premium gold")
   gold = the one colour that asks for attention (buttons, key labels, progress)
   blue = light only (ring glow, ambient glow), never text
   ===================================================================== */
:root {
  --void: #0b1020; --void-2: #111830; --void-3: #18203c;
  --white: #f1efe9; --mute: #8e96ad; --line: rgba(241, 239, 233, .1);
  --blue: #d9b15f; --blue-2: #e8c77f;          /* accent (kept old variable names) */
  --glow: 79, 107, 255;                        /* ambient blue light, rgb */
  --ink-on-accent: #0b1020;
  --stroke: rgba(241, 239, 233, .22);           /* outlined display text */
  --card: rgba(255, 255, 255, .04); --card-line: rgba(255, 255, 255, .12);
}
html[data-mode="light"] {
  --void: #f6f4ef; --void-2: #ffffff; --void-3: #eeebe3;
  --white: #0f172a; --mute: #5b6478; --line: rgba(15, 23, 42, .12);
  --blue: #925c07; --blue-2: #a16207;
  --glow: 79, 107, 255;
  --ink-on-accent: #ffffff;
  --stroke: rgba(15, 23, 42, .22);
  --card: rgba(15, 23, 42, .03); --card-line: rgba(15, 23, 42, .12);
}
html, body, .boot, .marquee { background: var(--void); }
html { color-scheme: dark; }
html[data-mode="light"] { color-scheme: light; }
body { transition: background-color .5s var(--ease), color .5s var(--ease); }

/* header + chrome */
.top { background: linear-gradient(var(--void) 35%, transparent); }
.columns i { border-color: var(--line); }
.tiles i { background: var(--white); }
.tiles i:nth-child(2) { background: var(--blue); }
.pill { border-color: var(--stroke); }
.pill::before { background: var(--white); }
.pill:hover { color: var(--void); }
.pill-solid { background: var(--blue); border-color: var(--blue); color: var(--ink-on-accent); box-shadow: 0 10px 30px -10px rgba(217, 177, 95, .6); }
.link-under { background-image: linear-gradient(var(--blue), var(--blue)); }
::selection { background: var(--blue); color: var(--ink-on-accent); }

/* hero light: white ring with blue glow, blue ambient below, gold kept for buttons */
.light-ring::before { border-color: rgba(255, 255, 255, .95); box-shadow: 0 0 22px rgba(255, 255, 255, .55), 0 0 80px rgba(var(--glow), .6), inset 0 0 26px rgba(var(--glow), .45); }
.light-ring i { background: conic-gradient(from 0deg, transparent 0 70%, rgba(var(--glow), .95) 82%, transparent 92%); }
.glow { opacity: 1; background: radial-gradient(closest-side, rgba(var(--glow), .5), rgba(var(--glow), .1) 55%, transparent); }
.cursor { background: radial-gradient(circle, rgba(var(--glow), .14), transparent 62%); }
.portrait img[src*="portrait-gpt"] { filter: contrast(1.06) drop-shadow(0 40px 70px rgba(0, 0, 0, .7)); }
.portrait:has(img[src*="portrait-gpt"])::before { background: radial-gradient(closest-side, rgba(var(--glow), .22), transparent 75%); }
.index b { background: var(--blue); box-shadow: none; }

/* outlined display text */
.marquee span, .reel-name, .cover-ar, .case-ar, .sys-ar, .contact-ar { -webkit-text-stroke-color: var(--stroke); }
.marquee b { background: var(--blue); }

/* system + cards */
.layers-list li.is-on { border-color: var(--blue); box-shadow: -8px 0 18px -10px var(--blue); }
.tag { background: var(--blue); color: var(--ink-on-accent); box-shadow: none; }
.rules-card { background: #18203c; color: #f1efe9; }
.rc-row .k { color: #e8c77f; }
.lg-h { color: #925c07; }
.rule, .rule:not(:nth-child(3n+1)) { background: var(--card); border-color: var(--card-line); }
.rule::after { background: var(--blue); box-shadow: none; }

/* work reels */
.reel-kind, .reel-facts a { color: var(--blue); }
.reel-bar i { background: var(--blue); box-shadow: none; }
.wall .shot figcaption { color: #f1efe9; background: rgba(11, 16, 32, .8); border-color: rgba(255, 255, 255, .16); }
.wall .shot { box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .75), 0 0 50px -24px rgba(var(--glow), .45); }
.reel-pin::after { background: linear-gradient(90deg, var(--void) 22%, color-mix(in srgb, var(--void) 55%, transparent) 42%, transparent 60%), linear-gradient(var(--void), transparent 14%, transparent 86%, var(--void)); }
@media (min-width: 901px) { #reel-pharmacy .reel-pin::after { background: linear-gradient(270deg, var(--void) 22%, color-mix(in srgb, var(--void) 55%, transparent) 42%, transparent 60%), linear-gradient(var(--void), transparent 14%, transparent 86%, var(--void)); } }

/* contact */
.contact-ring { border-color: rgba(255, 255, 255, .85); box-shadow: 0 0 30px rgba(255, 255, 255, .35), 0 0 160px rgba(var(--glow), .6), inset 0 0 90px rgba(var(--glow), .4); }
.lightbox { background: var(--void-2); color: var(--white); }
.lb-close { background: var(--void-2); color: var(--white); }

/* light mode details */
html[data-mode="light"] .grain { opacity: .035; }
html[data-mode="light"] .light-ring::before { border-color: rgba(15, 23, 42, .85); box-shadow: 0 0 0 1px rgba(255,255,255,.6), 0 0 60px rgba(var(--glow), .35), inset 0 0 30px rgba(var(--glow), .2); }
html[data-mode="light"] .glow { background: radial-gradient(closest-side, rgba(var(--glow), .22), transparent 70%); }
html[data-mode="light"] .portrait img[src*="portrait-gpt"] { filter: contrast(1.05) drop-shadow(0 30px 50px rgba(15, 23, 42, .35)); }
html[data-mode="light"] .wall .shot { box-shadow: 0 30px 60px -28px rgba(15, 23, 42, .45); border-color: rgba(15, 23, 42, .12); }
html[data-mode="light"] .contact-ring { border-color: rgba(15, 23, 42, .7); box-shadow: 0 0 80px rgba(var(--glow), .3), inset 0 0 60px rgba(var(--glow), .2); }
html[data-mode="light"] .layer img, html[data-mode="light"] .rules-card, html[data-mode="light"] .ledger { box-shadow: 0 30px 70px -30px rgba(15, 23, 42, .45); }

/* theme toggle */
.mode { position: relative; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--stroke); background: transparent; color: var(--white); cursor: pointer; display: grid; place-items: center; overflow: hidden; transition: border-color .3s; }
.mode:hover { border-color: var(--blue); color: var(--blue); }
.mode svg { position: absolute; width: 18px; height: 18px; transition: transform .6s var(--ease), opacity .4s; }
.mode .sun { transform: translateY(140%) rotate(-90deg); opacity: 0; }
html[data-mode="light"] .mode .sun { transform: none; opacity: 1; }
html[data-mode="light"] .mode .moon { transform: translateY(-140%) rotate(90deg); opacity: 0; }
@media (prefers-reduced-motion: reduce) { body, .mode svg { transition: none; } }
@media (max-width: 560px) {
  .mark span:last-child { white-space: nowrap; font-size: 14px; }
  .top { gap: 10px; padding: 16px 16px; }
  .top nav { gap: 10px; }
  .top .pill { min-height: 40px; padding: 0 14px; font-size: 13px; white-space: nowrap; }
  .mode { width: 40px; height: 40px; }
}
@media (max-width: 380px) { .top .pill span { font-size: 0; } .top .pill span::after { content: "Hire me"; font-size: 13px; } }

/* ===== v14: black + gold only ===== */
html[data-theme="mono"] { --glow: 212, 176, 106; --ink-on-accent: #0b0b0c; --stroke: rgba(212, 176, 106, .32); --card: rgba(255,255,255,.035); --card-line: rgba(255,255,255,.1); }
html[data-theme="mono"] .pill-solid { color: #0b0b0c; box-shadow: 0 10px 30px -10px rgba(212, 176, 106, .55); }
html[data-theme="mono"] .rules-card { background: #1c1c20; }
html[data-theme="mono"] .wall .shot figcaption { background: rgba(11, 11, 12, .82); }

/* outlined Arabic Kufi words, gold hairline */
.kufi { margin: 0; font-family: "Reem Kufi", var(--ar); font-weight: 700; line-height: 1; direction: rtl; color: transparent; -webkit-text-stroke: 1px rgba(212, 176, 106, .7); pointer-events: none; }
.kufi-s { font-size: 64px; text-align: left; margin-bottom: 14px; }
#reel-pharmacy .kufi-s { text-align: left; }
.kufi-xl { position: absolute; right: var(--pad); bottom: -0.12em; font-size: clamp(160px, 30vw, 480px); -webkit-text-stroke-color: rgba(212, 176, 106, .28); }
.contact-ring { display: none; }

/* portrait a little larger */
.portrait:has(img[src*="portrait-gpt"]) { width: clamp(420px, 43vw, 680px); }
@media (max-width: 900px) { .portrait:has(img[src*="portrait-gpt"]) { width: 104vw; margin-left: -4vw; } .kufi-s { font-size: 48px; } }

/* ===== v15 ===== */
/* signature accent: one emerald "system is live" green, used only where something is live or moving */
html[data-theme="mono"] { --sig: #3ddc97; }
.reel-bar i, .index b { background: var(--sig) !important; box-shadow: 0 0 12px rgba(61, 220, 151, .55) !important; }
.marquee b { background: var(--sig) !important; width: 7px; height: 7px; border-radius: 50%; transform: none; box-shadow: 0 0 10px rgba(61, 220, 151, .7); }
.live { display: inline-flex; align-items: center; gap: 8px; color: var(--sig); font-weight: 600; }
.live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sig); box-shadow: 0 0 0 0 rgba(61, 220, 151, .6); animation: live 2s infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 9px rgba(61, 220, 151, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 220, 151, 0); } }
.fx-bar i:first-child { background: var(--sig) !important; }

/* neon ring sized to the larger portrait */
.light-ring { width: clamp(330px, 37vw, 580px); top: 45%; }
@media (max-width: 900px) { .light-ring { width: 76vw; top: 240px; } }

/* tech strip */
.marquee-track { gap: 46px; animation-duration: 36s; }
.tech { display: inline-flex; align-items: center; gap: 14px; font: 500 clamp(22px, 2.4vw, 32px)/1 var(--sans) !important; color: var(--white) !important; -webkit-text-stroke: 0 !important; white-space: nowrap; opacity: .82; transition: opacity .3s; }
.tech svg { width: 1.1em; height: 1.1em; fill: var(--blue); }
.tech:hover { opacity: 1; }

/* key screens that lift out of the wall */
.feature { position: absolute; z-index: 1; top: 50%; right: var(--pad); width: 54%; height: 74vh; transform: translateY(-50%); perspective: 1400px; pointer-events: none; }
#reel-pharmacy .feature { right: auto; left: var(--pad); }
.fx { position: absolute; margin: 0; border-radius: 12px; overflow: hidden; background: #141416; border: 1px solid rgba(255, 255, 255, .16); box-shadow: 0 40px 90px -30px #000, 0 0 60px -30px rgba(212, 176, 106, .6); visibility: hidden; }
.fx img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.fx-bar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; background: #1b1b1e; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.fx-bar i { width: 8px; height: 8px; border-radius: 50%; background: #3a3a40; }
.fx-bar em { margin-left: 10px; font: 600 12px var(--sans); font-style: normal; color: var(--mute); }
.fx1 { width: 74%; left: 13%; top: 0; z-index: 3; }
.fx2 { width: 50%; left: 0; bottom: 0; z-index: 2; }
.fx3 { width: 50%; right: 0; bottom: 4%; z-index: 2; }
@media (max-width: 900px) { .feature { display: none; } }
@media (prefers-reduced-motion: reduce) { .feature { display: none; } .live::before { animation: none; } }
@media (min-width: 561px) and (max-width: 900px) {
  .portrait:has(img[src*="portrait-gpt"]) { width: 72vw; margin: -10vw auto 0; }
  .light-ring { width: 58vw; top: 300px; }
}
