/* Asiqur Rahman portfolio, v2
   A look development studio: neutral grey stage, a warm key light,
   a cool rim light, and a Macbeth chart as the mark. */
:root {
  --stage: #26272a;
  --stage-2: #2f3034;
  --deep: #1d1e20;
  --line: rgba(237,235,230,.14);
  --line-2: rgba(237,235,230,.24);
  --text: #edebe6;
  --muted: #a9a7a1;
  --key: #f0b44c;
  --key-ink: #241a08;
  --rim: #8fb4ff;
  --wrap: 1280px;
  --gut: clamp(16px, 4vw, 48px);
  --r: 14px;
  --r-s: 8px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 76px; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0; background: var(--stage); color: var(--text);
  font-family: "Archivo", system-ui, sans-serif; font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration-color: rgba(240,180,76,.6); text-underline-offset: 3px; }
a:hover { color: var(--key); }
:focus-visible { outline: 2px solid var(--key); outline-offset: 3px; border-radius: 3px; }
h1, h2, h3 { font-stretch: 125%; line-height: 1.02; margin: 0; letter-spacing: -0.015em; }
h2 { font-size: clamp(34px, 5vw, 68px); font-weight: 750; }
h3 { font-size: 20px; font-weight: 650; font-stretch: 112%; line-height: 1.2; }
p { margin: 0 0 1em; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--key); color: var(--key-ink); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

/* grain over everything for a filmic surface */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 90; opacity: .05;
  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");
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 24px;
  border-radius: 999px; background: var(--key); color: var(--key-ink); font-weight: 650;
  text-decoration: none; border: 1px solid var(--key); transition: background .25s, color .25s, border-color .25s;
  will-change: transform;
}
.btn:hover { background: #f7c873; color: var(--key-ink); }
.btn--ghost { background: rgba(38,39,42,.35); color: var(--text); border-color: var(--line-2); backdrop-filter: blur(6px); }
.btn--ghost:hover { background: rgba(38,39,42,.6); border-color: var(--key); color: var(--key); }
.btn--small { min-height: 40px; padding: 0 16px; font-size: 15px; }

/* Custom cursor (fine pointers only) */
.cursor { position: fixed; left: 0; top: 0; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--text); pointer-events: none; z-index: 95; mix-blend-mode: difference; opacity: 0; transition: width .3s, height .3s, margin .3s, background .3s, opacity .3s; display: grid; place-items: center; }
.cursor__label { font-size: 13px; font-weight: 700; color: var(--key-ink); opacity: 0; transition: opacity .2s; white-space: nowrap; }
.cursor.is-big { width: 86px; height: 86px; margin: -43px 0 0 -43px; background: var(--key); mix-blend-mode: normal; }
.cursor.is-big .cursor__label { opacity: 1; }
.cursor.is-on { opacity: 1; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* Nav */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 30; transition: background .3s, border-color .3s, transform .4s; border-bottom: 1px solid transparent; }
.nav.is-solid { background: rgba(38,39,42,.78); backdrop-filter: blur(14px) saturate(1.2); border-bottom-color: var(--line); }
.nav.is-hidden { transform: translateY(-100%); }
.nav__inner { max-width: var(--wrap); margin: 0 auto; padding: 14px var(--gut); display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 700; font-stretch: 118%; font-size: 18px; }
.brand:hover { color: var(--text); }
.brand__chart { width: 30px; height: 20px; border-radius: 3px; }
.nav__links { margin-left: auto; display: flex; align-items: center; gap: 28px; }
.nav__links a:not(.btn) { text-decoration: none; color: var(--muted); font-size: 15px; position: relative; }
.nav__links a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: var(--key); transform: scaleX(0); transform-origin: right; transition: transform .35s; }
.nav__links a:not(.btn):hover { color: var(--text); }
.nav__links a:not(.btn):hover::after { transform: scaleX(1); transform-origin: left; }
.nav__toggle { display: none; margin-left: auto; background: rgba(38,39,42,.5); color: var(--text); border: 1px solid var(--line-2); border-radius: 999px; padding: 8px 16px; font: inherit; font-size: 15px; cursor: pointer; }
@media (max-width: 860px) {
  .nav__toggle { display: block; }
  .nav__links { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--deep); border-bottom: 1px solid var(--line); padding: 8px var(--gut) 18px; }
  .nav__links.is-open { display: flex; }
  .nav__links a:not(.btn) { padding: 13px 0; font-size: 18px; color: var(--text); border-bottom: 1px solid var(--line); }
  .nav__links a:not(.btn)::after { display: none; }
  .nav__links .btn { margin-top: 14px; }
}

/* Hero */
.hero { position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden; display: flex; align-items: flex-end; isolation: isolate; }
.hero__glow { position: absolute; inset: 0; z-index: -2; background:
  radial-gradient(60% 70% at 72% 42%, rgba(240,180,76,.16), transparent 60%),
  radial-gradient(40% 50% at 92% 10%, rgba(143,180,255,.10), transparent 70%),
  radial-gradient(120% 80% at 50% 120%, #1c1d1f 10%, transparent 60%); }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: 0; transition: opacity 1.2s ease; touch-action: pan-y; }
.hero.has-3d .hero__canvas { opacity: 1; }
.hero__fallback { position: absolute; right: 6%; top: 18%; width: min(38vw, 460px); border-radius: var(--r); z-index: -1; display: none; }
.hero.no-webgl .hero__fallback { display: block; }
.hero.no-webgl .lookdev-ui { display: none; }
.hero__inner { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 120px var(--gut) clamp(28px, 5vh, 56px); pointer-events: none; }
.hero__inner a, .hero__inner button { pointer-events: auto; }
.hero__role { font-size: clamp(18px, 1.9vw, 26px); font-stretch: 115%; font-weight: 650; color: var(--key); margin-bottom: 14px; text-shadow: 0 2px 18px rgba(20,20,22,.6); }
.hero__name { font-size: clamp(60px, 10.5vw, 160px); font-weight: 850; line-height: .86; letter-spacing: -0.04em; margin: 0 0 clamp(24px, 4vh, 40px) -0.04em; position: relative; }
/* soft dark halo so the white name stays readable over the bright chrome ball */
.hero__name .word { text-shadow: 0 2px 4px rgba(15,15,17,.35), 0 10px 40px rgba(15,15,17,.55); }
.hero__lede { text-shadow: 0 1px 12px rgba(20,20,22,.7); }
.hero__name .line, .contact__big .line { display: block; overflow: hidden; padding-bottom: .04em; }
.hero__name .word, .contact__big .word { display: inline-block; }
.hero__bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.hero__lede { color: var(--muted); max-width: 44ch; font-size: 18px; margin-bottom: 22px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.lookdev-ui { text-align: right; }
.lookdev-ui__hint { font-size: 14px; color: var(--muted); margin-bottom: 10px; transition: opacity .6s; }
.lookdev-ui__hint.is-done { opacity: 0; }
.lookdev-ui__modes { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(29,30,32,.55); border: 1px solid var(--line); backdrop-filter: blur(10px); }
.lookdev-ui__modes button { font: inherit; font-size: 14px; color: var(--muted); background: none; border: 0; border-radius: 999px; padding: 8px 14px; cursor: pointer; transition: background .25s, color .25s; }
.lookdev-ui__modes button:hover { color: var(--text); }
.lookdev-ui__modes button[aria-checked="true"] { background: var(--text); color: var(--key-ink); }

@media (max-width: 760px) {
  .hero__inner { padding-top: 56svh; }
  .hero__name { font-size: clamp(56px, 18vw, 96px); }
  .lookdev-ui { text-align: left; width: 100%; order: -1; }
  .lookdev-ui__hint { display: none; }
  .lookdev-ui__modes { display: flex; width: 100%; justify-content: space-between; }
  .lookdev-ui__modes button { padding: 8px 10px; font-size: 13px; }
  .hero__bottom { gap: 22px; }
}

/* Marquee */
.marquee { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; padding: 18px 0; background: var(--deep); }
.marquee__track { display: flex; width: max-content; gap: 0; animation: marquee 40s linear infinite; }
.marquee span { font-size: clamp(18px, 2vw, 26px); font-stretch: 120%; font-weight: 600; color: var(--muted); padding: 0 28px; white-space: nowrap; display: inline-flex; align-items: center; gap: 56px; }
.marquee span::after { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--key); opacity: .8; margin-left: 28px; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Facts */
.facts { max-width: var(--wrap); margin: 0 auto; padding: clamp(48px, 7vw, 88px) var(--gut) 0; list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.facts li { padding-top: 18px; border-top: 1px solid var(--line-2); color: var(--muted); font-size: 15px; line-height: 1.4; }
.facts strong, .facts .plus { color: var(--text); font-size: clamp(36px, 4.4vw, 60px); font-stretch: 125%; font-weight: 750; line-height: 1; }
.facts .plus { color: var(--key); }
.facts .lbl { display: block; margin-top: 8px; }
@media (max-width: 700px) { .facts { grid-template-columns: 1fr 1fr; } }

/* Sections */
.section { max-width: var(--wrap); margin: 0 auto; padding: clamp(80px, 11vw, 150px) var(--gut) 0; }
.section__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 48px; align-items: end; margin-bottom: 36px; }
.section__head p { color: var(--muted); max-width: 50ch; margin: 0; }
@media (max-width: 760px) { .section__head { grid-template-columns: 1fr; } }
.subhead { margin: 52px 0 18px; font-size: 22px; }

/* Video (click to load) */
.video { position: relative; aspect-ratio: 16/9; border-radius: var(--r); overflow: hidden; background: var(--deep); }
.video button { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; padding: 0; background: var(--deep); cursor: pointer; color: var(--text); }
.video button img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transform: scale(1.02); transition: opacity .4s, transform .8s cubic-bezier(.2,.7,.2,1); }
.video button:hover img { opacity: 1; transform: scale(1.06); }
.video .play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 12px; background: rgba(29,30,32,.78); backdrop-filter: blur(8px); padding: 12px 22px 12px 16px; border-radius: 999px; font-weight: 650; font-size: 16px; white-space: nowrap; border: 1px solid var(--line); }
.video .play::before { content: ""; width: 0; height: 0; border-left: 14px solid var(--key); border-top: 9px solid transparent; border-bottom: 9px solid transparent; margin-left: 6px; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.reel__frame { transform-origin: 50% 0; will-change: transform; }
.reel__frame .video { box-shadow: 0 40px 120px -40px rgba(0,0,0,.7); }

/* Filters + grid */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chip { font: inherit; font-size: 15px; color: var(--muted); background: transparent; border: 1px solid var(--line-2); border-radius: 999px; padding: 8px 16px; cursor: pointer; transition: color .2s, background .2s, border-color .2s; }
.chip:hover { color: var(--text); border-color: var(--muted); }
.chip.is-on { color: var(--key-ink); background: var(--text); border-color: var(--text); }
.chip .n { opacity: .6; margin-left: 6px; font-size: 13px; }

.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px 22px; }
@media (max-width: 1000px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .grid { grid-template-columns: 1fr 1fr; gap: 24px 12px; } }
.grid li[hidden] { display: none; }
.card { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; perspective: 900px; }
.card__img { display: block; position: relative; aspect-ratio: 1; border-radius: var(--r); overflow: hidden; background: #3a3b3e; transform-style: preserve-3d; transition: transform .5s cubic-bezier(.2,.7,.2,1), box-shadow .5s; box-shadow: 0 10px 30px -18px rgba(0,0,0,.6); }
.card__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .4s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.card__img .bd { opacity: 0; background: #d9d9d9; }
.card__glare { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s; background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255,230,190,.35), transparent 45%); mix-blend-mode: soft-light; }
.card__pass { position: absolute; left: 10px; bottom: 10px; font-size: 13px; padding: 3px 10px; border-radius: 999px; background: rgba(29,30,32,.85); color: var(--text); opacity: 0; transition: opacity .35s; }
@media (hover: hover) {
  .card:hover .card__img { box-shadow: 0 30px 60px -24px rgba(0,0,0,.8); }
  .card:hover .card__img img:first-child { transform: scale(1.05); }
  .card:hover .bd, .card:focus-visible .bd { opacity: 1; }
  .card:hover .card__pass, .card:focus-visible .card__pass { opacity: 1; }
  .card:hover .card__glare { opacity: 1; }
}
.card__title { display: block; margin-top: 14px; font-weight: 650; font-stretch: 110%; font-size: 17px; line-height: 1.3; }
.card__role { display: block; color: var(--muted); font-size: 14px; line-height: 1.4; margin-top: 2px; }

/* Films: horizontal strip */
.films { margin-top: clamp(80px, 11vw, 150px); }
.films__pin { overflow: hidden; }
.films__head { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut) 36px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 48px; align-items: end; }
.films__head p { color: var(--muted); max-width: 50ch; margin: 0; }
.films__track { display: flex; gap: 28px; padding: 0 var(--gut); width: max-content; will-change: transform; }
.fcard { width: min(560px, 78vw); flex: none; }
.fcard--big { width: min(820px, 86vw); }
.fcard__text { padding-top: 18px; max-width: 58ch; }
.fcard h3 { font-size: clamp(26px, 3vw, 40px); font-weight: 750; margin-bottom: 10px; }
.fcard__meta { color: var(--muted); font-size: 15px; }
.fcard__award { color: var(--key); font-weight: 600; }
.fcard__text .btn { margin-top: 4px; }
/* without the scroll effect (mobile, reduced motion) the strip stacks */
.films.is-static .films__track { flex-direction: column; width: auto; max-width: var(--wrap); margin: 0 auto; gap: 48px; }
.films.is-static .fcard, .films.is-static .fcard--big { width: 100%; }
@media (max-width: 760px) { .films__head { grid-template-columns: 1fr; } .films__head p { display: none; } }

.credits-wrap { padding-top: 40px; }
.credits { width: 100%; border-collapse: collapse; font-size: 16px; }
.credits th { text-align: left; font-weight: 500; color: var(--muted); font-size: 14px; padding: 0 16px 10px 0; border-bottom: 1px solid var(--line-2); }
.credits td { padding: 16px 16px 16px 0; border-bottom: 1px solid var(--line); vertical-align: top; transition: color .2s, padding .3s; }
.credits tr:hover td { color: var(--key); }
.credits td:first-child { font-weight: 650; }
.credits .yr { color: var(--muted); font-weight: 400; margin-left: 6px; }
@media (max-width: 640px) {
  .credits thead { display: none; }
  .credits tr { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .credits td { display: block; padding: 0; border: 0; }
  .credits td + td { color: var(--muted); font-size: 15px; }
}

/* Services */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.svc { position: relative; padding: 26px 22px 24px; border-radius: var(--r); border: 1px solid var(--line); background: linear-gradient(160deg, var(--stage-2), var(--deep)); overflow: hidden; transform-style: preserve-3d; transition: transform .5s cubic-bezier(.2,.7,.2,1), border-color .3s; }
.svc::before { content: ""; position: absolute; inset: 0; background: radial-gradient(300px circle at var(--gx, 50%) var(--gy, 0%), rgba(240,180,76,.14), transparent 60%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.svc:hover { border-color: var(--line-2); }
.svc:hover::before { opacity: 1; }
.svc__icon { width: 40px; height: 40px; fill: none; stroke: var(--key); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 22px; }
.svc h3 { margin-bottom: 12px; }
.svc p { color: var(--muted); font-size: 16px; }
.svc .tools { color: var(--text); font-size: 14px; margin: 0; }
@media (max-width: 1000px) { .services { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .services { grid-template-columns: 1fr; } }

/* About */
.about { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 5vw, 80px); align-items: start; }
.about__media { border-radius: var(--r); overflow: hidden; position: sticky; top: 100px; }
.about__photo { width: 100%; height: auto; transform: scale(1.08); transform-origin: 50% 0; will-change: transform; }
.about h2 { margin-bottom: 24px; }
.about__lead { font-size: clamp(20px, 1.8vw, 24px); line-height: 1.45; font-stretch: 104%; }
.about__text p:not(.about__lead) { color: var(--muted); max-width: 60ch; }
.software { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.software li { border: 1px solid var(--line-2); border-radius: 999px; padding: 7px 15px; font-size: 15px; transition: background .2s, color .2s; }
.software li:hover { background: var(--text); color: var(--key-ink); }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } .about__media { position: static; max-width: 440px; } }

/* Experience */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.timeline::after { content: ""; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 2px; background: var(--key); transform-origin: top; transform: scaleY(var(--tl, 1)); }
.timeline li { position: relative; display: grid; grid-template-columns: 170px 1fr; gap: 16px; padding: 16px 0 16px 36px; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 24px; width: 12px; height: 12px; border-radius: 50%; background: var(--stage); border: 2px solid var(--key); z-index: 1; }
.timeline .when { color: var(--muted); }
.timeline .what { font-weight: 650; font-size: clamp(19px, 2vw, 26px); font-stretch: 112%; line-height: 1.25; }
@media (max-width: 560px) { .timeline li { grid-template-columns: 1fr; gap: 2px; } }

.split { display: grid; grid-template-columns: 1.3fr .7fr; gap: clamp(28px, 5vw, 64px); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.awards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.awards figure { margin: 0; transform-style: preserve-3d; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.awards img { border-radius: var(--r); aspect-ratio: 1; object-fit: cover; width: 100%; height: auto; }
.awards figcaption { margin-top: 12px; color: var(--muted); font-size: 15px; line-height: 1.5; }
.awards strong { display: block; color: var(--text); font-size: 17px; margin-bottom: 4px; }
@media (max-width: 560px) { .awards { grid-template-columns: 1fr; } }
.edu__school { font-weight: 650; font-size: 19px; margin-bottom: 4px; }
.edu__degree { margin-bottom: 10px; }
.edu p:last-child { color: var(--muted); font-size: 16px; }
.cv { display: grid; grid-template-columns: 110px 1fr; gap: 16px; align-items: center; text-decoration: none; border: 1px solid var(--line-2); border-radius: var(--r); padding: 12px; transition: border-color .3s, background .3s; }
.cv img { border-radius: 4px; width: 110px; height: auto; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.cv span { font-weight: 650; }
.cv:hover { border-color: var(--key); background: var(--stage-2); }
.cv:hover img { transform: rotate(-3deg) scale(1.04); }

/* Contact */
.contact { padding-bottom: 40px; }
.contact__big { font-size: clamp(52px, 10vw, 150px); font-weight: 850; letter-spacing: -0.04em; line-height: .9; margin-bottom: 28px; }
.contact > p { color: var(--muted); max-width: 58ch; font-size: 18px; }
.contact__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 16px 0 30px; }
.contact__mail { display: inline-flex; align-items: center; min-height: 50px; font-size: clamp(16px, 2vw, 22px); font-stretch: 108%; font-weight: 600; margin: 0; text-decoration: none; padding: .35em .8em; border: 1px solid var(--line-2); border-radius: 999px; transition: background .3s, color .3s, border-color .3s; word-break: break-word; }
.contact__mail:hover { background: var(--key); color: var(--key-ink); border-color: var(--key); }
.contact__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 28px; color: var(--muted); }
.contact__list a { color: var(--text); }

.footer { max-width: var(--wrap); margin: 72px auto 0; padding: 24px var(--gut) 40px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; color: var(--muted); font-size: 14px; }
.footer p { margin: 0; max-width: 70ch; }

/* Reveal: starts hidden only when scripts are running */
.js .reveal { opacity: 0; transform: translateY(28px); }

/* Viewer */
.viewer { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: var(--deep); color: var(--text); }
.viewer[open] { display: grid; grid-template-columns: 1fr 380px; animation: vin .45s cubic-bezier(.2,.7,.2,1); }
@keyframes vin { from { opacity: 0; transform: scale(.98); } }
.viewer::backdrop { background: rgba(15,15,17,.9); }
.viewer__stage { position: relative; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 24px; background: radial-gradient(70% 70% at 50% 45%, #45464a, #2a2b2e); }
.viewer__stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; transition: opacity .25s; }
.viewer__stage img.is-loading { opacity: .3; }
.viewer__arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border: 1px solid var(--line); border-radius: 50%; background: rgba(29,30,32,.7); backdrop-filter: blur(6px); color: var(--text); font-size: 30px; line-height: 1; cursor: pointer; }
.viewer__arrow:hover { background: var(--key); color: var(--key-ink); }
.viewer__arrow--prev { left: 18px; } .viewer__arrow--next { right: 18px; }
.viewer__count { position: absolute; left: 24px; bottom: 16px; margin: 0; font-size: 14px; background: rgba(29,30,32,.8); padding: 4px 12px; border-radius: 999px; }
.viewer__side { overflow-y: auto; padding: 24px 26px 32px; border-left: 1px solid var(--line); display: flex; flex-direction: column; }
.viewer__close { align-self: flex-end; background: none; border: 1px solid var(--line-2); color: var(--text); border-radius: 999px; font: inherit; font-size: 15px; padding: 8px 16px; cursor: pointer; margin-bottom: 20px; }
.viewer__close:hover { border-color: var(--key); color: var(--key); }
.viewer__cat { color: var(--muted); font-size: 14px; margin-bottom: 6px; }
.viewer h2 { font-size: 34px; margin-bottom: 8px; }
.viewer__role { font-weight: 600; }
.viewer__desc { color: var(--muted); font-size: 15px; }
.viewer__tools { font-size: 14px; color: var(--muted); }
.viewer__tools:empty, .viewer__desc:empty { display: none; }
.thumbs { list-style: none; margin: 8px 0 20px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.thumbs button { position: relative; display: block; width: 100%; aspect-ratio: 1; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; background: #3a3b3e; cursor: pointer; }
.thumbs button img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.thumbs button:hover img { transform: scale(1.08); }
.thumbs button[aria-current="true"] { border-color: var(--key); }
.thumbs .tag { position: absolute; left: 4px; bottom: 4px; font-size: 11px; line-height: 1; padding: 4px 6px; border-radius: 999px; background: rgba(29,30,32,.88); color: var(--text); }
#v-link { align-self: flex-start; margin-bottom: 20px; }
#v-link[hidden] { display: none; }
.viewer__projnav { margin-top: auto; display: flex; justify-content: space-between; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
.viewer__projnav button { background: none; border: 0; color: var(--muted); font: inherit; font-size: 15px; cursor: pointer; padding: 6px 0; }
.viewer__projnav button:hover { color: var(--key); }
@media (max-width: 860px) {
  .viewer[open] { grid-template-columns: 1fr; grid-template-rows: 58dvh 1fr; }
  .viewer__stage { padding: 12px; }
  .viewer__side { border-left: 0; border-top: 1px solid var(--line); padding: 16px var(--gut) 24px; }
  .viewer__close { position: fixed; top: 12px; right: 12px; z-index: 2; background: rgba(29,30,32,.9); margin: 0; }
  .thumbs { grid-template-columns: repeat(4, 1fr); }
  .viewer__arrow { width: 42px; height: 42px; font-size: 26px; }
  .viewer__arrow--prev { left: 8px; } .viewer__arrow--next { right: 8px; }
}
body.no-scroll { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
  .js .reveal { opacity: 1; transform: none; }
  * { transition-duration: .01ms !important; }
}
